Lines Matching refs:coalesce
1621 struct ethtool_coalesce coalesce = { .cmd = ETHTOOL_GCOALESCE }; in ethtool_get_coalesce() local
1628 ret = dev->ethtool_ops->get_coalesce(dev, &coalesce, &kernel_coalesce, in ethtool_get_coalesce()
1633 if (copy_to_user(useraddr, &coalesce, sizeof(coalesce))) in ethtool_get_coalesce()
1640 struct ethtool_coalesce *coalesce) in ethtool_set_coalesce_supported() argument
1645 if (coalesce->rx_coalesce_usecs) in ethtool_set_coalesce_supported()
1647 if (coalesce->rx_max_coalesced_frames) in ethtool_set_coalesce_supported()
1649 if (coalesce->rx_coalesce_usecs_irq) in ethtool_set_coalesce_supported()
1651 if (coalesce->rx_max_coalesced_frames_irq) in ethtool_set_coalesce_supported()
1653 if (coalesce->tx_coalesce_usecs) in ethtool_set_coalesce_supported()
1655 if (coalesce->tx_max_coalesced_frames) in ethtool_set_coalesce_supported()
1657 if (coalesce->tx_coalesce_usecs_irq) in ethtool_set_coalesce_supported()
1659 if (coalesce->tx_max_coalesced_frames_irq) in ethtool_set_coalesce_supported()
1661 if (coalesce->stats_block_coalesce_usecs) in ethtool_set_coalesce_supported()
1663 if (coalesce->use_adaptive_rx_coalesce) in ethtool_set_coalesce_supported()
1665 if (coalesce->use_adaptive_tx_coalesce) in ethtool_set_coalesce_supported()
1667 if (coalesce->pkt_rate_low) in ethtool_set_coalesce_supported()
1669 if (coalesce->rx_coalesce_usecs_low) in ethtool_set_coalesce_supported()
1671 if (coalesce->rx_max_coalesced_frames_low) in ethtool_set_coalesce_supported()
1673 if (coalesce->tx_coalesce_usecs_low) in ethtool_set_coalesce_supported()
1675 if (coalesce->tx_max_coalesced_frames_low) in ethtool_set_coalesce_supported()
1677 if (coalesce->pkt_rate_high) in ethtool_set_coalesce_supported()
1679 if (coalesce->rx_coalesce_usecs_high) in ethtool_set_coalesce_supported()
1681 if (coalesce->rx_max_coalesced_frames_high) in ethtool_set_coalesce_supported()
1683 if (coalesce->tx_coalesce_usecs_high) in ethtool_set_coalesce_supported()
1685 if (coalesce->tx_max_coalesced_frames_high) in ethtool_set_coalesce_supported()
1687 if (coalesce->rate_sample_interval) in ethtool_set_coalesce_supported()
1697 struct ethtool_coalesce coalesce; in ethtool_set_coalesce() local
1703 ret = dev->ethtool_ops->get_coalesce(dev, &coalesce, &kernel_coalesce, in ethtool_set_coalesce()
1708 if (copy_from_user(&coalesce, useraddr, sizeof(coalesce))) in ethtool_set_coalesce()
1711 if (!ethtool_set_coalesce_supported(dev, &coalesce)) in ethtool_set_coalesce()
1714 ret = dev->ethtool_ops->set_coalesce(dev, &coalesce, &kernel_coalesce, in ethtool_set_coalesce()
2471 struct ethtool_coalesce coalesce = { .cmd = ETHTOOL_GCOALESCE }; in ethtool_get_per_queue_coalesce() local
2473 ret = dev->ethtool_ops->get_per_queue_coalesce(dev, bit, &coalesce); in ethtool_get_per_queue_coalesce()
2476 if (copy_to_user(useraddr, &coalesce, sizeof(coalesce))) in ethtool_get_per_queue_coalesce()
2478 useraddr += sizeof(coalesce); in ethtool_get_per_queue_coalesce()
2508 struct ethtool_coalesce coalesce; in ethtool_set_per_queue_coalesce() local
2516 if (copy_from_user(&coalesce, useraddr, sizeof(coalesce))) { in ethtool_set_per_queue_coalesce()
2521 if (!ethtool_set_coalesce_supported(dev, &coalesce)) { in ethtool_set_per_queue_coalesce()
2526 ret = dev->ethtool_ops->set_per_queue_coalesce(dev, bit, &coalesce); in ethtool_set_per_queue_coalesce()
2530 useraddr += sizeof(coalesce); in ethtool_set_per_queue_coalesce()