Lines Matching refs:pl_info_lnx
322 struct ath_pktlog_info_lnx *pl_info_lnx; in pktlog_sysctl_register() local
326 pl_info_lnx = PL_INFO_LNX(pl_dev->pl_info); in pktlog_sysctl_register()
329 pl_info_lnx = PL_INFO_LNX(g_pktlog_info); in pktlog_sysctl_register()
339 memset(pl_info_lnx->sysctls, 0, sizeof(pl_info_lnx->sysctls)); in pktlog_sysctl_register()
340 pl_info_lnx->sysctls[0].procname = PKTLOG_PROC_DIR; in pktlog_sysctl_register()
341 pl_info_lnx->sysctls[0].mode = PKTLOG_PROCSYS_DIR_PERM; in pktlog_sysctl_register()
342 pl_info_lnx->sysctls[0].child = &pl_info_lnx->sysctls[2]; in pktlog_sysctl_register()
345 pl_info_lnx->sysctls[2].procname = proc_name; in pktlog_sysctl_register()
346 pl_info_lnx->sysctls[2].mode = PKTLOG_PROCSYS_DIR_PERM; in pktlog_sysctl_register()
347 pl_info_lnx->sysctls[2].child = &pl_info_lnx->sysctls[4]; in pktlog_sysctl_register()
350 pl_info_lnx->sysctls[4].procname = "enable"; in pktlog_sysctl_register()
351 pl_info_lnx->sysctls[4].mode = PKTLOG_PROCSYS_PERM; in pktlog_sysctl_register()
352 pl_info_lnx->sysctls[4].proc_handler = ath_sysctl_pktlog_enable; in pktlog_sysctl_register()
353 pl_info_lnx->sysctls[4].extra1 = scn; in pktlog_sysctl_register()
355 pl_info_lnx->sysctls[5].procname = "size"; in pktlog_sysctl_register()
356 pl_info_lnx->sysctls[5].mode = PKTLOG_PROCSYS_PERM; in pktlog_sysctl_register()
357 pl_info_lnx->sysctls[5].proc_handler = ath_sysctl_pktlog_size; in pktlog_sysctl_register()
358 pl_info_lnx->sysctls[5].extra1 = scn; in pktlog_sysctl_register()
360 pl_info_lnx->sysctls[6].procname = "options"; in pktlog_sysctl_register()
361 pl_info_lnx->sysctls[6].mode = PKTLOG_PROCSYS_PERM; in pktlog_sysctl_register()
362 pl_info_lnx->sysctls[6].proc_handler = proc_dointvec; in pktlog_sysctl_register()
363 pl_info_lnx->sysctls[6].data = &pl_info_lnx->info.options; in pktlog_sysctl_register()
364 pl_info_lnx->sysctls[6].maxlen = sizeof(pl_info_lnx->info.options); in pktlog_sysctl_register()
366 pl_info_lnx->sysctls[7].procname = "sack_thr"; in pktlog_sysctl_register()
367 pl_info_lnx->sysctls[7].mode = PKTLOG_PROCSYS_PERM; in pktlog_sysctl_register()
368 pl_info_lnx->sysctls[7].proc_handler = proc_dointvec; in pktlog_sysctl_register()
369 pl_info_lnx->sysctls[7].data = &pl_info_lnx->info.sack_thr; in pktlog_sysctl_register()
370 pl_info_lnx->sysctls[7].maxlen = sizeof(pl_info_lnx->info.sack_thr); in pktlog_sysctl_register()
372 pl_info_lnx->sysctls[8].procname = "tail_length"; in pktlog_sysctl_register()
373 pl_info_lnx->sysctls[8].mode = PKTLOG_PROCSYS_PERM; in pktlog_sysctl_register()
374 pl_info_lnx->sysctls[8].proc_handler = proc_dointvec; in pktlog_sysctl_register()
375 pl_info_lnx->sysctls[8].data = &pl_info_lnx->info.tail_length; in pktlog_sysctl_register()
376 pl_info_lnx->sysctls[8].maxlen = sizeof(pl_info_lnx->info.tail_length); in pktlog_sysctl_register()
378 pl_info_lnx->sysctls[9].procname = "thruput_thresh"; in pktlog_sysctl_register()
379 pl_info_lnx->sysctls[9].mode = PKTLOG_PROCSYS_PERM; in pktlog_sysctl_register()
380 pl_info_lnx->sysctls[9].proc_handler = proc_dointvec; in pktlog_sysctl_register()
381 pl_info_lnx->sysctls[9].data = &pl_info_lnx->info.thruput_thresh; in pktlog_sysctl_register()
382 pl_info_lnx->sysctls[9].maxlen = in pktlog_sysctl_register()
383 sizeof(pl_info_lnx->info.thruput_thresh); in pktlog_sysctl_register()
385 pl_info_lnx->sysctls[10].procname = "phyerr_thresh"; in pktlog_sysctl_register()
386 pl_info_lnx->sysctls[10].mode = PKTLOG_PROCSYS_PERM; in pktlog_sysctl_register()
387 pl_info_lnx->sysctls[10].proc_handler = proc_dointvec; in pktlog_sysctl_register()
388 pl_info_lnx->sysctls[10].data = &pl_info_lnx->info.phyerr_thresh; in pktlog_sysctl_register()
389 pl_info_lnx->sysctls[10].maxlen = in pktlog_sysctl_register()
390 sizeof(pl_info_lnx->info.phyerr_thresh); in pktlog_sysctl_register()
392 pl_info_lnx->sysctls[11].procname = "per_thresh"; in pktlog_sysctl_register()
393 pl_info_lnx->sysctls[11].mode = PKTLOG_PROCSYS_PERM; in pktlog_sysctl_register()
394 pl_info_lnx->sysctls[11].proc_handler = proc_dointvec; in pktlog_sysctl_register()
395 pl_info_lnx->sysctls[11].data = &pl_info_lnx->info.per_thresh; in pktlog_sysctl_register()
396 pl_info_lnx->sysctls[11].maxlen = sizeof(pl_info_lnx->info.per_thresh); in pktlog_sysctl_register()
398 pl_info_lnx->sysctls[12].procname = "trigger_interval"; in pktlog_sysctl_register()
399 pl_info_lnx->sysctls[12].mode = PKTLOG_PROCSYS_PERM; in pktlog_sysctl_register()
400 pl_info_lnx->sysctls[12].proc_handler = proc_dointvec; in pktlog_sysctl_register()
401 pl_info_lnx->sysctls[12].data = &pl_info_lnx->info.trigger_interval; in pktlog_sysctl_register()
402 pl_info_lnx->sysctls[12].maxlen = in pktlog_sysctl_register()
403 sizeof(pl_info_lnx->info.trigger_interval); in pktlog_sysctl_register()
408 pl_info_lnx->sysctl_header = in pktlog_sysctl_register()
409 register_sysctl_table(pl_info_lnx->sysctls); in pktlog_sysctl_register()
411 if (!pl_info_lnx->sysctl_header) { in pktlog_sysctl_register()
426 struct ath_pktlog_info_lnx *pl_info_lnx; in pktlog_attach() local
435 pl_info_lnx = kmalloc(sizeof(*pl_info_lnx), GFP_KERNEL); in pktlog_attach()
436 if (!pl_info_lnx) { in pktlog_attach()
443 pl_dev->pl_info = &pl_info_lnx->info; in pktlog_attach()
464 pl_info_lnx->proc_entry = NULL; in pktlog_attach()
465 pl_info_lnx->sysctl_header = NULL; in pktlog_attach()
469 &pl_info_lnx->info); in pktlog_attach()
476 pl_info_lnx->proc_entry = proc_entry; in pktlog_attach()
498 struct ath_pktlog_info_lnx *pl_info_lnx; in pktlog_sysctl_unregister() local
506 pl_info_lnx = (pl_dev) ? PL_INFO_LNX(pl_dev->pl_info) : in pktlog_sysctl_unregister()
509 if (pl_info_lnx->sysctl_header) { in pktlog_sysctl_unregister()
510 unregister_sysctl_table(pl_info_lnx->sysctl_header); in pktlog_sysctl_unregister()
511 pl_info_lnx->sysctl_header = NULL; in pktlog_sysctl_unregister()
558 struct ath_pktlog_info_lnx *pl_info_lnx; in __pktlog_open() local
585 pl_info_lnx = (pl_dev) ? PL_INFO_LNX(pl_dev->pl_info) : in __pktlog_open()
588 if (!pl_info_lnx->sysctl_header) { in __pktlog_open()
644 struct ath_pktlog_info_lnx *pl_info_lnx; in __pktlog_release() local
672 pl_info_lnx = (pl_dev) ? PL_INFO_LNX(pl_dev->pl_info) : in __pktlog_release()
675 if (!pl_info_lnx->sysctl_header) { in __pktlog_release()