Lines Matching refs:coalesce

2038 	struct ethtool_coalesce coalesce = { .cmd = ETHTOOL_GCOALESCE };  in ethtool_get_coalesce()  local
2045 ret = dev->ethtool_ops->get_coalesce(dev, &coalesce, &kernel_coalesce, in ethtool_get_coalesce()
2050 if (copy_to_user(useraddr, &coalesce, sizeof(coalesce))) in ethtool_get_coalesce()
2057 struct ethtool_coalesce *coalesce) in ethtool_set_coalesce_supported() argument
2062 if (coalesce->rx_coalesce_usecs) in ethtool_set_coalesce_supported()
2064 if (coalesce->rx_max_coalesced_frames) in ethtool_set_coalesce_supported()
2066 if (coalesce->rx_coalesce_usecs_irq) in ethtool_set_coalesce_supported()
2068 if (coalesce->rx_max_coalesced_frames_irq) in ethtool_set_coalesce_supported()
2070 if (coalesce->tx_coalesce_usecs) in ethtool_set_coalesce_supported()
2072 if (coalesce->tx_max_coalesced_frames) in ethtool_set_coalesce_supported()
2074 if (coalesce->tx_coalesce_usecs_irq) in ethtool_set_coalesce_supported()
2076 if (coalesce->tx_max_coalesced_frames_irq) in ethtool_set_coalesce_supported()
2078 if (coalesce->stats_block_coalesce_usecs) in ethtool_set_coalesce_supported()
2080 if (coalesce->use_adaptive_rx_coalesce) in ethtool_set_coalesce_supported()
2082 if (coalesce->use_adaptive_tx_coalesce) in ethtool_set_coalesce_supported()
2084 if (coalesce->pkt_rate_low) in ethtool_set_coalesce_supported()
2086 if (coalesce->rx_coalesce_usecs_low) in ethtool_set_coalesce_supported()
2088 if (coalesce->rx_max_coalesced_frames_low) in ethtool_set_coalesce_supported()
2090 if (coalesce->tx_coalesce_usecs_low) in ethtool_set_coalesce_supported()
2092 if (coalesce->tx_max_coalesced_frames_low) in ethtool_set_coalesce_supported()
2094 if (coalesce->pkt_rate_high) in ethtool_set_coalesce_supported()
2096 if (coalesce->rx_coalesce_usecs_high) in ethtool_set_coalesce_supported()
2098 if (coalesce->rx_max_coalesced_frames_high) in ethtool_set_coalesce_supported()
2100 if (coalesce->tx_coalesce_usecs_high) in ethtool_set_coalesce_supported()
2102 if (coalesce->tx_max_coalesced_frames_high) in ethtool_set_coalesce_supported()
2104 if (coalesce->rate_sample_interval) in ethtool_set_coalesce_supported()
2114 struct ethtool_coalesce coalesce; in ethtool_set_coalesce() local
2120 ret = dev->ethtool_ops->get_coalesce(dev, &coalesce, &kernel_coalesce, in ethtool_set_coalesce()
2125 if (copy_from_user(&coalesce, useraddr, sizeof(coalesce))) in ethtool_set_coalesce()
2128 if (!ethtool_set_coalesce_supported(dev, &coalesce)) in ethtool_set_coalesce()
2131 ret = dev->ethtool_ops->set_coalesce(dev, &coalesce, &kernel_coalesce, in ethtool_set_coalesce()
2943 struct ethtool_coalesce coalesce = { .cmd = ETHTOOL_GCOALESCE }; in ethtool_get_per_queue_coalesce() local
2945 ret = dev->ethtool_ops->get_per_queue_coalesce(dev, bit, &coalesce); in ethtool_get_per_queue_coalesce()
2948 if (copy_to_user(useraddr, &coalesce, sizeof(coalesce))) in ethtool_get_per_queue_coalesce()
2950 useraddr += sizeof(coalesce); in ethtool_get_per_queue_coalesce()
2980 struct ethtool_coalesce coalesce; in ethtool_set_per_queue_coalesce() local
2988 if (copy_from_user(&coalesce, useraddr, sizeof(coalesce))) { in ethtool_set_per_queue_coalesce()
2993 if (!ethtool_set_coalesce_supported(dev, &coalesce)) { in ethtool_set_per_queue_coalesce()
2998 ret = dev->ethtool_ops->set_per_queue_coalesce(dev, bit, &coalesce); in ethtool_set_per_queue_coalesce()
3002 useraddr += sizeof(coalesce); in ethtool_set_per_queue_coalesce()