Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/pasemi/
Dpasemi_mac_ethtool.c72 struct ethtool_ringparam *ering) in pasemi_mac_ethtool_get_ringparam() argument
76 ering->tx_max_pending = TX_RING_SIZE/2; in pasemi_mac_ethtool_get_ringparam()
77 ering->tx_pending = RING_USED(mac->tx)/2; in pasemi_mac_ethtool_get_ringparam()
78 ering->rx_max_pending = RX_RING_SIZE/4; in pasemi_mac_ethtool_get_ringparam()
79 ering->rx_pending = RING_USED(mac->rx)/4; in pasemi_mac_ethtool_get_ringparam()
/Linux-v5.4/drivers/net/ethernet/toshiba/
Dspider_net_ethtool.c113 struct ethtool_ringparam *ering) in spider_net_ethtool_get_ringparam() argument
117 ering->tx_max_pending = SPIDER_NET_TX_DESCRIPTORS_MAX; in spider_net_ethtool_get_ringparam()
118 ering->tx_pending = card->tx_chain.num_desc; in spider_net_ethtool_get_ringparam()
119 ering->rx_max_pending = SPIDER_NET_RX_DESCRIPTORS_MAX; in spider_net_ethtool_get_ringparam()
120 ering->rx_pending = card->rx_chain.num_desc; in spider_net_ethtool_get_ringparam()
/Linux-v5.4/drivers/net/ethernet/ti/
Dcpsw_ethtool.c656 struct ethtool_ringparam *ering) in cpsw_get_ringparam() argument
662 ering->tx_max_pending = cpsw->descs_pool_size - CPSW_MAX_QUEUES; in cpsw_get_ringparam()
663 ering->tx_pending = cpdma_get_num_tx_descs(cpsw->dma); in cpsw_get_ringparam()
664 ering->rx_max_pending = cpsw->descs_pool_size - CPSW_MAX_QUEUES; in cpsw_get_ringparam()
665 ering->rx_pending = cpdma_get_num_rx_descs(cpsw->dma); in cpsw_get_ringparam()
669 struct ethtool_ringparam *ering) in cpsw_set_ringparam() argument
676 if (ering->rx_mini_pending || ering->rx_jumbo_pending || in cpsw_set_ringparam()
677 ering->rx_pending < CPSW_MAX_QUEUES || in cpsw_set_ringparam()
678 ering->rx_pending > (cpsw->descs_pool_size - CPSW_MAX_QUEUES)) in cpsw_set_ringparam()
682 if (ering->rx_pending == descs_num) in cpsw_set_ringparam()
[all …]
Dcpsw_priv.h429 struct ethtool_ringparam *ering);
431 struct ethtool_ringparam *ering);
/Linux-v5.4/drivers/net/ethernet/faraday/
Dftgmac100.c1155 struct ethtool_ringparam *ering) in ftgmac100_get_ringparam() argument
1159 memset(ering, 0, sizeof(*ering)); in ftgmac100_get_ringparam()
1160 ering->rx_max_pending = MAX_RX_QUEUE_ENTRIES; in ftgmac100_get_ringparam()
1161 ering->tx_max_pending = MAX_TX_QUEUE_ENTRIES; in ftgmac100_get_ringparam()
1162 ering->rx_pending = priv->rx_q_entries; in ftgmac100_get_ringparam()
1163 ering->tx_pending = priv->tx_q_entries; in ftgmac100_get_ringparam()
1167 struct ethtool_ringparam *ering) in ftgmac100_set_ringparam() argument
1171 if (ering->rx_pending > MAX_RX_QUEUE_ENTRIES || in ftgmac100_set_ringparam()
1172 ering->tx_pending > MAX_TX_QUEUE_ENTRIES || in ftgmac100_set_ringparam()
1173 ering->rx_pending < MIN_RX_QUEUE_ENTRIES || in ftgmac100_set_ringparam()
[all …]
/Linux-v5.4/drivers/net/ethernet/xilinx/
Dxilinx_axienet_main.c1193 struct ethtool_ringparam *ering) in axienet_ethtools_get_ringparam() argument
1197 ering->rx_max_pending = RX_BD_NUM_MAX; in axienet_ethtools_get_ringparam()
1198 ering->rx_mini_max_pending = 0; in axienet_ethtools_get_ringparam()
1199 ering->rx_jumbo_max_pending = 0; in axienet_ethtools_get_ringparam()
1200 ering->tx_max_pending = TX_BD_NUM_MAX; in axienet_ethtools_get_ringparam()
1201 ering->rx_pending = lp->rx_bd_num; in axienet_ethtools_get_ringparam()
1202 ering->rx_mini_pending = 0; in axienet_ethtools_get_ringparam()
1203 ering->rx_jumbo_pending = 0; in axienet_ethtools_get_ringparam()
1204 ering->tx_pending = lp->tx_bd_num; in axienet_ethtools_get_ringparam()
1208 struct ethtool_ringparam *ering) in axienet_ethtools_set_ringparam() argument
[all …]
/Linux-v5.4/drivers/ata/
Dlibata-eh.c361 static void ata_ering_record(struct ata_ering *ering, unsigned int eflags, in ata_ering_record() argument
368 ering->cursor++; in ata_ering_record()
369 ering->cursor %= ATA_ERING_SIZE; in ata_ering_record()
371 ent = &ering->ring[ering->cursor]; in ata_ering_record()
377 static struct ata_ering_entry *ata_ering_top(struct ata_ering *ering) in ata_ering_top() argument
379 struct ata_ering_entry *ent = &ering->ring[ering->cursor]; in ata_ering_top()
386 int ata_ering_map(struct ata_ering *ering, in ata_ering_map() argument
393 idx = ering->cursor; in ata_ering_map()
395 ent = &ering->ring[idx]; in ata_ering_map()
402 } while (idx != ering->cursor); in ata_ering_map()
[all …]
Dlibata-transport.c519 ata_ering_map(&ata_dev->ering, ata_show_ering, &arg); in show_ata_dev_ering()
524 static DEVICE_ATTR(ering, S_IRUGO, show_ata_dev_ering, NULL);
757 SETUP_DEV_ATTRIBUTE(ering); in ata_attach_transport()
Dlibata.h161 extern int ata_ering_map(struct ata_ering *ering,
/Linux-v5.4/drivers/net/ethernet/broadcom/
Dbcm63xx_enet.c1486 struct ethtool_ringparam *ering) in bcm_enet_get_ringparam() argument
1493 ering->rx_max_pending = 8192; in bcm_enet_get_ringparam()
1494 ering->tx_max_pending = 8192; in bcm_enet_get_ringparam()
1495 ering->rx_pending = priv->rx_ring_size; in bcm_enet_get_ringparam()
1496 ering->tx_pending = priv->tx_ring_size; in bcm_enet_get_ringparam()
1500 struct ethtool_ringparam *ering) in bcm_enet_set_ringparam() argument
1513 priv->rx_ring_size = ering->rx_pending; in bcm_enet_set_ringparam()
1514 priv->tx_ring_size = ering->tx_pending; in bcm_enet_set_ringparam()
2587 struct ethtool_ringparam *ering) in bcm_enetsw_get_ringparam() argument
2594 ering->rx_max_pending = 8192; in bcm_enetsw_get_ringparam()
[all …]
Db44.c1965 struct ethtool_ringparam *ering) in b44_get_ringparam() argument
1969 ering->rx_max_pending = B44_RX_RING_SIZE - 1; in b44_get_ringparam()
1970 ering->rx_pending = bp->rx_pending; in b44_get_ringparam()
1976 struct ethtool_ringparam *ering) in b44_set_ringparam() argument
1980 if ((ering->rx_pending > B44_RX_RING_SIZE - 1) || in b44_set_ringparam()
1981 (ering->rx_mini_pending != 0) || in b44_set_ringparam()
1982 (ering->rx_jumbo_pending != 0) || in b44_set_ringparam()
1983 (ering->tx_pending > B44_TX_RING_SIZE - 1)) in b44_set_ringparam()
1988 bp->rx_pending = ering->rx_pending; in b44_set_ringparam()
1989 bp->tx_pending = ering->tx_pending; in b44_set_ringparam()
Dbnx2.c7323 bnx2_get_ringparam(struct net_device *dev, struct ethtool_ringparam *ering) in bnx2_get_ringparam() argument
7327 ering->rx_max_pending = BNX2_MAX_TOTAL_RX_DESC_CNT; in bnx2_get_ringparam()
7328 ering->rx_jumbo_max_pending = BNX2_MAX_TOTAL_RX_PG_DESC_CNT; in bnx2_get_ringparam()
7330 ering->rx_pending = bp->rx_ring_size; in bnx2_get_ringparam()
7331 ering->rx_jumbo_pending = bp->rx_pg_ring_size; in bnx2_get_ringparam()
7333 ering->tx_max_pending = BNX2_MAX_TX_DESC_CNT; in bnx2_get_ringparam()
7334 ering->tx_pending = bp->tx_ring_size; in bnx2_get_ringparam()
7394 bnx2_set_ringparam(struct net_device *dev, struct ethtool_ringparam *ering) in bnx2_set_ringparam() argument
7399 if ((ering->rx_pending > BNX2_MAX_TOTAL_RX_DESC_CNT) || in bnx2_set_ringparam()
7400 (ering->tx_pending > BNX2_MAX_TX_DESC_CNT) || in bnx2_set_ringparam()
[all …]
Dtg3.c12410 static void tg3_get_ringparam(struct net_device *dev, struct ethtool_ringparam *ering) in tg3_get_ringparam() argument
12414 ering->rx_max_pending = tp->rx_std_ring_mask; in tg3_get_ringparam()
12416 ering->rx_jumbo_max_pending = tp->rx_jmb_ring_mask; in tg3_get_ringparam()
12418 ering->rx_jumbo_max_pending = 0; in tg3_get_ringparam()
12420 ering->tx_max_pending = TG3_TX_RING_SIZE - 1; in tg3_get_ringparam()
12422 ering->rx_pending = tp->rx_pending; in tg3_get_ringparam()
12424 ering->rx_jumbo_pending = tp->rx_jumbo_pending; in tg3_get_ringparam()
12426 ering->rx_jumbo_pending = 0; in tg3_get_ringparam()
12428 ering->tx_pending = tp->napi[0].tx_pending; in tg3_get_ringparam()
12431 static int tg3_set_ringparam(struct net_device *dev, struct ethtool_ringparam *ering) in tg3_set_ringparam() argument
[all …]
/Linux-v5.4/drivers/net/ethernet/qlogic/qede/
Dqede_ethtool.c931 struct ethtool_ringparam *ering) in qede_get_ringparam() argument
935 ering->rx_max_pending = NUM_RX_BDS_MAX; in qede_get_ringparam()
936 ering->rx_pending = edev->q_num_rx_buffers; in qede_get_ringparam()
937 ering->tx_max_pending = NUM_TX_BDS_MAX; in qede_get_ringparam()
938 ering->tx_pending = edev->q_num_tx_buffers; in qede_get_ringparam()
942 struct ethtool_ringparam *ering) in qede_set_ringparam() argument
948 ering->rx_pending, ering->tx_pending); in qede_set_ringparam()
951 if (ering->rx_pending > NUM_RX_BDS_MAX || in qede_set_ringparam()
952 ering->rx_pending < NUM_RX_BDS_MIN || in qede_set_ringparam()
953 ering->tx_pending > NUM_TX_BDS_MAX || in qede_set_ringparam()
[all …]
/Linux-v5.4/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_ethtool.c1919 struct ethtool_ringparam *ering) in bnx2x_get_ringparam() argument
1923 ering->rx_max_pending = MAX_RX_AVAIL; in bnx2x_get_ringparam()
1932 ering->rx_pending = bp->rx_ring_size; in bnx2x_get_ringparam()
1934 ering->rx_pending = MAX_RX_AVAIL / BNX2X_NUM_RX_QUEUES(bp); in bnx2x_get_ringparam()
1936 ering->rx_pending = MAX_RX_AVAIL; in bnx2x_get_ringparam()
1938 ering->tx_max_pending = IS_MF_FCOE_AFEX(bp) ? 0 : MAX_TX_AVAIL; in bnx2x_get_ringparam()
1939 ering->tx_pending = bp->tx_ring_size; in bnx2x_get_ringparam()
1943 struct ethtool_ringparam *ering) in bnx2x_set_ringparam() argument
1949 ering->rx_pending, ering->tx_pending); in bnx2x_set_ringparam()
1963 if ((ering->rx_pending > MAX_RX_AVAIL) || in bnx2x_set_ringparam()
[all …]
/Linux-v5.4/Documentation/ABI/testing/
Dsysfs-ata76 What: /sys/class/ata_device/devX[.Y].Z/ering
103 ering: (RO) Formatted output of the error ring of the
/Linux-v5.4/drivers/net/ethernet/cavium/liquidio/
Dlio_ethtool.c951 struct ethtool_ringparam *ering) in lio_ethtool_get_ringparam() argument
975 ering->tx_pending = tx_pending; in lio_ethtool_get_ringparam()
976 ering->tx_max_pending = tx_max_pending; in lio_ethtool_get_ringparam()
977 ering->rx_pending = rx_pending; in lio_ethtool_get_ringparam()
978 ering->rx_max_pending = rx_max_pending; in lio_ethtool_get_ringparam()
979 ering->rx_mini_pending = 0; in lio_ethtool_get_ringparam()
980 ering->rx_jumbo_pending = 0; in lio_ethtool_get_ringparam()
981 ering->rx_mini_max_pending = 0; in lio_ethtool_get_ringparam()
982 ering->rx_jumbo_max_pending = 0; in lio_ethtool_get_ringparam()
1257 struct ethtool_ringparam *ering) in lio_ethtool_set_ringparam() argument
[all …]
/Linux-v5.4/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c725 struct ethtool_ringparam *ering) in bnxt_get_ringparam() argument
729 ering->rx_max_pending = BNXT_MAX_RX_DESC_CNT; in bnxt_get_ringparam()
730 ering->rx_jumbo_max_pending = BNXT_MAX_RX_JUM_DESC_CNT; in bnxt_get_ringparam()
731 ering->tx_max_pending = BNXT_MAX_TX_DESC_CNT; in bnxt_get_ringparam()
733 ering->rx_pending = bp->rx_ring_size; in bnxt_get_ringparam()
734 ering->rx_jumbo_pending = bp->rx_agg_ring_size; in bnxt_get_ringparam()
735 ering->tx_pending = bp->tx_ring_size; in bnxt_get_ringparam()
739 struct ethtool_ringparam *ering) in bnxt_set_ringparam() argument
743 if ((ering->rx_pending > BNXT_MAX_RX_DESC_CNT) || in bnxt_set_ringparam()
744 (ering->tx_pending > BNXT_MAX_TX_DESC_CNT) || in bnxt_set_ringparam()
[all …]
/Linux-v5.4/drivers/net/ethernet/amd/
Dpcnet32.c875 struct ethtool_ringparam *ering) in pcnet32_get_ringparam() argument
879 ering->tx_max_pending = TX_MAX_RING_SIZE; in pcnet32_get_ringparam()
880 ering->tx_pending = lp->tx_ring_size; in pcnet32_get_ringparam()
881 ering->rx_max_pending = RX_MAX_RING_SIZE; in pcnet32_get_ringparam()
882 ering->rx_pending = lp->rx_ring_size; in pcnet32_get_ringparam()
886 struct ethtool_ringparam *ering) in pcnet32_set_ringparam() argument
894 if (ering->rx_mini_pending || ering->rx_jumbo_pending) in pcnet32_set_ringparam()
903 size = min(ering->tx_pending, (unsigned int)TX_MAX_RING_SIZE); in pcnet32_set_ringparam()
915 size = min(ering->rx_pending, (unsigned int)RX_MAX_RING_SIZE); in pcnet32_set_ringparam()
/Linux-v5.4/drivers/net/ethernet/marvell/
Dsky2.c4146 struct ethtool_ringparam *ering) in sky2_get_ringparam() argument
4150 ering->rx_max_pending = RX_MAX_PENDING; in sky2_get_ringparam()
4151 ering->tx_max_pending = TX_MAX_PENDING; in sky2_get_ringparam()
4153 ering->rx_pending = sky2->rx_pending; in sky2_get_ringparam()
4154 ering->tx_pending = sky2->tx_pending; in sky2_get_ringparam()
4158 struct ethtool_ringparam *ering) in sky2_set_ringparam() argument
4162 if (ering->rx_pending > RX_MAX_PENDING || in sky2_set_ringparam()
4163 ering->rx_pending < 8 || in sky2_set_ringparam()
4164 ering->tx_pending < TX_MIN_PENDING || in sky2_set_ringparam()
4165 ering->tx_pending > TX_MAX_PENDING) in sky2_set_ringparam()
[all …]
/Linux-v5.4/drivers/net/ethernet/3com/
Dtyphoon.c1142 typhoon_get_ringparam(struct net_device *dev, struct ethtool_ringparam *ering) in typhoon_get_ringparam() argument
1144 ering->rx_max_pending = RXENT_ENTRIES; in typhoon_get_ringparam()
1145 ering->tx_max_pending = TXLO_ENTRIES - 1; in typhoon_get_ringparam()
1147 ering->rx_pending = RXENT_ENTRIES; in typhoon_get_ringparam()
1148 ering->tx_pending = TXLO_ENTRIES - 1; in typhoon_get_ringparam()
/Linux-v5.4/include/linux/
Dlibata.h731 struct ata_ering ering; member
738 #define ATA_DEVICE_CLEAR_END offsetof(struct ata_device, ering)
/Linux-v5.4/drivers/net/ethernet/neterion/
Ds2io.c5453 struct ethtool_ringparam *ering) in s2io_ethtool_gringparam() argument
5459 ering->rx_max_pending = MAX_RX_DESC_1; in s2io_ethtool_gringparam()
5460 ering->rx_jumbo_max_pending = MAX_RX_DESC_1; in s2io_ethtool_gringparam()
5462 ering->rx_max_pending = MAX_RX_DESC_2; in s2io_ethtool_gringparam()
5463 ering->rx_jumbo_max_pending = MAX_RX_DESC_2; in s2io_ethtool_gringparam()
5466 ering->tx_max_pending = MAX_TX_DESC; in s2io_ethtool_gringparam()
5470 ering->rx_pending = rx_desc_count; in s2io_ethtool_gringparam()
5471 ering->rx_jumbo_pending = rx_desc_count; in s2io_ethtool_gringparam()
5475 ering->tx_pending = tx_desc_count; in s2io_ethtool_gringparam()