Searched refs:user_buf (Results 51 - 75 of 125) sorted by relevance

12345

/linux-master/arch/sparc/prom/
H A Dtree_32.c170 void prom_getstring(phandle node, char *prop, char *user_buf, int ubuf_size) argument
174 len = prom_getproperty(node, prop, user_buf, ubuf_size);
176 user_buf[0] = 0;
H A Dtree_64.c188 void prom_getstring(phandle node, const char *prop, char *user_buf, argument
193 len = prom_getproperty(node, prop, user_buf, ubuf_size);
196 user_buf[0] = 0;
/linux-master/fs/debugfs/
H A Dfile.c875 ssize_t debugfs_read_file_bool(struct file *file, char __user *user_buf, argument
894 return simple_read_from_buffer(user_buf, count, ppos, buf, 2);
898 ssize_t debugfs_write_file_bool(struct file *file, const char __user *user_buf, argument
906 r = kstrtobool_from_user(user_buf, count, &bv);
960 ssize_t debugfs_read_file_str(struct file *file, char __user *user_buf, argument
989 ret = simple_read_from_buffer(user_buf, count, ppos, copy, len);
996 static ssize_t debugfs_write_file_str(struct file *file, const char __user *user_buf, argument
1028 if (copy_from_user(new + pos, user_buf, count))
1087 static ssize_t read_file_blob(struct file *file, char __user *user_buf, argument
1097 r = simple_read_from_buffer(user_buf, coun
1103 write_file_blob(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
[all...]
/linux-master/drivers/net/wireless/ath/ath11k/
H A Dspectral.c270 char __user *user_buf,
295 return simple_read_from_buffer(user_buf, count, ppos, mode, len);
299 const char __user *user_buf,
308 if (copy_from_user(buf, user_buf, len))
364 char __user *user_buf,
377 return simple_read_from_buffer(user_buf, count, ppos, buf, len);
381 const char __user *user_buf,
388 ret = kstrtoul_from_user(user_buf, count, 0, &val);
411 char __user *user_buf,
427 return simple_read_from_buffer(user_buf, coun
269 ath11k_read_file_spec_scan_ctl(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
298 ath11k_write_file_spec_scan_ctl(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
363 ath11k_read_file_spectral_count(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
380 ath11k_write_file_spectral_count(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
410 ath11k_read_file_spectral_bins(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
430 ath11k_write_file_spectral_bins(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
[all...]
/linux-master/drivers/net/wireless/intel/iwlegacy/
H A D3945-debug.c34 il3945_ucode_rx_stats_read(struct file *file, char __user *user_buf, argument
293 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos);
299 il3945_ucode_tx_stats_read(struct file *file, char __user *user_buf, argument
383 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos);
389 il3945_ucode_general_stats_read(struct file *file, char __user *user_buf, argument
484 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos);
/linux-master/arch/powerpc/kernel/
H A Deeh.c1601 const char __user *user_buf,
1610 ret = simple_write_to_buffer(buf, sizeof(buf)-1, ppos, user_buf, count);
1650 const char __user *user_buf,
1659 ret = simple_write_to_buffer(buf, sizeof(buf), ppos, user_buf, count);
1706 char __user *user_buf,
1711 return simple_read_from_buffer(user_buf, count, ppos,
1716 const char __user *user_buf,
1723 pdev = eeh_debug_lookup_pdev(filp, user_buf, count, ppos);
1844 const char __user *user_buf,
1850 pdev = eeh_debug_lookup_pdev(filp, user_buf, coun
1600 eeh_debug_lookup_pdev(struct file *filp, const char __user *user_buf, size_t count, loff_t *ppos) argument
1649 eeh_force_recover_write(struct file *filp, const char __user *user_buf, size_t count, loff_t *ppos) argument
1705 eeh_debugfs_dev_usage(struct file *filp, char __user *user_buf, size_t count, loff_t *ppos) argument
1715 eeh_dev_check_write(struct file *filp, const char __user *user_buf, size_t count, loff_t *ppos) argument
1843 eeh_dev_break_write(struct file *filp, const char __user *user_buf, size_t count, loff_t *ppos) argument
1870 eeh_dev_can_recover(struct file *filp, const char __user *user_buf, size_t count, loff_t *ppos) argument
[all...]
/linux-master/drivers/media/pci/ivtv/
H A Divtv-fileops.c536 static ssize_t ivtv_write(struct file *filp, const char __user *user_buf, size_t count, loff_t *pos) argument
567 (const struct v4l2_sliced_vbi_data __user *)user_buf, elems);
595 rc = ivtv_yuv_udma_stream_frame(itv, (void __user *)user_buf);
601 user_buf += itv->dma_data_req_size;
640 rc = ivtv_buf_copy_from_user(s, buf, user_buf,
643 rc = ivtv_buf_copy_from_user(s, buf, user_buf, count);
650 user_buf += rc;
708 ssize_t ivtv_v4l2_write(struct file *filp, const char __user *user_buf, size_t count, loff_t *pos) argument
716 res = ivtv_write(filp, user_buf, count, pos);
/linux-master/drivers/mfd/
H A Daat2870-core.c251 static ssize_t aat2870_reg_read_file(struct file *file, char __user *user_buf, argument
264 ret = simple_read_from_buffer(user_buf, count, ppos, buf, ret);
272 const char __user *user_buf, size_t count,
283 if (copy_from_user(buf, user_buf, buf_size)) {
271 aat2870_reg_write_file(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
/linux-master/drivers/net/wireless/intel/iwlwifi/fw/
H A Ddebugfs.c37 char __user *user_buf, \
51 return simple_read_from_buffer(user_buf, count, ppos, \
74 const char __user *user_buf, \
82 if (copy_from_user(buf, user_buf, buf_size)) \
/linux-master/net/6lowpan/
H A Ddebugfs.c124 const char __user *user_buf, size_t count,
135 if (copy_from_user(&buf, user_buf, min_t(size_t, sizeof(buf) - 1,
123 lowpan_ctx_pfx_write(struct file *fp, const char __user *user_buf, size_t count, loff_t *ppos) argument
/linux-master/arch/powerpc/kvm/
H A Dtiming.c162 const char __user *user_buf,
172 if (get_user(c, user_buf)) {
161 kvmppc_exit_timing_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
/linux-master/kernel/irq/
H A Ddebugfs.c196 static ssize_t irq_debug_write(struct file *file, const char __user *user_buf, argument
204 if (copy_from_user(buf, user_buf, size))
/linux-master/sound/soc/fsl/
H A Dimx-audmux.c56 static ssize_t audmux_read_file(struct file *file, char __user *user_buf, argument
122 ret = simple_read_from_buffer(user_buf, count, ppos, buf, ret);
/linux-master/net/wireless/
H A Ddebugfs.c64 char __user *user_buf,
87 r = simple_read_from_buffer(user_buf, count, ppos, buf, offset);
63 ht40allow_map_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
/linux-master/drivers/s390/block/
H A Ddasd_proc.c255 const char __user *user_buf, size_t user_len, loff_t *pos)
263 buffer = dasd_get_user_string(user_buf, user_len);
254 dasd_stats_proc_write(struct file *file, const char __user *user_buf, size_t user_len, loff_t *pos) argument
/linux-master/kernel/sched/
H A Dpsi.c1512 static ssize_t psi_write(struct file *file, const char __user *user_buf, argument
1527 if (copy_from_user(buf, user_buf, buf_size))
1555 static ssize_t psi_io_write(struct file *file, const char __user *user_buf, argument
1558 return psi_write(file, user_buf, nbytes, PSI_IO);
1561 static ssize_t psi_memory_write(struct file *file, const char __user *user_buf, argument
1564 return psi_write(file, user_buf, nbytes, PSI_MEM);
1567 static ssize_t psi_cpu_write(struct file *file, const char __user *user_buf, argument
1570 return psi_write(file, user_buf, nbytes, PSI_CPU);
1626 static ssize_t psi_irq_write(struct file *file, const char __user *user_buf, argument
1629 return psi_write(file, user_buf, nbyte
[all...]
/linux-master/drivers/media/radio/
H A Dradio-si476x.c1182 char __user *user_buf,
1199 return simple_read_from_buffer(user_buf, count, ppos, &report,
1210 char __user *user_buf,
1228 return simple_read_from_buffer(user_buf, count, ppos, &report,
1239 char __user *user_buf,
1256 return simple_read_from_buffer(user_buf, count, ppos, &report,
1267 char __user *user_buf,
1291 return simple_read_from_buffer(user_buf, count, ppos, &report,
1302 char __user *user_buf,
1326 return simple_read_from_buffer(user_buf, coun
1181 si476x_radio_read_acf_blob(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
1209 si476x_radio_read_rds_blckcnt_blob(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
1238 si476x_radio_read_agc_blob(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
1266 si476x_radio_read_rsq_blob(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
1301 si476x_radio_read_rsq_primary_blob(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
[all...]
/linux-master/drivers/net/wireless/mediatek/mt76/mt7915/
H A Ddebugfs.c49 mt7915_sys_recovery_set(struct file *file, const char __user *user_buf, argument
62 if (copy_from_user(buf, user_buf, count))
125 mt7915_sys_recovery_get(struct file *file, char __user *user_buf, argument
199 ret = simple_read_from_buffer(user_buf, count, ppos, buff, desc);
973 mt7915_rate_txpower_get(struct file *file, char __user *user_buf, argument
1042 ret = simple_read_from_buffer(user_buf, count, ppos, buf, len);
1050 mt7915_rate_txpower_set(struct file *file, const char __user *user_buf, argument
1068 if (copy_from_user(buf, user_buf, count))
1316 const char __user *user_buf,
1332 if (copy_from_user(buf, user_buf, coun
1315 mt7915_sta_fixed_rate_set(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
[all...]
/linux-master/drivers/net/wireless/realtek/rtw89/
H A Ddebug.c133 const char __user *user_buf,
145 if (copy_from_user(buf, user_buf, buf_size))
211 const char __user *user_buf,
222 if (copy_from_user(buf, user_buf, buf_size))
255 const char __user *user_buf,
268 if (copy_from_user(buf, user_buf, buf_size))
310 const char __user *user_buf,
322 if (copy_from_user(buf, user_buf, buf_size))
871 const char __user *user_buf,
884 if (copy_from_user(buf, user_buf, buf_siz
132 rtw89_debug_priv_read_reg_select(struct file *filp, const char __user *user_buf, size_t count, loff_t *loff) argument
210 rtw89_debug_priv_write_reg_set(struct file *filp, const char __user *user_buf, size_t count, loff_t *loff) argument
254 rtw89_debug_priv_read_rf_select(struct file *filp, const char __user *user_buf, size_t count, loff_t *loff) argument
309 rtw89_debug_priv_write_rf_set(struct file *filp, const char __user *user_buf, size_t count, loff_t *loff) argument
870 rtw89_debug_priv_mac_reg_dump_select(struct file *filp, const char __user *user_buf, size_t count, loff_t *loff) argument
987 rtw89_debug_priv_mac_mem_dump_select(struct file *filp, const char __user *user_buf, size_t count, loff_t *loff) argument
1097 rtw89_debug_priv_mac_dbg_port_dump_select(struct file *filp, const char __user *user_buf, size_t count, loff_t *loff) argument
3225 rtw89_hex2bin_user(struct rtw89_dev *rtwdev, const char __user *user_buf, size_t count) argument
3256 rtw89_debug_priv_send_h2c_set(struct file *filp, const char __user *user_buf, size_t count, loff_t *loff) argument
3294 rtw89_debug_priv_early_h2c_set(struct file *filp, const char __user *user_buf, size_t count, loff_t *loff) argument
3375 rtw89_debug_priv_fw_crash_set(struct file *filp, const char __user *user_buf, size_t count, loff_t *loff) argument
3423 rtw89_debug_priv_btc_manual_set(struct file *filp, const char __user *user_buf, size_t count, loff_t *loff) argument
3445 rtw89_debug_fw_log_manual_set(struct file *filp, const char __user *user_buf, size_t count, loff_t *loff) argument
3810 rtw89_debug_priv_disable_dm_set(struct file *filp, const char __user *user_buf, size_t count, loff_t *loff) argument
[all...]
/linux-master/drivers/accel/habanalabs/common/
H A Dhabanalabs_ioctl.c889 void __user *user_buf = (void __user *) (uintptr_t) args->return_pointer; local
895 if (!user_buf)
905 rc = copy_to_user(user_buf, &info->event, sizeof(struct hl_info_hw_err_event));
911 void __user *user_buf = (void __user *) (uintptr_t) args->return_pointer; local
917 if (!user_buf)
927 rc = copy_to_user(user_buf, &info->event, sizeof(struct hl_info_fw_err_event));
933 void __user *user_buf = (void __user *) (uintptr_t) args->return_pointer; local
939 if (!user_buf)
949 rc = copy_to_user(user_buf, &info->event, sizeof(struct hl_info_engine_err_event));
/linux-master/samples/qmi/
H A Dqmi_sample_client.c290 * @user_buf: reference to the user data (ignored)
291 * @count: number of bytes in @user_buf
301 static ssize_t ping_write(struct file *file, const char __user *user_buf, argument
357 * @user_buf: reference to the user data
358 * @count: number of bytes in @user_buf
368 static ssize_t data_write(struct file *file, const char __user *user_buf, argument
389 if (copy_from_user(req->data, user_buf, req->data_len)) {
/linux-master/arch/x86/mm/
H A Dtlb.c1306 static ssize_t tlbflush_read_file(struct file *file, char __user *user_buf, argument
1313 return simple_read_from_buffer(user_buf, count, ppos, buf, len);
1317 const char __user *user_buf, size_t count, loff_t *ppos)
1324 if (copy_from_user(buf, user_buf, len))
1316 tlbflush_write_file(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
/linux-master/drivers/platform/chrome/
H A Dcros_ec_debugfs.c199 char __user *user_buf,
246 return simple_read_from_buffer(user_buf, count, ppos,
269 static ssize_t cros_ec_uptime_read(struct file *file, char __user *user_buf, argument
294 return simple_read_from_buffer(user_buf, count, ppos, read_buf, ret);
198 cros_ec_pdinfo_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
/linux-master/drivers/edac/
H A Daltera_edac.c574 altr_edac_device_trig(struct file *file, const char __user *user_buf, argument
587 if (!user_buf || get_user(trig_type, user_buf))
651 altr_edac_a10_device_trig(struct file *file, const char __user *user_buf,
661 altr_edac_a10_device_trig2(struct file *file, const char __user *user_buf,
1737 altr_edac_a10_device_trig(struct file *file, const char __user *user_buf, argument
1747 if (!user_buf || get_user(trig_type, user_buf))
1769 altr_edac_a10_device_trig2(struct file *file, const char __user *user_buf, argument
1779 if (!user_buf || get_use
[all...]
/linux-master/drivers/gpu/drm/
H A Ddrm_debugfs_crc.c284 static ssize_t crtc_crc_read(struct file *filep, char __user *user_buf, argument
338 if (copy_to_user(user_buf, buf, LINE_LEN(crc->values_cnt)))

Completed in 267 milliseconds

12345