Lines Matching refs:insn
334 static int print_insn (struct Scsi_Host *host, const u32 *insn,
4690 * u32 *insn, int kernel)
4693 * to by insn to the debugging or kernel message buffer
4699 * Inputs : host, insn - host, pointer to instruction, prefix -
4707 print_insn (struct Scsi_Host *host, const u32 *insn,
4714 unsigned char dcmd; /* dcmd register for *insn */
4718 if (virt_to_phys((void *)insn) < PAGE_SIZE ||
4719 virt_to_phys((void *)(insn + 8)) > virt_to_phys(high_memory) ||
4720 ((((dcmd = (insn[0] >> 24) & 0xff) & DCMD_TYPE_MMI) == DCMD_TYPE_MMI) &&
4721 virt_to_phys((void *)(insn + 12)) > virt_to_phys(high_memory))) {
4724 prefix, insn);
4728 (prefix ? prefix : ""), virt_to_bus((void *) insn), insn,
4729 insn[0], insn[1], bus_to_virt (insn[1]));
4733 (prefix ? prefix : ""), (u32)insn, ((u32)insn -
4735 insn[0], insn[1]);
4740 sprintf (tmp, " 0x%08x (virt 0x%p)\n", insn[2],
4741 bus_to_virt(insn[2]));
4744 sprintf (tmp, " 0x%08x\n", insn[2]);
5004 * Function : int insn_to_offset (Scsi_Cmnd *cmd, u32 *insn)
5009 * Inputs : cmd - SCSI command; insn - pointer to instruction. Either current
5017 insn_to_offset (Scsi_Cmnd *cmd, u32 *insn) {
5028 * With the current code implementation, if the insn is inside dynamically
5034 ((insn >= ncmd->data_transfer_start &&
5035 insn < ncmd->data_transfer_end) ||
5036 (insn >= ncmd->residual &&
5037 insn < (ncmd->residual +
5039 ptr = bus_to_virt(insn[3]);
5053 } else if ((insn >= hostdata->script +
5055 (insn <= hostdata->script +