Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/ethernet/ti/
Dcpsw_ethtool.c657 struct ethtool_ringparam *ering) in cpsw_get_ringparam() argument
663 ering->tx_max_pending = cpsw->descs_pool_size - CPSW_MAX_QUEUES; in cpsw_get_ringparam()
664 ering->tx_pending = cpdma_get_num_tx_descs(cpsw->dma); in cpsw_get_ringparam()
665 ering->rx_max_pending = cpsw->descs_pool_size - CPSW_MAX_QUEUES; in cpsw_get_ringparam()
666 ering->rx_pending = cpdma_get_num_rx_descs(cpsw->dma); in cpsw_get_ringparam()
670 struct ethtool_ringparam *ering) in cpsw_set_ringparam() argument
677 if (ering->rx_mini_pending || ering->rx_jumbo_pending || in cpsw_set_ringparam()
678 ering->rx_pending < CPSW_MAX_QUEUES || in cpsw_set_ringparam()
679 ering->rx_pending > (cpsw->descs_pool_size - CPSW_MAX_QUEUES)) in cpsw_set_ringparam()
683 if (ering->rx_pending == descs_num) in cpsw_set_ringparam()
[all …]
Dcpsw_priv.h490 struct ethtool_ringparam *ering);
492 struct ethtool_ringparam *ering);
Dam65-cpsw-ethtool.c457 struct ethtool_ringparam *ering) in am65_cpsw_get_ringparam() argument
462 ering->tx_pending = common->tx_chns[0].descs_num; in am65_cpsw_get_ringparam()
463 ering->rx_pending = common->rx_chns.descs_num; in am65_cpsw_get_ringparam()
/kernel/linux/linux-5.10/drivers/net/ethernet/xilinx/
Dll_temac_main.c1280 struct ethtool_ringparam *ering) in ll_temac_ethtools_get_ringparam() argument
1284 ering->rx_max_pending = RX_BD_NUM_MAX; in ll_temac_ethtools_get_ringparam()
1285 ering->rx_mini_max_pending = 0; in ll_temac_ethtools_get_ringparam()
1286 ering->rx_jumbo_max_pending = 0; in ll_temac_ethtools_get_ringparam()
1287 ering->tx_max_pending = TX_BD_NUM_MAX; in ll_temac_ethtools_get_ringparam()
1288 ering->rx_pending = lp->rx_bd_num; in ll_temac_ethtools_get_ringparam()
1289 ering->rx_mini_pending = 0; in ll_temac_ethtools_get_ringparam()
1290 ering->rx_jumbo_pending = 0; in ll_temac_ethtools_get_ringparam()
1291 ering->tx_pending = lp->tx_bd_num; in ll_temac_ethtools_get_ringparam()
1295 struct ethtool_ringparam *ering) in ll_temac_ethtools_set_ringparam() argument
[all …]
Dxilinx_axienet_main.c1363 struct ethtool_ringparam *ering) in axienet_ethtools_get_ringparam() argument
1367 ering->rx_max_pending = RX_BD_NUM_MAX; in axienet_ethtools_get_ringparam()
1368 ering->rx_mini_max_pending = 0; in axienet_ethtools_get_ringparam()
1369 ering->rx_jumbo_max_pending = 0; in axienet_ethtools_get_ringparam()
1370 ering->tx_max_pending = TX_BD_NUM_MAX; in axienet_ethtools_get_ringparam()
1371 ering->rx_pending = lp->rx_bd_num; in axienet_ethtools_get_ringparam()
1372 ering->rx_mini_pending = 0; in axienet_ethtools_get_ringparam()
1373 ering->rx_jumbo_pending = 0; in axienet_ethtools_get_ringparam()
1374 ering->tx_pending = lp->tx_bd_num; in axienet_ethtools_get_ringparam()
1378 struct ethtool_ringparam *ering) in axienet_ethtools_set_ringparam() argument
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/faraday/
Dftgmac100.c1156 struct ethtool_ringparam *ering) in ftgmac100_get_ringparam() argument
1160 memset(ering, 0, sizeof(*ering)); in ftgmac100_get_ringparam()
1161 ering->rx_max_pending = MAX_RX_QUEUE_ENTRIES; in ftgmac100_get_ringparam()
1162 ering->tx_max_pending = MAX_TX_QUEUE_ENTRIES; in ftgmac100_get_ringparam()
1163 ering->rx_pending = priv->rx_q_entries; in ftgmac100_get_ringparam()
1164 ering->tx_pending = priv->tx_q_entries; in ftgmac100_get_ringparam()
1168 struct ethtool_ringparam *ering) in ftgmac100_set_ringparam() argument
1172 if (ering->rx_pending > MAX_RX_QUEUE_ENTRIES || in ftgmac100_set_ringparam()
1173 ering->tx_pending > MAX_TX_QUEUE_ENTRIES || in ftgmac100_set_ringparam()
1174 ering->rx_pending < MIN_RX_QUEUE_ENTRIES || in ftgmac100_set_ringparam()
[all …]
/kernel/linux/linux-5.10/drivers/ata/
Dlibata-eh.c368 static void ata_ering_record(struct ata_ering *ering, unsigned int eflags, in ata_ering_record() argument
375 ering->cursor++; in ata_ering_record()
376 ering->cursor %= ATA_ERING_SIZE; in ata_ering_record()
378 ent = &ering->ring[ering->cursor]; in ata_ering_record()
384 static struct ata_ering_entry *ata_ering_top(struct ata_ering *ering) in ata_ering_top() argument
386 struct ata_ering_entry *ent = &ering->ring[ering->cursor]; in ata_ering_top()
393 int ata_ering_map(struct ata_ering *ering, in ata_ering_map() argument
400 idx = ering->cursor; in ata_ering_map()
402 ent = &ering->ring[idx]; in ata_ering_map()
409 } 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.h180 extern int ata_ering_map(struct ata_ering *ering,
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/
Dbcm63xx_enet.c1482 struct ethtool_ringparam *ering) in bcm_enet_get_ringparam() argument
1489 ering->rx_max_pending = 8192; in bcm_enet_get_ringparam()
1490 ering->tx_max_pending = 8192; in bcm_enet_get_ringparam()
1491 ering->rx_pending = priv->rx_ring_size; in bcm_enet_get_ringparam()
1492 ering->tx_pending = priv->tx_ring_size; in bcm_enet_get_ringparam()
1496 struct ethtool_ringparam *ering) in bcm_enet_set_ringparam() argument
1509 priv->rx_ring_size = ering->rx_pending; in bcm_enet_set_ringparam()
1510 priv->tx_ring_size = ering->tx_pending; in bcm_enet_set_ringparam()
2580 struct ethtool_ringparam *ering) in bcm_enetsw_get_ringparam() argument
2587 ering->rx_max_pending = 8192; in bcm_enetsw_get_ringparam()
[all …]
Db44.c1962 struct ethtool_ringparam *ering) in b44_get_ringparam() argument
1966 ering->rx_max_pending = B44_RX_RING_SIZE - 1; in b44_get_ringparam()
1967 ering->rx_pending = bp->rx_pending; in b44_get_ringparam()
1973 struct ethtool_ringparam *ering) in b44_set_ringparam() argument
1977 if ((ering->rx_pending > B44_RX_RING_SIZE - 1) || in b44_set_ringparam()
1978 (ering->rx_mini_pending != 0) || in b44_set_ringparam()
1979 (ering->rx_jumbo_pending != 0) || in b44_set_ringparam()
1980 (ering->tx_pending > B44_TX_RING_SIZE - 1)) in b44_set_ringparam()
1985 bp->rx_pending = ering->rx_pending; in b44_set_ringparam()
1986 bp->tx_pending = ering->tx_pending; in b44_set_ringparam()
Dbnx2.c7316 bnx2_get_ringparam(struct net_device *dev, struct ethtool_ringparam *ering) in bnx2_get_ringparam() argument
7320 ering->rx_max_pending = BNX2_MAX_TOTAL_RX_DESC_CNT; in bnx2_get_ringparam()
7321 ering->rx_jumbo_max_pending = BNX2_MAX_TOTAL_RX_PG_DESC_CNT; in bnx2_get_ringparam()
7323 ering->rx_pending = bp->rx_ring_size; in bnx2_get_ringparam()
7324 ering->rx_jumbo_pending = bp->rx_pg_ring_size; in bnx2_get_ringparam()
7326 ering->tx_max_pending = BNX2_MAX_TX_DESC_CNT; in bnx2_get_ringparam()
7327 ering->tx_pending = bp->tx_ring_size; in bnx2_get_ringparam()
7387 bnx2_set_ringparam(struct net_device *dev, struct ethtool_ringparam *ering) in bnx2_set_ringparam() argument
7392 if ((ering->rx_pending > BNX2_MAX_TOTAL_RX_DESC_CNT) || in bnx2_set_ringparam()
7393 (ering->tx_pending > BNX2_MAX_TX_DESC_CNT) || in bnx2_set_ringparam()
[all …]
Dtg3.c12408 static void tg3_get_ringparam(struct net_device *dev, struct ethtool_ringparam *ering) in tg3_get_ringparam() argument
12412 ering->rx_max_pending = tp->rx_std_ring_mask; in tg3_get_ringparam()
12414 ering->rx_jumbo_max_pending = tp->rx_jmb_ring_mask; in tg3_get_ringparam()
12416 ering->rx_jumbo_max_pending = 0; in tg3_get_ringparam()
12418 ering->tx_max_pending = TG3_TX_RING_SIZE - 1; in tg3_get_ringparam()
12420 ering->rx_pending = tp->rx_pending; in tg3_get_ringparam()
12422 ering->rx_jumbo_pending = tp->rx_jumbo_pending; in tg3_get_ringparam()
12424 ering->rx_jumbo_pending = 0; in tg3_get_ringparam()
12426 ering->tx_pending = tp->napi[0].tx_pending; in tg3_get_ringparam()
12429 static int tg3_set_ringparam(struct net_device *dev, struct ethtool_ringparam *ering) in tg3_set_ringparam() argument
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qede/
Dqede_ethtool.c884 struct ethtool_ringparam *ering) in qede_get_ringparam() argument
888 ering->rx_max_pending = NUM_RX_BDS_MAX; in qede_get_ringparam()
889 ering->rx_pending = edev->q_num_rx_buffers; in qede_get_ringparam()
890 ering->tx_max_pending = NUM_TX_BDS_MAX; in qede_get_ringparam()
891 ering->tx_pending = edev->q_num_tx_buffers; in qede_get_ringparam()
895 struct ethtool_ringparam *ering) in qede_set_ringparam() argument
901 ering->rx_pending, ering->tx_pending); in qede_set_ringparam()
904 if (ering->rx_pending > NUM_RX_BDS_MAX || in qede_set_ringparam()
905 ering->rx_pending < NUM_RX_BDS_MIN || in qede_set_ringparam()
906 ering->tx_pending > NUM_TX_BDS_MAX || in qede_set_ringparam()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_ethtool.c1913 struct ethtool_ringparam *ering) in bnx2x_get_ringparam() argument
1917 ering->rx_max_pending = MAX_RX_AVAIL; in bnx2x_get_ringparam()
1926 ering->rx_pending = bp->rx_ring_size; in bnx2x_get_ringparam()
1928 ering->rx_pending = MAX_RX_AVAIL / BNX2X_NUM_RX_QUEUES(bp); in bnx2x_get_ringparam()
1930 ering->rx_pending = MAX_RX_AVAIL; in bnx2x_get_ringparam()
1932 ering->tx_max_pending = IS_MF_FCOE_AFEX(bp) ? 0 : MAX_TX_AVAIL; in bnx2x_get_ringparam()
1933 ering->tx_pending = bp->tx_ring_size; in bnx2x_get_ringparam()
1937 struct ethtool_ringparam *ering) in bnx2x_set_ringparam() argument
1943 ering->rx_pending, ering->tx_pending); in bnx2x_set_ringparam()
1957 if ((ering->rx_pending > MAX_RX_AVAIL) || in bnx2x_set_ringparam()
[all …]
/kernel/linux/linux-5.10/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
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/liquidio/
Dlio_ethtool.c949 struct ethtool_ringparam *ering) in lio_ethtool_get_ringparam() argument
973 ering->tx_pending = tx_pending; in lio_ethtool_get_ringparam()
974 ering->tx_max_pending = tx_max_pending; in lio_ethtool_get_ringparam()
975 ering->rx_pending = rx_pending; in lio_ethtool_get_ringparam()
976 ering->rx_max_pending = rx_max_pending; in lio_ethtool_get_ringparam()
977 ering->rx_mini_pending = 0; in lio_ethtool_get_ringparam()
978 ering->rx_jumbo_pending = 0; in lio_ethtool_get_ringparam()
979 ering->rx_mini_max_pending = 0; in lio_ethtool_get_ringparam()
980 ering->rx_jumbo_max_pending = 0; in lio_ethtool_get_ringparam()
1255 struct ethtool_ringparam *ering) in lio_ethtool_set_ringparam() argument
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c763 struct ethtool_ringparam *ering) in bnxt_get_ringparam() argument
767 ering->rx_max_pending = BNXT_MAX_RX_DESC_CNT; in bnxt_get_ringparam()
768 ering->rx_jumbo_max_pending = BNXT_MAX_RX_JUM_DESC_CNT; in bnxt_get_ringparam()
769 ering->tx_max_pending = BNXT_MAX_TX_DESC_CNT; in bnxt_get_ringparam()
771 ering->rx_pending = bp->rx_ring_size; in bnxt_get_ringparam()
772 ering->rx_jumbo_pending = bp->rx_agg_ring_size; in bnxt_get_ringparam()
773 ering->tx_pending = bp->tx_ring_size; in bnxt_get_ringparam()
777 struct ethtool_ringparam *ering) in bnxt_set_ringparam() argument
781 if ((ering->rx_pending > BNXT_MAX_RX_DESC_CNT) || in bnxt_set_ringparam()
782 (ering->tx_pending > BNXT_MAX_TX_DESC_CNT) || in bnxt_set_ringparam()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/
Dpcnet32.c863 struct ethtool_ringparam *ering) in pcnet32_get_ringparam() argument
867 ering->tx_max_pending = TX_MAX_RING_SIZE; in pcnet32_get_ringparam()
868 ering->tx_pending = lp->tx_ring_size; in pcnet32_get_ringparam()
869 ering->rx_max_pending = RX_MAX_RING_SIZE; in pcnet32_get_ringparam()
870 ering->rx_pending = lp->rx_ring_size; in pcnet32_get_ringparam()
874 struct ethtool_ringparam *ering) in pcnet32_set_ringparam() argument
882 if (ering->rx_mini_pending || ering->rx_jumbo_pending) in pcnet32_set_ringparam()
891 size = min(ering->tx_pending, (unsigned int)TX_MAX_RING_SIZE); in pcnet32_set_ringparam()
903 size = min(ering->rx_pending, (unsigned int)RX_MAX_RING_SIZE); in pcnet32_set_ringparam()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/3com/
Dtyphoon.c1141 typhoon_get_ringparam(struct net_device *dev, struct ethtool_ringparam *ering) in typhoon_get_ringparam() argument
1143 ering->rx_max_pending = RXENT_ENTRIES; in typhoon_get_ringparam()
1144 ering->tx_max_pending = TXLO_ENTRIES - 1; in typhoon_get_ringparam()
1146 ering->rx_pending = RXENT_ENTRIES; in typhoon_get_ringparam()
1147 ering->tx_pending = TXLO_ENTRIES - 1; in typhoon_get_ringparam()
/kernel/linux/linux-5.10/include/linux/
Dlibata.h736 struct ata_ering ering; member
743 #define ATA_DEVICE_CLEAR_END offsetof(struct ata_device, ering)
/kernel/linux/linux-5.10/drivers/net/ethernet/neterion/
Ds2io.c5454 struct ethtool_ringparam *ering) in s2io_ethtool_gringparam() argument
5460 ering->rx_max_pending = MAX_RX_DESC_1; in s2io_ethtool_gringparam()
5461 ering->rx_jumbo_max_pending = MAX_RX_DESC_1; in s2io_ethtool_gringparam()
5463 ering->rx_max_pending = MAX_RX_DESC_2; in s2io_ethtool_gringparam()
5464 ering->rx_jumbo_max_pending = MAX_RX_DESC_2; in s2io_ethtool_gringparam()
5467 ering->tx_max_pending = MAX_TX_DESC; in s2io_ethtool_gringparam()
5471 ering->rx_pending = rx_desc_count; in s2io_ethtool_gringparam()
5472 ering->rx_jumbo_pending = rx_desc_count; in s2io_ethtool_gringparam()
5476 ering->tx_pending = tx_desc_count; in s2io_ethtool_gringparam()