Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/net/ethernet/intel/e1000/
De1000_ethtool.c548 struct e1000_rx_ring *rxdr = adapter->rx_ring; in e1000_get_ringparam() local
554 ring->rx_pending = rxdr->count; in e1000_get_ringparam()
565 struct e1000_rx_ring *rxdr, *rx_old; in e1000_set_ringparam() local
586 rxdr = kcalloc(adapter->num_rx_queues, sizeof(struct e1000_rx_ring), in e1000_set_ringparam()
588 if (!rxdr) in e1000_set_ringparam()
592 adapter->rx_ring = rxdr; in e1000_set_ringparam()
594 rxdr->count = max(ring->rx_pending, (u32)E1000_MIN_RXD); in e1000_set_ringparam()
595 rxdr->count = min(rxdr->count, (u32)(mac_type < e1000_82544 ? in e1000_set_ringparam()
597 rxdr->count = ALIGN(rxdr->count, REQ_RX_DESCRIPTOR_MULTIPLE); in e1000_set_ringparam()
606 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-v5.10/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_ethtool.c277 struct pch_gbe_rx_ring *rxdr = adapter->rx_ring; in pch_gbe_get_ringparam() local
281 ring->rx_pending = rxdr->count; in pch_gbe_get_ringparam()
298 struct pch_gbe_rx_ring *rxdr, *rx_old; in pch_gbe_set_ringparam() local
317 rxdr = kzalloc(rx_ring_size, GFP_KERNEL); in pch_gbe_set_ringparam()
318 if (!rxdr) { in pch_gbe_set_ringparam()
323 adapter->rx_ring = rxdr; in pch_gbe_set_ringparam()
325 rxdr->count = in pch_gbe_set_ringparam()
327 rxdr->count = roundup(rxdr->count, PCH_GBE_RX_DESC_MULTIPLE); in pch_gbe_set_ringparam()
345 adapter->rx_ring = rxdr; in pch_gbe_set_ringparam()
356 kfree(rxdr); in pch_gbe_set_ringparam()
Dpch_gbe.h609 struct pch_gbe_rx_ring *rxdr);
/Linux-v5.10/drivers/net/ethernet/intel/ixgb/
Dixgb_ethtool.c471 struct ixgb_desc_ring *rxdr = &adapter->rx_ring; in ixgb_get_ringparam() local
475 ring->rx_pending = rxdr->count; in ixgb_get_ringparam()
485 struct ixgb_desc_ring *rxdr = &adapter->rx_ring; in ixgb_set_ringparam() local
498 rxdr->count = max(ring->rx_pending,(u32)MIN_RXD); in ixgb_set_ringparam()
499 rxdr->count = min(rxdr->count,(u32)MAX_RXD); in ixgb_set_ringparam()
500 rxdr->count = ALIGN(rxdr->count, IXGB_REQ_RX_DESCRIPTOR_MULTIPLE); in ixgb_set_ringparam()
Dixgb_main.c748 struct ixgb_desc_ring *rxdr = &adapter->rx_ring; in ixgb_setup_rx_resources() local
752 size = sizeof(struct ixgb_buffer) * rxdr->count; in ixgb_setup_rx_resources()
753 rxdr->buffer_info = vzalloc(size); in ixgb_setup_rx_resources()
754 if (!rxdr->buffer_info) in ixgb_setup_rx_resources()
759 rxdr->size = rxdr->count * sizeof(struct ixgb_rx_desc); in ixgb_setup_rx_resources()
760 rxdr->size = ALIGN(rxdr->size, 4096); in ixgb_setup_rx_resources()
762 rxdr->desc = dma_alloc_coherent(&pdev->dev, rxdr->size, &rxdr->dma, in ixgb_setup_rx_resources()
765 if (!rxdr->desc) { in ixgb_setup_rx_resources()
766 vfree(rxdr->buffer_info); in ixgb_setup_rx_resources()
770 rxdr->next_to_clean = 0; in ixgb_setup_rx_resources()
[all …]
/Linux-v5.10/drivers/net/ethernet/atheros/atlx/
Datl1.c3445 struct atl1_rfd_ring *rxdr = &adapter->rfd_ring; in atl1_get_ringparam() local
3449 ring->rx_pending = rxdr->count; in atl1_get_ringparam()