Home
last modified time | relevance | path

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

/drivers/net/ethernet/pasemi/
Dpasemi_mac_ethtool.c72 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()
/drivers/net/ethernet/mellanox/mlxbf_gige/
Dmlxbf_gige_ethtool.c36 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()
/drivers/net/ethernet/toshiba/
Dspider_net_ethtool.c113 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()
/drivers/net/ethernet/ti/
Dcpsw_ethtool.c659 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 …]
Dam65-cpsw-ethtool.c456 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()
Dcpsw_priv.h503 struct ethtool_ringparam *ering,
507 struct ethtool_ringparam *ering,
/drivers/net/ethernet/xilinx/
Dll_temac_main.c1285 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 …]
Dxilinx_axienet_main.c1428 struct ethtool_ringparam *ering, in axienet_ethtools_get_ringparam() argument
1434 ering->rx_max_pending = RX_BD_NUM_MAX; in axienet_ethtools_get_ringparam()
1435 ering->rx_mini_max_pending = 0; in axienet_ethtools_get_ringparam()
1436 ering->rx_jumbo_max_pending = 0; in axienet_ethtools_get_ringparam()
1437 ering->tx_max_pending = TX_BD_NUM_MAX; in axienet_ethtools_get_ringparam()
1438 ering->rx_pending = lp->rx_bd_num; in axienet_ethtools_get_ringparam()
1439 ering->rx_mini_pending = 0; in axienet_ethtools_get_ringparam()
1440 ering->rx_jumbo_pending = 0; in axienet_ethtools_get_ringparam()
1441 ering->tx_pending = lp->tx_bd_num; in axienet_ethtools_get_ringparam()
1446 struct ethtool_ringparam *ering, in axienet_ethtools_set_ringparam() argument
[all …]
/drivers/net/ethernet/faraday/
Dftgmac100.c1078 struct ethtool_ringparam *ering, in ftgmac100_get_ringparam() argument
1084 memset(ering, 0, sizeof(*ering)); in ftgmac100_get_ringparam()
1085 ering->rx_max_pending = MAX_RX_QUEUE_ENTRIES; in ftgmac100_get_ringparam()
1086 ering->tx_max_pending = MAX_TX_QUEUE_ENTRIES; in ftgmac100_get_ringparam()
1087 ering->rx_pending = priv->rx_q_entries; in ftgmac100_get_ringparam()
1088 ering->tx_pending = priv->tx_q_entries; in ftgmac100_get_ringparam()
1093 struct ethtool_ringparam *ering, in ftgmac100_set_ringparam() argument
1099 if (ering->rx_pending > MAX_RX_QUEUE_ENTRIES || in ftgmac100_set_ringparam()
1100 ering->tx_pending > MAX_TX_QUEUE_ENTRIES || in ftgmac100_set_ringparam()
1101 ering->rx_pending < MIN_RX_QUEUE_ENTRIES || in ftgmac100_set_ringparam()
[all …]
/drivers/ata/
Dlibata-eh.c372 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 …]
Dlibata-transport.c561 ata_ering_map(&ata_dev->ering, ata_show_ering, &arg); in show_ata_dev_ering()
566 static DEVICE_ATTR(ering, S_IRUGO, show_ata_dev_ering, NULL);
805 SETUP_DEV_ATTRIBUTE(ering); in ata_attach_transport()
Dlibata.h161 extern int ata_ering_map(struct ata_ering *ering,
/drivers/net/ethernet/broadcom/
Dbcm63xx_enet.c1502 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()
2588 struct ethtool_ringparam *ering, in bcm_enetsw_get_ringparam() argument
2597 ering->rx_max_pending = 8192; in bcm_enetsw_get_ringparam()
[all …]
Db44.c1940 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()
Dbnx2.c7305 bnx2_get_ringparam(struct net_device *dev, struct ethtool_ringparam *ering, in bnx2_get_ringparam() argument
7311 ering->rx_max_pending = BNX2_MAX_TOTAL_RX_DESC_CNT; in bnx2_get_ringparam()
7312 ering->rx_jumbo_max_pending = BNX2_MAX_TOTAL_RX_PG_DESC_CNT; in bnx2_get_ringparam()
7314 ering->rx_pending = bp->rx_ring_size; in bnx2_get_ringparam()
7315 ering->rx_jumbo_pending = bp->rx_pg_ring_size; in bnx2_get_ringparam()
7317 ering->tx_max_pending = BNX2_MAX_TX_DESC_CNT; in bnx2_get_ringparam()
7318 ering->tx_pending = bp->tx_ring_size; in bnx2_get_ringparam()
7378 bnx2_set_ringparam(struct net_device *dev, struct ethtool_ringparam *ering, in bnx2_set_ringparam() argument
7385 if ((ering->rx_pending > BNX2_MAX_TOTAL_RX_DESC_CNT) || in bnx2_set_ringparam()
7386 (ering->tx_pending > BNX2_MAX_TX_DESC_CNT) || in bnx2_set_ringparam()
[all …]
Dtg3.c12429 struct ethtool_ringparam *ering, in tg3_get_ringparam() argument
12435 ering->rx_max_pending = tp->rx_std_ring_mask; in tg3_get_ringparam()
12437 ering->rx_jumbo_max_pending = tp->rx_jmb_ring_mask; in tg3_get_ringparam()
12439 ering->rx_jumbo_max_pending = 0; in tg3_get_ringparam()
12441 ering->tx_max_pending = TG3_TX_RING_SIZE - 1; in tg3_get_ringparam()
12443 ering->rx_pending = tp->rx_pending; in tg3_get_ringparam()
12445 ering->rx_jumbo_pending = tp->rx_jumbo_pending; in tg3_get_ringparam()
12447 ering->rx_jumbo_pending = 0; in tg3_get_ringparam()
12449 ering->tx_pending = tp->napi[0].tx_pending; in tg3_get_ringparam()
12453 struct ethtool_ringparam *ering, in tg3_set_ringparam() argument
[all …]
/drivers/net/ethernet/qlogic/qede/
Dqede_ethtool.c921 struct ethtool_ringparam *ering, in qede_get_ringparam() argument
927 ering->rx_max_pending = NUM_RX_BDS_MAX; in qede_get_ringparam()
928 ering->rx_pending = edev->q_num_rx_buffers; in qede_get_ringparam()
929 ering->tx_max_pending = NUM_TX_BDS_MAX; in qede_get_ringparam()
930 ering->tx_pending = edev->q_num_tx_buffers; in qede_get_ringparam()
934 struct ethtool_ringparam *ering, in qede_set_ringparam() argument
942 ering->rx_pending, ering->tx_pending); in qede_set_ringparam()
945 if (ering->rx_pending > NUM_RX_BDS_MAX || in qede_set_ringparam()
946 ering->rx_pending < NUM_RX_BDS_MIN || in qede_set_ringparam()
947 ering->tx_pending > NUM_TX_BDS_MAX || in qede_set_ringparam()
[all …]
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_ethtool.c1917 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 …]
/drivers/net/ethernet/cavium/liquidio/
Dlio_ethtool.c950 struct ethtool_ringparam *ering, in lio_ethtool_get_ringparam() argument
976 ering->tx_pending = tx_pending; in lio_ethtool_get_ringparam()
977 ering->tx_max_pending = tx_max_pending; in lio_ethtool_get_ringparam()
978 ering->rx_pending = rx_pending; in lio_ethtool_get_ringparam()
979 ering->rx_max_pending = rx_max_pending; in lio_ethtool_get_ringparam()
980 ering->rx_mini_pending = 0; in lio_ethtool_get_ringparam()
981 ering->rx_jumbo_pending = 0; in lio_ethtool_get_ringparam()
982 ering->rx_mini_max_pending = 0; in lio_ethtool_get_ringparam()
983 ering->rx_jumbo_max_pending = 0; in lio_ethtool_get_ringparam()
1259 struct ethtool_ringparam *ering, in lio_ethtool_set_ringparam() argument
[all …]
/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c804 struct ethtool_ringparam *ering, in bnxt_get_ringparam() argument
811 ering->rx_max_pending = BNXT_MAX_RX_DESC_CNT_JUM_ENA; in bnxt_get_ringparam()
812 ering->rx_jumbo_max_pending = BNXT_MAX_RX_JUM_DESC_CNT; in bnxt_get_ringparam()
815 ering->rx_max_pending = BNXT_MAX_RX_DESC_CNT; in bnxt_get_ringparam()
816 ering->rx_jumbo_max_pending = 0; in bnxt_get_ringparam()
819 ering->tx_max_pending = BNXT_MAX_TX_DESC_CNT; in bnxt_get_ringparam()
821 ering->rx_pending = bp->rx_ring_size; in bnxt_get_ringparam()
822 ering->rx_jumbo_pending = bp->rx_agg_ring_size; in bnxt_get_ringparam()
823 ering->tx_pending = bp->tx_ring_size; in bnxt_get_ringparam()
827 struct ethtool_ringparam *ering, in bnxt_set_ringparam() argument
[all …]
/drivers/net/ethernet/amd/
Dpcnet32.c863 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()
/drivers/net/ethernet/marvell/
Dsky2.c4150 struct ethtool_ringparam *ering, in sky2_get_ringparam() argument
4156 ering->rx_max_pending = RX_MAX_PENDING; in sky2_get_ringparam()
4157 ering->tx_max_pending = TX_MAX_PENDING; in sky2_get_ringparam()
4159 ering->rx_pending = sky2->rx_pending; in sky2_get_ringparam()
4160 ering->tx_pending = sky2->tx_pending; in sky2_get_ringparam()
4164 struct ethtool_ringparam *ering, in sky2_set_ringparam() argument
4170 if (ering->rx_pending > RX_MAX_PENDING || in sky2_set_ringparam()
4171 ering->rx_pending < 8 || in sky2_set_ringparam()
4172 ering->tx_pending < TX_MIN_PENDING || in sky2_set_ringparam()
4173 ering->tx_pending > TX_MAX_PENDING) in sky2_set_ringparam()
[all …]
/drivers/net/ethernet/3com/
Dtyphoon.c1136 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.c5459 struct ethtool_ringparam *ering, in s2io_ethtool_gringparam() argument
5467 ering->rx_max_pending = MAX_RX_DESC_1; in s2io_ethtool_gringparam()
5468 ering->rx_jumbo_max_pending = MAX_RX_DESC_1; in s2io_ethtool_gringparam()
5470 ering->rx_max_pending = MAX_RX_DESC_2; in s2io_ethtool_gringparam()
5471 ering->rx_jumbo_max_pending = MAX_RX_DESC_2; in s2io_ethtool_gringparam()
5474 ering->tx_max_pending = MAX_TX_DESC; in s2io_ethtool_gringparam()
5478 ering->rx_pending = rx_desc_count; in s2io_ethtool_gringparam()
5479 ering->rx_jumbo_pending = rx_desc_count; in s2io_ethtool_gringparam()
5483 ering->tx_pending = tx_desc_count; in s2io_ethtool_gringparam()