Lines Matching refs:pl_dev
105 struct pktlog_dev_t *pl_dev = get_pktlog_handle(); in pktlog_disable_adapter_logging() local
106 if (pl_dev) in pktlog_disable_adapter_logging()
107 pl_dev->pl_info->log_state = 0; in pktlog_disable_adapter_logging()
115 struct pktlog_dev_t *pl_dev; in pktlog_alloc_buf() local
119 pl_dev = get_pktlog_handle(); in pktlog_alloc_buf()
121 if (!pl_dev) { in pktlog_alloc_buf()
126 pl_info = pl_dev->pl_info; in pktlog_alloc_buf()
168 struct pktlog_dev_t *pl_dev; in pktlog_release_buf() local
171 pl_dev = get_pktlog_handle(); in pktlog_release_buf()
173 if (!pl_dev) { in pktlog_release_buf()
178 if (!pl_dev->pl_info) { in pktlog_release_buf()
183 pl_info = pl_dev->pl_info; in pktlog_release_buf()
212 struct pktlog_dev_t *pl_dev; in qdf_sysctl_decl() local
224 pl_dev = get_pktlog_handle(); in qdf_sysctl_decl()
226 if (!pl_dev) { in qdf_sysctl_decl()
240 ret = pl_dev->pl_funcs->pktlog_enable( in qdf_sysctl_decl()
264 static int get_pktlog_bufsize(struct pktlog_dev_t *pl_dev) in get_pktlog_bufsize() argument
266 return pl_dev->pl_info->buf_size; in get_pktlog_bufsize()
275 struct pktlog_dev_t *pl_dev; in qdf_sysctl_decl() local
287 pl_dev = get_pktlog_handle(); in qdf_sysctl_decl()
289 if (!pl_dev) { in qdf_sysctl_decl()
303 ret = pl_dev->pl_funcs->pktlog_setsize( in qdf_sysctl_decl()
306 size = get_pktlog_bufsize(pl_dev); in qdf_sysctl_decl()
321 struct pktlog_dev_t *pl_dev = get_pktlog_handle(); in pktlog_sysctl_register() local
325 if (pl_dev) { in pktlog_sysctl_register()
326 pl_info_lnx = PL_INFO_LNX(pl_dev->pl_info); in pktlog_sysctl_register()
327 proc_name = pl_dev->name; in pktlog_sysctl_register()
425 struct pktlog_dev_t *pl_dev; in pktlog_attach() local
432 pl_dev = get_pktlog_handle(); in pktlog_attach()
434 if (pl_dev) { in pktlog_attach()
443 pl_dev->pl_info = &pl_info_lnx->info; in pktlog_attach()
444 pl_dev->name = WLANDEV_BASENAME; in pktlog_attach()
445 proc_name = pl_dev->name; in pktlog_attach()
447 if (!pl_dev->pl_funcs) in pktlog_attach()
448 pl_dev->pl_funcs = &ol_pl_funcs; in pktlog_attach()
453 pl_dev->pl_funcs->pktlog_init(scn); in pktlog_attach()
490 if (pl_dev) in pktlog_attach()
491 kfree(pl_dev->pl_info); in pktlog_attach()
496 static void pktlog_sysctl_unregister(struct pktlog_dev_t *pl_dev) in pktlog_sysctl_unregister() argument
500 if (!pl_dev) { in pktlog_sysctl_unregister()
506 pl_info_lnx = (pl_dev) ? PL_INFO_LNX(pl_dev->pl_info) : in pktlog_sysctl_unregister()
518 struct pktlog_dev_t *pl_dev = get_pktlog_handle(); in pktlog_detach() local
521 if (!pl_dev) { in pktlog_detach()
527 pl_info = pl_dev->pl_info; in pktlog_detach()
535 pktlog_sysctl_unregister(pl_dev); in pktlog_detach()
541 pl_dev->tgt_pktlog_alloced = false; in pktlog_detach()
547 if (pl_dev) { in pktlog_detach()
549 pl_dev->pl_info = NULL; in pktlog_detach()
556 struct pktlog_dev_t *pl_dev; in __pktlog_open() local
569 pl_dev = get_pktlog_handle(); in __pktlog_open()
571 if (!pl_dev) { in __pktlog_open()
577 pl_info = pl_dev->pl_info; in __pktlog_open()
585 pl_info_lnx = (pl_dev) ? PL_INFO_LNX(pl_dev->pl_info) : in __pktlog_open()
615 ret = pl_dev->pl_funcs->pktlog_disable(scn); in __pktlog_open()
642 struct pktlog_dev_t *pl_dev; in __pktlog_release() local
655 pl_dev = get_pktlog_handle(); in __pktlog_release()
657 if (!pl_dev) { in __pktlog_release()
663 pl_info = pl_dev->pl_info; in __pktlog_release()
672 pl_info_lnx = (pl_dev) ? PL_INFO_LNX(pl_dev->pl_info) : in __pktlog_release()