Lines Matching refs:coal
550 struct ethtool_coalesce *coal, in aq_ethtool_get_coalesce() argument
561 coal->rx_coalesce_usecs = cfg->rx_itr; in aq_ethtool_get_coalesce()
562 coal->tx_coalesce_usecs = cfg->tx_itr; in aq_ethtool_get_coalesce()
563 coal->rx_max_coalesced_frames = 0; in aq_ethtool_get_coalesce()
564 coal->tx_max_coalesced_frames = 0; in aq_ethtool_get_coalesce()
566 coal->rx_coalesce_usecs = 0; in aq_ethtool_get_coalesce()
567 coal->tx_coalesce_usecs = 0; in aq_ethtool_get_coalesce()
568 coal->rx_max_coalesced_frames = 1; in aq_ethtool_get_coalesce()
569 coal->tx_max_coalesced_frames = 1; in aq_ethtool_get_coalesce()
576 struct ethtool_coalesce *coal, in aq_ethtool_set_coalesce() argument
587 if (coal->rx_max_coalesced_frames > 1 || in aq_ethtool_set_coalesce()
588 coal->tx_max_coalesced_frames > 1) in aq_ethtool_set_coalesce()
593 if (!(coal->rx_max_coalesced_frames == !coal->rx_coalesce_usecs)) in aq_ethtool_set_coalesce()
595 if (!(coal->tx_max_coalesced_frames == !coal->tx_coalesce_usecs)) in aq_ethtool_set_coalesce()
598 if (coal->rx_coalesce_usecs > AQ_CFG_INTERRUPT_MODERATION_USEC_MAX || in aq_ethtool_set_coalesce()
599 coal->tx_coalesce_usecs > AQ_CFG_INTERRUPT_MODERATION_USEC_MAX) in aq_ethtool_set_coalesce()
604 cfg->rx_itr = coal->rx_coalesce_usecs; in aq_ethtool_set_coalesce()
605 cfg->tx_itr = coal->tx_coalesce_usecs; in aq_ethtool_set_coalesce()