Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/net/ethernet/dec/tulip/
Duli526x.c43 #define TX_DESC_CNT 0x20 /* Allocated Tx descriptors */ macro
45 #define TX_FREE_DESC_CNT (TX_DESC_CNT - 2) /* Max TX packet count */
46 #define TX_WAKE_DESC_CNT (TX_DESC_CNT - 3) /* TX wakeup count */
47 #define DESC_ALL_CNT (TX_DESC_CNT + RX_DESC_CNT)
327 TX_BUF_ALLOC * TX_DESC_CNT + 4, in uli526x_init_one()
408 dma_free_coherent(&pdev->dev, TX_BUF_ALLOC * TX_DESC_CNT + 4, in uli526x_init_one()
435 dma_free_coherent(&db->pdev->dev, TX_BUF_ALLOC * TX_DESC_CNT + 4, in uli526x_remove_one()
620 if (db->tx_packet_cnt < TX_DESC_CNT) { in uli526x_start_xmit()
1277 db->first_rx_desc = (void *)db->first_tx_desc + sizeof(struct tx_desc) * TX_DESC_CNT; in uli526x_descriptor_init()
1278 db->first_rx_desc_dma = db->first_tx_desc_dma + sizeof(struct tx_desc) * TX_DESC_CNT; in uli526x_descriptor_init()
[all …]
Ddmfe.c100 #define TX_DESC_CNT 0x10 /* Allocated Tx descriptors */ macro
102 #define TX_FREE_DESC_CNT (TX_DESC_CNT - 2) /* Max TX packet count */
103 #define TX_WAKE_DESC_CNT (TX_DESC_CNT - 3) /* TX wakeup count */
104 #define DESC_ALL_CNT (TX_DESC_CNT + RX_DESC_CNT)
434 TX_BUF_ALLOC * TX_DESC_CNT + 4, in dmfe_init_one()
497 dma_free_coherent(&pdev->dev, TX_BUF_ALLOC * TX_DESC_CNT + 4, in dmfe_init_one()
529 TX_BUF_ALLOC * TX_DESC_CNT + 4, in dmfe_remove_one()
1372 sizeof(struct tx_desc) * TX_DESC_CNT; in dmfe_descriptor_init()
1375 sizeof(struct tx_desc) * TX_DESC_CNT; in dmfe_descriptor_init()
1384 for (tmp_tx = db->first_tx_desc, i = 0; i < TX_DESC_CNT; i++, tmp_tx++) { in dmfe_descriptor_init()
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt.h598 #define TX_DESC_CNT (BNXT_PAGE_SIZE / sizeof(struct tx_bd)) macro
606 #define SW_TXBD_RING_SIZE (sizeof(struct bnxt_sw_tx_bd) * TX_DESC_CNT)
607 #define HW_TXBD_RING_SIZE (sizeof(struct tx_bd) * TX_DESC_CNT)
613 #define BNXT_MAX_TX_DESC_CNT (TX_DESC_CNT * MAX_TX_PAGES - 1)
623 #define TX_RING(x) (((x) & ~(TX_DESC_CNT - 1)) >> (BNXT_PAGE_SHIFT - 4))
624 #define TX_IDX(x) ((x) & (TX_DESC_CNT - 1))
Dbnxt.c2607 max_idx = bp->tx_nr_pages * TX_DESC_CNT; in bnxt_free_tx_skbs()
3618 bp->tx_nr_pages = bnxt_calc_nr_ring_pages(ring_size, TX_DESC_CNT); in bnxt_set_ring_params()
3619 bp->tx_ring_mask = (bp->tx_nr_pages * TX_DESC_CNT) - 1; in bnxt_set_ring_params()
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x.h650 #define TX_DESC_CNT (BCM_PAGE_SIZE / sizeof(union eth_tx_bd_types)) macro
652 #define MAX_TX_DESC_CNT (TX_DESC_CNT - NEXT_PAGE_TX_DESC_CNT)
653 #define NUM_TX_BD (TX_DESC_CNT * NUM_TX_RINGS)
Dbnx2x_main.c6425 &txdata->tx_desc_ring[TX_DESC_CNT * i - 1].next_bd; in bnx2x_init_tx_ring_one()