Searched refs:NEXT_DESP_IDX (Results 1 – 2 of 2) sorted by relevance
44 #define NEXT_DESP_IDX(X, Y) (((X) + 1) & ((Y) - 1)) macro
1091 int next_idx = NEXT_DESP_IDX(txd_to_idx(ring, txd), in mtk_tx_map()1241 idx = NEXT_DESP_IDX(ring->calc_idx, ring->dma_size); in mtk_get_rx_ring()1290 idx = NEXT_DESP_IDX(ring->calc_idx, ring->dma_size); in mtk_poll_rx()1467 cpu = NEXT_DESP_IDX(cpu, ring->dma_size); in mtk_poll_tx_pdma()