Home
last modified time | relevance | path

Searched refs:MAX_TX_DESC_CNT (Results 1 – 4 of 4) sorted by relevance

/linux-2.6.39/drivers/net/bnx2x/
Dbnx2x.h457 #define MAX_TX_DESC_CNT (TX_DESC_CNT - 1) macro
460 #define MAX_TX_AVAIL (MAX_TX_DESC_CNT * NUM_TX_RINGS - 2)
463 #define NEXT_TX_IDX(x) ((((x) & MAX_TX_DESC_CNT) == \
464 (MAX_TX_DESC_CNT - 1)) ? (x) + 2 : (x) + 1)
466 #define TX_BD_POFF(x) ((x) & MAX_TX_DESC_CNT)
/linux-2.6.39/drivers/net/
Dbnx2.c264 diff = MAX_TX_DESC_CNT; in bnx2_tx_avail()
2765 if (unlikely((cons & MAX_TX_DESC_CNT) == MAX_TX_DESC_CNT)) in bnx2_get_hw_tx_cons()
2803 if (unlikely(last_ring_idx >= MAX_TX_DESC_CNT)) { in bnx2_tx_int()
5062 txbd = &txr->tx_desc_ring[MAX_TX_DESC_CNT]; in bnx2_init_tx_ring()
7091 ering->tx_max_pending = MAX_TX_DESC_CNT; in bnx2_get_ringparam()
7146 (ering->tx_pending > MAX_TX_DESC_CNT) || in bnx2_set_ringparam()
8118 bp->tx_ring_size = MAX_TX_DESC_CNT; in bnx2_init_board()
Dbnx2.h6507 #define MAX_TX_DESC_CNT (TX_DESC_CNT - 1) macro
6516 #define NEXT_TX_BD(x) (((x) & (MAX_TX_DESC_CNT - 1)) == \
6517 (MAX_TX_DESC_CNT - 1)) ? \
6520 #define TX_RING_IDX(x) ((x) & MAX_TX_DESC_CNT)
Dcnic.c4272 for (i = 0; i < MAX_TX_DESC_CNT; i++, txbd++) { in cnic_init_bnx2_tx_ring()
4619 for (i = 0; i < MAX_TX_DESC_CNT; i += 3, txbd += 3) { in cnic_init_bnx2x_tx_ring()