/linux-6.12.1/drivers/net/ethernet/pasemi/ |
D | pasemi_mac_ethtool.c | 72 struct ethtool_ringparam *ering, in pasemi_mac_ethtool_get_ringparam() argument 78 ering->tx_max_pending = TX_RING_SIZE/2; in pasemi_mac_ethtool_get_ringparam() 79 ering->tx_pending = RING_USED(mac->tx)/2; in pasemi_mac_ethtool_get_ringparam() 80 ering->rx_max_pending = RX_RING_SIZE/4; in pasemi_mac_ethtool_get_ringparam() 81 ering->rx_pending = RING_USED(mac->rx)/4; in pasemi_mac_ethtool_get_ringparam()
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlxbf_gige/ |
D | mlxbf_gige_ethtool.c | 36 struct ethtool_ringparam *ering, in mlxbf_gige_get_ringparam() argument 42 ering->rx_max_pending = MLXBF_GIGE_MAX_RXQ_SZ; in mlxbf_gige_get_ringparam() 43 ering->tx_max_pending = MLXBF_GIGE_MAX_TXQ_SZ; in mlxbf_gige_get_ringparam() 44 ering->rx_pending = priv->rx_q_entries; in mlxbf_gige_get_ringparam() 45 ering->tx_pending = priv->tx_q_entries; in mlxbf_gige_get_ringparam()
|
/linux-6.12.1/drivers/net/ethernet/toshiba/ |
D | spider_net_ethtool.c | 113 struct ethtool_ringparam *ering, in spider_net_ethtool_get_ringparam() argument 119 ering->tx_max_pending = SPIDER_NET_TX_DESCRIPTORS_MAX; in spider_net_ethtool_get_ringparam() 120 ering->tx_pending = card->tx_chain.num_desc; in spider_net_ethtool_get_ringparam() 121 ering->rx_max_pending = SPIDER_NET_RX_DESCRIPTORS_MAX; in spider_net_ethtool_get_ringparam() 122 ering->rx_pending = card->rx_chain.num_desc; in spider_net_ethtool_get_ringparam()
|
/linux-6.12.1/drivers/net/ethernet/ti/ |
D | cpsw_ethtool.c | 659 struct ethtool_ringparam *ering, in cpsw_get_ringparam() argument 667 ering->tx_max_pending = cpsw->descs_pool_size - CPSW_MAX_QUEUES; in cpsw_get_ringparam() 668 ering->tx_pending = cpdma_get_num_tx_descs(cpsw->dma); in cpsw_get_ringparam() 669 ering->rx_max_pending = cpsw->descs_pool_size - CPSW_MAX_QUEUES; in cpsw_get_ringparam() 670 ering->rx_pending = cpdma_get_num_rx_descs(cpsw->dma); in cpsw_get_ringparam() 674 struct ethtool_ringparam *ering, in cpsw_set_ringparam() argument 683 if (ering->rx_mini_pending || ering->rx_jumbo_pending || in cpsw_set_ringparam() 684 ering->rx_pending < CPSW_MAX_QUEUES || in cpsw_set_ringparam() 685 ering->rx_pending > (cpsw->descs_pool_size - CPSW_MAX_QUEUES)) in cpsw_set_ringparam() 689 if (ering->rx_pending == descs_num) in cpsw_set_ringparam() [all …]
|
D | cpsw_priv.h | 503 struct ethtool_ringparam *ering, 507 struct ethtool_ringparam *ering,
|
D | am65-cpsw-ethtool.c | 456 struct ethtool_ringparam *ering, in am65_cpsw_get_ringparam() argument 463 ering->tx_pending = common->tx_chns[0].descs_num; in am65_cpsw_get_ringparam() 464 ering->rx_pending = common->rx_chns.descs_num; in am65_cpsw_get_ringparam()
|
/linux-6.12.1/drivers/net/ethernet/xilinx/ |
D | ll_temac_main.c | 1285 struct ethtool_ringparam *ering, in ll_temac_ethtools_get_ringparam() argument 1291 ering->rx_max_pending = RX_BD_NUM_MAX; in ll_temac_ethtools_get_ringparam() 1292 ering->rx_mini_max_pending = 0; in ll_temac_ethtools_get_ringparam() 1293 ering->rx_jumbo_max_pending = 0; in ll_temac_ethtools_get_ringparam() 1294 ering->tx_max_pending = TX_BD_NUM_MAX; in ll_temac_ethtools_get_ringparam() 1295 ering->rx_pending = lp->rx_bd_num; in ll_temac_ethtools_get_ringparam() 1296 ering->rx_mini_pending = 0; in ll_temac_ethtools_get_ringparam() 1297 ering->rx_jumbo_pending = 0; in ll_temac_ethtools_get_ringparam() 1298 ering->tx_pending = lp->tx_bd_num; in ll_temac_ethtools_get_ringparam() 1303 struct ethtool_ringparam *ering, in ll_temac_ethtools_set_ringparam() argument [all …]
|
D | xilinx_axienet_main.c | 1926 struct ethtool_ringparam *ering, in axienet_ethtools_get_ringparam() argument 1932 ering->rx_max_pending = RX_BD_NUM_MAX; in axienet_ethtools_get_ringparam() 1933 ering->rx_mini_max_pending = 0; in axienet_ethtools_get_ringparam() 1934 ering->rx_jumbo_max_pending = 0; in axienet_ethtools_get_ringparam() 1935 ering->tx_max_pending = TX_BD_NUM_MAX; in axienet_ethtools_get_ringparam() 1936 ering->rx_pending = lp->rx_bd_num; in axienet_ethtools_get_ringparam() 1937 ering->rx_mini_pending = 0; in axienet_ethtools_get_ringparam() 1938 ering->rx_jumbo_pending = 0; in axienet_ethtools_get_ringparam() 1939 ering->tx_pending = lp->tx_bd_num; in axienet_ethtools_get_ringparam() 1944 struct ethtool_ringparam *ering, in axienet_ethtools_set_ringparam() argument [all …]
|
/linux-6.12.1/drivers/net/ethernet/faraday/ |
D | ftgmac100.c | 1098 struct ethtool_ringparam *ering, in ftgmac100_get_ringparam() argument 1104 memset(ering, 0, sizeof(*ering)); in ftgmac100_get_ringparam() 1105 ering->rx_max_pending = MAX_RX_QUEUE_ENTRIES; in ftgmac100_get_ringparam() 1106 ering->tx_max_pending = MAX_TX_QUEUE_ENTRIES; in ftgmac100_get_ringparam() 1107 ering->rx_pending = priv->rx_q_entries; in ftgmac100_get_ringparam() 1108 ering->tx_pending = priv->tx_q_entries; in ftgmac100_get_ringparam() 1113 struct ethtool_ringparam *ering, in ftgmac100_set_ringparam() argument 1119 if (ering->rx_pending > MAX_RX_QUEUE_ENTRIES || in ftgmac100_set_ringparam() 1120 ering->tx_pending > MAX_TX_QUEUE_ENTRIES || in ftgmac100_set_ringparam() 1121 ering->rx_pending < MIN_RX_QUEUE_ENTRIES || in ftgmac100_set_ringparam() [all …]
|
/linux-6.12.1/drivers/ata/ |
D | libata-eh.c | 372 static void ata_ering_record(struct ata_ering *ering, unsigned int eflags, in ata_ering_record() argument 379 ering->cursor++; in ata_ering_record() 380 ering->cursor %= ATA_ERING_SIZE; in ata_ering_record() 382 ent = &ering->ring[ering->cursor]; in ata_ering_record() 388 static struct ata_ering_entry *ata_ering_top(struct ata_ering *ering) in ata_ering_top() argument 390 struct ata_ering_entry *ent = &ering->ring[ering->cursor]; in ata_ering_top() 397 int ata_ering_map(struct ata_ering *ering, in ata_ering_map() argument 404 idx = ering->cursor; in ata_ering_map() 406 ent = &ering->ring[idx]; in ata_ering_map() 413 } while (idx != ering->cursor); in ata_ering_map() [all …]
|
D | libata-transport.c | 429 ata_ering_map(&ata_dev->ering, ata_show_ering, &arg); in show_ata_dev_ering() 434 static DEVICE_ATTR(ering, S_IRUGO, show_ata_dev_ering, NULL); 803 SETUP_DEV_ATTRIBUTE(ering); in ata_attach_transport()
|
D | libata.h | 183 extern int ata_ering_map(struct ata_ering *ering,
|
/linux-6.12.1/drivers/net/ethernet/broadcom/ |
D | bcm63xx_enet.c | 1502 struct ethtool_ringparam *ering, in bcm_enet_get_ringparam() argument 1511 ering->rx_max_pending = 8192; in bcm_enet_get_ringparam() 1512 ering->tx_max_pending = 8192; in bcm_enet_get_ringparam() 1513 ering->rx_pending = priv->rx_ring_size; in bcm_enet_get_ringparam() 1514 ering->tx_pending = priv->tx_ring_size; in bcm_enet_get_ringparam() 1518 struct ethtool_ringparam *ering, in bcm_enet_set_ringparam() argument 1533 priv->rx_ring_size = ering->rx_pending; in bcm_enet_set_ringparam() 1534 priv->tx_ring_size = ering->tx_pending; in bcm_enet_set_ringparam() 2587 struct ethtool_ringparam *ering, in bcm_enetsw_get_ringparam() argument 2596 ering->rx_max_pending = 8192; in bcm_enetsw_get_ringparam() [all …]
|
D | b44.c | 1940 struct ethtool_ringparam *ering, in b44_get_ringparam() argument 1946 ering->rx_max_pending = B44_RX_RING_SIZE - 1; in b44_get_ringparam() 1947 ering->rx_pending = bp->rx_pending; in b44_get_ringparam() 1953 struct ethtool_ringparam *ering, in b44_set_ringparam() argument 1959 if ((ering->rx_pending > B44_RX_RING_SIZE - 1) || in b44_set_ringparam() 1960 (ering->rx_mini_pending != 0) || in b44_set_ringparam() 1961 (ering->rx_jumbo_pending != 0) || in b44_set_ringparam() 1962 (ering->tx_pending > B44_TX_RING_SIZE - 1)) in b44_set_ringparam() 1967 bp->rx_pending = ering->rx_pending; in b44_set_ringparam() 1968 bp->tx_pending = ering->tx_pending; in b44_set_ringparam()
|
D | bnx2.c | 7306 bnx2_get_ringparam(struct net_device *dev, struct ethtool_ringparam *ering, in bnx2_get_ringparam() argument 7312 ering->rx_max_pending = BNX2_MAX_TOTAL_RX_DESC_CNT; in bnx2_get_ringparam() 7313 ering->rx_jumbo_max_pending = BNX2_MAX_TOTAL_RX_PG_DESC_CNT; in bnx2_get_ringparam() 7315 ering->rx_pending = bp->rx_ring_size; in bnx2_get_ringparam() 7316 ering->rx_jumbo_pending = bp->rx_pg_ring_size; in bnx2_get_ringparam() 7318 ering->tx_max_pending = BNX2_MAX_TX_DESC_CNT; in bnx2_get_ringparam() 7319 ering->tx_pending = bp->tx_ring_size; in bnx2_get_ringparam() 7379 bnx2_set_ringparam(struct net_device *dev, struct ethtool_ringparam *ering, in bnx2_set_ringparam() argument 7386 if ((ering->rx_pending > BNX2_MAX_TOTAL_RX_DESC_CNT) || in bnx2_set_ringparam() 7387 (ering->tx_pending > BNX2_MAX_TX_DESC_CNT) || in bnx2_set_ringparam() [all …]
|
/linux-6.12.1/drivers/net/ethernet/qlogic/qede/ |
D | qede_ethtool.c | 899 struct ethtool_ringparam *ering, in qede_get_ringparam() argument 905 ering->rx_max_pending = NUM_RX_BDS_MAX; in qede_get_ringparam() 906 ering->rx_pending = edev->q_num_rx_buffers; in qede_get_ringparam() 907 ering->tx_max_pending = NUM_TX_BDS_MAX; in qede_get_ringparam() 908 ering->tx_pending = edev->q_num_tx_buffers; in qede_get_ringparam() 912 struct ethtool_ringparam *ering, in qede_set_ringparam() argument 920 ering->rx_pending, ering->tx_pending); in qede_set_ringparam() 923 if (ering->rx_pending > NUM_RX_BDS_MAX || in qede_set_ringparam() 924 ering->rx_pending < NUM_RX_BDS_MIN || in qede_set_ringparam() 925 ering->tx_pending > NUM_TX_BDS_MAX || in qede_set_ringparam() [all …]
|
/linux-6.12.1/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_ethtool.c | 1917 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 1951 ering->rx_pending, ering->tx_pending); in bnx2x_set_ringparam() 1965 if ((ering->rx_pending > MAX_RX_AVAIL) || in bnx2x_set_ringparam() [all …]
|
/linux-6.12.1/Documentation/ABI/testing/ |
D | sysfs-ata | 76 What: /sys/class/ata_device/devX[.Y].Z/ering 103 ering: (RO) Formatted output of the error ring of the
|
/linux-6.12.1/drivers/net/ethernet/cavium/liquidio/ |
D | lio_ethtool.c | 952 struct ethtool_ringparam *ering, in lio_ethtool_get_ringparam() argument 978 ering->tx_pending = tx_pending; in lio_ethtool_get_ringparam() 979 ering->tx_max_pending = tx_max_pending; in lio_ethtool_get_ringparam() 980 ering->rx_pending = rx_pending; in lio_ethtool_get_ringparam() 981 ering->rx_max_pending = rx_max_pending; in lio_ethtool_get_ringparam() 982 ering->rx_mini_pending = 0; in lio_ethtool_get_ringparam() 983 ering->rx_jumbo_pending = 0; in lio_ethtool_get_ringparam() 984 ering->rx_mini_max_pending = 0; in lio_ethtool_get_ringparam() 985 ering->rx_jumbo_max_pending = 0; in lio_ethtool_get_ringparam() 1261 struct ethtool_ringparam *ering, in lio_ethtool_set_ringparam() argument [all …]
|
/linux-6.12.1/drivers/net/ethernet/amd/ |
D | pcnet32.c | 863 struct ethtool_ringparam *ering, in pcnet32_get_ringparam() argument 869 ering->tx_max_pending = TX_MAX_RING_SIZE; in pcnet32_get_ringparam() 870 ering->tx_pending = lp->tx_ring_size; in pcnet32_get_ringparam() 871 ering->rx_max_pending = RX_MAX_RING_SIZE; in pcnet32_get_ringparam() 872 ering->rx_pending = lp->rx_ring_size; in pcnet32_get_ringparam() 876 struct ethtool_ringparam *ering, in pcnet32_set_ringparam() argument 886 if (ering->rx_mini_pending || ering->rx_jumbo_pending) in pcnet32_set_ringparam() 895 size = min(ering->tx_pending, (unsigned int)TX_MAX_RING_SIZE); in pcnet32_set_ringparam() 907 size = min(ering->rx_pending, (unsigned int)RX_MAX_RING_SIZE); in pcnet32_set_ringparam()
|
/linux-6.12.1/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_ethtool.c | 823 struct ethtool_ringparam *ering, in bnxt_get_ringparam() argument 830 ering->rx_max_pending = BNXT_MAX_RX_DESC_CNT_JUM_ENA; in bnxt_get_ringparam() 831 ering->rx_jumbo_max_pending = BNXT_MAX_RX_JUM_DESC_CNT; in bnxt_get_ringparam() 834 ering->rx_max_pending = BNXT_MAX_RX_DESC_CNT; in bnxt_get_ringparam() 835 ering->rx_jumbo_max_pending = 0; in bnxt_get_ringparam() 838 ering->tx_max_pending = BNXT_MAX_TX_DESC_CNT; in bnxt_get_ringparam() 840 ering->rx_pending = bp->rx_ring_size; in bnxt_get_ringparam() 841 ering->rx_jumbo_pending = bp->rx_agg_ring_size; in bnxt_get_ringparam() 842 ering->tx_pending = bp->tx_ring_size; in bnxt_get_ringparam() 846 struct ethtool_ringparam *ering, in bnxt_set_ringparam() argument [all …]
|
/linux-6.12.1/drivers/net/ethernet/marvell/ |
D | sky2.c | 4151 struct ethtool_ringparam *ering, in sky2_get_ringparam() argument 4157 ering->rx_max_pending = RX_MAX_PENDING; in sky2_get_ringparam() 4158 ering->tx_max_pending = TX_MAX_PENDING; in sky2_get_ringparam() 4160 ering->rx_pending = sky2->rx_pending; in sky2_get_ringparam() 4161 ering->tx_pending = sky2->tx_pending; in sky2_get_ringparam() 4165 struct ethtool_ringparam *ering, in sky2_set_ringparam() argument 4171 if (ering->rx_pending > RX_MAX_PENDING || in sky2_set_ringparam() 4172 ering->rx_pending < 8 || in sky2_set_ringparam() 4173 ering->tx_pending < TX_MIN_PENDING || in sky2_set_ringparam() 4174 ering->tx_pending > TX_MAX_PENDING) in sky2_set_ringparam() [all …]
|
/linux-6.12.1/drivers/net/ethernet/3com/ |
D | typhoon.c | 1136 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()
|
/linux-6.12.1/drivers/net/ethernet/neterion/ |
D | s2io.c | 5460 struct ethtool_ringparam *ering, in s2io_ethtool_gringparam() argument 5468 ering->rx_max_pending = MAX_RX_DESC_1; in s2io_ethtool_gringparam() 5469 ering->rx_jumbo_max_pending = MAX_RX_DESC_1; in s2io_ethtool_gringparam() 5471 ering->rx_max_pending = MAX_RX_DESC_2; in s2io_ethtool_gringparam() 5472 ering->rx_jumbo_max_pending = MAX_RX_DESC_2; in s2io_ethtool_gringparam() 5475 ering->tx_max_pending = MAX_TX_DESC; in s2io_ethtool_gringparam() 5479 ering->rx_pending = rx_desc_count; in s2io_ethtool_gringparam() 5480 ering->rx_jumbo_pending = rx_desc_count; in s2io_ethtool_gringparam() 5484 ering->tx_pending = tx_desc_count; in s2io_ethtool_gringparam()
|
/linux-6.12.1/include/linux/ |
D | libata.h | 786 struct ata_ering ering; member 796 #define ATA_DEVICE_CLEAR_END offsetof(struct ata_device, ering)
|