Searched refs:txdr (Results 1 – 7 of 7) sorted by relevance
/drivers/net/ethernet/intel/e1000/ |
D | e1000_ethtool.c | 570 struct e1000_tx_ring *txdr = adapter->tx_ring; in e1000_get_ringparam() local 578 ring->tx_pending = txdr->count; in e1000_get_ringparam() 587 struct e1000_tx_ring *txdr, *tx_old; in e1000_set_ringparam() local 604 txdr = kcalloc(adapter->num_tx_queues, sizeof(struct e1000_tx_ring), in e1000_set_ringparam() 606 if (!txdr) in e1000_set_ringparam() 614 adapter->tx_ring = txdr; in e1000_set_ringparam() 621 txdr->count = max(ring->tx_pending, (u32)E1000_MIN_TXD); in e1000_set_ringparam() 622 txdr->count = min(txdr->count, (u32)(mac_type < e1000_82544 ? in e1000_set_ringparam() 624 txdr->count = ALIGN(txdr->count, REQ_TX_DESCRIPTOR_MULTIPLE); in e1000_set_ringparam() 627 txdr[i].count = txdr->count; in e1000_set_ringparam() [all …]
|
D | e1000_main.c | 102 struct e1000_tx_ring *txdr); 1509 struct e1000_tx_ring *txdr) in e1000_setup_tx_resources() argument 1514 size = sizeof(struct e1000_tx_buffer) * txdr->count; in e1000_setup_tx_resources() 1515 txdr->buffer_info = vzalloc(size); in e1000_setup_tx_resources() 1516 if (!txdr->buffer_info) in e1000_setup_tx_resources() 1521 txdr->size = txdr->count * sizeof(struct e1000_tx_desc); in e1000_setup_tx_resources() 1522 txdr->size = ALIGN(txdr->size, 4096); in e1000_setup_tx_resources() 1524 txdr->desc = dma_alloc_coherent(&pdev->dev, txdr->size, &txdr->dma, in e1000_setup_tx_resources() 1526 if (!txdr->desc) { in e1000_setup_tx_resources() 1528 vfree(txdr->buffer_info); in e1000_setup_tx_resources() [all …]
|
/drivers/net/ethernet/oki-semi/pch_gbe/ |
D | pch_gbe_ethtool.c | 269 struct pch_gbe_tx_ring *txdr = adapter->tx_ring; in pch_gbe_get_ringparam() local 275 ring->tx_pending = txdr->count; in pch_gbe_get_ringparam() 290 struct pch_gbe_tx_ring *txdr, *tx_old; in pch_gbe_set_ringparam() local 305 txdr = kzalloc(tx_ring_size, GFP_KERNEL); in pch_gbe_set_ringparam() 306 if (!txdr) { in pch_gbe_set_ringparam() 315 adapter->tx_ring = txdr; in pch_gbe_set_ringparam() 322 txdr->count = in pch_gbe_set_ringparam() 324 txdr->count = roundup(txdr->count, PCH_GBE_TX_DESC_MULTIPLE); in pch_gbe_set_ringparam() 344 adapter->tx_ring = txdr; in pch_gbe_set_ringparam() 351 adapter->tx_ring = txdr; in pch_gbe_set_ringparam() [all …]
|
D | pch_gbe.h | 658 struct pch_gbe_tx_ring *txdr);
|
/drivers/net/ethernet/intel/ixgb/ |
D | ixgb_ethtool.c | 489 struct ixgb_desc_ring *txdr = &adapter->tx_ring; in ixgb_get_ringparam() local 495 ring->tx_pending = txdr->count; in ixgb_get_ringparam() 503 struct ixgb_desc_ring *txdr = &adapter->tx_ring; in ixgb_set_ringparam() local 521 txdr->count = max(ring->tx_pending,(u32)MIN_TXD); in ixgb_set_ringparam() 522 txdr->count = min(txdr->count,(u32)MAX_TXD); in ixgb_set_ringparam() 523 txdr->count = ALIGN(txdr->count, IXGB_REQ_TX_DESCRIPTOR_MULTIPLE); in ixgb_set_ringparam()
|
D | ixgb_main.c | 702 struct ixgb_desc_ring *txdr = &adapter->tx_ring; in ixgb_setup_tx_resources() local 706 size = sizeof(struct ixgb_buffer) * txdr->count; in ixgb_setup_tx_resources() 707 txdr->buffer_info = vzalloc(size); in ixgb_setup_tx_resources() 708 if (!txdr->buffer_info) in ixgb_setup_tx_resources() 713 txdr->size = txdr->count * sizeof(struct ixgb_tx_desc); in ixgb_setup_tx_resources() 714 txdr->size = ALIGN(txdr->size, 4096); in ixgb_setup_tx_resources() 716 txdr->desc = dma_zalloc_coherent(&pdev->dev, txdr->size, &txdr->dma, in ixgb_setup_tx_resources() 718 if (!txdr->desc) { in ixgb_setup_tx_resources() 719 vfree(txdr->buffer_info); in ixgb_setup_tx_resources() 723 txdr->next_to_use = 0; in ixgb_setup_tx_resources() [all …]
|
/drivers/net/ethernet/atheros/atlx/ |
D | atl1.c | 3488 struct atl1_tpd_ring *txdr = &adapter->tpd_ring; in atl1_get_ringparam() local 3494 ring->tx_pending = txdr->count; in atl1_get_ringparam()
|