Lines Matching refs:ec
570 struct ethtool_coalesce *ec) in bcmgenet_get_coalesce() argument
574 ec->tx_max_coalesced_frames = in bcmgenet_get_coalesce()
577 ec->rx_max_coalesced_frames = in bcmgenet_get_coalesce()
580 ec->rx_coalesce_usecs = in bcmgenet_get_coalesce()
587 struct ethtool_coalesce *ec) in bcmgenet_set_coalesce() argument
597 if (ec->tx_max_coalesced_frames > DMA_INTR_THRESHOLD_MASK || in bcmgenet_set_coalesce()
598 ec->tx_max_coalesced_frames == 0 || in bcmgenet_set_coalesce()
599 ec->rx_max_coalesced_frames > DMA_INTR_THRESHOLD_MASK || in bcmgenet_set_coalesce()
600 ec->rx_coalesce_usecs > (DMA_TIMEOUT_MASK * 8) + 1) in bcmgenet_set_coalesce()
603 if (ec->rx_coalesce_usecs == 0 && ec->rx_max_coalesced_frames == 0) in bcmgenet_set_coalesce()
610 if (ec->tx_coalesce_usecs || ec->tx_coalesce_usecs_high || in bcmgenet_set_coalesce()
611 ec->tx_coalesce_usecs_irq || ec->tx_coalesce_usecs_low) in bcmgenet_set_coalesce()
619 ec->tx_max_coalesced_frames, in bcmgenet_set_coalesce()
622 ec->tx_max_coalesced_frames, in bcmgenet_set_coalesce()
627 ec->rx_max_coalesced_frames, in bcmgenet_set_coalesce()
632 reg |= DIV_ROUND_UP(ec->rx_coalesce_usecs * 1000, 8192); in bcmgenet_set_coalesce()
637 ec->rx_max_coalesced_frames, in bcmgenet_set_coalesce()
642 reg |= DIV_ROUND_UP(ec->rx_coalesce_usecs * 1000, 8192); in bcmgenet_set_coalesce()