Home
last modified time | relevance | path

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

/drivers/net/ethernet/intel/e1000/
De1000_ethtool.c574 struct e1000_tx_ring *txdr = adapter->tx_ring; in e1000_get_ringparam() local
582 ring->tx_pending = txdr->count; in e1000_get_ringparam()
591 struct e1000_tx_ring *txdr, *tx_old; in e1000_set_ringparam() local
608 txdr = kcalloc(adapter->num_tx_queues, sizeof(struct e1000_tx_ring), in e1000_set_ringparam()
610 if (!txdr) in e1000_set_ringparam()
618 adapter->tx_ring = txdr; in e1000_set_ringparam()
626 txdr->count = max(ring->tx_pending,(u32)E1000_MIN_TXD); in e1000_set_ringparam()
627 txdr->count = min(txdr->count,(u32)(mac_type < e1000_82544 ? in e1000_set_ringparam()
629 txdr->count = ALIGN(txdr->count, REQ_TX_DESCRIPTOR_MULTIPLE); in e1000_set_ringparam()
632 txdr[i].count = txdr->count; in e1000_set_ringparam()
[all …]
De1000_main.c102 struct e1000_tx_ring *txdr);
1503 struct e1000_tx_ring *txdr) in e1000_setup_tx_resources() argument
1508 size = sizeof(struct e1000_buffer) * txdr->count; in e1000_setup_tx_resources()
1509 txdr->buffer_info = vzalloc(size); in e1000_setup_tx_resources()
1510 if (!txdr->buffer_info) in e1000_setup_tx_resources()
1515 txdr->size = txdr->count * sizeof(struct e1000_tx_desc); in e1000_setup_tx_resources()
1516 txdr->size = ALIGN(txdr->size, 4096); in e1000_setup_tx_resources()
1518 txdr->desc = dma_alloc_coherent(&pdev->dev, txdr->size, &txdr->dma, in e1000_setup_tx_resources()
1520 if (!txdr->desc) { in e1000_setup_tx_resources()
1522 vfree(txdr->buffer_info); in e1000_setup_tx_resources()
[all …]
/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_ethtool.c270 struct pch_gbe_tx_ring *txdr = adapter->tx_ring; in pch_gbe_get_ringparam() local
276 ring->tx_pending = txdr->count; in pch_gbe_get_ringparam()
291 struct pch_gbe_tx_ring *txdr, *tx_old; in pch_gbe_set_ringparam() local
306 txdr = kzalloc(tx_ring_size, GFP_KERNEL); in pch_gbe_set_ringparam()
307 if (!txdr) { in pch_gbe_set_ringparam()
316 adapter->tx_ring = txdr; in pch_gbe_set_ringparam()
323 txdr->count = in pch_gbe_set_ringparam()
325 txdr->count = roundup(txdr->count, PCH_GBE_TX_DESC_MULTIPLE); in pch_gbe_set_ringparam()
345 adapter->tx_ring = txdr; in pch_gbe_set_ringparam()
352 adapter->tx_ring = txdr; in pch_gbe_set_ringparam()
[all …]
Dpch_gbe.h644 struct pch_gbe_tx_ring *txdr);
/drivers/net/ethernet/intel/ixgb/
Dixgb_ethtool.c492 struct ixgb_desc_ring *txdr = &adapter->tx_ring; in ixgb_get_ringparam() local
498 ring->tx_pending = txdr->count; in ixgb_get_ringparam()
506 struct ixgb_desc_ring *txdr = &adapter->tx_ring; in ixgb_set_ringparam() local
524 txdr->count = max(ring->tx_pending,(u32)MIN_TXD); in ixgb_set_ringparam()
525 txdr->count = min(txdr->count,(u32)MAX_TXD); in ixgb_set_ringparam()
526 txdr->count = ALIGN(txdr->count, IXGB_REQ_TX_DESCRIPTOR_MULTIPLE); in ixgb_set_ringparam()
Dixgb_main.c707 struct ixgb_desc_ring *txdr = &adapter->tx_ring; in ixgb_setup_tx_resources() local
711 size = sizeof(struct ixgb_buffer) * txdr->count; in ixgb_setup_tx_resources()
712 txdr->buffer_info = vzalloc(size); in ixgb_setup_tx_resources()
713 if (!txdr->buffer_info) in ixgb_setup_tx_resources()
718 txdr->size = txdr->count * sizeof(struct ixgb_tx_desc); in ixgb_setup_tx_resources()
719 txdr->size = ALIGN(txdr->size, 4096); in ixgb_setup_tx_resources()
721 txdr->desc = dma_alloc_coherent(&pdev->dev, txdr->size, &txdr->dma, in ixgb_setup_tx_resources()
723 if (!txdr->desc) { in ixgb_setup_tx_resources()
724 vfree(txdr->buffer_info); in ixgb_setup_tx_resources()
728 txdr->next_to_use = 0; in ixgb_setup_tx_resources()
[all …]
/drivers/net/ethernet/atheros/atlx/
Datl1.c3508 struct atl1_tpd_ring *txdr = &adapter->tpd_ring; in atl1_get_ringparam() local
3514 ring->tx_pending = txdr->count; in atl1_get_ringparam()