Lines Matching refs:coalesce

1635 	struct ethtool_coalesce coalesce = { .cmd = ETHTOOL_GCOALESCE };  in ethtool_get_coalesce()  local
1642 ret = dev->ethtool_ops->get_coalesce(dev, &coalesce, &kernel_coalesce, in ethtool_get_coalesce()
1647 if (copy_to_user(useraddr, &coalesce, sizeof(coalesce))) in ethtool_get_coalesce()
1654 struct ethtool_coalesce *coalesce) in ethtool_set_coalesce_supported() argument
1659 if (coalesce->rx_coalesce_usecs) in ethtool_set_coalesce_supported()
1661 if (coalesce->rx_max_coalesced_frames) in ethtool_set_coalesce_supported()
1663 if (coalesce->rx_coalesce_usecs_irq) in ethtool_set_coalesce_supported()
1665 if (coalesce->rx_max_coalesced_frames_irq) in ethtool_set_coalesce_supported()
1667 if (coalesce->tx_coalesce_usecs) in ethtool_set_coalesce_supported()
1669 if (coalesce->tx_max_coalesced_frames) in ethtool_set_coalesce_supported()
1671 if (coalesce->tx_coalesce_usecs_irq) in ethtool_set_coalesce_supported()
1673 if (coalesce->tx_max_coalesced_frames_irq) in ethtool_set_coalesce_supported()
1675 if (coalesce->stats_block_coalesce_usecs) in ethtool_set_coalesce_supported()
1677 if (coalesce->use_adaptive_rx_coalesce) in ethtool_set_coalesce_supported()
1679 if (coalesce->use_adaptive_tx_coalesce) in ethtool_set_coalesce_supported()
1681 if (coalesce->pkt_rate_low) in ethtool_set_coalesce_supported()
1683 if (coalesce->rx_coalesce_usecs_low) in ethtool_set_coalesce_supported()
1685 if (coalesce->rx_max_coalesced_frames_low) in ethtool_set_coalesce_supported()
1687 if (coalesce->tx_coalesce_usecs_low) in ethtool_set_coalesce_supported()
1689 if (coalesce->tx_max_coalesced_frames_low) in ethtool_set_coalesce_supported()
1691 if (coalesce->pkt_rate_high) in ethtool_set_coalesce_supported()
1693 if (coalesce->rx_coalesce_usecs_high) in ethtool_set_coalesce_supported()
1695 if (coalesce->rx_max_coalesced_frames_high) in ethtool_set_coalesce_supported()
1697 if (coalesce->tx_coalesce_usecs_high) in ethtool_set_coalesce_supported()
1699 if (coalesce->tx_max_coalesced_frames_high) in ethtool_set_coalesce_supported()
1701 if (coalesce->rate_sample_interval) in ethtool_set_coalesce_supported()
1711 struct ethtool_coalesce coalesce; in ethtool_set_coalesce() local
1717 ret = dev->ethtool_ops->get_coalesce(dev, &coalesce, &kernel_coalesce, in ethtool_set_coalesce()
1722 if (copy_from_user(&coalesce, useraddr, sizeof(coalesce))) in ethtool_set_coalesce()
1725 if (!ethtool_set_coalesce_supported(dev, &coalesce)) in ethtool_set_coalesce()
1728 ret = dev->ethtool_ops->set_coalesce(dev, &coalesce, &kernel_coalesce, in ethtool_set_coalesce()
2486 struct ethtool_coalesce coalesce = { .cmd = ETHTOOL_GCOALESCE }; in ethtool_get_per_queue_coalesce() local
2488 ret = dev->ethtool_ops->get_per_queue_coalesce(dev, bit, &coalesce); in ethtool_get_per_queue_coalesce()
2491 if (copy_to_user(useraddr, &coalesce, sizeof(coalesce))) in ethtool_get_per_queue_coalesce()
2493 useraddr += sizeof(coalesce); in ethtool_get_per_queue_coalesce()
2523 struct ethtool_coalesce coalesce; in ethtool_set_per_queue_coalesce() local
2531 if (copy_from_user(&coalesce, useraddr, sizeof(coalesce))) { in ethtool_set_per_queue_coalesce()
2536 if (!ethtool_set_coalesce_supported(dev, &coalesce)) { in ethtool_set_per_queue_coalesce()
2541 ret = dev->ethtool_ops->set_per_queue_coalesce(dev, bit, &coalesce); in ethtool_set_per_queue_coalesce()
2545 useraddr += sizeof(coalesce); in ethtool_set_per_queue_coalesce()