Searched refs:hi_thrd (Results 1 – 1 of 1) sorted by relevance
1922 u32 shared_buf_min, shared_buf_tc, shared_std, hi_thrd, lo_thrd; in hclge_is_rx_buf_ok() local1959 hi_thrd = shared_buf - hdev->dv_buf_size; in hclge_is_rx_buf_ok()1962 hi_thrd = hi_thrd * BUF_RESERVE_PERCENT in hclge_is_rx_buf_ok()1966 hi_thrd = hi_thrd / tc_num; 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()1969 hi_thrd = rounddown(hi_thrd, HCLGE_BUF_SIZE_UNIT); in hclge_is_rx_buf_ok()1970 lo_thrd = hi_thrd - aligned_mps / HCLGE_BUF_DIV_BY; in hclge_is_rx_buf_ok()1972 hi_thrd = aligned_mps + HCLGE_NON_DCB_ADDITIONAL_BUF; in hclge_is_rx_buf_ok()1978 buf_alloc->s_buf.tc_thrd[i].high = hi_thrd; in hclge_is_rx_buf_ok()