Lines Matching refs:coal
560 struct ethtool_coalesce *coal, in aq_ethtool_get_coalesce() argument
571 coal->rx_coalesce_usecs = cfg->rx_itr; in aq_ethtool_get_coalesce()
572 coal->tx_coalesce_usecs = cfg->tx_itr; in aq_ethtool_get_coalesce()
573 coal->rx_max_coalesced_frames = 0; in aq_ethtool_get_coalesce()
574 coal->tx_max_coalesced_frames = 0; in aq_ethtool_get_coalesce()
576 coal->rx_coalesce_usecs = 0; in aq_ethtool_get_coalesce()
577 coal->tx_coalesce_usecs = 0; in aq_ethtool_get_coalesce()
578 coal->rx_max_coalesced_frames = 1; in aq_ethtool_get_coalesce()
579 coal->tx_max_coalesced_frames = 1; in aq_ethtool_get_coalesce()
586 struct ethtool_coalesce *coal, in aq_ethtool_set_coalesce() argument
597 if (coal->rx_max_coalesced_frames > 1 || in aq_ethtool_set_coalesce()
598 coal->tx_max_coalesced_frames > 1) in aq_ethtool_set_coalesce()
603 if (!(coal->rx_max_coalesced_frames == !coal->rx_coalesce_usecs)) in aq_ethtool_set_coalesce()
605 if (!(coal->tx_max_coalesced_frames == !coal->tx_coalesce_usecs)) in aq_ethtool_set_coalesce()
608 if (coal->rx_coalesce_usecs > AQ_CFG_INTERRUPT_MODERATION_USEC_MAX || in aq_ethtool_set_coalesce()
609 coal->tx_coalesce_usecs > AQ_CFG_INTERRUPT_MODERATION_USEC_MAX) in aq_ethtool_set_coalesce()
614 cfg->rx_itr = coal->rx_coalesce_usecs; in aq_ethtool_set_coalesce()
615 cfg->tx_itr = coal->tx_coalesce_usecs; in aq_ethtool_set_coalesce()