Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/net/ethernet/intel/e1000/
De1000_ethtool.c547 struct e1000_tx_ring *txdr = adapter->tx_ring; in e1000_get_ringparam() local
555 ring->tx_pending = txdr->count; in e1000_get_ringparam()
564 struct e1000_tx_ring *txdr, *tx_old; in e1000_set_ringparam() local
581 txdr = kcalloc(adapter->num_tx_queues, sizeof(struct e1000_tx_ring), in e1000_set_ringparam()
583 if (!txdr) in e1000_set_ringparam()
591 adapter->tx_ring = txdr; in e1000_set_ringparam()
598 txdr->count = max(ring->tx_pending, (u32)E1000_MIN_TXD); in e1000_set_ringparam()
599 txdr->count = min(txdr->count, (u32)(mac_type < e1000_82544 ? in e1000_set_ringparam()
601 txdr->count = ALIGN(txdr->count, REQ_TX_DESCRIPTOR_MULTIPLE); in e1000_set_ringparam()
604 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-v5.10/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_ethtool.c276 struct pch_gbe_tx_ring *txdr = adapter->tx_ring; in pch_gbe_get_ringparam() local
282 ring->tx_pending = txdr->count; in pch_gbe_get_ringparam()
297 struct pch_gbe_tx_ring *txdr, *tx_old; in pch_gbe_set_ringparam() local
312 txdr = kzalloc(tx_ring_size, GFP_KERNEL); in pch_gbe_set_ringparam()
313 if (!txdr) { in pch_gbe_set_ringparam()
322 adapter->tx_ring = txdr; in pch_gbe_set_ringparam()
329 txdr->count = in pch_gbe_set_ringparam()
331 txdr->count = roundup(txdr->count, PCH_GBE_TX_DESC_MULTIPLE); in pch_gbe_set_ringparam()
346 adapter->tx_ring = txdr; in pch_gbe_set_ringparam()
358 kfree(txdr); in pch_gbe_set_ringparam()
Dpch_gbe.h607 struct pch_gbe_tx_ring *txdr);
/Linux-v5.10/drivers/net/ethernet/intel/ixgb/
Dixgb_ethtool.c470 struct ixgb_desc_ring *txdr = &adapter->tx_ring; in ixgb_get_ringparam() local
476 ring->tx_pending = txdr->count; in ixgb_get_ringparam()
484 struct ixgb_desc_ring *txdr = &adapter->tx_ring; in ixgb_set_ringparam() local
502 txdr->count = max(ring->tx_pending,(u32)MIN_TXD); in ixgb_set_ringparam()
503 txdr->count = min(txdr->count,(u32)MAX_TXD); in ixgb_set_ringparam()
504 txdr->count = ALIGN(txdr->count, IXGB_REQ_TX_DESCRIPTOR_MULTIPLE); in ixgb_set_ringparam()
Dixgb_main.c665 struct ixgb_desc_ring *txdr = &adapter->tx_ring; in ixgb_setup_tx_resources() local
669 size = sizeof(struct ixgb_buffer) * txdr->count; in ixgb_setup_tx_resources()
670 txdr->buffer_info = vzalloc(size); in ixgb_setup_tx_resources()
671 if (!txdr->buffer_info) in ixgb_setup_tx_resources()
676 txdr->size = txdr->count * sizeof(struct ixgb_tx_desc); in ixgb_setup_tx_resources()
677 txdr->size = ALIGN(txdr->size, 4096); in ixgb_setup_tx_resources()
679 txdr->desc = dma_alloc_coherent(&pdev->dev, txdr->size, &txdr->dma, in ixgb_setup_tx_resources()
681 if (!txdr->desc) { in ixgb_setup_tx_resources()
682 vfree(txdr->buffer_info); in ixgb_setup_tx_resources()
686 txdr->next_to_use = 0; in ixgb_setup_tx_resources()
[all …]
/Linux-v5.10/drivers/net/ethernet/atheros/atlx/
Datl1.c3444 struct atl1_tpd_ring *txdr = &adapter->tpd_ring; in atl1_get_ringparam() local
3450 ring->tx_pending = txdr->count; in atl1_get_ringparam()