Searched refs:rxdr (Results 1 – 7 of 7) sorted by relevance
/drivers/net/ethernet/intel/e1000/ |
D | e1000_ethtool.c | 571 struct e1000_rx_ring *rxdr = adapter->rx_ring; in e1000_get_ringparam() local 577 ring->rx_pending = rxdr->count; in e1000_get_ringparam() 588 struct e1000_rx_ring *rxdr, *rx_old; in e1000_set_ringparam() local 609 rxdr = kcalloc(adapter->num_rx_queues, sizeof(struct e1000_rx_ring), in e1000_set_ringparam() 611 if (!rxdr) in e1000_set_ringparam() 615 adapter->rx_ring = rxdr; in e1000_set_ringparam() 617 rxdr->count = max(ring->rx_pending, (u32)E1000_MIN_RXD); in e1000_set_ringparam() 618 rxdr->count = min(rxdr->count, (u32)(mac_type < e1000_82544 ? in e1000_set_ringparam() 620 rxdr->count = ALIGN(rxdr->count, REQ_RX_DESCRIPTOR_MULTIPLE); in e1000_set_ringparam() 629 rxdr[i].count = rxdr->count; in e1000_set_ringparam() [all …]
|
D | e1000_main.c | 104 struct e1000_rx_ring *rxdr); 1699 struct e1000_rx_ring *rxdr) in e1000_setup_rx_resources() argument 1704 size = sizeof(struct e1000_rx_buffer) * rxdr->count; in e1000_setup_rx_resources() 1705 rxdr->buffer_info = vzalloc(size); in e1000_setup_rx_resources() 1706 if (!rxdr->buffer_info) in e1000_setup_rx_resources() 1713 rxdr->size = rxdr->count * desc_len; in e1000_setup_rx_resources() 1714 rxdr->size = ALIGN(rxdr->size, 4096); in e1000_setup_rx_resources() 1716 rxdr->desc = dma_alloc_coherent(&pdev->dev, rxdr->size, &rxdr->dma, in e1000_setup_rx_resources() 1718 if (!rxdr->desc) { in e1000_setup_rx_resources() 1720 vfree(rxdr->buffer_info); in e1000_setup_rx_resources() [all …]
|
/drivers/net/ethernet/oki-semi/pch_gbe/ |
D | pch_gbe_ethtool.c | 270 struct pch_gbe_rx_ring *rxdr = adapter->rx_ring; in pch_gbe_get_ringparam() local 274 ring->rx_pending = rxdr->count; in pch_gbe_get_ringparam() 291 struct pch_gbe_rx_ring *rxdr, *rx_old; in pch_gbe_set_ringparam() local 310 rxdr = kzalloc(rx_ring_size, GFP_KERNEL); in pch_gbe_set_ringparam() 311 if (!rxdr) { in pch_gbe_set_ringparam() 316 adapter->rx_ring = rxdr; in pch_gbe_set_ringparam() 318 rxdr->count = in pch_gbe_set_ringparam() 320 rxdr->count = roundup(rxdr->count, PCH_GBE_RX_DESC_MULTIPLE); in pch_gbe_set_ringparam() 343 adapter->rx_ring = rxdr; in pch_gbe_set_ringparam() 350 adapter->rx_ring = rxdr; in pch_gbe_set_ringparam() [all …]
|
D | pch_gbe.h | 660 struct pch_gbe_rx_ring *rxdr);
|
/drivers/net/ethernet/intel/ixgb/ |
D | ixgb_ethtool.c | 490 struct ixgb_desc_ring *rxdr = &adapter->rx_ring; in ixgb_get_ringparam() local 494 ring->rx_pending = rxdr->count; in ixgb_get_ringparam() 504 struct ixgb_desc_ring *rxdr = &adapter->rx_ring; in ixgb_set_ringparam() local 517 rxdr->count = max(ring->rx_pending,(u32)MIN_RXD); in ixgb_set_ringparam() 518 rxdr->count = min(rxdr->count,(u32)MAX_RXD); in ixgb_set_ringparam() 519 rxdr->count = ALIGN(rxdr->count, IXGB_REQ_RX_DESCRIPTOR_MULTIPLE); in ixgb_set_ringparam()
|
D | ixgb_main.c | 785 struct ixgb_desc_ring *rxdr = &adapter->rx_ring; in ixgb_setup_rx_resources() local 789 size = sizeof(struct ixgb_buffer) * rxdr->count; in ixgb_setup_rx_resources() 790 rxdr->buffer_info = vzalloc(size); in ixgb_setup_rx_resources() 791 if (!rxdr->buffer_info) in ixgb_setup_rx_resources() 796 rxdr->size = rxdr->count * sizeof(struct ixgb_rx_desc); in ixgb_setup_rx_resources() 797 rxdr->size = ALIGN(rxdr->size, 4096); in ixgb_setup_rx_resources() 799 rxdr->desc = dma_alloc_coherent(&pdev->dev, rxdr->size, &rxdr->dma, in ixgb_setup_rx_resources() 802 if (!rxdr->desc) { in ixgb_setup_rx_resources() 803 vfree(rxdr->buffer_info); in ixgb_setup_rx_resources() 806 memset(rxdr->desc, 0, rxdr->size); in ixgb_setup_rx_resources() [all …]
|
/drivers/net/ethernet/atheros/atlx/ |
D | atl1.c | 3489 struct atl1_rfd_ring *rxdr = &adapter->rfd_ring; in atl1_get_ringparam() local 3493 ring->rx_pending = rxdr->count; in atl1_get_ringparam()
|