Home
last modified time | relevance | path

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

/linux-4.1.27/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 …]
/linux-4.1.27/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 …]
D3945-debug.c52 il3945_ucode_rx_stats_read(struct file *file, char __user *user_buf, in il3945_ucode_rx_stats_read() argument
311 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il3945_ucode_rx_stats_read()
317 il3945_ucode_tx_stats_read(struct file *file, char __user *user_buf, in il3945_ucode_tx_stats_read() argument
401 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il3945_ucode_tx_stats_read()
407 il3945_ucode_general_stats_read(struct file *file, char __user *user_buf, in il3945_ucode_general_stats_read() argument
502 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il3945_ucode_general_stats_read()
D4965-debug.c59 il4965_ucode_rx_stats_read(struct file *file, char __user *user_buf, in il4965_ucode_rx_stats_read() argument
465 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il4965_ucode_rx_stats_read()
471 il4965_ucode_tx_stats_read(struct file *file, char __user *user_buf, in il4965_ucode_tx_stats_read() argument
631 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il4965_ucode_tx_stats_read()
637 il4965_ucode_general_stats_read(struct file *file, char __user *user_buf, in il4965_ucode_general_stats_read() argument
743 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il4965_ucode_general_stats_read()
D4965-rs.c2552 const char __user *user_buf, in il4965_rs_sta_dbgfs_scale_table_write() argument
2564 if (copy_from_user(buf, user_buf, buf_size)) in il4965_rs_sta_dbgfs_scale_table_write()
2588 il4965_rs_sta_dbgfs_scale_table_read(struct file *file, char __user *user_buf, in il4965_rs_sta_dbgfs_scale_table_read() argument
2683 ret = simple_read_from_buffer(user_buf, count, ppos, buff, desc); in il4965_rs_sta_dbgfs_scale_table_read()
2696 il4965_rs_sta_dbgfs_stats_table_read(struct file *file, char __user *user_buf, in il4965_rs_sta_dbgfs_stats_table_read() argument
2729 ret = simple_read_from_buffer(user_buf, count, ppos, buff, desc); in il4965_rs_sta_dbgfs_stats_table_read()
2742 char __user *user_buf, size_t count, in il4965_rs_sta_dbgfs_rate_scale_data_read() argument
2759 return simple_read_from_buffer(user_buf, count, ppos, buff, desc); in il4965_rs_sta_dbgfs_rate_scale_data_read()
D3945-rs.c826 il3945_sta_dbgfs_stats_table_read(struct file *file, char __user *user_buf, in il3945_sta_dbgfs_stats_table_read() argument
852 ret = simple_read_from_buffer(user_buf, count, ppos, buff, desc); in il3945_sta_dbgfs_stats_table_read()
Dcommon.h1535 ssize_t(*rx_stats_read) (struct file *file, char __user *user_buf,
1537 ssize_t(*tx_stats_read) (struct file *file, char __user *user_buf,
1540 char __user *user_buf, size_t count,
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
Dcommon-spectral.c213 static ssize_t read_file_spec_scan_ctl(struct file *file, char __user *user_buf, in read_file_spec_scan_ctl() argument
235 return simple_read_from_buffer(user_buf, count, ppos, mode, len); in read_file_spec_scan_ctl()
311 const char __user *user_buf, in write_file_spec_scan_ctl() argument
323 if (copy_from_user(buf, user_buf, len)) in write_file_spec_scan_ctl()
362 char __user *user_buf, in read_file_spectral_short_repeat() argument
370 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_spectral_short_repeat()
374 const char __user *user_buf, in write_file_spectral_short_repeat() argument
383 if (copy_from_user(buf, user_buf, len)) in write_file_spectral_short_repeat()
410 char __user *user_buf, in read_file_spectral_count() argument
418 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 …]
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
187 if (copy_from_user(buf, user_buf, len)) in write_file_tx99()
221 char __user *user_buf, in read_file_tx99_power() argument
232 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_tx99_power()
236 const char __user *user_buf, in write_file_tx99_power() argument
243 r = kstrtou8_from_user(user_buf, count, 0, &tx_power); in write_file_tx99_power()
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 …]
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()
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/
Ddebug.c273 static ssize_t read_file_war_stats(struct file *file, char __user *user_buf, in read_file_war_stats() argument
296 ret_cnt = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_war_stats()
371 static ssize_t ath6kl_fwlog_read(struct file *file, char __user *user_buf, in ath6kl_fwlog_read() argument
407 ret_cnt = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath6kl_fwlog_read()
423 char __user *user_buf, in ath6kl_fwlog_block_read() argument
474 not_copied = copy_to_user(user_buf, buf, len); in ath6kl_fwlog_block_read()
498 static ssize_t ath6kl_fwlog_mask_read(struct file *file, char __user *user_buf, in ath6kl_fwlog_mask_read() argument
507 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath6kl_fwlog_mask_read()
511 const char __user *user_buf, in ath6kl_fwlog_mask_write() argument
517 ret = kstrtou32_from_user(user_buf, count, 0, &ar->debug.fwlog_mask); in ath6kl_fwlog_mask_write()
[all …]
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
Ddebugfs_sta.c22 char __user *user_buf, in ath10k_dbg_sta_read_aggr_mode() argument
37 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_dbg_sta_read_aggr_mode()
41 const char __user *user_buf, in ath10k_dbg_sta_write_aggr_mode() argument
50 if (kstrtouint_from_user(user_buf, count, 0, &aggr_mode)) in ath10k_dbg_sta_write_aggr_mode()
84 const char __user *user_buf, in ath10k_dbg_sta_write_addba() argument
94 simple_write_to_buffer(buf, sizeof(buf) - 1, ppos, user_buf, count); in ath10k_dbg_sta_write_addba()
135 const char __user *user_buf, in ath10k_dbg_sta_write_addba_resp() argument
145 simple_write_to_buffer(buf, sizeof(buf) - 1, ppos, user_buf, count); in ath10k_dbg_sta_write_addba_resp()
185 const char __user *user_buf, in ath10k_dbg_sta_write_delba() argument
195 simple_write_to_buffer(buf, sizeof(buf) - 1, ppos, user_buf, count); in ath10k_dbg_sta_write_delba()
Ddebug.c181 char __user *user_buf, in ath10k_read_wmi_services() argument
221 ret_cnt = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_wmi_services()
703 static ssize_t ath10k_fw_stats_read(struct file *file, char __user *user_buf, in ath10k_fw_stats_read() argument
709 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_fw_stats_read()
721 char __user *user_buf, in ath10k_debug_fw_reset_stats_read() argument
747 ret = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_debug_fw_reset_stats_read()
782 char __user *user_buf, in ath10k_read_simulate_fw_crash() argument
792 return simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); in ath10k_read_simulate_fw_crash()
803 const char __user *user_buf, in ath10k_write_simulate_fw_crash() argument
812 simple_write_to_buffer(buf, sizeof(buf) - 1, ppos, user_buf, count); in ath10k_write_simulate_fw_crash()
[all …]
Dspectral.c268 static ssize_t read_file_spec_scan_ctl(struct file *file, char __user *user_buf, in read_file_spec_scan_ctl() argument
293 return simple_read_from_buffer(user_buf, count, ppos, mode, len); in read_file_spec_scan_ctl()
297 const char __user *user_buf, in write_file_spec_scan_ctl() argument
306 if (copy_from_user(buf, user_buf, len)) in write_file_spec_scan_ctl()
360 char __user *user_buf, in read_file_spectral_count() argument
373 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_spectral_count()
377 const char __user *user_buf, in write_file_spectral_count() argument
386 if (copy_from_user(buf, user_buf, len)) in write_file_spectral_count()
412 char __user *user_buf, in read_file_spectral_bins() argument
428 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_spectral_bins()
[all …]
/linux-4.1.27/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 …]
Drs.c3100 const char __user *user_buf, size_t count, loff_t *ppos) in rs_sta_dbgfs_scale_table_write() argument
3112 if (copy_from_user(buf, user_buf, buf_size)) in rs_sta_dbgfs_scale_table_write()
3126 char __user *user_buf, size_t count, loff_t *ppos) in rs_sta_dbgfs_scale_table_read() argument
3202 ret = simple_read_from_buffer(user_buf, count, ppos, buff, desc); in rs_sta_dbgfs_scale_table_read()
3214 char __user *user_buf, size_t count, loff_t *ppos) in rs_sta_dbgfs_stats_table_read() argument
3246 ret = simple_read_from_buffer(user_buf, count, ppos, buff, desc); in rs_sta_dbgfs_stats_table_read()
3258 char __user *user_buf, size_t count, loff_t *ppos) in rs_sta_dbgfs_rate_scale_data_read() argument
3274 return simple_read_from_buffer(user_buf, count, ppos, buff, desc); in rs_sta_dbgfs_rate_scale_data_read()
/linux-4.1.27/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()
/linux-4.1.27/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 …]
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
Ddebugfs.c124 static ssize_t iwl_dbgfs_sram_read(struct file *file, char __user *user_buf, in iwl_dbgfs_sram_read() argument
152 ret = simple_read_from_buffer(user_buf, count, ppos, ptr, len); in iwl_dbgfs_sram_read()
191 char __user *user_buf, in iwl_dbgfs_set_nic_temperature_read() argument
203 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_set_nic_temperature_read()
258 char __user *user_buf, in iwl_dbgfs_nic_temp_read() argument
277 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_nic_temp_read()
280 static ssize_t iwl_dbgfs_stations_read(struct file *file, char __user *user_buf, in iwl_dbgfs_stations_read() argument
306 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_stations_read()
310 char __user *user_buf, in iwl_dbgfs_disable_power_off_read() argument
323 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_disable_power_off_read()
[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()
521 char __user *user_buf, in iwl_dbgfs_uapsd_misbehaving_read() argument
530 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in iwl_dbgfs_uapsd_misbehaving_read()
[all …]
Ddebugfs.h75 const char __user *user_buf, \
82 if (copy_from_user(buf, user_buf, buf_size)) \
Drs.c3360 const char __user *user_buf, size_t count, loff_t *ppos) in rs_sta_dbgfs_scale_table_write() argument
3371 if (copy_from_user(buf, user_buf, buf_size)) in rs_sta_dbgfs_scale_table_write()
3385 char __user *user_buf, size_t count, loff_t *ppos) in rs_sta_dbgfs_scale_table_read() argument
3467 ret = simple_read_from_buffer(user_buf, count, ppos, buff, desc); in rs_sta_dbgfs_scale_table_read()
3479 char __user *user_buf, size_t count, loff_t *ppos) in rs_sta_dbgfs_stats_table_read() argument
3514 ret = simple_read_from_buffer(user_buf, count, ppos, buff, desc); in rs_sta_dbgfs_stats_table_read()
3526 char __user *user_buf, in rs_sta_dbgfs_drv_tx_stats_read() argument
3591 ret = simple_read_from_buffer(user_buf, count, ppos, buff, pos - buff); in rs_sta_dbgfs_drv_tx_stats_read()
3597 const char __user *user_buf, in rs_sta_dbgfs_drv_tx_stats_write() argument
3614 char __user *user_buf, in iwl_dbgfs_ss_force_read() argument
[all …]
Dd3.c1992 static ssize_t iwl_mvm_d3_test_read(struct file *file, char __user *user_buf, in iwl_mvm_d3_test_read() argument
/linux-4.1.27/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()
/linux-4.1.27/arch/s390/kernel/
Ddebug.c69 static ssize_t debug_output(struct file *file, char __user *user_buf,
71 static ssize_t debug_input(struct file *file, const char __user *user_buf,
82 struct file *file, const char __user *user_buf,
87 struct file *file, const char __user *user_buf,
90 struct file *file, const char __user *user_buf,
530 char __user *user_buf, /* user buffer */ in debug_output() argument
555 if (copy_to_user(user_buf + count, p_info->temp_buf in debug_output()
581 debug_input(struct file *file, const char __user *user_buf, size_t length, in debug_input() argument
591 p_info->view, file, user_buf, in debug_input()
1172 debug_get_user_string(const char __user *user_buf, size_t user_len) in debug_get_user_string() argument
[all …]
/linux-4.1.27/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 …]
/linux-4.1.27/arch/x86/mm/
Dtlb.c304 static ssize_t tlbflush_read_file(struct file *file, char __user *user_buf, in tlbflush_read_file() argument
311 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in tlbflush_read_file()
315 const char __user *user_buf, size_t count, loff_t *ppos) in tlbflush_write_file() argument
322 if (copy_from_user(buf, user_buf, len)) in tlbflush_write_file()
/linux-4.1.27/net/bluetooth/
Dhci_debugfs.c33 char __user *user_buf, \
42 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); \
46 const char __user *user_buf, \
57 if (copy_from_user(buf, user_buf, buf_size)) \
316 static ssize_t use_debug_keys_read(struct file *file, char __user *user_buf, in use_debug_keys_read() argument
325 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in use_debug_keys_read()
334 static ssize_t sc_only_mode_read(struct file *file, char __user *user_buf, in sc_only_mode_read() argument
343 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in sc_only_mode_read()
487 static ssize_t ssp_debug_mode_read(struct file *file, char __user *user_buf, in ssp_debug_mode_read() argument
496 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in ssp_debug_mode_read()
[all …]
Dselftest.c161 static ssize_t test_ecdh_read(struct file *file, char __user *user_buf, in test_ecdh_read() argument
164 return simple_read_from_buffer(user_buf, count, ppos, test_ecdh_buffer, in test_ecdh_read()
Dsmp.c3190 char __user *user_buf, in force_bredr_smp_read() argument
3199 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in force_bredr_smp_read()
3203 const char __user *user_buf, in force_bredr_smp_write() argument
3211 if (copy_from_user(buf, user_buf, buf_size)) in force_bredr_smp_write()
3558 static ssize_t test_smp_read(struct file *file, char __user *user_buf, in test_smp_read() argument
3561 return simple_read_from_buffer(user_buf, count, ppos, test_smp_buffer, in test_smp_read()
Dhci_core.c77 static ssize_t dut_mode_read(struct file *file, char __user *user_buf, in dut_mode_read() argument
86 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in dut_mode_read()
89 static ssize_t dut_mode_write(struct file *file, const char __user *user_buf, in dut_mode_write() argument
102 if (copy_from_user(buf, user_buf, buf_size)) in dut_mode_write()
/linux-4.1.27/drivers/mtd/ubi/
Ddebug.c259 static ssize_t dfs_file_read(struct file *file, char __user *user_buf, in dfs_file_read() argument
288 count = simple_read_from_buffer(user_buf, count, ppos, in dfs_file_read()
293 count = simple_read_from_buffer(user_buf, count, ppos, in dfs_file_read()
298 count = simple_read_from_buffer(user_buf, count, ppos, in dfs_file_read()
314 count = simple_read_from_buffer(user_buf, count, ppos, buf, 2); in dfs_file_read()
322 static ssize_t dfs_file_write(struct file *file, const char __user *user_buf, in dfs_file_write() argument
339 if (copy_from_user(buf, user_buf, buf_size)) { in dfs_file_write()
/linux-4.1.27/net/mac80211/
Ddebugfs.c75 static ssize_t reset_write(struct file *file, const char __user *user_buf, in reset_write() argument
95 static ssize_t hwflags_read(struct file *file, char __user *user_buf, in hwflags_read() argument
152 rv = simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); in hwflags_read()
157 static ssize_t queues_read(struct file *file, char __user *user_buf, in queues_read() argument
172 return simple_read_from_buffer(user_buf, count, ppos, buf, res); in queues_read()
/linux-4.1.27/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()
/linux-4.1.27/fs/debugfs/
Dfile.c450 static ssize_t read_file_bool(struct file *file, char __user *user_buf, in read_file_bool() argument
462 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in read_file_bool()
465 static ssize_t write_file_bool(struct file *file, const char __user *user_buf, in write_file_bool() argument
474 if (copy_from_user(buf, user_buf, buf_size)) in write_file_bool()
522 static ssize_t read_file_blob(struct file *file, char __user *user_buf, in read_file_blob() argument
526 return simple_read_from_buffer(user_buf, count, ppos, blob->data, in read_file_blob()
/linux-4.1.27/net/wireless/
Ddebugfs.c66 char __user *user_buf, in ht40allow_map_read() argument
92 r = simple_read_from_buffer(user_buf, count, ppos, buf, offset); in ht40allow_map_read()
/linux-4.1.27/arch/sparc/prom/
Dtree_32.c169 void prom_getstring(phandle node, char *prop, char *user_buf, int ubuf_size) in prom_getstring() argument
173 len = prom_getproperty(node, prop, user_buf, ubuf_size); in prom_getstring()
175 user_buf[0] = 0; in prom_getstring()
Dtree_64.c187 void prom_getstring(phandle node, const char *prop, char *user_buf, in prom_getstring() argument
192 len = prom_getproperty(node, prop, user_buf, ubuf_size); in prom_getstring()
195 user_buf[0] = 0; in prom_getstring()
/linux-4.1.27/fs/kernfs/
Dfile.c185 char __user *user_buf, size_t count, in kernfs_file_direct_read() argument
220 if (copy_to_user(user_buf, buf, len)) { in kernfs_file_direct_read()
243 static ssize_t kernfs_fop_read(struct file *file, char __user *user_buf, in kernfs_fop_read() argument
249 return seq_read(file, user_buf, count, ppos); in kernfs_fop_read()
251 return kernfs_file_direct_read(of, user_buf, count, ppos); in kernfs_fop_read()
270 static ssize_t kernfs_fop_write(struct file *file, const char __user *user_buf, in kernfs_fop_write() argument
304 if (copy_from_user(buf, user_buf, len)) { in kernfs_fop_write()
/linux-4.1.27/drivers/misc/
Dlkdtm.c616 const char __user *user_buf, size_t count, loff_t *off) in do_register_entry() argument
627 if (copy_from_user(buf, user_buf, count)) { in do_register_entry()
651 static ssize_t lkdtm_debugfs_read(struct file *f, char __user *user_buf, in lkdtm_debugfs_read() argument
666 out = simple_read_from_buffer(user_buf, count, off, in lkdtm_debugfs_read()
728 static ssize_t direct_entry(struct file *f, const char __user *user_buf, in direct_entry() argument
742 if (copy_from_user(buf, user_buf, count)) { in direct_entry()
/linux-4.1.27/drivers/mfd/
Dab8500-debugfs.c1472 const char __user *user_buf, in ab8500_bank_write() argument
1479 err = kstrtoul_from_user(user_buf, count, 0, &user_bank); in ab8500_bank_write()
1505 const char __user *user_buf, in ab8500_address_write() argument
1512 err = kstrtoul_from_user(user_buf, count, 0, &user_address); in ab8500_address_write()
1549 const char __user *user_buf, in ab8500_val_write() argument
1556 err = kstrtoul_from_user(user_buf, count, 0, &user_val); in ab8500_val_write()
2453 const char __user *user_buf, in ab8500_gpadc_avg_sample_write() argument
2460 err = kstrtoul_from_user(user_buf, count, 0, &user_avg_sample); in ab8500_gpadc_avg_sample_write()
2500 const char __user *user_buf, in ab8500_gpadc_trig_edge_write() argument
2507 err = kstrtoul_from_user(user_buf, count, 0, &user_trig_edge); in ab8500_gpadc_trig_edge_write()
[all …]
Daat2870-core.c265 static ssize_t aat2870_reg_read_file(struct file *file, char __user *user_buf, in aat2870_reg_read_file() argument
278 ret = simple_read_from_buffer(user_buf, count, ppos, buf, ret); in aat2870_reg_read_file()
286 const char __user *user_buf, size_t count, in aat2870_reg_write_file() argument
297 if (copy_from_user(buf, user_buf, buf_size)) { in aat2870_reg_write_file()
Dab3100-core.c486 const char __user *user_buf, in ab3100_get_set_reg() argument
500 if (copy_from_user(buf, user_buf, buf_size)) in ab3100_get_set_reg()
/linux-4.1.27/arch/arc/kernel/
Dtroubleshoot.c265 char __user *user_buf, /* user buffer */ in tlb_stats_output() argument
283 return simple_read_from_buffer(user_buf, num, offset, kbuf, len); in tlb_stats_output()
287 static ssize_t tlb_stats_clear(struct file *file, const char __user *user_buf, in tlb_stats_clear() argument
/linux-4.1.27/drivers/net/wireless/ti/wl18xx/
Ddebugfs.c175 static ssize_t conf_read(struct file *file, char __user *user_buf, in conf_read() argument
205 ret = simple_read_from_buffer(user_buf, count, ppos, buf, len); in conf_read()
218 const char __user *user_buf, in clear_fw_stats_write() argument
246 const char __user *user_buf, in radar_detection_write() argument
253 ret = kstrtou8_from_user(user_buf, count, 10, &channel); in radar_detection_write()
/linux-4.1.27/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()
/linux-4.1.27/drivers/media/radio/
Dradio-si476x.c1212 char __user *user_buf, in si476x_radio_read_acf_blob() argument
1229 return simple_read_from_buffer(user_buf, count, ppos, &report, in si476x_radio_read_acf_blob()
1240 char __user *user_buf, in si476x_radio_read_rds_blckcnt_blob() argument
1258 return simple_read_from_buffer(user_buf, count, ppos, &report, in si476x_radio_read_rds_blckcnt_blob()
1269 char __user *user_buf, in si476x_radio_read_agc_blob() argument
1286 return simple_read_from_buffer(user_buf, count, ppos, &report, in si476x_radio_read_agc_blob()
1297 char __user *user_buf, in si476x_radio_read_rsq_blob() argument
1321 return simple_read_from_buffer(user_buf, count, ppos, &report, in si476x_radio_read_rsq_blob()
1332 char __user *user_buf, in si476x_radio_read_rsq_primary_blob() argument
1356 return simple_read_from_buffer(user_buf, count, ppos, &report, in si476x_radio_read_rsq_primary_blob()
/linux-4.1.27/arch/x86/kernel/
Dkdebugfs.c30 static ssize_t setup_data_read(struct file *file, char __user *user_buf, in setup_data_read() argument
58 remain = copy_to_user(user_buf, p, count); in setup_data_read()
Dtboot.c363 static ssize_t tboot_log_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) in tboot_log_read() argument
395 if (copy_to_user(user_buf, kbuf, count)) in tboot_log_read()
/linux-4.1.27/drivers/remoteproc/
Dremoteproc_debugfs.c152 rproc_recovery_write(struct file *filp, const char __user *user_buf, in rproc_recovery_write() argument
162 ret = copy_from_user(buf, user_buf, count); in rproc_recovery_write()
/linux-4.1.27/arch/powerpc/kvm/
Dtiming.c174 const char __user *user_buf, in kvmppc_exit_timing_write() argument
184 if (get_user(c, user_buf)) { in kvmppc_exit_timing_write()
/linux-4.1.27/drivers/net/wireless/ath/wil6210/
Ddebugfs.c496 static ssize_t wil_read_file_ioblob(struct file *file, char __user *user_buf, in wil_read_file_ioblob() argument
524 ret = copy_to_user(user_buf, buf, count); in wil_read_file_ioblob()
685 static ssize_t wil_read_back(struct file *file, char __user *user_buf, in wil_read_back() argument
695 return simple_read_from_buffer(user_buf, count, ppos, text, in wil_read_back()
982 static ssize_t wil_read_file_ssid(struct file *file, char __user *user_buf, in wil_read_file_ssid() argument
988 return simple_read_from_buffer(user_buf, count, ppos, in wil_read_file_ssid()
1196 static ssize_t wil_read_file_recovery(struct file *file, char __user *user_buf, in wil_read_file_recovery() argument
1210 return simple_read_from_buffer(user_buf, count, ppos, in wil_read_file_recovery()
/linux-4.1.27/sound/soc/fsl/
Dimx-audmux.c65 static ssize_t audmux_read_file(struct file *file, char __user *user_buf, in audmux_read_file() argument
135 ret = simple_read_from_buffer(user_buf, count, ppos, buf, ret); in audmux_read_file()
/linux-4.1.27/drivers/net/wireless/iwlwifi/pcie/
Dtrans.c1805 char __user *user_buf, in iwl_dbgfs_tx_queue_read() argument
1838 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_tx_queue_read()
1844 char __user *user_buf, in iwl_dbgfs_rx_queue_read() argument
1871 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_rx_queue_read()
1875 char __user *user_buf, in iwl_dbgfs_interrupt_read() argument
1927 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_interrupt_read()
1933 const char __user *user_buf, in iwl_dbgfs_interrupt_write() argument
1946 if (copy_from_user(buf, user_buf, buf_size)) in iwl_dbgfs_interrupt_write()
1957 const char __user *user_buf, in iwl_dbgfs_csr_write() argument
1967 if (copy_from_user(buf, user_buf, buf_size)) in iwl_dbgfs_csr_write()
[all …]
/linux-4.1.27/drivers/net/caif/
Dcaif_spi.c129 static ssize_t dbgfs_state(struct file *file, char __user *user_buf, in dbgfs_state() argument
169 size = simple_read_from_buffer(user_buf, count, ppos, buf, len); in dbgfs_state()
201 static ssize_t dbgfs_frame(struct file *file, char __user *user_buf, in dbgfs_frame() argument
232 size = simple_read_from_buffer(user_buf, count, ppos, buf, len); in dbgfs_frame()
/linux-4.1.27/drivers/s390/cio/
Dblacklist.c352 cio_ignore_write(struct file *file, const char __user *user_buf, in cio_ignore_write() argument
366 if (strncpy_from_user (buf, user_buf, user_len) < 0) { in cio_ignore_write()
/linux-4.1.27/drivers/s390/block/
Ddasd_proc.c272 const char __user *user_buf, size_t user_len, loff_t *pos) in dasd_stats_proc_write() argument
280 buffer = dasd_get_user_string(user_buf, user_len); in dasd_stats_proc_write()
Ddasd.c914 char *dasd_get_user_string(const char __user *user_buf, size_t user_len) in dasd_get_user_string() argument
921 if (copy_from_user(buffer, user_buf, user_len) != 0) { in dasd_get_user_string()
934 const char __user *user_buf, in dasd_stats_write() argument
944 buffer = dasd_get_user_string(user_buf, user_len); in dasd_stats_write()
/linux-4.1.27/drivers/net/wireless/cw1200/
Ddebug.c363 const char __user *user_buf, size_t count, loff_t *ppos) in cw1200_wsm_dumps() argument
370 if (copy_from_user(buf, user_buf, 1)) in cw1200_wsm_dumps()
/linux-4.1.27/drivers/net/wireless/libertas/
Ddebugfs.c55 const char __user *user_buf, size_t count, in lbs_sleepparams_write() argument
68 if (copy_from_user(buf, user_buf, buf_size)) { in lbs_sleepparams_write()
124 const char __user *user_buf, size_t count, in lbs_host_sleep_write() argument
136 if (copy_from_user(buf, user_buf, buf_size)) { in lbs_host_sleep_write()
/linux-4.1.27/sound/soc/
Dsoc-core.c228 static ssize_t codec_reg_read_file(struct file *file, char __user *user_buf, in codec_reg_read_file() argument
244 if (copy_to_user(user_buf, buf, ret)) { in codec_reg_read_file()
256 const char __user *user_buf, size_t count, loff_t *ppos) in codec_reg_write_file() argument
266 if (copy_from_user(buf, user_buf, buf_size)) in codec_reg_write_file()
343 static ssize_t codec_list_read_file(struct file *file, char __user *user_buf, in codec_list_read_file() argument
369 ret = simple_read_from_buffer(user_buf, count, ppos, buf, ret); in codec_list_read_file()
381 static ssize_t dai_list_read_file(struct file *file, char __user *user_buf, in dai_list_read_file() argument
409 ret = simple_read_from_buffer(user_buf, count, ppos, buf, ret); in dai_list_read_file()
422 char __user *user_buf, in platform_list_read_file() argument
447 ret = simple_read_from_buffer(user_buf, count, ppos, buf, ret); in platform_list_read_file()
Dsoc-dapm.c1810 char __user *user_buf, in dapm_widget_power_read_file() argument
1874 ret = simple_read_from_buffer(user_buf, count, ppos, buf, ret); in dapm_widget_power_read_file()
1886 static ssize_t dapm_bias_read_file(struct file *file, char __user *user_buf, in dapm_bias_read_file() argument
1911 return simple_read_from_buffer(user_buf, count, ppos, level, in dapm_bias_read_file()
Dsoc-pcm.c2777 static ssize_t dpcm_state_read_file(struct file *file, char __user *user_buf, in dpcm_state_read_file() argument
2796 ret = simple_read_from_buffer(user_buf, count, ppos, buf, offset); in dpcm_state_read_file()
/linux-4.1.27/drivers/pinctrl/
Dpinconf.c480 const char __user *user_buf, size_t count, loff_t *ppos) in pinconf_dbg_config_write() argument
498 if (copy_from_user(buf, user_buf, buf_size)) in pinconf_dbg_config_write()
/linux-4.1.27/drivers/spi/
Dspi-dw.c53 static ssize_t dw_spi_show_regs(struct file *file, char __user *user_buf, in dw_spi_show_regs() argument
102 ret = simple_read_from_buffer(user_buf, count, ppos, buf, len); in dw_spi_show_regs()
/linux-4.1.27/arch/s390/include/asm/
Ddebug.h67 const char __user *user_buf,
/linux-4.1.27/drivers/usb/host/
Dohci-dbg.c701 static ssize_t debug_output(struct file *file, char __user *user_buf, in debug_output() argument
717 ret = simple_read_from_buffer(user_buf, len, offset, in debug_output()
Dehci-dbg.c978 static ssize_t debug_output(struct file *file, char __user *user_buf, in debug_output() argument
994 ret = simple_read_from_buffer(user_buf, len, offset, in debug_output()
Dfusbh200-hcd.c779 static ssize_t debug_output(struct file *file, char __user *user_buf, in debug_output() argument
795 ret = simple_read_from_buffer(user_buf, len, offset, in debug_output()
Dfotg210-hcd.c808 static ssize_t debug_output(struct file *file, char __user *user_buf, in debug_output() argument
824 ret = simple_read_from_buffer(user_buf, len, offset, in debug_output()
/linux-4.1.27/drivers/media/common/siano/
Dsmsdvb-debugfs.c395 static ssize_t smsdvb_stats_read(struct file *file, char __user *user_buf, in smsdvb_stats_read() argument
423 rc = simple_read_from_buffer(user_buf, nbytes, ppos, in smsdvb_stats_read()
/linux-4.1.27/kernel/
Dkprobes.c2387 char __user *user_buf, size_t count, loff_t *ppos) in read_enabled_file_bool() argument
2397 return simple_read_from_buffer(user_buf, count, ppos, buf, 2); in read_enabled_file_bool()
2401 const char __user *user_buf, size_t count, loff_t *ppos) in write_enabled_file_bool() argument
2407 if (copy_from_user(buf, user_buf, buf_size)) in write_enabled_file_bool()
/linux-4.1.27/arch/arm/mach-omap2/
Dmux.c681 const char __user *user_buf, in omap_mux_dbg_signal_write() argument
693 ret = kstrtou16_from_user(user_buf, count, 0x10, &val); in omap_mux_dbg_signal_write()
/linux-4.1.27/drivers/hid/
Dhid-picolcd_debugfs.c47 static ssize_t picolcd_debug_reset_write(struct file *f, const char __user *user_buf, in picolcd_debug_reset_write() argument
53 if (copy_from_user(buf, user_buf, cnt)) in picolcd_debug_reset_write()
/linux-4.1.27/arch/powerpc/platforms/powernv/
Deeh-powernv.c121 const char __user *user_buf, in pnv_eeh_ei_write() argument
136 ret = simple_write_to_buffer(buf, sizeof(buf), ppos, user_buf, count); in pnv_eeh_ei_write()
/linux-4.1.27/lib/
Ddma-debug.c781 static ssize_t filter_read(struct file *file, char __user *user_buf, in filter_read() argument
800 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in filter_read()
/linux-4.1.27/mm/
Dkmemleak.c1660 static ssize_t kmemleak_write(struct file *file, const char __user *user_buf, in kmemleak_write() argument
1668 if (strncpy_from_user(buf, user_buf, buf_size) < 0) in kmemleak_write()
/linux-4.1.27/drivers/tty/serial/
Dpch_uart.c320 static ssize_t port_show_regs(struct file *file, char __user *user_buf, in port_show_regs() argument
365 ret = simple_read_from_buffer(user_buf, count, ppos, buf, len); in port_show_regs()
/linux-4.1.27/drivers/regulator/
Dcore.c3955 static ssize_t supply_map_read_file(struct file *file, char __user *user_buf, in supply_map_read_file() argument
3978 ret = simple_read_from_buffer(user_buf, count, ppos, buf, ret); in supply_map_read_file()
/linux-4.1.27/drivers/gpu/drm/i915/
Di915_debugfs.c3069 i915_pipe_crc_read(struct file *filep, char __user *user_buf, size_t count, in i915_pipe_crc_read() argument
3132 ret = copy_to_user(user_buf, buf, PIPE_CRC_LINE_LEN); in i915_pipe_crc_read()
3136 user_buf += PIPE_CRC_LINE_LEN; in i915_pipe_crc_read()
/linux-4.1.27/Documentation/s390/
Ds390dbf.txt573 struct file* file, const char* user_buf,