Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.c1795 u32 shared_buf, aligned_mps; in hclge_is_rx_buf_ok() local
1799 aligned_mps = roundup(hdev->mps, HCLGE_BUF_SIZE_UNIT); in hclge_is_rx_buf_ok()
1802 shared_buf_min = HCLGE_BUF_MUL_BY * aligned_mps + in hclge_is_rx_buf_ok()
1805 shared_buf_min = aligned_mps + HCLGE_NON_DCB_ADDITIONAL_BUF in hclge_is_rx_buf_ok()
1808 shared_buf_tc = tc_num * aligned_mps + aligned_mps; in hclge_is_rx_buf_ok()
1821 - roundup(aligned_mps / HCLGE_BUF_DIV_BY, in hclge_is_rx_buf_ok()
1824 buf_alloc->s_buf.self.high = aligned_mps + in hclge_is_rx_buf_ok()
1826 buf_alloc->s_buf.self.low = aligned_mps; in hclge_is_rx_buf_ok()
1839 hi_thrd = max_t(u32, hi_thrd, HCLGE_BUF_MUL_BY * aligned_mps); in hclge_is_rx_buf_ok()
1841 lo_thrd = hi_thrd - aligned_mps / HCLGE_BUF_DIV_BY; in hclge_is_rx_buf_ok()
[all …]