Lines Matching refs:sges_left
2298 int sges_left; in _base_check_pcie_native_sgl() local
2301 sges_left = scsi_dma_map(scmd); in _base_check_pcie_native_sgl()
2302 if (sges_left < 0) { in _base_check_pcie_native_sgl()
2311 scmd, sges_left) == 0) { in _base_check_pcie_native_sgl()
2320 smid, sges_left); in _base_check_pcie_native_sgl()
2392 int sges_left; in _base_build_sg_scmd() local
2413 sges_left = scsi_dma_map(scmd); in _base_build_sg_scmd()
2414 if (sges_left < 0) { in _base_build_sg_scmd()
2423 if (sges_left <= sges_in_segment) in _base_build_sg_scmd()
2440 sges_left--; in _base_build_sg_scmd()
2452 sges_in_segment = (sges_left <= in _base_build_sg_scmd()
2453 ioc->max_sges_in_chain_message) ? sges_left : in _base_build_sg_scmd()
2455 chain_offset = (sges_left == sges_in_segment) ? in _base_build_sg_scmd()
2482 sges_left--; in _base_build_sg_scmd()
2497 while (sges_left) { in _base_build_sg_scmd()
2498 if (sges_left == 1) in _base_build_sg_scmd()
2506 sges_left--; in _base_build_sg_scmd()
2536 int sges_left; in _base_build_sg_scmd_ieee() local
2561 sges_left = scsi_dma_map(scmd); in _base_build_sg_scmd_ieee()
2562 if (sges_left < 0) { in _base_build_sg_scmd_ieee()
2572 if (sges_left <= sges_in_segment) in _base_build_sg_scmd_ieee()
2584 sges_left--; in _base_build_sg_scmd_ieee()
2595 sges_in_segment = (sges_left <= in _base_build_sg_scmd_ieee()
2596 ioc->max_sges_in_chain_message) ? sges_left : in _base_build_sg_scmd_ieee()
2598 chain_offset = (sges_left == sges_in_segment) ? in _base_build_sg_scmd_ieee()
2616 sges_left--; in _base_build_sg_scmd_ieee()
2631 while (sges_left > 0) { in _base_build_sg_scmd_ieee()
2632 if (sges_left == 1) in _base_build_sg_scmd_ieee()
2641 sges_left--; in _base_build_sg_scmd_ieee()