Searched refs:txdr (Results 1 – 7 of 7) sorted by relevance
/linux-6.1.9/drivers/net/ethernet/intel/e1000/ |
D | e1000_ethtool.c | 549 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 …]
|
D | e1000_main.c | 75 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-6.1.9/drivers/net/ethernet/oki-semi/pch_gbe/ |
D | pch_gbe_ethtool.c | 282 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()
|
D | pch_gbe.h | 605 struct pch_gbe_tx_ring *txdr);
|
/linux-6.1.9/drivers/net/ethernet/intel/ixgb/ |
D | ixgb_ethtool.c | 472 struct ixgb_desc_ring *txdr = &adapter->tx_ring; in ixgb_get_ringparam() local 478 ring->tx_pending = txdr->count; in ixgb_get_ringparam() 488 struct ixgb_desc_ring *txdr = &adapter->tx_ring; in ixgb_set_ringparam() local 506 txdr->count = max(ring->tx_pending,(u32)MIN_TXD); in ixgb_set_ringparam() 507 txdr->count = min(txdr->count,(u32)MAX_TXD); in ixgb_set_ringparam() 508 txdr->count = ALIGN(txdr->count, IXGB_REQ_TX_DESCRIPTOR_MULTIPLE); in ixgb_set_ringparam()
|
D | ixgb_main.c | 658 struct ixgb_desc_ring *txdr = &adapter->tx_ring; in ixgb_setup_tx_resources() local 662 size = sizeof(struct ixgb_buffer) * txdr->count; in ixgb_setup_tx_resources() 663 txdr->buffer_info = vzalloc(size); in ixgb_setup_tx_resources() 664 if (!txdr->buffer_info) in ixgb_setup_tx_resources() 669 txdr->size = txdr->count * sizeof(struct ixgb_tx_desc); in ixgb_setup_tx_resources() 670 txdr->size = ALIGN(txdr->size, 4096); in ixgb_setup_tx_resources() 672 txdr->desc = dma_alloc_coherent(&pdev->dev, txdr->size, &txdr->dma, in ixgb_setup_tx_resources() 674 if (!txdr->desc) { in ixgb_setup_tx_resources() 675 vfree(txdr->buffer_info); in ixgb_setup_tx_resources() 679 txdr->next_to_use = 0; in ixgb_setup_tx_resources() [all …]
|
/linux-6.1.9/drivers/net/ethernet/atheros/atlx/ |
D | atl1.c | 3445 struct atl1_tpd_ring *txdr = &adapter->tpd_ring; in atl1_get_ringparam() local 3451 ring->tx_pending = txdr->count; in atl1_get_ringparam()
|