Searched refs:pauseparam (Results 1 – 8 of 8) sorted by relevance
/linux-6.1.9/drivers/net/netdevsim/ |
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()
|
D | netdevsim.h | 66 struct nsim_ethtool_pauseparam pauseparam; member
|
/linux-6.1.9/net/ethtool/ |
D | pause.c | 12 struct ethtool_pauseparam pauseparam; member 41 dev->ethtool_ops->get_pauseparam(dev, &data->pauseparam); in pause_prepare_data() 103 const struct ethtool_pauseparam *pauseparam = &data->pauseparam; in pause_fill_reply() local 105 if (nla_put_u8(skb, ETHTOOL_A_PAUSE_AUTONEG, !!pauseparam->autoneg) || in pause_fill_reply() 106 nla_put_u8(skb, ETHTOOL_A_PAUSE_RX, !!pauseparam->rx_pause) || in pause_fill_reply() 107 nla_put_u8(skb, ETHTOOL_A_PAUSE_TX, !!pauseparam->tx_pause)) in pause_fill_reply()
|
D | ioctl.c | 1852 struct ethtool_pauseparam pauseparam = { .cmd = ETHTOOL_GPAUSEPARAM }; in ethtool_get_pauseparam() local 1857 dev->ethtool_ops->get_pauseparam(dev, &pauseparam); in ethtool_get_pauseparam() 1859 if (copy_to_user(useraddr, &pauseparam, sizeof(pauseparam))) in ethtool_get_pauseparam() 1866 struct ethtool_pauseparam pauseparam; in ethtool_set_pauseparam() local 1872 if (copy_from_user(&pauseparam, useraddr, sizeof(pauseparam))) in ethtool_set_pauseparam() 1875 ret = dev->ethtool_ops->set_pauseparam(dev, &pauseparam); in ethtool_set_pauseparam()
|
/linux-6.1.9/drivers/net/ethernet/brocade/bna/ |
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.1.9/drivers/net/ethernet/mellanox/mlx5/core/ |
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 …]
|
D | en.h | 1205 struct ethtool_pauseparam *pauseparam); 1207 struct ethtool_pauseparam *pauseparam);
|
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4vf/ |
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()
|