Home
last modified time | relevance | path

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

/linux-6.1.9/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)
328 TX_BUF_ALLOC * TX_DESC_CNT + 4, in uli526x_init_one()
411 dma_free_coherent(&pdev->dev, TX_BUF_ALLOC * TX_DESC_CNT + 4, in uli526x_init_one()
438 dma_free_coherent(&db->pdev->dev, TX_BUF_ALLOC * TX_DESC_CNT + 4, in uli526x_remove_one()
623 if (db->tx_packet_cnt < TX_DESC_CNT) { in uli526x_start_xmit()
1280 db->first_rx_desc = (void *)db->first_tx_desc + sizeof(struct tx_desc) * TX_DESC_CNT; in uli526x_descriptor_init()
1281 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()
496 dma_free_coherent(&pdev->dev, TX_BUF_ALLOC * TX_DESC_CNT + 4, in dmfe_init_one()
528 TX_BUF_ALLOC * TX_DESC_CNT + 4, in dmfe_remove_one()
1371 sizeof(struct tx_desc) * TX_DESC_CNT; in dmfe_descriptor_init()
1374 sizeof(struct tx_desc) * TX_DESC_CNT; in dmfe_descriptor_init()
1383 for (tmp_tx = db->first_tx_desc, i = 0; i < TX_DESC_CNT; i++, tmp_tx++) { in dmfe_descriptor_init()
/linux-6.1.9/drivers/net/ethernet/broadcom/bnxt/ !
Dbnxt.h634 #define TX_DESC_CNT (BNXT_PAGE_SIZE / sizeof(struct tx_bd)) macro
642 #define SW_TXBD_RING_SIZE (sizeof(struct bnxt_sw_tx_bd) * TX_DESC_CNT)
643 #define HW_TXBD_RING_SIZE (sizeof(struct tx_bd) * TX_DESC_CNT)
650 #define BNXT_MAX_TX_DESC_CNT (TX_DESC_CNT * MAX_TX_PAGES - 1)
660 #define TX_RING(x) (((x) & ~(TX_DESC_CNT - 1)) >> (BNXT_PAGE_SHIFT - 4))
661 #define TX_IDX(x) ((x) & (TX_DESC_CNT - 1))
Dbnxt.c2866 max_idx = bp->tx_nr_pages * TX_DESC_CNT; in bnxt_free_tx_skbs()
3986 bp->tx_nr_pages = bnxt_calc_nr_ring_pages(ring_size, TX_DESC_CNT); in bnxt_set_ring_params()
3987 bp->tx_ring_mask = (bp->tx_nr_pages * TX_DESC_CNT) - 1; in bnxt_set_ring_params()
/linux-6.1.9/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.c6424 &txdata->tx_desc_ring[TX_DESC_CNT * i - 1].next_bd; in bnx2x_init_tx_ring_one()