Lines Matching refs:rx_priv
1985 u32 rx_priv = 0; in hclge_get_rx_priv_buff_alloced() local
1991 rx_priv += priv->buf_size; in hclge_get_rx_priv_buff_alloced()
1993 return rx_priv; in hclge_get_rx_priv_buff_alloced()
2013 u32 rx_priv; in hclge_is_rx_buf_ok() local
2029 rx_priv = hclge_get_rx_priv_buff_alloced(buf_alloc); in hclge_is_rx_buf_ok()
2030 if (rx_all < rx_priv + shared_std) in hclge_is_rx_buf_ok()
2033 shared_buf = rounddown(rx_all - rx_priv, HCLGE_BUF_SIZE_UNIT); in hclge_is_rx_buf_ok()
2201 u32 rx_priv = hdev->pkt_buf_size - hclge_get_tx_buff_alloced(buf_alloc); in hclge_only_alloc_priv_buff() local
2208 rx_priv = rx_priv / tc_num; in hclge_only_alloc_priv_buff()
2211 rx_priv = rx_priv * BUF_RESERVE_PERCENT / BUF_MAX_PERCENT; in hclge_only_alloc_priv_buff()
2216 rx_priv = round_down(rx_priv, HCLGE_BUF_SIZE_UNIT); in hclge_only_alloc_priv_buff()
2217 if (rx_priv < min_rx_priv) in hclge_only_alloc_priv_buff()
2232 priv->buf_size = rx_priv; in hclge_only_alloc_priv_buff()
2233 priv->wl.high = rx_priv - hdev->dv_buf_size; in hclge_only_alloc_priv_buff()