Lines Matching full:channels
14 struct ethtool_channels channels; member
38 dev->ethtool_ops->get_channels(dev, &data->channels); in channels_prepare_data()
62 const struct ethtool_channels *channels = &data->channels; in channels_fill_reply() local
64 if ((channels->max_rx && in channels_fill_reply()
66 channels->max_rx) || in channels_fill_reply()
68 channels->rx_count))) || in channels_fill_reply()
69 (channels->max_tx && in channels_fill_reply()
71 channels->max_tx) || in channels_fill_reply()
73 channels->tx_count))) || in channels_fill_reply()
74 (channels->max_other && in channels_fill_reply()
76 channels->max_other) || in channels_fill_reply()
78 channels->other_count))) || in channels_fill_reply()
79 (channels->max_combined && in channels_fill_reply()
81 channels->max_combined) || in channels_fill_reply()
83 channels->combined_count)))) in channels_fill_reply()
115 struct ethtool_channels channels = {}; in ethnl_set_channels() local
120 dev->ethtool_ops->get_channels(dev, &channels); in ethnl_set_channels()
121 old_total = channels.combined_count + in ethnl_set_channels()
122 max(channels.rx_count, channels.tx_count); in ethnl_set_channels()
124 ethnl_update_u32(&channels.rx_count, tb[ETHTOOL_A_CHANNELS_RX_COUNT], in ethnl_set_channels()
126 ethnl_update_u32(&channels.tx_count, tb[ETHTOOL_A_CHANNELS_TX_COUNT], in ethnl_set_channels()
128 ethnl_update_u32(&channels.other_count, in ethnl_set_channels()
130 ethnl_update_u32(&channels.combined_count, in ethnl_set_channels()
137 if (channels.rx_count > channels.max_rx) in ethnl_set_channels()
139 else if (channels.tx_count > channels.max_tx) in ethnl_set_channels()
141 else if (channels.other_count > channels.max_other) in ethnl_set_channels()
143 else if (channels.combined_count > channels.max_combined) in ethnl_set_channels()
154 if (!channels.combined_count && !channels.rx_count) in ethnl_set_channels()
156 else if (!channels.combined_count && !channels.tx_count) in ethnl_set_channels()
168 ret = ethtool_check_max_channel(dev, channels, info); in ethnl_set_channels()
172 /* Disabling channels, query zero-copy AF_XDP sockets */ in ethnl_set_channels()
173 from_channel = channels.combined_count + in ethnl_set_channels()
174 min(channels.rx_count, channels.tx_count); in ethnl_set_channels()
181 ret = dev->ethtool_ops->set_channels(dev, &channels); in ethnl_set_channels()