Lines Matching refs:nseg
846 int nseg, datadir = scsi_cmnd->sc_data_direction; in lpfc_scsi_prep_dma_buf_s3() local
863 nseg = dma_map_sg(&phba->pcidev->dev, scsi_sglist(scsi_cmnd), in lpfc_scsi_prep_dma_buf_s3()
865 if (unlikely(!nseg)) in lpfc_scsi_prep_dma_buf_s3()
868 lpfc_cmd->seg_cnt = nseg; in lpfc_scsi_prep_dma_buf_s3()
890 scsi_for_each_sg(scsi_cmnd, sgel, nseg, num_bde) { in lpfc_scsi_prep_dma_buf_s3()
895 nseg <= LPFC_EXT_DATA_BDE_COUNT) { in lpfc_scsi_prep_dma_buf_s3()
3058 int nseg, i, j; in lpfc_scsi_prep_dma_buf_s4() local
3077 nseg = scsi_dma_map(scsi_cmnd); in lpfc_scsi_prep_dma_buf_s4()
3078 if (unlikely(nseg <= 0)) in lpfc_scsi_prep_dma_buf_s4()
3087 lpfc_cmd->seg_cnt = nseg; in lpfc_scsi_prep_dma_buf_s4()
3115 for (i = 0; i < nseg; i++) { in lpfc_scsi_prep_dma_buf_s4()
3117 if ((num_bde + 1) == nseg) { in lpfc_scsi_prep_dma_buf_s4()
3127 ((nseg - 1) != i)) { in lpfc_scsi_prep_dma_buf_s4()
3153 if ((nseg - 1) == i) in lpfc_scsi_prep_dma_buf_s4()