Home
last modified time | relevance | path

Searched refs:pauseparam (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.15/drivers/net/netdevsim/
Dethtool.c16 if (ns->ethtool.pauseparam.report_stats_rx) in nsim_get_pause_stats()
18 if (ns->ethtool.pauseparam.report_stats_tx) in nsim_get_pause_stats()
28 pause->rx_pause = ns->ethtool.pauseparam.rx; in nsim_get_pauseparam()
29 pause->tx_pause = ns->ethtool.pauseparam.tx; in nsim_get_pauseparam()
40 ns->ethtool.pauseparam.rx = pause->rx_pause; in nsim_set_pauseparam()
41 ns->ethtool.pauseparam.tx = pause->tx_pause; in nsim_set_pauseparam()
151 &ns->ethtool.pauseparam.report_stats_rx); in nsim_ethtool_init()
153 &ns->ethtool.pauseparam.report_stats_tx); in nsim_ethtool_init()
Dnetdevsim.h65 struct nsim_ethtool_pauseparam pauseparam; member
/Linux-v5.15/net/ethtool/
Dpause.c12 struct ethtool_pauseparam pauseparam; member
41 dev->ethtool_ops->get_pauseparam(dev, &data->pauseparam); in pause_prepare_data()
104 const struct ethtool_pauseparam *pauseparam = &data->pauseparam; in pause_fill_reply() local
106 if (nla_put_u8(skb, ETHTOOL_A_PAUSE_AUTONEG, !!pauseparam->autoneg) || in pause_fill_reply()
107 nla_put_u8(skb, ETHTOOL_A_PAUSE_RX, !!pauseparam->rx_pause) || in pause_fill_reply()
108 nla_put_u8(skb, ETHTOOL_A_PAUSE_TX, !!pauseparam->tx_pause)) in pause_fill_reply()
Dioctl.c1834 struct ethtool_pauseparam pauseparam = { .cmd = ETHTOOL_GPAUSEPARAM }; in ethtool_get_pauseparam() local
1839 dev->ethtool_ops->get_pauseparam(dev, &pauseparam); in ethtool_get_pauseparam()
1841 if (copy_to_user(useraddr, &pauseparam, sizeof(pauseparam))) in ethtool_get_pauseparam()
1848 struct ethtool_pauseparam pauseparam; in ethtool_set_pauseparam() local
1854 if (copy_from_user(&pauseparam, useraddr, sizeof(pauseparam))) in ethtool_set_pauseparam()
1857 ret = dev->ethtool_ops->set_pauseparam(dev, &pauseparam); in ethtool_set_pauseparam()
/Linux-v5.15/drivers/net/ethernet/brocade/bna/
Dbnad_ethtool.c498 struct ethtool_pauseparam *pauseparam) in bnad_get_pauseparam() argument
502 pauseparam->autoneg = 0; in bnad_get_pauseparam()
503 pauseparam->rx_pause = bnad->bna.enet.pause_config.rx_pause; in bnad_get_pauseparam()
504 pauseparam->tx_pause = bnad->bna.enet.pause_config.tx_pause; in bnad_get_pauseparam()
509 struct ethtool_pauseparam *pauseparam) in bnad_set_pauseparam() argument
515 if (pauseparam->autoneg == AUTONEG_ENABLE) in bnad_set_pauseparam()
519 if (pauseparam->rx_pause != bnad->bna.enet.pause_config.rx_pause || in bnad_set_pauseparam()
520 pauseparam->tx_pause != bnad->bna.enet.pause_config.tx_pause) { in bnad_set_pauseparam()
521 pause_config.rx_pause = pauseparam->rx_pause; in bnad_set_pauseparam()
522 pause_config.tx_pause = pauseparam->tx_pause; in bnad_set_pauseparam()
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/
Den_ethtool.c1383 struct ethtool_pauseparam *pauseparam) in mlx5e_ethtool_get_pauseparam() argument
1388 err = mlx5_query_port_pause(mdev, &pauseparam->rx_pause, in mlx5e_ethtool_get_pauseparam()
1389 &pauseparam->tx_pause); in mlx5e_ethtool_get_pauseparam()
1397 struct ethtool_pauseparam *pauseparam) in mlx5e_get_pauseparam() argument
1401 mlx5e_ethtool_get_pauseparam(priv, pauseparam); in mlx5e_get_pauseparam()
1405 struct ethtool_pauseparam *pauseparam) in mlx5e_ethtool_set_pauseparam() argument
1413 if (pauseparam->autoneg) in mlx5e_ethtool_set_pauseparam()
1417 pauseparam->rx_pause ? 1 : 0, in mlx5e_ethtool_set_pauseparam()
1418 pauseparam->tx_pause ? 1 : 0); in mlx5e_ethtool_set_pauseparam()
1428 struct ethtool_pauseparam *pauseparam) in mlx5e_set_pauseparam() argument
[all …]
Den.h1100 struct ethtool_pauseparam *pauseparam);
1102 struct ethtool_pauseparam *pauseparam);
/Linux-v5.15/drivers/net/ethernet/chelsio/cxgb4vf/
Dcxgb4vf_main.c1689 struct ethtool_pauseparam *pauseparam) in cxgb4vf_get_pauseparam() argument
1693 pauseparam->autoneg = (pi->link_cfg.requested_fc & PAUSE_AUTONEG) != 0; in cxgb4vf_get_pauseparam()
1694 pauseparam->rx_pause = (pi->link_cfg.advertised_fc & PAUSE_RX) != 0; in cxgb4vf_get_pauseparam()
1695 pauseparam->tx_pause = (pi->link_cfg.advertised_fc & PAUSE_TX) != 0; in cxgb4vf_get_pauseparam()