Searched refs:calc_idx (Results 1 – 3 of 3) sorted by relevance
/Linux-v6.6/net/can/ |
D | gw.c | 312 static inline int calc_idx(int idx, int rx_len) in calc_idx() function 322 int from = calc_idx(xor->from_idx, cf->len); in cgw_csum_xor_rel() 323 int to = calc_idx(xor->to_idx, cf->len); in cgw_csum_xor_rel() 324 int res = calc_idx(xor->result_idx, cf->len); in cgw_csum_xor_rel() 367 int from = calc_idx(crc8->from_idx, cf->len); in cgw_csum_crc8_rel() 368 int to = calc_idx(crc8->to_idx, cf->len); in cgw_csum_crc8_rel() 369 int res = calc_idx(crc8->result_idx, cf->len); in cgw_csum_crc8_rel()
|
/Linux-v6.6/drivers/net/ethernet/mediatek/ |
D | mtk_eth_soc.c | 1653 idx = NEXT_DESP_IDX(ring->calc_idx, ring->dma_size); in mtk_get_rx_ring() 1671 mtk_w32(eth, ring->calc_idx, ring->crx_idx_reg); in mtk_update_rx_cpu_idx() 1677 mtk_w32(eth, ring->calc_idx, ring->crx_idx_reg); in mtk_update_rx_cpu_idx() 2020 idx = NEXT_DESP_IDX(ring->calc_idx, ring->dma_size); in mtk_poll_rx() 2193 ring->calc_idx = idx; in mtk_poll_rx() 2700 ring->calc_idx = rx_dma_size - 1; in mtk_rx_alloc() 2727 mtk_w32(eth, ring->calc_idx, ring->crx_idx_reg); in mtk_rx_alloc()
|
D | mtk_eth_soc.h | 936 u16 calc_idx; member
|