Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/net/ethtool/
Dpause.c12 struct ethtool_pauseparam pauseparam; member
47 dev->ethtool_ops->get_pauseparam(dev, &data->pauseparam); in pause_prepare_data()
109 const struct ethtool_pauseparam *pauseparam = &data->pauseparam; in pause_fill_reply() local
111 if (nla_put_u8(skb, ETHTOOL_A_PAUSE_AUTONEG, !!pauseparam->autoneg) || in pause_fill_reply()
112 nla_put_u8(skb, ETHTOOL_A_PAUSE_RX, !!pauseparam->rx_pause) || in pause_fill_reply()
113 nla_put_u8(skb, ETHTOOL_A_PAUSE_TX, !!pauseparam->tx_pause)) in pause_fill_reply()
Dioctl.c1824 struct ethtool_pauseparam pauseparam = { .cmd = ETHTOOL_GPAUSEPARAM }; in ethtool_get_pauseparam() local
1829 dev->ethtool_ops->get_pauseparam(dev, &pauseparam); in ethtool_get_pauseparam()
1831 if (copy_to_user(useraddr, &pauseparam, sizeof(pauseparam))) in ethtool_get_pauseparam()
1838 struct ethtool_pauseparam pauseparam; in ethtool_set_pauseparam() local
1844 if (copy_from_user(&pauseparam, useraddr, sizeof(pauseparam))) in ethtool_set_pauseparam()
1847 ret = dev->ethtool_ops->set_pauseparam(dev, &pauseparam); in ethtool_set_pauseparam()
/kernel/linux/linux-5.10/drivers/net/ethernet/brocade/bna/
Dbnad_ethtool.c494 struct ethtool_pauseparam *pauseparam) in bnad_get_pauseparam() argument
498 pauseparam->autoneg = 0; in bnad_get_pauseparam()
499 pauseparam->rx_pause = bnad->bna.enet.pause_config.rx_pause; in bnad_get_pauseparam()
500 pauseparam->tx_pause = bnad->bna.enet.pause_config.tx_pause; in bnad_get_pauseparam()
505 struct ethtool_pauseparam *pauseparam) in bnad_set_pauseparam() argument
511 if (pauseparam->autoneg == AUTONEG_ENABLE) in bnad_set_pauseparam()
515 if (pauseparam->rx_pause != bnad->bna.enet.pause_config.rx_pause || in bnad_set_pauseparam()
516 pauseparam->tx_pause != bnad->bna.enet.pause_config.tx_pause) { in bnad_set_pauseparam()
517 pause_config.rx_pause = pauseparam->rx_pause; in bnad_set_pauseparam()
518 pause_config.tx_pause = pauseparam->tx_pause; in bnad_set_pauseparam()
/kernel/linux/linux-5.10/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_rep.c299 struct ethtool_pauseparam *pauseparam) in mlx5e_uplink_rep_get_pauseparam() argument
303 mlx5e_ethtool_get_pauseparam(priv, pauseparam); in mlx5e_uplink_rep_get_pauseparam()
307 struct ethtool_pauseparam *pauseparam) in mlx5e_uplink_rep_set_pauseparam() argument
311 return mlx5e_ethtool_set_pauseparam(priv, pauseparam); in mlx5e_uplink_rep_set_pauseparam()
Den.h1069 struct ethtool_pauseparam *pauseparam);
1071 struct ethtool_pauseparam *pauseparam);
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4vf/
Dcxgb4vf_main.c1685 struct ethtool_pauseparam *pauseparam) in cxgb4vf_get_pauseparam() argument
1689 pauseparam->autoneg = (pi->link_cfg.requested_fc & PAUSE_AUTONEG) != 0; in cxgb4vf_get_pauseparam()
1690 pauseparam->rx_pause = (pi->link_cfg.advertised_fc & PAUSE_RX) != 0; in cxgb4vf_get_pauseparam()
1691 pauseparam->tx_pause = (pi->link_cfg.advertised_fc & PAUSE_TX) != 0; in cxgb4vf_get_pauseparam()