Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/net/
H A Duli526x.c34 #define TX_DESC_CNT 0x10 /* Allocated Tx descriptors */ macro
36 #define TX_FREE_DESC_CNT (TX_DESC_CNT - 2) /* Max TX packet count */
37 #define TX_WAKE_DESC_CNT (TX_DESC_CNT - 3) /* TX wakeup count */
38 #define DESC_ALL_CNT (TX_DESC_CNT + RX_DESC_CNT)
161 static char buf_pool[TX_BUF_ALLOC * TX_DESC_CNT + 4];
469 if ((db->tx_packet_cnt < TX_DESC_CNT)) { in uli526x_start_xmit()
640 sizeof(struct tx_desc) * TX_DESC_CNT; in uli526x_descriptor_init()
642 sizeof(struct tx_desc) * TX_DESC_CNT; in uli526x_descriptor_init()
656 i < TX_DESC_CNT; i++, tmp_tx++) { in uli526x_descriptor_init()
/openbmc/linux/drivers/net/ethernet/dec/tulip/
H A 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()
1290 for (tmp_tx = db->first_tx_desc, i = 0; i < TX_DESC_CNT; i++, tmp_tx++) { in uli526x_descriptor_init()
[all …]
H A 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()
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt.h641 #define TX_DESC_CNT (BNXT_PAGE_SIZE / sizeof(struct tx_bd)) macro
649 #define SW_TXBD_RING_SIZE (sizeof(struct bnxt_sw_tx_bd) * TX_DESC_CNT)
650 #define HW_TXBD_RING_SIZE (sizeof(struct tx_bd) * TX_DESC_CNT)
657 #define BNXT_MAX_TX_DESC_CNT (TX_DESC_CNT * MAX_TX_PAGES - 1)
667 #define TX_RING(x) (((x) & ~(TX_DESC_CNT - 1)) >> (BNXT_PAGE_SHIFT - 4))
668 #define TX_IDX(x) ((x) & (TX_DESC_CNT - 1))
H A Dbnxt.c2849 max_idx = bp->tx_nr_pages * TX_DESC_CNT; in bnxt_free_tx_skbs()
3956 bp->tx_nr_pages = bnxt_calc_nr_ring_pages(ring_size, TX_DESC_CNT); in bnxt_set_ring_params()
3957 bp->tx_ring_mask = (bp->tx_nr_pages * TX_DESC_CNT) - 1; in bnxt_set_ring_params()
/openbmc/linux/drivers/net/ethernet/broadcom/bnx2x/
H A 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)
H A Dbnx2x_main.c6423 &txdata->tx_desc_ring[TX_DESC_CNT * i - 1].next_bd; in bnx2x_init_tx_ring_one()