Lines Matching refs:cmd
154 struct scsi_cmnd *cmd; in qla4xxx_build_scsi_iocbs() local
158 cmd = srb->cmd; in qla4xxx_build_scsi_iocbs()
161 if (!scsi_bufflen(cmd) || cmd->sc_data_direction == DMA_NONE) { in qla4xxx_build_scsi_iocbs()
170 scsi_for_each_sg(cmd, sg, tot_dsds, i) { in qla4xxx_build_scsi_iocbs()
274 struct scsi_cmnd *cmd = srb->cmd; in qla4xxx_send_command_to_isp() local
291 index = scsi_cmd_to_rq(cmd)->tag; in qla4xxx_send_command_to_isp()
307 nseg = scsi_dma_map(cmd); in qla4xxx_send_command_to_isp()
327 int_to_scsilun(cmd->device->lun, &cmd_entry->lun); in qla4xxx_send_command_to_isp()
328 cmd_entry->ttlByteCnt = cpu_to_le32(scsi_bufflen(cmd)); in qla4xxx_send_command_to_isp()
329 memcpy(cmd_entry->cdb, cmd->cmnd, cmd->cmd_len); in qla4xxx_send_command_to_isp()
338 if (scsi_bufflen(cmd)) { in qla4xxx_send_command_to_isp()
339 if (cmd->sc_data_direction == DMA_TO_DEVICE) in qla4xxx_send_command_to_isp()
341 else if (cmd->sc_data_direction == DMA_FROM_DEVICE) in qla4xxx_send_command_to_isp()
344 ha->bytes_xfered += scsi_bufflen(cmd); in qla4xxx_send_command_to_isp()
358 srb->cmd->host_scribble = (unsigned char *)(unsigned long)index; in qla4xxx_send_command_to_isp()
376 scsi_dma_unmap(cmd); in qla4xxx_send_command_to_isp()