Lines Matching refs:scsi_cmnd
89 lpfc_prot_group_type(struct lpfc_hba *phba, struct scsi_cmnd *sc);
93 static void lpfc_vmid_update_entry(struct lpfc_vport *vport, struct scsi_cmnd
134 struct scsi_cmnd *cmd = lpfc_cmd->pCmd; in lpfc_update_stats()
504 struct scsi_cmnd *cmd; in lpfc_sli4_io_xri_aborted()
625 struct scsi_cmnd *cmnd) in lpfc_get_scsi_buf_s3()
666 struct scsi_cmnd *cmnd) in lpfc_get_scsi_buf_s4()
761 struct scsi_cmnd *cmnd) in lpfc_get_scsi_buf()
875 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd; in lpfc_scsi_prep_dma_buf_s3() local
884 int nseg, datadir = scsi_cmnd->sc_data_direction; in lpfc_scsi_prep_dma_buf_s3()
893 if (scsi_sg_count(scsi_cmnd)) { in lpfc_scsi_prep_dma_buf_s3()
901 nseg = dma_map_sg(&phba->pcidev->dev, scsi_sglist(scsi_cmnd), in lpfc_scsi_prep_dma_buf_s3()
902 scsi_sg_count(scsi_cmnd), datadir); in lpfc_scsi_prep_dma_buf_s3()
915 scsi_dma_unmap(scsi_cmnd); in lpfc_scsi_prep_dma_buf_s3()
928 scsi_for_each_sg(scsi_cmnd, sgel, nseg, num_bde) { in lpfc_scsi_prep_dma_buf_s3()
987 fcp_cmnd->fcpDl = cpu_to_be32(scsi_bufflen(scsi_cmnd)); in lpfc_scsi_prep_dma_buf_s3()
993 iocb_cmd->un.fcpi.fcpi_parm = scsi_bufflen(scsi_cmnd); in lpfc_scsi_prep_dma_buf_s3()
1023 lpfc_bg_err_inject(struct lpfc_hba *phba, struct scsi_cmnd *sc, in lpfc_bg_err_inject()
1430 lpfc_sc_to_bg_opcodes(struct lpfc_hba *phba, struct scsi_cmnd *sc, in lpfc_sc_to_bg_opcodes()
1510 lpfc_bg_err_opcodes(struct lpfc_hba *phba, struct scsi_cmnd *sc, in lpfc_bg_err_opcodes()
1601 lpfc_bg_setup_bpl(struct lpfc_hba *phba, struct scsi_cmnd *sc, in lpfc_bg_setup_bpl()
1741 lpfc_bg_setup_bpl_prot(struct lpfc_hba *phba, struct scsi_cmnd *sc, in lpfc_bg_setup_bpl_prot()
1987 lpfc_bg_setup_sgl(struct lpfc_hba *phba, struct scsi_cmnd *sc, in lpfc_bg_setup_sgl()
2168 lpfc_bg_setup_sgl_prot(struct lpfc_hba *phba, struct scsi_cmnd *sc, in lpfc_bg_setup_sgl_prot()
2479 lpfc_prot_group_type(struct lpfc_hba *phba, struct scsi_cmnd *sc) in lpfc_prot_group_type()
2519 struct scsi_cmnd *sc = lpfc_cmd->pCmd; in lpfc_bg_scsi_adjust_dl()
2562 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd; in lpfc_bg_scsi_prep_dma_buf_s3() local
2567 int datasegcnt, protsegcnt, datadir = scsi_cmnd->sc_data_direction; in lpfc_bg_scsi_prep_dma_buf_s3()
2578 if (scsi_sg_count(scsi_cmnd)) { in lpfc_bg_scsi_prep_dma_buf_s3()
2586 scsi_sglist(scsi_cmnd), in lpfc_bg_scsi_prep_dma_buf_s3()
2587 scsi_sg_count(scsi_cmnd), datadir); in lpfc_bg_scsi_prep_dma_buf_s3()
2600 prot_group_type = lpfc_prot_group_type(phba, scsi_cmnd); in lpfc_bg_scsi_prep_dma_buf_s3()
2611 num_bde = lpfc_bg_setup_bpl(phba, scsi_cmnd, bpl, in lpfc_bg_scsi_prep_dma_buf_s3()
2627 scsi_prot_sglist(scsi_cmnd), in lpfc_bg_scsi_prep_dma_buf_s3()
2628 scsi_prot_sg_count(scsi_cmnd), datadir); in lpfc_bg_scsi_prep_dma_buf_s3()
2630 scsi_dma_unmap(scsi_cmnd); in lpfc_bg_scsi_prep_dma_buf_s3()
2646 num_bde = lpfc_bg_setup_bpl_prot(phba, scsi_cmnd, bpl, in lpfc_bg_scsi_prep_dma_buf_s3()
2658 scsi_dma_unmap(scsi_cmnd); in lpfc_bg_scsi_prep_dma_buf_s3()
2699 scsi_dma_unmap(scsi_cmnd); in lpfc_bg_scsi_prep_dma_buf_s3()
2701 dma_unmap_sg(&phba->pcidev->dev, scsi_prot_sglist(scsi_cmnd), in lpfc_bg_scsi_prep_dma_buf_s3()
2702 scsi_prot_sg_count(scsi_cmnd), in lpfc_bg_scsi_prep_dma_buf_s3()
2703 scsi_cmnd->sc_data_direction); in lpfc_bg_scsi_prep_dma_buf_s3()
2756 struct scsi_cmnd *cmd = lpfc_cmd->pCmd; in lpfc_calc_bg_err()
2934 struct scsi_cmnd *cmd = lpfc_cmd->pCmd; in lpfc_sli4_parse_bg_err()
3073 struct scsi_cmnd *cmd = lpfc_cmd->pCmd; in lpfc_parse_bg_err()
3214 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd; in lpfc_scsi_prep_dma_buf_s4() local
3237 if (scsi_sg_count(scsi_cmnd)) { in lpfc_scsi_prep_dma_buf_s4()
3245 nseg = scsi_dma_map(scsi_cmnd); in lpfc_scsi_prep_dma_buf_s4()
3266 scsi_dma_unmap(scsi_cmnd); in lpfc_scsi_prep_dma_buf_s4()
3281 sgel = scsi_sglist(scsi_cmnd); in lpfc_scsi_prep_dma_buf_s4()
3305 scsi_dma_unmap(scsi_cmnd); in lpfc_scsi_prep_dma_buf_s4()
3398 fcp_cmnd->fcpDl = cpu_to_be32(scsi_bufflen(scsi_cmnd)); in lpfc_scsi_prep_dma_buf_s4()
3402 scsi_cmnd->sc_data_direction == DMA_TO_DEVICE) { in lpfc_scsi_prep_dma_buf_s4()
3422 scsi_cmnd->device->hostdata)->oas_enabled) { in lpfc_scsi_prep_dma_buf_s4()
3425 scsi_cmnd->device->hostdata)->priority; in lpfc_scsi_prep_dma_buf_s4()
3459 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd; in lpfc_bg_scsi_prep_dma_buf_s4() local
3465 int datasegcnt, protsegcnt, datadir = scsi_cmnd->sc_data_direction; in lpfc_bg_scsi_prep_dma_buf_s4()
3475 if (scsi_sg_count(scsi_cmnd)) { in lpfc_bg_scsi_prep_dma_buf_s4()
3483 scsi_sglist(scsi_cmnd), in lpfc_bg_scsi_prep_dma_buf_s4()
3484 scsi_sg_count(scsi_cmnd), datadir); in lpfc_bg_scsi_prep_dma_buf_s4()
3505 prot_group_type = lpfc_prot_group_type(phba, scsi_cmnd); in lpfc_bg_scsi_prep_dma_buf_s4()
3517 num_sge = lpfc_bg_setup_sgl(phba, scsi_cmnd, sgl, in lpfc_bg_scsi_prep_dma_buf_s4()
3534 scsi_prot_sglist(scsi_cmnd), in lpfc_bg_scsi_prep_dma_buf_s4()
3535 scsi_prot_sg_count(scsi_cmnd), datadir); in lpfc_bg_scsi_prep_dma_buf_s4()
3537 scsi_dma_unmap(scsi_cmnd); in lpfc_bg_scsi_prep_dma_buf_s4()
3553 num_sge = lpfc_bg_setup_sgl_prot(phba, scsi_cmnd, sgl, in lpfc_bg_scsi_prep_dma_buf_s4()
3567 scsi_dma_unmap(scsi_cmnd); in lpfc_bg_scsi_prep_dma_buf_s4()
3577 switch (scsi_get_prot_op(scsi_cmnd)) { in lpfc_bg_scsi_prep_dma_buf_s4()
3598 scsi_cmnd->sc_data_direction == DMA_TO_DEVICE) { in lpfc_bg_scsi_prep_dma_buf_s4()
3618 scsi_cmnd->device->hostdata)->oas_enabled) { in lpfc_bg_scsi_prep_dma_buf_s4()
3642 scsi_dma_unmap(scsi_cmnd); in lpfc_bg_scsi_prep_dma_buf_s4()
3644 dma_unmap_sg(&phba->pcidev->dev, scsi_prot_sglist(scsi_cmnd), in lpfc_bg_scsi_prep_dma_buf_s4()
3645 scsi_prot_sg_count(scsi_cmnd), in lpfc_bg_scsi_prep_dma_buf_s4()
3646 scsi_cmnd->sc_data_direction); in lpfc_bg_scsi_prep_dma_buf_s4()
3730 struct scsi_cmnd *cmnd = lpfc_cmd->pCmd; in lpfc_send_scsi_error_event()
3987 struct scsi_cmnd *cmnd = lpfc_cmd->pCmd; in lpfc_handle_fcp_err()
4176 struct scsi_cmnd *cmd; in lpfc_fcp_io_cmd_wqe_cmpl()
4523 struct scsi_cmnd *cmd; in lpfc_scsi_cmd_iocb_cmpl()
4791 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd; in lpfc_scsi_prep_cmnd_buf_s3() local
4794 int datadir = scsi_cmnd->sc_data_direction; in lpfc_scsi_prep_cmnd_buf_s3()
4805 if (scsi_sg_count(scsi_cmnd)) { in lpfc_scsi_prep_cmnd_buf_s3()
4813 fcpdl = scsi_bufflen(scsi_cmnd); in lpfc_scsi_prep_cmnd_buf_s3()
4867 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd; in lpfc_scsi_prep_cmnd_buf_s4() local
4874 int datadir = scsi_cmnd->sc_data_direction; in lpfc_scsi_prep_cmnd_buf_s4()
4885 if (scsi_sg_count(scsi_cmnd)) { in lpfc_scsi_prep_cmnd_buf_s4()
4975 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd; in lpfc_scsi_prep_cmnd() local
4990 memcpy(ptr, scsi_cmnd->cmnd, scsi_cmnd->cmd_len); in lpfc_scsi_prep_cmnd()
4991 if (scsi_cmnd->cmd_len < LPFC_FCP_CDB_LEN) { in lpfc_scsi_prep_cmnd()
4992 ptr += scsi_cmnd->cmd_len; in lpfc_scsi_prep_cmnd()
4993 memset(ptr, 0, (LPFC_FCP_CDB_LEN - scsi_cmnd->cmd_len)); in lpfc_scsi_prep_cmnd()
5370 static void lpfc_vmid_update_entry(struct lpfc_vport *vport, struct scsi_cmnd in lpfc_vmid_update_entry()
5420 scsi_cmnd * cmd, union lpfc_vmid_io_tag *tag) in lpfc_vmid_get_appid()
5554 static char *lpfc_is_command_vm_io(struct scsi_cmnd *cmd) in lpfc_is_command_vm_io()
5575 lpfc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *cmnd) in lpfc_queuecommand()
5870 lpfc_abort_handler(struct scsi_cmnd *cmnd) in lpfc_abort_handler()
6136 lpfc_send_taskmgmt(struct lpfc_vport *vport, struct scsi_cmnd *cmnd, in lpfc_send_taskmgmt()
6235 lpfc_chk_tgt_mapped(struct lpfc_vport *vport, struct scsi_cmnd *cmnd) in lpfc_chk_tgt_mapped()
6327 lpfc_device_reset_handler(struct scsi_cmnd *cmnd) in lpfc_device_reset_handler()
6401 lpfc_target_reset_handler(struct scsi_cmnd *cmnd) in lpfc_target_reset_handler()
6522 lpfc_bus_reset_handler(struct scsi_cmnd *cmnd) in lpfc_bus_reset_handler()
6616 lpfc_host_reset_handler(struct scsi_cmnd *cmnd) in lpfc_host_reset_handler()
7159 lpfc_no_command(struct Scsi_Host *shost, struct scsi_cmnd *cmnd) in lpfc_no_command()
7165 lpfc_no_handler(struct scsi_cmnd *cmnd) in lpfc_no_handler()