Home
last modified time | relevance | path

Searched refs:ering (Results 1 – 15 of 15) sorted by relevance

/drivers/net/ethernet/pasemi/
Dpasemi_mac_ethtool.c111 struct ethtool_ringparam *ering) in pasemi_mac_ethtool_get_ringparam() argument
115 ering->tx_max_pending = TX_RING_SIZE/2; in pasemi_mac_ethtool_get_ringparam()
116 ering->tx_pending = RING_USED(mac->tx)/2; in pasemi_mac_ethtool_get_ringparam()
117 ering->rx_max_pending = RX_RING_SIZE/4; in pasemi_mac_ethtool_get_ringparam()
118 ering->rx_pending = RING_USED(mac->rx)/4; in pasemi_mac_ethtool_get_ringparam()
/drivers/net/ethernet/toshiba/
Dspider_net_ethtool.c122 struct ethtool_ringparam *ering) in spider_net_ethtool_get_ringparam() argument
126 ering->tx_max_pending = SPIDER_NET_TX_DESCRIPTORS_MAX; in spider_net_ethtool_get_ringparam()
127 ering->tx_pending = card->tx_chain.num_desc; in spider_net_ethtool_get_ringparam()
128 ering->rx_max_pending = SPIDER_NET_RX_DESCRIPTORS_MAX; in spider_net_ethtool_get_ringparam()
129 ering->rx_pending = card->rx_chain.num_desc; in spider_net_ethtool_get_ringparam()
/drivers/ata/
Dlibata-eh.c376 static void ata_ering_record(struct ata_ering *ering, unsigned int eflags, in ata_ering_record() argument
383 ering->cursor++; in ata_ering_record()
384 ering->cursor %= ATA_ERING_SIZE; in ata_ering_record()
386 ent = &ering->ring[ering->cursor]; in ata_ering_record()
392 static struct ata_ering_entry *ata_ering_top(struct ata_ering *ering) in ata_ering_top() argument
394 struct ata_ering_entry *ent = &ering->ring[ering->cursor]; in ata_ering_top()
401 int ata_ering_map(struct ata_ering *ering, in ata_ering_map() argument
408 idx = ering->cursor; in ata_ering_map()
410 ent = &ering->ring[idx]; in ata_ering_map()
417 } while (idx != ering->cursor); in ata_ering_map()
[all …]
Dlibata-transport.c513 ata_ering_map(&ata_dev->ering, ata_show_ering, &arg); in show_ata_dev_ering()
518 static DEVICE_ATTR(ering, S_IRUGO, show_ata_dev_ering, NULL);
728 SETUP_DEV_ATTRIBUTE(ering); in ata_attach_transport()
Dlibata.h184 extern int ata_ering_map(struct ata_ering *ering,
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_ethtool.c1789 struct ethtool_ringparam *ering) in bnx2x_get_ringparam() argument
1793 ering->rx_max_pending = MAX_RX_AVAIL; in bnx2x_get_ringparam()
1796 ering->rx_pending = bp->rx_ring_size; in bnx2x_get_ringparam()
1798 ering->rx_pending = MAX_RX_AVAIL; in bnx2x_get_ringparam()
1800 ering->tx_max_pending = IS_MF_FCOE_AFEX(bp) ? 0 : MAX_TX_AVAIL; in bnx2x_get_ringparam()
1801 ering->tx_pending = bp->tx_ring_size; in bnx2x_get_ringparam()
1805 struct ethtool_ringparam *ering) in bnx2x_set_ringparam() argument
1811 ering->rx_pending, ering->tx_pending); in bnx2x_set_ringparam()
1819 if ((ering->rx_pending > MAX_RX_AVAIL) || in bnx2x_set_ringparam()
1820 (ering->rx_pending < (bp->disable_tpa ? MIN_RX_SIZE_NONTPA : in bnx2x_set_ringparam()
[all …]
/drivers/net/ethernet/broadcom/
Dbcm63xx_enet.c1389 struct ethtool_ringparam *ering) in bcm_enet_get_ringparam() argument
1396 ering->rx_max_pending = 8192; in bcm_enet_get_ringparam()
1397 ering->tx_max_pending = 8192; in bcm_enet_get_ringparam()
1398 ering->rx_pending = priv->rx_ring_size; in bcm_enet_get_ringparam()
1399 ering->tx_pending = priv->tx_ring_size; in bcm_enet_get_ringparam()
1403 struct ethtool_ringparam *ering) in bcm_enet_set_ringparam() argument
1416 priv->rx_ring_size = ering->rx_pending; in bcm_enet_set_ringparam()
1417 priv->tx_ring_size = ering->tx_pending; in bcm_enet_set_ringparam()
Db44.c1897 struct ethtool_ringparam *ering) in b44_get_ringparam() argument
1901 ering->rx_max_pending = B44_RX_RING_SIZE - 1; in b44_get_ringparam()
1902 ering->rx_pending = bp->rx_pending; in b44_get_ringparam()
1908 struct ethtool_ringparam *ering) in b44_set_ringparam() argument
1912 if ((ering->rx_pending > B44_RX_RING_SIZE - 1) || in b44_set_ringparam()
1913 (ering->rx_mini_pending != 0) || in b44_set_ringparam()
1914 (ering->rx_jumbo_pending != 0) || in b44_set_ringparam()
1915 (ering->tx_pending > B44_TX_RING_SIZE - 1)) in b44_set_ringparam()
1920 bp->rx_pending = ering->rx_pending; in b44_set_ringparam()
1921 bp->tx_pending = ering->tx_pending; in b44_set_ringparam()
Dbnx2.c7258 bnx2_get_ringparam(struct net_device *dev, struct ethtool_ringparam *ering) in bnx2_get_ringparam() argument
7262 ering->rx_max_pending = BNX2_MAX_TOTAL_RX_DESC_CNT; in bnx2_get_ringparam()
7263 ering->rx_jumbo_max_pending = BNX2_MAX_TOTAL_RX_PG_DESC_CNT; in bnx2_get_ringparam()
7265 ering->rx_pending = bp->rx_ring_size; in bnx2_get_ringparam()
7266 ering->rx_jumbo_pending = bp->rx_pg_ring_size; in bnx2_get_ringparam()
7268 ering->tx_max_pending = BNX2_MAX_TX_DESC_CNT; in bnx2_get_ringparam()
7269 ering->tx_pending = bp->tx_ring_size; in bnx2_get_ringparam()
7329 bnx2_set_ringparam(struct net_device *dev, struct ethtool_ringparam *ering) in bnx2_set_ringparam() argument
7334 if ((ering->rx_pending > BNX2_MAX_TOTAL_RX_DESC_CNT) || in bnx2_set_ringparam()
7335 (ering->tx_pending > BNX2_MAX_TX_DESC_CNT) || in bnx2_set_ringparam()
[all …]
Dtg3.c12016 static void tg3_get_ringparam(struct net_device *dev, struct ethtool_ringparam *ering) in tg3_get_ringparam() argument
12020 ering->rx_max_pending = tp->rx_std_ring_mask; in tg3_get_ringparam()
12022 ering->rx_jumbo_max_pending = tp->rx_jmb_ring_mask; in tg3_get_ringparam()
12024 ering->rx_jumbo_max_pending = 0; in tg3_get_ringparam()
12026 ering->tx_max_pending = TG3_TX_RING_SIZE - 1; in tg3_get_ringparam()
12028 ering->rx_pending = tp->rx_pending; in tg3_get_ringparam()
12030 ering->rx_jumbo_pending = tp->rx_jumbo_pending; in tg3_get_ringparam()
12032 ering->rx_jumbo_pending = 0; in tg3_get_ringparam()
12034 ering->tx_pending = tp->napi[0].tx_pending; in tg3_get_ringparam()
12037 static int tg3_set_ringparam(struct net_device *dev, struct ethtool_ringparam *ering) in tg3_set_ringparam() argument
[all …]
/drivers/net/ethernet/amd/
Dpcnet32.c762 struct ethtool_ringparam *ering) in pcnet32_get_ringparam() argument
766 ering->tx_max_pending = TX_MAX_RING_SIZE; in pcnet32_get_ringparam()
767 ering->tx_pending = lp->tx_ring_size; in pcnet32_get_ringparam()
768 ering->rx_max_pending = RX_MAX_RING_SIZE; in pcnet32_get_ringparam()
769 ering->rx_pending = lp->rx_ring_size; in pcnet32_get_ringparam()
773 struct ethtool_ringparam *ering) in pcnet32_set_ringparam() argument
781 if (ering->rx_mini_pending || ering->rx_jumbo_pending) in pcnet32_set_ringparam()
790 size = min(ering->tx_pending, (unsigned int)TX_MAX_RING_SIZE); in pcnet32_set_ringparam()
802 size = min(ering->rx_pending, (unsigned int)RX_MAX_RING_SIZE); in pcnet32_set_ringparam()
/drivers/net/ethernet/marvell/
Dsky2.c4161 struct ethtool_ringparam *ering) in sky2_get_ringparam() argument
4165 ering->rx_max_pending = RX_MAX_PENDING; in sky2_get_ringparam()
4166 ering->tx_max_pending = TX_MAX_PENDING; in sky2_get_ringparam()
4168 ering->rx_pending = sky2->rx_pending; in sky2_get_ringparam()
4169 ering->tx_pending = sky2->tx_pending; in sky2_get_ringparam()
4173 struct ethtool_ringparam *ering) in sky2_set_ringparam() argument
4177 if (ering->rx_pending > RX_MAX_PENDING || in sky2_set_ringparam()
4178 ering->rx_pending < 8 || in sky2_set_ringparam()
4179 ering->tx_pending < TX_MIN_PENDING || in sky2_set_ringparam()
4180 ering->tx_pending > TX_MAX_PENDING) in sky2_set_ringparam()
[all …]
/drivers/net/ethernet/3com/
Dtyphoon.c1138 typhoon_get_ringparam(struct net_device *dev, struct ethtool_ringparam *ering) in typhoon_get_ringparam() argument
1140 ering->rx_max_pending = RXENT_ENTRIES; in typhoon_get_ringparam()
1141 ering->tx_max_pending = TXLO_ENTRIES - 1; in typhoon_get_ringparam()
1143 ering->rx_pending = RXENT_ENTRIES; in typhoon_get_ringparam()
1144 ering->tx_pending = TXLO_ENTRIES - 1; in typhoon_get_ringparam()
/drivers/net/ethernet/neterion/
Ds2io.c5510 struct ethtool_ringparam *ering) in s2io_ethtool_gringparam() argument
5516 ering->rx_max_pending = MAX_RX_DESC_1; in s2io_ethtool_gringparam()
5517 ering->rx_jumbo_max_pending = MAX_RX_DESC_1; in s2io_ethtool_gringparam()
5519 ering->rx_max_pending = MAX_RX_DESC_2; in s2io_ethtool_gringparam()
5520 ering->rx_jumbo_max_pending = MAX_RX_DESC_2; in s2io_ethtool_gringparam()
5523 ering->tx_max_pending = MAX_TX_DESC; in s2io_ethtool_gringparam()
5527 ering->rx_pending = rx_desc_count; in s2io_ethtool_gringparam()
5528 ering->rx_jumbo_pending = rx_desc_count; in s2io_ethtool_gringparam()
5532 ering->tx_pending = tx_desc_count; in s2io_ethtool_gringparam()
/drivers/gpu/drm/i915/
Di915_irq.c1409 struct drm_i915_error_ring *ering) in i915_gem_record_active_context() argument
1420 ering->ctx = i915_error_object_create_sized(dev_priv, in i915_gem_record_active_context()