Searched refs:sges_left (Results 1 – 3 of 3) sorted by relevance
2609 int sges_left; in _base_check_pcie_native_sgl() local2612 sges_left = scsi_dma_map(scmd); in _base_check_pcie_native_sgl()2613 if (sges_left < 0) in _base_check_pcie_native_sgl()2618 scmd, sges_left)) { in _base_check_pcie_native_sgl()2627 smid, sges_left); in _base_check_pcie_native_sgl()2715 int sges_left; in _base_build_sg_scmd() local2736 sges_left = _base_scsi_dma_map(scmd); in _base_build_sg_scmd()2737 if (sges_left < 0) in _base_build_sg_scmd()2742 if (sges_left <= sges_in_segment) in _base_build_sg_scmd()2759 sges_left--; in _base_build_sg_scmd()[all …]
3414 int sges_left, chain_idx; in mpi3mr_prepare_sg_scmd() local3445 sges_left = dma_map_sg(&mrioc->pdev->dev, in mpi3mr_prepare_sg_scmd()3463 sges_left = scsi_dma_map(scmd); in mpi3mr_prepare_sg_scmd()3466 if (sges_left < 0) { in mpi3mr_prepare_sg_scmd()3472 if (sges_left > mrioc->max_sgl_entries) { in mpi3mr_prepare_sg_scmd()3475 sges_left); in mpi3mr_prepare_sg_scmd()3498 if (sges_left <= sges_in_segment) in mpi3mr_prepare_sg_scmd()3507 sges_left--; in mpi3mr_prepare_sg_scmd()3522 sges_in_segment = sges_left; in mpi3mr_prepare_sg_scmd()3531 while (sges_left > 0) { in mpi3mr_prepare_sg_scmd()[all …]
184 int sges_left, sg_done; in mptscsih_AddSGE() local208 sges_left = scsi_dma_map(SCpnt); in mptscsih_AddSGE()209 if (sges_left < 0) in mptscsih_AddSGE()227 numSgeThisFrame = (sges_left < numSgeSlots) ? sges_left : numSgeSlots; in mptscsih_AddSGE()254 if (numSgeThisFrame == sges_left) { in mptscsih_AddSGE()339 sges_left -= sg_done; in mptscsih_AddSGE()