Home
last modified time | relevance | path

Searched refs:calc_idx (Results 1 – 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/net/can/
Dgw.c250 static inline int calc_idx(int idx, int rx_len) in calc_idx() function
260 int from = calc_idx(xor->from_idx, cf->len); in cgw_csum_xor_rel()
261 int to = calc_idx(xor->to_idx, cf->len); in cgw_csum_xor_rel()
262 int res = calc_idx(xor->result_idx, cf->len); in cgw_csum_xor_rel()
305 int from = calc_idx(crc8->from_idx, cf->len); in cgw_csum_crc8_rel()
306 int to = calc_idx(crc8->to_idx, cf->len); in cgw_csum_crc8_rel()
307 int res = calc_idx(crc8->result_idx, cf->len); in cgw_csum_crc8_rel()
/kernel/linux/linux-5.10/drivers/net/ethernet/mediatek/
Dmtk_eth_soc.c1241 idx = NEXT_DESP_IDX(ring->calc_idx, ring->dma_size); in mtk_get_rx_ring()
1258 mtk_w32(eth, ring->calc_idx, ring->crx_idx_reg); in mtk_update_rx_cpu_idx()
1264 mtk_w32(eth, ring->calc_idx, ring->crx_idx_reg); in mtk_update_rx_cpu_idx()
1290 idx = NEXT_DESP_IDX(ring->calc_idx, ring->dma_size); in mtk_poll_rx()
1372 ring->calc_idx = idx; in mtk_poll_rx()
1747 ring->calc_idx = rx_dma_size - 1; in mtk_rx_alloc()
1756 mtk_w32(eth, ring->calc_idx, ring->crx_idx_reg + offset); in mtk_rx_alloc()
Dmtk_eth_soc.h682 u16 calc_idx; member