Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/net/ethernet/intel/e1000/
De1000_ethtool.c550 struct e1000_rx_ring *rxdr = adapter->rx_ring; in e1000_get_ringparam() local
556 ring->rx_pending = rxdr->count; in e1000_get_ringparam()
569 struct e1000_rx_ring *rxdr, *rx_old; in e1000_set_ringparam() local
590 rxdr = kcalloc(adapter->num_rx_queues, sizeof(struct e1000_rx_ring), in e1000_set_ringparam()
592 if (!rxdr) in e1000_set_ringparam()
596 adapter->rx_ring = rxdr; in e1000_set_ringparam()
598 rxdr->count = max(ring->rx_pending, (u32)E1000_MIN_RXD); in e1000_set_ringparam()
599 rxdr->count = min(rxdr->count, (u32)(mac_type < e1000_82544 ? in e1000_set_ringparam()
601 rxdr->count = ALIGN(rxdr->count, REQ_RX_DESCRIPTOR_MULTIPLE); in e1000_set_ringparam()
610 rxdr[i].count = rxdr->count; in e1000_set_ringparam()
[all …]
De1000_main.c77 struct e1000_rx_ring *rxdr);
1689 struct e1000_rx_ring *rxdr) in e1000_setup_rx_resources() argument
1694 size = sizeof(struct e1000_rx_buffer) * rxdr->count; in e1000_setup_rx_resources()
1695 rxdr->buffer_info = vzalloc(size); in e1000_setup_rx_resources()
1696 if (!rxdr->buffer_info) in e1000_setup_rx_resources()
1703 rxdr->size = rxdr->count * desc_len; in e1000_setup_rx_resources()
1704 rxdr->size = ALIGN(rxdr->size, 4096); in e1000_setup_rx_resources()
1706 rxdr->desc = dma_alloc_coherent(&pdev->dev, rxdr->size, &rxdr->dma, in e1000_setup_rx_resources()
1708 if (!rxdr->desc) { in e1000_setup_rx_resources()
1710 vfree(rxdr->buffer_info); in e1000_setup_rx_resources()
[all …]
/Linux-v6.6/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_ethtool.c283 struct pch_gbe_rx_ring *rxdr = adapter->rx_ring; in pch_gbe_get_ringparam() local
287 ring->rx_pending = rxdr->count; in pch_gbe_get_ringparam()
308 struct pch_gbe_rx_ring *rxdr, *rx_old; in pch_gbe_set_ringparam() local
327 rxdr = kzalloc(rx_ring_size, GFP_KERNEL); in pch_gbe_set_ringparam()
328 if (!rxdr) { in pch_gbe_set_ringparam()
333 adapter->rx_ring = rxdr; in pch_gbe_set_ringparam()
335 rxdr->count = in pch_gbe_set_ringparam()
337 rxdr->count = roundup(rxdr->count, PCH_GBE_RX_DESC_MULTIPLE); in pch_gbe_set_ringparam()
355 adapter->rx_ring = rxdr; in pch_gbe_set_ringparam()
366 kfree(rxdr); in pch_gbe_set_ringparam()
Dpch_gbe.h607 struct pch_gbe_rx_ring *rxdr);
/Linux-v6.6/drivers/net/ethernet/atheros/atlx/
Datl1.c3449 struct atl1_rfd_ring *rxdr = &adapter->rfd_ring; in atl1_get_ringparam() local
3453 ring->rx_pending = rxdr->count; in atl1_get_ringparam()