Lines Matching refs:wil

26 void wil_pmc_init(struct wil6210_priv *wil)  in wil_pmc_init()  argument
28 memset(&wil->pmc, 0, sizeof(struct pmc_ctx)); in wil_pmc_init()
29 mutex_init(&wil->pmc.lock); in wil_pmc_init()
39 void wil_pmc_alloc(struct wil6210_priv *wil, in wil_pmc_alloc() argument
44 struct pmc_ctx *pmc = &wil->pmc; in wil_pmc_alloc()
45 struct device *dev = wil_to_dev(wil); in wil_pmc_alloc()
46 struct wil6210_vif *vif = ndev_to_vif(wil->main_ndev); in wil_pmc_alloc()
54 wil_err(wil, "ERROR pmc is already allocated\n"); in wil_pmc_alloc()
58 wil_err(wil, in wil_pmc_alloc()
66 wil_err(wil, in wil_pmc_alloc()
74 wil_err(wil, in wil_pmc_alloc()
84 wil_dbg_misc(wil, "pmc_alloc: %d descriptors x %d bytes each\n", in wil_pmc_alloc()
92 wil_err(wil, "ERROR allocating pmc skb list\n"); in wil_pmc_alloc()
96 wil_dbg_misc(wil, "pmc_alloc: allocated descriptors info list %p\n", in wil_pmc_alloc()
112 if (wil->dma_addr_size > 32) in wil_pmc_alloc()
120 if (wil->dma_addr_size > 32) in wil_pmc_alloc()
122 DMA_BIT_MASK(wil->dma_addr_size)); in wil_pmc_alloc()
124 wil_dbg_misc(wil, in wil_pmc_alloc()
132 wil_err(wil, "ERROR allocating pmc pring\n"); in wil_pmc_alloc()
151 wil_err(wil, "ERROR allocating pmc descriptor %d", i); in wil_pmc_alloc()
171 wil_dbg_misc(wil, "pmc_alloc: allocated successfully\n"); in wil_pmc_alloc()
177 wil_dbg_misc(wil, "pmc_alloc: send WMI_PMC_CMD with ALLOCATE op\n"); in wil_pmc_alloc()
178 pmc->last_cmd_status = wmi_send(wil, in wil_pmc_alloc()
184 wil_err(wil, in wil_pmc_alloc()
195 wil_err(wil, "exit on error: Releasing skbs...\n"); in wil_pmc_alloc()
204 wil_err(wil, "exit on error: Releasing pring...\n"); in wil_pmc_alloc()
214 wil_err(wil, "exit on error: Releasing descriptors info list...\n"); in wil_pmc_alloc()
226 void wil_pmc_free(struct wil6210_priv *wil, int send_pmc_cmd) in wil_pmc_free() argument
228 struct pmc_ctx *pmc = &wil->pmc; in wil_pmc_free()
229 struct device *dev = wil_to_dev(wil); in wil_pmc_free()
230 struct wil6210_vif *vif = ndev_to_vif(wil->main_ndev); in wil_pmc_free()
238 wil_dbg_misc(wil, in wil_pmc_free()
246 wil_dbg_misc(wil, "send WMI_PMC_CMD with RELEASE op\n"); in wil_pmc_free()
249 wmi_send(wil, WMI_PMC_CMDID, vif->mid, in wil_pmc_free()
252 wil_err(wil, in wil_pmc_free()
266 wil_dbg_misc(wil, "pmc_free: free pring va %p\n", in wil_pmc_free()
286 wil_dbg_misc(wil, "pmc_free: free descriptor info %d/%d\n", i, in wil_pmc_free()
288 wil_dbg_misc(wil, in wil_pmc_free()
303 int wil_pmc_last_cmd_status(struct wil6210_priv *wil) in wil_pmc_last_cmd_status() argument
305 wil_dbg_misc(wil, "pmc_last_cmd_status: status %d\n", in wil_pmc_last_cmd_status()
306 wil->pmc.last_cmd_status); in wil_pmc_last_cmd_status()
308 return wil->pmc.last_cmd_status; in wil_pmc_last_cmd_status()
317 struct wil6210_priv *wil = filp->private_data; in wil_pmc_read() local
318 struct pmc_ctx *pmc = &wil->pmc; in wil_pmc_read()
327 wil_err(wil, "error, pmc is not allocated!\n"); in wil_pmc_read()
335 wil_dbg_misc(wil, in wil_pmc_read()
346 wil_dbg_misc(wil, in wil_pmc_read()
353 wil_dbg_misc(wil, in wil_pmc_read()
373 struct wil6210_priv *wil = filp->private_data; in wil_pmc_llseek() local
374 struct pmc_ctx *pmc = &wil->pmc; in wil_pmc_llseek()
380 wil_err(wil, "error, pmc is not allocated!\n"); in wil_pmc_llseek()
423 struct wil6210_priv *wil = s->private; in wil_pmcring_read() local
424 struct pmc_ctx *pmc = &wil->pmc; in wil_pmcring_read()
431 wil_err(wil, "error, pmc is not allocated!\n"); in wil_pmcring_read()
437 wil_dbg_misc(wil, "pmcring_read: size %zu\n", pmc_ring_size); in wil_pmcring_read()