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.h502 struct ethtool_ringparam *ering,
506 struct ethtool_ringparam *ering,
/drivers/net/ethernet/xilinx/
Dll_temac_main.c1287 struct ethtool_ringparam *ering, in ll_temac_ethtools_get_ringparam() argument
1293 ering->rx_max_pending = RX_BD_NUM_MAX; in ll_temac_ethtools_get_ringparam()
1294 ering->rx_mini_max_pending = 0; in ll_temac_ethtools_get_ringparam()
1295 ering->rx_jumbo_max_pending = 0; in ll_temac_ethtools_get_ringparam()
1296 ering->tx_max_pending = TX_BD_NUM_MAX; in ll_temac_ethtools_get_ringparam()
1297 ering->rx_pending = lp->rx_bd_num; in ll_temac_ethtools_get_ringparam()
1298 ering->rx_mini_pending = 0; in ll_temac_ethtools_get_ringparam()
1299 ering->rx_jumbo_pending = 0; in ll_temac_ethtools_get_ringparam()
1300 ering->tx_pending = lp->tx_bd_num; in ll_temac_ethtools_get_ringparam()
1305 struct ethtool_ringparam *ering, in ll_temac_ethtools_set_ringparam() argument
[all …]
Dxilinx_axienet_main.c1426 struct ethtool_ringparam *ering, in axienet_ethtools_get_ringparam() argument
1432 ering->rx_max_pending = RX_BD_NUM_MAX; in axienet_ethtools_get_ringparam()
1433 ering->rx_mini_max_pending = 0; in axienet_ethtools_get_ringparam()
1434 ering->rx_jumbo_max_pending = 0; in axienet_ethtools_get_ringparam()
1435 ering->tx_max_pending = TX_BD_NUM_MAX; in axienet_ethtools_get_ringparam()
1436 ering->rx_pending = lp->rx_bd_num; in axienet_ethtools_get_ringparam()
1437 ering->rx_mini_pending = 0; in axienet_ethtools_get_ringparam()
1438 ering->rx_jumbo_pending = 0; in axienet_ethtools_get_ringparam()
1439 ering->tx_pending = lp->tx_bd_num; in axienet_ethtools_get_ringparam()
1444 struct ethtool_ringparam *ering, in axienet_ethtools_set_ringparam() argument
[all …]
/drivers/net/ethernet/faraday/
Dftgmac100.c1072 struct ethtool_ringparam *ering, in ftgmac100_get_ringparam() argument
1078 memset(ering, 0, sizeof(*ering)); in ftgmac100_get_ringparam()
1079 ering->rx_max_pending = MAX_RX_QUEUE_ENTRIES; in ftgmac100_get_ringparam()
1080 ering->tx_max_pending = MAX_TX_QUEUE_ENTRIES; in ftgmac100_get_ringparam()
1081 ering->rx_pending = priv->rx_q_entries; in ftgmac100_get_ringparam()
1082 ering->tx_pending = priv->tx_q_entries; in ftgmac100_get_ringparam()
1087 struct ethtool_ringparam *ering, in ftgmac100_set_ringparam() argument
1093 if (ering->rx_pending > MAX_RX_QUEUE_ENTRIES || in ftgmac100_set_ringparam()
1094 ering->tx_pending > MAX_TX_QUEUE_ENTRIES || in ftgmac100_set_ringparam()
1095 ering->rx_pending < MIN_RX_QUEUE_ENTRIES || in ftgmac100_set_ringparam()
[all …]
/drivers/ata/
Dlibata-eh.c380 static void ata_ering_record(struct ata_ering *ering, unsigned int eflags, in ata_ering_record() argument
387 ering->cursor++; in ata_ering_record()
388 ering->cursor %= ATA_ERING_SIZE; in ata_ering_record()
390 ent = &ering->ring[ering->cursor]; in ata_ering_record()
396 static struct ata_ering_entry *ata_ering_top(struct ata_ering *ering) in ata_ering_top() argument
398 struct ata_ering_entry *ent = &ering->ring[ering->cursor]; in ata_ering_top()
405 int ata_ering_map(struct ata_ering *ering, in ata_ering_map() argument
412 idx = ering->cursor; in ata_ering_map()
414 ent = &ering->ring[idx]; in ata_ering_map()
421 } 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.h163 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()
2589 struct ethtool_ringparam *ering, in bcm_enetsw_get_ringparam() argument
2598 ering->rx_max_pending = 8192; in bcm_enetsw_get_ringparam()
[all …]
Db44.c1964 struct ethtool_ringparam *ering, in b44_get_ringparam() argument
1970 ering->rx_max_pending = B44_RX_RING_SIZE - 1; in b44_get_ringparam()
1971 ering->rx_pending = bp->rx_pending; in b44_get_ringparam()
1977 struct ethtool_ringparam *ering, in b44_set_ringparam() argument
1983 if ((ering->rx_pending > B44_RX_RING_SIZE - 1) || in b44_set_ringparam()
1984 (ering->rx_mini_pending != 0) || in b44_set_ringparam()
1985 (ering->rx_jumbo_pending != 0) || in b44_set_ringparam()
1986 (ering->tx_pending > B44_TX_RING_SIZE - 1)) in b44_set_ringparam()
1991 bp->rx_pending = ering->rx_pending; in b44_set_ringparam()
1992 bp->tx_pending = ering->tx_pending; in b44_set_ringparam()
Dbnx2.c7322 bnx2_get_ringparam(struct net_device *dev, struct ethtool_ringparam *ering, in bnx2_get_ringparam() argument
7328 ering->rx_max_pending = BNX2_MAX_TOTAL_RX_DESC_CNT; in bnx2_get_ringparam()
7329 ering->rx_jumbo_max_pending = BNX2_MAX_TOTAL_RX_PG_DESC_CNT; in bnx2_get_ringparam()
7331 ering->rx_pending = bp->rx_ring_size; in bnx2_get_ringparam()
7332 ering->rx_jumbo_pending = bp->rx_pg_ring_size; in bnx2_get_ringparam()
7334 ering->tx_max_pending = BNX2_MAX_TX_DESC_CNT; in bnx2_get_ringparam()
7335 ering->tx_pending = bp->tx_ring_size; in bnx2_get_ringparam()
7395 bnx2_set_ringparam(struct net_device *dev, struct ethtool_ringparam *ering, in bnx2_set_ringparam() argument
7402 if ((ering->rx_pending > BNX2_MAX_TOTAL_RX_DESC_CNT) || in bnx2_set_ringparam()
7403 (ering->tx_pending > BNX2_MAX_TX_DESC_CNT) || in bnx2_set_ringparam()
[all …]
Dtg3.c12434 struct ethtool_ringparam *ering, in tg3_get_ringparam() argument
12440 ering->rx_max_pending = tp->rx_std_ring_mask; in tg3_get_ringparam()
12442 ering->rx_jumbo_max_pending = tp->rx_jmb_ring_mask; in tg3_get_ringparam()
12444 ering->rx_jumbo_max_pending = 0; in tg3_get_ringparam()
12446 ering->tx_max_pending = TG3_TX_RING_SIZE - 1; in tg3_get_ringparam()
12448 ering->rx_pending = tp->rx_pending; in tg3_get_ringparam()
12450 ering->rx_jumbo_pending = tp->rx_jumbo_pending; in tg3_get_ringparam()
12452 ering->rx_jumbo_pending = 0; in tg3_get_ringparam()
12454 ering->tx_pending = tp->napi[0].tx_pending; in tg3_get_ringparam()
12458 struct ethtool_ringparam *ering, in tg3_set_ringparam() argument
[all …]
/drivers/net/ethernet/qlogic/qede/
Dqede_ethtool.c922 struct ethtool_ringparam *ering, in qede_get_ringparam() argument
928 ering->rx_max_pending = NUM_RX_BDS_MAX; in qede_get_ringparam()
929 ering->rx_pending = edev->q_num_rx_buffers; in qede_get_ringparam()
930 ering->tx_max_pending = NUM_TX_BDS_MAX; in qede_get_ringparam()
931 ering->tx_pending = edev->q_num_tx_buffers; in qede_get_ringparam()
935 struct ethtool_ringparam *ering, in qede_set_ringparam() argument
943 ering->rx_pending, ering->tx_pending); in qede_set_ringparam()
946 if (ering->rx_pending > NUM_RX_BDS_MAX || in qede_set_ringparam()
947 ering->rx_pending < NUM_RX_BDS_MIN || in qede_set_ringparam()
948 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.c805 struct ethtool_ringparam *ering, in bnxt_get_ringparam() argument
812 ering->rx_max_pending = BNXT_MAX_RX_DESC_CNT_JUM_ENA; in bnxt_get_ringparam()
813 ering->rx_jumbo_max_pending = BNXT_MAX_RX_JUM_DESC_CNT; in bnxt_get_ringparam()
816 ering->rx_max_pending = BNXT_MAX_RX_DESC_CNT; in bnxt_get_ringparam()
817 ering->rx_jumbo_max_pending = 0; in bnxt_get_ringparam()
820 ering->tx_max_pending = BNXT_MAX_TX_DESC_CNT; in bnxt_get_ringparam()
822 ering->rx_pending = bp->rx_ring_size; in bnxt_get_ringparam()
823 ering->rx_jumbo_pending = bp->rx_agg_ring_size; in bnxt_get_ringparam()
824 ering->tx_pending = bp->tx_ring_size; in bnxt_get_ringparam()
828 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.c4151 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 …]
/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.c5466 struct ethtool_ringparam *ering, in s2io_ethtool_gringparam() argument
5474 ering->rx_max_pending = MAX_RX_DESC_1; in s2io_ethtool_gringparam()
5475 ering->rx_jumbo_max_pending = MAX_RX_DESC_1; in s2io_ethtool_gringparam()
5477 ering->rx_max_pending = MAX_RX_DESC_2; in s2io_ethtool_gringparam()
5478 ering->rx_jumbo_max_pending = MAX_RX_DESC_2; in s2io_ethtool_gringparam()
5481 ering->tx_max_pending = MAX_TX_DESC; in s2io_ethtool_gringparam()
5485 ering->rx_pending = rx_desc_count; in s2io_ethtool_gringparam()
5486 ering->rx_jumbo_pending = rx_desc_count; in s2io_ethtool_gringparam()
5490 ering->tx_pending = tx_desc_count; in s2io_ethtool_gringparam()