Home
last modified time | relevance | path

Searched refs:txdr (Results 1 – 5 of 5) sorted by relevance

/Linux-v6.6/drivers/net/ethernet/intel/e1000/
De1000_ethtool.c549 struct e1000_tx_ring *txdr = adapter->tx_ring; in e1000_get_ringparam() local
557 ring->tx_pending = txdr->count; in e1000_get_ringparam()
568 struct e1000_tx_ring *txdr, *tx_old; in e1000_set_ringparam() local
585 txdr = kcalloc(adapter->num_tx_queues, sizeof(struct e1000_tx_ring), in e1000_set_ringparam()
587 if (!txdr) in e1000_set_ringparam()
595 adapter->tx_ring = txdr; in e1000_set_ringparam()
602 txdr->count = max(ring->tx_pending, (u32)E1000_MIN_TXD); in e1000_set_ringparam()
603 txdr->count = min(txdr->count, (u32)(mac_type < e1000_82544 ? in e1000_set_ringparam()
605 txdr->count = ALIGN(txdr->count, REQ_TX_DESCRIPTOR_MULTIPLE); in e1000_set_ringparam()
608 txdr[i].count = txdr->count; in e1000_set_ringparam()
[all …]
De1000_main.c75 struct e1000_tx_ring *txdr);
1499 struct e1000_tx_ring *txdr) in e1000_setup_tx_resources() argument
1504 size = sizeof(struct e1000_tx_buffer) * txdr->count; in e1000_setup_tx_resources()
1505 txdr->buffer_info = vzalloc(size); in e1000_setup_tx_resources()
1506 if (!txdr->buffer_info) in e1000_setup_tx_resources()
1511 txdr->size = txdr->count * sizeof(struct e1000_tx_desc); in e1000_setup_tx_resources()
1512 txdr->size = ALIGN(txdr->size, 4096); in e1000_setup_tx_resources()
1514 txdr->desc = dma_alloc_coherent(&pdev->dev, txdr->size, &txdr->dma, in e1000_setup_tx_resources()
1516 if (!txdr->desc) { in e1000_setup_tx_resources()
1518 vfree(txdr->buffer_info); in e1000_setup_tx_resources()
[all …]
/Linux-v6.6/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_ethtool.c282 struct pch_gbe_tx_ring *txdr = adapter->tx_ring; in pch_gbe_get_ringparam() local
288 ring->tx_pending = txdr->count; in pch_gbe_get_ringparam()
307 struct pch_gbe_tx_ring *txdr, *tx_old; in pch_gbe_set_ringparam() local
322 txdr = kzalloc(tx_ring_size, GFP_KERNEL); in pch_gbe_set_ringparam()
323 if (!txdr) { in pch_gbe_set_ringparam()
332 adapter->tx_ring = txdr; in pch_gbe_set_ringparam()
339 txdr->count = in pch_gbe_set_ringparam()
341 txdr->count = roundup(txdr->count, PCH_GBE_TX_DESC_MULTIPLE); in pch_gbe_set_ringparam()
356 adapter->tx_ring = txdr; in pch_gbe_set_ringparam()
368 kfree(txdr); in pch_gbe_set_ringparam()
Dpch_gbe.h605 struct pch_gbe_tx_ring *txdr);
/Linux-v6.6/drivers/net/ethernet/atheros/atlx/
Datl1.c3448 struct atl1_tpd_ring *txdr = &adapter->tpd_ring; in atl1_get_ringparam() local
3454 ring->tx_pending = txdr->count; in atl1_get_ringparam()