Home
last modified time | relevance | path

Searched refs:user_buf (Results 1 – 25 of 59) sorted by relevance

123

/drivers/net/wireless/ti/wlcore/
Ddebugfs.c142 char __user *user_buf, \
146 return wl1271_format_buffer(user_buf, count, \
152 const char __user *user_buf, \
159 ret = kstrtoul_from_user(user_buf, count, 10, &value); \
193 static ssize_t gpio_power_read(struct file *file, char __user *user_buf, in gpio_power_read() argument
204 return simple_read_from_buffer(user_buf, count, ppos, buf, res); in gpio_power_read()
208 const char __user *user_buf, in gpio_power_write() argument
215 ret = kstrtoul_from_user(user_buf, count, 10, &value); in gpio_power_write()
240 const char __user *user_buf, in start_recovery_write() argument
258 static ssize_t dynamic_ps_timeout_read(struct file *file, char __user *user_buf, in dynamic_ps_timeout_read() argument
[all …]
/drivers/net/wireless/iwlegacy/
Ddebug.c155 char __user *user_buf, \
160 const char __user *user_buf, \
231 il_dbgfs_tx_stats_read(struct file *file, char __user *user_buf, size_t count, in il_dbgfs_tx_stats_read() argument
265 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il_dbgfs_tx_stats_read()
272 const char __user *user_buf, size_t count, in il_dbgfs_clear_traffic_stats_write() argument
282 if (copy_from_user(buf, user_buf, buf_size)) in il_dbgfs_clear_traffic_stats_write()
292 il_dbgfs_rx_stats_read(struct file *file, char __user *user_buf, size_t count, in il_dbgfs_rx_stats_read() argument
327 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il_dbgfs_rx_stats_read()
336 il_dbgfs_sram_read(struct file *file, char __user *user_buf, size_t count, in il_dbgfs_sram_read() argument
389 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il_dbgfs_sram_read()
[all …]
/drivers/net/wireless/ath/ath9k/
Dspectral.c211 static ssize_t read_file_spec_scan_ctl(struct file *file, char __user *user_buf, in read_file_spec_scan_ctl() argument
233 return simple_read_from_buffer(user_buf, count, ppos, mode, len); in read_file_spec_scan_ctl()
237 const char __user *user_buf, in write_file_spec_scan_ctl() argument
249 if (copy_from_user(buf, user_buf, len)) in write_file_spec_scan_ctl()
288 char __user *user_buf, in read_file_spectral_short_repeat() argument
296 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_spectral_short_repeat()
300 const char __user *user_buf, in write_file_spectral_short_repeat() argument
309 if (copy_from_user(buf, user_buf, len)) in write_file_spectral_short_repeat()
336 char __user *user_buf, in read_file_spectral_count() argument
344 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_spectral_count()
[all …]
Dhtc_drv_debug.c19 static ssize_t read_file_tgt_int_stats(struct file *file, char __user *user_buf, in read_file_tgt_int_stats() argument
67 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_tgt_int_stats()
77 static ssize_t read_file_tgt_tx_stats(struct file *file, char __user *user_buf, in read_file_tgt_tx_stats() argument
137 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_tgt_tx_stats()
147 static ssize_t read_file_tgt_rx_stats(struct file *file, char __user *user_buf, in read_file_tgt_rx_stats() argument
183 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_tgt_rx_stats()
193 static ssize_t read_file_xmit(struct file *file, char __user *user_buf, in read_file_xmit() argument
235 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_xmit()
251 static ssize_t read_file_skb_rx(struct file *file, char __user *user_buf, in read_file_skb_rx() argument
276 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_skb_rx()
[all …]
Ddebug.c71 static ssize_t ath9k_debugfs_read_buf(struct file *file, char __user *user_buf, in ath9k_debugfs_read_buf() argument
75 return simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); in ath9k_debugfs_read_buf()
86 static ssize_t read_file_debug(struct file *file, char __user *user_buf, in read_file_debug() argument
95 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_debug()
98 static ssize_t write_file_debug(struct file *file, const char __user *user_buf, in write_file_debug() argument
108 if (copy_from_user(buf, user_buf, len)) in write_file_debug()
132 static ssize_t read_file_ani(struct file *file, char __user *user_buf, in read_file_ani() argument
181 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_ani()
188 const char __user *user_buf, in write_file_ani() argument
198 if (copy_from_user(buf, user_buf, len)) in write_file_ani()
[all …]
Dcommon-debug.c19 static ssize_t read_file_modal_eeprom(struct file *file, char __user *user_buf, in read_file_modal_eeprom() argument
33 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_modal_eeprom()
55 static ssize_t read_file_base_eeprom(struct file *file, char __user *user_buf, in read_file_base_eeprom() argument
69 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_base_eeprom()
123 static ssize_t read_file_recv(struct file *file, char __user *user_buf, in read_file_recv() argument
163 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_recv()
186 static ssize_t read_file_phy_err(struct file *file, char __user *user_buf, in read_file_phy_err() argument
232 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_phy_err()
Dtx99.c162 static ssize_t read_file_tx99(struct file *file, char __user *user_buf, in read_file_tx99() argument
170 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_tx99()
173 static ssize_t write_file_tx99(struct file *file, const char __user *user_buf, in write_file_tx99() argument
190 if (copy_from_user(buf, user_buf, len)) in write_file_tx99()
231 char __user *user_buf, in read_file_tx99_power() argument
242 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_tx99_power()
246 const char __user *user_buf, in write_file_tx99_power() argument
253 r = kstrtou8_from_user(user_buf, count, 0, &tx_power); in write_file_tx99_power()
Ddfs_debug.c34 static ssize_t read_file_dfs(struct file *file, char __user *user_buf, in read_file_dfs() argument
89 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_dfs()
97 static ssize_t write_file_dfs(struct file *file, const char __user *user_buf, in write_file_dfs() argument
106 if (copy_from_user(buf, user_buf, len)) in write_file_dfs()
120 const char __user *user_buf, in write_file_simulate_radar() argument
Ddebug_sta.c23 static ssize_t read_file_node_aggr(struct file *file, char __user *user_buf, in read_file_node_aggr() argument
88 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_node_aggr()
182 static ssize_t read_file_node_recv(struct file *file, char __user *user_buf, in read_file_node_recv() argument
243 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_node_recv()
/drivers/net/wireless/ath/ath6kl/
Ddebug.c285 static ssize_t read_file_war_stats(struct file *file, char __user *user_buf, in read_file_war_stats() argument
308 ret_cnt = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_war_stats()
383 static ssize_t ath6kl_fwlog_read(struct file *file, char __user *user_buf, in ath6kl_fwlog_read() argument
419 ret_cnt = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath6kl_fwlog_read()
435 char __user *user_buf, in ath6kl_fwlog_block_read() argument
486 not_copied = copy_to_user(user_buf, buf, len); in ath6kl_fwlog_block_read()
510 static ssize_t ath6kl_fwlog_mask_read(struct file *file, char __user *user_buf, in ath6kl_fwlog_mask_read() argument
519 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath6kl_fwlog_mask_read()
523 const char __user *user_buf, in ath6kl_fwlog_mask_write() argument
529 ret = kstrtou32_from_user(user_buf, count, 0, &ar->debug.fwlog_mask); in ath6kl_fwlog_mask_write()
[all …]
/drivers/net/wireless/iwlwifi/dvm/
Ddebugfs.c96 char __user *user_buf, in iwl_dbgfs_sram_read() argument
180 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_sram_read()
186 const char __user *user_buf, in iwl_dbgfs_sram_write() argument
196 if (copy_from_user(buf, user_buf, buf_size)) in iwl_dbgfs_sram_write()
214 char __user *user_buf, in iwl_dbgfs_wowlan_sram_read() argument
223 return simple_read_from_buffer(user_buf, count, ppos, in iwl_dbgfs_wowlan_sram_read()
227 static ssize_t iwl_dbgfs_stations_read(struct file *file, char __user *user_buf, in iwl_dbgfs_stations_read() argument
278 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_stations_read()
284 char __user *user_buf, in iwl_dbgfs_nvm_read() argument
321 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_nvm_read()
[all …]
/drivers/base/regmap/
Dregmap-debugfs.c39 char __user *user_buf, size_t count, in regmap_name_read_file() argument
56 ret = simple_read_from_buffer(user_buf, count, ppos, buf, ret); in regmap_name_read_file()
185 unsigned int to, char __user *user_buf, in regmap_read_debugfs() argument
242 if (copy_to_user(user_buf, buf, buf_pos)) { in regmap_read_debugfs()
254 static ssize_t regmap_map_read_file(struct file *file, char __user *user_buf, in regmap_map_read_file() argument
259 return regmap_read_debugfs(map, 0, map->max_register, user_buf, in regmap_map_read_file()
272 const char __user *user_buf, in regmap_map_write_file() argument
283 if (copy_from_user(buf, user_buf, buf_size)) in regmap_map_write_file()
314 static ssize_t regmap_range_read_file(struct file *file, char __user *user_buf, in regmap_range_read_file() argument
321 user_buf, count, ppos); in regmap_range_read_file()
[all …]
/drivers/net/wireless/iwlwifi/mvm/
Ddebugfs.c148 char __user *user_buf, in iwl_dbgfs_fw_error_dump_read() argument
157 simple_read_from_buffer(user_buf, count, ppos, in iwl_dbgfs_fw_error_dump_read()
167 simple_read_from_buffer(user_buf + bytes_read, in iwl_dbgfs_fw_error_dump_read()
196 static ssize_t iwl_dbgfs_sram_read(struct file *file, char __user *user_buf, in iwl_dbgfs_sram_read() argument
224 ret = simple_read_from_buffer(user_buf, count, ppos, ptr, len); in iwl_dbgfs_sram_read()
263 char __user *user_buf, in iwl_dbgfs_set_nic_temperature_read() argument
275 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_set_nic_temperature_read()
330 char __user *user_buf, in iwl_dbgfs_nic_temp_read() argument
349 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_nic_temp_read()
352 static ssize_t iwl_dbgfs_stations_read(struct file *file, char __user *user_buf, in iwl_dbgfs_stations_read() argument
[all …]
Ddebugfs-vif.c194 char __user *user_buf, in iwl_dbgfs_pm_params_read() argument
206 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_pm_params_read()
210 char __user *user_buf, in iwl_dbgfs_mac_params_read() argument
291 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_mac_params_read()
437 char __user *user_buf, in iwl_dbgfs_bf_params_read() argument
482 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_bf_params_read()
507 char __user *user_buf, in iwl_dbgfs_low_latency_read() argument
517 return simple_read_from_buffer(user_buf, count, ppos, buf, sizeof(buf)); in iwl_dbgfs_low_latency_read()
Ddebugfs.h75 const char __user *user_buf, \
82 if (copy_from_user(buf, user_buf, buf_size)) \
/drivers/net/wireless/ath/wcn36xx/
Ddebug.c27 static ssize_t read_file_bool_bmps(struct file *file, char __user *user_buf, in read_file_bool_bmps() argument
50 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in read_file_bool_bmps()
54 const char __user *user_buf, in write_file_bool_bmps() argument
65 if (copy_from_user(buf, user_buf, buf_size)) in write_file_bool_bmps()
105 const char __user *user_buf, in write_file_dump() argument
118 if (copy_from_user(buf, user_buf, buf_size)) in write_file_dump()
/drivers/net/wireless/ath/ath10k/
Ddebug.c192 char __user *user_buf, in ath10k_read_wmi_services() argument
230 ret_cnt = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_wmi_services()
374 static ssize_t ath10k_read_fw_stats(struct file *file, char __user *user_buf, in ath10k_read_fw_stats() argument
553 ret_cnt = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_fw_stats()
589 char __user *user_buf, in ath10k_read_simulate_fw_crash() argument
598 return simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); in ath10k_read_simulate_fw_crash()
609 const char __user *user_buf, in ath10k_write_simulate_fw_crash() argument
618 simple_write_to_buffer(buf, sizeof(buf) - 1, ppos, user_buf, count); in ath10k_write_simulate_fw_crash()
674 static ssize_t ath10k_read_chip_id(struct file *file, char __user *user_buf, in ath10k_read_chip_id() argument
683 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_chip_id()
[all …]
Dspectral.c281 static ssize_t read_file_spec_scan_ctl(struct file *file, char __user *user_buf, in read_file_spec_scan_ctl() argument
306 return simple_read_from_buffer(user_buf, count, ppos, mode, len); in read_file_spec_scan_ctl()
310 const char __user *user_buf, in write_file_spec_scan_ctl() argument
319 if (copy_from_user(buf, user_buf, len)) in write_file_spec_scan_ctl()
373 char __user *user_buf, in read_file_spectral_count() argument
386 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_spectral_count()
390 const char __user *user_buf, in write_file_spectral_count() argument
399 if (copy_from_user(buf, user_buf, len)) in write_file_spectral_count()
425 char __user *user_buf, in read_file_spectral_bins() argument
441 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_spectral_bins()
[all …]
/drivers/video/adf/
Dadf_fops.c160 struct adf_buffer_config user_buf; in adf_buffer_import() local
164 if (copy_from_user(&user_buf, cfg, sizeof(user_buf))) in adf_buffer_import()
169 if (user_buf.n_planes > ADF_MAX_PLANES) { in adf_buffer_import()
171 user_buf.n_planes); in adf_buffer_import()
176 user_buf.overlay_engine); in adf_buffer_import()
179 user_buf.overlay_engine); in adf_buffer_import()
183 buf->w = user_buf.w; in adf_buffer_import()
184 buf->h = user_buf.h; in adf_buffer_import()
185 buf->format = user_buf.format; in adf_buffer_import()
186 for (i = 0; i < user_buf.n_planes; i++) { in adf_buffer_import()
[all …]
/drivers/acpi/
Dcustom_method.c22 static ssize_t cm_write(struct file *file, const char __user * user_buf, in cm_write() argument
36 if (copy_from_user(&table, user_buf, in cm_write()
54 if (copy_from_user(buf + (*ppos), user_buf, count)) { in cm_write()
/drivers/net/wireless/ath/ath5k/
Ddebug.c195 static ssize_t read_file_beacon(struct file *file, char __user *user_buf, in read_file_beacon() argument
240 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_beacon()
316 static ssize_t read_file_debug(struct file *file, char __user *user_buf, in read_file_debug() argument
341 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_debug()
378 static ssize_t read_file_antenna(struct file *file, char __user *user_buf, in read_file_antenna() argument
446 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_antenna()
491 static ssize_t read_file_misc(struct file *file, char __user *user_buf, in read_file_misc() argument
534 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_misc()
546 static ssize_t read_file_frameerrors(struct file *file, char __user *user_buf, in read_file_frameerrors() argument
619 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_frameerrors()
[all …]
/drivers/mfd/
Dab8500-debugfs.c1470 const char __user *user_buf, in ab8500_bank_write() argument
1477 err = kstrtoul_from_user(user_buf, count, 0, &user_bank); in ab8500_bank_write()
1502 const char __user *user_buf, in ab8500_address_write() argument
1509 err = kstrtoul_from_user(user_buf, count, 0, &user_address); in ab8500_address_write()
1546 const char __user *user_buf, in ab8500_val_write() argument
1553 err = kstrtoul_from_user(user_buf, count, 0, &user_val); in ab8500_val_write()
2413 const char __user *user_buf, in ab8500_gpadc_avg_sample_write() argument
2420 err = kstrtoul_from_user(user_buf, count, 0, &user_avg_sample); in ab8500_gpadc_avg_sample_write()
2458 const char __user *user_buf, in ab8500_gpadc_trig_edge_write() argument
2465 err = kstrtoul_from_user(user_buf, count, 0, &user_trig_edge); in ab8500_gpadc_trig_edge_write()
[all …]
/drivers/misc/
Dlkdtm.c636 const char __user *user_buf, size_t count, loff_t *off) in do_register_entry() argument
647 if (copy_from_user(buf, user_buf, count)) { in do_register_entry()
671 static ssize_t lkdtm_debugfs_read(struct file *f, char __user *user_buf, in lkdtm_debugfs_read() argument
686 out = simple_read_from_buffer(user_buf, count, off, in lkdtm_debugfs_read()
748 static ssize_t direct_entry(struct file *f, const char __user *user_buf, in direct_entry() argument
762 if (copy_from_user(buf, user_buf, count)) { in direct_entry()
/drivers/media/usb/uvc/
Duvc_debugfs.c47 static ssize_t uvc_debugfs_stats_read(struct file *file, char __user *user_buf, in uvc_debugfs_stats_read() argument
52 return simple_read_from_buffer(user_buf, nbytes, ppos, buf->data, in uvc_debugfs_stats_read()
/drivers/media/pci/ivtv/
Divtv-fileops.c548 static ssize_t ivtv_write(struct file *filp, const char __user *user_buf, size_t count, loff_t *pos) in ivtv_write() argument
579 (const struct v4l2_sliced_vbi_data __user *)user_buf, elems); in ivtv_write()
607 rc = ivtv_yuv_udma_stream_frame(itv, (void __user *)user_buf); in ivtv_write()
613 user_buf += itv->dma_data_req_size; in ivtv_write()
652 rc = ivtv_buf_copy_from_user(s, buf, user_buf, in ivtv_write()
655 rc = ivtv_buf_copy_from_user(s, buf, user_buf, count); in ivtv_write()
662 user_buf += rc; in ivtv_write()
720 ssize_t ivtv_v4l2_write(struct file *filp, const char __user *user_buf, size_t count, loff_t *pos) in ivtv_v4l2_write() argument
728 res = ivtv_write(filp, user_buf, count, pos); in ivtv_v4l2_write()

123