Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.c1924 u32 shared_buf, aligned_mps; in hclge_is_rx_buf_ok() local
1928 aligned_mps = roundup(hdev->mps, HCLGE_BUF_SIZE_UNIT); in hclge_is_rx_buf_ok()
1931 shared_buf_min = HCLGE_BUF_MUL_BY * aligned_mps + in hclge_is_rx_buf_ok()
1934 shared_buf_min = aligned_mps + HCLGE_NON_DCB_ADDITIONAL_BUF in hclge_is_rx_buf_ok()
1937 shared_buf_tc = tc_num * aligned_mps + aligned_mps; in hclge_is_rx_buf_ok()
1950 - roundup(aligned_mps / HCLGE_BUF_DIV_BY, in hclge_is_rx_buf_ok()
1953 buf_alloc->s_buf.self.high = aligned_mps + in hclge_is_rx_buf_ok()
1955 buf_alloc->s_buf.self.low = aligned_mps; in hclge_is_rx_buf_ok()
1968 hi_thrd = max_t(u32, hi_thrd, HCLGE_BUF_MUL_BY * aligned_mps); in hclge_is_rx_buf_ok()
1970 lo_thrd = hi_thrd - aligned_mps / HCLGE_BUF_DIV_BY; in hclge_is_rx_buf_ok()
[all …]