Lines Matching refs:cmd
230 struct target_cmd *cmd);
2651 ahc_set_tags(struct ahc_softc *ahc, struct scsi_cmnd *cmd, in ahc_set_tags() argument
2654 struct scsi_device *sdev = cmd->device; in ahc_set_tags()
7736 struct target_cmd *cmd; in ahc_run_tqinfifo() local
7747 while ((cmd = &ahc->targetcmds[ahc->tqinfifonext])->cmd_valid != 0) { in ahc_run_tqinfifo()
7753 if (ahc_handle_target_cmd(ahc, cmd) != 0) in ahc_run_tqinfifo()
7756 cmd->cmd_valid = 0; in ahc_run_tqinfifo()
7789 ahc_handle_target_cmd(struct ahc_softc *ahc, struct target_cmd *cmd) in ahc_handle_target_cmd() argument
7799 initiator = SCSIID_TARGET(ahc, cmd->scsiid); in ahc_handle_target_cmd()
7800 target = SCSIID_OUR_ID(cmd->scsiid); in ahc_handle_target_cmd()
7801 lun = (cmd->identify & MSG_IDENTIFY_LUNMASK); in ahc_handle_target_cmd()
7803 byte = cmd->bytes; in ahc_handle_target_cmd()
7882 if ((cmd->identify & MSG_IDENTIFY_DISCFLAG) == 0) { in ahc_handle_target_cmd()