Lines Matching +full:tx +full:- +full:rx

1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (C) 2011-2012 Texas Instruments
45 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_prepared_descs, "%u");
46 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_cmplt, "%u");
47 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_template_prepared, "%u");
48 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_data_prepared, "%u");
49 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_template_programmed, "%u");
50 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_data_programmed, "%u");
51 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_burst_programmed, "%u");
52 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_starts, "%u");
53 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_stop, "%u");
54 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_start_templates, "%u");
55 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_start_int_templates, "%u");
56 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_start_fw_gen, "%u");
57 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_start_data, "%u");
58 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_start_null_frame, "%u");
59 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_exch, "%u");
60 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_retry_template, "%u");
61 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_retry_data, "%u");
62 WL18XX_DEBUGFS_FWSTATS_FILE_ARRAY(tx, tx_retry_per_rate,
64 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_exch_pending, "%u");
65 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_exch_expiry, "%u");
66 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_done_template, "%u");
67 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_done_data, "%u");
68 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_done_int_template, "%u");
69 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_cfe1, "%u");
70 WL18XX_DEBUGFS_FWSTATS_FILE(tx, tx_cfe2, "%u");
71 WL18XX_DEBUGFS_FWSTATS_FILE(tx, frag_called, "%u");
72 WL18XX_DEBUGFS_FWSTATS_FILE(tx, frag_mpdu_alloc_failed, "%u");
73 WL18XX_DEBUGFS_FWSTATS_FILE(tx, frag_init_called, "%u");
74 WL18XX_DEBUGFS_FWSTATS_FILE(tx, frag_in_process_called, "%u");
75 WL18XX_DEBUGFS_FWSTATS_FILE(tx, frag_tkip_called, "%u");
76 WL18XX_DEBUGFS_FWSTATS_FILE(tx, frag_key_not_found, "%u");
77 WL18XX_DEBUGFS_FWSTATS_FILE(tx, frag_need_fragmentation, "%u");
78 WL18XX_DEBUGFS_FWSTATS_FILE(tx, frag_bad_mblk_num, "%u");
79 WL18XX_DEBUGFS_FWSTATS_FILE(tx, frag_failed, "%u");
80 WL18XX_DEBUGFS_FWSTATS_FILE(tx, frag_cache_hit, "%u");
81 WL18XX_DEBUGFS_FWSTATS_FILE(tx, frag_cache_miss, "%u");
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()
430 DEBUGFS_FWSTATS_ADD(tx, tx_prepared_descs); in wl18xx_debugfs_add_files()
431 DEBUGFS_FWSTATS_ADD(tx, tx_cmplt); in wl18xx_debugfs_add_files()
432 DEBUGFS_FWSTATS_ADD(tx, tx_template_prepared); in wl18xx_debugfs_add_files()
433 DEBUGFS_FWSTATS_ADD(tx, tx_data_prepared); in wl18xx_debugfs_add_files()
434 DEBUGFS_FWSTATS_ADD(tx, tx_template_programmed); in wl18xx_debugfs_add_files()
435 DEBUGFS_FWSTATS_ADD(tx, tx_data_programmed); in wl18xx_debugfs_add_files()
436 DEBUGFS_FWSTATS_ADD(tx, tx_burst_programmed); in wl18xx_debugfs_add_files()
437 DEBUGFS_FWSTATS_ADD(tx, tx_starts); in wl18xx_debugfs_add_files()
438 DEBUGFS_FWSTATS_ADD(tx, tx_stop); in wl18xx_debugfs_add_files()
439 DEBUGFS_FWSTATS_ADD(tx, tx_start_templates); in wl18xx_debugfs_add_files()
440 DEBUGFS_FWSTATS_ADD(tx, tx_start_int_templates); in wl18xx_debugfs_add_files()
441 DEBUGFS_FWSTATS_ADD(tx, tx_start_fw_gen); in wl18xx_debugfs_add_files()
442 DEBUGFS_FWSTATS_ADD(tx, tx_start_data); in wl18xx_debugfs_add_files()
443 DEBUGFS_FWSTATS_ADD(tx, tx_start_null_frame); in wl18xx_debugfs_add_files()
444 DEBUGFS_FWSTATS_ADD(tx, tx_exch); in wl18xx_debugfs_add_files()
445 DEBUGFS_FWSTATS_ADD(tx, tx_retry_template); in wl18xx_debugfs_add_files()
446 DEBUGFS_FWSTATS_ADD(tx, tx_retry_data); in wl18xx_debugfs_add_files()
447 DEBUGFS_FWSTATS_ADD(tx, tx_retry_per_rate); in wl18xx_debugfs_add_files()
448 DEBUGFS_FWSTATS_ADD(tx, tx_exch_pending); in wl18xx_debugfs_add_files()
449 DEBUGFS_FWSTATS_ADD(tx, tx_exch_expiry); in wl18xx_debugfs_add_files()
450 DEBUGFS_FWSTATS_ADD(tx, tx_done_template); in wl18xx_debugfs_add_files()
451 DEBUGFS_FWSTATS_ADD(tx, tx_done_data); in wl18xx_debugfs_add_files()
452 DEBUGFS_FWSTATS_ADD(tx, tx_done_int_template); in wl18xx_debugfs_add_files()
453 DEBUGFS_FWSTATS_ADD(tx, tx_cfe1); in wl18xx_debugfs_add_files()
454 DEBUGFS_FWSTATS_ADD(tx, tx_cfe2); in wl18xx_debugfs_add_files()
455 DEBUGFS_FWSTATS_ADD(tx, frag_called); in wl18xx_debugfs_add_files()
456 DEBUGFS_FWSTATS_ADD(tx, frag_mpdu_alloc_failed); in wl18xx_debugfs_add_files()
457 DEBUGFS_FWSTATS_ADD(tx, frag_init_called); in wl18xx_debugfs_add_files()
458 DEBUGFS_FWSTATS_ADD(tx, frag_in_process_called); in wl18xx_debugfs_add_files()
459 DEBUGFS_FWSTATS_ADD(tx, frag_tkip_called); in wl18xx_debugfs_add_files()
460 DEBUGFS_FWSTATS_ADD(tx, frag_key_not_found); in wl18xx_debugfs_add_files()
461 DEBUGFS_FWSTATS_ADD(tx, frag_need_fragmentation); in wl18xx_debugfs_add_files()
462 DEBUGFS_FWSTATS_ADD(tx, frag_bad_mblk_num); in wl18xx_debugfs_add_files()
463 DEBUGFS_FWSTATS_ADD(tx, frag_failed); in wl18xx_debugfs_add_files()
464 DEBUGFS_FWSTATS_ADD(tx, frag_cache_hit); in wl18xx_debugfs_add_files()
465 DEBUGFS_FWSTATS_ADD(tx, frag_cache_miss); in wl18xx_debugfs_add_files()
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()