Lines Matching refs:wil
17 struct wil6210_priv *wil = ndev_to_wil(ndev); in wil_ethtoolops_get_coalesce() local
22 mutex_lock(&wil->mutex); in wil_ethtoolops_get_coalesce()
23 wil_dbg_misc(wil, "ethtoolops_get_coalesce\n"); in wil_ethtoolops_get_coalesce()
25 ret = wil_pm_runtime_get(wil); in wil_ethtoolops_get_coalesce()
29 tx_itr_en = wil_r(wil, RGF_DMA_ITR_TX_CNT_CTL); in wil_ethtoolops_get_coalesce()
31 tx_itr_val = wil_r(wil, RGF_DMA_ITR_TX_CNT_TRSH); in wil_ethtoolops_get_coalesce()
33 rx_itr_en = wil_r(wil, RGF_DMA_ITR_RX_CNT_CTL); in wil_ethtoolops_get_coalesce()
35 rx_itr_val = wil_r(wil, RGF_DMA_ITR_RX_CNT_TRSH); in wil_ethtoolops_get_coalesce()
37 wil_pm_runtime_put(wil); in wil_ethtoolops_get_coalesce()
44 mutex_unlock(&wil->mutex); in wil_ethtoolops_get_coalesce()
51 struct wil6210_priv *wil = ndev_to_wil(ndev); in wil_ethtoolops_set_coalesce() local
55 mutex_lock(&wil->mutex); in wil_ethtoolops_set_coalesce()
56 wil_dbg_misc(wil, "ethtoolops_set_coalesce: rx %d usec, tx %d usec\n", in wil_ethtoolops_set_coalesce()
60 wil_dbg_misc(wil, "No IRQ coalescing in monitor mode\n"); in wil_ethtoolops_set_coalesce()
73 wil->tx_max_burst_duration = cp->tx_coalesce_usecs; in wil_ethtoolops_set_coalesce()
74 wil->rx_max_burst_duration = cp->rx_coalesce_usecs; in wil_ethtoolops_set_coalesce()
76 ret = wil_pm_runtime_get(wil); in wil_ethtoolops_set_coalesce()
80 wil->txrx_ops.configure_interrupt_moderation(wil); in wil_ethtoolops_set_coalesce()
82 wil_pm_runtime_put(wil); in wil_ethtoolops_set_coalesce()
86 mutex_unlock(&wil->mutex); in wil_ethtoolops_set_coalesce()
90 wil_dbg_misc(wil, "Unsupported coalescing params. Raw command:\n"); in wil_ethtoolops_set_coalesce()
93 mutex_unlock(&wil->mutex); in wil_ethtoolops_set_coalesce()