Searched defs:user_buf (Results 1 - 25 of 57) sorted by relevance

123

/drivers/acpi/
H A Dcustom_method.c22 static ssize_t cm_write(struct file *file, const char __user * user_buf, argument
36 if (copy_from_user(&table, user_buf,
54 if (copy_from_user(buf + (*ppos), user_buf, count)) {
/drivers/media/usb/uvc/
H A Duvc_debugfs.c47 static ssize_t uvc_debugfs_stats_read(struct file *file, char __user *user_buf, argument
52 return simple_read_from_buffer(user_buf, nbytes, ppos, buf->data,
/drivers/net/wireless/ath/ath9k/
H A Ddfs_debug.c34 static ssize_t read_file_dfs(struct file *file, char __user *user_buf, argument
89 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len);
97 static ssize_t write_file_dfs(struct file *file, const char __user *user_buf, argument
106 if (copy_from_user(buf, user_buf, len))
120 const char __user *user_buf,
119 write_file_simulate_radar(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
H A Dcommon-debug.c19 static ssize_t read_file_modal_eeprom(struct file *file, char __user *user_buf, argument
33 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len);
55 static ssize_t read_file_base_eeprom(struct file *file, char __user *user_buf, argument
69 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len);
123 static ssize_t read_file_recv(struct file *file, char __user *user_buf, argument
163 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len);
186 static ssize_t read_file_phy_err(struct file *file, char __user *user_buf, argument
232 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len);
H A Ddebug_sta.c23 static ssize_t read_file_node_aggr(struct file *file, char __user *user_buf, argument
88 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len);
182 static ssize_t read_file_node_recv(struct file *file, char __user *user_buf, argument
243 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len);
H A Dtx99.c162 static ssize_t read_file_tx99(struct file *file, char __user *user_buf, argument
170 return simple_read_from_buffer(user_buf, count, ppos, buf, len);
173 static ssize_t write_file_tx99(struct file *file, const char __user *user_buf, argument
187 if (copy_from_user(buf, user_buf, len))
221 char __user *user_buf,
232 return simple_read_from_buffer(user_buf, count, ppos, buf, len);
236 const char __user *user_buf,
243 r = kstrtou8_from_user(user_buf, count, 0, &tx_power);
220 read_file_tx99_power(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
235 write_file_tx99_power(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
H A Dhtc_drv_debug.c19 static ssize_t read_file_tgt_int_stats(struct file *file, char __user *user_buf, argument
67 return simple_read_from_buffer(user_buf, count, ppos, buf, len);
77 static ssize_t read_file_tgt_tx_stats(struct file *file, char __user *user_buf, argument
137 return simple_read_from_buffer(user_buf, count, ppos, buf, len);
147 static ssize_t read_file_tgt_rx_stats(struct file *file, char __user *user_buf, argument
183 return simple_read_from_buffer(user_buf, count, ppos, buf, len);
193 static ssize_t read_file_xmit(struct file *file, char __user *user_buf, argument
235 return simple_read_from_buffer(user_buf, count, ppos, buf, len);
251 static ssize_t read_file_skb_rx(struct file *file, char __user *user_buf, argument
276 retval = simple_read_from_buffer(user_buf, coun
289 read_file_slot(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
324 read_file_queue(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
371 read_file_debug(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
383 write_file_debug(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
[all...]
/drivers/net/wireless/ath/wcn36xx/
H A Ddebug.c27 static ssize_t read_file_bool_bmps(struct file *file, char __user *user_buf, argument
50 return simple_read_from_buffer(user_buf, count, ppos, buf, 2);
54 const char __user *user_buf,
65 if (copy_from_user(buf, user_buf, buf_size))
105 const char __user *user_buf,
118 if (copy_from_user(buf, user_buf, buf_size))
53 write_file_bool_bmps(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
104 write_file_dump(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
/drivers/net/wireless/ti/wl18xx/
H A Ddebugfs.c172 static ssize_t conf_read(struct file *file, char __user *user_buf, argument
202 ret = simple_read_from_buffer(user_buf, count, ppos, buf, len);
215 const char __user *user_buf,
214 clear_fw_stats_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
/drivers/media/common/siano/
H A Dsmsdvb-debugfs.c397 static ssize_t smsdvb_stats_read(struct file *file, char __user *user_buf, argument
425 rc = simple_read_from_buffer(user_buf, nbytes, ppos,
/drivers/net/wireless/cw1200/
H A Ddebug.c363 const char __user *user_buf, size_t count, loff_t *ppos)
370 if (copy_from_user(buf, user_buf, 1))
362 cw1200_wsm_dumps(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
/drivers/net/wireless/iwlegacy/
H A D3945-debug.c52 il3945_ucode_rx_stats_read(struct file *file, char __user *user_buf, argument
311 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos);
317 il3945_ucode_tx_stats_read(struct file *file, char __user *user_buf, argument
401 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos);
407 il3945_ucode_general_stats_read(struct file *file, char __user *user_buf, argument
502 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos);
H A D4965-debug.c59 il4965_ucode_rx_stats_read(struct file *file, char __user *user_buf, argument
465 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos);
471 il4965_ucode_tx_stats_read(struct file *file, char __user *user_buf, argument
631 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos);
637 il4965_ucode_general_stats_read(struct file *file, char __user *user_buf, argument
743 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos);
/drivers/net/wireless/iwlwifi/mvm/
H A Ddebugfs-vif.c194 char __user *user_buf,
206 return simple_read_from_buffer(user_buf, count, ppos, buf, pos);
210 char __user *user_buf,
291 return simple_read_from_buffer(user_buf, count, ppos, buf, pos);
437 char __user *user_buf,
482 return simple_read_from_buffer(user_buf, count, ppos, buf, pos);
507 char __user *user_buf,
517 return simple_read_from_buffer(user_buf, count, ppos, buf, sizeof(buf));
193 iwl_dbgfs_pm_params_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
209 iwl_dbgfs_mac_params_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
436 iwl_dbgfs_bf_params_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
506 iwl_dbgfs_low_latency_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
/drivers/remoteproc/
H A Dremoteproc_debugfs.c152 rproc_recovery_write(struct file *filp, const char __user *user_buf, argument
162 ret = copy_from_user(buf, user_buf, count);
/drivers/s390/block/
H A Ddasd_proc.c270 const char __user *user_buf, size_t user_len, loff_t *pos)
278 buffer = dasd_get_user_string(user_buf, user_len);
269 dasd_stats_proc_write(struct file *file, const char __user *user_buf, size_t user_len, loff_t *pos) argument
/drivers/base/regmap/
H A Dregmap-debugfs.c40 char __user *user_buf, size_t count,
57 ret = simple_read_from_buffer(user_buf, count, ppos, buf, ret);
186 unsigned int to, char __user *user_buf,
243 if (copy_to_user(user_buf, buf, buf_pos)) {
255 static ssize_t regmap_map_read_file(struct file *file, char __user *user_buf, argument
260 return regmap_read_debugfs(map, 0, map->max_register, user_buf,
273 const char __user *user_buf,
284 if (copy_from_user(buf, user_buf, buf_size))
315 static ssize_t regmap_range_read_file(struct file *file, char __user *user_buf, argument
322 user_buf, coun
39 regmap_name_read_file(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
185 regmap_read_debugfs(struct regmap *map, unsigned int from, unsigned int to, char __user *user_buf, size_t count, loff_t *ppos) argument
272 regmap_map_write_file(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
331 regmap_reg_ranges_read_file(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
404 regmap_access_read_file(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
[all...]
/drivers/hid/
H A Dhid-picolcd_debugfs.c47 static ssize_t picolcd_debug_reset_write(struct file *f, const char __user *user_buf, argument
53 if (copy_from_user(buf, user_buf, cnt))
/drivers/mfd/
H A Daat2870-core.c265 static ssize_t aat2870_reg_read_file(struct file *file, char __user *user_buf, argument
278 ret = simple_read_from_buffer(user_buf, count, ppos, buf, ret);
286 const char __user *user_buf, size_t count,
297 if (copy_from_user(buf, user_buf, buf_size)) {
285 aat2870_reg_write_file(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
/drivers/mtd/ubi/
H A Ddebug.c259 static ssize_t dfs_file_read(struct file *file, char __user *user_buf, argument
296 count = simple_read_from_buffer(user_buf, count, ppos, buf, 2);
304 static ssize_t dfs_file_write(struct file *file, const char __user *user_buf, argument
321 if (copy_from_user(buf, user_buf, buf_size)) {
/drivers/pinctrl/
H A Dpinconf.c472 * @user_buf: contains the modification request with expected format:
480 const char __user *user_buf, size_t count, loff_t *ppos)
498 if (copy_from_user(buf, user_buf, buf_size))
479 pinconf_dbg_config_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
/drivers/s390/cio/
H A Dblacklist.c350 cio_ignore_write(struct file *file, const char __user *user_buf, argument
364 if (strncpy_from_user (buf, user_buf, user_len) < 0) {
/drivers/media/pci/ivtv/
H A Divtv-fileops.c548 static ssize_t ivtv_write(struct file *filp, const char __user *user_buf, size_t count, loff_t *pos) argument
579 (const struct v4l2_sliced_vbi_data __user *)user_buf, elems);
607 rc = ivtv_yuv_udma_stream_frame(itv, (void __user *)user_buf);
613 user_buf += itv->dma_data_req_size;
652 rc = ivtv_buf_copy_from_user(s, buf, user_buf,
655 rc = ivtv_buf_copy_from_user(s, buf, user_buf, count);
662 user_buf += rc;
720 ssize_t ivtv_v4l2_write(struct file *filp, const char __user *user_buf, size_t count, loff_t *pos) argument
728 res = ivtv_write(filp, user_buf, count, pos);
/drivers/net/caif/
H A Dcaif_spi.c129 static ssize_t dbgfs_state(struct file *file, char __user *user_buf, argument
169 size = simple_read_from_buffer(user_buf, count, ppos, buf, len);
201 static ssize_t dbgfs_frame(struct file *file, char __user *user_buf, argument
232 size = simple_read_from_buffer(user_buf, count, ppos, buf, len);
/drivers/net/wireless/ath/ath10k/
H A Dspectral.c281 static ssize_t read_file_spec_scan_ctl(struct file *file, char __user *user_buf, argument
306 return simple_read_from_buffer(user_buf, count, ppos, mode, len);
310 const char __user *user_buf,
319 if (copy_from_user(buf, user_buf, len))
373 char __user *user_buf,
386 return simple_read_from_buffer(user_buf, count, ppos, buf, len);
390 const char __user *user_buf,
399 if (copy_from_user(buf, user_buf, len))
425 char __user *user_buf,
441 return simple_read_from_buffer(user_buf, coun
309 write_file_spec_scan_ctl(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
372 read_file_spectral_count(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
389 write_file_spectral_count(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
424 read_file_spectral_bins(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
444 write_file_spectral_bins(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
[all...]

Completed in 8628 milliseconds

123