Lines Matching refs:fcp_cmnd
1352 struct fcp_cmnd *fcp_cmnd; in qla24xx_build_scsi_crc_2_iocbs() local
1422 fcp_cmnd = &crc_ctx_pkt->fcp_cmnd; in qla24xx_build_scsi_crc_2_iocbs()
1424 fcp_cmnd->additional_cdb_len = additional_fcpcdb_len; in qla24xx_build_scsi_crc_2_iocbs()
1426 fcp_cmnd->additional_cdb_len |= 1; in qla24xx_build_scsi_crc_2_iocbs()
1428 fcp_cmnd->additional_cdb_len |= 2; in qla24xx_build_scsi_crc_2_iocbs()
1430 int_to_scsilun(cmd->device->lun, &fcp_cmnd->lun); in qla24xx_build_scsi_crc_2_iocbs()
1431 memcpy(fcp_cmnd->cdb, cmd->cmnd, cmd->cmd_len); in qla24xx_build_scsi_crc_2_iocbs()
1435 fcp_cmnd->task_management = 0; in qla24xx_build_scsi_crc_2_iocbs()
1436 fcp_cmnd->task_attribute = TSK_SIMPLE; in qla24xx_build_scsi_crc_2_iocbs()
1496 fcp_dl = (__be32 *)(crc_ctx_pkt->fcp_cmnd.cdb + 16 + in qla24xx_build_scsi_crc_2_iocbs()
3492 ctx->fcp_cmnd = dma_pool_zalloc(ha->fcp_cmnd_dma_pool, in qla82xx_start_scsi()
3494 if (!ctx->fcp_cmnd) { in qla82xx_start_scsi()
3545 int_to_scsilun(cmd->device->lun, &ctx->fcp_cmnd->lun); in qla82xx_start_scsi()
3546 ctx->fcp_cmnd->additional_cdb_len = additional_cdb_len; in qla82xx_start_scsi()
3549 ctx->fcp_cmnd->additional_cdb_len |= 1; in qla82xx_start_scsi()
3551 ctx->fcp_cmnd->additional_cdb_len |= 2; in qla82xx_start_scsi()
3555 ctx->fcp_cmnd->task_attribute |= in qla82xx_start_scsi()
3558 memcpy(ctx->fcp_cmnd->cdb, cmd->cmnd, cmd->cmd_len); in qla82xx_start_scsi()
3560 fcp_dl = (__be32 *)(ctx->fcp_cmnd->cdb + 16 + in qla82xx_start_scsi()
3674 dma_pool_free(ha->fcp_cmnd_dma_pool, ctx->fcp_cmnd, ctx->fcp_cmnd_dma); in qla82xx_start_scsi()
4361 ctx->fcp_cmnd = dma_pool_zalloc(ha->fcp_cmnd_dma_pool, in qla_start_scsi_type6()
4363 if (!ctx->fcp_cmnd) { in qla_start_scsi_type6()
4421 int_to_scsilun(cmd->device->lun, &ctx->fcp_cmnd->lun); in qla_start_scsi_type6()
4422 ctx->fcp_cmnd->additional_cdb_len = additional_cdb_len; in qla_start_scsi_type6()
4425 ctx->fcp_cmnd->additional_cdb_len |= 1; in qla_start_scsi_type6()
4427 ctx->fcp_cmnd->additional_cdb_len |= 2; in qla_start_scsi_type6()
4431 ctx->fcp_cmnd->task_attribute |= in qla_start_scsi_type6()
4434 memcpy(ctx->fcp_cmnd->cdb, cmd->cmnd, cmd->cmd_len); in qla_start_scsi_type6()
4436 fcp_dl = (__be32 *)(ctx->fcp_cmnd->cdb + 16 + in qla_start_scsi_type6()
4475 dma_pool_free(ha->fcp_cmnd_dma_pool, ctx->fcp_cmnd, ctx->fcp_cmnd_dma); in qla_start_scsi_type6()