Lines Matching refs:coalesce
1516 struct ethtool_coalesce coalesce = { .cmd = ETHTOOL_GCOALESCE }; in ethtool_get_coalesce() local
1522 ret = dev->ethtool_ops->get_coalesce(dev, &coalesce); in ethtool_get_coalesce()
1526 if (copy_to_user(useraddr, &coalesce, sizeof(coalesce))) in ethtool_get_coalesce()
1533 struct ethtool_coalesce *coalesce) in ethtool_set_coalesce_supported() argument
1538 if (coalesce->rx_coalesce_usecs) in ethtool_set_coalesce_supported()
1540 if (coalesce->rx_max_coalesced_frames) in ethtool_set_coalesce_supported()
1542 if (coalesce->rx_coalesce_usecs_irq) in ethtool_set_coalesce_supported()
1544 if (coalesce->rx_max_coalesced_frames_irq) in ethtool_set_coalesce_supported()
1546 if (coalesce->tx_coalesce_usecs) in ethtool_set_coalesce_supported()
1548 if (coalesce->tx_max_coalesced_frames) in ethtool_set_coalesce_supported()
1550 if (coalesce->tx_coalesce_usecs_irq) in ethtool_set_coalesce_supported()
1552 if (coalesce->tx_max_coalesced_frames_irq) in ethtool_set_coalesce_supported()
1554 if (coalesce->stats_block_coalesce_usecs) in ethtool_set_coalesce_supported()
1556 if (coalesce->use_adaptive_rx_coalesce) in ethtool_set_coalesce_supported()
1558 if (coalesce->use_adaptive_tx_coalesce) in ethtool_set_coalesce_supported()
1560 if (coalesce->pkt_rate_low) in ethtool_set_coalesce_supported()
1562 if (coalesce->rx_coalesce_usecs_low) in ethtool_set_coalesce_supported()
1564 if (coalesce->rx_max_coalesced_frames_low) in ethtool_set_coalesce_supported()
1566 if (coalesce->tx_coalesce_usecs_low) in ethtool_set_coalesce_supported()
1568 if (coalesce->tx_max_coalesced_frames_low) in ethtool_set_coalesce_supported()
1570 if (coalesce->pkt_rate_high) in ethtool_set_coalesce_supported()
1572 if (coalesce->rx_coalesce_usecs_high) in ethtool_set_coalesce_supported()
1574 if (coalesce->rx_max_coalesced_frames_high) in ethtool_set_coalesce_supported()
1576 if (coalesce->tx_coalesce_usecs_high) in ethtool_set_coalesce_supported()
1578 if (coalesce->tx_max_coalesced_frames_high) in ethtool_set_coalesce_supported()
1580 if (coalesce->rate_sample_interval) in ethtool_set_coalesce_supported()
1589 struct ethtool_coalesce coalesce; in ethtool_set_coalesce() local
1595 if (copy_from_user(&coalesce, useraddr, sizeof(coalesce))) in ethtool_set_coalesce()
1598 if (!ethtool_set_coalesce_supported(dev, &coalesce)) in ethtool_set_coalesce()
1601 ret = dev->ethtool_ops->set_coalesce(dev, &coalesce); in ethtool_set_coalesce()
2343 struct ethtool_coalesce coalesce = { .cmd = ETHTOOL_GCOALESCE }; in ethtool_get_per_queue_coalesce() local
2345 ret = dev->ethtool_ops->get_per_queue_coalesce(dev, bit, &coalesce); in ethtool_get_per_queue_coalesce()
2348 if (copy_to_user(useraddr, &coalesce, sizeof(coalesce))) in ethtool_get_per_queue_coalesce()
2350 useraddr += sizeof(coalesce); in ethtool_get_per_queue_coalesce()
2380 struct ethtool_coalesce coalesce; in ethtool_set_per_queue_coalesce() local
2388 if (copy_from_user(&coalesce, useraddr, sizeof(coalesce))) { in ethtool_set_per_queue_coalesce()
2393 if (!ethtool_set_coalesce_supported(dev, &coalesce)) { in ethtool_set_per_queue_coalesce()
2398 ret = dev->ethtool_ops->set_per_queue_coalesce(dev, bit, &coalesce); in ethtool_set_per_queue_coalesce()
2402 useraddr += sizeof(coalesce); in ethtool_set_per_queue_coalesce()