Lines Matching refs:cmd
2973 struct scsi_cmnd *cmd; in qlafx00_build_scsi_iocbs() local
2983 cmd = GET_CMD_SP(sp); in qlafx00_build_scsi_iocbs()
2991 if (!scsi_bufflen(cmd) || cmd->sc_data_direction == DMA_NONE) { in qlafx00_build_scsi_iocbs()
2997 if (cmd->sc_data_direction == DMA_TO_DEVICE) { in qlafx00_build_scsi_iocbs()
2999 vha->qla_stats.output_bytes += scsi_bufflen(cmd); in qlafx00_build_scsi_iocbs()
3000 } else if (cmd->sc_data_direction == DMA_FROM_DEVICE) { in qlafx00_build_scsi_iocbs()
3002 vha->qla_stats.input_bytes += scsi_bufflen(cmd); in qlafx00_build_scsi_iocbs()
3010 scsi_for_each_sg(cmd, sg, tot_dsds, i) { in qlafx00_build_scsi_iocbs()
3057 struct scsi_cmnd *cmd = GET_CMD_SP(sp); in qlafx00_start_scsi() local
3079 if (scsi_sg_count(cmd)) { in qlafx00_start_scsi()
3080 nseg = dma_map_sg(&ha->pdev->dev, scsi_sglist(cmd), in qlafx00_start_scsi()
3081 scsi_sg_count(cmd), cmd->sc_data_direction); in qlafx00_start_scsi()
3105 cmd->host_scribble = (unsigned char *)(unsigned long)handle; in qlafx00_start_scsi()
3119 int_to_scsilun(cmd->device->lun, &llun); in qlafx00_start_scsi()
3124 host_to_adap(cmd->cmnd, lcmd_pkt.fcp_cdb, sizeof(lcmd_pkt.fcp_cdb)); in qlafx00_start_scsi()
3125 lcmd_pkt.byte_count = cpu_to_le32((uint32_t)scsi_bufflen(cmd)); in qlafx00_start_scsi()
3137 cmd->cmnd, cmd->cmd_len); in qlafx00_start_scsi()
3163 scsi_dma_unmap(cmd); in qlafx00_start_scsi()