Lines Matching refs:wil
20 struct wil6210_priv *wil = ndev_to_wil(ndev); in wil_ethtoolops_get_coalesce() local
25 mutex_lock(&wil->mutex); in wil_ethtoolops_get_coalesce()
26 wil_dbg_misc(wil, "ethtoolops_get_coalesce\n"); in wil_ethtoolops_get_coalesce()
28 ret = wil_pm_runtime_get(wil); in wil_ethtoolops_get_coalesce()
32 tx_itr_en = wil_r(wil, RGF_DMA_ITR_TX_CNT_CTL); in wil_ethtoolops_get_coalesce()
34 tx_itr_val = wil_r(wil, RGF_DMA_ITR_TX_CNT_TRSH); in wil_ethtoolops_get_coalesce()
36 rx_itr_en = wil_r(wil, RGF_DMA_ITR_RX_CNT_CTL); in wil_ethtoolops_get_coalesce()
38 rx_itr_val = wil_r(wil, RGF_DMA_ITR_RX_CNT_TRSH); in wil_ethtoolops_get_coalesce()
40 wil_pm_runtime_put(wil); in wil_ethtoolops_get_coalesce()
47 mutex_unlock(&wil->mutex); in wil_ethtoolops_get_coalesce()
57 struct wil6210_priv *wil = ndev_to_wil(ndev); in wil_ethtoolops_set_coalesce() local
61 mutex_lock(&wil->mutex); in wil_ethtoolops_set_coalesce()
62 wil_dbg_misc(wil, "ethtoolops_set_coalesce: rx %d usec, tx %d usec\n", in wil_ethtoolops_set_coalesce()
66 wil_dbg_misc(wil, "No IRQ coalescing in monitor mode\n"); in wil_ethtoolops_set_coalesce()
79 wil->tx_max_burst_duration = cp->tx_coalesce_usecs; in wil_ethtoolops_set_coalesce()
80 wil->rx_max_burst_duration = cp->rx_coalesce_usecs; in wil_ethtoolops_set_coalesce()
82 ret = wil_pm_runtime_get(wil); in wil_ethtoolops_set_coalesce()
86 wil->txrx_ops.configure_interrupt_moderation(wil); in wil_ethtoolops_set_coalesce()
88 wil_pm_runtime_put(wil); in wil_ethtoolops_set_coalesce()
92 mutex_unlock(&wil->mutex); in wil_ethtoolops_set_coalesce()
96 wil_dbg_misc(wil, "Unsupported coalescing params. Raw command:\n"); in wil_ethtoolops_set_coalesce()
99 mutex_unlock(&wil->mutex); in wil_ethtoolops_set_coalesce()