Lines Matching refs:wil

35 void wil_pmc_init(struct wil6210_priv *wil)  in wil_pmc_init()  argument
37 memset(&wil->pmc, 0, sizeof(struct pmc_ctx)); in wil_pmc_init()
38 mutex_init(&wil->pmc.lock); in wil_pmc_init()
49 void wil_pmc_alloc(struct wil6210_priv *wil, in wil_pmc_alloc() argument
54 struct pmc_ctx *pmc = &wil->pmc; in wil_pmc_alloc()
55 struct device *dev = wil_to_dev(wil); in wil_pmc_alloc()
62 wil_err(wil, "%s: ERROR pmc is already allocated\n", __func__); in wil_pmc_alloc()
69 wil_dbg_misc(wil, "%s: %d descriptors x %d bytes each\n", in wil_pmc_alloc()
77 wil_err(wil, "%s: ERROR allocating pmc skb list\n", __func__); in wil_pmc_alloc()
81 wil_dbg_misc(wil, in wil_pmc_alloc()
94 wil_dbg_misc(wil, in wil_pmc_alloc()
103 wil_err(wil, "%s: ERROR allocating pmc pring\n", __func__); in wil_pmc_alloc()
122 wil_err(wil, in wil_pmc_alloc()
144 wil_dbg_misc(wil, "%s: allocated successfully\n", __func__); in wil_pmc_alloc()
150 wil_dbg_misc(wil, "%s: send WMI_PMC_CMD with ALLOCATE op\n", __func__); in wil_pmc_alloc()
151 pmc->last_cmd_status = wmi_send(wil, in wil_pmc_alloc()
156 wil_err(wil, in wil_pmc_alloc()
167 wil_err(wil, "%s: exit on error: Releasing skbs...\n", __func__); in wil_pmc_alloc()
176 wil_err(wil, "%s: exit on error: Releasing pring...\n", __func__); in wil_pmc_alloc()
186 wil_err(wil, "%s: exit on error: Releasing descriptors info list...\n", in wil_pmc_alloc()
200 void wil_pmc_free(struct wil6210_priv *wil, int send_pmc_cmd) in wil_pmc_free() argument
202 struct pmc_ctx *pmc = &wil->pmc; in wil_pmc_free()
203 struct device *dev = wil_to_dev(wil); in wil_pmc_free()
211 wil_dbg_misc(wil, "%s: Error, can't free - not allocated\n", in wil_pmc_free()
219 wil_dbg_misc(wil, "%s: send WMI_PMC_CMD with RELEASE op\n", in wil_pmc_free()
223 wmi_send(wil, WMI_PMC_CMDID, &pmc_cmd, in wil_pmc_free()
226 wil_err(wil, in wil_pmc_free()
240 wil_dbg_misc(wil, "%s: free pring va %p\n", in wil_pmc_free()
260 wil_dbg_misc(wil, "%s: free descriptor info %d/%d\n", in wil_pmc_free()
262 wil_dbg_misc(wil, in wil_pmc_free()
278 int wil_pmc_last_cmd_status(struct wil6210_priv *wil) in wil_pmc_last_cmd_status() argument
280 wil_dbg_misc(wil, "%s: status %d\n", __func__, in wil_pmc_last_cmd_status()
281 wil->pmc.last_cmd_status); in wil_pmc_last_cmd_status()
283 return wil->pmc.last_cmd_status; in wil_pmc_last_cmd_status()
293 struct wil6210_priv *wil = filp->private_data; in wil_pmc_read() local
294 struct pmc_ctx *pmc = &wil->pmc; in wil_pmc_read()
303 wil_err(wil, "%s: error, pmc is not allocated!\n", __func__); in wil_pmc_read()
309 wil_dbg_misc(wil, in wil_pmc_read()
320 wil_dbg_misc(wil, "%s: reached end of pmc buf: %lld >= %u\n", in wil_pmc_read()
326 wil_dbg_misc(wil, in wil_pmc_read()
346 struct wil6210_priv *wil = filp->private_data; in wil_pmc_llseek() local
347 struct pmc_ctx *pmc = &wil->pmc; in wil_pmc_llseek()