Lines Matching refs:coalesce

1648 	struct ethtool_coalesce coalesce = { .cmd = ETHTOOL_GCOALESCE };  in ethtool_get_coalesce()  local
1655 ret = dev->ethtool_ops->get_coalesce(dev, &coalesce, &kernel_coalesce, in ethtool_get_coalesce()
1660 if (copy_to_user(useraddr, &coalesce, sizeof(coalesce))) in ethtool_get_coalesce()
1667 struct ethtool_coalesce *coalesce) in ethtool_set_coalesce_supported() argument
1672 if (coalesce->rx_coalesce_usecs) in ethtool_set_coalesce_supported()
1674 if (coalesce->rx_max_coalesced_frames) in ethtool_set_coalesce_supported()
1676 if (coalesce->rx_coalesce_usecs_irq) in ethtool_set_coalesce_supported()
1678 if (coalesce->rx_max_coalesced_frames_irq) in ethtool_set_coalesce_supported()
1680 if (coalesce->tx_coalesce_usecs) in ethtool_set_coalesce_supported()
1682 if (coalesce->tx_max_coalesced_frames) in ethtool_set_coalesce_supported()
1684 if (coalesce->tx_coalesce_usecs_irq) in ethtool_set_coalesce_supported()
1686 if (coalesce->tx_max_coalesced_frames_irq) in ethtool_set_coalesce_supported()
1688 if (coalesce->stats_block_coalesce_usecs) in ethtool_set_coalesce_supported()
1690 if (coalesce->use_adaptive_rx_coalesce) in ethtool_set_coalesce_supported()
1692 if (coalesce->use_adaptive_tx_coalesce) in ethtool_set_coalesce_supported()
1694 if (coalesce->pkt_rate_low) in ethtool_set_coalesce_supported()
1696 if (coalesce->rx_coalesce_usecs_low) in ethtool_set_coalesce_supported()
1698 if (coalesce->rx_max_coalesced_frames_low) in ethtool_set_coalesce_supported()
1700 if (coalesce->tx_coalesce_usecs_low) in ethtool_set_coalesce_supported()
1702 if (coalesce->tx_max_coalesced_frames_low) in ethtool_set_coalesce_supported()
1704 if (coalesce->pkt_rate_high) in ethtool_set_coalesce_supported()
1706 if (coalesce->rx_coalesce_usecs_high) in ethtool_set_coalesce_supported()
1708 if (coalesce->rx_max_coalesced_frames_high) in ethtool_set_coalesce_supported()
1710 if (coalesce->tx_coalesce_usecs_high) in ethtool_set_coalesce_supported()
1712 if (coalesce->tx_max_coalesced_frames_high) in ethtool_set_coalesce_supported()
1714 if (coalesce->rate_sample_interval) in ethtool_set_coalesce_supported()
1724 struct ethtool_coalesce coalesce; in ethtool_set_coalesce() local
1730 ret = dev->ethtool_ops->get_coalesce(dev, &coalesce, &kernel_coalesce, in ethtool_set_coalesce()
1735 if (copy_from_user(&coalesce, useraddr, sizeof(coalesce))) in ethtool_set_coalesce()
1738 if (!ethtool_set_coalesce_supported(dev, &coalesce)) in ethtool_set_coalesce()
1741 ret = dev->ethtool_ops->set_coalesce(dev, &coalesce, &kernel_coalesce, in ethtool_set_coalesce()
2538 struct ethtool_coalesce coalesce = { .cmd = ETHTOOL_GCOALESCE }; in ethtool_get_per_queue_coalesce() local
2540 ret = dev->ethtool_ops->get_per_queue_coalesce(dev, bit, &coalesce); in ethtool_get_per_queue_coalesce()
2543 if (copy_to_user(useraddr, &coalesce, sizeof(coalesce))) in ethtool_get_per_queue_coalesce()
2545 useraddr += sizeof(coalesce); in ethtool_get_per_queue_coalesce()
2575 struct ethtool_coalesce coalesce; in ethtool_set_per_queue_coalesce() local
2583 if (copy_from_user(&coalesce, useraddr, sizeof(coalesce))) { in ethtool_set_per_queue_coalesce()
2588 if (!ethtool_set_coalesce_supported(dev, &coalesce)) { in ethtool_set_per_queue_coalesce()
2593 ret = dev->ethtool_ops->set_per_queue_coalesce(dev, bit, &coalesce); in ethtool_set_per_queue_coalesce()
2597 useraddr += sizeof(coalesce); in ethtool_set_per_queue_coalesce()