• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/net/

Lines Matching defs:cvals

51 static int gfar_gcoalesce(struct net_device *dev, struct ethtool_coalesce *cvals);
52 static int gfar_scoalesce(struct net_device *dev, struct ethtool_coalesce *cvals);
284 /* Get the coalescing parameters, and put them in the cvals
286 static int gfar_gcoalesce(struct net_device *dev, struct ethtool_coalesce *cvals)
309 cvals->rx_coalesce_usecs = gfar_ticks2usecs(priv, rxtime);
310 cvals->rx_max_coalesced_frames = rxcount;
312 cvals->tx_coalesce_usecs = gfar_ticks2usecs(priv, txtime);
313 cvals->tx_max_coalesced_frames = txcount;
315 cvals->use_adaptive_rx_coalesce = 0;
316 cvals->use_adaptive_tx_coalesce = 0;
318 cvals->pkt_rate_low = 0;
319 cvals->rx_coalesce_usecs_low = 0;
320 cvals->rx_max_coalesced_frames_low = 0;
321 cvals->tx_coalesce_usecs_low = 0;
322 cvals->tx_max_coalesced_frames_low = 0;
333 cvals->pkt_rate_high = 0;
334 cvals->rx_coalesce_usecs_high = 0;
335 cvals->rx_max_coalesced_frames_high = 0;
336 cvals->tx_coalesce_usecs_high = 0;
337 cvals->tx_max_coalesced_frames_high = 0;
342 cvals->rate_sample_interval = 0;
348 * Both cvals->*_usecs and cvals->*_frames have to be > 0
351 static int gfar_scoalesce(struct net_device *dev, struct ethtool_coalesce *cvals)
363 if ((cvals->rx_coalesce_usecs == 0) ||
364 (cvals->rx_max_coalesced_frames == 0)) {
376 if (cvals->rx_coalesce_usecs > GFAR_MAX_COAL_USECS) {
382 if (cvals->rx_max_coalesced_frames > GFAR_MAX_COAL_FRAMES) {
390 cvals->rx_max_coalesced_frames,
391 gfar_usecs2ticks(priv, cvals->rx_coalesce_usecs));
395 if ((cvals->tx_coalesce_usecs == 0) ||
396 (cvals->tx_max_coalesced_frames == 0)) {
405 if (cvals->tx_coalesce_usecs > GFAR_MAX_COAL_USECS) {
411 if (cvals->tx_max_coalesced_frames > GFAR_MAX_COAL_FRAMES) {
419 cvals->tx_max_coalesced_frames,
420 gfar_usecs2ticks(priv, cvals->tx_coalesce_usecs));