Lines Matching refs:coal
466 struct ethtool_coalesce *coal, in fun_get_coalesce() argument
472 coal->rx_coalesce_usecs = fp->rx_coal_usec; in fun_get_coalesce()
473 coal->rx_max_coalesced_frames = fp->rx_coal_count; in fun_get_coalesce()
474 coal->use_adaptive_rx_coalesce = !fp->cq_irq_db; in fun_get_coalesce()
475 coal->tx_coalesce_usecs = fp->tx_coal_usec; in fun_get_coalesce()
476 coal->tx_max_coalesced_frames = fp->tx_coal_count; in fun_get_coalesce()
481 struct ethtool_coalesce *coal, in fun_set_coalesce() argument
489 if (coal->rx_coalesce_usecs > FUN_DB_INTCOAL_USEC_M || in fun_set_coalesce()
490 coal->rx_max_coalesced_frames > FUN_DB_INTCOAL_ENTRIES_M || in fun_set_coalesce()
491 (coal->rx_coalesce_usecs | coal->rx_max_coalesced_frames) == 0 || in fun_set_coalesce()
492 coal->tx_coalesce_usecs > FUN_DB_INTCOAL_USEC_M || in fun_set_coalesce()
493 coal->tx_max_coalesced_frames > FUN_DB_INTCOAL_ENTRIES_M || in fun_set_coalesce()
494 (coal->tx_coalesce_usecs | coal->tx_max_coalesced_frames) == 0) in fun_set_coalesce()
498 if ((coal->rx_max_coalesced_frames > 1 && !coal->rx_coalesce_usecs) || in fun_set_coalesce()
499 (coal->tx_max_coalesced_frames > 1 && !coal->tx_coalesce_usecs)) in fun_set_coalesce()
502 fp->rx_coal_usec = coal->rx_coalesce_usecs; in fun_set_coalesce()
503 fp->rx_coal_count = coal->rx_max_coalesced_frames; in fun_set_coalesce()
504 fp->tx_coal_usec = coal->tx_coalesce_usecs; in fun_set_coalesce()
505 fp->tx_coal_count = coal->tx_max_coalesced_frames; in fun_set_coalesce()