Home
last modified time | relevance | path

Searched refs:sges_in_segment (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/scsi/mpt3sas/
H A Dmpt3sas_base.c2716 u32 sges_in_segment; in _base_build_sg_scmd() local
2741 sges_in_segment = ioc->max_sges_in_main_message; in _base_build_sg_scmd()
2742 if (sges_left <= sges_in_segment) in _base_build_sg_scmd()
2746 (sges_in_segment * ioc->sge_size))/4; in _base_build_sg_scmd()
2749 while (sges_in_segment) { in _base_build_sg_scmd()
2750 if (sges_in_segment == 1) in _base_build_sg_scmd()
2760 sges_in_segment--; in _base_build_sg_scmd()
2771 sges_in_segment = (sges_left <= in _base_build_sg_scmd()
2774 chain_offset = (sges_left == sges_in_segment) ? in _base_build_sg_scmd()
2775 0 : (sges_in_segment * ioc->sge_size)/4; in _base_build_sg_scmd()
[all …]
/linux/drivers/scsi/mpi3mr/
H A Dmpi3mr_os.c3542 u32 sges_in_segment; in mpi3mr_prepare_sg_scmd() local
3606 sges_in_segment = (mrioc->facts.op_req_sz - in mpi3mr_prepare_sg_scmd()
3612 sges_in_segment--; in mpi3mr_prepare_sg_scmd()
3618 sges_in_segment--; in mpi3mr_prepare_sg_scmd()
3623 sges_in_segment = 1; in mpi3mr_prepare_sg_scmd()
3625 if (sges_left <= sges_in_segment) in mpi3mr_prepare_sg_scmd()
3629 while (sges_in_segment > 1) { in mpi3mr_prepare_sg_scmd()
3635 sges_in_segment--; in mpi3mr_prepare_sg_scmd()
3649 sges_in_segment = sges_left; in mpi3mr_prepare_sg_scmd()
3650 chain_length = sges_in_segment * sizeof(struct mpi3_sge_common); in mpi3mr_prepare_sg_scmd()