tag | line | file | source code |
HD | 317 | drivers/scsi/eata.c | #define BN(board) (HD(board)->board_name) |
HD | 497 | drivers/scsi/eata.c | memset(HD(j), 0, sizeof(struct hostdata)); |
HD | 498 | drivers/scsi/eata.c | HD(j)->subversion = subversion; |
HD | 499 | drivers/scsi/eata.c | HD(j)->protocol_rev = protocol_rev; |
HD | 500 | drivers/scsi/eata.c | HD(j)->board_number = j; |
HD | 503 | drivers/scsi/eata.c | if (HD(j)->subversion == ESA) |
HD | 517 | drivers/scsi/eata.c | "Mbox %d, CmdLun %d.\n", BN(j), HD(j)->protocol_rev, board_status, |
HD | 617 | drivers/scsi/eata.c | i = HD(j)->last_cp_used + 1; |
HD | 623 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == FREE) { |
HD | 624 | drivers/scsi/eata.c | HD(j)->last_cp_used = i; |
HD | 632 | drivers/scsi/eata.c | if (HD(j)->in_reset) |
HD | 646 | drivers/scsi/eata.c | cpp = &HD(j)->cp[i]; |
HD | 651 | drivers/scsi/eata.c | spp = &HD(j)->sp[i]; |
HD | 703 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = IN_USE; |
HD | 734 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == FREE) { |
HD | 740 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == IN_USE) { |
HD | 743 | drivers/scsi/eata.c | if (SCarg != HD(j)->cp[i].SCpnt) |
HD | 745 | drivers/scsi/eata.c | BN(j), i, SCarg, HD(j)->cp[i].SCpnt); |
HD | 751 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == IN_RESET) { |
HD | 757 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == LOCKED) { |
HD | 780 | drivers/scsi/eata.c | if (HD(j)->in_reset) { |
HD | 792 | drivers/scsi/eata.c | for (k = 0; k < MAX_TARGET; k++) HD(j)->target_reset[k] = TRUE; |
HD | 794 | drivers/scsi/eata.c | for (k = 0; k < MAX_TARGET; k++) HD(j)->target_time_out[k] = 0; |
HD | 798 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == FREE) continue; |
HD | 800 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == LOCKED) { |
HD | 801 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
HD | 806 | drivers/scsi/eata.c | SCpnt = HD(j)->cp[i].SCpnt; |
HD | 807 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = IN_RESET; |
HD | 838 | drivers/scsi/eata.c | HD(j)->in_reset = TRUE; |
HD | 848 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] != IN_RESET) continue; |
HD | 850 | drivers/scsi/eata.c | SCpnt = HD(j)->cp[i].SCpnt; |
HD | 855 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = LOCKED; |
HD | 864 | drivers/scsi/eata.c | HD(j)->in_reset = FALSE; |
HD | 909 | drivers/scsi/eata.c | BN(j), HD(j)->iocount); |
HD | 916 | drivers/scsi/eata.c | spp = &HD(j)->sp[i]; |
HD | 923 | drivers/scsi/eata.c | if (HD(j)->cp_stat[i] == IGNORE) { |
HD | 924 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
HD | 927 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] == LOCKED) { |
HD | 928 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
HD | 930 | drivers/scsi/eata.c | BN(j), i, HD(j)->iocount); |
HD | 933 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] == FREE) { |
HD | 935 | drivers/scsi/eata.c | BN(j), i, HD(j)->iocount); |
HD | 938 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] == IN_RESET) |
HD | 940 | drivers/scsi/eata.c | else if (HD(j)->cp_stat[i] != IN_USE) |
HD | 943 | drivers/scsi/eata.c | HD(j)->cp_stat[i] = FREE; |
HD | 944 | drivers/scsi/eata.c | cpp = &HD(j)->cp[i]; |
HD | 975 | drivers/scsi/eata.c | && HD(j)->target_reset[SCpnt->target]) |
HD | 988 | drivers/scsi/eata.c | HD(j)->target_reset[SCpnt->target] = FALSE; |
HD | 996 | drivers/scsi/eata.c | HD(j)->target_time_out[SCpnt->target] = 0; |
HD | 1002 | drivers/scsi/eata.c | if (HD(j)->target_time_out[SCpnt->target] > 1) |
HD | 1006 | drivers/scsi/eata.c | HD(j)->target_time_out[SCpnt->target]++; |
HD | 1019 | drivers/scsi/eata.c | HD(j)->target_reset[k] = TRUE; |
HD | 1036 | drivers/scsi/eata.c | HD(j)->iocount++; |
HD | 1038 | drivers/scsi/eata.c | if (loops > 1) HD(j)->multicount++; |
HD | 1043 | drivers/scsi/eata.c | if ((spp->adapter_status != ASOK && HD(j)->iocount > 1000) || |
HD | 1045 | drivers/scsi/eata.c | spp->adapter_status != ASST && HD(j)->iocount <= 1000) || |
HD | 1051 | drivers/scsi/eata.c | SCpnt->target, SCpnt->lun, SCpnt->pid, HD(j)->iocount); |
HD | 1079 | drivers/scsi/eata.c | calls[(sh[j]->irq)], HD(j)->iocount, HD(j)->multicount); |
HD | 213 | drivers/scsi/eata_dma.c | && (HD(cmd)->t_state[cp->cp_channel][cp->cp_id] == RESET)) |
HD | 216 | drivers/scsi/eata_dma.c | HD(cmd)->t_state[cp->cp_channel][cp->cp_id] = OK; |
HD | 217 | drivers/scsi/eata_dma.c | if(HD(cmd)->do_latency == TRUE && cp->timestamp) { |
HD | 221 | drivers/scsi/eata_dma.c | if(HD(cmd)->writes_lat[cp->sizeindex][1] > time) |
HD | 222 | drivers/scsi/eata_dma.c | HD(cmd)->writes_lat[cp->sizeindex][1] = time; |
HD | 223 | drivers/scsi/eata_dma.c | if(HD(cmd)->writes_lat[cp->sizeindex][2] < time) |
HD | 224 | drivers/scsi/eata_dma.c | HD(cmd)->writes_lat[cp->sizeindex][2] = time; |
HD | 225 | drivers/scsi/eata_dma.c | HD(cmd)->writes_lat[cp->sizeindex][3] += time; |
HD | 226 | drivers/scsi/eata_dma.c | HD(cmd)->writes_lat[cp->sizeindex][0]++; |
HD | 228 | drivers/scsi/eata_dma.c | if(HD(cmd)->reads_lat[cp->sizeindex][1] > time) |
HD | 229 | drivers/scsi/eata_dma.c | HD(cmd)->reads_lat[cp->sizeindex][1] = time; |
HD | 230 | drivers/scsi/eata_dma.c | if(HD(cmd)->reads_lat[cp->sizeindex][2] < time) |
HD | 231 | drivers/scsi/eata_dma.c | HD(cmd)->reads_lat[cp->sizeindex][2] = time; |
HD | 232 | drivers/scsi/eata_dma.c | HD(cmd)->reads_lat[cp->sizeindex][3] += time; |
HD | 233 | drivers/scsi/eata_dma.c | HD(cmd)->reads_lat[cp->sizeindex][0]++; |
HD | 243 | drivers/scsi/eata_dma.c | HD(cmd)->t_timeout[cp->cp_channel][cp->cp_id] = OK; |
HD | 249 | drivers/scsi/eata_dma.c | if (HD(cmd)->t_timeout[cp->cp_channel][cp->cp_id] > 1) |
HD | 253 | drivers/scsi/eata_dma.c | HD(cmd)->t_timeout[cp->cp_channel][cp->cp_id]++; |
HD | 264 | drivers/scsi/eata_dma.c | HD(cmd)->t_state[cp->cp_channel][i] = RESET; |
HD | 365 | drivers/scsi/eata_dma.c | hd = HD(cmd); |
HD | 574 | drivers/scsi/eata_dma.c | if (HD(cmd)->state == RESET) { |
HD | 591 | drivers/scsi/eata_dma.c | HD(cmd)->t_state[x][z] = RESET; |
HD | 592 | drivers/scsi/eata_dma.c | HD(cmd)->t_timeout[x][z] = NO_TIMEOUT; |
HD | 597 | drivers/scsi/eata_dma.c | if (HD(cmd)->ccb[x].status == FREE) |
HD | 600 | drivers/scsi/eata_dma.c | if (HD(cmd)->ccb[x].status == LOCKED) { |
HD | 601 | drivers/scsi/eata_dma.c | HD(cmd)->ccb[x].status = FREE; |
HD | 606 | drivers/scsi/eata_dma.c | sp = HD(cmd)->ccb[x].cmd; |
HD | 607 | drivers/scsi/eata_dma.c | HD(cmd)->ccb[x].status = RESET; |
HD | 624 | drivers/scsi/eata_dma.c | HD(cmd)->state = RESET; |
HD | 642 | drivers/scsi/eata_dma.c | if (HD(cmd)->ccb[x].status != RESET) |
HD | 645 | drivers/scsi/eata_dma.c | sp = HD(cmd)->ccb[x].cmd; |
HD | 649 | drivers/scsi/eata_dma.c | HD(cmd)->ccb[x].status = LOCKED; |
HD | 659 | drivers/scsi/eata_dma.c | HD(cmd)->state = FALSE; |
HD | 303 | drivers/scsi/eata_pio.c | hd = HD(cmd); |
HD | 471 | drivers/scsi/eata_pio.c | if (HD(cmd)->state == RESET) { |
HD | 479 | drivers/scsi/eata_pio.c | HD(cmd)->t_state[0][z] = RESET; |
HD | 480 | drivers/scsi/eata_pio.c | HD(cmd)->t_timeout[0][z] = NO_TIMEOUT; |
HD | 487 | drivers/scsi/eata_pio.c | if (HD(cmd)->ccb[x].status == FREE) |
HD | 490 | drivers/scsi/eata_pio.c | sp = HD(cmd)->ccb[x].cmd; |
HD | 491 | drivers/scsi/eata_pio.c | HD(cmd)->ccb[x].status = RESET; |
HD | 504 | drivers/scsi/eata_pio.c | HD(cmd)->state = RESET; |
HD | 515 | drivers/scsi/eata_pio.c | if (HD(cmd)->ccb[x].status != RESET) |
HD | 518 | drivers/scsi/eata_pio.c | sp = HD(cmd)->ccb[x].cmd; |
HD | 523 | drivers/scsi/eata_pio.c | HD(cmd)->ccb[x].status = FREE; |
HD | 530 | drivers/scsi/eata_pio.c | HD(cmd)->state = FALSE; |
HD | 282 | drivers/scsi/u14-34f.c | #define BN(board) (HD(board)->board_name) |
HD | 300 | drivers/scsi/u14-34f.c | cpp = &HD(j)->cp[0]; |
HD | 304 | drivers/scsi/u14-34f.c | cpp->data_address = (unsigned int) HD(j)->board_id; |
HD | 305 | drivers/scsi/u14-34f.c | cpp->data_len = sizeof(HD(j)->board_id); |
HD | 314 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[0] = IGNORE; |
HD | 330 | drivers/scsi/u14-34f.c | if (cpp->adapter_status || HD(j)->cp_stat[0] != FREE) { |
HD | 331 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[0] = FREE; |
HD | 453 | drivers/scsi/u14-34f.c | memset(HD(j), 0, sizeof(struct hostdata)); |
HD | 454 | drivers/scsi/u14-34f.c | HD(j)->heads = mapping_table[config_2.mapping_mode].heads; |
HD | 455 | drivers/scsi/u14-34f.c | HD(j)->sectors = mapping_table[config_2.mapping_mode].sectors; |
HD | 456 | drivers/scsi/u14-34f.c | HD(j)->subversion = subversion; |
HD | 457 | drivers/scsi/u14-34f.c | HD(j)->board_number = j; |
HD | 460 | drivers/scsi/u14-34f.c | if (HD(j)->subversion == ESA) { |
HD | 487 | drivers/scsi/u14-34f.c | if (HD(j)->subversion == ISA && !board_inquiry(j)) { |
HD | 488 | drivers/scsi/u14-34f.c | HD(j)->board_id[40] = 0; |
HD | 490 | drivers/scsi/u14-34f.c | if (strcmp(&HD(j)->board_id[32], "06000600")) { |
HD | 491 | drivers/scsi/u14-34f.c | printk("%s: %s.\n", BN(j), &HD(j)->board_id[8]); |
HD | 493 | drivers/scsi/u14-34f.c | BN(j), &HD(j)->board_id[32]); |
HD | 571 | drivers/scsi/u14-34f.c | i = HD(j)->last_cp_used + 1; |
HD | 577 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == FREE) { |
HD | 578 | drivers/scsi/u14-34f.c | HD(j)->last_cp_used = i; |
HD | 586 | drivers/scsi/u14-34f.c | if (HD(j)->in_reset) |
HD | 600 | drivers/scsi/u14-34f.c | cpp = &HD(j)->cp[i]; |
HD | 646 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = IN_USE; |
HD | 677 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == FREE) { |
HD | 683 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == IN_USE) { |
HD | 686 | drivers/scsi/u14-34f.c | if (SCarg != HD(j)->cp[i].SCpnt) |
HD | 688 | drivers/scsi/u14-34f.c | BN(j), i, SCarg, HD(j)->cp[i].SCpnt); |
HD | 694 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == IN_RESET) { |
HD | 700 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == LOCKED) { |
HD | 723 | drivers/scsi/u14-34f.c | if (HD(j)->in_reset) { |
HD | 735 | drivers/scsi/u14-34f.c | for (k = 0; k < MAX_TARGET; k++) HD(j)->target_reset[k] = TRUE; |
HD | 737 | drivers/scsi/u14-34f.c | for (k = 0; k < MAX_TARGET; k++) HD(j)->target_time_out[k] = 0; |
HD | 741 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == FREE) continue; |
HD | 743 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == LOCKED) { |
HD | 744 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
HD | 749 | drivers/scsi/u14-34f.c | SCpnt = HD(j)->cp[i].SCpnt; |
HD | 750 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = IN_RESET; |
HD | 782 | drivers/scsi/u14-34f.c | HD(j)->in_reset = TRUE; |
HD | 792 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] != IN_RESET) continue; |
HD | 794 | drivers/scsi/u14-34f.c | SCpnt = HD(j)->cp[i].SCpnt; |
HD | 799 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = LOCKED; |
HD | 808 | drivers/scsi/u14-34f.c | HD(j)->in_reset = FALSE; |
HD | 826 | drivers/scsi/u14-34f.c | dkinfo[0] = HD(j)->heads; |
HD | 827 | drivers/scsi/u14-34f.c | dkinfo[1] = HD(j)->sectors; |
HD | 828 | drivers/scsi/u14-34f.c | dkinfo[2] = size / (HD(j)->heads * HD(j)->sectors); |
HD | 862 | drivers/scsi/u14-34f.c | BN(j), HD(j)->iocount); |
HD | 869 | drivers/scsi/u14-34f.c | i = spp - HD(j)->cp; |
HD | 874 | drivers/scsi/u14-34f.c | if (HD(j)->cp_stat[i] == IGNORE) { |
HD | 875 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
HD | 878 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] == LOCKED) { |
HD | 879 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
HD | 881 | drivers/scsi/u14-34f.c | BN(j), i, HD(j)->iocount); |
HD | 884 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] == FREE) { |
HD | 886 | drivers/scsi/u14-34f.c | BN(j), i, HD(j)->iocount); |
HD | 889 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] == IN_RESET) |
HD | 891 | drivers/scsi/u14-34f.c | else if (HD(j)->cp_stat[i] != IN_USE) |
HD | 894 | drivers/scsi/u14-34f.c | HD(j)->cp_stat[i] = FREE; |
HD | 921 | drivers/scsi/u14-34f.c | && HD(j)->target_reset[SCpnt->target]) |
HD | 934 | drivers/scsi/u14-34f.c | HD(j)->target_reset[SCpnt->target] = FALSE; |
HD | 942 | drivers/scsi/u14-34f.c | HD(j)->target_time_out[SCpnt->target] = 0; |
HD | 947 | drivers/scsi/u14-34f.c | if (HD(j)->target_time_out[SCpnt->target] > 1) |
HD | 951 | drivers/scsi/u14-34f.c | HD(j)->target_time_out[SCpnt->target]++; |
HD | 967 | drivers/scsi/u14-34f.c | HD(j)->target_reset[k] = TRUE; |
HD | 983 | drivers/scsi/u14-34f.c | HD(j)->iocount++; |
HD | 985 | drivers/scsi/u14-34f.c | if (loops > 1) HD(j)->multicount++; |
HD | 990 | drivers/scsi/u14-34f.c | if ((spp->adapter_status != ASOK && HD(j)->iocount > 1000) || |
HD | 992 | drivers/scsi/u14-34f.c | spp->adapter_status != ASST && HD(j)->iocount <= 1000) || |
HD | 998 | drivers/scsi/u14-34f.c | SCpnt->target, SCpnt->lun, SCpnt->pid, HD(j)->iocount); |
HD | 1024 | drivers/scsi/u14-34f.c | calls[(sh[j]->irq)], HD(j)->iocount, HD(j)->multicount); |