Lines Matching refs:wil

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