Lines Matching refs:nseg
886 int nseg, datadir = scsi_cmnd->sc_data_direction; in lpfc_scsi_prep_dma_buf_s3() local
903 nseg = dma_map_sg(&phba->pcidev->dev, scsi_sglist(scsi_cmnd), in lpfc_scsi_prep_dma_buf_s3()
905 if (unlikely(!nseg)) in lpfc_scsi_prep_dma_buf_s3()
908 lpfc_cmd->seg_cnt = nseg; 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()
935 nseg <= LPFC_EXT_DATA_BDE_COUNT) { in lpfc_scsi_prep_dma_buf_s3()
3239 int nseg, i, j; in lpfc_scsi_prep_dma_buf_s4() local
3258 nseg = scsi_dma_map(scsi_cmnd); in lpfc_scsi_prep_dma_buf_s4()
3259 if (unlikely(nseg <= 0)) in lpfc_scsi_prep_dma_buf_s4()
3268 lpfc_cmd->seg_cnt = nseg; in lpfc_scsi_prep_dma_buf_s4()
3296 for (i = 0; i < nseg; i++) { in lpfc_scsi_prep_dma_buf_s4()
3298 if (nseg == 1) { in lpfc_scsi_prep_dma_buf_s4()
3308 ((nseg - 1) != i)) { in lpfc_scsi_prep_dma_buf_s4()
3334 if ((nseg - 1) == i) in lpfc_scsi_prep_dma_buf_s4()
3372 if (nseg == 1 && in lpfc_scsi_prep_dma_buf_s4()