Searched refs:RX_DESC_CNT (Results 1 – 6 of 6) sorted by relevance
640 #define RX_DESC_CNT (BNXT_PAGE_SIZE / sizeof(struct rx_bd)) macro644 #define SW_RXBD_RING_SIZE (sizeof(struct bnxt_sw_rx_bd) * RX_DESC_CNT)645 #define HW_RXBD_RING_SIZE (sizeof(struct rx_bd) * RX_DESC_CNT)647 #define SW_RXBD_AGG_RING_SIZE (sizeof(struct bnxt_sw_rx_agg_bd) * RX_DESC_CNT)654 #define BNXT_MAX_RX_DESC_CNT (RX_DESC_CNT * MAX_RX_PAGES - 1)655 #define BNXT_MAX_RX_DESC_CNT_JUM_ENA (RX_DESC_CNT * MAX_RX_PAGES_AGG_ENA - 1)656 #define BNXT_MAX_RX_JUM_DESC_CNT (RX_DESC_CNT * MAX_RX_AGG_PAGES - 1)664 #define RX_RING(x) (((x) & ~(RX_DESC_CNT - 1)) >> (BNXT_PAGE_SHIFT - 4))665 #define RX_IDX(x) ((x) & (RX_DESC_CNT - 1))
2928 max_idx = bp->rx_nr_pages * RX_DESC_CNT; in bnxt_free_one_rx_ring_skbs()2929 max_agg_idx = bp->rx_agg_nr_pages * RX_DESC_CNT; in bnxt_free_one_rx_ring_skbs()3629 for (j = 0; j < RX_DESC_CNT; j++, rxbd++, prod++) { in bnxt_init_rxbd_pages()3934 RX_DESC_CNT); in bnxt_set_ring_params()3939 agg_ring_size = MAX_RX_AGG_PAGES * RX_DESC_CNT - 1; in bnxt_set_ring_params()3944 bp->rx_agg_ring_mask = (bp->rx_agg_nr_pages * RX_DESC_CNT) - 1; in bnxt_set_ring_params()3961 bp->rx_nr_pages = bnxt_calc_nr_ring_pages(ring_size, RX_DESC_CNT); in bnxt_set_ring_params()3962 bp->rx_ring_mask = (bp->rx_nr_pages * RX_DESC_CNT) - 1; in bnxt_set_ring_params()
44 #define RX_DESC_CNT 0x30 /* Allocated Rx descriptors */ macro47 #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()
101 #define RX_DESC_CNT 0x20 /* Allocated Rx descriptors */ macro104 #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()
682 #define RX_DESC_CNT (BCM_PAGE_SIZE / sizeof(struct eth_rx_bd)) macro684 #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)
1034 rx_bd = &fp->rx_desc_ring[RX_DESC_CNT * i - 2]; in bnx2x_set_next_page_rx_bd()