Lines Matching refs:nseg
1158 int nseg, datadir = scsi_cmnd->sc_data_direction; in lpfc_scsi_prep_dma_buf_s3() local
1175 nseg = dma_map_sg(&phba->pcidev->dev, scsi_sglist(scsi_cmnd), in lpfc_scsi_prep_dma_buf_s3()
1177 if (unlikely(!nseg)) in lpfc_scsi_prep_dma_buf_s3()
1180 lpfc_cmd->seg_cnt = nseg; 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()
1206 nseg <= LPFC_EXT_DATA_BDE_COUNT) { in lpfc_scsi_prep_dma_buf_s3()
3242 int nseg; in lpfc_scsi_prep_dma_buf_s4() local
3259 nseg = scsi_dma_map(scsi_cmnd); in lpfc_scsi_prep_dma_buf_s4()
3260 if (unlikely(!nseg)) in lpfc_scsi_prep_dma_buf_s4()
3269 lpfc_cmd->seg_cnt = nseg; in lpfc_scsi_prep_dma_buf_s4()
3290 scsi_for_each_sg(scsi_cmnd, sgel, nseg, num_bde) { in lpfc_scsi_prep_dma_buf_s4()
3296 if ((num_bde + 1) == nseg) in lpfc_scsi_prep_dma_buf_s4()