tag | line | file | source code |
hostdata | 410 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 411 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 415 | drivers/scsi/53c7,8xx.c | switch (hostdata->chip) { |
hostdata | 420 | drivers/scsi/53c7,8xx.c | hostdata->dstat_sir_intr = NCR53c8x0_dstat_sir_intr; |
hostdata | 421 | drivers/scsi/53c7,8xx.c | hostdata->init_save_regs = NULL; |
hostdata | 422 | drivers/scsi/53c7,8xx.c | hostdata->dsa_fixup = NCR53c8xx_dsa_fixup; |
hostdata | 423 | drivers/scsi/53c7,8xx.c | hostdata->init_fixup = NCR53c8x0_init_fixup; |
hostdata | 424 | drivers/scsi/53c7,8xx.c | hostdata->soft_reset = NCR53c8x0_soft_reset; |
hostdata | 425 | drivers/scsi/53c7,8xx.c | hostdata->run_tests = NCR53c8xx_run_tests; |
hostdata | 427 | drivers/scsi/53c7,8xx.c | hostdata->scsi_clock = 40000000; |
hostdata | 431 | drivers/scsi/53c7,8xx.c | host->host_no, hostdata->chip); |
hostdata | 437 | drivers/scsi/53c7,8xx.c | hostdata->NCR53c7xx_zero = 0; |
hostdata | 438 | drivers/scsi/53c7,8xx.c | hostdata->NCR53c7xx_msg_reject = MESSAGE_REJECT; |
hostdata | 439 | drivers/scsi/53c7,8xx.c | hostdata->NCR53c7xx_msg_abort = ABORT; |
hostdata | 440 | drivers/scsi/53c7,8xx.c | hostdata->NCR53c7xx_msg_nop = NOP; |
hostdata | 463 | drivers/scsi/53c7,8xx.c | (hostdata->options & OPTION_MEMORY_MAPPED) ? "memory" : |
hostdata | 466 | drivers/scsi/53c7,8xx.c | hostdata->dmode = (hostdata->chip == 700 || hostdata->chip == 70066) ? |
hostdata | 468 | drivers/scsi/53c7,8xx.c | hostdata->istat = ((hostdata->chip / 100) == 8) ? |
hostdata | 484 | drivers/scsi/53c7,8xx.c | tmp = hostdata->this_id_mask = NCR53c7x0_read8(SCID_REG); |
hostdata | 488 | drivers/scsi/53c7,8xx.c | hostdata->this_id_mask = 1 << host->this_id; |
hostdata | 498 | drivers/scsi/53c7,8xx.c | if ((hostdata->chip / 100) == 8) { |
hostdata | 502 | drivers/scsi/53c7,8xx.c | hostdata->saved_ctest4 = NCR53c7x0_read8(CTEST4_REG_800) & |
hostdata | 509 | drivers/scsi/53c7,8xx.c | hostdata->saved_ctest7 = NCR53c7x0_read8(CTEST7_REG) & CTEST7_SAVE; |
hostdata | 516 | drivers/scsi/53c7,8xx.c | hostdata->saved_dcntl = NCR53c7x0_read8(DCNTL_REG); |
hostdata | 518 | drivers/scsi/53c7,8xx.c | if ((hostdata->chip / 100) == 8) |
hostdata | 520 | drivers/scsi/53c7,8xx.c | (hostdata->saved_dcntl & DCNTL_800_IRQM) ? "edge triggered" : |
hostdata | 527 | drivers/scsi/53c7,8xx.c | hostdata->saved_dmode = NCR53c7x0_read8(hostdata->dmode); |
hostdata | 534 | drivers/scsi/53c7,8xx.c | if ((hostdata->chip / 100) == 8) { |
hostdata | 535 | drivers/scsi/53c7,8xx.c | if (hostdata->saved_ctest4 & CTEST4_800_BDIS) { |
hostdata | 538 | drivers/scsi/53c7,8xx.c | switch (hostdata->saved_dmode & DMODE_BL_MASK) { |
hostdata | 553 | drivers/scsi/53c7,8xx.c | if (hostdata->chip / 100 == 8) { |
hostdata | 554 | drivers/scsi/53c7,8xx.c | hostdata->saved_scntl3 = NCR53c7x0_read8(SCNTL3_REG_800); |
hostdata | 555 | drivers/scsi/53c7,8xx.c | ccf = hostdata->saved_scntl3 & SCNTL3_800_CCF_MASK; |
hostdata | 566 | drivers/scsi/53c7,8xx.c | if (!hostdata->scsi_clock) |
hostdata | 568 | drivers/scsi/53c7,8xx.c | case 1: hostdata->scsi_clock = 25000000; break; /* Divide by 1.0 */ |
hostdata | 569 | drivers/scsi/53c7,8xx.c | case 2: hostdata->scsi_clock = 37500000; break; /* Divide by 1.5 */ |
hostdata | 570 | drivers/scsi/53c7,8xx.c | case 3: hostdata->scsi_clock = 50000000; break; /* Divide by 2.0 */ |
hostdata | 572 | drivers/scsi/53c7,8xx.c | case 4: hostdata->scsi_clock = 66000000; break; |
hostdata | 577 | drivers/scsi/53c7,8xx.c | hostdata->options &= ~OPTION_SYNCHRONOUS; |
hostdata | 578 | drivers/scsi/53c7,8xx.c | hostdata->scsi_clock = 0; |
hostdata | 582 | drivers/scsi/53c7,8xx.c | hostdata->scsi_clock / 1000000); |
hostdata | 589 | drivers/scsi/53c7,8xx.c | hostdata->cmd_allocated[i] = 0; |
hostdata | 591 | drivers/scsi/53c7,8xx.c | hostdata->busy[i][j] = 0; |
hostdata | 597 | drivers/scsi/53c7,8xx.c | if (hostdata->chip != 700 && hostdata->chip != 70066) { |
hostdata | 598 | drivers/scsi/53c7,8xx.c | hostdata->sync[i].select_indirect |= (i << 16); |
hostdata | 600 | drivers/scsi/53c7,8xx.c | hostdata->sync[i].script[0] = (DCMD_TYPE_TCI|DCMD_TCI_OP_RETURN) << 24 | |
hostdata | 602 | drivers/scsi/53c7,8xx.c | switch (hostdata->chip) { |
hostdata | 609 | drivers/scsi/53c7,8xx.c | hostdata->sync[i].select_indirect |= (hostdata->saved_scntl3) << 24; |
hostdata | 616 | drivers/scsi/53c7,8xx.c | hostdata->issue_queue = hostdata->running_list = |
hostdata | 617 | drivers/scsi/53c7,8xx.c | hostdata->finished_queue = NULL; |
hostdata | 618 | drivers/scsi/53c7,8xx.c | hostdata->issue_dsa_head = 0; |
hostdata | 619 | drivers/scsi/53c7,8xx.c | hostdata->issue_dsa_tail = NULL; |
hostdata | 621 | drivers/scsi/53c7,8xx.c | if (hostdata->init_save_regs) |
hostdata | 622 | drivers/scsi/53c7,8xx.c | hostdata->init_save_regs (host); |
hostdata | 623 | drivers/scsi/53c7,8xx.c | if (hostdata->init_fixup) |
hostdata | 624 | drivers/scsi/53c7,8xx.c | hostdata->init_fixup (host); |
hostdata | 631 | drivers/scsi/53c7,8xx.c | hostdata->idle = 1; |
hostdata | 643 | drivers/scsi/53c7,8xx.c | hostdata->soft_reset (host); |
hostdata | 645 | drivers/scsi/53c7,8xx.c | hostdata->debug_count_limit = -1; |
hostdata | 646 | drivers/scsi/53c7,8xx.c | hostdata->intrs = -1; |
hostdata | 647 | drivers/scsi/53c7,8xx.c | hostdata->expecting_iid = 0; |
hostdata | 648 | drivers/scsi/53c7,8xx.c | hostdata->expecting_sto = 0; |
hostdata | 650 | drivers/scsi/53c7,8xx.c | if ((hostdata->run_tests && hostdata->run_tests(host) == -1) || |
hostdata | 651 | drivers/scsi/53c7,8xx.c | (hostdata->options & OPTION_DEBUG_TESTS_ONLY)) { |
hostdata | 684 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata; |
hostdata | 769 | drivers/scsi/53c7,8xx.c | hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 770 | drivers/scsi/53c7,8xx.c | instance->hostdata; |
hostdata | 771 | drivers/scsi/53c7,8xx.c | hostdata->size = size; |
hostdata | 772 | drivers/scsi/53c7,8xx.c | hostdata->script_count = script_len / sizeof(u32); |
hostdata | 773 | drivers/scsi/53c7,8xx.c | hostdata = (struct NCR53c7x0_hostdata *) instance->hostdata; |
hostdata | 774 | drivers/scsi/53c7,8xx.c | hostdata->board = board; |
hostdata | 775 | drivers/scsi/53c7,8xx.c | hostdata->chip = chip; |
hostdata | 776 | drivers/scsi/53c7,8xx.c | if ((hostdata->pci_valid = pci_valid)) { |
hostdata | 777 | drivers/scsi/53c7,8xx.c | hostdata->pci_bus = pci_bus; |
hostdata | 778 | drivers/scsi/53c7,8xx.c | hostdata->pci_device_fn = pci_device_fn; |
hostdata | 823 | drivers/scsi/53c7,8xx.c | hostdata->options = options; |
hostdata | 824 | drivers/scsi/53c7,8xx.c | hostdata->dsa_size = dsa_len; |
hostdata | 825 | drivers/scsi/53c7,8xx.c | hostdata->max_cmd_size = max_cmd_size; |
hostdata | 826 | drivers/scsi/53c7,8xx.c | hostdata->num_cmds = 1; |
hostdata | 828 | drivers/scsi/53c7,8xx.c | hostdata->free = (struct NCR53c7x0_cmd *) |
hostdata | 829 | drivers/scsi/53c7,8xx.c | (hostdata->script + hostdata->script_count); |
hostdata | 830 | drivers/scsi/53c7,8xx.c | hostdata->free->real = (void *) hostdata->free; |
hostdata | 831 | drivers/scsi/53c7,8xx.c | hostdata->free->size = max_cmd_size; |
hostdata | 832 | drivers/scsi/53c7,8xx.c | hostdata->free->free = NULL; |
hostdata | 833 | drivers/scsi/53c7,8xx.c | hostdata->free->next = NULL; |
hostdata | 1050 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 1051 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 1061 | drivers/scsi/53c7,8xx.c | memcpy ((void *) hostdata->script, (void *) SCRIPT, |
hostdata | 1065 | drivers/scsi/53c7,8xx.c | hostdata->script[LABELPATCHES[i]] += |
hostdata | 1066 | drivers/scsi/53c7,8xx.c | virt_to_bus(hostdata->script); |
hostdata | 1069 | drivers/scsi/53c7,8xx.c | patch_abs_32 (hostdata->script, 0, NCR53c7xx_msg_abort, |
hostdata | 1070 | drivers/scsi/53c7,8xx.c | virt_to_bus(&hostdata->NCR53c7xx_msg_abort)); |
hostdata | 1071 | drivers/scsi/53c7,8xx.c | patch_abs_32 (hostdata->script, 0, NCR53c7xx_msg_reject, |
hostdata | 1072 | drivers/scsi/53c7,8xx.c | virt_to_bus(&hostdata->NCR53c7xx_msg_reject)); |
hostdata | 1073 | drivers/scsi/53c7,8xx.c | patch_abs_32 (hostdata->script, 0, NCR53c7xx_zero, |
hostdata | 1074 | drivers/scsi/53c7,8xx.c | virt_to_bus(&hostdata->NCR53c7xx_zero)); |
hostdata | 1075 | drivers/scsi/53c7,8xx.c | patch_abs_32 (hostdata->script, 0, NCR53c7xx_sink, |
hostdata | 1076 | drivers/scsi/53c7,8xx.c | virt_to_bus(&hostdata->NCR53c7xx_sink)); |
hostdata | 1080 | drivers/scsi/53c7,8xx.c | hostdata->script[EXTERNAL_PATCHES[i].offset] += |
hostdata | 1101 | drivers/scsi/53c7,8xx.c | if (!(hostdata->options & OPTION_MEMORY_MAPPED)) { |
hostdata | 1111 | drivers/scsi/53c7,8xx.c | patch_abs_32 (hostdata->script, 0, addr_scratch, base + SCRATCHA_REG_800); |
hostdata | 1112 | drivers/scsi/53c7,8xx.c | patch_abs_32 (hostdata->script, 0, addr_sfbr, base + SFBR_REG); |
hostdata | 1113 | drivers/scsi/53c7,8xx.c | patch_abs_32 (hostdata->script, 0, addr_temp, base + TEMP_REG); |
hostdata | 1124 | drivers/scsi/53c7,8xx.c | patch_abs_rwri_data (hostdata->script, 0, dmode_memory_to_memory, tmp); |
hostdata | 1125 | drivers/scsi/53c7,8xx.c | patch_abs_rwri_data (hostdata->script, 0, dmode_memory_to_ncr, memory_to_ncr); |
hostdata | 1126 | drivers/scsi/53c7,8xx.c | patch_abs_rwri_data (hostdata->script, 0, dmode_ncr_to_memory, ncr_to_memory); |
hostdata | 1127 | drivers/scsi/53c7,8xx.c | patch_abs_rwri_data (hostdata->script, 0, dmode_ncr_to_ncr, ncr_to_ncr); |
hostdata | 1129 | drivers/scsi/53c7,8xx.c | patch_abs_32 (hostdata->script, 0, issue_dsa_head, |
hostdata | 1130 | drivers/scsi/53c7,8xx.c | virt_to_bus((void*)&hostdata->issue_dsa_head)); |
hostdata | 1131 | drivers/scsi/53c7,8xx.c | patch_abs_32 (hostdata->script, 0, msg_buf, |
hostdata | 1132 | drivers/scsi/53c7,8xx.c | virt_to_bus((void*)&hostdata->msg_buf)); |
hostdata | 1133 | drivers/scsi/53c7,8xx.c | patch_abs_32 (hostdata->script, 0, reconnect_dsa_head, |
hostdata | 1134 | drivers/scsi/53c7,8xx.c | virt_to_bus((void*)&hostdata->reconnect_dsa_head)); |
hostdata | 1135 | drivers/scsi/53c7,8xx.c | patch_abs_32 (hostdata->script, 0, reselected_identify, |
hostdata | 1136 | drivers/scsi/53c7,8xx.c | virt_to_bus((void*)&hostdata->reselected_identify)); |
hostdata | 1137 | drivers/scsi/53c7,8xx.c | patch_abs_32 (hostdata->script, 0, reselected_tag, |
hostdata | 1138 | drivers/scsi/53c7,8xx.c | virt_to_bus((void*)&hostdata->reselected_tag)); |
hostdata | 1140 | drivers/scsi/53c7,8xx.c | patch_abs_32 (hostdata->script, 0, test_dest, |
hostdata | 1141 | drivers/scsi/53c7,8xx.c | virt_to_bus((void*)&hostdata->test_dest)); |
hostdata | 1142 | drivers/scsi/53c7,8xx.c | patch_abs_32 (hostdata->script, 0, test_src, virt_to_bus(&hostdata->test_source)); |
hostdata | 1154 | drivers/scsi/53c7,8xx.c | hostdata->E_accept_message = Ent_accept_message; |
hostdata | 1155 | drivers/scsi/53c7,8xx.c | hostdata->E_command_complete = Ent_command_complete; |
hostdata | 1156 | drivers/scsi/53c7,8xx.c | hostdata->E_debug_break = Ent_debug_break; |
hostdata | 1157 | drivers/scsi/53c7,8xx.c | hostdata->E_dsa_code_template = Ent_dsa_code_template; |
hostdata | 1158 | drivers/scsi/53c7,8xx.c | hostdata->E_dsa_code_template_end = Ent_dsa_code_template_end; |
hostdata | 1159 | drivers/scsi/53c7,8xx.c | hostdata->E_initiator_abort = Ent_initiator_abort; |
hostdata | 1160 | drivers/scsi/53c7,8xx.c | hostdata->E_msg_in = Ent_msg_in; |
hostdata | 1161 | drivers/scsi/53c7,8xx.c | hostdata->E_other_transfer = Ent_other_transfer; |
hostdata | 1162 | drivers/scsi/53c7,8xx.c | hostdata->E_reject_message = Ent_reject_message; |
hostdata | 1163 | drivers/scsi/53c7,8xx.c | hostdata->E_respond_message = Ent_respond_message; |
hostdata | 1164 | drivers/scsi/53c7,8xx.c | hostdata->E_schedule = Ent_schedule; |
hostdata | 1165 | drivers/scsi/53c7,8xx.c | hostdata->E_select = Ent_select; |
hostdata | 1166 | drivers/scsi/53c7,8xx.c | hostdata->E_select_msgout = Ent_select_msgout; |
hostdata | 1167 | drivers/scsi/53c7,8xx.c | hostdata->E_target_abort = Ent_target_abort; |
hostdata | 1169 | drivers/scsi/53c7,8xx.c | hostdata->E_test_0 = Ent_test_0; |
hostdata | 1171 | drivers/scsi/53c7,8xx.c | hostdata->E_test_1 = Ent_test_1; |
hostdata | 1172 | drivers/scsi/53c7,8xx.c | hostdata->E_test_2 = Ent_test_2; |
hostdata | 1174 | drivers/scsi/53c7,8xx.c | hostdata->E_test_3 = Ent_test_3; |
hostdata | 1177 | drivers/scsi/53c7,8xx.c | hostdata->dsa_cmdout = A_dsa_cmdout; |
hostdata | 1178 | drivers/scsi/53c7,8xx.c | hostdata->dsa_cmnd = A_dsa_cmnd; |
hostdata | 1179 | drivers/scsi/53c7,8xx.c | hostdata->dsa_datain = A_dsa_datain; |
hostdata | 1180 | drivers/scsi/53c7,8xx.c | hostdata->dsa_dataout = A_dsa_dataout; |
hostdata | 1181 | drivers/scsi/53c7,8xx.c | hostdata->dsa_end = A_dsa_end; |
hostdata | 1182 | drivers/scsi/53c7,8xx.c | hostdata->dsa_msgin = A_dsa_msgin; |
hostdata | 1183 | drivers/scsi/53c7,8xx.c | hostdata->dsa_msgout = A_dsa_msgout; |
hostdata | 1184 | drivers/scsi/53c7,8xx.c | hostdata->dsa_msgout_other = A_dsa_msgout_other; |
hostdata | 1185 | drivers/scsi/53c7,8xx.c | hostdata->dsa_next = A_dsa_next; |
hostdata | 1186 | drivers/scsi/53c7,8xx.c | hostdata->dsa_select = A_dsa_select; |
hostdata | 1187 | drivers/scsi/53c7,8xx.c | hostdata->dsa_start = Ent_dsa_code_template - Ent_dsa_zero; |
hostdata | 1188 | drivers/scsi/53c7,8xx.c | hostdata->dsa_status = A_dsa_status; |
hostdata | 1198 | drivers/scsi/53c7,8xx.c | hostdata->script); |
hostdata | 1218 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 1219 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 1230 | drivers/scsi/53c7,8xx.c | if (!hostdata->idle) { |
hostdata | 1241 | drivers/scsi/53c7,8xx.c | if (hostdata->issue_dsa_head) { |
hostdata | 1244 | drivers/scsi/53c7,8xx.c | hostdata->issue_dsa_head = 0; |
hostdata | 1247 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_TEST1) { |
hostdata | 1248 | drivers/scsi/53c7,8xx.c | hostdata->idle = 0; |
hostdata | 1249 | drivers/scsi/53c7,8xx.c | hostdata->test_running = 1; |
hostdata | 1250 | drivers/scsi/53c7,8xx.c | hostdata->test_completed = -1; |
hostdata | 1251 | drivers/scsi/53c7,8xx.c | hostdata->test_dest = 0; |
hostdata | 1252 | drivers/scsi/53c7,8xx.c | hostdata->test_source = 0xdeadbeef; |
hostdata | 1253 | drivers/scsi/53c7,8xx.c | start = virt_to_bus(hostdata->script) + hostdata->E_test_1; |
hostdata | 1254 | drivers/scsi/53c7,8xx.c | hostdata->state = STATE_RUNNING; |
hostdata | 1262 | drivers/scsi/53c7,8xx.c | while ((hostdata->test_completed == -1) && jiffies < timeout) |
hostdata | 1266 | drivers/scsi/53c7,8xx.c | if (hostdata->test_completed == -1) |
hostdata | 1268 | drivers/scsi/53c7,8xx.c | (hostdata->test_dest == 0xdeadbeef) ? |
hostdata | 1277 | drivers/scsi/53c7,8xx.c | else if (hostdata->test_completed != 1) |
hostdata | 1279 | drivers/scsi/53c7,8xx.c | hostdata->test_completed); |
hostdata | 1281 | drivers/scsi/53c7,8xx.c | failed = (hostdata->test_dest != 0xdeadbeef); |
hostdata | 1283 | drivers/scsi/53c7,8xx.c | if (hostdata->test_dest != 0xdeadbeef) { |
hostdata | 1287 | drivers/scsi/53c7,8xx.c | host->host_no, hostdata->test_dest); |
hostdata | 1293 | drivers/scsi/53c7,8xx.c | hostdata->script, start); |
hostdata | 1299 | drivers/scsi/53c7,8xx.c | hostdata->test_running = 0; |
hostdata | 1302 | drivers/scsi/53c7,8xx.c | if (hostdata->issue_dsa_head) { |
hostdata | 1305 | drivers/scsi/53c7,8xx.c | hostdata->issue_dsa_head = 0; |
hostdata | 1308 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_TEST2) { |
hostdata | 1333 | drivers/scsi/53c7,8xx.c | if (!hostdata->idle) { |
hostdata | 1341 | drivers/scsi/53c7,8xx.c | hostdata->idle = 0; |
hostdata | 1342 | drivers/scsi/53c7,8xx.c | hostdata->test_running = 2; |
hostdata | 1343 | drivers/scsi/53c7,8xx.c | hostdata->test_completed = -1; |
hostdata | 1344 | drivers/scsi/53c7,8xx.c | start = virt_to_bus(hostdata->script) + hostdata->E_test_2; |
hostdata | 1345 | drivers/scsi/53c7,8xx.c | hostdata->state = STATE_RUNNING; |
hostdata | 1352 | drivers/scsi/53c7,8xx.c | while ((hostdata->test_completed == -1) && jiffies < timeout) |
hostdata | 1357 | drivers/scsi/53c7,8xx.c | if (hostdata->test_completed == 2) { |
hostdata | 1366 | drivers/scsi/53c7,8xx.c | } else if (hostdata->test_completed == 3) { |
hostdata | 1369 | drivers/scsi/53c7,8xx.c | if (!hostdata->idle) { |
hostdata | 1374 | drivers/scsi/53c7,8xx.c | } else if (hostdata->test_completed == -1) { |
hostdata | 1379 | drivers/scsi/53c7,8xx.c | hostdata->test_running = 0; |
hostdata | 1380 | drivers/scsi/53c7,8xx.c | if (hostdata->issue_dsa_head) { |
hostdata | 1383 | drivers/scsi/53c7,8xx.c | hostdata->issue_dsa_head = 0; |
hostdata | 1405 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 1406 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 1409 | drivers/scsi/53c7,8xx.c | memcpy (cmd->dsa, hostdata->script + (hostdata->E_dsa_code_template / 4), |
hostdata | 1410 | drivers/scsi/53c7,8xx.c | hostdata->E_dsa_code_template_end - hostdata->E_dsa_code_template); |
hostdata | 1420 | drivers/scsi/53c7,8xx.c | dsa_temp_sync, hostdata->sync[c->target].select_indirect); |
hostdata | 1443 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 1444 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 1452 | drivers/scsi/53c7,8xx.c | for (search = (i ? hostdata->issue_dsa_head : |
hostdata | 1453 | drivers/scsi/53c7,8xx.c | hostdata->reconnect_dsa_head), prev = (i ? |
hostdata | 1454 | drivers/scsi/53c7,8xx.c | &hostdata->issue_dsa_head : &hostdata->reconnect_dsa_head); |
hostdata | 1455 | drivers/scsi/53c7,8xx.c | search && ((char*)bus_to_virt(search) + hostdata->dsa_start) != (char *) cmd->dsa; |
hostdata | 1456 | drivers/scsi/53c7,8xx.c | prev = (u32*) ((char*)bus_to_virt(search) + hostdata->dsa_next), |
hostdata | 1460 | drivers/scsi/53c7,8xx.c | *prev = *(u32*) ((char*)bus_to_virt(search) + hostdata->dsa_next); |
hostdata | 1469 | drivers/scsi/53c7,8xx.c | if (hostdata->running_list == cmd) |
hostdata | 1470 | drivers/scsi/53c7,8xx.c | hostdata->running_list = cmd->next; |
hostdata | 1472 | drivers/scsi/53c7,8xx.c | cmd->next = hostdata->free; |
hostdata | 1473 | drivers/scsi/53c7,8xx.c | hostdata->free = cmd; |
hostdata | 1502 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 1503 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 1516 | drivers/scsi/53c7,8xx.c | for (bp = hostdata->breakpoints; bp && bp->address != dsp; |
hostdata | 1528 | drivers/scsi/53c7,8xx.c | NCR53c7x0_write8 (hostdata->dmode, |
hostdata | 1529 | drivers/scsi/53c7,8xx.c | NCR53c7x0_read8(hostdata->dmode)|DMODE_MAN); |
hostdata | 1553 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 1554 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 1557 | drivers/scsi/53c7,8xx.c | if ((hostdata->chip / 100) == 8) { |
hostdata | 1558 | drivers/scsi/53c7,8xx.c | hostdata->sync[target].select_indirect = (hostdata->saved_scntl3 << 24) |
hostdata | 1561 | drivers/scsi/53c7,8xx.c | } else if ((hostdata->chip != 700) && (hostdata->chip != 70066)) { |
hostdata | 1562 | drivers/scsi/53c7,8xx.c | hostdata->sync[target].select_indirect = (1 << (target & 7)) << 16; |
hostdata | 1570 | drivers/scsi/53c7,8xx.c | if (hostdata->state == STATE_HALTED) { |
hostdata | 1571 | drivers/scsi/53c7,8xx.c | if ((hostdata->chip / 100) == 8) { |
hostdata | 1572 | drivers/scsi/53c7,8xx.c | NCR53c7x0_write8 (SCNTL3_REG_800, hostdata->saved_scntl3); |
hostdata | 1621 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 1622 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 1629 | drivers/scsi/53c7,8xx.c | divisor = desire / (hostdata->scsi_clock / 10); |
hostdata | 1645 | drivers/scsi/53c7,8xx.c | scntl3 = (hostdata->chip / 100 == 8) ? ((hostdata->saved_scntl3 & |
hostdata | 1649 | drivers/scsi/53c7,8xx.c | if ((hostdata->chip != 700) && (hostdata->chip != 70066)) { |
hostdata | 1650 | drivers/scsi/53c7,8xx.c | hostdata->sync[target].select_indirect = (scntl3 << 24) | (target << 16) | |
hostdata | 1653 | drivers/scsi/53c7,8xx.c | script = (u32*) hostdata->sync[target].script; |
hostdata | 1656 | drivers/scsi/53c7,8xx.c | if ((hostdata->chip / 100) == 8) { |
hostdata | 1693 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 1694 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 1700 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) |
hostdata | 1708 | drivers/scsi/53c7,8xx.c | print_msg ((unsigned char *) hostdata->msg_buf); |
hostdata | 1710 | drivers/scsi/53c7,8xx.c | switch (hostdata->msg_buf[0]) { |
hostdata | 1716 | drivers/scsi/53c7,8xx.c | hostdata->dsp = hostdata->script + hostdata->E_accept_message / |
hostdata | 1718 | drivers/scsi/53c7,8xx.c | hostdata->dsp_changed = 1; |
hostdata | 1723 | drivers/scsi/53c7,8xx.c | hostdata->dsp = hostdata->script + hostdata->E_reject_message / |
hostdata | 1725 | drivers/scsi/53c7,8xx.c | hostdata->dsp_changed = 1; |
hostdata | 1732 | drivers/scsi/53c7,8xx.c | "requesting", hostdata->msg_buf[3] * 4, hostdata->msg_buf[4]); |
hostdata | 1744 | drivers/scsi/53c7,8xx.c | hostdata->msg_buf); |
hostdata | 1745 | drivers/scsi/53c7,8xx.c | hostdata->dsp = hostdata->script + hostdata->E_accept_message / |
hostdata | 1747 | drivers/scsi/53c7,8xx.c | hostdata->dsp_changed = 1; |
hostdata | 1750 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_SYNCHRONOUS) { |
hostdata | 1753 | drivers/scsi/53c7,8xx.c | hostdata->msg_buf); |
hostdata | 1755 | drivers/scsi/53c7,8xx.c | hostdata->msg_buf[4] = 0; /* 0 offset = async */ |
hostdata | 1760 | drivers/scsi/53c7,8xx.c | virt_to_bus((void*)hostdata->msg_buf)); |
hostdata | 1761 | drivers/scsi/53c7,8xx.c | hostdata->dsp = hostdata->script + |
hostdata | 1762 | drivers/scsi/53c7,8xx.c | hostdata->E_respond_message / sizeof(u32); |
hostdata | 1763 | drivers/scsi/53c7,8xx.c | hostdata->dsp_changed = 1; |
hostdata | 1766 | drivers/scsi/53c7,8xx.c | if (hostdata->msg_buf[4]) { |
hostdata | 1767 | drivers/scsi/53c7,8xx.c | int Hz = 1000000000 / (hostdata->msg_buf[3] * 4); |
hostdata | 1771 | drivers/scsi/53c7,8xx.c | ((hostdata->msg_buf[3] < 200) ? "FAST " : |
hostdata | 1773 | drivers/scsi/53c7,8xx.c | ((hostdata->msg_buf[3] < 200) ? "-II" : ""), |
hostdata | 1774 | drivers/scsi/53c7,8xx.c | (int) hostdata->msg_buf[3] * 4, (int) |
hostdata | 1775 | drivers/scsi/53c7,8xx.c | hostdata->msg_buf[4]); |
hostdata | 1784 | drivers/scsi/53c7,8xx.c | hostdata->dsp = hostdata->script + hostdata->E_reject_message / |
hostdata | 1786 | drivers/scsi/53c7,8xx.c | hostdata->dsp_changed = 1; |
hostdata | 1789 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) |
hostdata | 1795 | drivers/scsi/53c7,8xx.c | hostdata->dsp = hostdata->script + hostdata->E_target_abort / |
hostdata | 1797 | drivers/scsi/53c7,8xx.c | hostdata->dsp_changed = 1; |
hostdata | 1802 | drivers/scsi/53c7,8xx.c | hostdata->dsp = hostdata->script + hostdata->E_initiator_abort / |
hostdata | 1804 | drivers/scsi/53c7,8xx.c | hostdata->dsp_changed = 1; |
hostdata | 1817 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) |
hostdata | 1865 | drivers/scsi/53c7,8xx.c | patch_dsa_32 (cmd->dsa, dsa_dataout, 0, hostdata->E_other_transfer); |
hostdata | 1873 | drivers/scsi/53c7,8xx.c | cmd->data_transfer_start[3] = hostdata->E_other_transfer; |
hostdata | 1887 | drivers/scsi/53c7,8xx.c | hostdata->dsp = hostdata->script + hostdata->E_select / |
hostdata | 1889 | drivers/scsi/53c7,8xx.c | hostdata->dsp_changed = 1; |
hostdata | 1894 | drivers/scsi/53c7,8xx.c | hostdata->dsp = hostdata->script + hostdata->E_schedule / |
hostdata | 1896 | drivers/scsi/53c7,8xx.c | hostdata->dsp_changed = 1; |
hostdata | 1902 | drivers/scsi/53c7,8xx.c | hostdata->idle = 1; |
hostdata | 1903 | drivers/scsi/53c7,8xx.c | hostdata->test_completed = (dsps - A_int_test_1) / 0x00010000 + 1; |
hostdata | 1904 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) |
hostdata | 1906 | drivers/scsi/53c7,8xx.c | hostdata->test_completed); |
hostdata | 1910 | drivers/scsi/53c7,8xx.c | if (hostdata->options & (OPTION_DEBUG_SCRIPT|OPTION_DEBUG_INTR)) { |
hostdata | 1918 | drivers/scsi/53c7,8xx.c | if (hostdata->options & (OPTION_DEBUG_SCRIPT|OPTION_DEBUG_INTR)) { |
hostdata | 1925 | drivers/scsi/53c7,8xx.c | if (hostdata->options & (OPTION_DEBUG_SCRIPT|OPTION_DEBUG_INTR)) { |
hostdata | 1932 | drivers/scsi/53c7,8xx.c | if (hostdata->options & (OPTION_DEBUG_SCRIPT|OPTION_DEBUG_INTR)) { |
hostdata | 1940 | drivers/scsi/53c7,8xx.c | if (hostdata->options & (OPTION_DEBUG_SCRIPT|OPTION_DEBUG_INTR)) { |
hostdata | 1943 | drivers/scsi/53c7,8xx.c | (int) hostdata->reselected_identify & 7); |
hostdata | 1949 | drivers/scsi/53c7,8xx.c | if (hostdata->options & (OPTION_DEBUG_SCRIPT|OPTION_DEBUG_INTR)) { |
hostdata | 1951 | drivers/scsi/53c7,8xx.c | host->host_no, hostdata->issue_dsa_head); |
hostdata | 2025 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 2026 | drivers/scsi/53c7,8xx.c | instance->hostdata; |
hostdata | 2057 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 2058 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 2095 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 2096 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 2105 | drivers/scsi/53c7,8xx.c | if (hostdata->state != STATE_HALTED) { |
hostdata | 2123 | drivers/scsi/53c7,8xx.c | bp->next = hostdata->breakpoints; |
hostdata | 2124 | drivers/scsi/53c7,8xx.c | hostdata->breakpoints = bp->next; |
hostdata | 2125 | drivers/scsi/53c7,8xx.c | memcpy ((void *) bp->address, (void *) hostdata->E_debug_break, 8); |
hostdata | 2157 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostadata *hostdata; |
hostdata | 2166 | drivers/scsi/53c7,8xx.c | hostdata = (struct NCR53c7x0_hostdata *) host->hostdata; |
hostdata | 2214 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 2215 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 2222 | drivers/scsi/53c7,8xx.c | left = (hostdata->debug_buf + hostdata->debug_size - 1) - |
hostdata | 2223 | drivers/scsi/53c7,8xx.c | hostdata->debug_write; |
hostdata | 2225 | drivers/scsi/53c7,8xx.c | memcpy (hostdata->debug_write, buf, copy); |
hostdata | 2228 | drivers/scsi/53c7,8xx.c | hostdata->debug_count += copy; |
hostdata | 2229 | drivers/scsi/53c7,8xx.c | if ((hostdata->debug_write += copy) == |
hostdata | 2230 | drivers/scsi/53c7,8xx.c | (hostdata->debug_buf + hostdata->debug_size)) |
hostdata | 2231 | drivers/scsi/53c7,8xx.c | hosdata->debug_write = hostdata->debug_buf; |
hostdata | 2253 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 2254 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 2272 | drivers/scsi/53c7,8xx.c | NCR53c7x0_write8(hostdata->dmode, hostdata->saved_dmode & ~DMODE_MAN); |
hostdata | 2288 | drivers/scsi/53c7,8xx.c | NCR53c7x0_write8(RESPID_REG_800, hostdata->this_id_mask); |
hostdata | 2320 | drivers/scsi/53c7,8xx.c | NCR53c7x0_write8(SIEN0_REG_800, ((hostdata->options & OPTION_PARITY) ? |
hostdata | 2329 | drivers/scsi/53c7,8xx.c | NCR53c7x0_write8(DCNTL_REG, hostdata->saved_dcntl); |
hostdata | 2330 | drivers/scsi/53c7,8xx.c | NCR53c7x0_write8(CTEST4_REG_800, hostdata->saved_ctest4); |
hostdata | 2359 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 2360 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 2387 | drivers/scsi/53c7,8xx.c | if (hostdata->num_commands < host->can_queue && |
hostdata | 2389 | drivers/scsi/53c7,8xx.c | !(hostdata->cmd_allocated[cmd->target] & (1 << cmd->lun))) { |
hostdata | 2394 | drivers/scsi/53c7,8xx.c | size = (hostdata->max_cmd_size + 511) / 512 * 512; |
hostdata | 2402 | drivers/scsi/53c7,8xx.c | size = hostdata->max_cmd_size + sizeof(void*); |
hostdata | 2413 | drivers/scsi/53c7,8xx.c | tmp->next = hostdata->free; |
hostdata | 2414 | drivers/scsi/53c7,8xx.c | hostdata->free = tmp; |
hostdata | 2422 | drivers/scsi/53c7,8xx.c | tmp = (struct NCR53c7x0_cmd *) hostdata->free; |
hostdata | 2424 | drivers/scsi/53c7,8xx.c | hostdata->free = tmp->next; |
hostdata | 2463 | drivers/scsi/53c7,8xx.c | hostdata->options |= OPTION_DEBUG_INTR; |
hostdata | 2511 | drivers/scsi/53c7,8xx.c | tmp->data_transfer_start = tmp->dsa + (hostdata->dsa_end - |
hostdata | 2512 | drivers/scsi/53c7,8xx.c | hostdata->dsa_start) / sizeof(u32); |
hostdata | 2528 | drivers/scsi/53c7,8xx.c | if (hostdata->dsa_fixup) |
hostdata | 2529 | drivers/scsi/53c7,8xx.c | hostdata->dsa_fixup(tmp); |
hostdata | 2533 | drivers/scsi/53c7,8xx.c | patch_dsa_32(tmp->dsa, dsa_select, 0, hostdata->sync[cmd->target]. |
hostdata | 2549 | drivers/scsi/53c7,8xx.c | virt_to_bus(cmd_dataout) : virt_to_bus(hostdata->script) + hostdata->E_other_transfer); |
hostdata | 2551 | drivers/scsi/53c7,8xx.c | virt_to_bus(cmd_datain) : virt_to_bus(hostdata->script) + hostdata->E_other_transfer); |
hostdata | 2562 | drivers/scsi/53c7,8xx.c | virt_to_bus(&hostdata->NCR53c7xx_msg_nop)); |
hostdata | 2616 | drivers/scsi/53c7,8xx.c | cmd_datain[3] = virt_to_bus(hostdata->script) + |
hostdata | 2617 | drivers/scsi/53c7,8xx.c | hostdata->E_msg_in; |
hostdata | 2630 | drivers/scsi/53c7,8xx.c | cmd_dataout[3] = virt_to_bus(hostdata->script) + |
hostdata | 2631 | drivers/scsi/53c7,8xx.c | hostdata->E_msg_in; |
hostdata | 2648 | drivers/scsi/53c7,8xx.c | cmd_datain[1] = virt_to_bus(hostdata->script) + |
hostdata | 2649 | drivers/scsi/53c7,8xx.c | hostdata->E_other_transfer; |
hostdata | 2667 | drivers/scsi/53c7,8xx.c | cmd_dataout[1] = virt_to_bus(hostdata->script) + |
hostdata | 2668 | drivers/scsi/53c7,8xx.c | hostdata->E_other_transfer; |
hostdata | 2701 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 2702 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 2707 | drivers/scsi/53c7,8xx.c | if (((hostdata->options & (OPTION_DEBUG_INIT_ONLY|OPTION_DEBUG_PROBE_ONLY)) || |
hostdata | 2708 | drivers/scsi/53c7,8xx.c | ((hostdata->options & OPTION_DEBUG_TARGET_LIMIT) && |
hostdata | 2709 | drivers/scsi/53c7,8xx.c | !(hostdata->debug_lun_limit[cmd->target] & (1 << cmd->lun)))) || |
hostdata | 2718 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_NCOMMANDS_LIMIT) { |
hostdata | 2719 | drivers/scsi/53c7,8xx.c | if (hostdata->debug_count_limit == 0) { |
hostdata | 2724 | drivers/scsi/53c7,8xx.c | } else if (hostdata->debug_count_limit != -1) |
hostdata | 2725 | drivers/scsi/53c7,8xx.c | --hostdata->debug_count_limit; |
hostdata | 2728 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_READ_ONLY) { |
hostdata | 2781 | drivers/scsi/53c7,8xx.c | target_was_busy = hostdata->busy[cmd->target][cmd->lun] |
hostdata | 2787 | drivers/scsi/53c7,8xx.c | if (!(hostdata->options & OPTION_700) && |
hostdata | 2790 | drivers/scsi/53c7,8xx.c | - hostdata->dsa_start; |
hostdata | 2796 | drivers/scsi/53c7,8xx.c | if (hostdata->running_list) |
hostdata | 2797 | drivers/scsi/53c7,8xx.c | hostdata->running_list->prev = tmp; |
hostdata | 2799 | drivers/scsi/53c7,8xx.c | tmp->next = (struct NCR53c7x0_cmd*) hostdata->running_list; |
hostdata | 2801 | drivers/scsi/53c7,8xx.c | if (!hostdata->running_list) |
hostdata | 2802 | drivers/scsi/53c7,8xx.c | hostdata->running_list = (struct NCR53c7x0_cmd*) tmp; |
hostdata | 2805 | drivers/scsi/53c7,8xx.c | if (hostdata->idle) { |
hostdata | 2806 | drivers/scsi/53c7,8xx.c | hostdata->idle = 0; |
hostdata | 2807 | drivers/scsi/53c7,8xx.c | hostdata->state = STATE_RUNNING; |
hostdata | 2808 | drivers/scsi/53c7,8xx.c | NCR53c7x0_write32 (DSP_REG, virt_to_bus(hostdata->script) + |
hostdata | 2809 | drivers/scsi/53c7,8xx.c | hostdata->E_schedule); |
hostdata | 2821 | drivers/scsi/53c7,8xx.c | if (!hostdata->issue_dsa_head) { |
hostdata | 2825 | drivers/scsi/53c7,8xx.c | hostdata->issue_dsa_tail = (u32 *) dsa; |
hostdata | 2826 | drivers/scsi/53c7,8xx.c | hostdata->issue_dsa_head = virt_to_bus(dsa); |
hostdata | 2827 | drivers/scsi/53c7,8xx.c | NCR53c7x0_write8(hostdata->istat, |
hostdata | 2828 | drivers/scsi/53c7,8xx.c | NCR53c7x0_read8(hostdata->istat) | ISTAT_10_SIGP); |
hostdata | 2840 | drivers/scsi/53c7,8xx.c | hostdata->issue_dsa_tail[hostdata->dsa_next/sizeof(u32)] |
hostdata | 2842 | drivers/scsi/53c7,8xx.c | hostdata->issue_dsa_tail = (u32 *) dsa; |
hostdata | 2854 | drivers/scsi/53c7,8xx.c | if (hostdata->issue_dsa_head) |
hostdata | 2864 | drivers/scsi/53c7,8xx.c | for (tmp = (struct NCR53c7x0_cmd *) hostdata->issue_queue; |
hostdata | 2890 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = |
hostdata | 2891 | drivers/scsi/53c7,8xx.c | (struct NCR53c7x0_hostdata *) host->hostdata; |
hostdata | 2900 | drivers/scsi/53c7,8xx.c | is_8xx_chip = ((unsigned) (hostdata->chip - 800)) < 100; |
hostdata | 2910 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) |
hostdata | 2918 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) { |
hostdata | 2937 | drivers/scsi/53c7,8xx.c | hostdata->idle = 1; |
hostdata | 2938 | drivers/scsi/53c7,8xx.c | hostdata->expecting_sto = 0; |
hostdata | 2940 | drivers/scsi/53c7,8xx.c | if (hostdata->test_running) { |
hostdata | 2941 | drivers/scsi/53c7,8xx.c | hostdata->test_running = 0; |
hostdata | 2942 | drivers/scsi/53c7,8xx.c | hostdata->test_completed = 3; |
hostdata | 2947 | drivers/scsi/53c7,8xx.c | hostdata->intrs = 0; |
hostdata | 2959 | drivers/scsi/53c7,8xx.c | hostdata->dsp = hostdata->script + hostdata->E_schedule / |
hostdata | 2961 | drivers/scsi/53c7,8xx.c | hostdata->dsp_changed = 1; |
hostdata | 2976 | drivers/scsi/53c7,8xx.c | hostdata->dsp = hostdata->script + hostdata->E_initiator_abort / |
hostdata | 2978 | drivers/scsi/53c7,8xx.c | hostdata->dsp_changed = 1; |
hostdata | 2986 | drivers/scsi/53c7,8xx.c | hostdata->dsp = hostdata->script + hostdata->E_initiator_abort / |
hostdata | 2988 | drivers/scsi/53c7,8xx.c | hostdata->dsp_changed = 1; |
hostdata | 2994 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) |
hostdata | 3006 | drivers/scsi/53c7,8xx.c | if (!hostdata->dstat_valid) { |
hostdata | 3007 | drivers/scsi/53c7,8xx.c | hostdata->dstat = NCR53c7x0_read8(DSTAT_REG); |
hostdata | 3008 | drivers/scsi/53c7,8xx.c | hostdata->dstat_valid = 1; |
hostdata | 3012 | drivers/scsi/53c7,8xx.c | if (!(hostdata->dstat & DSTAT_DFE)) { |
hostdata | 3018 | drivers/scsi/53c7,8xx.c | while (!((hostdata->dstat = NCR53c7x0_read8(DSTAT_REG)) & |
hostdata | 3051 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata; /* host->hostdata */ |
hostdata | 3072 | drivers/scsi/53c7,8xx.c | for (host = first_host; host; host = hostdata->next) { |
hostdata | 3075 | drivers/scsi/53c7,8xx.c | hostdata = (struct NCR53c7x0_hostdata *) host->hostdata; |
hostdata | 3076 | drivers/scsi/53c7,8xx.c | hostdata->dsp_changed = 0; |
hostdata | 3083 | drivers/scsi/53c7,8xx.c | hostdata->dstat_valid = 0; |
hostdata | 3089 | drivers/scsi/53c7,8xx.c | istat = NCR53c7x0_read8(hostdata->istat); |
hostdata | 3098 | drivers/scsi/53c7,8xx.c | is_8xx_chip = ((unsigned) (hostdata->chip - 800)) < 100; |
hostdata | 3099 | drivers/scsi/53c7,8xx.c | if ((hostdata->options & OPTION_INTFLY) && |
hostdata | 3109 | drivers/scsi/53c7,8xx.c | NCR53c7x0_write8(hostdata->istat, istat|ISTAT_800_INTF); |
hostdata | 3112 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) |
hostdata | 3127 | drivers/scsi/53c7,8xx.c | &(hostdata->running_list), cmd = |
hostdata | 3128 | drivers/scsi/53c7,8xx.c | (struct NCR53c7x0_cmd *) hostdata->running_list; cmd ; |
hostdata | 3163 | drivers/scsi/53c7,8xx.c | if (--hostdata->busy[tmp->target][tmp->lun]) { |
hostdata | 3168 | drivers/scsi/53c7,8xx.c | cmd->next = hostdata->free; |
hostdata | 3169 | drivers/scsi/53c7,8xx.c | hostdata->free = cmd; |
hostdata | 3173 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) { |
hostdata | 3181 | drivers/scsi/53c7,8xx.c | hostdata->options &= ~OPTION_DEBUG_INTR; |
hostdata | 3198 | drivers/scsi/53c7,8xx.c | hostdata->state = STATE_HALTED; |
hostdata | 3209 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_700) { |
hostdata | 3210 | drivers/scsi/53c7,8xx.c | cmd = (struct NCR53c7x0_cmd *) hostdata->current_cmd; |
hostdata | 3214 | drivers/scsi/53c7,8xx.c | hostdata->running_list; cmd && |
hostdata | 3215 | drivers/scsi/53c7,8xx.c | (dsa + (hostdata->dsa_start / sizeof(u32))) != |
hostdata | 3219 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) { |
hostdata | 3231 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) |
hostdata | 3237 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) |
hostdata | 3242 | drivers/scsi/53c7,8xx.c | if (!hostdata->dstat_valid) { |
hostdata | 3243 | drivers/scsi/53c7,8xx.c | hostdata->dstat = NCR53c7x0_read8(DSTAT_REG); |
hostdata | 3244 | drivers/scsi/53c7,8xx.c | hostdata->dstat_valid = 1; |
hostdata | 3249 | drivers/scsi/53c7,8xx.c | if (!(hostdata->dstat & DSTAT_DFE)) { |
hostdata | 3255 | drivers/scsi/53c7,8xx.c | while (!((hostdata->dstat = NCR53c7x0_read8(DSTAT_REG)) & |
hostdata | 3271 | drivers/scsi/53c7,8xx.c | if (hostdata->intrs != -1) |
hostdata | 3272 | drivers/scsi/53c7,8xx.c | hostdata->intrs++; |
hostdata | 3274 | drivers/scsi/53c7,8xx.c | if (hostdata->intrs > 4) { |
hostdata | 3276 | drivers/scsi/53c7,8xx.c | hostdata->idle = 1; |
hostdata | 3277 | drivers/scsi/53c7,8xx.c | hostdata->options |= OPTION_DEBUG_INIT_ONLY; |
hostdata | 3282 | drivers/scsi/53c7,8xx.c | if (!hostdata->idle && hostdata->state == STATE_HALTED) { |
hostdata | 3283 | drivers/scsi/53c7,8xx.c | if (!hostdata->dsp_changed) { |
hostdata | 3284 | drivers/scsi/53c7,8xx.c | hostdata->dsp = bus_to_virt(NCR53c7x0_read32(DSP_REG)); |
hostdata | 3289 | drivers/scsi/53c7,8xx.c | hostdata->dsp); |
hostdata | 3292 | drivers/scsi/53c7,8xx.c | hostdata->state = STATE_RUNNING; |
hostdata | 3293 | drivers/scsi/53c7,8xx.c | NCR53c7x0_write32 (DSP_REG, virt_to_bus(hostdata->dsp)); |
hostdata | 3315 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 3316 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 3318 | drivers/scsi/53c7,8xx.c | hostdata->dsp = hostdata->script + hostdata->E_initiator_abort / |
hostdata | 3320 | drivers/scsi/53c7,8xx.c | hostdata->dsp_changed = 1; |
hostdata | 3351 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 3352 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 3433 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) |
hostdata | 3435 | drivers/scsi/53c7,8xx.c | hostdata->dsp = hostdata->script + hostdata->E_command_complete / |
hostdata | 3437 | drivers/scsi/53c7,8xx.c | hostdata->dsp_changed = 1; |
hostdata | 3447 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) |
hostdata | 3456 | drivers/scsi/53c7,8xx.c | hostdata->dsp = hostdata->script + hostdata->E_msg_in / |
hostdata | 3458 | drivers/scsi/53c7,8xx.c | hostdata->dsp_changed = 1; |
hostdata | 3507 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 3508 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 3518 | drivers/scsi/53c7,8xx.c | if (!hostdata->dstat_valid) { |
hostdata | 3519 | drivers/scsi/53c7,8xx.c | hostdata->dstat = NCR53c7x0_read8(DSTAT_REG); |
hostdata | 3520 | drivers/scsi/53c7,8xx.c | hostdata->dstat_valid = 1; |
hostdata | 3523 | drivers/scsi/53c7,8xx.c | dstat = hostdata->dstat; |
hostdata | 3525 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) |
hostdata | 3548 | drivers/scsi/53c7,8xx.c | if ((hostdata->options & OPTION_700) && (hostdata->state == |
hostdata | 3566 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_TRACE) { |
hostdata | 3567 | drivers/scsi/53c7,8xx.c | } else if (hostdata->options & OPTION_DEBUG_SINGLE) { |
hostdata | 3608 | drivers/scsi/53c7,8xx.c | if (((dsp >= (hostdata->script + hostdata->E_select / sizeof(u32))) && |
hostdata | 3609 | drivers/scsi/53c7,8xx.c | (dsp <= (hostdata->script + hostdata->E_select_msgout / |
hostdata | 3610 | drivers/scsi/53c7,8xx.c | sizeof(u32) + 8))) || (hostdata->test_running == 2)) { |
hostdata | 3611 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) |
hostdata | 3614 | drivers/scsi/53c7,8xx.c | if (hostdata->expecting_iid) { |
hostdata | 3615 | drivers/scsi/53c7,8xx.c | hostdata->expecting_iid = 0; |
hostdata | 3616 | drivers/scsi/53c7,8xx.c | hostdata->idle = 1; |
hostdata | 3617 | drivers/scsi/53c7,8xx.c | if (hostdata->test_running == 2) { |
hostdata | 3618 | drivers/scsi/53c7,8xx.c | hostdata->test_running = 0; |
hostdata | 3619 | drivers/scsi/53c7,8xx.c | hostdata->test_completed = 3; |
hostdata | 3623 | drivers/scsi/53c7,8xx.c | hostdata->expecting_sto = 1; |
hostdata | 3633 | drivers/scsi/53c7,8xx.c | NCR53c7x0_read32(TEMP_REG), NCR53c7x0_read8(hostdata->dmode), |
hostdata | 3649 | drivers/scsi/53c7,8xx.c | NCR53c7x0_read32(TEMP_REG), NCR53c7x0_read8(hostdata->dmode)); |
hostdata | 3657 | drivers/scsi/53c7,8xx.c | hostdata->idle = 1; |
hostdata | 3658 | drivers/scsi/53c7,8xx.c | hostdata->options |= OPTION_DEBUG_INIT_ONLY; |
hostdata | 3672 | drivers/scsi/53c7,8xx.c | if (hostdata->options & OPTION_DEBUG_INTR) |
hostdata | 3674 | drivers/scsi/53c7,8xx.c | switch ((tmp = hostdata->dstat_sir_intr (host, cmd))) { |
hostdata | 3764 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 3765 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 3781 | drivers/scsi/53c7,8xx.c | for (curr = (volatile struct NCR53c7x0_cmd *) hostdata->issue_queue, |
hostdata | 3782 | drivers/scsi/53c7,8xx.c | prev = (volatile struct NCR53c7x0_cmd **) &(hostdata->issue_queue); |
hostdata | 3792 | drivers/scsi/53c7,8xx.c | curr->next = hostdata->free; |
hostdata | 3793 | drivers/scsi/53c7,8xx.c | hostdata->free = curr; |
hostdata | 3806 | drivers/scsi/53c7,8xx.c | for (curr = (volatile struct NCR53c7x0_cmd *) hostdata->running_list, |
hostdata | 3807 | drivers/scsi/53c7,8xx.c | prev = (volatile struct NCR53c7x0_cmd **) &(hostdata->running_list); |
hostdata | 3825 | drivers/scsi/53c7,8xx.c | curr->next = hostdata->free; |
hostdata | 3826 | drivers/scsi/53c7,8xx.c | hostdata->free = curr; |
hostdata | 3859 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = host ? |
hostdata | 3860 | drivers/scsi/53c7,8xx.c | (struct NCR53c7x0_hostdata *) host->hostdata : NULL; |
hostdata | 3870 | drivers/scsi/53c7,8xx.c | for (c = (struct NCR53c7x0_cmd *) hostdata->running_list, found = 0; c; |
hostdata | 3873 | drivers/scsi/53c7,8xx.c | c->next = hostdata->free; |
hostdata | 3874 | drivers/scsi/53c7,8xx.c | hostdata->free = c; |
hostdata | 3884 | drivers/scsi/53c7,8xx.c | c->next = hostdata->free; |
hostdata | 3885 | drivers/scsi/53c7,8xx.c | hostdata->free = c; |
hostdata | 3900 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 3901 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 3907 | drivers/scsi/53c7,8xx.c | host->host_no, dsa, hostdata->dsa_msgout, |
hostdata | 3908 | drivers/scsi/53c7,8xx.c | dsa[hostdata->dsa_msgout / sizeof(u32)], |
hostdata | 3909 | drivers/scsi/53c7,8xx.c | dsa[hostdata->dsa_msgout / sizeof(u32) + 1]); |
hostdata | 3911 | drivers/scsi/53c7,8xx.c | for (i = dsa[hostdata->dsa_msgout / sizeof(u32)], |
hostdata | 3912 | drivers/scsi/53c7,8xx.c | ptr = bus_to_virt(dsa[hostdata->dsa_msgout / sizeof(u32) + 1]); i > 0; |
hostdata | 3934 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 3935 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 3940 | drivers/scsi/53c7,8xx.c | hostdata->soft_reset(host); |
hostdata | 3974 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = (struct NCR53c7x0_hostdata *) |
hostdata | 3975 | drivers/scsi/53c7,8xx.c | host->hostdata; |
hostdata | 3980 | drivers/scsi/53c7,8xx.c | NCR53c7x0_write8(hostdata->istat, ISTAT_ABRT); |
hostdata | 3984 | drivers/scsi/53c7,8xx.c | istat = NCR53c7x0_read8 (hostdata->istat); |
hostdata | 3986 | drivers/scsi/53c7,8xx.c | if ((hostdata->chip / 100) == 8) { |
hostdata | 3994 | drivers/scsi/53c7,8xx.c | NCR53c7x0_write8(hostdata->istat, 0); |
hostdata | 4003 | drivers/scsi/53c7,8xx.c | hostdata->state = STATE_HALTED; |
hostdata | 1326 | drivers/scsi/53c7,8xx.h | host->hostdata)-> options & OPTION_MEMORY_MAPPED |
hostdata | 1362 | drivers/scsi/53c7,8xx.h | if (hostdata->options & OPTION_DEBUG_FIXUP) \ |
hostdata | 1380 | drivers/scsi/53c7,8xx.h | (dsa)[(hostdata->##symbol - hostdata->dsa_start) / sizeof(u32) \ |
hostdata | 1382 | drivers/scsi/53c7,8xx.h | if (hostdata->options & OPTION_DEBUG_DSA) \ |
hostdata | 1384 | drivers/scsi/53c7,8xx.h | #dsa, #symbol, 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 | 697 | drivers/scsi/NCR5380.c | if (hostdata->flags & FLAG_NCR53C400) { |
hostdata | 713 | drivers/scsi/NCR5380.c | struct NCR5380_hostdata *hostdata = (struct NCR5380_hostdata *) |
hostdata | 714 | drivers/scsi/NCR5380.c | instance->hostdata; |
hostdata | 727 | drivers/scsi/NCR5380.c | if (!hostdata->connected) { |
hostdata | 731 | drivers/scsi/NCR5380.c | print_Scsi_Cmnd ((Scsi_Cmnd *) hostdata->connected); |
hostdata | 736 | drivers/scsi/NCR5380.c | for (ptr = (Scsi_Cmnd *) hostdata->issue_queue; ptr; |
hostdata | 742 | drivers/scsi/NCR5380.c | for (ptr = (Scsi_Cmnd *) hostdata->disconnected_queue; ptr; |
hostdata | 766 | drivers/scsi/NCR5380.c | struct NCR5380_hostdata *hostdata = (struct NCR5380_hostdata *) |
hostdata | 767 | drivers/scsi/NCR5380.c | instance->hostdata; |
hostdata | 781 | drivers/scsi/NCR5380.c | hostdata->aborted = 0; |
hostdata | 782 | drivers/scsi/NCR5380.c | hostdata->id_mask = 1 << instance->this_id; |
hostdata | 783 | drivers/scsi/NCR5380.c | for (i = hostdata->id_mask; i <= 0x80; i <<= 1) |
hostdata | 784 | drivers/scsi/NCR5380.c | if (i > hostdata->id_mask) |
hostdata | 785 | drivers/scsi/NCR5380.c | hostdata->id_higher_mask |= i; |
hostdata | 787 | drivers/scsi/NCR5380.c | hostdata->busy[i] = 0; |
hostdata | 789 | drivers/scsi/NCR5380.c | hostdata->dmalen = 0; |
hostdata | 791 | drivers/scsi/NCR5380.c | hostdata->targets_present = 0; |
hostdata | 792 | drivers/scsi/NCR5380.c | hostdata->connected = NULL; |
hostdata | 793 | drivers/scsi/NCR5380.c | hostdata->issue_queue = NULL; |
hostdata | 794 | drivers/scsi/NCR5380.c | hostdata->disconnected_queue = NULL; |
hostdata | 795 | drivers/scsi/NCR5380.c | hostdata->flags = FLAG_CHECK_LAST_BYTE_SENT | flags; |
hostdata | 804 | drivers/scsi/NCR5380.c | hostdata->time_expires = 0; |
hostdata | 805 | drivers/scsi/NCR5380.c | hostdata->next_timer = NULL; |
hostdata | 820 | drivers/scsi/NCR5380.c | if (hostdata->flags & FLAG_NCR53C400) { |
hostdata | 849 | drivers/scsi/NCR5380.c | struct NCR5380_hostdata *hostdata = (struct NCR5380_hostdata *) |
hostdata | 850 | drivers/scsi/NCR5380.c | cmd->host->hostdata; |
hostdata | 885 | drivers/scsi/NCR5380.c | if (!(hostdata->issue_queue) || (cmd->cmnd[0] == REQUEST_SENSE)) { |
hostdata | 886 | drivers/scsi/NCR5380.c | cmd->host_scribble = (unsigned char *) hostdata->issue_queue; |
hostdata | 887 | drivers/scsi/NCR5380.c | hostdata->issue_queue = cmd; |
hostdata | 889 | drivers/scsi/NCR5380.c | for (tmp = (Scsi_Cmnd *) hostdata->issue_queue; tmp->host_scribble; |
hostdata | 918 | drivers/scsi/NCR5380.c | struct NCR5380_hostdata *hostdata; |
hostdata | 938 | drivers/scsi/NCR5380.c | hostdata = (struct NCR5380_hostdata *) instance->hostdata; |
hostdata | 940 | drivers/scsi/NCR5380.c | if (!hostdata->connected) { |
hostdata | 948 | drivers/scsi/NCR5380.c | for (tmp = (Scsi_Cmnd *) hostdata->issue_queue, |
hostdata | 953 | drivers/scsi/NCR5380.c | if (!(hostdata->busy[tmp->target] & (1 << tmp->lun))) { |
hostdata | 957 | drivers/scsi/NCR5380.c | hostdata->issue_queue = (Scsi_Cmnd *) tmp->host_scribble; |
hostdata | 987 | drivers/scsi/NCR5380.c | hostdata->issue_queue; |
hostdata | 988 | drivers/scsi/NCR5380.c | hostdata->issue_queue = tmp; |
hostdata | 998 | drivers/scsi/NCR5380.c | if (hostdata->connected |
hostdata | 1000 | drivers/scsi/NCR5380.c | && !hostdata->dmalen |
hostdata | 1003 | drivers/scsi/NCR5380.c | && (!hostdata->time_expires || hostdata->time_expires >= jiffies) |
hostdata | 1093 | drivers/scsi/NCR5380.c | if (!hostdata->connected) |
hostdata | 1097 | drivers/scsi/NCR5380.c | transfered = (hostdata->dmalen - NCR5380_dma_residual(instance)); |
hostdata | 1098 | drivers/scsi/NCR5380.c | hostdata->connected->SCp.this_residual -= transferred; |
hostdata | 1099 | drivers/scsi/NCR5380.c | hostdata->connected->SCp.ptr += transferred; |
hostdata | 1100 | drivers/scsi/NCR5380.c | hostdata->dmalen = 0; |
hostdata | 1168 | drivers/scsi/NCR5380.c | struct NCR5380_hostdata *hostdata = (struct NCR5380_hostdata*) |
hostdata | 1169 | drivers/scsi/NCR5380.c | instance->hostdata; |
hostdata | 1176 | drivers/scsi/NCR5380.c | hostdata->restart_select = 0; |
hostdata | 1196 | drivers/scsi/NCR5380.c | NCR5380_write(OUTPUT_DATA_REG, hostdata->id_mask); |
hostdata | 1213 | drivers/scsi/NCR5380.c | NCR5380_write(SELECT_ENABLE_REG, hostdata->id_mask); |
hostdata | 1238 | drivers/scsi/NCR5380.c | (NCR5380_read(CURRENT_SCSI_DATA_REG) & hostdata->id_higher_mask) || |
hostdata | 1279 | drivers/scsi/NCR5380.c | NCR5380_write(OUTPUT_DATA_REG, (hostdata->id_mask | (1 << cmd->target))); |
hostdata | 1343 | drivers/scsi/NCR5380.c | NCR5380_write(SELECT_ENABLE_REG, hostdata->id_mask); |
hostdata | 1351 | drivers/scsi/NCR5380.c | if (hostdata->targets_present & (1 << cmd->target)) { |
hostdata | 1353 | drivers/scsi/NCR5380.c | if (hostdata->restart_select) |
hostdata | 1358 | drivers/scsi/NCR5380.c | NCR5380_write(SELECT_ENABLE_REG, hostdata->id_mask); |
hostdata | 1363 | drivers/scsi/NCR5380.c | NCR5380_write(SELECT_ENABLE_REG, hostdata->id_mask); |
hostdata | 1368 | drivers/scsi/NCR5380.c | NCR5380_write(SELECT_ENABLE_REG, hostdata->id_mask); |
hostdata | 1372 | drivers/scsi/NCR5380.c | hostdata->targets_present |= (1 << cmd->target); |
hostdata | 1411 | drivers/scsi/NCR5380.c | hostdata->last_message = SIMPLE_QUEUE_TAG; |
hostdata | 1428 | drivers/scsi/NCR5380.c | hostdata->connected = cmd; |
hostdata | 1432 | drivers/scsi/NCR5380.c | hostdata->busy[cmd->target] |= (1 << cmd->lun); |
hostdata | 1618 | drivers/scsi/NCR5380.c | struct NCR5380_hostdata *hostdata = (struct NCR5380_hostdata *) |
hostdata | 1619 | drivers/scsi/NCR5380.c | instance->hostdata; |
hostdata | 1638 | drivers/scsi/NCR5380.c | hostdata->dma_len = (p & SR_IO) ? |
hostdata | 1836 | drivers/scsi/NCR5380.c | if (!(hostdata->flags & FLAG_HAS_LAST_BYTE_SENT)) { |
hostdata | 1861 | drivers/scsi/NCR5380.c | if (hostdata->flags & FLAG_CHECK_LAST_BYTE_SENT) { |
hostdata | 1862 | drivers/scsi/NCR5380.c | hostdata->flags &= ~FLAG_CHECK_LAST_BYTE_SENT; |
hostdata | 1864 | drivers/scsi/NCR5380.c | hostdata->flags |= FLAG_HAS_LAST_BYTE_SENT; |
hostdata | 1912 | drivers/scsi/NCR5380.c | struct NCR5380_hostdata *hostdata = (struct NCR5380_hostdata *) |
hostdata | 1913 | drivers/scsi/NCR5380.c | instance->hostdata; |
hostdata | 1922 | drivers/scsi/NCR5380.c | Scsi_Cmnd *cmd = (Scsi_Cmnd *) hostdata->connected; |
hostdata | 2078 | drivers/scsi/NCR5380.c | cmd = hostdata->connected; |
hostdata | 2085 | drivers/scsi/NCR5380.c | hostdata->connected = NULL; |
hostdata | 2090 | drivers/scsi/NCR5380.c | hostdata->busy[cmd->target] &= ~(1 << cmd->lun); |
hostdata | 2134 | drivers/scsi/NCR5380.c | hostdata->issue_queue; |
hostdata | 2135 | drivers/scsi/NCR5380.c | hostdata->issue_queue = (Scsi_Cmnd *) cmd; |
hostdata | 2144 | drivers/scsi/NCR5380.c | NCR5380_write(SELECT_ENABLE_REG, hostdata->id_mask); |
hostdata | 2151 | drivers/scsi/NCR5380.c | while ((NCR5380_read(STATUS_REG) & SR_BSY) && !hostdata->connected) |
hostdata | 2157 | drivers/scsi/NCR5380.c | switch (hostdata->last_message) { |
hostdata | 2162 | drivers/scsi/NCR5380.c | hostdata->busy[cmd->target] |= (1 << cmd->lun); |
hostdata | 2173 | drivers/scsi/NCR5380.c | hostdata->disconnected_queue; |
hostdata | 2174 | drivers/scsi/NCR5380.c | hostdata->connected = NULL; |
hostdata | 2175 | drivers/scsi/NCR5380.c | hostdata->disconnected_queue = cmd; |
hostdata | 2189 | drivers/scsi/NCR5380.c | NCR5380_write(SELECT_ENABLE_REG, hostdata->id_mask); |
hostdata | 2191 | drivers/scsi/NCR5380.c | while ((NCR5380_read(STATUS_REG) & SR_BSY) && !hostdata->connected) |
hostdata | 2300 | drivers/scsi/NCR5380.c | hostdata->last_message = msgout; |
hostdata | 2303 | drivers/scsi/NCR5380.c | hostdata->busy[cmd->target] &= ~(1 << cmd->lun); |
hostdata | 2304 | drivers/scsi/NCR5380.c | hostdata->connected = NULL; |
hostdata | 2307 | drivers/scsi/NCR5380.c | NCR5380_write(SELECT_ENABLE_REG, hostdata->id_mask); |
hostdata | 2324 | drivers/scsi/NCR5380.c | hostdata->time_expires = jiffies + USLEEP_SLEEP; |
hostdata | 2327 | drivers/scsi/NCR5380.c | hostdata->time_expires); |
hostdata | 2349 | drivers/scsi/NCR5380.c | if (!disconnect && hostdata->time_expires && jiffies > |
hostdata | 2350 | drivers/scsi/NCR5380.c | hostdata->time_expires) { |
hostdata | 2351 | drivers/scsi/NCR5380.c | hostdata->time_expires = jiffies + USLEEP_SLEEP; |
hostdata | 2354 | drivers/scsi/NCR5380.c | hostdata->time_expires); |
hostdata | 2378 | drivers/scsi/NCR5380.c | struct NCR5380_hostdata *hostdata = (struct NCR5380_hostdata *) |
hostdata | 2379 | drivers/scsi/NCR5380.c | instance->hostdata; |
hostdata | 2398 | drivers/scsi/NCR5380.c | hostdata->restart_select = 1; |
hostdata | 2400 | drivers/scsi/NCR5380.c | target_mask = NCR5380_read(CURRENT_SCSI_DATA_REG) & ~(hostdata->id_mask); |
hostdata | 2458 | drivers/scsi/NCR5380.c | for (tmp = (Scsi_Cmnd *) hostdata->disconnected_queue, prev = NULL; |
hostdata | 2468 | drivers/scsi/NCR5380.c | hostdata->disconnected_queue = (Scsi_Cmnd *) tmp->host_scribble; |
hostdata | 2497 | drivers/scsi/NCR5380.c | hostdata->connected = tmp; |
hostdata | 2520 | drivers/scsi/NCR5380.c | struct NCR5380_hostdata *hostdata = (struct NCR5380_hostdata * |
hostdata | 2521 | drivers/scsi/NCR5380.c | instance->hostdata); |
hostdata | 2545 | drivers/scsi/NCR5380.c | if (!(hostdata->connected->SCp.phase & SR_CD)) { |
hostdata | 2547 | drivers/scsi/NCR5380.c | hostdata->connected->SCp.this_residual -= transferred; |
hostdata | 2548 | drivers/scsi/NCR5380.c | hostdata->connected->SCp.ptr += transferred; |
hostdata | 2576 | drivers/scsi/NCR5380.c | struct NCR5380_hostdata *hostdata = (struct NCR5380_hostdata *) |
hostdata | 2577 | drivers/scsi/NCR5380.c | instance->hostdata; |
hostdata | 2603 | drivers/scsi/NCR5380.c | if (hostdata->connected == cmd) { |
hostdata | 2607 | drivers/scsi/NCR5380.c | hostdata->aborted = 1; |
hostdata | 2633 | drivers/scsi/NCR5380.c | for (prev = (Scsi_Cmnd **) &(hostdata->issue_queue), |
hostdata | 2634 | drivers/scsi/NCR5380.c | tmp = (Scsi_Cmnd *) hostdata->issue_queue; |
hostdata | 2661 | drivers/scsi/NCR5380.c | if (hostdata->connected) { |
hostdata | 2694 | drivers/scsi/NCR5380.c | for (tmp = (Scsi_Cmnd *) hostdata->disconnected_queue; tmp; |
hostdata | 2717 | drivers/scsi/NCR5380.c | for (prev = (Scsi_Cmnd **) &(hostdata->disconnected_queue), |
hostdata | 2718 | drivers/scsi/NCR5380.c | tmp = (Scsi_Cmnd *) hostdata->disconnected_queue; |
hostdata | 113 | drivers/scsi/aha1542.c | #define HOSTDATA(host) ((struct aha1542_hostdata *) &host->hostdata) |
hostdata | 2123 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) aic7xxx_boards[irq]->hostdata; |
hostdata | 2137 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) p->next->hostdata; |
hostdata | 2155 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) aic7xxx_boards[irq]->hostdata; |
hostdata | 3609 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) host->hostdata; |
hostdata | 4231 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) cmd->host->hostdata; |
hostdata | 4527 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) cmd->host->hostdata; |
hostdata | 4568 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) disk->device->host->hostdata; |
hostdata | 98 | drivers/scsi/aic7xxx_proc.c | while ((HBAptr->hostdata != NULL) && |
hostdata | 99 | drivers/scsi/aic7xxx_proc.c | ((HBAptr = ((struct aic7xxx_host *) HBAptr->hostdata)->next) != NULL)) |
hostdata | 128 | drivers/scsi/aic7xxx_proc.c | p = (struct aic7xxx_host *) HBAptr->hostdata; |
hostdata | 188 | drivers/scsi/buslogic.c | #define HOSTDATA(host) ((struct hostdata *)&(host)->hostdata) |
hostdata | 1135 | drivers/scsi/buslogic.c | shpnt = scsi_register(tpnt, sizeof (struct hostdata)); |
hostdata | 322 | drivers/scsi/eata.c | #define HD(board) ((struct hostdata *) &sh[board]->hostdata) |
hostdata | 479 | drivers/scsi/eata.c | sh[j] = scsi_register(tpnt, sizeof(struct hostdata)); |
hostdata | 503 | drivers/scsi/eata.c | memset(HD(j), 0, sizeof(struct hostdata)); |
hostdata | 619 | drivers/scsi/eata.c | j = ((struct hostdata *) SCpnt->host->hostdata)->board_number; |
hostdata | 721 | drivers/scsi/eata.c | j = ((struct hostdata *) SCarg->host->hostdata)->board_number; |
hostdata | 782 | drivers/scsi/eata.c | j = ((struct hostdata *) SCarg->host->hostdata)->board_number; |
hostdata | 351 | drivers/scsi/eata_dma.c | hostdata *hd; |
hostdata | 856 | drivers/scsi/eata_dma.c | hostdata *hd; |
hostdata | 948 | drivers/scsi/eata_dma.c | size = sizeof(hostdata) + ((sizeof(struct eata_ccb) + sizeof(long)) |
hostdata | 92 | drivers/scsi/eata_generic.h | #define HD(cmd) ((hostdata *)&(cmd->host->hostdata)) |
hostdata | 94 | drivers/scsi/eata_generic.h | #define SD(host) ((hostdata *)&(host->hostdata)) |
hostdata | 131 | drivers/scsi/eata_pio.c | hostdata *hd; |
hostdata | 285 | drivers/scsi/eata_pio.c | hostdata *hd; |
hostdata | 683 | drivers/scsi/eata_pio.c | hostdata *hd; |
hostdata | 729 | drivers/scsi/eata_pio.c | size = sizeof(hostdata) + (sizeof(struct eata_ccb) * ntohs(gc->queuesiz)); |
hostdata | 316 | drivers/scsi/hosts.h | int hostdata[0]; /* Used for storage of host specific stuff */ |
hostdata | 167 | drivers/scsi/scsi.h | void *hostdata; /* available to low-level driver */ |
hostdata | 287 | drivers/scsi/u14-34f.c | #define HD(board) ((struct hostdata *) &sh[board]->hostdata) |
hostdata | 422 | drivers/scsi/u14-34f.c | sh[j] = scsi_register(tpnt, sizeof(struct hostdata)); |
hostdata | 459 | drivers/scsi/u14-34f.c | memset(HD(j), 0, sizeof(struct hostdata)); |
hostdata | 573 | drivers/scsi/u14-34f.c | j = ((struct hostdata *) SCpnt->host->hostdata)->board_number; |
hostdata | 664 | drivers/scsi/u14-34f.c | j = ((struct hostdata *) SCarg->host->hostdata)->board_number; |
hostdata | 725 | drivers/scsi/u14-34f.c | j = ((struct hostdata *) SCarg->host->hostdata)->board_number; |
hostdata | 905 | drivers/scsi/wd7000.c | Adapter *host = (Adapter *) SCpnt->host->hostdata; |
hostdata | 1146 | drivers/scsi/wd7000.c | host = (Adapter *) sh->hostdata; |
hostdata | 1196 | drivers/scsi/wd7000.c | Adapter *host = (Adapter *) SCpnt->host->hostdata; |