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
136 struct scsi_cmnd *cmd = lpfc_cmd->pCmd; in lpfc_update_stats()
506 struct scsi_cmnd *cmd; in lpfc_sli4_io_xri_aborted()
627 struct scsi_cmnd *cmnd) in lpfc_get_scsi_buf_s3()
668 struct scsi_cmnd *cmnd) in lpfc_get_scsi_buf_s4()
763 struct scsi_cmnd *cmnd) in lpfc_get_scsi_buf()
877 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd; in lpfc_scsi_prep_dma_buf_s3() local
886 int nseg, datadir = scsi_cmnd->sc_data_direction; in lpfc_scsi_prep_dma_buf_s3()
895 if (scsi_sg_count(scsi_cmnd)) { in lpfc_scsi_prep_dma_buf_s3()
903 nseg = dma_map_sg(&phba->pcidev->dev, scsi_sglist(scsi_cmnd), in lpfc_scsi_prep_dma_buf_s3()
904 scsi_sg_count(scsi_cmnd), datadir); in lpfc_scsi_prep_dma_buf_s3()
917 scsi_dma_unmap(scsi_cmnd); in lpfc_scsi_prep_dma_buf_s3()
930 scsi_for_each_sg(scsi_cmnd, sgel, nseg, num_bde) { in lpfc_scsi_prep_dma_buf_s3()
989 fcp_cmnd->fcpDl = cpu_to_be32(scsi_bufflen(scsi_cmnd)); in lpfc_scsi_prep_dma_buf_s3()
995 iocb_cmd->un.fcpi.fcpi_parm = scsi_bufflen(scsi_cmnd); in lpfc_scsi_prep_dma_buf_s3()
1025 lpfc_bg_err_inject(struct lpfc_hba *phba, struct scsi_cmnd *sc, in lpfc_bg_err_inject()
1434 lpfc_sc_to_bg_opcodes(struct lpfc_hba *phba, struct scsi_cmnd *sc, in lpfc_sc_to_bg_opcodes()
1514 lpfc_bg_err_opcodes(struct lpfc_hba *phba, struct scsi_cmnd *sc, in lpfc_bg_err_opcodes()
1605 lpfc_bg_setup_bpl(struct lpfc_hba *phba, struct scsi_cmnd *sc, in lpfc_bg_setup_bpl()
1747 lpfc_bg_setup_bpl_prot(struct lpfc_hba *phba, struct scsi_cmnd *sc, in lpfc_bg_setup_bpl_prot()
1995 lpfc_bg_setup_sgl(struct lpfc_hba *phba, struct scsi_cmnd *sc, in lpfc_bg_setup_sgl()
2178 lpfc_bg_setup_sgl_prot(struct lpfc_hba *phba, struct scsi_cmnd *sc, in lpfc_bg_setup_sgl_prot()
2491 lpfc_prot_group_type(struct lpfc_hba *phba, struct scsi_cmnd *sc) in lpfc_prot_group_type()
2531 struct scsi_cmnd *sc = lpfc_cmd->pCmd; in lpfc_bg_scsi_adjust_dl()
2574 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd; in lpfc_bg_scsi_prep_dma_buf_s3() local
2579 int datasegcnt, protsegcnt, datadir = scsi_cmnd->sc_data_direction; in lpfc_bg_scsi_prep_dma_buf_s3()
2590 if (scsi_sg_count(scsi_cmnd)) { in lpfc_bg_scsi_prep_dma_buf_s3()
2598 scsi_sglist(scsi_cmnd), in lpfc_bg_scsi_prep_dma_buf_s3()
2599 scsi_sg_count(scsi_cmnd), datadir); in lpfc_bg_scsi_prep_dma_buf_s3()
2612 prot_group_type = lpfc_prot_group_type(phba, scsi_cmnd); in lpfc_bg_scsi_prep_dma_buf_s3()
2623 num_bde = lpfc_bg_setup_bpl(phba, scsi_cmnd, bpl, in lpfc_bg_scsi_prep_dma_buf_s3()
2639 scsi_prot_sglist(scsi_cmnd), in lpfc_bg_scsi_prep_dma_buf_s3()
2640 scsi_prot_sg_count(scsi_cmnd), datadir); in lpfc_bg_scsi_prep_dma_buf_s3()
2642 scsi_dma_unmap(scsi_cmnd); in lpfc_bg_scsi_prep_dma_buf_s3()
2658 num_bde = lpfc_bg_setup_bpl_prot(phba, scsi_cmnd, bpl, in lpfc_bg_scsi_prep_dma_buf_s3()
2670 scsi_dma_unmap(scsi_cmnd); in lpfc_bg_scsi_prep_dma_buf_s3()
2711 scsi_dma_unmap(scsi_cmnd); in lpfc_bg_scsi_prep_dma_buf_s3()
2713 dma_unmap_sg(&phba->pcidev->dev, scsi_prot_sglist(scsi_cmnd), in lpfc_bg_scsi_prep_dma_buf_s3()
2714 scsi_prot_sg_count(scsi_cmnd), in lpfc_bg_scsi_prep_dma_buf_s3()
2715 scsi_cmnd->sc_data_direction); in lpfc_bg_scsi_prep_dma_buf_s3()
2768 struct scsi_cmnd *cmd = lpfc_cmd->pCmd; in lpfc_calc_bg_err()
2948 struct scsi_cmnd *cmd = lpfc_cmd->pCmd; in lpfc_sli4_parse_bg_err()
3087 struct scsi_cmnd *cmd = lpfc_cmd->pCmd; in lpfc_parse_bg_err()
3228 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd; in lpfc_scsi_prep_dma_buf_s4() local
3250 if (scsi_sg_count(scsi_cmnd)) { in lpfc_scsi_prep_dma_buf_s4()
3258 nseg = scsi_dma_map(scsi_cmnd); in lpfc_scsi_prep_dma_buf_s4()
3279 scsi_dma_unmap(scsi_cmnd); in lpfc_scsi_prep_dma_buf_s4()
3294 sgel = scsi_sglist(scsi_cmnd); in lpfc_scsi_prep_dma_buf_s4()
3318 scsi_dma_unmap(scsi_cmnd); in lpfc_scsi_prep_dma_buf_s4()
3412 fcp_cmnd->fcpDl = cpu_to_be32(scsi_bufflen(scsi_cmnd)); in lpfc_scsi_prep_dma_buf_s4()
3416 scsi_cmnd->sc_data_direction == DMA_TO_DEVICE) { in lpfc_scsi_prep_dma_buf_s4()
3436 scsi_cmnd->device->hostdata)->oas_enabled) { in lpfc_scsi_prep_dma_buf_s4()
3439 scsi_cmnd->device->hostdata)->priority; in lpfc_scsi_prep_dma_buf_s4()
3473 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd; in lpfc_bg_scsi_prep_dma_buf_s4() local
3479 int datasegcnt, protsegcnt, datadir = scsi_cmnd->sc_data_direction; in lpfc_bg_scsi_prep_dma_buf_s4()
3489 if (scsi_sg_count(scsi_cmnd)) { in lpfc_bg_scsi_prep_dma_buf_s4()
3497 scsi_sglist(scsi_cmnd), in lpfc_bg_scsi_prep_dma_buf_s4()
3498 scsi_sg_count(scsi_cmnd), datadir); in lpfc_bg_scsi_prep_dma_buf_s4()
3519 prot_group_type = lpfc_prot_group_type(phba, scsi_cmnd); in lpfc_bg_scsi_prep_dma_buf_s4()
3531 num_sge = lpfc_bg_setup_sgl(phba, scsi_cmnd, sgl, in lpfc_bg_scsi_prep_dma_buf_s4()
3548 scsi_prot_sglist(scsi_cmnd), in lpfc_bg_scsi_prep_dma_buf_s4()
3549 scsi_prot_sg_count(scsi_cmnd), datadir); in lpfc_bg_scsi_prep_dma_buf_s4()
3551 scsi_dma_unmap(scsi_cmnd); in lpfc_bg_scsi_prep_dma_buf_s4()
3567 num_sge = lpfc_bg_setup_sgl_prot(phba, scsi_cmnd, sgl, in lpfc_bg_scsi_prep_dma_buf_s4()
3581 scsi_dma_unmap(scsi_cmnd); in lpfc_bg_scsi_prep_dma_buf_s4()
3591 switch (scsi_get_prot_op(scsi_cmnd)) { in lpfc_bg_scsi_prep_dma_buf_s4()
3612 scsi_cmnd->sc_data_direction == DMA_TO_DEVICE) { in lpfc_bg_scsi_prep_dma_buf_s4()
3632 scsi_cmnd->device->hostdata)->oas_enabled) { in lpfc_bg_scsi_prep_dma_buf_s4()
3656 scsi_dma_unmap(scsi_cmnd); in lpfc_bg_scsi_prep_dma_buf_s4()
3658 dma_unmap_sg(&phba->pcidev->dev, scsi_prot_sglist(scsi_cmnd), in lpfc_bg_scsi_prep_dma_buf_s4()
3659 scsi_prot_sg_count(scsi_cmnd), in lpfc_bg_scsi_prep_dma_buf_s4()
3660 scsi_cmnd->sc_data_direction); in lpfc_bg_scsi_prep_dma_buf_s4()
3744 struct scsi_cmnd *cmnd = lpfc_cmd->pCmd; in lpfc_send_scsi_error_event()
4002 struct scsi_cmnd *cmnd = lpfc_cmd->pCmd; in lpfc_handle_fcp_err()
4191 struct scsi_cmnd *cmd; in lpfc_fcp_io_cmd_wqe_cmpl()
4538 struct scsi_cmnd *cmd; in lpfc_scsi_cmd_iocb_cmpl()
4806 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd; in lpfc_scsi_prep_cmnd_buf_s3() local
4809 int datadir = scsi_cmnd->sc_data_direction; in lpfc_scsi_prep_cmnd_buf_s3()
4820 if (scsi_sg_count(scsi_cmnd)) { in lpfc_scsi_prep_cmnd_buf_s3()
4828 fcpdl = scsi_bufflen(scsi_cmnd); in lpfc_scsi_prep_cmnd_buf_s3()
4882 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd; in lpfc_scsi_prep_cmnd_buf_s4() local
4889 int datadir = scsi_cmnd->sc_data_direction; in lpfc_scsi_prep_cmnd_buf_s4()
4900 if (scsi_sg_count(scsi_cmnd)) { in lpfc_scsi_prep_cmnd_buf_s4()
4990 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd; in lpfc_scsi_prep_cmnd() local
5005 memcpy(ptr, scsi_cmnd->cmnd, scsi_cmnd->cmd_len); in lpfc_scsi_prep_cmnd()
5006 if (scsi_cmnd->cmd_len < LPFC_FCP_CDB_LEN) { in lpfc_scsi_prep_cmnd()
5007 ptr += scsi_cmnd->cmd_len; in lpfc_scsi_prep_cmnd()
5008 memset(ptr, 0, (LPFC_FCP_CDB_LEN - scsi_cmnd->cmd_len)); in lpfc_scsi_prep_cmnd()
5385 static void lpfc_vmid_update_entry(struct lpfc_vport *vport, struct scsi_cmnd in lpfc_vmid_update_entry()
5435 scsi_cmnd * cmd, union lpfc_vmid_io_tag *tag) in lpfc_vmid_get_appid()
5569 static char *lpfc_is_command_vm_io(struct scsi_cmnd *cmd) in lpfc_is_command_vm_io()
5590 lpfc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *cmnd) in lpfc_queuecommand()
5886 lpfc_abort_handler(struct scsi_cmnd *cmnd) in lpfc_abort_handler()
6155 lpfc_send_taskmgmt(struct lpfc_vport *vport, struct scsi_cmnd *cmnd, in lpfc_send_taskmgmt()
6254 lpfc_chk_tgt_mapped(struct lpfc_vport *vport, struct scsi_cmnd *cmnd) in lpfc_chk_tgt_mapped()
6346 lpfc_device_reset_handler(struct scsi_cmnd *cmnd) in lpfc_device_reset_handler()
6420 lpfc_target_reset_handler(struct scsi_cmnd *cmnd) in lpfc_target_reset_handler()
6541 lpfc_bus_reset_handler(struct scsi_cmnd *cmnd) in lpfc_bus_reset_handler()
6635 lpfc_host_reset_handler(struct scsi_cmnd *cmnd) in lpfc_host_reset_handler()
7178 lpfc_no_command(struct Scsi_Host *shost, struct scsi_cmnd *cmnd) in lpfc_no_command()
7184 lpfc_no_handler(struct scsi_cmnd *cmnd) in lpfc_no_handler()