Searched refs:c_index (Results 1 - 5 of 5) sorted by relevance
/linux-4.1.27/drivers/net/ethernet/broadcom/ |
H A D | bcmsysport.c | 668 unsigned int c_index, last_c_index, last_tx_cn, num_tx_cbs; __bcm_sysport_tx_reclaim() local 678 c_index = (hw_ind >> RING_CONS_INDEX_SHIFT) & RING_CONS_INDEX_MASK; __bcm_sysport_tx_reclaim() 681 last_c_index = ring->c_index; __bcm_sysport_tx_reclaim() 684 c_index &= (num_tx_cbs - 1); __bcm_sysport_tx_reclaim() 686 if (c_index >= last_c_index) __bcm_sysport_tx_reclaim() 687 last_tx_cn = c_index - last_c_index; __bcm_sysport_tx_reclaim() 689 last_tx_cn = num_tx_cbs - last_c_index + c_index; __bcm_sysport_tx_reclaim() 692 "ring=%d c_index=%d last_tx_cn=%d last_c_index=%d\n", __bcm_sysport_tx_reclaim() 693 ring->index, c_index, last_tx_cn, last_c_index); __bcm_sysport_tx_reclaim() 704 ring->c_index = c_index; __bcm_sysport_tx_reclaim() 710 "ring=%d c_index=%d pkts_compl=%d, bytes_compl=%d\n", __bcm_sysport_tx_reclaim() 711 ring->index, ring->c_index, pkts_compl, bytes_compl); __bcm_sysport_tx_reclaim()
|
H A D | bcmsysport.h | 640 unsigned int c_index; /* Last consumer index */ member in struct:bcm_sysport_tx_ring
|
/linux-4.1.27/drivers/net/ethernet/broadcom/genet/ |
H A D | bcmgenet.c | 1025 unsigned int c_index; __bcmgenet_tx_reclaim() local 1030 c_index = bcmgenet_tdma_ring_readl(priv, ring->index, TDMA_CONS_INDEX); __bcmgenet_tx_reclaim() 1031 c_index &= DMA_C_INDEX_MASK; __bcmgenet_tx_reclaim() 1033 if (likely(c_index >= ring->c_index)) __bcmgenet_tx_reclaim() 1034 txbds_ready = c_index - ring->c_index; __bcmgenet_tx_reclaim() 1036 txbds_ready = (DMA_C_INDEX_MASK + 1) - ring->c_index + c_index; __bcmgenet_tx_reclaim() 1039 "%s ring=%d old_c_index=%u c_index=%u txbds_ready=%u\n", __bcmgenet_tx_reclaim() 1040 __func__, ring->index, ring->c_index, c_index, txbds_ready); __bcmgenet_tx_reclaim() 1072 ring->c_index = (ring->c_index + txbds_processed) & DMA_C_INDEX_MASK; __bcmgenet_tx_reclaim() 1452 if (likely(p_index >= ring->c_index)) bcmgenet_desc_rx() 1453 rxpkttoprocess = p_index - ring->c_index; bcmgenet_desc_rx() 1455 rxpkttoprocess = (DMA_C_INDEX_MASK + 1) - ring->c_index + bcmgenet_desc_rx() 1490 __func__, p_index, ring->c_index, bcmgenet_desc_rx() 1563 ring->c_index = (ring->c_index + 1) & DMA_C_INDEX_MASK; bcmgenet_desc_rx() 1564 bcmgenet_rdma_ring_writel(priv, ring->index, ring->c_index, RDMA_CONS_INDEX); bcmgenet_desc_rx() 1796 ring->c_index = 0; bcmgenet_init_tx_ring() 1848 ring->c_index = 0; bcmgenet_init_rx_ring()
|
H A D | bcmgenet.h | 543 unsigned int c_index; /* last consumer index of each ring*/ member in struct:bcmgenet_tx_ring 559 unsigned int c_index; /* Rx last consumer index */ member in struct:bcmgenet_rx_ring
|
/linux-4.1.27/drivers/video/console/ |
H A D | sticore.c | 62 #define c_index(sti, c) ((c) & 0xff) macro 140 .index = c_index(sti, c), sti_putc()
|
Completed in 174 milliseconds