Lines Matching refs:scsi_cmnd

87 lpfc_prot_group_type(struct lpfc_hba *phba, struct scsi_cmnd *sc);
90 lpfc_debug_save_data(struct lpfc_hba *phba, struct scsi_cmnd *cmnd) in lpfc_debug_save_data()
119 lpfc_debug_save_dif(struct lpfc_hba *phba, struct scsi_cmnd *cmnd) in lpfc_debug_save_dif()
147 lpfc_cmd_blksize(struct scsi_cmnd *sc) in lpfc_cmd_blksize()
155 lpfc_cmd_protect(struct scsi_cmnd *sc, int flag) in lpfc_cmd_protect()
161 lpfc_cmd_guard_csum(struct scsi_cmnd *sc) in lpfc_cmd_guard_csum()
204 struct scsi_cmnd *cmd = lpfc_cmd->pCmd; in lpfc_update_stats()
1149 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd; in lpfc_scsi_prep_dma_buf_s3() local
1158 int nseg, datadir = scsi_cmnd->sc_data_direction; in lpfc_scsi_prep_dma_buf_s3()
1167 if (scsi_sg_count(scsi_cmnd)) { in lpfc_scsi_prep_dma_buf_s3()
1175 nseg = dma_map_sg(&phba->pcidev->dev, scsi_sglist(scsi_cmnd), in lpfc_scsi_prep_dma_buf_s3()
1176 scsi_sg_count(scsi_cmnd), datadir); in lpfc_scsi_prep_dma_buf_s3()
1188 scsi_dma_unmap(scsi_cmnd); in lpfc_scsi_prep_dma_buf_s3()
1201 scsi_for_each_sg(scsi_cmnd, sgel, nseg, num_bde) { in lpfc_scsi_prep_dma_buf_s3()
1260 fcp_cmnd->fcpDl = cpu_to_be32(scsi_bufflen(scsi_cmnd)); in lpfc_scsi_prep_dma_buf_s3()
1266 iocb_cmd->un.fcpi.fcpi_parm = scsi_bufflen(scsi_cmnd); in lpfc_scsi_prep_dma_buf_s3()
1292 lpfc_bg_err_inject(struct lpfc_hba *phba, struct scsi_cmnd *sc, in lpfc_bg_err_inject()
1697 lpfc_sc_to_bg_opcodes(struct lpfc_hba *phba, struct scsi_cmnd *sc, in lpfc_sc_to_bg_opcodes()
1777 lpfc_bg_err_opcodes(struct lpfc_hba *phba, struct scsi_cmnd *sc, in lpfc_bg_err_opcodes()
1869 lpfc_bg_setup_bpl(struct lpfc_hba *phba, struct scsi_cmnd *sc, in lpfc_bg_setup_bpl()
2009 lpfc_bg_setup_bpl_prot(struct lpfc_hba *phba, struct scsi_cmnd *sc, in lpfc_bg_setup_bpl_prot()
2254 lpfc_bg_setup_sgl(struct lpfc_hba *phba, struct scsi_cmnd *sc, in lpfc_bg_setup_sgl()
2389 lpfc_bg_setup_sgl_prot(struct lpfc_hba *phba, struct scsi_cmnd *sc, in lpfc_bg_setup_sgl_prot()
2622 lpfc_prot_group_type(struct lpfc_hba *phba, struct scsi_cmnd *sc) in lpfc_prot_group_type()
2662 struct scsi_cmnd *sc = lpfc_cmd->pCmd; in lpfc_bg_scsi_adjust_dl()
2702 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd; in lpfc_bg_scsi_prep_dma_buf_s3() local
2707 int datasegcnt, protsegcnt, datadir = scsi_cmnd->sc_data_direction; in lpfc_bg_scsi_prep_dma_buf_s3()
2716 if (scsi_sg_count(scsi_cmnd)) { in lpfc_bg_scsi_prep_dma_buf_s3()
2724 scsi_sglist(scsi_cmnd), in lpfc_bg_scsi_prep_dma_buf_s3()
2725 scsi_sg_count(scsi_cmnd), datadir); in lpfc_bg_scsi_prep_dma_buf_s3()
2735 prot_group_type = lpfc_prot_group_type(phba, scsi_cmnd); in lpfc_bg_scsi_prep_dma_buf_s3()
2744 num_bde = lpfc_bg_setup_bpl(phba, scsi_cmnd, bpl, in lpfc_bg_scsi_prep_dma_buf_s3()
2758 scsi_prot_sglist(scsi_cmnd), in lpfc_bg_scsi_prep_dma_buf_s3()
2759 scsi_prot_sg_count(scsi_cmnd), datadir); in lpfc_bg_scsi_prep_dma_buf_s3()
2761 scsi_dma_unmap(scsi_cmnd); in lpfc_bg_scsi_prep_dma_buf_s3()
2775 num_bde = lpfc_bg_setup_bpl_prot(phba, scsi_cmnd, bpl, in lpfc_bg_scsi_prep_dma_buf_s3()
2785 scsi_dma_unmap(scsi_cmnd); in lpfc_bg_scsi_prep_dma_buf_s3()
2818 scsi_dma_unmap(scsi_cmnd); in lpfc_bg_scsi_prep_dma_buf_s3()
2820 dma_unmap_sg(&phba->pcidev->dev, scsi_prot_sglist(scsi_cmnd), in lpfc_bg_scsi_prep_dma_buf_s3()
2821 scsi_prot_sg_count(scsi_cmnd), in lpfc_bg_scsi_prep_dma_buf_s3()
2822 scsi_cmnd->sc_data_direction); in lpfc_bg_scsi_prep_dma_buf_s3()
2875 struct scsi_cmnd *cmd = lpfc_cmd->pCmd; in lpfc_calc_bg_err()
3059 struct scsi_cmnd *cmd = lpfc_cmd->pCmd; in lpfc_parse_bg_err()
3225 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd; in lpfc_scsi_prep_dma_buf_s4() local
3244 if (scsi_sg_count(scsi_cmnd)) { in lpfc_scsi_prep_dma_buf_s4()
3252 nseg = scsi_dma_map(scsi_cmnd); in lpfc_scsi_prep_dma_buf_s4()
3270 scsi_dma_unmap(scsi_cmnd); in lpfc_scsi_prep_dma_buf_s4()
3283 scsi_for_each_sg(scsi_cmnd, sgel, nseg, num_bde) { in lpfc_scsi_prep_dma_buf_s4()
3325 fcp_cmnd->fcpDl = cpu_to_be32(scsi_bufflen(scsi_cmnd)); in lpfc_scsi_prep_dma_buf_s4()
3331 iocb_cmd->un.fcpi.fcpi_parm = scsi_bufflen(scsi_cmnd); in lpfc_scsi_prep_dma_buf_s4()
3338 scsi_cmnd->device->hostdata)->oas_enabled) in lpfc_scsi_prep_dma_buf_s4()
3356 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd; in lpfc_bg_scsi_prep_dma_buf_s4() local
3361 int datasegcnt, protsegcnt, datadir = scsi_cmnd->sc_data_direction; in lpfc_bg_scsi_prep_dma_buf_s4()
3369 if (scsi_sg_count(scsi_cmnd)) { in lpfc_bg_scsi_prep_dma_buf_s4()
3377 scsi_sglist(scsi_cmnd), in lpfc_bg_scsi_prep_dma_buf_s4()
3378 scsi_sg_count(scsi_cmnd), datadir); in lpfc_bg_scsi_prep_dma_buf_s4()
3395 prot_group_type = lpfc_prot_group_type(phba, scsi_cmnd); in lpfc_bg_scsi_prep_dma_buf_s4()
3403 num_sge = lpfc_bg_setup_sgl(phba, scsi_cmnd, sgl, in lpfc_bg_scsi_prep_dma_buf_s4()
3418 scsi_prot_sglist(scsi_cmnd), in lpfc_bg_scsi_prep_dma_buf_s4()
3419 scsi_prot_sg_count(scsi_cmnd), datadir); in lpfc_bg_scsi_prep_dma_buf_s4()
3421 scsi_dma_unmap(scsi_cmnd); in lpfc_bg_scsi_prep_dma_buf_s4()
3434 num_sge = lpfc_bg_setup_sgl_prot(phba, scsi_cmnd, sgl, in lpfc_bg_scsi_prep_dma_buf_s4()
3445 scsi_dma_unmap(scsi_cmnd); in lpfc_bg_scsi_prep_dma_buf_s4()
3455 switch (scsi_get_prot_op(scsi_cmnd)) { in lpfc_bg_scsi_prep_dma_buf_s4()
3484 scsi_cmnd->device->hostdata)->oas_enabled) in lpfc_bg_scsi_prep_dma_buf_s4()
3490 scsi_dma_unmap(scsi_cmnd); in lpfc_bg_scsi_prep_dma_buf_s4()
3492 dma_unmap_sg(&phba->pcidev->dev, scsi_prot_sglist(scsi_cmnd), in lpfc_bg_scsi_prep_dma_buf_s4()
3493 scsi_prot_sg_count(scsi_cmnd), in lpfc_bg_scsi_prep_dma_buf_s4()
3494 scsi_cmnd->sc_data_direction); in lpfc_bg_scsi_prep_dma_buf_s4()
3558 struct scsi_cmnd *cmnd = lpfc_cmd->pCmd; in lpfc_send_scsi_error_event()
3679 struct scsi_cmnd *cmnd = lpfc_cmd->pCmd; in lpfc_handle_fcp_err()
3856 struct scsi_cmnd *cmnd = lpfc_cmd->pCmd; in lpfc_sli4_scmd_to_wqidx_distr()
3903 struct scsi_cmnd *cmd; in lpfc_scsi_cmd_iocb_cmpl()
4192 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd; in lpfc_scsi_prep_cmnd() local
4196 int datadir = scsi_cmnd->sc_data_direction; in lpfc_scsi_prep_cmnd()
4212 memcpy(ptr, scsi_cmnd->cmnd, scsi_cmnd->cmd_len); in lpfc_scsi_prep_cmnd()
4213 if (scsi_cmnd->cmd_len < LPFC_FCP_CDB_LEN) { in lpfc_scsi_prep_cmnd()
4214 ptr += scsi_cmnd->cmd_len; in lpfc_scsi_prep_cmnd()
4215 memset(ptr, 0, (LPFC_FCP_CDB_LEN - scsi_cmnd->cmd_len)); in lpfc_scsi_prep_cmnd()
4229 if (scsi_sg_count(scsi_cmnd)) { in lpfc_scsi_prep_cmnd()
4235 fcpdl = scsi_bufflen(scsi_cmnd); in lpfc_scsi_prep_cmnd()
4528 lpfc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *cmnd) in lpfc_queuecommand()
4680 lpfc_abort_handler(struct scsi_cmnd *cmnd) in lpfc_abort_handler()
5049 lpfc_chk_tgt_mapped(struct lpfc_vport *vport, struct scsi_cmnd *cmnd) in lpfc_chk_tgt_mapped()
5142 lpfc_device_reset_handler(struct scsi_cmnd *cmnd) in lpfc_device_reset_handler()
5213 lpfc_target_reset_handler(struct scsi_cmnd *cmnd) in lpfc_target_reset_handler()
5290 lpfc_bus_reset_handler(struct scsi_cmnd *cmnd) in lpfc_bus_reset_handler()
5381 lpfc_host_reset_handler(struct scsi_cmnd *cmnd) in lpfc_host_reset_handler()