Lines Matching refs:coalesce
312 bnad_get_coalesce(struct net_device *netdev, struct ethtool_coalesce *coalesce) in bnad_get_coalesce() argument
319 coalesce->use_adaptive_rx_coalesce = in bnad_get_coalesce()
323 coalesce->rx_coalesce_usecs = bnad->rx_coalescing_timeo * in bnad_get_coalesce()
325 coalesce->tx_coalesce_usecs = bnad->tx_coalescing_timeo * in bnad_get_coalesce()
327 coalesce->tx_max_coalesced_frames = BFI_TX_INTERPKT_COUNT; in bnad_get_coalesce()
333 bnad_set_coalesce(struct net_device *netdev, struct ethtool_coalesce *coalesce) in bnad_set_coalesce() argument
339 if (coalesce->rx_coalesce_usecs == 0 || in bnad_set_coalesce()
340 coalesce->rx_coalesce_usecs > in bnad_set_coalesce()
344 if (coalesce->tx_coalesce_usecs == 0 || in bnad_set_coalesce()
345 coalesce->tx_coalesce_usecs > in bnad_set_coalesce()
356 if (coalesce->use_adaptive_rx_coalesce) { in bnad_set_coalesce()
378 if (bnad->tx_coalescing_timeo != coalesce->tx_coalesce_usecs / in bnad_set_coalesce()
380 bnad->tx_coalescing_timeo = coalesce->tx_coalesce_usecs / in bnad_set_coalesce()
385 if (bnad->rx_coalescing_timeo != coalesce->rx_coalesce_usecs / in bnad_set_coalesce()
387 bnad->rx_coalescing_timeo = coalesce->rx_coalesce_usecs / in bnad_set_coalesce()