Home
last modified time | relevance | path

Searched refs:RX_DESC_CNT (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt.h791 #define RX_DESC_CNT (BNXT_PAGE_SIZE / sizeof(struct rx_bd)) macro
795 #define SW_RXBD_RING_SIZE (sizeof(struct bnxt_sw_rx_bd) * RX_DESC_CNT)
796 #define HW_RXBD_RING_SIZE (sizeof(struct rx_bd) * RX_DESC_CNT)
798 #define SW_RXBD_AGG_RING_SIZE (sizeof(struct bnxt_sw_rx_agg_bd) * RX_DESC_CNT)
805 #define BNXT_MAX_RX_DESC_CNT (RX_DESC_CNT * MAX_RX_PAGES - 1)
806 #define BNXT_MAX_RX_DESC_CNT_JUM_ENA (RX_DESC_CNT * MAX_RX_PAGES_AGG_ENA - 1)
807 #define BNXT_MAX_RX_JUM_DESC_CNT (RX_DESC_CNT * MAX_RX_AGG_PAGES - 1)
818 #define RX_IDX(x) ((x) & (RX_DESC_CNT - 1))
H A Dbnxt.c3317 max_idx = bp->rx_nr_pages * RX_DESC_CNT; in bnxt_free_one_rx_ring()
3343 max_idx = bp->rx_agg_nr_pages * RX_DESC_CNT; in bnxt_free_one_rx_agg_ring()
4124 for (j = 0; j < RX_DESC_CNT; j++, rxbd++, prod++) { in bnxt_init_rxbd_pages()
4497 RX_DESC_CNT); in bnxt_set_ring_params()
4502 agg_ring_size = MAX_RX_AGG_PAGES * RX_DESC_CNT - 1; in bnxt_set_ring_params()
4507 bp->rx_agg_ring_mask = (bp->rx_agg_nr_pages * RX_DESC_CNT) - 1; in bnxt_set_ring_params()
4524 bp->rx_nr_pages = bnxt_calc_nr_ring_pages(ring_size, RX_DESC_CNT); in bnxt_set_ring_params()
4525 bp->rx_ring_mask = (bp->rx_nr_pages * RX_DESC_CNT) - 1; in bnxt_set_ring_params()
/linux/drivers/net/ethernet/dec/tulip/
H A Duli526x.c44 #define RX_DESC_CNT 0x30 /* Allocated Rx descriptors */ macro
47 #define DESC_ALL_CNT (TX_DESC_CNT + RX_DESC_CNT)
716 if (db->rx_avail_cnt<RX_DESC_CNT) in uli526x_interrupt()
1306 for (tmp_rx = db->first_rx_desc, i = 0; i < RX_DESC_CNT; i++, tmp_rx++) { in uli526x_descriptor_init()
1414 while(db->rx_avail_cnt < RX_DESC_CNT) { in allocate_rx_buffer()
H A Ddmfe.c101 #define RX_DESC_CNT 0x20 /* Allocated Rx descriptors */ macro
104 #define DESC_ALL_CNT (TX_DESC_CNT + RX_DESC_CNT)
816 if (db->rx_avail_cnt<RX_DESC_CNT) in dmfe_interrupt()
1399 for (tmp_rx = db->first_rx_desc, i = 0; i < RX_DESC_CNT; i++, tmp_rx++) { in dmfe_descriptor_init()
1546 while(db->rx_avail_cnt < RX_DESC_CNT) { in allocate_rx_buffer()
/linux/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x.h682 #define RX_DESC_CNT (BCM_PAGE_SIZE / sizeof(struct eth_rx_bd)) macro
684 #define MAX_RX_DESC_CNT (RX_DESC_CNT - NEXT_PAGE_RX_DESC_CNT)
685 #define RX_DESC_MASK (RX_DESC_CNT - 1)
686 #define NUM_RX_BD (RX_DESC_CNT * NUM_RX_RINGS)
H A Dbnx2x_cmn.h1034 rx_bd = &fp->rx_desc_ring[RX_DESC_CNT * i - 2]; in bnx2x_set_next_page_rx_bd()