tag | line | file | source code |
HD | 306 | drivers/scsi/eata.c | #define BN(board) (HD(board)->board_name) |
HD | 475 | drivers/scsi/eata.c | memset(HD(j), 0, sizeof(struct hostdata)); |
HD | 476 | drivers/scsi/eata.c | HD(j)->subversion = subversion; |
HD | 477 | drivers/scsi/eata.c | HD(j)->protocol_rev = protocol_rev; |
HD | 478 | drivers/scsi/eata.c | HD(j)->board_number = j; |
HD | 481 | drivers/scsi/eata.c | if (HD(j)->subversion == ESA) |
HD | 495 | drivers/scsi/eata.c | "Mbox %d, CmdLun %d.\n", BN(j), HD(j)->protocol_rev, board_status, |
HD | 595 | drivers/scsi/eata.c | i = HD(j)->last_cp_used + 1; |
HD | 601 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == FREE) { |
HD | 602 | drivers/scsi/eata.c | HD(j)->last_cp_used = i; |
HD | 610 | drivers/scsi/eata.c | if (HD(j)->in_reset) |
HD | 624 | drivers/scsi/eata.c | cpp = &HD(j)->cp[i]; |
HD | 629 | drivers/scsi/eata.c | spp = &HD(j)->sp[i]; |
HD | 681 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = IN_USE; |
HD | 712 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == FREE) { |
HD | 718 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == IN_USE) { |
HD | 721 | drivers/scsi/eata.c | if (SCarg != HD(j)->cp[i].SCpnt) |
HD | 723 | drivers/scsi/eata.c | BN(j), i, SCarg, HD(j)->cp[i].SCpnt); |
HD | 729 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == IN_RESET) { |
HD | 735 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == LOCKED) { |
HD | 758 | drivers/scsi/eata.c | if (HD(j)->in_reset) { |
HD | 770 | drivers/scsi/eata.c | for (k = 0; k < MAX_TARGET; k++) HD(j)->target_reset[k] = TRUE; |
HD | 772 | drivers/scsi/eata.c | for (k = 0; k < MAX_TARGET; k++) HD(j)->target_time_out[k] = 0; |
HD | 776 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == FREE) continue; |
HD | 778 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == LOCKED) { |
HD | 779 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
HD | 784 | drivers/scsi/eata.c | SCpnt = HD(j)->cp[i].SCpnt; |
HD | 785 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = IN_RESET; |
HD | 816 | drivers/scsi/eata.c | HD(j)->in_reset = TRUE; |
HD | 826 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] != IN_RESET) continue; |
HD | 828 | drivers/scsi/eata.c | SCpnt = HD(j)->cp[i].SCpnt; |
HD | 833 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = LOCKED; |
HD | 842 | drivers/scsi/eata.c | HD(j)->in_reset = FALSE; |
HD | 887 | drivers/scsi/eata.c | BN(j), HD(j)->iocount); |
HD | 894 | drivers/scsi/eata.c | spp = &HD(j)->sp[i]; |
HD | 901 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == IGNORE) { |
HD | 902 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
HD | 905 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] == LOCKED) { |
HD | 906 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
HD | 908 | drivers/scsi/eata.c | BN(j), i, HD(j)->iocount); |
HD | 911 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] == FREE) { |
HD | 913 | drivers/scsi/eata.c | BN(j), i, HD(j)->iocount); |
HD | 916 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] == IN_RESET) |
HD | 918 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] != IN_USE) |
HD | 921 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
HD | 922 | drivers/scsi/eata.c | cpp = &HD(j)->cp[i]; |
HD | 953 | drivers/scsi/eata.c | && HD(j)->target_reset[SCpnt->target]) |
HD | 971 | drivers/scsi/eata.c | HD(j)->target_reset[SCpnt->target] = FALSE; |
HD | 979 | drivers/scsi/eata.c | HD(j)->target_time_out[SCpnt->target] = 0; |
HD | 985 | drivers/scsi/eata.c | if (HD(j)->target_time_out[SCpnt->target] > 1) |
HD | 989 | drivers/scsi/eata.c | HD(j)->target_time_out[SCpnt->target]++; |
HD | 1002 | drivers/scsi/eata.c | HD(j)->target_reset[k] = TRUE; |
HD | 1019 | drivers/scsi/eata.c | HD(j)->iocount++; |
HD | 1021 | drivers/scsi/eata.c | if (loops > 1) HD(j)->multicount++; |
HD | 1026 | drivers/scsi/eata.c | if ((spp->adapter_status != ASOK && HD(j)->iocount > 1000) || |
HD | 1028 | drivers/scsi/eata.c | spp->adapter_status != ASST && HD(j)->iocount <= 1000) || |
HD | 1034 | drivers/scsi/eata.c | SCpnt->target, SCpnt->lun, SCpnt->pid, HD(j)->iocount); |
HD | 1062 | drivers/scsi/eata.c | calls[(sh[j]->irq)], HD(j)->iocount, HD(j)->multicount); |
HD | 189 | drivers/scsi/eata_dma.c | && (HD(cmd)->t_state[cmd->target] == RESET)) |
HD | 194 | drivers/scsi/eata_dma.c | HD(cmd)->t_state[cmd->target] = FALSE; |
HD | 195 | drivers/scsi/eata_dma.c | HD(cmd)->t_timeout[cmd->target] = 0; |
HD | 201 | drivers/scsi/eata_dma.c | if (HD(cmd)->t_timeout[cmd->target] > 1) |
HD | 205 | drivers/scsi/eata_dma.c | HD(cmd)->t_timeout[cmd->target]++; |
HD | 215 | drivers/scsi/eata_dma.c | HD(cmd)->t_state[i] = RESET; |
HD | 297 | drivers/scsi/eata_dma.c | hd = HD(cmd); |
HD | 483 | drivers/scsi/eata_dma.c | if (HD(cmd)->state == RESET) { |
HD | 498 | drivers/scsi/eata_dma.c | HD(cmd)->t_state[z] = RESET; |
HD | 502 | drivers/scsi/eata_dma.c | if (HD(cmd)->ccb[x].status == FREE) |
HD | 505 | drivers/scsi/eata_dma.c | if (HD(cmd)->ccb[x].status == LOCKED) { |
HD | 506 | drivers/scsi/eata_dma.c | HD(cmd)->ccb[x].status = FREE; |
HD | 511 | drivers/scsi/eata_dma.c | sp = HD(cmd)->ccb[x].cmd; |
HD | 512 | drivers/scsi/eata_dma.c | HD(cmd)->ccb[x].status = RESET; |
HD | 529 | drivers/scsi/eata_dma.c | HD(cmd)->state = RESET; |
HD | 545 | drivers/scsi/eata_dma.c | if (HD(cmd)->ccb[x].status != RESET) |
HD | 548 | drivers/scsi/eata_dma.c | sp = HD(cmd)->ccb[x].cmd; |
HD | 552 | drivers/scsi/eata_dma.c | HD(cmd)->ccb[x].status = LOCKED; |
HD | 562 | drivers/scsi/eata_dma.c | HD(cmd)->state = FALSE; |
HD | 266 | drivers/scsi/u14-34f.c | #define BN(board) (HD(board)->board_name) |
HD | 284 | drivers/scsi/u14-34f.c | cpp = &HD(j)->cp[0]; |
HD | 288 | drivers/scsi/u14-34f.c | cpp->data_address = (unsigned int) HD(j)->board_id; |
HD | 289 | drivers/scsi/u14-34f.c | cpp->data_len = sizeof(HD(j)->board_id); |
HD | 298 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[0] = IGNORE; |
HD | 314 | drivers/scsi/u14-34f.c | if (cpp->adapter_status || HD(j)->cp_stat[0] != FREE) { |
HD | 315 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[0] = FREE; |
HD | 426 | drivers/scsi/u14-34f.c | memset(HD(j), 0, sizeof(struct hostdata)); |
HD | 427 | drivers/scsi/u14-34f.c | HD(j)->heads = mapping_table[config_2.mapping_mode].heads; |
HD | 428 | drivers/scsi/u14-34f.c | HD(j)->sectors = mapping_table[config_2.mapping_mode].sectors; |
HD | 429 | drivers/scsi/u14-34f.c | HD(j)->subversion = subversion; |
HD | 430 | drivers/scsi/u14-34f.c | HD(j)->board_number = j; |
HD | 433 | drivers/scsi/u14-34f.c | if (HD(j)->subversion == ESA) { |
HD | 455 | drivers/scsi/u14-34f.c | if (HD(j)->subversion == ISA && !board_inquiry(j)) { |
HD | 456 | drivers/scsi/u14-34f.c | HD(j)->board_id[40] = 0; |
HD | 458 | drivers/scsi/u14-34f.c | if (strcmp(&HD(j)->board_id[32], "06000600")) { |
HD | 459 | drivers/scsi/u14-34f.c | printk("%s: %s.\n", BN(j), &HD(j)->board_id[8]); |
HD | 461 | drivers/scsi/u14-34f.c | BN(j), &HD(j)->board_id[32]); |
HD | 539 | drivers/scsi/u14-34f.c | i = HD(j)->last_cp_used + 1; |
HD | 545 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == FREE) { |
HD | 546 | drivers/scsi/u14-34f.c | HD(j)->last_cp_used = i; |
HD | 554 | drivers/scsi/u14-34f.c | if (HD(j)->in_reset) |
HD | 568 | drivers/scsi/u14-34f.c | cpp = &HD(j)->cp[i]; |
HD | 614 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = IN_USE; |
HD | 645 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == FREE) { |
HD | 651 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == IN_USE) { |
HD | 654 | drivers/scsi/u14-34f.c | if (SCarg != HD(j)->cp[i].SCpnt) |
HD | 656 | drivers/scsi/u14-34f.c | BN(j), i, SCarg, HD(j)->cp[i].SCpnt); |
HD | 662 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == IN_RESET) { |
HD | 668 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == LOCKED) { |
HD | 691 | drivers/scsi/u14-34f.c | if (HD(j)->in_reset) { |
HD | 703 | drivers/scsi/u14-34f.c | for (k = 0; k < MAX_TARGET; k++) HD(j)->target_reset[k] = TRUE; |
HD | 705 | drivers/scsi/u14-34f.c | for (k = 0; k < MAX_TARGET; k++) HD(j)->target_time_out[k] = 0; |
HD | 709 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == FREE) continue; |
HD | 711 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == LOCKED) { |
HD | 712 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
HD | 717 | drivers/scsi/u14-34f.c | SCpnt = HD(j)->cp[i].SCpnt; |
HD | 718 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = IN_RESET; |
HD | 750 | drivers/scsi/u14-34f.c | HD(j)->in_reset = TRUE; |
HD | 760 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] != IN_RESET) continue; |
HD | 762 | drivers/scsi/u14-34f.c | SCpnt = HD(j)->cp[i].SCpnt; |
HD | 767 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = LOCKED; |
HD | 776 | drivers/scsi/u14-34f.c | HD(j)->in_reset = FALSE; |
HD | 794 | drivers/scsi/u14-34f.c | dkinfo[0] = HD(j)->heads; |
HD | 795 | drivers/scsi/u14-34f.c | dkinfo[1] = HD(j)->sectors; |
HD | 796 | drivers/scsi/u14-34f.c | dkinfo[2] = size / (HD(j)->heads * HD(j)->sectors); |
HD | 830 | drivers/scsi/u14-34f.c | BN(j), HD(j)->iocount); |
HD | 837 | drivers/scsi/u14-34f.c | i = spp - HD(j)->cp; |
HD | 842 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == IGNORE) { |
HD | 843 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
HD | 846 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] == LOCKED) { |
HD | 847 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
HD | 849 | drivers/scsi/u14-34f.c | BN(j), i, HD(j)->iocount); |
HD | 852 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] == FREE) { |
HD | 854 | drivers/scsi/u14-34f.c | BN(j), i, HD(j)->iocount); |
HD | 857 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] == IN_RESET) |
HD | 859 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] != IN_USE) |
HD | 862 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
HD | 889 | drivers/scsi/u14-34f.c | && HD(j)->target_reset[SCpnt->target]) |
HD | 907 | drivers/scsi/u14-34f.c | HD(j)->target_reset[SCpnt->target] = FALSE; |
HD | 915 | drivers/scsi/u14-34f.c | HD(j)->target_time_out[SCpnt->target] = 0; |
HD | 920 | drivers/scsi/u14-34f.c | if (HD(j)->target_time_out[SCpnt->target] > 1) |
HD | 924 | drivers/scsi/u14-34f.c | HD(j)->target_time_out[SCpnt->target]++; |
HD | 940 | drivers/scsi/u14-34f.c | HD(j)->target_reset[k] = TRUE; |
HD | 956 | drivers/scsi/u14-34f.c | HD(j)->iocount++; |
HD | 958 | drivers/scsi/u14-34f.c | if (loops > 1) HD(j)->multicount++; |
HD | 963 | drivers/scsi/u14-34f.c | if ((spp->adapter_status != ASOK && HD(j)->iocount > 1000) || |
HD | 965 | drivers/scsi/u14-34f.c | spp->adapter_status != ASST && HD(j)->iocount <= 1000) || |
HD | 971 | drivers/scsi/u14-34f.c | SCpnt->target, SCpnt->lun, SCpnt->pid, HD(j)->iocount); |
HD | 997 | drivers/scsi/u14-34f.c | calls[(sh[j]->irq)], HD(j)->iocount, HD(j)->multicount); |