Lines Matching +full:conf +full:- +full:rx

1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (C) 2011-2012 Texas Instruments
83 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_beacon_early_term, "%u");
84 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_out_of_mpdu_nodes, "%u");
85 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_hdr_overflow, "%u");
86 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_dropped_frame, "%u");
87 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_done, "%u");
88 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_defrag, "%u");
89 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_defrag_end, "%u");
90 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_cmplt, "%u");
91 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_pre_complt, "%u");
92 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_cmplt_task, "%u");
93 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_phy_hdr, "%u");
94 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_timeout, "%u");
95 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_rts_timeout, "%u");
96 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_timeout_wa, "%u");
97 WL18XX_DEBUGFS_FWSTATS_FILE(rx, defrag_called, "%u");
98 WL18XX_DEBUGFS_FWSTATS_FILE(rx, defrag_init_called, "%u");
99 WL18XX_DEBUGFS_FWSTATS_FILE(rx, defrag_in_process_called, "%u");
100 WL18XX_DEBUGFS_FWSTATS_FILE(rx, defrag_tkip_called, "%u");
101 WL18XX_DEBUGFS_FWSTATS_FILE(rx, defrag_need_defrag, "%u");
102 WL18XX_DEBUGFS_FWSTATS_FILE(rx, defrag_decrypt_failed, "%u");
103 WL18XX_DEBUGFS_FWSTATS_FILE(rx, decrypt_key_not_found, "%u");
104 WL18XX_DEBUGFS_FWSTATS_FILE(rx, defrag_need_decrypt, "%u");
105 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_tkip_replays, "%u");
106 WL18XX_DEBUGFS_FWSTATS_FILE(rx, rx_xfr, "%u");
181 struct wl1271 *wl = file->private_data; in conf_read()
182 struct wl18xx_priv *priv = wl->priv; in conf_read()
191 return -ENOMEM; in conf_read()
197 mutex_lock(&wl->mutex); in conf_read()
202 memcpy(pos, &wl->conf, sizeof(wl->conf)); in conf_read()
203 pos += sizeof(wl->conf); in conf_read()
204 memcpy(pos, &priv->conf, sizeof(priv->conf)); in conf_read()
206 mutex_unlock(&wl->mutex); in conf_read()
224 struct wl1271 *wl = file->private_data; in clear_fw_stats_write()
227 mutex_lock(&wl->mutex); in clear_fw_stats_write()
229 if (unlikely(wl->state != WLCORE_STATE_ON)) in clear_fw_stats_write()
238 mutex_unlock(&wl->mutex); in clear_fw_stats_write()
252 struct wl1271 *wl = file->private_data; in radar_detection_write()
259 return -EINVAL; in radar_detection_write()
262 mutex_lock(&wl->mutex); in radar_detection_write()
264 if (unlikely(wl->state != WLCORE_STATE_ON)) in radar_detection_write()
267 ret = pm_runtime_resume_and_get(wl->dev); in radar_detection_write()
275 pm_runtime_mark_last_busy(wl->dev); in radar_detection_write()
276 pm_runtime_put_autosuspend(wl->dev); in radar_detection_write()
278 mutex_unlock(&wl->mutex); in radar_detection_write()
292 struct wl1271 *wl = file->private_data; in dynamic_fw_traces_write()
300 mutex_lock(&wl->mutex); in dynamic_fw_traces_write()
302 wl->dynamic_fw_traces = value; in dynamic_fw_traces_write()
304 if (unlikely(wl->state != WLCORE_STATE_ON)) in dynamic_fw_traces_write()
307 ret = pm_runtime_resume_and_get(wl->dev); in dynamic_fw_traces_write()
315 pm_runtime_mark_last_busy(wl->dev); in dynamic_fw_traces_write()
316 pm_runtime_put_autosuspend(wl->dev); in dynamic_fw_traces_write()
318 mutex_unlock(&wl->mutex); in dynamic_fw_traces_write()
326 struct wl1271 *wl = file->private_data; in dynamic_fw_traces_read()
328 "%d\n", wl->dynamic_fw_traces); in dynamic_fw_traces_read()
343 struct wl1271 *wl = file->private_data; in radar_debug_mode_write()
351 return -EINVAL; in radar_debug_mode_write()
357 return -EINVAL; in radar_debug_mode_write()
360 mutex_lock(&wl->mutex); in radar_debug_mode_write()
362 wl->radar_debug_mode = value; in radar_debug_mode_write()
364 if (unlikely(wl->state != WLCORE_STATE_ON)) in radar_debug_mode_write()
367 ret = pm_runtime_resume_and_get(wl->dev); in radar_debug_mode_write()
374 wl->radar_debug_mode, 0); in radar_debug_mode_write()
377 pm_runtime_mark_last_busy(wl->dev); in radar_debug_mode_write()
378 pm_runtime_put_autosuspend(wl->dev); in radar_debug_mode_write()
380 mutex_unlock(&wl->mutex); in radar_debug_mode_write()
388 struct wl1271 *wl = file->private_data; in radar_debug_mode_read()
391 "%d\n", wl->radar_debug_mode); in radar_debug_mode_read()
467 DEBUGFS_FWSTATS_ADD(rx, rx_beacon_early_term); in wl18xx_debugfs_add_files()
468 DEBUGFS_FWSTATS_ADD(rx, rx_out_of_mpdu_nodes); in wl18xx_debugfs_add_files()
469 DEBUGFS_FWSTATS_ADD(rx, rx_hdr_overflow); in wl18xx_debugfs_add_files()
470 DEBUGFS_FWSTATS_ADD(rx, rx_dropped_frame); in wl18xx_debugfs_add_files()
471 DEBUGFS_FWSTATS_ADD(rx, rx_done); in wl18xx_debugfs_add_files()
472 DEBUGFS_FWSTATS_ADD(rx, rx_defrag); in wl18xx_debugfs_add_files()
473 DEBUGFS_FWSTATS_ADD(rx, rx_defrag_end); in wl18xx_debugfs_add_files()
474 DEBUGFS_FWSTATS_ADD(rx, rx_cmplt); in wl18xx_debugfs_add_files()
475 DEBUGFS_FWSTATS_ADD(rx, rx_pre_complt); in wl18xx_debugfs_add_files()
476 DEBUGFS_FWSTATS_ADD(rx, rx_cmplt_task); in wl18xx_debugfs_add_files()
477 DEBUGFS_FWSTATS_ADD(rx, rx_phy_hdr); in wl18xx_debugfs_add_files()
478 DEBUGFS_FWSTATS_ADD(rx, rx_timeout); in wl18xx_debugfs_add_files()
479 DEBUGFS_FWSTATS_ADD(rx, rx_rts_timeout); in wl18xx_debugfs_add_files()
480 DEBUGFS_FWSTATS_ADD(rx, rx_timeout_wa); in wl18xx_debugfs_add_files()
481 DEBUGFS_FWSTATS_ADD(rx, defrag_called); in wl18xx_debugfs_add_files()
482 DEBUGFS_FWSTATS_ADD(rx, defrag_init_called); in wl18xx_debugfs_add_files()
483 DEBUGFS_FWSTATS_ADD(rx, defrag_in_process_called); in wl18xx_debugfs_add_files()
484 DEBUGFS_FWSTATS_ADD(rx, defrag_tkip_called); in wl18xx_debugfs_add_files()
485 DEBUGFS_FWSTATS_ADD(rx, defrag_need_defrag); in wl18xx_debugfs_add_files()
486 DEBUGFS_FWSTATS_ADD(rx, defrag_decrypt_failed); in wl18xx_debugfs_add_files()
487 DEBUGFS_FWSTATS_ADD(rx, decrypt_key_not_found); in wl18xx_debugfs_add_files()
488 DEBUGFS_FWSTATS_ADD(rx, defrag_need_decrypt); in wl18xx_debugfs_add_files()
489 DEBUGFS_FWSTATS_ADD(rx, rx_tkip_replays); in wl18xx_debugfs_add_files()
490 DEBUGFS_FWSTATS_ADD(rx, rx_xfr); in wl18xx_debugfs_add_files()
555 DEBUGFS_ADD(conf, moddir); in wl18xx_debugfs_add_files()