Searched refs:pauseparam (Results 1 – 2 of 2) sorted by relevance
/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 | 1870 struct ethtool_pauseparam pauseparam = { .cmd = ETHTOOL_GPAUSEPARAM }; in ethtool_get_pauseparam() local 1875 dev->ethtool_ops->get_pauseparam(dev, &pauseparam); in ethtool_get_pauseparam() 1877 if (copy_to_user(useraddr, &pauseparam, sizeof(pauseparam))) in ethtool_get_pauseparam() 1884 struct ethtool_pauseparam pauseparam; in ethtool_set_pauseparam() local 1890 if (copy_from_user(&pauseparam, useraddr, sizeof(pauseparam))) in ethtool_set_pauseparam() 1893 ret = dev->ethtool_ops->set_pauseparam(dev, &pauseparam); in ethtool_set_pauseparam()
|