Lines Matching refs:wl

193 	struct wl1271 *wl = file->private_data;  in conf_read()  local
194 struct wl18xx_priv *priv = wl->priv; in conf_read()
209 mutex_lock(&wl->mutex); in conf_read()
214 memcpy(pos, &wl->conf, sizeof(wl->conf)); in conf_read()
215 pos += sizeof(wl->conf); in conf_read()
218 mutex_unlock(&wl->mutex); in conf_read()
236 struct wl1271 *wl = file->private_data; in clear_fw_stats_write() local
239 mutex_lock(&wl->mutex); in clear_fw_stats_write()
241 if (unlikely(wl->state != WLCORE_STATE_ON)) in clear_fw_stats_write()
244 ret = wl18xx_acx_clear_statistics(wl); in clear_fw_stats_write()
250 mutex_unlock(&wl->mutex); in clear_fw_stats_write()
264 struct wl1271 *wl = file->private_data; in radar_detection_write() local
274 mutex_lock(&wl->mutex); in radar_detection_write()
276 if (unlikely(wl->state != WLCORE_STATE_ON)) in radar_detection_write()
279 ret = wl1271_ps_elp_wakeup(wl); in radar_detection_write()
283 ret = wl18xx_cmd_radar_detection_debug(wl, channel); in radar_detection_write()
287 wl1271_ps_elp_sleep(wl); in radar_detection_write()
289 mutex_unlock(&wl->mutex); in radar_detection_write()
303 struct wl1271 *wl = file->private_data; in dynamic_fw_traces_write() local
311 mutex_lock(&wl->mutex); in dynamic_fw_traces_write()
313 wl->dynamic_fw_traces = value; in dynamic_fw_traces_write()
315 if (unlikely(wl->state != WLCORE_STATE_ON)) in dynamic_fw_traces_write()
318 ret = wl1271_ps_elp_wakeup(wl); in dynamic_fw_traces_write()
322 ret = wl18xx_acx_dynamic_fw_traces(wl); in dynamic_fw_traces_write()
326 wl1271_ps_elp_sleep(wl); in dynamic_fw_traces_write()
328 mutex_unlock(&wl->mutex); in dynamic_fw_traces_write()
336 struct wl1271 *wl = file->private_data; in dynamic_fw_traces_read() local
338 "%d\n", wl->dynamic_fw_traces); in dynamic_fw_traces_read()
348 int wl18xx_debugfs_add_files(struct wl1271 *wl, in wl18xx_debugfs_add_files() argument