Searched refs:rounddown (Results 1 – 3 of 3) sorted by relevance
955 #define rounddown(x, y) ((x) - ((x) % (y))) macro
3175 shared_buf = rounddown(rx_all - rx_priv, HNS3_BUF_SIZE_UNIT); in hns3_is_rx_buf_ok()3199 hi_thrd = rounddown(hi_thrd, HNS3_BUF_SIZE_UNIT); in hns3_is_rx_buf_ok()3359 rx_priv = rounddown(rx_priv, HNS3_BUF_SIZE_UNIT); in hns3_only_alloc_priv_buff()
4607 round_cnt = rounddown(free_cnt, txq->tx_rs_thresh); in hns3_tx_done_cleanup_full()