Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/netdevsim/
H A 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()
197 &ns->ethtool.pauseparam.report_stats_rx); in nsim_ethtool_init()
199 &ns->ethtool.pauseparam.report_stats_tx); in nsim_ethtool_init()
H A Dnetdevsim.h87 struct nsim_ethtool_pauseparam pauseparam; member
/openbmc/linux/net/ethtool/
H A Dpause.c16 struct ethtool_pauseparam pauseparam; member
82 dev->ethtool_ops->get_pauseparam(dev, &data->pauseparam); in pause_prepare_data()
149 const struct ethtool_pauseparam *pauseparam = &data->pauseparam; in pause_fill_reply() local
151 if (nla_put_u8(skb, ETHTOOL_A_PAUSE_AUTONEG, !!pauseparam->autoneg) || in pause_fill_reply()
152 nla_put_u8(skb, ETHTOOL_A_PAUSE_RX, !!pauseparam->rx_pause) || in pause_fill_reply()
153 nla_put_u8(skb, ETHTOOL_A_PAUSE_TX, !!pauseparam->tx_pause)) in pause_fill_reply()
H A Dioctl.c1873 struct ethtool_pauseparam pauseparam = { .cmd = ETHTOOL_GPAUSEPARAM }; in ethtool_get_pauseparam() local
1878 dev->ethtool_ops->get_pauseparam(dev, &pauseparam); in ethtool_get_pauseparam()
1880 if (copy_to_user(useraddr, &pauseparam, sizeof(pauseparam))) in ethtool_get_pauseparam()
1887 struct ethtool_pauseparam pauseparam; in ethtool_set_pauseparam() local
1893 if (copy_from_user(&pauseparam, useraddr, sizeof(pauseparam))) in ethtool_set_pauseparam()
1896 ret = dev->ethtool_ops->set_pauseparam(dev, &pauseparam); in ethtool_set_pauseparam()
/openbmc/linux/drivers/net/ethernet/brocade/bna/
H A Dbnad_ethtool.c502 struct ethtool_pauseparam *pauseparam) in bnad_get_pauseparam() argument
506 pauseparam->autoneg = 0; in bnad_get_pauseparam()
507 pauseparam->rx_pause = bnad->bna.enet.pause_config.rx_pause; in bnad_get_pauseparam()
508 pauseparam->tx_pause = bnad->bna.enet.pause_config.tx_pause; in bnad_get_pauseparam()
513 struct ethtool_pauseparam *pauseparam) in bnad_set_pauseparam() argument
519 if (pauseparam->autoneg == AUTONEG_ENABLE) in bnad_set_pauseparam()
523 if (pauseparam->rx_pause != bnad->bna.enet.pause_config.rx_pause || in bnad_set_pauseparam()
524 pauseparam->tx_pause != bnad->bna.enet.pause_config.tx_pause) { in bnad_set_pauseparam()
525 pause_config.rx_pause = pauseparam->rx_pause; in bnad_set_pauseparam()
526 pause_config.tx_pause = pauseparam->tx_pause; in bnad_set_pauseparam()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_ethtool.c1440 struct ethtool_pauseparam *pauseparam) in mlx5e_ethtool_get_pauseparam() argument
1445 err = mlx5_query_port_pause(mdev, &pauseparam->rx_pause, in mlx5e_ethtool_get_pauseparam()
1446 &pauseparam->tx_pause); in mlx5e_ethtool_get_pauseparam()
1454 struct ethtool_pauseparam *pauseparam) in mlx5e_get_pauseparam() argument
1458 mlx5e_ethtool_get_pauseparam(priv, pauseparam); in mlx5e_get_pauseparam()
1462 struct ethtool_pauseparam *pauseparam) in mlx5e_ethtool_set_pauseparam() argument
1470 if (pauseparam->autoneg) in mlx5e_ethtool_set_pauseparam()
1474 pauseparam->rx_pause ? 1 : 0, in mlx5e_ethtool_set_pauseparam()
1475 pauseparam->tx_pause ? 1 : 0); in mlx5e_ethtool_set_pauseparam()
1485 struct ethtool_pauseparam *pauseparam) in mlx5e_set_pauseparam() argument
[all …]
H A Den.h1178 struct ethtool_pauseparam *pauseparam);
1180 struct ethtool_pauseparam *pauseparam);
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4vf/
H A Dcxgb4vf_main.c1693 struct ethtool_pauseparam *pauseparam) in cxgb4vf_get_pauseparam() argument
1697 pauseparam->autoneg = (pi->link_cfg.requested_fc & PAUSE_AUTONEG) != 0; in cxgb4vf_get_pauseparam()
1698 pauseparam->rx_pause = (pi->link_cfg.advertised_fc & PAUSE_RX) != 0; in cxgb4vf_get_pauseparam()
1699 pauseparam->tx_pause = (pi->link_cfg.advertised_fc & PAUSE_TX) != 0; in cxgb4vf_get_pauseparam()