Lines Matching refs:aligned_mps
3397 uint32_t shared_buf, aligned_mps; in hns3_is_rx_buf_ok() local
3403 aligned_mps = roundup(pf->mps, HNS3_BUF_SIZE_UNIT); in hns3_is_rx_buf_ok()
3406 shared_buf_min = HNS3_BUF_MUL_BY * aligned_mps + in hns3_is_rx_buf_ok()
3409 shared_buf_min = aligned_mps + HNS3_NON_DCB_ADDITIONAL_BUF in hns3_is_rx_buf_ok()
3412 shared_buf_tc = tc_num * aligned_mps + aligned_mps; in hns3_is_rx_buf_ok()
3425 - roundup(aligned_mps / HNS3_BUF_DIV_BY, in hns3_is_rx_buf_ok()
3429 aligned_mps + HNS3_NON_DCB_ADDITIONAL_BUF; in hns3_is_rx_buf_ok()
3430 buf_alloc->s_buf.self.low = aligned_mps; in hns3_is_rx_buf_ok()
3443 hi_thrd = RTE_MAX(hi_thrd, HNS3_BUF_MUL_BY * aligned_mps); in hns3_is_rx_buf_ok()
3445 lo_thrd = hi_thrd - aligned_mps / HNS3_BUF_DIV_BY; in hns3_is_rx_buf_ok()
3447 hi_thrd = aligned_mps + HNS3_NON_DCB_ADDITIONAL_BUF; in hns3_is_rx_buf_ok()
3448 lo_thrd = aligned_mps; in hns3_is_rx_buf_ok()
3466 uint32_t aligned_mps; in hns3_rx_buf_calc_all() local
3471 aligned_mps = roundup(pf->mps, HNS3_BUF_SIZE_UNIT); in hns3_rx_buf_calc_all()
3486 priv->wl.low = max ? aligned_mps : HNS3_BUF_SIZE_UNIT; in hns3_rx_buf_calc_all()
3487 priv->wl.high = roundup(priv->wl.low + aligned_mps, in hns3_rx_buf_calc_all()
3491 priv->wl.high = max ? (aligned_mps * HNS3_BUF_MUL_BY) : in hns3_rx_buf_calc_all()
3492 aligned_mps; in hns3_rx_buf_calc_all()