Lines Matching refs:num_segs
794 int size, num_segs = 0, wqe_pcnt, pkt_pcnt; in __cvmx_helper_errata_fix_ipd_ptr_alignment() local
832 num_segs = (2 + pkt_pcnt - wqe_pcnt) & 3; in __cvmx_helper_errata_fix_ipd_ptr_alignment()
834 if (num_segs == 0) in __cvmx_helper_errata_fix_ipd_ptr_alignment()
837 num_segs += 1; in __cvmx_helper_errata_fix_ipd_ptr_alignment()
841 ((num_segs - 1) * FIX_IPD_NON_FIRST_BUFF_PAYLOAD_BYTES) - in __cvmx_helper_errata_fix_ipd_ptr_alignment()
858 g_buffer.s.size = num_segs; in __cvmx_helper_errata_fix_ipd_ptr_alignment()
878 for (i = 0; i < num_segs; i++) { in __cvmx_helper_errata_fix_ipd_ptr_alignment()
883 if (i == (num_segs - 1)) in __cvmx_helper_errata_fix_ipd_ptr_alignment()
892 pko_command.s.segs = num_segs; in __cvmx_helper_errata_fix_ipd_ptr_alignment()
961 if (num_segs) in __cvmx_helper_errata_fix_ipd_ptr_alignment()
964 return !!num_segs; in __cvmx_helper_errata_fix_ipd_ptr_alignment()