Lines Matching refs:coalesce

1643 	struct ethtool_coalesce coalesce = { .cmd = ETHTOOL_GCOALESCE };  in ethtool_get_coalesce()  local
1650 ret = dev->ethtool_ops->get_coalesce(dev, &coalesce, &kernel_coalesce, in ethtool_get_coalesce()
1655 if (copy_to_user(useraddr, &coalesce, sizeof(coalesce))) in ethtool_get_coalesce()
1662 struct ethtool_coalesce *coalesce) in ethtool_set_coalesce_supported() argument
1667 if (coalesce->rx_coalesce_usecs) in ethtool_set_coalesce_supported()
1669 if (coalesce->rx_max_coalesced_frames) in ethtool_set_coalesce_supported()
1671 if (coalesce->rx_coalesce_usecs_irq) in ethtool_set_coalesce_supported()
1673 if (coalesce->rx_max_coalesced_frames_irq) in ethtool_set_coalesce_supported()
1675 if (coalesce->tx_coalesce_usecs) in ethtool_set_coalesce_supported()
1677 if (coalesce->tx_max_coalesced_frames) in ethtool_set_coalesce_supported()
1679 if (coalesce->tx_coalesce_usecs_irq) in ethtool_set_coalesce_supported()
1681 if (coalesce->tx_max_coalesced_frames_irq) in ethtool_set_coalesce_supported()
1683 if (coalesce->stats_block_coalesce_usecs) in ethtool_set_coalesce_supported()
1685 if (coalesce->use_adaptive_rx_coalesce) in ethtool_set_coalesce_supported()
1687 if (coalesce->use_adaptive_tx_coalesce) in ethtool_set_coalesce_supported()
1689 if (coalesce->pkt_rate_low) in ethtool_set_coalesce_supported()
1691 if (coalesce->rx_coalesce_usecs_low) in ethtool_set_coalesce_supported()
1693 if (coalesce->rx_max_coalesced_frames_low) in ethtool_set_coalesce_supported()
1695 if (coalesce->tx_coalesce_usecs_low) in ethtool_set_coalesce_supported()
1697 if (coalesce->tx_max_coalesced_frames_low) in ethtool_set_coalesce_supported()
1699 if (coalesce->pkt_rate_high) in ethtool_set_coalesce_supported()
1701 if (coalesce->rx_coalesce_usecs_high) in ethtool_set_coalesce_supported()
1703 if (coalesce->rx_max_coalesced_frames_high) in ethtool_set_coalesce_supported()
1705 if (coalesce->tx_coalesce_usecs_high) in ethtool_set_coalesce_supported()
1707 if (coalesce->tx_max_coalesced_frames_high) in ethtool_set_coalesce_supported()
1709 if (coalesce->rate_sample_interval) in ethtool_set_coalesce_supported()
1719 struct ethtool_coalesce coalesce; in ethtool_set_coalesce() local
1725 ret = dev->ethtool_ops->get_coalesce(dev, &coalesce, &kernel_coalesce, in ethtool_set_coalesce()
1730 if (copy_from_user(&coalesce, useraddr, sizeof(coalesce))) in ethtool_set_coalesce()
1733 if (!ethtool_set_coalesce_supported(dev, &coalesce)) in ethtool_set_coalesce()
1736 ret = dev->ethtool_ops->set_coalesce(dev, &coalesce, &kernel_coalesce, in ethtool_set_coalesce()
2488 struct ethtool_coalesce coalesce = { .cmd = ETHTOOL_GCOALESCE }; in ethtool_get_per_queue_coalesce() local
2490 ret = dev->ethtool_ops->get_per_queue_coalesce(dev, bit, &coalesce); in ethtool_get_per_queue_coalesce()
2493 if (copy_to_user(useraddr, &coalesce, sizeof(coalesce))) in ethtool_get_per_queue_coalesce()
2495 useraddr += sizeof(coalesce); in ethtool_get_per_queue_coalesce()
2525 struct ethtool_coalesce coalesce; in ethtool_set_per_queue_coalesce() local
2533 if (copy_from_user(&coalesce, useraddr, sizeof(coalesce))) { in ethtool_set_per_queue_coalesce()
2538 if (!ethtool_set_coalesce_supported(dev, &coalesce)) { in ethtool_set_per_queue_coalesce()
2543 ret = dev->ethtool_ops->set_per_queue_coalesce(dev, bit, &coalesce); in ethtool_set_per_queue_coalesce()
2547 useraddr += sizeof(coalesce); in ethtool_set_per_queue_coalesce()