• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/scsi/

Lines Matching defs:script

29  * then the script only ever tries to add small (< 256) positive offsets to
348 /* NCR53c710 script handling code */
683 ncrcurrent[1] = (u32) virt_to_bus (hostdata->script) +
1067 allocated at probe time after the fixed-up SCSI script, which
1160 tmp = (hostdata->script + hostdata->script_count);
1230 memcpy ((void *) hostdata->script, (void *) SCRIPT,
1234 hostdata->script[LABELPATCHES[i]] +=
1235 virt_to_bus(hostdata->script);
1238 patch_abs_32 (hostdata->script, 0, NCR53c7xx_msg_abort,
1240 patch_abs_32 (hostdata->script, 0, NCR53c7xx_msg_reject,
1242 patch_abs_32 (hostdata->script, 0, NCR53c7xx_zero,
1244 patch_abs_32 (hostdata->script, 0, NCR53c7xx_sink,
1246 patch_abs_32 (hostdata->script, 0, NOP_insn,
1248 patch_abs_32 (hostdata->script, 0, schedule,
1253 hostdata->script[EXTERNAL_PATCHES[i].offset] +=
1265 patch_abs_rwri_data (hostdata->script, 0, dsa_save_data_pointer,
1267 patch_abs_rwri_data (hostdata->script, 0, dsa_restore_pointers,
1269 patch_abs_rwri_data (hostdata->script, 0, dsa_check_reselect,
1297 patch_abs_32 (hostdata->script, 0, addr_scratch, base + SCRATCHA_REG_800);
1298 patch_abs_32 (hostdata->script, 0, addr_temp, base + TEMP_REG);
1299 patch_abs_32 (hostdata->script, 0, addr_dsa, base + DSA_REG);
1302 * I needed some variables in the script to be accessible to
1310 patch_abs_rwri_data (hostdata->script, 0, dmode_memory_to_memory, tmp);
1311 patch_abs_rwri_data (hostdata->script, 0, dmode_memory_to_ncr, memory_to_ncr);
1312 patch_abs_rwri_data (hostdata->script, 0, dmode_ncr_to_memory, ncr_to_memory);
1314 patch_abs_32 (hostdata->script, 0, msg_buf,
1316 patch_abs_32 (hostdata->script, 0, reconnect_dsa_head,
1318 patch_abs_32 (hostdata->script, 0, addr_reconnect_dsa_head,
1320 patch_abs_32 (hostdata->script, 0, reselected_identify,
1324 patch_abs_32 (hostdata->script, 0, test_dest,
1326 patch_abs_32 (hostdata->script, 0, test_src,
1328 patch_abs_32 (hostdata->script, 0, saved_dsa,
1330 patch_abs_32 (hostdata->script, 0, emulfly,
1333 patch_abs_rwri_data (hostdata->script, 0, dsa_check_reselect,
1339 patch_abs_32 (hostdata->script, 0, int_EVENT_SELECT, (u32) EVENT_SELECT);
1342 patch_abs_32 (hostdata->script, 0, int_EVENT_DISCONNECT, (u32) EVENT_DISCONNECT);
1345 patch_abs_32 (hostdata->script, 0, int_EVENT_RESELECT, (u32) EVENT_RESELECT);
1348 patch_abs_32 (hostdata->script, 0, int_EVENT_COMPLETE, (u32) EVENT_COMPLETE);
1351 patch_abs_32 (hostdata->script, 0, int_EVENT_IDLE, (u32) EVENT_IDLE);
1354 patch_abs_32 (hostdata->script, 0, int_EVENT_SELECT_FAILED,
1358 patch_abs_32 (hostdata->script, 0, int_EVENT_BEFORE_SELECT,
1362 patch_abs_32 (hostdata->script, 0, int_EVENT_RESELECT_FAILED,
1423 virt_to_bus(hostdata->script), hostdata->script);
1473 start = virt_to_bus (hostdata->script) + hostdata->E_test_1;
1515 printk ("scsi%d : DSP = 0x%p (script at 0x%p, start at 0x%x)\n",
1517 hostdata->script, start);
1567 start = virt_to_bus(hostdata->script) + hostdata->E_test_2;
1630 memcpy (cmd->dsa, hostdata->script + (hostdata->E_dsa_code_template / 4),
1657 dsa_temp_sync, virt_to_bus((void *)hostdata->sync[c->device->id].script));
1821 * Purpose : Handler for breakpoint interrupts from a SCSI script
1900 * select operand, reselection script, and chip registers.
1916 u32 *script;
1927 * HARD CODED : synchronous script is EIGHT words long. This
1936 script = (u32 *) hostdata->sync[target].script;
1938 script[0] = ((DCMD_TYPE_RWRI | DCMD_RWRI_OPC_MODIFY |
1941 script[1] = 0;
1942 script += 2;
1944 script[0] = ((DCMD_TYPE_RWRI | DCMD_RWRI_OPC_MODIFY |
1947 script[1] = 0;
1948 script += 2;
1952 script[0] = ((DCMD_TYPE_TCI|DCMD_TCI_OP_INT) << 24) | DBC_TCI_TRUE;
1953 script[1] = DEBUG_SYNC_INTR;
1954 script += 2;
1958 script[0] = ((DCMD_TYPE_TCI|DCMD_TCI_OP_RETURN) << 24) | DBC_TCI_TRUE;
1959 script[1] = 0;
1960 script += 2;
2126 hostdata->dsp = hostdata->script + hostdata->E_accept_message /
2141 hostdata->dsp = hostdata->script + hostdata->E_reject_message /
2148 hostdata->dsp = hostdata->script + hostdata->E_reject_message /
2194 hostdata->dsp = hostdata->script + hostdata->E_accept_message /
2210 hostdata->dsp = hostdata->script +
2219 hostdata->dsp = hostdata->script + hostdata->E_reject_message /
2234 hostdata->dsp = hostdata->script + hostdata->E_target_abort /
2246 hostdata->dsp = hostdata->script + hostdata->E_initiator_abort /
2297 virt_to_bus(hostdata->script) + hostdata->E_other_transfer);
2306 cmd->data_transfer_start[3] = (u32) virt_to_bus(hostdata->script) +
2321 hostdata->dsp = (u32 *) hostdata->script + hostdata->E_select /
2361 print_insn (host, hostdata->script + Ent_reselected_ok /
2372 hostdata->sync[c->device->id].script, "", 1);
2374 hostdata->sync[c->device->id].script + 2, "", 1);
2396 print_insn (host, hostdata->script + Ent_reselected_ok /
2492 hostdata->sync[c->device->id].script, "", 1);
2494 hostdata->sync[c->device->id].script + 2, "", 1);
2612 (DCMD_REG)) == hostdata->script +
2735 * script and setting up the synchronous transfer gunk.
3045 tmp->saved_data_pointer = virt_to_bus (hostdata->script) +
3144 : virt_to_bus (hostdata->script) + hostdata->E_other_transfer);
3147 : virt_to_bus (hostdata->script) + hostdata->E_other_transfer);
3228 cmd_datain[1] = virt_to_bus (hostdata->script) +
3240 cmd_dataout[1] = virt_to_bus(hostdata->script) +
3258 cmd_datain[1] = virt_to_bus(hostdata->script) +
3265 cmd_dataout[1] = virt_to_bus(hostdata->script) +
3680 hostdata->dsp = hostdata->script + hostdata->E_initiator_abort /
3707 hostdata->dsp = hostdata->script + hostdata->E_initiator_abort /
3782 printk ("%08x (+%6x): ", insn_log[i], (insn_log[i] - (u32)&(((struct NCR53c7x0_hostdata *)host->hostdata[0])->script))/4);
3912 * On the 710 we simualte an INTFLY with a script interrupt, and the
3913 * script interrupt handler will call back to this function.
4049 u32 *script;
4081 script = hostdata->abort_script = kmalloc (
4090 hostdata->dsp = hostdata->script + hostdata->E_initiator_abort /
4293 cmd->residual[1] = virt_to_bus(hostdata->script)
4327 } else if (dsp == (hostdata->script + hostdata->E_select_msgout / 4 + 2)) {
4328 /* RGH 290697: Added +2 above, to compensate for the script
4348 hostdata->dsp = hostdata->script + hostdata->E_msg_in /
4362 } else if (dsp == hostdata->script + hostdata->E_cmdout_cmdout / sizeof
4364 hostdata->dsp = hostdata->script + hostdata->E_data_transfer /
4369 } else if (dsp == hostdata->script + hostdata->E_reply_message) {
4579 if (((dsp >= (hostdata->script + hostdata->E_select / sizeof(u32))) &&
4580 (dsp <= (hostdata->script + hostdata->E_select_msgout /
4640 * are determined entirely by the SCSI script running,
4641 * and are local to a particular script, a unique handler
4642 * is called for each script.
4720 (u32)&(((struct NCR53c7x0_hostdata *)host->hostdata[0])->script))/4,
5037 } else if ((insn >= hostdata->script +
5039 (insn <= hostdata->script +
5166 " script : ",
5170 for (i = 0; i < (sizeof(hostdata->sync[cmd->device->id].script) / 4); ++i)
5171 printk ("0x%x ", hostdata->sync[cmd->device->id].script[i]);