Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/dec/tulip/
Duli526x.c45 #define TX_DESC_CNT 0x20 /* Allocated Tx descriptors */ macro
47 #define TX_FREE_DESC_CNT (TX_DESC_CNT - 2) /* Max TX packet count */
48 #define TX_WAKE_DESC_CNT (TX_DESC_CNT - 3) /* TX wakeup count */
49 #define DESC_ALL_CNT (TX_DESC_CNT + RX_DESC_CNT)
333 …db->buf_pool_ptr = pci_alloc_consistent(pdev, TX_BUF_ALLOC * TX_DESC_CNT + 4, &db->buf_pool_dma_pt… in uli526x_init_one()
413 pci_free_consistent(pdev, TX_BUF_ALLOC * TX_DESC_CNT + 4, in uli526x_init_one()
439 pci_free_consistent(db->pdev, TX_BUF_ALLOC * TX_DESC_CNT + 4, in uli526x_remove_one()
624 if (db->tx_packet_cnt < TX_DESC_CNT) { in uli526x_start_xmit()
1315 db->first_rx_desc = (void *)db->first_tx_desc + sizeof(struct tx_desc) * TX_DESC_CNT; in uli526x_descriptor_init()
1316 db->first_rx_desc_dma = db->first_tx_desc_dma + sizeof(struct tx_desc) * TX_DESC_CNT; in uli526x_descriptor_init()
[all …]
Ddmfe.c102 #define TX_DESC_CNT 0x10 /* Allocated Tx descriptors */ macro
104 #define TX_FREE_DESC_CNT (TX_DESC_CNT - 2) /* Max TX packet count */
105 #define TX_WAKE_DESC_CNT (TX_DESC_CNT - 3) /* TX wakeup count */
106 #define DESC_ALL_CNT (TX_DESC_CNT + RX_DESC_CNT)
442 TX_DESC_CNT + 4, &db->buf_pool_dma_ptr); in dmfe_init_one()
504 pci_free_consistent(pdev, TX_BUF_ALLOC * TX_DESC_CNT + 4, in dmfe_init_one()
534 pci_free_consistent(db->pdev, TX_BUF_ALLOC * TX_DESC_CNT + 4, in dmfe_remove_one()
1378 sizeof(struct tx_desc) * TX_DESC_CNT; in dmfe_descriptor_init()
1381 sizeof(struct tx_desc) * TX_DESC_CNT; in dmfe_descriptor_init()
1390 for (tmp_tx = db->first_tx_desc, i = 0; i < TX_DESC_CNT; i++, tmp_tx++) { in dmfe_descriptor_init()
/Linux-v5.4/drivers/net/ethernet/broadcom/bnxt/
Dbnxt.h587 #define TX_DESC_CNT (BNXT_PAGE_SIZE / sizeof(struct tx_bd)) macro
595 #define SW_TXBD_RING_SIZE (sizeof(struct bnxt_sw_tx_bd) * TX_DESC_CNT)
596 #define HW_TXBD_RING_SIZE (sizeof(struct tx_bd) * TX_DESC_CNT)
602 #define BNXT_MAX_TX_DESC_CNT (TX_DESC_CNT * MAX_TX_PAGES - 1)
607 #define TX_RING(x) (((x) & ~(TX_DESC_CNT - 1)) >> (BNXT_PAGE_SHIFT - 4))
608 #define TX_IDX(x) ((x) & (TX_DESC_CNT - 1))
Dbnxt.c2473 max_idx = bp->tx_nr_pages * TX_DESC_CNT; in bnxt_free_tx_skbs()
3471 bp->tx_nr_pages = bnxt_calc_nr_ring_pages(ring_size, TX_DESC_CNT); in bnxt_set_ring_params()
3472 bp->tx_ring_mask = (bp->tx_nr_pages * TX_DESC_CNT) - 1; in bnxt_set_ring_params()
/Linux-v5.4/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x.h644 #define TX_DESC_CNT (BCM_PAGE_SIZE / sizeof(union eth_tx_bd_types)) macro
646 #define MAX_TX_DESC_CNT (TX_DESC_CNT - NEXT_PAGE_TX_DESC_CNT)
647 #define NUM_TX_BD (TX_DESC_CNT * NUM_TX_RINGS)
Dbnx2x_main.c6403 &txdata->tx_desc_ring[TX_DESC_CNT * i - 1].next_bd; in bnx2x_init_tx_ring_one()