Lines Matching refs:aligned_mps
3152 uint32_t shared_buf, aligned_mps; in hns3_is_rx_buf_ok() local
3158 aligned_mps = roundup(pf->mps, HNS3_BUF_SIZE_UNIT); in hns3_is_rx_buf_ok()
3161 shared_buf_min = HNS3_BUF_MUL_BY * aligned_mps + in hns3_is_rx_buf_ok()
3164 shared_buf_min = aligned_mps + HNS3_NON_DCB_ADDITIONAL_BUF in hns3_is_rx_buf_ok()
3167 shared_buf_tc = tc_num * aligned_mps + aligned_mps; in hns3_is_rx_buf_ok()
3180 - roundup(aligned_mps / HNS3_BUF_DIV_BY, in hns3_is_rx_buf_ok()
3184 aligned_mps + HNS3_NON_DCB_ADDITIONAL_BUF; in hns3_is_rx_buf_ok()
3185 buf_alloc->s_buf.self.low = aligned_mps; in hns3_is_rx_buf_ok()
3198 hi_thrd = RTE_MAX(hi_thrd, HNS3_BUF_MUL_BY * aligned_mps); in hns3_is_rx_buf_ok()
3200 lo_thrd = hi_thrd - aligned_mps / HNS3_BUF_DIV_BY; in hns3_is_rx_buf_ok()
3202 hi_thrd = aligned_mps + HNS3_NON_DCB_ADDITIONAL_BUF; in hns3_is_rx_buf_ok()
3203 lo_thrd = aligned_mps; in hns3_is_rx_buf_ok()
3221 uint32_t aligned_mps; in hns3_rx_buf_calc_all() local
3226 aligned_mps = roundup(pf->mps, HNS3_BUF_SIZE_UNIT); in hns3_rx_buf_calc_all()
3241 priv->wl.low = max ? aligned_mps : HNS3_BUF_SIZE_UNIT; in hns3_rx_buf_calc_all()
3242 priv->wl.high = roundup(priv->wl.low + aligned_mps, in hns3_rx_buf_calc_all()
3246 priv->wl.high = max ? (aligned_mps * HNS3_BUF_MUL_BY) : in hns3_rx_buf_calc_all()
3247 aligned_mps; in hns3_rx_buf_calc_all()