Lines Matching refs:cmd

34 	uint16_t cmd;  member
42 const char *sc_to_str(uint16_t cmd) in sc_to_str() argument
49 if (cmd == e->cmd) in sc_to_str()
2972 struct scsi_cmnd *cmd; in qla28xx_start_scsi_edif() local
2992 cmd = GET_CMD_SP(sp); in qla28xx_start_scsi_edif()
3002 "qla2x00_marker failed for cmd=%p.\n", cmd); in qla28xx_start_scsi_edif()
3024 if (scsi_sg_count(cmd)) { in qla28xx_start_scsi_edif()
3025 nseg = dma_map_sg(&ha->pdev->dev, scsi_sglist(cmd), in qla28xx_start_scsi_edif()
3026 scsi_sg_count(cmd), cmd->sc_data_direction); in qla28xx_start_scsi_edif()
3056 "Failed to allocate buf for fcp_cmnd for cmd=%p.\n", cmd); in qla28xx_start_scsi_edif()
3065 if (cmd->cmd_len > 16) { in qla28xx_start_scsi_edif()
3066 additional_cdb_len = cmd->cmd_len - 16; in qla28xx_start_scsi_edif()
3067 if ((cmd->cmd_len % 4) != 0) { in qla28xx_start_scsi_edif()
3074 cmd->cmd_len, cmd); in qla28xx_start_scsi_edif()
3077 ctx->fcp_cmnd_len = 12 + cmd->cmd_len + 4; in qla28xx_start_scsi_edif()
3095 if (!scsi_bufflen(cmd) || cmd->sc_data_direction == DMA_NONE) { in qla28xx_start_scsi_edif()
3101 if (cmd->sc_data_direction == DMA_TO_DEVICE) { in qla28xx_start_scsi_edif()
3103 vha->qla_stats.output_bytes += scsi_bufflen(cmd); in qla28xx_start_scsi_edif()
3105 sp->fcport->edif.tx_bytes += scsi_bufflen(cmd); in qla28xx_start_scsi_edif()
3106 } else if (cmd->sc_data_direction == DMA_FROM_DEVICE) { in qla28xx_start_scsi_edif()
3108 vha->qla_stats.input_bytes += scsi_bufflen(cmd); in qla28xx_start_scsi_edif()
3110 sp->fcport->edif.rx_bytes += scsi_bufflen(cmd); in qla28xx_start_scsi_edif()
3121 scsi_for_each_sg(cmd, sg, tot_dsds, i) { in qla28xx_start_scsi_edif()
3156 int_to_scsilun(cmd->device->lun, &cmd_pkt->lun); in qla28xx_start_scsi_edif()
3160 int_to_scsilun(cmd->device->lun, &ctx->fcp_cmnd->lun); in qla28xx_start_scsi_edif()
3163 if (cmd->sc_data_direction == DMA_TO_DEVICE) in qla28xx_start_scsi_edif()
3165 else if (cmd->sc_data_direction == DMA_FROM_DEVICE) in qla28xx_start_scsi_edif()
3173 memcpy(ctx->fcp_cmnd->cdb, cmd->cmnd, cmd->cmd_len); in qla28xx_start_scsi_edif()
3177 *fcp_dl = htonl((uint32_t)scsi_bufflen(cmd)); in qla28xx_start_scsi_edif()
3182 cmd_pkt->byte_count = cpu_to_le32((uint32_t)scsi_bufflen(cmd)); in qla28xx_start_scsi_edif()
3191 cmd->host_scribble = (unsigned char *)(unsigned long)handle; in qla28xx_start_scsi_edif()
3215 scsi_dma_unmap(cmd); in qla28xx_start_scsi_edif()
3491 struct scsi_cmnd *cmd = GET_CMD_SP(sp); in qla_chk_edif_rx_sa_delete_pending() local
3497 if (cmd->sc_data_direction != DMA_FROM_DEVICE) in qla_chk_edif_rx_sa_delete_pending()