Searched refs:pauseparam (Results 1 – 7 of 7) sorted by relevance
/linux-6.12.1/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() 193 ns->ethtool.pauseparam.report_stats_rx = true; in nsim_ethtool_init() 194 ns->ethtool.pauseparam.report_stats_tx = true; in nsim_ethtool_init() 208 &ns->ethtool.pauseparam.report_stats_rx); in nsim_ethtool_init() 210 &ns->ethtool.pauseparam.report_stats_tx); in nsim_ethtool_init()
|
D | netdevsim.h | 87 struct nsim_ethtool_pauseparam pauseparam; member
|
/linux-6.12.1/net/ethtool/ |
D | pause.c | 16 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()
|
D | ioctl.c | 2143 struct ethtool_pauseparam pauseparam = { .cmd = ETHTOOL_GPAUSEPARAM }; in ethtool_get_pauseparam() local 2148 dev->ethtool_ops->get_pauseparam(dev, &pauseparam); in ethtool_get_pauseparam() 2150 if (copy_to_user(useraddr, &pauseparam, sizeof(pauseparam))) in ethtool_get_pauseparam() 2157 struct ethtool_pauseparam pauseparam; in ethtool_set_pauseparam() local 2163 if (copy_from_user(&pauseparam, useraddr, sizeof(pauseparam))) in ethtool_set_pauseparam() 2166 ret = dev->ethtool_ops->set_pauseparam(dev, &pauseparam); in ethtool_set_pauseparam()
|
/linux-6.12.1/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.12.1/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_ethtool.c | 1611 struct ethtool_pauseparam *pauseparam) in mlx5e_ethtool_get_pauseparam() argument 1616 err = mlx5_query_port_pause(mdev, &pauseparam->rx_pause, in mlx5e_ethtool_get_pauseparam() 1617 &pauseparam->tx_pause); in mlx5e_ethtool_get_pauseparam() 1625 struct ethtool_pauseparam *pauseparam) in mlx5e_get_pauseparam() argument 1629 mlx5e_ethtool_get_pauseparam(priv, pauseparam); in mlx5e_get_pauseparam() 1633 struct ethtool_pauseparam *pauseparam) in mlx5e_ethtool_set_pauseparam() argument 1641 if (pauseparam->autoneg) in mlx5e_ethtool_set_pauseparam() 1645 pauseparam->rx_pause ? 1 : 0, in mlx5e_ethtool_set_pauseparam() 1646 pauseparam->tx_pause ? 1 : 0); in mlx5e_ethtool_set_pauseparam() 1656 struct ethtool_pauseparam *pauseparam) in mlx5e_set_pauseparam() argument [all …]
|
/linux-6.12.1/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()
|