Searched refs:pauseparam (Results 1 – 8 of 8) sorted by relevance
/linux-6.3-rc2/drivers/net/netdevsim/ |
A D | ethtool.c | 16 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() 186 &ns->ethtool.pauseparam.report_stats_rx); in nsim_ethtool_init() 188 &ns->ethtool.pauseparam.report_stats_tx); in nsim_ethtool_init()
|
A D | netdevsim.h | 66 struct nsim_ethtool_pauseparam pauseparam; member
|
/linux-6.3-rc2/net/ethtool/ |
A D | pause.c | 16 struct ethtool_pauseparam pauseparam; member 83 dev->ethtool_ops->get_pauseparam(dev, &data->pauseparam); in pause_prepare_data() 150 const struct ethtool_pauseparam *pauseparam = &data->pauseparam; in pause_fill_reply() local 152 if (nla_put_u8(skb, ETHTOOL_A_PAUSE_AUTONEG, !!pauseparam->autoneg) || in pause_fill_reply() 153 nla_put_u8(skb, ETHTOOL_A_PAUSE_RX, !!pauseparam->rx_pause) || in pause_fill_reply() 154 nla_put_u8(skb, ETHTOOL_A_PAUSE_TX, !!pauseparam->tx_pause)) in pause_fill_reply()
|
A D | ioctl.c | 1857 struct ethtool_pauseparam pauseparam = { .cmd = ETHTOOL_GPAUSEPARAM }; in ethtool_get_pauseparam() local 1862 dev->ethtool_ops->get_pauseparam(dev, &pauseparam); in ethtool_get_pauseparam() 1864 if (copy_to_user(useraddr, &pauseparam, sizeof(pauseparam))) in ethtool_get_pauseparam() 1871 struct ethtool_pauseparam pauseparam; in ethtool_set_pauseparam() local 1877 if (copy_from_user(&pauseparam, useraddr, sizeof(pauseparam))) in ethtool_set_pauseparam() 1880 ret = dev->ethtool_ops->set_pauseparam(dev, &pauseparam); in ethtool_set_pauseparam()
|
/linux-6.3-rc2/drivers/net/ethernet/brocade/bna/ |
A D | bnad_ethtool.c | 502 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()
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/ |
A D | en_ethtool.c | 1420 struct ethtool_pauseparam *pauseparam) in mlx5e_ethtool_get_pauseparam() argument 1425 err = mlx5_query_port_pause(mdev, &pauseparam->rx_pause, in mlx5e_ethtool_get_pauseparam() 1426 &pauseparam->tx_pause); in mlx5e_ethtool_get_pauseparam() 1434 struct ethtool_pauseparam *pauseparam) in mlx5e_get_pauseparam() argument 1438 mlx5e_ethtool_get_pauseparam(priv, pauseparam); in mlx5e_get_pauseparam() 1442 struct ethtool_pauseparam *pauseparam) in mlx5e_ethtool_set_pauseparam() argument 1450 if (pauseparam->autoneg) in mlx5e_ethtool_set_pauseparam() 1454 pauseparam->rx_pause ? 1 : 0, in mlx5e_ethtool_set_pauseparam() 1455 pauseparam->tx_pause ? 1 : 0); in mlx5e_ethtool_set_pauseparam() 1465 struct ethtool_pauseparam *pauseparam) in mlx5e_set_pauseparam() argument [all …]
|
A D | en.h | 1215 struct ethtool_pauseparam *pauseparam); 1217 struct ethtool_pauseparam *pauseparam);
|
/linux-6.3-rc2/drivers/net/ethernet/chelsio/cxgb4vf/ |
A D | cxgb4vf_main.c | 1693 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()
|
Completed in 37 milliseconds