tag | line | file | source code |
hostdata | 426 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 427 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 431 | drivers/scsi/53c7,8xx.c | switch (hostdata->chip) { |
hostdata | 436 | drivers/scsi/53c7,8xx.c | hostdata->dstat_sir_intr = NCR53c8x0_dstat_sir_intr; |
hostdata | 437 | drivers/scsi/53c7,8xx.c | hostdata->init_save_regs = NULL; |
hostdata | 438 | drivers/scsi/53c7,8xx.c | hostdata->dsa_fixup = NCR53c8xx_dsa_fixup; |
hostdata | 439 | drivers/scsi/53c7,8xx.c | hostdata->init_fixup = NCR53c8x0_init_fixup; |
hostdata | 440 | drivers/scsi/53c7,8xx.c | hostdata->soft_reset = NCR53c8x0_soft_reset; |
hostdata | 441 | drivers/scsi/53c7,8xx.c | hostdata->run_tests = NCR53c8xx_run_tests; |
hostdata | 443 | drivers/scsi/53c7,8xx.c | hostdata->scsi_clock = 40000000; |
hostdata | 447 | drivers/scsi/53c7,8xx.c | host->host_no, hostdata->chip); |
hostdata | 473 | drivers/scsi/53c7,8xx.c | (hostdata->options & OPTION_MEMORY_MAPPED) ? "memory" : |
hostdata | 476 | drivers/scsi/53c7,8xx.c | hostdata->dmode = (hostdata->chip == 700 || hostdata->chip == 70066) ? |
hostdata | 478 | drivers/scsi/53c7,8xx.c | hostdata->istat = ((hostdata->chip / 100) == 8) ? |
hostdata | 490 | drivers/scsi/53c7,8xx.c | tmp = hostdata->this_id_mask = NCR53c7x0_read8(SCID_REG); |
hostdata | 494 | drivers/scsi/53c7,8xx.c | hostdata->this_id_mask = 1 << host->this_id; |
hostdata | 504 | drivers/scsi/53c7,8xx.c | if ((hostdata->chip / 100) == 8) { |
hostdata | 508 | drivers/scsi/53c7,8xx.c | hostdata->saved_ctest4 = NCR53c7x0_read8(CTEST4_REG_800) & |
hostdata | 515 | drivers/scsi/53c7,8xx.c | hostdata->saved_ctest7 = NCR53c7x0_read8(CTEST7_REG) & CTEST7_SAVE; |
hostdata | 522 | drivers/scsi/53c7,8xx.c | hostdata->saved_dcntl = NCR53c7x0_read8(DCNTL_REG); |
hostdata | 524 | drivers/scsi/53c7,8xx.c | if ((hostdata->chip / 100) == 8) |
hostdata | 526 | drivers/scsi/53c7,8xx.c | (hostdata->saved_dcntl & DCNTL_800_IRQM) ? "level active" : |
hostdata | 533 | drivers/scsi/53c7,8xx.c | hostdata->saved_dmode = NCR53c7x0_read8(hostdata->dmode); |
hostdata | 540 | drivers/scsi/53c7,8xx.c | if ((hostdata->chip / 100) == 8) { |
hostdata | 541 | drivers/scsi/53c7,8xx.c | if (hostdata->saved_ctest4 & CTEST4_800_BDIS) { |
hostdata | 544 | drivers/scsi/53c7,8xx.c | switch (hostdata->saved_dmode & DMODE_BL_MASK) { |
hostdata | 558 | drivers/scsi/53c7,8xx.c | if (hostdata->chip / 100 == 8) { |
hostdata | 559 | drivers/scsi/53c7,8xx.c | hostdata->saved_scntl3 = NCR53c7x0_read8(SCNTL3_REG_800); |
hostdata | 560 | drivers/scsi/53c7,8xx.c | ccf = hostdata->saved_scntl3 & SCNTL3_800_CCF_MASK; |
hostdata | 571 | drivers/scsi/53c7,8xx.c | if (!hostdata->scsi_clock) |
hostdata | 573 | drivers/scsi/53c7,8xx.c | case 1: hostdata->scsi_clock = 25000000; break; /* Divide by 1.0 */ |
hostdata | 574 | drivers/scsi/53c7,8xx.c | case 2: hostdata->scsi_clock = 37500000; break; /* Divide by 1.5 */ |
hostdata | 575 | drivers/scsi/53c7,8xx.c | case 3: hostdata->scsi_clock = 50000000; break; /* Divide by 2.0 */ |
hostdata | 577 | drivers/scsi/53c7,8xx.c | case 4: hostdata->scsi_clock = 66000000; break; |
hostdata | 582 | drivers/scsi/53c7,8xx.c | hostdata->options &= ~OPTION_SYNCHRONOUS; |
hostdata | 583 | drivers/scsi/53c7,8xx.c | hostdata->scsi_clock = 0; |
hostdata | 587 | drivers/scsi/53c7,8xx.c | hostdata->scsi_clock / 1000000); |
hostdata | 595 | drivers/scsi/53c7,8xx.c | hostdata->busy[i][j] = 0; |
hostdata | 601 | drivers/scsi/53c7,8xx.c | if (hostdata->chip != 700 && hostdata->chip != 70066) { |
hostdata | 602 | drivers/scsi/53c7,8xx.c | hostdata->sync[i].select_indirect |= (i << 16); |
hostdata | 604 | drivers/scsi/53c7,8xx.c | hostdata->sync[i].script[0] = (DCMD_TYPE_TCI|DCMD_TCI_OP_RETURN) << 24 | |
hostdata | 606 | drivers/scsi/53c7,8xx.c | switch (hostdata->chip) { |
hostdata | 613 | drivers/scsi/53c7,8xx.c | hostdata->sync[i].select_indirect |= (hostdata->saved_scntl3) << 24; |
hostdata | 620 | drivers/scsi/53c7,8xx.c | hostdata->issue_queue = hostdata->running_list = |
hostdata | 621 | drivers/scsi/53c7,8xx.c | hostdata->finished_queue = NULL; |
hostdata | 622 | drivers/scsi/53c7,8xx.c | hostdata->issue_dsa_head = |
hostdata | 623 | drivers/scsi/53c7,8xx.c | hostdata->issue_dsa_tail = NULL; |
hostdata | 625 | drivers/scsi/53c7,8xx.c | if (hostdata->init_save_regs) |
hostdata | 626 | drivers/scsi/53c7,8xx.c | hostdata->init_save_regs (host); |
hostdata | 627 | drivers/scsi/53c7,8xx.c | if (hostdata->init_fixup) |
hostdata | 628 | drivers/scsi/53c7,8xx.c | hostdata->init_fixup (host); |
hostdata | 635 | drivers/scsi/53c7,8xx.c | hostdata->idle = 1; |
hostdata | 647 | drivers/scsi/53c7,8xx.c | hostdata->soft_reset (host); |
hostdata | 649 | drivers/scsi/53c7,8xx.c | hostdata->debug_count_limit = -1; |
hostdata | 650 | drivers/scsi/53c7,8xx.c | hostdata->intrs = -1; |
hostdata | 651 | drivers/scsi/53c7,8xx.c | hostdata->expecting_iid = 0; |
hostdata | 652 | drivers/scsi/53c7,8xx.c | hostdata->expecting_sto = 0; |
hostdata | 654 | drivers/scsi/53c7,8xx.c | if ((hostdata->run_tests && hostdata->run_tests(host) == -1) || |
hostdata | 655 | drivers/scsi/53c7,8xx.c | (hostdata->options & OPTION_DEBUG_TESTS_ONLY)) { |
hostdata | 688 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata; |
hostdata | 731 | drivers/scsi/53c7,8xx.c | hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 732 | drivers/scsi/53c7,8xx.c | instance->hostdata; |
hostdata | 733 | drivers/scsi/53c7,8xx.c | hostdata->size = size; |
hostdata | 734 | drivers/scsi/53c7,8xx.c | hostdata->script_count = script_len / sizeof(long); |
hostdata | 735 | drivers/scsi/53c7,8xx.c | hostdata = (struct NCR53c7x0_hostdata *) instance->hostdata; |
hostdata | 736 | drivers/scsi/53c7,8xx.c | hostdata->board = board; |
hostdata | 737 | drivers/scsi/53c7,8xx.c | hostdata->chip = chip; |
hostdata | 738 | drivers/scsi/53c7,8xx.c | if ((hostdata->pci_valid = pci_valid)) { |
hostdata | 739 | drivers/scsi/53c7,8xx.c | hostdata->pci_bus = pci_bus; |
hostdata | 740 | drivers/scsi/53c7,8xx.c | hostdata->pci_device_fn = pci_device_fn; |
hostdata | 785 | drivers/scsi/53c7,8xx.c | hostdata->options = options; |
hostdata | 993 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 994 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 1004 | drivers/scsi/53c7,8xx.c | memcpy ((void *) hostdata->script, (void *) SCRIPT, |
hostdata | 1008 | drivers/scsi/53c7,8xx.c | hostdata->script[LABELPATCHES[i]] += |
hostdata | 1009 | drivers/scsi/53c7,8xx.c | (unsigned long) hostdata->script; |
hostdata | 1029 | drivers/scsi/53c7,8xx.c | if (!(hostdata->options & OPTION_MEMORY_MAPPED)) { |
hostdata | 1043 | drivers/scsi/53c7,8xx.c | patch_abs_32 (hostdata->script, 0, addr_scratch, base + SCRATCHA_REG_800); |
hostdata | 1044 | drivers/scsi/53c7,8xx.c | patch_abs_32 (hostdata->script, 0, addr_sfbr, base + SFBR_REG); |
hostdata | 1045 | drivers/scsi/53c7,8xx.c | patch_abs_32 (hostdata->script, 0, addr_temp, base + TEMP_REG); |
hostdata | 1056 | drivers/scsi/53c7,8xx.c | patch_abs_rwri_data (hostdata->script, 0, dmode_memory_to_memory, tmp); |
hostdata | 1057 | drivers/scsi/53c7,8xx.c | patch_abs_rwri_data (hostdata->script, 0, dmode_memory_to_ncr, memory_to_ncr); |
hostdata | 1058 | drivers/scsi/53c7,8xx.c | patch_abs_rwri_data (hostdata->script, 0, dmode_ncr_to_memory, ncr_to_memory); |
hostdata | 1059 | drivers/scsi/53c7,8xx.c | patch_abs_rwri_data (hostdata->script, 0, dmode_ncr_to_ncr, ncr_to_ncr); |
hostdata | 1061 | drivers/scsi/53c7,8xx.c | patch_abs_32 (hostdata->script, 0, issue_dsa_head, (long) &(hostdata->issue_dsa_head)); |
hostdata | 1062 | drivers/scsi/53c7,8xx.c | patch_abs_32 (hostdata->script, 0, msg_buf, (long) &(hostdata->msg_buf)); |
hostdata | 1063 | drivers/scsi/53c7,8xx.c | patch_abs_32 (hostdata->script, 0, reconnect_dsa_head, (long) &(hostdata->reconnect_dsa_head)); |
hostdata | 1064 | drivers/scsi/53c7,8xx.c | patch_abs_32 (hostdata->script, 0, reselected_identify, (long) &(hostdata->reselected_identify)); |
hostdata | 1065 | drivers/scsi/53c7,8xx.c | patch_abs_32 (hostdata->script, 0, reselected_tag, (long) &(hostdata->reselected_tag)); |
hostdata | 1067 | drivers/scsi/53c7,8xx.c | patch_abs_32 (hostdata->script, 0, test_dest, (long) &(hostdata->test_dest)); |
hostdata | 1068 | drivers/scsi/53c7,8xx.c | patch_abs_32 (hostdata->script, 0, test_src, (long) &(hostdata->test_source)); |
hostdata | 1080 | drivers/scsi/53c7,8xx.c | hostdata->E_accept_message = Ent_accept_message; |
hostdata | 1081 | drivers/scsi/53c7,8xx.c | hostdata->E_command_complete = Ent_command_complete; |
hostdata | 1082 | drivers/scsi/53c7,8xx.c | hostdata->E_debug_break = Ent_debug_break; |
hostdata | 1083 | drivers/scsi/53c7,8xx.c | hostdata->E_dsa_code_template = Ent_dsa_code_template; |
hostdata | 1084 | drivers/scsi/53c7,8xx.c | hostdata->E_dsa_code_template_end = Ent_dsa_code_template_end; |
hostdata | 1085 | drivers/scsi/53c7,8xx.c | hostdata->E_initiator_abort = Ent_initiator_abort; |
hostdata | 1086 | drivers/scsi/53c7,8xx.c | hostdata->E_msg_in = Ent_msg_in; |
hostdata | 1087 | drivers/scsi/53c7,8xx.c | hostdata->E_other_transfer = Ent_other_transfer; |
hostdata | 1088 | drivers/scsi/53c7,8xx.c | hostdata->E_reject_message = Ent_reject_message; |
hostdata | 1089 | drivers/scsi/53c7,8xx.c | hostdata->E_respond_message = Ent_respond_message; |
hostdata | 1090 | drivers/scsi/53c7,8xx.c | hostdata->E_schedule = Ent_schedule; |
hostdata | 1091 | drivers/scsi/53c7,8xx.c | hostdata->E_select = Ent_select; |
hostdata | 1092 | drivers/scsi/53c7,8xx.c | hostdata->E_select_msgout = Ent_select_msgout; |
hostdata | 1093 | drivers/scsi/53c7,8xx.c | hostdata->E_target_abort = Ent_target_abort; |
hostdata | 1095 | drivers/scsi/53c7,8xx.c | hostdata->E_test_0 = Ent_test_0; |
hostdata | 1097 | drivers/scsi/53c7,8xx.c | hostdata->E_test_1 = Ent_test_1; |
hostdata | 1098 | drivers/scsi/53c7,8xx.c | hostdata->E_test_2 = Ent_test_2; |
hostdata | 1100 | drivers/scsi/53c7,8xx.c | hostdata->E_test_3 = Ent_test_3; |
hostdata | 1103 | drivers/scsi/53c7,8xx.c | hostdata->dsa_cmdout = A_dsa_cmdout; |
hostdata | 1104 | drivers/scsi/53c7,8xx.c | hostdata->dsa_cmnd = A_dsa_cmnd; |
hostdata | 1105 | drivers/scsi/53c7,8xx.c | hostdata->dsa_datain = A_dsa_datain; |
hostdata | 1106 | drivers/scsi/53c7,8xx.c | hostdata->dsa_dataout = A_dsa_dataout; |
hostdata | 1107 | drivers/scsi/53c7,8xx.c | hostdata->dsa_end = A_dsa_end; |
hostdata | 1108 | drivers/scsi/53c7,8xx.c | hostdata->dsa_msgin = A_dsa_msgin; |
hostdata | 1109 | drivers/scsi/53c7,8xx.c | hostdata->dsa_msgout = A_dsa_msgout; |
hostdata | 1110 | drivers/scsi/53c7,8xx.c | hostdata->dsa_msgout_other = A_dsa_msgout_other; |
hostdata | 1111 | drivers/scsi/53c7,8xx.c | hostdata->dsa_next = A_dsa_next; |
hostdata | 1112 | drivers/scsi/53c7,8xx.c | hostdata->dsa_select = A_dsa_select; |
hostdata | 1113 | drivers/scsi/53c7,8xx.c | hostdata->dsa_start = Ent_dsa_code_template - Ent_dsa_zero; |
hostdata | 1114 | drivers/scsi/53c7,8xx.c | hostdata->dsa_status = A_dsa_status; |
hostdata | 1124 | drivers/scsi/53c7,8xx.c | (unsigned long) hostdata->script); |
hostdata | 1144 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 1145 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 1155 | drivers/scsi/53c7,8xx.c | if (!hostdata->idle) { |
hostdata | 1166 | drivers/scsi/53c7,8xx.c | if (hostdata->issue_dsa_head) { |
hostdata | 1169 | drivers/scsi/53c7,8xx.c | hostdata->issue_dsa_head = NULL; |
hostdata | 1172 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_TEST1) { |
hostdata | 1173 | drivers/scsi/53c7,8xx.c | hostdata->idle = 0; |
hostdata | 1174 | drivers/scsi/53c7,8xx.c | hostdata->test_running = 1; |
hostdata | 1175 | drivers/scsi/53c7,8xx.c | hostdata->test_completed = -1; |
hostdata | 1176 | drivers/scsi/53c7,8xx.c | hostdata->test_dest = 0; |
hostdata | 1177 | drivers/scsi/53c7,8xx.c | hostdata->test_source = 0xdeadbeef; |
hostdata | 1178 | drivers/scsi/53c7,8xx.c | start = ((unsigned long) hostdata->script) + hostdata->E_test_1; |
hostdata | 1179 | drivers/scsi/53c7,8xx.c | hostdata->state = STATE_RUNNING; |
hostdata | 1186 | drivers/scsi/53c7,8xx.c | while ((hostdata->test_completed == -1) && jiffies < timeout); |
hostdata | 1189 | drivers/scsi/53c7,8xx.c | if (hostdata->test_completed == -1) |
hostdata | 1191 | drivers/scsi/53c7,8xx.c | (hostdata->test_dest == 0xdeadbeef) ? |
hostdata | 1200 | drivers/scsi/53c7,8xx.c | else if (hostdata->test_completed != 1) |
hostdata | 1202 | drivers/scsi/53c7,8xx.c | hostdata->test_completed); |
hostdata | 1204 | drivers/scsi/53c7,8xx.c | failed = (hostdata->test_dest != 0xdeadbeef); |
hostdata | 1206 | drivers/scsi/53c7,8xx.c | if (hostdata->test_dest != 0xdeadbeef) { |
hostdata | 1210 | drivers/scsi/53c7,8xx.c | host->host_no, hostdata->test_dest); |
hostdata | 1216 | drivers/scsi/53c7,8xx.c | (unsigned long) hostdata->script, start); |
hostdata | 1222 | drivers/scsi/53c7,8xx.c | hostdata->test_running = 0; |
hostdata | 1225 | drivers/scsi/53c7,8xx.c | if (hostdata->issue_dsa_head) { |
hostdata | 1228 | drivers/scsi/53c7,8xx.c | hostdata->issue_dsa_head = NULL; |
hostdata | 1231 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_TEST2) { |
hostdata | 1256 | drivers/scsi/53c7,8xx.c | if (!hostdata->idle) { |
hostdata | 1264 | drivers/scsi/53c7,8xx.c | hostdata->idle = 0; |
hostdata | 1265 | drivers/scsi/53c7,8xx.c | hostdata->test_running = 2; |
hostdata | 1266 | drivers/scsi/53c7,8xx.c | hostdata->test_completed = -1; |
hostdata | 1267 | drivers/scsi/53c7,8xx.c | start = ((unsigned long) hostdata->script) + hostdata->E_test_2; |
hostdata | 1268 | drivers/scsi/53c7,8xx.c | hostdata->state = STATE_RUNNING; |
hostdata | 1274 | drivers/scsi/53c7,8xx.c | while ((hostdata->test_completed == -1) && jiffies < timeout); |
hostdata | 1277 | drivers/scsi/53c7,8xx.c | if (hostdata->test_completed == 2) { |
hostdata | 1286 | drivers/scsi/53c7,8xx.c | } else if (hostdata->test_completed == 3) { |
hostdata | 1289 | drivers/scsi/53c7,8xx.c | if (!hostdata->idle) { |
hostdata | 1294 | drivers/scsi/53c7,8xx.c | } else if (hostdata->test_completed == -1) { |
hostdata | 1299 | drivers/scsi/53c7,8xx.c | hostdata->test_running = 0; |
hostdata | 1300 | drivers/scsi/53c7,8xx.c | if (hostdata->issue_dsa_head) { |
hostdata | 1303 | drivers/scsi/53c7,8xx.c | hostdata->issue_dsa_head = NULL; |
hostdata | 1326 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 1327 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 1330 | drivers/scsi/53c7,8xx.c | memcpy (cmd->dsa, hostdata->script + (hostdata->E_dsa_code_template / 4), |
hostdata | 1331 | drivers/scsi/53c7,8xx.c | hostdata->E_dsa_code_template_end - hostdata->E_dsa_code_template); |
hostdata | 1341 | drivers/scsi/53c7,8xx.c | dsa_temp_sync, hostdata->sync[c->target].select_indirect); |
hostdata | 1364 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 1365 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 1372 | drivers/scsi/53c7,8xx.c | for (search = (char *) (i ? hostdata->issue_dsa_head : |
hostdata | 1373 | drivers/scsi/53c7,8xx.c | hostdata->reconnect_dsa_head), prev = (char **) (i ? |
hostdata | 1374 | drivers/scsi/53c7,8xx.c | &(hostdata->issue_dsa_head) : &(hostdata->reconnect_dsa_head)); |
hostdata | 1375 | drivers/scsi/53c7,8xx.c | search && (search + hostdata->dsa_start) != (char *) cmd->dsa; |
hostdata | 1376 | drivers/scsi/53c7,8xx.c | prev = (char **) (search + hostdata->dsa_next), |
hostdata | 1380 | drivers/scsi/53c7,8xx.c | *prev = *(char **) (search + hostdata->dsa_next); |
hostdata | 1389 | drivers/scsi/53c7,8xx.c | if (hostdata->running_list == cmd) |
hostdata | 1390 | drivers/scsi/53c7,8xx.c | hostdata->running_list = cmd->next; |
hostdata | 1429 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 1430 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 1442 | drivers/scsi/53c7,8xx.c | for (bp = hostdata->breakpoints; bp && bp->address != dsp; |
hostdata | 1454 | drivers/scsi/53c7,8xx.c | NCR53c7x0_write8 (hostdata->dmode, |
hostdata | 1455 | drivers/scsi/53c7,8xx.c | NCR53c7x0_read8(hostdata->dmode)|DMODE_MAN); |
hostdata | 1478 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 1479 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 1482 | drivers/scsi/53c7,8xx.c | if ((hostdata->chip / 100) == 8) { |
hostdata | 1483 | drivers/scsi/53c7,8xx.c | hostdata->sync[target].select_indirect = (hostdata->saved_scntl3 << 24) |
hostdata | 1486 | drivers/scsi/53c7,8xx.c | } else if ((hostdata->chip != 700) && (hostdata->chip != 70066)) { |
hostdata | 1487 | drivers/scsi/53c7,8xx.c | hostdata->sync[target].select_indirect = (1 << (target & 7)) << 16; |
hostdata | 1495 | drivers/scsi/53c7,8xx.c | if (hostdata->state == STATE_HALTED) { |
hostdata | 1496 | drivers/scsi/53c7,8xx.c | if ((hostdata->chip / 100) == 8) { |
hostdata | 1497 | drivers/scsi/53c7,8xx.c | NCR53c7x0_write8 (SCNTL3_REG_800, hostdata->saved_scntl3); |
hostdata | 1545 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 1546 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 1553 | drivers/scsi/53c7,8xx.c | divisor = desire / (hostdata->scsi_clock / 10); |
hostdata | 1569 | drivers/scsi/53c7,8xx.c | scntl3 = (hostdata->chip / 100 == 8) ? ((hostdata->saved_scntl3 & |
hostdata | 1573 | drivers/scsi/53c7,8xx.c | if ((hostdata->chip != 700) && (hostdata->chip != 70066)) { |
hostdata | 1574 | drivers/scsi/53c7,8xx.c | hostdata->sync[target].select_indirect = (scntl3 << 24) | (target << 16) | |
hostdata | 1577 | drivers/scsi/53c7,8xx.c | script = hostdata->sync[target].script; |
hostdata | 1580 | drivers/scsi/53c7,8xx.c | if ((hostdata->chip / 100) == 8) { |
hostdata | 1617 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 1618 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 1624 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) |
hostdata | 1632 | drivers/scsi/53c7,8xx.c | print_msg (hostdata->msg_buf); |
hostdata | 1634 | drivers/scsi/53c7,8xx.c | switch (hostdata->msg_buf[0]) { |
hostdata | 1640 | drivers/scsi/53c7,8xx.c | hostdata->dsp = hostdata->script + hostdata->E_accept_message / |
hostdata | 1642 | drivers/scsi/53c7,8xx.c | hostdata->dsp_changed = 1; |
hostdata | 1647 | drivers/scsi/53c7,8xx.c | hostdata->dsp = hostdata->script + hostdata->E_reject_message / |
hostdata | 1649 | drivers/scsi/53c7,8xx.c | hostdata->dsp_changed = 1; |
hostdata | 1656 | drivers/scsi/53c7,8xx.c | "requesting", hostdata->msg_buf[3] * 4, hostdata->msg_buf[4]); |
hostdata | 1667 | drivers/scsi/53c7,8xx.c | synchronous (host, c->target, hostdata->msg_buf); |
hostdata | 1668 | drivers/scsi/53c7,8xx.c | hostdata->dsp = hostdata->script + hostdata->E_accept_message / |
hostdata | 1670 | drivers/scsi/53c7,8xx.c | hostdata->dsp_changed = 1; |
hostdata | 1673 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_SYNCHRONOUS) { |
hostdata | 1675 | drivers/scsi/53c7,8xx.c | synchronous (host, c->target, hostdata->msg_buf); |
hostdata | 1677 | drivers/scsi/53c7,8xx.c | hostdata->msg_buf[4] = 0; /* 0 offset = async */ |
hostdata | 1682 | drivers/scsi/53c7,8xx.c | hostdata->msg_buf); |
hostdata | 1683 | drivers/scsi/53c7,8xx.c | hostdata->dsp = hostdata->script + |
hostdata | 1684 | drivers/scsi/53c7,8xx.c | hostdata->E_respond_message / sizeof(long); |
hostdata | 1685 | drivers/scsi/53c7,8xx.c | hostdata->dsp_changed = 1; |
hostdata | 1688 | drivers/scsi/53c7,8xx.c | if (hostdata->msg_buf[4]) { |
hostdata | 1689 | drivers/scsi/53c7,8xx.c | int Hz = 1000000000 / (hostdata->msg_buf[3] * 4); |
hostdata | 1693 | drivers/scsi/53c7,8xx.c | ((hostdata->msg_buf[3] < 200) ? "FAST " : |
hostdata | 1695 | drivers/scsi/53c7,8xx.c | ((hostdata->msg_buf[3] < 200) ? "-II" : ""), |
hostdata | 1696 | drivers/scsi/53c7,8xx.c | (int) hostdata->msg_buf[3] * 4, (int) |
hostdata | 1697 | drivers/scsi/53c7,8xx.c | hostdata->msg_buf[4]); |
hostdata | 1706 | drivers/scsi/53c7,8xx.c | hostdata->dsp = hostdata->script + hostdata->E_reject_message / |
hostdata | 1708 | drivers/scsi/53c7,8xx.c | hostdata->dsp_changed = 1; |
hostdata | 1711 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) |
hostdata | 1717 | drivers/scsi/53c7,8xx.c | hostdata->dsp = hostdata->script + hostdata->E_target_abort / |
hostdata | 1719 | drivers/scsi/53c7,8xx.c | hostdata->dsp_changed = 1; |
hostdata | 1724 | drivers/scsi/53c7,8xx.c | hostdata->dsp = hostdata->script + hostdata->E_initiator_abort / |
hostdata | 1726 | drivers/scsi/53c7,8xx.c | hostdata->dsp_changed = 1; |
hostdata | 1739 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) |
hostdata | 1787 | drivers/scsi/53c7,8xx.c | patch_dsa_32 (cmd->dsa, dsa_dataout, 0, hostdata->E_other_transfer); |
hostdata | 1795 | drivers/scsi/53c7,8xx.c | cmd->data_transfer_start[3] = hostdata->E_other_transfer; |
hostdata | 1809 | drivers/scsi/53c7,8xx.c | hostdata->dsp = hostdata->script + hostdata->E_select / |
hostdata | 1811 | drivers/scsi/53c7,8xx.c | hostdata->dsp_changed = 1; |
hostdata | 1816 | drivers/scsi/53c7,8xx.c | hostdata->dsp = hostdata->script + hostdata->E_schedule / |
hostdata | 1818 | drivers/scsi/53c7,8xx.c | hostdata->dsp_changed = 1; |
hostdata | 1824 | drivers/scsi/53c7,8xx.c | hostdata->idle = 1; |
hostdata | 1825 | drivers/scsi/53c7,8xx.c | hostdata->test_completed = (dsps - A_int_test_1) / 0x00010000 + 1; |
hostdata | 1826 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) |
hostdata | 1828 | drivers/scsi/53c7,8xx.c | hostdata->test_completed); |
hostdata | 1832 | drivers/scsi/53c7,8xx.c | if (hostdata->options & (OPTION_DEBUG_SCRIPT|OPTION_DEBUG_INTR)) { |
hostdata | 1840 | drivers/scsi/53c7,8xx.c | if (hostdata->options & (OPTION_DEBUG_SCRIPT|OPTION_DEBUG_INTR)) { |
hostdata | 1847 | drivers/scsi/53c7,8xx.c | if (hostdata->options & (OPTION_DEBUG_SCRIPT|OPTION_DEBUG_INTR)) { |
hostdata | 1854 | drivers/scsi/53c7,8xx.c | if (hostdata->options & (OPTION_DEBUG_SCRIPT|OPTION_DEBUG_INTR)) { |
hostdata | 1862 | drivers/scsi/53c7,8xx.c | if (hostdata->options & (OPTION_DEBUG_SCRIPT|OPTION_DEBUG_INTR)) { |
hostdata | 1865 | drivers/scsi/53c7,8xx.c | (int) hostdata->reselected_identify & 7); |
hostdata | 1871 | drivers/scsi/53c7,8xx.c | if (hostdata->options & (OPTION_DEBUG_SCRIPT|OPTION_DEBUG_INTR)) { |
hostdata | 1873 | drivers/scsi/53c7,8xx.c | host->host_no, (unsigned long) hostdata->issue_dsa_head); |
hostdata | 1947 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 1948 | drivers/scsi/53c7,8xx.c | instance->hostdata; |
hostdata | 1978 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 1979 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 2015 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 2016 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 2023 | drivers/scsi/53c7,8xx.c | if (hostdata->state != STATE_HALTED) { |
hostdata | 2041 | drivers/scsi/53c7,8xx.c | bp->next = hostdata->breakpoints; |
hostdata | 2042 | drivers/scsi/53c7,8xx.c | hostdata->breakpoints = bp->next; |
hostdata | 2043 | drivers/scsi/53c7,8xx.c | memcpy ((void *) bp->address, (void *) hostdata->E_debug_break, 8); |
hostdata | 2075 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostadata *hostdata; |
hostdata | 2084 | drivers/scsi/53c7,8xx.c | hostdata = (struct NCR53c7x0_hostdata *) host->hostdata; |
hostdata | 2132 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 2133 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 2138 | drivers/scsi/53c7,8xx.c | left = (hostdata->debug_buf + hostdata->debug_size - 1) - |
hostdata | 2139 | drivers/scsi/53c7,8xx.c | hostdata->debug_write; |
hostdata | 2141 | drivers/scsi/53c7,8xx.c | memcpy (hostdata->debug_write, buf, copy); |
hostdata | 2144 | drivers/scsi/53c7,8xx.c | hostdata->debug_count += copy; |
hostdata | 2145 | drivers/scsi/53c7,8xx.c | if ((hostdata->debug_write += copy) == |
hostdata | 2146 | drivers/scsi/53c7,8xx.c | (hostdata->debug_buf + hostdata->debug_size)) |
hostdata | 2147 | drivers/scsi/53c7,8xx.c | hosdata->debug_write = hostdata->debug_buf; |
hostdata | 2168 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 2169 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 2185 | drivers/scsi/53c7,8xx.c | NCR53c7x0_write8(hostdata->dmode, hostdata->saved_dmode & ~DMODE_MAN); |
hostdata | 2197 | drivers/scsi/53c7,8xx.c | NCR53c7x0_write8(RESPID_REG_800, hostdata->this_id_mask); |
hostdata | 2223 | drivers/scsi/53c7,8xx.c | NCR53c7x0_write8(SIEN0_REG_800, ((hostdata->options & OPTION_PARITY) ? |
hostdata | 2233 | drivers/scsi/53c7,8xx.c | NCR53c7x0_write8(DCNTL_REG, hostdata->saved_dcntl); |
hostdata | 2234 | drivers/scsi/53c7,8xx.c | NCR53c7x0_write8(CTEST4_REG_800, hostdata->saved_ctest4); |
hostdata | 2260 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 2261 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 2306 | drivers/scsi/53c7,8xx.c | hostdata->options |= OPTION_DEBUG_INTR; |
hostdata | 2355 | drivers/scsi/53c7,8xx.c | size = ((sizeof (struct NCR53c7x0_cmd) + (hostdata->dsa_end - |
hostdata | 2356 | drivers/scsi/53c7,8xx.c | hostdata->dsa_start) + 2 * sizeof(long) * |
hostdata | 2359 | drivers/scsi/53c7,8xx.c | size = sizeof (struct NCR53c7x0_cmd) + (hostdata->dsa_end - |
hostdata | 2360 | drivers/scsi/53c7,8xx.c | hostdata->dsa_start) + 2 * sizeof(long) * |
hostdata | 2411 | drivers/scsi/53c7,8xx.c | tmp->data_transfer_start = tmp->dsa + (hostdata->dsa_end - |
hostdata | 2412 | drivers/scsi/53c7,8xx.c | hostdata->dsa_start) / sizeof(long); |
hostdata | 2428 | drivers/scsi/53c7,8xx.c | if (hostdata->dsa_fixup) |
hostdata | 2429 | drivers/scsi/53c7,8xx.c | hostdata->dsa_fixup(tmp); |
hostdata | 2433 | drivers/scsi/53c7,8xx.c | patch_dsa_32(tmp->dsa, dsa_select, 0, hostdata->sync[cmd->target]. |
hostdata | 2449 | drivers/scsi/53c7,8xx.c | cmd_dataout : hostdata->script + hostdata->E_other_transfer / |
hostdata | 2452 | drivers/scsi/53c7,8xx.c | cmd_datain : hostdata->script + hostdata->E_other_transfer / |
hostdata | 2518 | drivers/scsi/53c7,8xx.c | cmd_datain[3] = hostdata->script + hostdata->E_msg_in / |
hostdata | 2532 | drivers/scsi/53c7,8xx.c | cmd_dataout[3] = hostdata->script + hostdata->E_msg_in / |
hostdata | 2550 | drivers/scsi/53c7,8xx.c | cmd_datain[1] = hostdata->script + hostdata->E_other_transfer |
hostdata | 2569 | drivers/scsi/53c7,8xx.c | cmd_dataout[1] = hostdata->script + hostdata->E_other_transfer |
hostdata | 2603 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 2604 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 2609 | drivers/scsi/53c7,8xx.c | if (((hostdata->options & (OPTION_DEBUG_INIT_ONLY|OPTION_DEBUG_PROBE_ONLY)) || |
hostdata | 2610 | drivers/scsi/53c7,8xx.c | ((hostdata->options & OPTION_DEBUG_TARGET_LIMIT) && |
hostdata | 2611 | drivers/scsi/53c7,8xx.c | !(hostdata->debug_lun_limit[cmd->target] & (1 << cmd->lun)))) || |
hostdata | 2620 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_NCOMMANDS_LIMIT) { |
hostdata | 2621 | drivers/scsi/53c7,8xx.c | if (hostdata->debug_count_limit == 0) { |
hostdata | 2626 | drivers/scsi/53c7,8xx.c | } else if (hostdata->debug_count_limit != -1) |
hostdata | 2627 | drivers/scsi/53c7,8xx.c | --hostdata->debug_count_limit; |
hostdata | 2630 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_READ_ONLY) { |
hostdata | 2682 | drivers/scsi/53c7,8xx.c | target_was_busy = hostdata->busy[cmd->target][cmd->lun] |
hostdata | 2688 | drivers/scsi/53c7,8xx.c | if (!(hostdata->options & OPTION_700) && |
hostdata | 2691 | drivers/scsi/53c7,8xx.c | - hostdata->dsa_start; |
hostdata | 2697 | drivers/scsi/53c7,8xx.c | if (hostdata->running_list) |
hostdata | 2698 | drivers/scsi/53c7,8xx.c | hostdata->running_list->prev = tmp; |
hostdata | 2700 | drivers/scsi/53c7,8xx.c | tmp->next = hostdata->running_list; |
hostdata | 2702 | drivers/scsi/53c7,8xx.c | if (!hostdata->running_list) |
hostdata | 2703 | drivers/scsi/53c7,8xx.c | hostdata->running_list = tmp; |
hostdata | 2706 | drivers/scsi/53c7,8xx.c | if (hostdata->idle) { |
hostdata | 2707 | drivers/scsi/53c7,8xx.c | hostdata->idle = 0; |
hostdata | 2708 | drivers/scsi/53c7,8xx.c | hostdata->state = STATE_RUNNING; |
hostdata | 2709 | drivers/scsi/53c7,8xx.c | NCR53c7x0_write32 (DSP_REG, ((unsigned long) hostdata->script) + |
hostdata | 2710 | drivers/scsi/53c7,8xx.c | hostdata->E_schedule); |
hostdata | 2721 | drivers/scsi/53c7,8xx.c | if (!hostdata->issue_dsa_head) { |
hostdata | 2725 | drivers/scsi/53c7,8xx.c | hostdata->issue_dsa_tail = hostdata->issue_dsa_head = dsa; |
hostdata | 2726 | drivers/scsi/53c7,8xx.c | NCR53c7x0_write8(hostdata->istat, |
hostdata | 2727 | drivers/scsi/53c7,8xx.c | NCR53c7x0_read8(hostdata->istat) | ISTAT_10_SIGP); |
hostdata | 2739 | drivers/scsi/53c7,8xx.c | hostdata->issue_dsa_tail = *((unsigned char **) |
hostdata | 2740 | drivers/scsi/53c7,8xx.c | (hostdata->issue_dsa_tail + hostdata->dsa_next)) = dsa; |
hostdata | 2752 | drivers/scsi/53c7,8xx.c | if (hostdata->issue_dsa_head) |
hostdata | 2762 | drivers/scsi/53c7,8xx.c | for (tmp = (struct NCR53c7x0_cmd *) hostdata->issue_queue; |
hostdata | 2788 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = |
hostdata | 2789 | drivers/scsi/53c7,8xx.c | (struct NCR53c7x0_hostdata *) host->hostdata; |
hostdata | 2797 | drivers/scsi/53c7,8xx.c | if ((hostdata->chip / 100) == 8) { |
hostdata | 2806 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) |
hostdata | 2811 | drivers/scsi/53c7,8xx.c | if ((((hostdata->chip / 100) == 8) && (sist1 & SIST1_800_STO)) || |
hostdata | 2812 | drivers/scsi/53c7,8xx.c | (((hostdata->chip / 100) != 8) && sstat0_sist0 && SSTAT0_700_STO)) { |
hostdata | 2814 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) { |
hostdata | 2833 | drivers/scsi/53c7,8xx.c | hostdata->idle = 1; |
hostdata | 2834 | drivers/scsi/53c7,8xx.c | hostdata->expecting_sto = 0; |
hostdata | 2836 | drivers/scsi/53c7,8xx.c | if (hostdata->test_running) { |
hostdata | 2837 | drivers/scsi/53c7,8xx.c | hostdata->test_running = 0; |
hostdata | 2838 | drivers/scsi/53c7,8xx.c | hostdata->test_completed = 3; |
hostdata | 2843 | drivers/scsi/53c7,8xx.c | hostdata->intrs = 0; |
hostdata | 2855 | drivers/scsi/53c7,8xx.c | hostdata->dsp = hostdata->script + hostdata->E_schedule / |
hostdata | 2857 | drivers/scsi/53c7,8xx.c | hostdata->dsp_changed = 1; |
hostdata | 2872 | drivers/scsi/53c7,8xx.c | hostdata->dsp = hostdata->script + hostdata->E_initiator_abort / |
hostdata | 2874 | drivers/scsi/53c7,8xx.c | hostdata->dsp_changed = 1; |
hostdata | 2882 | drivers/scsi/53c7,8xx.c | hostdata->dsp = hostdata->script + hostdata->E_initiator_abort / |
hostdata | 2884 | drivers/scsi/53c7,8xx.c | hostdata->dsp_changed = 1; |
hostdata | 2890 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) |
hostdata | 2902 | drivers/scsi/53c7,8xx.c | if (!hostdata->dstat_valid) { |
hostdata | 2903 | drivers/scsi/53c7,8xx.c | hostdata->dstat = NCR53c7x0_read8(DSTAT_REG); |
hostdata | 2904 | drivers/scsi/53c7,8xx.c | hostdata->dstat_valid = 1; |
hostdata | 2908 | drivers/scsi/53c7,8xx.c | if (!(hostdata->dstat & DSTAT_DFE)) { |
hostdata | 2913 | drivers/scsi/53c7,8xx.c | while (!((hostdata->dstat = NCR53c7x0_read8(DSTAT_REG)) & |
hostdata | 2944 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata; /* host->hostdata */ |
hostdata | 2965 | drivers/scsi/53c7,8xx.c | for (host = first_host; host; host = hostdata->next ? |
hostdata | 2966 | drivers/scsi/53c7,8xx.c | hostdata->next : NULL) { |
hostdata | 2969 | drivers/scsi/53c7,8xx.c | hostdata = (struct NCR53c7x0_hostdata *) host->hostdata; |
hostdata | 2970 | drivers/scsi/53c7,8xx.c | hostdata->dsp_changed = 0; |
hostdata | 2975 | drivers/scsi/53c7,8xx.c | hostdata->dstat_valid = 0; |
hostdata | 2981 | drivers/scsi/53c7,8xx.c | istat = NCR53c7x0_read8(hostdata->istat); |
hostdata | 2990 | drivers/scsi/53c7,8xx.c | if ((hostdata->options & OPTION_INTFLY) && |
hostdata | 2991 | drivers/scsi/53c7,8xx.c | ((hostdata->chip / 100) == 8 && (istat & ISTAT_800_INTF))) { |
hostdata | 3000 | drivers/scsi/53c7,8xx.c | NCR53c7x0_write8(hostdata->istat, istat|ISTAT_800_INTF); |
hostdata | 3002 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) |
hostdata | 3016 | drivers/scsi/53c7,8xx.c | &(hostdata->running_list), cmd = (struct NCR53c7x0_cmd *) |
hostdata | 3017 | drivers/scsi/53c7,8xx.c | hostdata->running_list; cmd ; cmd_prev_ptr = |
hostdata | 3051 | drivers/scsi/53c7,8xx.c | if (--hostdata->busy[tmp->target][tmp->lun]) { |
hostdata | 3069 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) { |
hostdata | 3077 | drivers/scsi/53c7,8xx.c | hostdata->options &= ~OPTION_DEBUG_INTR; |
hostdata | 3094 | drivers/scsi/53c7,8xx.c | hostdata->state = STATE_HALTED; |
hostdata | 3105 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_700) { |
hostdata | 3106 | drivers/scsi/53c7,8xx.c | cmd = (struct NCR53c7x0_cmd *) hostdata->current; |
hostdata | 3110 | drivers/scsi/53c7,8xx.c | hostdata->running_list; cmd && |
hostdata | 3111 | drivers/scsi/53c7,8xx.c | (dsa + (hostdata->dsa_start / sizeof(long))) != |
hostdata | 3115 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) { |
hostdata | 3127 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) |
hostdata | 3133 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) |
hostdata | 3138 | drivers/scsi/53c7,8xx.c | if (!hostdata->dstat_valid) { |
hostdata | 3139 | drivers/scsi/53c7,8xx.c | hostdata->dstat = NCR53c7x0_read8(DSTAT_REG); |
hostdata | 3140 | drivers/scsi/53c7,8xx.c | hostdata->dstat_valid = 1; |
hostdata | 3145 | drivers/scsi/53c7,8xx.c | if (!(hostdata->dstat & DSTAT_DFE)) { |
hostdata | 3150 | drivers/scsi/53c7,8xx.c | while (!((hostdata->dstat = NCR53c7x0_read8(DSTAT_REG)) & |
hostdata | 3165 | drivers/scsi/53c7,8xx.c | if (hostdata->intrs != -1) |
hostdata | 3166 | drivers/scsi/53c7,8xx.c | hostdata->intrs++; |
hostdata | 3168 | drivers/scsi/53c7,8xx.c | if (hostdata->intrs > 4) { |
hostdata | 3170 | drivers/scsi/53c7,8xx.c | hostdata->idle = 1; |
hostdata | 3171 | drivers/scsi/53c7,8xx.c | hostdata->options |= OPTION_DEBUG_INIT_ONLY; |
hostdata | 3176 | drivers/scsi/53c7,8xx.c | if (!hostdata->idle && hostdata->state == STATE_HALTED) { |
hostdata | 3177 | drivers/scsi/53c7,8xx.c | if (!hostdata->dsp_changed) { |
hostdata | 3178 | drivers/scsi/53c7,8xx.c | hostdata->dsp = (unsigned long *) NCR53c7x0_read32(DSP_REG); |
hostdata | 3183 | drivers/scsi/53c7,8xx.c | (long) hostdata->dsp); |
hostdata | 3186 | drivers/scsi/53c7,8xx.c | hostdata->state = STATE_RUNNING; |
hostdata | 3187 | drivers/scsi/53c7,8xx.c | NCR53c7x0_write32 (DSP_REG, (unsigned long) hostdata->dsp); |
hostdata | 3207 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 3208 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 3210 | drivers/scsi/53c7,8xx.c | hostdata->dsp = hostdata->script + hostdata->E_initiator_abort / |
hostdata | 3212 | drivers/scsi/53c7,8xx.c | hostdata->dsp_changed = 1; |
hostdata | 3243 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 3244 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 3325 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) |
hostdata | 3327 | drivers/scsi/53c7,8xx.c | hostdata->dsp = hostdata->script + hostdata->E_command_complete / |
hostdata | 3329 | drivers/scsi/53c7,8xx.c | hostdata->dsp_changed = 1; |
hostdata | 3339 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) |
hostdata | 3347 | drivers/scsi/53c7,8xx.c | hostdata->dsp = hostdata->script + hostdata->E_msg_in / |
hostdata | 3349 | drivers/scsi/53c7,8xx.c | hostdata->dsp_changed = 1; |
hostdata | 3398 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 3399 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 3411 | drivers/scsi/53c7,8xx.c | if (!hostdata->dstat_valid) { |
hostdata | 3412 | drivers/scsi/53c7,8xx.c | hostdata->dstat = NCR53c7x0_read8(DSTAT_REG); |
hostdata | 3413 | drivers/scsi/53c7,8xx.c | hostdata->dstat_valid = 1; |
hostdata | 3416 | drivers/scsi/53c7,8xx.c | dstat = hostdata->dstat; |
hostdata | 3418 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) |
hostdata | 3441 | drivers/scsi/53c7,8xx.c | if ((hostdata->options & OPTION_700) && (hostdata->state == |
hostdata | 3459 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_TRACE) { |
hostdata | 3460 | drivers/scsi/53c7,8xx.c | } else if (hostdata->options & OPTION_DEBUG_SINGLE) { |
hostdata | 3499 | drivers/scsi/53c7,8xx.c | if (((dsp >= (hostdata->script + hostdata->E_select / sizeof(long))) && |
hostdata | 3500 | drivers/scsi/53c7,8xx.c | (dsp <= (hostdata->script + hostdata->E_select_msgout / |
hostdata | 3501 | drivers/scsi/53c7,8xx.c | sizeof(long) + 8))) || (hostdata->test_running == 2)) { |
hostdata | 3502 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) |
hostdata | 3505 | drivers/scsi/53c7,8xx.c | if (hostdata->expecting_iid) { |
hostdata | 3506 | drivers/scsi/53c7,8xx.c | hostdata->expecting_iid = 0; |
hostdata | 3507 | drivers/scsi/53c7,8xx.c | hostdata->idle = 1; |
hostdata | 3508 | drivers/scsi/53c7,8xx.c | if (hostdata->test_running == 2) { |
hostdata | 3509 | drivers/scsi/53c7,8xx.c | hostdata->test_running = 0; |
hostdata | 3510 | drivers/scsi/53c7,8xx.c | hostdata->test_completed = 3; |
hostdata | 3514 | drivers/scsi/53c7,8xx.c | hostdata->expecting_sto = 1; |
hostdata | 3524 | drivers/scsi/53c7,8xx.c | NCR53c7x0_read32(TEMP_REG), (int) NCR53c7x0_read8(hostdata->dmode), |
hostdata | 3540 | drivers/scsi/53c7,8xx.c | NCR53c7x0_read32(TEMP_REG), (int) NCR53c7x0_read8(hostdata->dmode)); |
hostdata | 3548 | drivers/scsi/53c7,8xx.c | hostdata->idle = 1; |
hostdata | 3549 | drivers/scsi/53c7,8xx.c | hostdata->options |= OPTION_DEBUG_INIT_ONLY; |
hostdata | 3563 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) |
hostdata | 3565 | drivers/scsi/53c7,8xx.c | switch ((tmp = hostdata->dstat_sir_intr (host, cmd))) { |
hostdata | 3654 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 3655 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 3670 | drivers/scsi/53c7,8xx.c | for (curr = hostdata->issue_queue, prev = &(hostdata->issue_queue); |
hostdata | 3700 | drivers/scsi/53c7,8xx.c | for (curr = hostdata->running_list, prev = &(hostdata->running_list); |
hostdata | 3754 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = host ? |
hostdata | 3755 | drivers/scsi/53c7,8xx.c | (struct NCR53c7x0_hostdata *) host->hostdata : NULL; |
hostdata | 3770 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 3771 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 3779 | drivers/scsi/53c7,8xx.c | host->host_no, (unsigned) dsa, hostdata->dsa_msgout, |
hostdata | 3780 | drivers/scsi/53c7,8xx.c | dsa[hostdata->dsa_msgout / sizeof(long)], |
hostdata | 3781 | drivers/scsi/53c7,8xx.c | dsa[hostdata->dsa_msgout / sizeof(long) + 1]); |
hostdata | 3783 | drivers/scsi/53c7,8xx.c | for (i = dsa[hostdata->dsa_msgout / sizeof(long)], |
hostdata | 3784 | drivers/scsi/53c7,8xx.c | ptr = (char *) dsa[hostdata->dsa_msgout / sizeof(long) + 1]; i > 0; |
hostdata | 1261 | drivers/scsi/53c7,8xx.h | host->hostdata)-> options & OPTION_MEMORY_MAPPED |
hostdata | 1300 | drivers/scsi/53c7,8xx.h | if (hostdata->options & OPTION_DEBUG_FIXUP) \ |
hostdata | 1318 | drivers/scsi/53c7,8xx.h | (dsa)[(hostdata->##symbol - hostdata->dsa_start) / sizeof(long) \ |
hostdata | 1320 | drivers/scsi/53c7,8xx.h | if (hostdata->options & OPTION_DEBUG_DSA) \ |
hostdata | 1322 | drivers/scsi/53c7,8xx.h | #dsa, #symbol, (long) hostdata->##symbol, \ |
hostdata | 609 | drivers/scsi/NCR5380.c | struct NCR5380_hostdata *hostdata = (struct NCR5380_hostdata *) |
hostdata | 610 | drivers/scsi/NCR5380.c | instance->hostdata; |
hostdata | 634 | drivers/scsi/NCR5380.c | NCR5380_write(SELECT_ENABLE_REG, hostdata->id_mask); |
hostdata | 635 | drivers/scsi/NCR5380.c | NCR5380_write(OUTPUT_DATA_REG, hostdata->id_mask); |
hostdata | 696 | drivers/scsi/NCR5380.c | if (hostdata->flags & FLAG_NCR53C400) { |
hostdata | 712 | drivers/scsi/NCR5380.c | struct NCR5380_hostdata *hostdata = (struct NCR5380_hostdata *) |
hostdata | 713 | drivers/scsi/NCR5380.c | instance->hostdata; |
hostdata | 726 | drivers/scsi/NCR5380.c | if (!hostdata->connected) { |
hostdata | 730 | drivers/scsi/NCR5380.c | print_Scsi_Cmnd ((Scsi_Cmnd *) hostdata->connected); |
hostdata | 735 | drivers/scsi/NCR5380.c | for (ptr = (Scsi_Cmnd *) hostdata->issue_queue; ptr; |
hostdata | 741 | drivers/scsi/NCR5380.c | for (ptr = (Scsi_Cmnd *) hostdata->disconnected_queue; ptr; |
hostdata | 765 | drivers/scsi/NCR5380.c | struct NCR5380_hostdata *hostdata = (struct NCR5380_hostdata *) |
hostdata | 766 | drivers/scsi/NCR5380.c | instance->hostdata; |
hostdata | 780 | drivers/scsi/NCR5380.c | hostdata->aborted = 0; |
hostdata | 781 | drivers/scsi/NCR5380.c | hostdata->id_mask = 1 << instance->this_id; |
hostdata | 782 | drivers/scsi/NCR5380.c | for (i = hostdata->id_mask; i <= 0x80; i <<= 1) |
hostdata | 783 | drivers/scsi/NCR5380.c | if (i > hostdata->id_mask) |
hostdata | 784 | drivers/scsi/NCR5380.c | hostdata->id_higher_mask |= i; |
hostdata | 786 | drivers/scsi/NCR5380.c | hostdata->busy[i] = 0; |
hostdata | 788 | drivers/scsi/NCR5380.c | hostdata->dmalen = 0; |
hostdata | 790 | drivers/scsi/NCR5380.c | hostdata->targets_present = 0; |
hostdata | 791 | drivers/scsi/NCR5380.c | hostdata->connected = NULL; |
hostdata | 792 | drivers/scsi/NCR5380.c | hostdata->issue_queue = NULL; |
hostdata | 793 | drivers/scsi/NCR5380.c | hostdata->disconnected_queue = NULL; |
hostdata | 794 | drivers/scsi/NCR5380.c | hostdata->flags = FLAG_CHECK_LAST_BYTE_SENT | flags; |
hostdata | 803 | drivers/scsi/NCR5380.c | hostdata->time_expires = 0; |
hostdata | 804 | drivers/scsi/NCR5380.c | hostdata->next_timer = NULL; |
hostdata | 819 | drivers/scsi/NCR5380.c | if (hostdata->flags & FLAG_NCR53C400) { |
hostdata | 848 | drivers/scsi/NCR5380.c | struct NCR5380_hostdata *hostdata = (struct NCR5380_hostdata *) |
hostdata | 849 | drivers/scsi/NCR5380.c | cmd->host->hostdata; |
hostdata | 884 | drivers/scsi/NCR5380.c | if (!(hostdata->issue_queue) || (cmd->cmnd[0] == REQUEST_SENSE)) { |
hostdata | 885 | drivers/scsi/NCR5380.c | cmd->host_scribble = (unsigned char *) hostdata->issue_queue; |
hostdata | 886 | drivers/scsi/NCR5380.c | hostdata->issue_queue = cmd; |
hostdata | 888 | drivers/scsi/NCR5380.c | for (tmp = (Scsi_Cmnd *) hostdata->issue_queue; tmp->host_scribble; |
hostdata | 917 | drivers/scsi/NCR5380.c | struct NCR5380_hostdata *hostdata; |
hostdata | 937 | drivers/scsi/NCR5380.c | hostdata = (struct NCR5380_hostdata *) instance->hostdata; |
hostdata | 939 | drivers/scsi/NCR5380.c | if (!hostdata->connected) { |
hostdata | 947 | drivers/scsi/NCR5380.c | for (tmp = (Scsi_Cmnd *) hostdata->issue_queue, |
hostdata | 952 | drivers/scsi/NCR5380.c | if (!(hostdata->busy[tmp->target] & (1 << tmp->lun))) { |
hostdata | 956 | drivers/scsi/NCR5380.c | hostdata->issue_queue = (Scsi_Cmnd *) tmp->host_scribble; |
hostdata | 986 | drivers/scsi/NCR5380.c | hostdata->issue_queue; |
hostdata | 987 | drivers/scsi/NCR5380.c | hostdata->issue_queue = tmp; |
hostdata | 997 | drivers/scsi/NCR5380.c | if (hostdata->connected |
hostdata | 999 | drivers/scsi/NCR5380.c | && !hostdata->dmalen |
hostdata | 1002 | drivers/scsi/NCR5380.c | && (!hostdata->time_expires || hostdata->time_expires >= jiffies) |
hostdata | 1092 | drivers/scsi/NCR5380.c | if (!hostdata->connected) |
hostdata | 1096 | drivers/scsi/NCR5380.c | transfered = (hostdata->dmalen - NCR5380_dma_residual(instance)); |
hostdata | 1097 | drivers/scsi/NCR5380.c | hostdata->connected->SCp.this_residual -= transferred; |
hostdata | 1098 | drivers/scsi/NCR5380.c | hostdata->connected->SCp.ptr += transferred; |
hostdata | 1099 | drivers/scsi/NCR5380.c | hostdata->dmalen = 0; |
hostdata | 1167 | drivers/scsi/NCR5380.c | struct NCR5380_hostdata *hostdata = (struct NCR5380_hostdata*) |
hostdata | 1168 | drivers/scsi/NCR5380.c | instance->hostdata; |
hostdata | 1175 | drivers/scsi/NCR5380.c | hostdata->restart_select = 0; |
hostdata | 1195 | drivers/scsi/NCR5380.c | NCR5380_write(OUTPUT_DATA_REG, hostdata->id_mask); |
hostdata | 1212 | drivers/scsi/NCR5380.c | NCR5380_write(SELECT_ENABLE_REG, hostdata->id_mask); |
hostdata | 1237 | drivers/scsi/NCR5380.c | (NCR5380_read(CURRENT_SCSI_DATA_REG) & hostdata->id_higher_mask) || |
hostdata | 1278 | drivers/scsi/NCR5380.c | NCR5380_write(OUTPUT_DATA_REG, (hostdata->id_mask | (1 << cmd->target))); |
hostdata | 1342 | drivers/scsi/NCR5380.c | NCR5380_write(SELECT_ENABLE_REG, hostdata->id_mask); |
hostdata | 1350 | drivers/scsi/NCR5380.c | if (hostdata->targets_present & (1 << cmd->target)) { |
hostdata | 1352 | drivers/scsi/NCR5380.c | if (hostdata->restart_select) |
hostdata | 1357 | drivers/scsi/NCR5380.c | NCR5380_write(SELECT_ENABLE_REG, hostdata->id_mask); |
hostdata | 1362 | drivers/scsi/NCR5380.c | NCR5380_write(SELECT_ENABLE_REG, hostdata->id_mask); |
hostdata | 1367 | drivers/scsi/NCR5380.c | NCR5380_write(SELECT_ENABLE_REG, hostdata->id_mask); |
hostdata | 1371 | drivers/scsi/NCR5380.c | hostdata->targets_present |= (1 << cmd->target); |
hostdata | 1410 | drivers/scsi/NCR5380.c | hostdata->last_message = SIMPLE_QUEUE_TAG; |
hostdata | 1427 | drivers/scsi/NCR5380.c | hostdata->connected = cmd; |
hostdata | 1431 | drivers/scsi/NCR5380.c | hostdata->busy[cmd->target] |= (1 << cmd->lun); |
hostdata | 1617 | drivers/scsi/NCR5380.c | struct NCR5380_hostdata *hostdata = (struct NCR5380_hostdata *) |
hostdata | 1618 | drivers/scsi/NCR5380.c | instance->hostdata; |
hostdata | 1637 | drivers/scsi/NCR5380.c | hostdata->dma_len = (p & SR_IO) ? |
hostdata | 1835 | drivers/scsi/NCR5380.c | if (!(hostdata->flags & FLAG_HAS_LAST_BYTE_SENT)) { |
hostdata | 1860 | drivers/scsi/NCR5380.c | if (hostdata->flags & FLAG_CHECK_LAST_BYTE_SENT) { |
hostdata | 1861 | drivers/scsi/NCR5380.c | hostdata->flags &= ~FLAG_CHECK_LAST_BYTE_SENT; |
hostdata | 1863 | drivers/scsi/NCR5380.c | hostdata->flags |= FLAG_HAS_LAST_BYTE_SENT; |
hostdata | 1911 | drivers/scsi/NCR5380.c | struct NCR5380_hostdata *hostdata = (struct NCR5380_hostdata *) |
hostdata | 1912 | drivers/scsi/NCR5380.c | instance->hostdata; |
hostdata | 1918 | drivers/scsi/NCR5380.c | Scsi_Cmnd *cmd = (Scsi_Cmnd *) hostdata->connected; |
hostdata | 2074 | drivers/scsi/NCR5380.c | cmd = hostdata->connected; |
hostdata | 2081 | drivers/scsi/NCR5380.c | hostdata->connected = NULL; |
hostdata | 2086 | drivers/scsi/NCR5380.c | hostdata->busy[cmd->target] &= ~(1 << cmd->lun); |
hostdata | 2130 | drivers/scsi/NCR5380.c | hostdata->issue_queue; |
hostdata | 2131 | drivers/scsi/NCR5380.c | hostdata->issue_queue = (Scsi_Cmnd *) cmd; |
hostdata | 2140 | drivers/scsi/NCR5380.c | NCR5380_write(SELECT_ENABLE_REG, hostdata->id_mask); |
hostdata | 2148 | drivers/scsi/NCR5380.c | !hostdata->connected); |
hostdata | 2153 | drivers/scsi/NCR5380.c | switch (hostdata->last_message) { |
hostdata | 2158 | drivers/scsi/NCR5380.c | hostdata->busy[cmd->target] |= (1 << cmd->lun); |
hostdata | 2169 | drivers/scsi/NCR5380.c | hostdata->disconnected_queue; |
hostdata | 2170 | drivers/scsi/NCR5380.c | hostdata->connected = NULL; |
hostdata | 2171 | drivers/scsi/NCR5380.c | hostdata->disconnected_queue = cmd; |
hostdata | 2185 | drivers/scsi/NCR5380.c | NCR5380_write(SELECT_ENABLE_REG, hostdata->id_mask); |
hostdata | 2188 | drivers/scsi/NCR5380.c | !hostdata->connected); |
hostdata | 2296 | drivers/scsi/NCR5380.c | hostdata->last_message = msgout; |
hostdata | 2299 | drivers/scsi/NCR5380.c | hostdata->busy[cmd->target] &= ~(1 << cmd->lun); |
hostdata | 2300 | drivers/scsi/NCR5380.c | hostdata->connected = NULL; |
hostdata | 2303 | drivers/scsi/NCR5380.c | NCR5380_write(SELECT_ENABLE_REG, hostdata->id_mask); |
hostdata | 2320 | drivers/scsi/NCR5380.c | hostdata->time_expires = jiffies + USLEEP_SLEEP; |
hostdata | 2323 | drivers/scsi/NCR5380.c | hostdata->time_expires); |
hostdata | 2345 | drivers/scsi/NCR5380.c | if (!disconnect && hostdata->time_expires && jiffies > |
hostdata | 2346 | drivers/scsi/NCR5380.c | hostdata->time_expires) { |
hostdata | 2347 | drivers/scsi/NCR5380.c | hostdata->time_expires = jiffies + USLEEP_SLEEP; |
hostdata | 2350 | drivers/scsi/NCR5380.c | hostdata->time_expires); |
hostdata | 2374 | drivers/scsi/NCR5380.c | struct NCR5380_hostdata *hostdata = (struct NCR5380_hostdata *) |
hostdata | 2375 | drivers/scsi/NCR5380.c | instance->hostdata; |
hostdata | 2394 | drivers/scsi/NCR5380.c | hostdata->restart_select = 1; |
hostdata | 2396 | drivers/scsi/NCR5380.c | target_mask = NCR5380_read(CURRENT_SCSI_DATA_REG) & ~(hostdata->id_mask); |
hostdata | 2454 | drivers/scsi/NCR5380.c | for (tmp = (Scsi_Cmnd *) hostdata->disconnected_queue, prev = NULL; |
hostdata | 2464 | drivers/scsi/NCR5380.c | hostdata->disconnected_queue = (Scsi_Cmnd *) tmp->host_scribble; |
hostdata | 2493 | drivers/scsi/NCR5380.c | hostdata->connected = tmp; |
hostdata | 2516 | drivers/scsi/NCR5380.c | struct NCR5380_hostdata *hostdata = (struct NCR5380_hostdata * |
hostdata | 2517 | drivers/scsi/NCR5380.c | instance->hostdata); |
hostdata | 2541 | drivers/scsi/NCR5380.c | if (!(hostdata->connected->SCp.phase & SR_CD)) { |
hostdata | 2543 | drivers/scsi/NCR5380.c | hostdata->connected->SCp.this_residual -= transferred; |
hostdata | 2544 | drivers/scsi/NCR5380.c | hostdata->connected->SCp.ptr += transferred; |
hostdata | 2572 | drivers/scsi/NCR5380.c | struct NCR5380_hostdata *hostdata = (struct NCR5380_hostdata *) |
hostdata | 2573 | drivers/scsi/NCR5380.c | instance->hostdata; |
hostdata | 2599 | drivers/scsi/NCR5380.c | if (hostdata->connected == cmd) { |
hostdata | 2603 | drivers/scsi/NCR5380.c | hostdata->aborted = 1; |
hostdata | 2629 | drivers/scsi/NCR5380.c | for (prev = (Scsi_Cmnd **) &(hostdata->issue_queue), |
hostdata | 2630 | drivers/scsi/NCR5380.c | tmp = (Scsi_Cmnd *) hostdata->issue_queue; |
hostdata | 2657 | drivers/scsi/NCR5380.c | if (hostdata->connected) { |
hostdata | 2690 | drivers/scsi/NCR5380.c | for (tmp = (Scsi_Cmnd *) hostdata->disconnected_queue; tmp; |
hostdata | 2713 | drivers/scsi/NCR5380.c | for (prev = (Scsi_Cmnd **) &(hostdata->disconnected_queue), |
hostdata | 2714 | drivers/scsi/NCR5380.c | tmp = (Scsi_Cmnd *) hostdata->disconnected_queue; |
hostdata | 101 | drivers/scsi/aha1542.c | #define HOSTDATA(host) ((struct aha1542_hostdata *) &host->hostdata) |
hostdata | 464 | drivers/scsi/aha274x.c | p = (struct aha274x_host *)aha274x_boards[irq]->hostdata; |
hostdata | 941 | drivers/scsi/aha274x.c | p = (struct aha274x_host *)host->hostdata; |
hostdata | 1163 | drivers/scsi/aha274x.c | p = (struct aha274x_host *)cmd->host->hostdata; |
hostdata | 1270 | drivers/scsi/aha274x.c | p = (struct aha274x_host *)cmd->host->hostdata; |
hostdata | 1393 | drivers/scsi/aha274x.c | p = (struct aha274x_host *)cmd->host->hostdata; |
hostdata | 173 | drivers/scsi/buslogic.c | #define HOSTDATA(host) ((struct hostdata *)&(host)->hostdata) |
hostdata | 1156 | drivers/scsi/buslogic.c | shpnt = scsi_register(tpnt, sizeof (struct hostdata)); |
hostdata | 251 | drivers/scsi/eata.c | #define HD(board) ((struct hostdata *) &sh[board]->hostdata) |
hostdata | 378 | drivers/scsi/eata.c | sh[j] = scsi_register(tpnt, sizeof(struct hostdata)); |
hostdata | 390 | drivers/scsi/eata.c | memset(HD(j), 0, sizeof(struct hostdata)); |
hostdata | 490 | drivers/scsi/eata.c | j = ((struct hostdata *) SCpnt->host->hostdata)->board_number; |
hostdata | 590 | drivers/scsi/eata.c | j = ((struct hostdata *) SCarg->host->hostdata)->board_number; |
hostdata | 650 | drivers/scsi/eata.c | j = ((struct hostdata *) SCarg->host->hostdata)->board_number; |
hostdata | 277 | drivers/scsi/hosts.h | int hostdata[0]; /* Used for storage of host specific stuff */ |
hostdata | 286 | drivers/scsi/scsi.h | void *hostdata; /* available to low-level driver */ |
hostdata | 245 | drivers/scsi/u14-34f.c | #define HD(board) ((struct hostdata *) &sh[board]->hostdata) |
hostdata | 333 | drivers/scsi/u14-34f.c | sh[j] = scsi_register(tpnt, sizeof(struct hostdata)); |
hostdata | 357 | drivers/scsi/u14-34f.c | memset(HD(j), 0, sizeof(struct hostdata)); |
hostdata | 448 | drivers/scsi/u14-34f.c | j = ((struct hostdata *) SCpnt->host->hostdata)->board_number; |
hostdata | 539 | drivers/scsi/u14-34f.c | j = ((struct hostdata *) SCarg->host->hostdata)->board_number; |
hostdata | 599 | drivers/scsi/u14-34f.c | j = ((struct hostdata *) SCarg->host->hostdata)->board_number; |
hostdata | 901 | drivers/scsi/wd7000.c | Adapter *host = (Adapter *) SCpnt->host->hostdata; |
hostdata | 1138 | drivers/scsi/wd7000.c | host = (Adapter *) sh->hostdata; |
hostdata | 1188 | drivers/scsi/wd7000.c | Adapter *host = (Adapter *) SCpnt->host->hostdata; |