Searched refs:hi_thrd (Results 1 – 1 of 1) sorted by relevance
2010 u32 shared_buf_min, shared_buf_tc, shared_std, hi_thrd, lo_thrd; in hclge_is_rx_buf_ok() local2047 hi_thrd = shared_buf - hdev->dv_buf_size; in hclge_is_rx_buf_ok()2050 hi_thrd = hi_thrd * BUF_RESERVE_PERCENT in hclge_is_rx_buf_ok()2054 hi_thrd = hi_thrd / tc_num; in hclge_is_rx_buf_ok()2056 hi_thrd = max_t(u32, hi_thrd, HCLGE_BUF_MUL_BY * aligned_mps); in hclge_is_rx_buf_ok()2057 hi_thrd = rounddown(hi_thrd, HCLGE_BUF_SIZE_UNIT); in hclge_is_rx_buf_ok()2058 lo_thrd = hi_thrd - aligned_mps / HCLGE_BUF_DIV_BY; in hclge_is_rx_buf_ok()2060 hi_thrd = aligned_mps + HCLGE_NON_DCB_ADDITIONAL_BUF; in hclge_is_rx_buf_ok()2066 buf_alloc->s_buf.tc_thrd[i].high = hi_thrd; in hclge_is_rx_buf_ok()