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()
116 struct ethtool_channels channels = {}; in ethnl_set_channels() local
140 ops->get_channels(dev, &channels); in ethnl_set_channels()
141 old_total = channels.combined_count + in ethnl_set_channels()
142 max(channels.rx_count, channels.tx_count); in ethnl_set_channels()
144 ethnl_update_u32(&channels.rx_count, tb[ETHTOOL_A_CHANNELS_RX_COUNT], in ethnl_set_channels()
146 ethnl_update_u32(&channels.tx_count, tb[ETHTOOL_A_CHANNELS_TX_COUNT], in ethnl_set_channels()
148 ethnl_update_u32(&channels.other_count, in ethnl_set_channels()
150 ethnl_update_u32(&channels.combined_count, in ethnl_set_channels()
158 if (channels.rx_count > channels.max_rx) in ethnl_set_channels()
160 else if (channels.tx_count > channels.max_tx) in ethnl_set_channels()
162 else if (channels.other_count > channels.max_other) in ethnl_set_channels()
164 else if (channels.combined_count > channels.max_combined) in ethnl_set_channels()
176 if (!channels.combined_count && !channels.rx_count) in ethnl_set_channels()
178 else if (!channels.combined_count && !channels.tx_count) in ethnl_set_channels()
196 (channels.combined_count + channels.rx_count) <= max_rx_in_use) { in ethnl_set_channels()
202 /* Disabling channels, query zero-copy AF_XDP sockets */ in ethnl_set_channels()
203 from_channel = channels.combined_count + in ethnl_set_channels()
204 min(channels.rx_count, channels.tx_count); in ethnl_set_channels()
212 ret = dev->ethtool_ops->set_channels(dev, &channels); in ethnl_set_channels()