Lines Matching defs:coal

632 				struct ethtool_coalesce *coal, u16 queue)
653 coal->rx_coalesce_usecs = rx_intr_coal_info->coalesce_timer_cfg *
656 coal->rx_max_coalesced_frames = rx_intr_coal_info->pending_limt *
658 coal->tx_coalesce_usecs = tx_intr_coal_info->coalesce_timer_cfg *
660 coal->tx_max_coalesced_frames = tx_intr_coal_info->pending_limt *
666 static int is_coalesce_exceed_limit(const struct ethtool_coalesce *coal)
668 if (coal->rx_coalesce_usecs > COALESCE_MAX_TIMER_CFG ||
669 coal->rx_max_coalesced_frames > COALESCE_MAX_PENDING_LIMIT ||
670 coal->tx_coalesce_usecs > COALESCE_MAX_TIMER_CFG ||
671 coal->tx_max_coalesced_frames > COALESCE_MAX_PENDING_LIMIT)
678 struct hinic_intr_coal_info *coal,
690 intr_coal->coalesce_timer_cfg = coal->coalesce_timer_cfg;
691 intr_coal->pending_limt = coal->pending_limt;
746 struct ethtool_coalesce *coal, u16 queue)
755 err = is_coalesce_exceed_limit(coal);
759 if (coal->rx_coalesce_usecs || coal->rx_max_coalesced_frames) {
761 (u8)(coal->rx_coalesce_usecs / COALESCE_TIMER_CFG_UNIT);
762 rx_intr_coal.pending_limt = (u8)(coal->rx_max_coalesced_frames /
767 if (coal->tx_coalesce_usecs || coal->tx_max_coalesced_frames) {
769 (u8)(coal->tx_coalesce_usecs / COALESCE_TIMER_CFG_UNIT);
770 tx_intr_coal.pending_limt = (u8)(coal->tx_max_coalesced_frames /
799 struct ethtool_coalesce *coal,
803 return __hinic_get_coalesce(netdev, coal, COALESCE_ALL_QUEUE);
807 struct ethtool_coalesce *coal,
811 return __hinic_set_coalesce(netdev, coal, COALESCE_ALL_QUEUE);
815 struct ethtool_coalesce *coal)
817 return __hinic_get_coalesce(netdev, coal, queue);
821 struct ethtool_coalesce *coal)
823 return __hinic_set_coalesce(netdev, coal, queue);