Lines Matching refs:sges_in_segment

2393 	u32 sges_in_segment;  in _base_build_sg_scmd()  local
2422 sges_in_segment = ioc->max_sges_in_main_message; in _base_build_sg_scmd()
2423 if (sges_left <= sges_in_segment) in _base_build_sg_scmd()
2427 (sges_in_segment * ioc->sge_size))/4; in _base_build_sg_scmd()
2430 while (sges_in_segment) { in _base_build_sg_scmd()
2431 if (sges_in_segment == 1) in _base_build_sg_scmd()
2441 sges_in_segment--; in _base_build_sg_scmd()
2452 sges_in_segment = (sges_left <= in _base_build_sg_scmd()
2455 chain_offset = (sges_left == sges_in_segment) ? in _base_build_sg_scmd()
2456 0 : (sges_in_segment * ioc->sge_size)/4; in _base_build_sg_scmd()
2457 chain_length = sges_in_segment * ioc->sge_size; in _base_build_sg_scmd()
2470 while (sges_in_segment) { in _base_build_sg_scmd()
2471 if (sges_in_segment == 1) in _base_build_sg_scmd()
2483 sges_in_segment--; in _base_build_sg_scmd()
2537 u32 sges_in_segment; in _base_build_sg_scmd_ieee() local
2570 sges_in_segment = (ioc->request_sz - in _base_build_sg_scmd_ieee()
2572 if (sges_left <= sges_in_segment) in _base_build_sg_scmd_ieee()
2575 mpi_request->ChainOffset = (sges_in_segment - 1 /* chain element */) + in _base_build_sg_scmd_ieee()
2579 while (sges_in_segment > 1) { in _base_build_sg_scmd_ieee()
2585 sges_in_segment--; in _base_build_sg_scmd_ieee()
2595 sges_in_segment = (sges_left <= in _base_build_sg_scmd_ieee()
2598 chain_offset = (sges_left == sges_in_segment) ? in _base_build_sg_scmd_ieee()
2599 0 : sges_in_segment; in _base_build_sg_scmd_ieee()
2600 chain_length = sges_in_segment * ioc->sge_size_ieee; in _base_build_sg_scmd_ieee()
2611 while (sges_in_segment) { in _base_build_sg_scmd_ieee()
2617 sges_in_segment--; in _base_build_sg_scmd_ieee()