/linux-4.4.14/drivers/scsi/lpfc/ |
H A D | lpfc_scsi.c | 397 (sizeof(struct fcp_cmnd) + sizeof(struct fcp_rsp)); lpfc_new_scsi_buf_s3() 402 (int)sizeof(struct fcp_cmnd), lpfc_new_scsi_buf_s3() 413 * struct fcp_cmnd, struct fcp_rsp and the number of bde's lpfc_new_scsi_buf_s3() 436 psb->fcp_cmnd = psb->data; lpfc_new_scsi_buf_s3() 437 psb->fcp_rsp = psb->data + sizeof(struct fcp_cmnd); lpfc_new_scsi_buf_s3() 438 psb->fcp_bpl = psb->data + sizeof(struct fcp_cmnd) + lpfc_new_scsi_buf_s3() 444 pdma_phys_fcp_rsp = psb->dma_handle + sizeof(struct fcp_cmnd); lpfc_new_scsi_buf_s3() 445 pdma_phys_bpl = psb->dma_handle + sizeof(struct fcp_cmnd) + lpfc_new_scsi_buf_s3() 455 bpl[0].tus.f.bdeSize = sizeof(struct fcp_cmnd); lpfc_new_scsi_buf_s3() 476 iocb->un.fcpi64.bdl.bdeSize = sizeof(struct fcp_cmnd); lpfc_new_scsi_buf_s3() 641 (sizeof(struct fcp_cmnd) + sizeof(struct fcp_rsp)); lpfc_sli4_post_scsi_sgl_list() 806 (sizeof(struct fcp_cmnd) + sizeof(struct fcp_rsp)); lpfc_new_scsi_buf_s4() 811 (int)sizeof(struct fcp_cmnd), lpfc_new_scsi_buf_s4() 821 * for the struct fcp_cmnd, struct fcp_rsp and the number lpfc_new_scsi_buf_s4() 869 psb->fcp_cmnd = (psb->data + sgl_size); lpfc_new_scsi_buf_s4() 870 psb->fcp_rsp = (struct fcp_rsp *)((uint8_t *)psb->fcp_cmnd + lpfc_new_scsi_buf_s4() 871 sizeof(struct fcp_cmnd)); lpfc_new_scsi_buf_s4() 877 pdma_phys_fcp_rsp = pdma_phys_fcp_cmd + sizeof(struct fcp_cmnd); lpfc_new_scsi_buf_s4() 889 sgl->sge_len = cpu_to_le32(sizeof(struct fcp_cmnd)); lpfc_new_scsi_buf_s4() 911 iocb->un.fcpi64.bdl.bdeSize = sizeof(struct fcp_cmnd); lpfc_new_scsi_buf_s4() 1151 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd; lpfc_scsi_prep_dma_buf_s3() local 1163 * bumping the bpl beyond the fcp_cmnd and fcp_rsp regions to the first lpfc_scsi_prep_dma_buf_s3() 1244 physaddr += (sizeof(struct fcp_cmnd) + 1260 fcp_cmnd->fcpDl = cpu_to_be32(scsi_bufflen(scsi_cmnd)); 2703 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd; lpfc_bg_scsi_prep_dma_buf_s3() local 2712 * Start the lpfc command prep by bumping the bpl beyond fcp_cmnd lpfc_bg_scsi_prep_dma_buf_s3() 2807 fcp_cmnd->fcpDl = be32_to_cpu(fcpdl); lpfc_bg_scsi_prep_dma_buf_s3() 3227 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd; lpfc_scsi_prep_dma_buf_s4() local 3241 * bumping the bpl beyond the fcp_cmnd and fcp_rsp regions to the first lpfc_scsi_prep_dma_buf_s4() 3325 fcp_cmnd->fcpDl = cpu_to_be32(scsi_bufflen(scsi_cmnd)); 3357 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd; lpfc_bg_scsi_prep_dma_buf_s4() local 3366 * Start the lpfc command prep by bumping the sgl beyond fcp_cmnd lpfc_bg_scsi_prep_dma_buf_s4() 3471 fcp_cmnd->fcpDl = be32_to_cpu(fcpdl); lpfc_bg_scsi_prep_dma_buf_s4() 3680 struct fcp_cmnd *fcpcmd = lpfc_cmd->fcp_cmnd; lpfc_handle_fcp_err() 4163 * @fcp_cmnd: The FCP Command that is provided by the SCSI layer. 4165 * The routine copies the entire FCP command from @fcp_cmnd to @data while 4169 lpfc_fcpcmd_to_iocb(uint8_t *data, struct fcp_cmnd *fcp_cmnd) lpfc_fcpcmd_to_iocb() argument 4172 for (i = 0, j = 0; i < sizeof(struct fcp_cmnd); lpfc_fcpcmd_to_iocb() 4174 ((uint32_t *)data)[j] = cpu_to_be32(((uint32_t *)fcp_cmnd)[j]); lpfc_fcpcmd_to_iocb() 4184 * This routine initializes fcp_cmnd and iocb data structure from scsi command 4193 struct fcp_cmnd *fcp_cmnd = lpfc_cmd->fcp_cmnd; lpfc_scsi_prep_cmnd() local 4206 lpfc_cmd->fcp_cmnd->fcpCntl2 = 0; lpfc_scsi_prep_cmnd() 4209 &lpfc_cmd->fcp_cmnd->fcp_lun); lpfc_scsi_prep_cmnd() 4211 ptr = &fcp_cmnd->fcpCdb[0]; lpfc_scsi_prep_cmnd() 4218 fcp_cmnd->fcpCntl1 = SIMPLE_Q; lpfc_scsi_prep_cmnd() 4226 * bumping the bpl beyond the fcp_cmnd and fcp_rsp regions to the first lpfc_scsi_prep_cmnd() 4242 fcp_cmnd->fcpCntl3 = WRITE_DATA; lpfc_scsi_prep_cmnd() 4247 fcp_cmnd->fcpCntl3 = READ_DATA; lpfc_scsi_prep_cmnd() 4254 fcp_cmnd->fcpCntl3 = 0; lpfc_scsi_prep_cmnd() 4259 lpfc_fcpcmd_to_iocb(iocb_cmd->unsli3.fcp_ext.icd, fcp_cmnd); lpfc_scsi_prep_cmnd() 4302 struct fcp_cmnd *fcp_cmnd; lpfc_scsi_prep_task_mgmt_cmd() local 4315 fcp_cmnd = lpfc_cmd->fcp_cmnd; lpfc_scsi_prep_task_mgmt_cmd() 4317 memset(fcp_cmnd, 0, sizeof(struct fcp_cmnd)); lpfc_scsi_prep_task_mgmt_cmd() 4318 int_to_scsilun(lun, &fcp_cmnd->fcp_lun); lpfc_scsi_prep_task_mgmt_cmd() 4319 fcp_cmnd->fcpCntl2 = task_mgmt_cmd; lpfc_scsi_prep_task_mgmt_cmd() 4322 lpfc_fcpcmd_to_iocb(piocb->unsli3.fcp_ext.icd, fcp_cmnd); lpfc_scsi_prep_task_mgmt_cmd()
|
H A D | lpfc_scsi.h | 99 struct fcp_cmnd { struct 156 struct fcp_cmnd *fcp_cmnd; member in struct:lpfc_scsi_buf
|
H A D | lpfc_init.c | 5023 phba->cfg_sg_dma_buf_size = sizeof(struct fcp_cmnd) + lpfc_sli_driver_resource_setup() 5038 phba->cfg_sg_dma_buf_size = sizeof(struct fcp_cmnd) + lpfc_sli_driver_resource_setup() 5216 phba->cfg_sg_dma_buf_size = sizeof(struct fcp_cmnd) + lpfc_sli4_driver_resource_setup() 5230 phba->cfg_sg_dma_buf_size = sizeof(struct fcp_cmnd) + lpfc_sli4_driver_resource_setup()
|
H A D | lpfc_sli.c | 9957 (scsilun_to_int(&lpfc_cmd->fcp_cmnd->fcp_lun) == lun_id)) lpfc_sli_validate_fcp_iocb()
|
/linux-4.4.14/drivers/scsi/bnx2fc/ |
H A D | bnx2fc_io.c | 582 mp_req->req_len = sizeof(struct fcp_cmnd); bnx2fc_init_mp_req() 662 struct fcp_cmnd *fcp_cmnd; bnx2fc_initiate_tmf() local 730 bnx2fc_build_fcp_cmnd(io_req, (struct fcp_cmnd *)tm_req->req_buf); bnx2fc_initiate_tmf() 731 fcp_cmnd = (struct fcp_cmnd *)tm_req->req_buf; bnx2fc_initiate_tmf() 732 memset(fcp_cmnd->fc_cdb, 0, sc_cmd->cmd_len); bnx2fc_initiate_tmf() 733 fcp_cmnd->fc_dl = 0; bnx2fc_initiate_tmf() 1664 struct fcp_cmnd *fcp_cmnd) bnx2fc_build_fcp_cmnd() 1668 memset(fcp_cmnd, 0, sizeof(struct fcp_cmnd)); bnx2fc_build_fcp_cmnd() 1670 int_to_scsilun(sc_cmd->device->lun, &fcp_cmnd->fc_lun); bnx2fc_build_fcp_cmnd() 1672 fcp_cmnd->fc_dl = htonl(io_req->data_xfer_len); bnx2fc_build_fcp_cmnd() 1673 memcpy(fcp_cmnd->fc_cdb, sc_cmd->cmnd, sc_cmd->cmd_len); bnx2fc_build_fcp_cmnd() 1675 fcp_cmnd->fc_cmdref = 0; bnx2fc_build_fcp_cmnd() 1676 fcp_cmnd->fc_pri_ta = 0; bnx2fc_build_fcp_cmnd() 1677 fcp_cmnd->fc_tm_flags = io_req->mp_req.tm_flags; bnx2fc_build_fcp_cmnd() 1678 fcp_cmnd->fc_flags = io_req->io_req_flags; bnx2fc_build_fcp_cmnd() 1679 fcp_cmnd->fc_pri_ta = FCP_PTA_SIMPLE; bnx2fc_build_fcp_cmnd() 1663 bnx2fc_build_fcp_cmnd(struct bnx2fc_cmd *io_req, struct fcp_cmnd *fcp_cmnd) bnx2fc_build_fcp_cmnd() argument
|
H A D | bnx2fc.h | 561 struct fcp_cmnd *fcp_cmnd);
|
H A D | bnx2fc_hwi.c | 1693 u64 *fcp_cmnd; bnx2fc_init_task() local 1762 fcp_cmnd = (u64 *) bnx2fc_init_task() 1764 bnx2fc_build_fcp_cmnd(io_req, (struct fcp_cmnd *)&tmp_fcp_cmnd); bnx2fc_init_task() 1766 /* swap fcp_cmnd */ bnx2fc_init_task() 1767 cnt = sizeof(struct fcp_cmnd) / sizeof(u64); bnx2fc_init_task() 1770 *fcp_cmnd = cpu_to_be64(tmp_fcp_cmnd[i]); bnx2fc_init_task() 1771 fcp_cmnd++; bnx2fc_init_task()
|
/linux-4.4.14/drivers/scsi/qla2xxx/ |
H A D | qla_iocb.c | 1227 struct fcp_cmnd *fcp_cmnd; qla24xx_build_scsi_crc_2_iocbs() local 1302 fcp_cmnd = &crc_ctx_pkt->fcp_cmnd; qla24xx_build_scsi_crc_2_iocbs() 1304 fcp_cmnd->additional_cdb_len = additional_fcpcdb_len; qla24xx_build_scsi_crc_2_iocbs() 1306 fcp_cmnd->additional_cdb_len |= 1; qla24xx_build_scsi_crc_2_iocbs() 1308 fcp_cmnd->additional_cdb_len |= 2; qla24xx_build_scsi_crc_2_iocbs() 1310 int_to_scsilun(cmd->device->lun, &fcp_cmnd->lun); qla24xx_build_scsi_crc_2_iocbs() 1311 memcpy(fcp_cmnd->cdb, cmd->cmnd, cmd->cmd_len); qla24xx_build_scsi_crc_2_iocbs() 1317 fcp_cmnd->task_management = 0; qla24xx_build_scsi_crc_2_iocbs() 1318 fcp_cmnd->task_attribute = TSK_SIMPLE; qla24xx_build_scsi_crc_2_iocbs() 1378 fcp_dl = (uint32_t *)(crc_ctx_pkt->fcp_cmnd.cdb + 16 + qla24xx_build_scsi_crc_2_iocbs() 2348 ctx->fcp_cmnd = dma_pool_alloc(ha->fcp_cmnd_dma_pool, qla82xx_start_scsi() 2350 if (!ctx->fcp_cmnd) { qla82xx_start_scsi() 2352 "Failed to allocate fcp_cmnd for cmd=%p.\n", cmd); qla82xx_start_scsi() 2401 memset(ctx->fcp_cmnd, 0, sizeof(struct fcp_cmnd)); qla82xx_start_scsi() 2402 int_to_scsilun(cmd->device->lun, &ctx->fcp_cmnd->lun); qla82xx_start_scsi() 2403 ctx->fcp_cmnd->additional_cdb_len = additional_cdb_len; qla82xx_start_scsi() 2406 ctx->fcp_cmnd->additional_cdb_len |= 1; qla82xx_start_scsi() 2408 ctx->fcp_cmnd->additional_cdb_len |= 2; qla82xx_start_scsi() 2412 ctx->fcp_cmnd->task_attribute |= qla82xx_start_scsi() 2415 memcpy(ctx->fcp_cmnd->cdb, cmd->cmnd, cmd->cmd_len); qla82xx_start_scsi() 2417 fcp_dl = (uint32_t *)(ctx->fcp_cmnd->cdb + 16 + qla82xx_start_scsi() 2532 dma_pool_free(ha->fcp_cmnd_dma_pool, ctx->fcp_cmnd, ctx->fcp_cmnd_dma); qla82xx_start_scsi()
|
H A D | qla_nx.h | 864 struct fcp_cmnd { struct 884 struct fcp_cmnd *fcp_cmnd; member in struct:ct6_dsd
|
H A D | qla_target.c | 552 lun = a->u.isp24.fcp_cmnd.lun; qlt_reset() 1342 (struct scsi_lun *)&op->atio.u.isp24.fcp_cmnd.lun); abort_cmds_for_lun() 1352 (struct scsi_lun *)&cmd->atio.u.isp24.fcp_cmnd.lun); abort_cmds_for_lun() 2738 cmd->atio.u.isp24.fcp_cmnd.cdb[0], lba, qlt_handle_dif_error() 2809 cmd->atio.u.isp24.fcp_cmnd.cdb[0], lba, qlt_handle_dif_error() 2822 cmd->atio.u.isp24.fcp_cmnd.cdb[0], lba, qlt_handle_dif_error() 2835 cmd->atio.u.isp24.fcp_cmnd.cdb[0], lba, qlt_handle_dif_error() 2980 &atio->u.isp24.fcp_cmnd.add_cdb[ __qlt_send_term_exchange() 2981 atio->u.isp24.fcp_cmnd.add_cdb_len]); __qlt_send_term_exchange() 3563 cdb = &atio->u.isp24.fcp_cmnd.cdb[0]; __qlt_do_work() 3566 (struct scsi_lun *)&atio->u.isp24.fcp_cmnd.lun); __qlt_do_work() 3568 if (atio->u.isp24.fcp_cmnd.rddata && __qlt_do_work() 3569 atio->u.isp24.fcp_cmnd.wrdata) { __qlt_do_work() 3572 } else if (atio->u.isp24.fcp_cmnd.rddata) __qlt_do_work() 3574 else if (atio->u.isp24.fcp_cmnd.wrdata) __qlt_do_work() 3580 atio->u.isp24.fcp_cmnd.task_attr); __qlt_do_work() 3582 &atio->u.isp24.fcp_cmnd.add_cdb[ __qlt_do_work() 3583 atio->u.isp24.fcp_cmnd.add_cdb_len])); __qlt_do_work() 3923 lun = a->u.isp24.fcp_cmnd.lun; qlt_handle_task_mgmt() 3924 fn = a->u.isp24.fcp_cmnd.task_mgmt_flags; qlt_handle_task_mgmt() 3966 lun = a->u.isp24.fcp_cmnd.lun; __qlt_abort_task() 5164 if (likely(atio->u.isp24.fcp_cmnd.task_mgmt_flags == 0)) { qlt_24xx_atio_pkt() 5684 lun = a->u.isp24.fcp_cmnd.lun; qlt_tmr_work() 5685 fn = a->u.isp24.fcp_cmnd.task_mgmt_flags; qlt_tmr_work()
|
H A D | qla_def.h | 1696 struct fcp_cmnd fcp_cmnd; member in struct:crc_context 1704 #define CRC_CONTEXT_LEN_FW (offsetof(struct crc_context, fcp_cmnd.lun)) 1705 #define CRC_CONTEXT_FCPCMND_OFF (offsetof(struct crc_context, fcp_cmnd.lun))
|
H A D | qla_target.h | 425 struct atio7_fcp_cmnd fcp_cmnd; member in struct:atio_from_isp::__anon10093::__anon10095
|
H A D | qla_os.c | 637 dma_pool_free(ha->fcp_cmnd_dma_pool, ctx1->fcp_cmnd, qla2x00_sp_free_dma()
|
/linux-4.4.14/drivers/s390/scsi/ |
H A D | zfcp_fc.h | 207 * @fcp: fcp_cmnd to setup 212 void zfcp_fc_scsi_to_fcp(struct fcp_cmnd *fcp, struct scsi_cmnd *scsi, zfcp_fc_scsi_to_fcp()
|
H A D | zfcp_fsf.c | 2196 struct fcp_cmnd *fcp_cmnd; zfcp_fsf_fcp_cmnd() local 2246 fcp_cmnd = (struct fcp_cmnd *) &req->qtcb->bottom.io.fcp_cmnd; zfcp_fsf_fcp_cmnd() 2247 zfcp_fc_scsi_to_fcp(fcp_cmnd, scsi_cmnd, 0); zfcp_fsf_fcp_cmnd() 2308 struct fcp_cmnd *fcp_cmnd; zfcp_fsf_fcp_task_mgmt() local 2339 fcp_cmnd = (struct fcp_cmnd *) &req->qtcb->bottom.io.fcp_cmnd; zfcp_fsf_fcp_task_mgmt() 2340 zfcp_fc_scsi_to_fcp(fcp_cmnd, scmnd, tm_flags); zfcp_fsf_fcp_task_mgmt()
|
H A D | zfcp_fsf.h | 314 u8 fcp_cmnd[FSF_FCP_CMND_SIZE]; member in struct:fsf_qtcb_bottom_io
|
H A D | zfcp_scsi.c | 333 adapter->scsi_host->max_cmd_len = 16; /* in struct fcp_cmnd */ zfcp_scsi_adapter_register()
|
/linux-4.4.14/drivers/scsi/csiostor/ |
H A D | csio_scsi.c | 165 struct fcp_cmnd *fcp_cmnd = (struct fcp_cmnd *)addr; csio_scsi_fcp_cmnd() local 170 int_to_scsilun(scmnd->device->lun, &fcp_cmnd->fc_lun); csio_scsi_fcp_cmnd() 171 fcp_cmnd->fc_tm_flags = 0; csio_scsi_fcp_cmnd() 172 fcp_cmnd->fc_cmdref = 0; csio_scsi_fcp_cmnd() 174 memcpy(fcp_cmnd->fc_cdb, scmnd->cmnd, 16); csio_scsi_fcp_cmnd() 175 fcp_cmnd->fc_pri_ta = FCP_PTA_SIMPLE; csio_scsi_fcp_cmnd() 176 fcp_cmnd->fc_dl = cpu_to_be32(scsi_bufflen(scmnd)); csio_scsi_fcp_cmnd() 180 fcp_cmnd->fc_flags = FCP_CFL_WRDATA; csio_scsi_fcp_cmnd() 182 fcp_cmnd->fc_flags = FCP_CFL_RDDATA; csio_scsi_fcp_cmnd() 184 fcp_cmnd->fc_flags = 0; csio_scsi_fcp_cmnd() 186 memset(fcp_cmnd, 0, sizeof(*fcp_cmnd)); csio_scsi_fcp_cmnd() 187 int_to_scsilun(scmnd->device->lun, &fcp_cmnd->fc_lun); csio_scsi_fcp_cmnd() 188 fcp_cmnd->fc_tm_flags = (uint8_t)scmnd->SCp.Message; csio_scsi_fcp_cmnd() 2425 scm->proto_cmd_len = sizeof(struct fcp_cmnd); csio_scsim_init()
|
/linux-4.4.14/drivers/target/tcm_fc/ |
H A D | tfc_cmd.c | 355 struct fcp_cmnd *fcp; ft_send_tm() 505 struct fcp_cmnd *fcp; ft_send_work()
|
/linux-4.4.14/include/scsi/fc/ |
H A D | fc_fcp.h | 49 struct fcp_cmnd { struct
|
/linux-4.4.14/include/scsi/ |
H A D | libfc.h | 342 struct fcp_cmnd cdb_cmd;
|
/linux-4.4.14/drivers/scsi/fcoe/ |
H A D | fcoe.c | 867 struct fcp_cmnd *fcp; fcoe_oem_match()
|