Home
last modified time | relevance | path

Searched refs:c_index (Results 1 – 5 of 5) sorted by relevance

/drivers/net/ethernet/broadcom/
Dbcmsysport.c660 unsigned int c_index, last_c_index, last_tx_cn, num_tx_cbs; in __bcm_sysport_tx_reclaim() local
670 c_index = (hw_ind >> RING_CONS_INDEX_SHIFT) & RING_CONS_INDEX_MASK; in __bcm_sysport_tx_reclaim()
673 last_c_index = ring->c_index; in __bcm_sysport_tx_reclaim()
676 c_index &= (num_tx_cbs - 1); in __bcm_sysport_tx_reclaim()
678 if (c_index >= last_c_index) in __bcm_sysport_tx_reclaim()
679 last_tx_cn = c_index - last_c_index; in __bcm_sysport_tx_reclaim()
681 last_tx_cn = num_tx_cbs - last_c_index + c_index; in __bcm_sysport_tx_reclaim()
685 ring->index, c_index, last_tx_cn, last_c_index); in __bcm_sysport_tx_reclaim()
696 ring->c_index = c_index; in __bcm_sysport_tx_reclaim()
703 ring->index, ring->c_index, pkts_compl, bytes_compl); in __bcm_sysport_tx_reclaim()
Dbcmsysport.h635 unsigned int c_index; /* Last consumer index */ member
/drivers/net/ethernet/broadcom/genet/
Dbcmgenet.c933 unsigned int c_index; in __bcmgenet_tx_reclaim() local
936 c_index = bcmgenet_tdma_ring_readl(priv, ring->index, TDMA_CONS_INDEX); in __bcmgenet_tx_reclaim()
939 last_c_index = ring->c_index; in __bcmgenet_tx_reclaim()
942 c_index &= (num_tx_bds - 1); in __bcmgenet_tx_reclaim()
944 if (c_index >= last_c_index) in __bcmgenet_tx_reclaim()
945 last_tx_cn = c_index - last_c_index; in __bcmgenet_tx_reclaim()
947 last_tx_cn = num_tx_bds - last_c_index + c_index; in __bcmgenet_tx_reclaim()
952 c_index, last_tx_cn, last_c_index); in __bcmgenet_tx_reclaim()
988 ring->c_index = c_index; in __bcmgenet_tx_reclaim()
1682 ring->c_index = 0; in bcmgenet_init_tx_ring()
Dbcmgenet.h507 unsigned int c_index; /* last consumer index of each ring*/ member
/drivers/video/console/
Dsticore.c62 #define c_index(sti, c) ((c) & 0xff) macro
140 .index = c_index(sti, c), in sti_putc()