Home
last modified time | relevance | path

Searched refs:ppos (Results 1 – 25 of 554) sorted by relevance

12345678910>>...23

/linux/include/linux/
H A Dnvram.h81 static inline ssize_t nvram_read_bytes(char *buf, size_t count, loff_t *ppos) in nvram_read_bytes() argument
89 for (i = *ppos; count > 0 && i < nvram_size; ++i, ++p, --count) in nvram_read_bytes()
91 *ppos = i; in nvram_read_bytes()
95 static inline ssize_t nvram_write_bytes(char *buf, size_t count, loff_t *ppos) in nvram_write_bytes() argument
103 for (i = *ppos; count > 0 && i < nvram_size; ++i, ++p, --count) in nvram_write_bytes()
105 *ppos = i; in nvram_write_bytes()
109 static inline ssize_t nvram_read(char *buf, size_t count, loff_t *ppos) in nvram_read() argument
113 return ppc_md.nvram_read(buf, count, ppos); in nvram_read()
116 return arch_nvram_ops.read(buf, count, ppos); in nvram_read()
118 return nvram_read_bytes(buf, count, ppos); in nvram_read()
[all …]
H A Dsysctl.h78 size_t *lenp, loff_t *ppos);
82 loff_t *ppos);
84 loff_t *ppos);
86 loff_t *ppos);
88 size_t *lenp, loff_t *ppos);
90 loff_t *ppos);
92 size_t *lenp, loff_t *ppos);
94 size_t *lenp, loff_t *ppos);
96 size_t *lenp, loff_t *ppos);
98 size_t *lenp, loff_t *ppos);
[all …]
/linux/drivers/infiniband/hw/hfi1/
H A Ddebugfs.c390 size_t count, loff_t *ppos) in dev_counters_read() argument
399 rval = simple_read_from_buffer(buf, count, ppos, counters, avail); in dev_counters_read()
405 size_t count, loff_t *ppos) in dev_names_read() argument
414 rval = simple_read_from_buffer(buf, count, ppos, names, avail); in dev_names_read()
430 size_t count, loff_t *ppos) in portnames_read() argument
439 rval = simple_read_from_buffer(buf, count, ppos, names, avail); in portnames_read()
445 size_t count, loff_t *ppos) in portcntrs_debugfs_read() argument
454 rval = simple_read_from_buffer(buf, count, ppos, counters, avail); in portcntrs_debugfs_read()
473 size_t count, loff_t *ppos) in asic_flags_read() argument
516 ret = simple_read_from_buffer(buf, count, ppos, tmp, used); in asic_flags_read()
[all …]
/linux/kernel/
H A Dsysctl.c67 char *buffer, size_t *lenp, loff_t *ppos)
84 if (*ppos > len) in _proc_do_string()
86 len = *ppos; in _proc_do_string()
92 *ppos += *lenp; in _proc_do_string()
106 if (*ppos > len) { in _proc_do_string()
111 data += *ppos; in _proc_do_string()
112 len -= *ppos; in _proc_do_string()
123 *ppos += len; in _proc_do_string()
138 * @ppos: file position in warn_sysctl_write()
145 static bool proc_first_pos_non_zero_ignore(loff_t *ppos,
77 _proc_do_string(char * data,int maxlen,int dir,char * buffer,size_t * lenp,loff_t * ppos) _proc_do_string() argument
155 proc_first_pos_non_zero_ignore(loff_t * ppos,const struct ctl_table * table) proc_first_pos_non_zero_ignore() argument
190 proc_dostring(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dostring() argument
647 do_proc_vec(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos,enum proc_vec_type type,union proc_vec_conv conv) do_proc_vec() argument
755 proc_douintvec_conv(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos,int (* conv)(bool * negp,ulong * u_ptr,uint * k_ptr,int dir,const struct ctl_table * table)) proc_douintvec_conv() argument
784 proc_dobool(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dobool() argument
821 proc_dointvec(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec() argument
841 proc_douintvec(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_douintvec() argument
865 proc_dointvec_minmax(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_minmax() argument
892 proc_douintvec_minmax(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_douintvec_minmax() argument
917 proc_dou8vec_minmax(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dou8vec_minmax() argument
1065 proc_doulongvec_conv(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos,int (* conv)(bool * negp,ulong * u_ptr,ulong * k_ptr,int dir,const struct ctl_table * table)) proc_doulongvec_conv() argument
1090 proc_doulongvec_minmax(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_doulongvec_minmax() argument
1111 proc_dointvec_conv(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos,int (* conv)(bool * negp,unsigned long * u_ptr,int * k_ptr,int dir,const struct ctl_table * table)) proc_dointvec_conv() argument
1139 proc_do_large_bitmap(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_do_large_bitmap() argument
1271 proc_dostring(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dostring() argument
1277 proc_dobool(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dobool() argument
1283 proc_dointvec(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec() argument
1289 proc_douintvec(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_douintvec() argument
1295 proc_dointvec_minmax(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_minmax() argument
1301 proc_douintvec_minmax(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_douintvec_minmax() argument
1307 proc_douintvec_conv(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos,int (* conv)(bool * negp,ulong * lvalp,uint * valp,int write,const struct ctl_table * table)) proc_douintvec_conv() argument
1334 proc_dou8vec_minmax(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dou8vec_minmax() argument
1340 proc_doulongvec_minmax(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_doulongvec_minmax() argument
1346 proc_doulongvec_conv(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos,int (* conv)(bool * negp,ulong * u_ptr,ulong * k_ptr,int dir,const struct ctl_table * table)) proc_doulongvec_conv() argument
1354 proc_dointvec_conv(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos,int (* conv)(bool * negp,unsigned long * u_ptr,int * k_ptr,int dir,const struct ctl_table * table)) proc_dointvec_conv() argument
1362 proc_do_large_bitmap(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_do_large_bitmap() argument
1371 proc_do_static_key(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_do_static_key() argument
[all...]
/linux/samples/hung_task/
H A Dhung_task_tests.c38 size_t count, loff_t *ppos) in read_dummy_mutex() argument
41 if (*ppos >= sizeof(dummy_string)) in read_dummy_mutex()
50 return simple_read_from_buffer(user_buf, count, ppos, dummy_string, in read_dummy_mutex()
56 size_t count, loff_t *ppos) in read_dummy_semaphore() argument
59 if (*ppos >= sizeof(dummy_string)) in read_dummy_semaphore()
70 return simple_read_from_buffer(user_buf, count, ppos, dummy_string, in read_dummy_semaphore()
76 size_t count, loff_t *ppos) in read_dummy_rwsem_read() argument
79 if (*ppos >= sizeof(dummy_string)) in read_dummy_rwsem_read()
90 return simple_read_from_buffer(user_buf, count, ppos, dummy_string, in read_dummy_rwsem_read()
96 size_t count, loff_t *ppos) in read_dummy_rwsem_write() argument
[all …]
/linux/drivers/net/wireless/marvell/libertas/
H A Ddebugfs.c26 size_t count, loff_t *ppos) in write_file_dummy() argument
34 size_t count, loff_t *ppos) in lbs_dev_info() argument
48 res = simple_read_from_buffer(userbuf, count, ppos, buf, pos); in lbs_dev_info()
56 loff_t *ppos) in lbs_sleepparams_write() argument
92 size_t count, loff_t *ppos) in lbs_sleepparams_read() argument
111 ret = simple_read_from_buffer(userbuf, count, ppos, buf, pos); in lbs_sleepparams_read()
120 loff_t *ppos) in lbs_host_sleep_write() argument
161 size_t count, loff_t *ppos) in lbs_host_sleep_read() argument
172 ret = simple_read_from_buffer(userbuf, count, ppos, buf, pos); in lbs_host_sleep_read()
216 size_t count, loff_t *ppos) in lbs_threshold_read() argument
[all …]
/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_debugfs.c14 size_t count, loff_t *ppos, in ixgbe_dbg_common_ops_read() argument
22 if (*ppos != 0) in ixgbe_dbg_common_ops_read()
35 len = simple_read_from_buffer(buffer, count, ppos, buf, strlen(buf)); in ixgbe_dbg_common_ops_read()
49 size_t count, loff_t *ppos) in ixgbe_dbg_reg_ops_read() argument
51 return ixgbe_dbg_common_ops_read(filp, buffer, count, ppos, in ixgbe_dbg_reg_ops_read()
64 size_t count, loff_t *ppos) in ixgbe_dbg_reg_ops_write() argument
70 if (*ppos != 0) in ixgbe_dbg_reg_ops_write()
77 ppos, in ixgbe_dbg_reg_ops_write()
132 size_t count, loff_t *ppos) in ixgbe_dbg_netdev_ops_read() argument
134 return ixgbe_dbg_common_ops_read(filp, buffer, count, ppos, in ixgbe_dbg_netdev_ops_read()
[all …]
/linux/net/mac80211/
H A Ddebugfs.c21 loff_t *ppos, char *fmt, ...) in mac80211_format_buffer() argument
31 return simple_read_from_buffer(userbuf, count, ppos, buf, res); in mac80211_format_buffer()
36 size_t count, loff_t *ppos) \
40 return mac80211_format_buffer(userbuf, count, ppos, \
77 loff_t *ppos) in aqm_read() argument
109 return simple_read_from_buffer(user_buf, count, ppos, in aqm_read()
116 loff_t *ppos) in aqm_write() argument
150 size_t count, loff_t *ppos) in airtime_flags_read() argument
165 return simple_read_from_buffer(user_buf, count, ppos, buf, in airtime_flags_read()
171 size_t count, loff_t *ppos) in airtime_flags_write() argument
188 aql_pending_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) aql_pending_read() argument
220 aql_txq_limit_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) aql_txq_limit_read() argument
249 aql_txq_limit_write(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) aql_txq_limit_write() argument
305 aql_enable_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) aql_enable_read() argument
317 aql_enable_write(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) aql_enable_write() argument
343 force_tx_status_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) force_tx_status_read() argument
358 force_tx_status_write(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) force_tx_status_write() argument
380 reset_write(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) reset_write() argument
469 hwflags_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) hwflags_read() argument
498 hwflags_write(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) hwflags_write() argument
538 misc_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) misc_read() argument
570 queues_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) queues_read() argument
594 format_devstat_counter(struct ieee80211_local * local,char __user * userbuf,size_t count,loff_t * ppos,int (* printvalue)(struct ieee80211_low_level_stats * stats,char * buf,int buflen)) format_devstat_counter() argument
[all...]
/linux/drivers/staging/vme_user/
H A Dvme_user.c123 loff_t *ppos) in resource_to_user() argument
131 count, *ppos); in resource_to_user()
142 size_t count, loff_t *ppos) in resource_from_user() argument
151 count, *ppos); in resource_from_user()
155 size_t count, loff_t *ppos) in buffer_to_user() argument
165 if (*ppos >= image[minor].size_buf) in buffer_to_user()
167 if (count > image[minor].size_buf - *ppos) in buffer_to_user()
168 count = image[minor].size_buf - *ppos; in buffer_to_user()
170 image_ptr = image[minor].kern_buf + *ppos; in buffer_to_user()
178 size_t count, loff_t *ppos) in buffer_from_user() argument
[all …]
/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_heartbeat_dbgfs.c23 size_t count, loff_t *ppos) in adf_hb_stats_read() argument
29 if (*ppos > 0) in adf_hb_stats_read()
35 return simple_read_from_buffer(user_buffer, count, ppos, buf, len + 1); in adf_hb_stats_read()
45 size_t count, loff_t *ppos) in adf_hb_status_read() argument
53 if (*ppos > 0) in adf_hb_status_read()
66 return simple_read_from_buffer(user_buf, count, ppos, ret_str, len + 1); in adf_hb_status_read()
76 size_t count, loff_t *ppos) in adf_hb_cfg_read() argument
83 if (*ppos > 0) in adf_hb_cfg_read()
90 return simple_read_from_buffer(user_buf, count, ppos, timer_str, in adf_hb_cfg_read()
95 size_t count, loff_t *ppos) in adf_hb_cfg_write() argument
[all …]
/linux/drivers/net/wireless/marvell/mwifiex/
H A Ddebugfs.c64 size_t count, loff_t *ppos) in mwifiex_info_read() argument
137 ret = simple_read_from_buffer(ubuf, count, ppos, page, p - page); in mwifiex_info_read()
167 size_t count, loff_t *ppos) in mwifiex_getlog_read() argument
223 ret = simple_read_from_buffer(ubuf, count, ppos, page, p - page); in mwifiex_getlog_read()
242 size_t count, loff_t *ppos) in mwifiex_histogram_read() argument
311 ret = simple_read_from_buffer(ubuf, count, ppos, page, p - page); in mwifiex_histogram_read()
320 size_t count, loff_t *ppos) in mwifiex_histogram_write() argument
380 size_t count, loff_t *ppos) in mwifiex_debug_read() argument
397 ret = simple_read_from_buffer(ubuf, count, ppos, page, p - page); in mwifiex_debug_read()
415 const char __user *ubuf, size_t count, loff_t *ppos) in mwifiex_regrdwr_write() argument
[all …]
/linux/fs/
H A Dread_write.c433 int rw_verify_area(int read_write, struct file *file, const loff_t *ppos, size_t count) in SYSCALL_DEFINE5()
441 if (ppos) { in SYSCALL_DEFINE5()
442 loff_t pos = *ppos; in SYSCALL_DEFINE5()
459 return fsnotify_file_area_perm(file, mask, ppos, count); in rw_verify_area()
463 static ssize_t new_sync_read(struct file *filp, char __user *buf, size_t len, loff_t *ppos) in rw_verify_area()
470 kiocb.ki_pos = (ppos ? *ppos : 0); in rw_verify_area()
475 if (ppos) in rw_verify_area()
476 *ppos = kiocb.ki_pos; in rw_verify_area()
565 static ssize_t new_sync_write(struct file *filp, const char __user *buf, size_t len, loff_t *ppos) in vfs_read()
453 rw_verify_area(int read_write,struct file * file,const loff_t * ppos,size_t count) rw_verify_area() argument
483 new_sync_read(struct file * filp,char __user * buf,size_t len,loff_t * ppos) new_sync_read() argument
585 new_sync_write(struct file * filp,const char __user * buf,size_t len,loff_t * ppos) new_sync_write() argument
711 loff_t pos, *ppos = file_ppos(fd_file(f)); ksys_read() local
734 loff_t pos, *ppos = file_ppos(fd_file(f)); ksys_write() local
814 do_iter_readv_writev(struct file * filp,struct iov_iter * iter,loff_t * ppos,int type,rwf_t flags) do_iter_readv_writev() argument
837 do_loop_readv_writev(struct file * filp,struct iov_iter * iter,loff_t * ppos,int type,rwf_t flags) do_loop_readv_writev() argument
897 vfs_iter_read(struct file * file,struct iov_iter * iter,loff_t * ppos,rwf_t flags) vfs_iter_read() argument
960 vfs_iter_write(struct file * file,struct iov_iter * iter,loff_t * ppos,rwf_t flags) vfs_iter_write() argument
1076 loff_t pos, *ppos = file_ppos(fd_file(f)); do_readv() local
1099 loff_t pos, *ppos = file_ppos(fd_file(f)); do_writev() local
1303 do_sendfile(int out_fd,int in_fd,loff_t * ppos,size_t count,loff_t max) do_sendfile() argument
[all...]
/linux/drivers/parport/
H A Dprocfs.c37 void *result, size_t *lenp, loff_t *ppos) in do_active_device() argument
47 if (*ppos) { in do_active_device()
67 *ppos += len; in do_active_device()
74 void *result, size_t *lenp, loff_t *ppos) in do_autoprobe() argument
84 if (*ppos) { in do_autoprobe()
109 *ppos += len; in do_autoprobe()
117 void *result, size_t *lenp, loff_t *ppos) in do_hardware_base_addr() argument
123 if (*ppos) { in do_hardware_base_addr()
138 *ppos += len; in do_hardware_base_addr()
144 void *result, size_t *lenp, loff_t *ppos) in do_hardware_irq() argument
171 do_hardware_dma(const struct ctl_table * table,int write,void * result,size_t * lenp,loff_t * ppos) do_hardware_dma() argument
198 do_hardware_modes(const struct ctl_table * table,int write,void * result,size_t * lenp,loff_t * ppos) do_hardware_modes() argument
[all...]
/linux/drivers/net/wireless/intel/iwlegacy/
H A Ddebug.c125 size_t count, loff_t *ppos);
130 size_t count, loff_t *ppos);
201 loff_t *ppos) in il_dbgfs_tx_stats_read() argument
234 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il_dbgfs_tx_stats_read()
242 loff_t *ppos) in il_dbgfs_clear_traffic_stats_write() argument
262 loff_t *ppos) in il_dbgfs_rx_stats_read() argument
296 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il_dbgfs_rx_stats_read()
306 loff_t *ppos) in il_dbgfs_sram_read() argument
358 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il_dbgfs_sram_read()
365 size_t count, loff_t *ppos) in il_dbgfs_sram_write() argument
390 il_dbgfs_stations_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) il_dbgfs_stations_read() argument
454 il_dbgfs_nvm_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) il_dbgfs_nvm_read() argument
498 il_dbgfs_channels_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) il_dbgfs_channels_read() argument
577 il_dbgfs_status_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) il_dbgfs_status_read() argument
638 il_dbgfs_interrupt_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) il_dbgfs_interrupt_read() argument
717 il_dbgfs_interrupt_write(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) il_dbgfs_interrupt_write() argument
738 il_dbgfs_qos_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) il_dbgfs_qos_read() argument
763 il_dbgfs_disable_ht40_write(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) il_dbgfs_disable_ht40_write() argument
789 il_dbgfs_disable_ht40_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) il_dbgfs_disable_ht40_read() argument
813 il_dbgfs_tx_queue_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) il_dbgfs_tx_queue_read() argument
860 il_dbgfs_rx_queue_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) il_dbgfs_rx_queue_read() argument
889 il_dbgfs_ucode_rx_stats_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) il_dbgfs_ucode_rx_stats_read() argument
898 il_dbgfs_ucode_tx_stats_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) il_dbgfs_ucode_tx_stats_read() argument
907 il_dbgfs_ucode_general_stats_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) il_dbgfs_ucode_general_stats_read() argument
916 il_dbgfs_sensitivity_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) il_dbgfs_sensitivity_read() argument
1015 il_dbgfs_chain_noise_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) il_dbgfs_chain_noise_read() argument
1086 il_dbgfs_power_save_status_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) il_dbgfs_power_save_status_read() argument
1111 il_dbgfs_clear_ucode_stats_write(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) il_dbgfs_clear_ucode_stats_write() argument
1135 il_dbgfs_rxon_flags_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) il_dbgfs_rxon_flags_read() argument
1148 il_dbgfs_rxon_filter_flags_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) il_dbgfs_rxon_filter_flags_read() argument
1162 il_dbgfs_fh_reg_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) il_dbgfs_fh_reg_read() argument
1184 il_dbgfs_missed_beacon_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) il_dbgfs_missed_beacon_read() argument
1201 il_dbgfs_missed_beacon_write(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) il_dbgfs_missed_beacon_write() argument
1226 il_dbgfs_force_reset_read(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) il_dbgfs_force_reset_read() argument
1257 il_dbgfs_force_reset_write(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) il_dbgfs_force_reset_write() argument
1270 il_dbgfs_wd_timeout_write(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) il_dbgfs_wd_timeout_write() argument
[all...]
/linux/net/sctp/
H A Dsysctl.c47 void *buffer, size_t *lenp, loff_t *ppos);
49 void *buffer, size_t *lenp, loff_t *ppos);
51 size_t *lenp, loff_t *ppos);
53 size_t *lenp, loff_t *ppos);
55 void *buffer, size_t *lenp, loff_t *ppos);
57 void *buffer, size_t *lenp, loff_t *ppos);
59 void *buffer, size_t *lenp, loff_t *ppos);
388 void *buffer, size_t *lenp, loff_t *ppos) in proc_sctp_do_hmac_alg() argument
401 ret = proc_dostring(&tbl, 1, buffer, lenp, ppos); in proc_sctp_do_hmac_alg()
419 return proc_dostring(&tbl, 0, buffer, lenp, ppos); in proc_sctp_do_hmac_alg()
[all …]
/linux/drivers/net/wireless/nxp/nxpwifi/
H A Ddebugfs.c38 size_t count, loff_t *ppos) in nxpwifi_info_read()
112 ret = simple_read_from_buffer(ubuf, count, ppos, (char *)page, in nxpwifi_info_read()
126 size_t count, loff_t *ppos) in nxpwifi_getlog_read()
181 ret = simple_read_from_buffer(ubuf, count, ppos, (char *)page, in nxpwifi_getlog_read()
195 size_t count, loff_t *ppos) in nxpwifi_histogram_read()
269 ret = simple_read_from_buffer(ubuf, count, ppos, (char *)page, in nxpwifi_histogram_read()
279 size_t count, loff_t *ppos) in nxpwifi_histogram_write()
293 size_t count, loff_t *ppos) in nxpwifi_debug_read()
310 ret = simple_read_from_buffer(ubuf, count, ppos, (char *)page, in nxpwifi_debug_read()
326 const char __user *ubuf, size_t count, loff_t *ppos) in nxpwifi_regrdwr_write()
37 nxpwifi_info_read(struct file * file,char __user * ubuf,size_t count,loff_t * ppos) nxpwifi_info_read() argument
125 nxpwifi_getlog_read(struct file * file,char __user * ubuf,size_t count,loff_t * ppos) nxpwifi_getlog_read() argument
194 nxpwifi_histogram_read(struct file * file,char __user * ubuf,size_t count,loff_t * ppos) nxpwifi_histogram_read() argument
273 nxpwifi_histogram_write(struct file * file,const char __user * ubuf,size_t count,loff_t * ppos) nxpwifi_histogram_write() argument
287 nxpwifi_debug_read(struct file * file,char __user * ubuf,size_t count,loff_t * ppos) nxpwifi_debug_read() argument
320 nxpwifi_regrdwr_write(struct file * file,const char __user * ubuf,size_t count,loff_t * ppos) nxpwifi_regrdwr_write() argument
358 nxpwifi_regrdwr_read(struct file * file,char __user * ubuf,size_t count,loff_t * ppos) nxpwifi_regrdwr_read() argument
410 nxpwifi_debug_mask_read(struct file * file,char __user * ubuf,size_t count,loff_t * ppos) nxpwifi_debug_mask_read() argument
434 nxpwifi_debug_mask_write(struct file * file,const char __user * ubuf,size_t count,loff_t * ppos) nxpwifi_debug_mask_write() argument
460 nxpwifi_verext_write(struct file * file,const char __user * ubuf,size_t count,loff_t * ppos) nxpwifi_verext_write() argument
478 nxpwifi_verext_read(struct file * file,char __user * ubuf,size_t count,loff_t * ppos) nxpwifi_verext_read() argument
495 nxpwifi_memrw_write(struct file * file,const char __user * ubuf,size_t count,loff_t * ppos) nxpwifi_memrw_write() argument
538 nxpwifi_memrw_read(struct file * file,char __user * ubuf,size_t count,loff_t * ppos) nxpwifi_memrw_read() argument
561 nxpwifi_rdeeprom_write(struct file * file,const char __user * ubuf,size_t count,loff_t * ppos) nxpwifi_rdeeprom_write() argument
595 nxpwifi_rdeeprom_read(struct file * file,char __user * ubuf,size_t count,loff_t * ppos) nxpwifi_rdeeprom_read() argument
639 nxpwifi_hscfg_write(struct file * file,const char __user * ubuf,size_t count,loff_t * ppos) nxpwifi_hscfg_write() argument
695 nxpwifi_hscfg_read(struct file * file,char __user * ubuf,size_t count,loff_t * ppos) nxpwifi_hscfg_read() argument
720 nxpwifi_timeshare_coex_read(struct file * file,char __user * ubuf,size_t count,loff_t * ppos) nxpwifi_timeshare_coex_read() argument
742 nxpwifi_timeshare_coex_write(struct file * file,const char __user * ubuf,size_t count,loff_t * ppos) nxpwifi_timeshare_coex_write() argument
765 nxpwifi_reset_write(struct file * file,const char __user * ubuf,size_t count,loff_t * ppos) nxpwifi_reset_write() argument
790 nxpwifi_fake_radar_detect_write(struct file * file,const char __user * ubuf,size_t count,loff_t * ppos) nxpwifi_fake_radar_detect_write() argument
830 nxpwifi_netmon_write(struct file * file,const char __user * ubuf,size_t count,loff_t * ppos) nxpwifi_netmon_write() argument
860 nxpwifi_twt_setup_write(struct file * file,const char __user * ubuf,size_t count,loff_t * ppos) nxpwifi_twt_setup_write() argument
900 nxpwifi_twt_teardown_write(struct file * file,const char __user * ubuf,size_t count,loff_t * ppos) nxpwifi_twt_teardown_write() argument
929 nxpwifi_twt_report_read(struct file * file,char __user * ubuf,size_t count,loff_t * ppos) nxpwifi_twt_report_read() argument
971 nxpwifi_twt_information_write(struct file * file,const char __user * ubuf,size_t count,loff_t * ppos) nxpwifi_twt_information_write() argument
[all...]
/linux/net/core/
H A Dsysctl_net_core.c58 static int dump_cpumask(void *buffer, size_t *lenp, loff_t *ppos, in dump_cpumask()
64 if (*ppos || !*lenp) { in dump_cpumask()
92 *ppos += len; in dump_cpumask()
105 void *buffer, size_t *lenp, loff_t *ppos) in rps_default_mask_sysctl()
130 err = dump_cpumask(buffer, lenp, ppos, in rps_default_mask_sysctl()
140 void *buffer, size_t *lenp, loff_t *ppos) in rps_sock_flow_sysctl()
163 ret = proc_dointvec(&tmp, write, buffer, lenp, ppos); in rps_sock_flow_sysctl()
220 void *buffer, size_t *lenp, loff_t *ppos) in flow_limit_cpu_sysctl()
268 ret = dump_cpumask(buffer, lenp, ppos, mask); in flow_limit_cpu_sysctl()
277 void *buffer, size_t *lenp, loff_t *ppos) in flow_limit_table_len_sysctl()
57 dump_cpumask(void * buffer,size_t * lenp,loff_t * ppos,struct cpumask * mask) dump_cpumask() argument
104 rps_default_mask_sysctl(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) rps_default_mask_sysctl() argument
139 rps_sock_flow_sysctl(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) rps_sock_flow_sysctl() argument
219 flow_limit_cpu_sysctl(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) flow_limit_cpu_sysctl() argument
276 flow_limit_table_len_sysctl(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) flow_limit_table_len_sysctl() argument
298 set_default_qdisc(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) set_default_qdisc() argument
317 proc_do_dev_weight(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_do_dev_weight() argument
335 proc_do_rss_key(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_do_rss_key() argument
353 proc_do_skb_defer_max(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_do_skb_defer_max() argument
378 proc_dointvec_minmax_bpf_enable(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_minmax_bpf_enable() argument
410 proc_dointvec_minmax_bpf_restricted(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_minmax_bpf_restricted() argument
421 proc_dolongvec_minmax_bpf_restricted(const struct ctl_table * table,int write,void * buffer,size_t * lenp,loff_t * ppos) proc_dolongvec_minmax_bpf_restricted() argument
[all...]
/linux/drivers/scsi/qedf/
H A Dqedf_debugfs.c100 loff_t *ppos) in qedf_dbg_fp_int_cmd_read() argument
128 ret = simple_read_from_buffer(buffer, count, ppos, cbuf, cnt); in qedf_dbg_fp_int_cmd_read()
137 size_t count, loff_t *ppos) in qedf_dbg_fp_int_cmd_write() argument
139 if (!count || *ppos) in qedf_dbg_fp_int_cmd_write()
147 loff_t *ppos) in qedf_dbg_debug_cmd_read() argument
157 return simple_read_from_buffer(buffer, count, ppos, cbuf, cnt); in qedf_dbg_debug_cmd_read()
162 size_t count, loff_t *ppos) in qedf_dbg_debug_cmd_write() argument
170 if (!count || *ppos) in qedf_dbg_debug_cmd_write()
193 size_t count, loff_t *ppos) in qedf_dbg_stop_io_on_error_cmd_read() argument
206 return simple_read_from_buffer(buffer, count, ppos, cbuf, cnt); in qedf_dbg_stop_io_on_error_cmd_read()
[all …]
/linux/sound/soc/sof/
H A Dsof-client-ipc-msg-injector.c52 size_t count, loff_t *ppos) in sof_msg_inject_dfs_read() argument
58 if (!rhdr->hdr.size || !count || *ppos) in sof_msg_inject_dfs_read()
67 *ppos += count; in sof_msg_inject_dfs_read()
73 size_t count, loff_t *ppos) in sof_msg_inject_ipc4_dfs_read() argument
81 if (!ipc4_msg->header_u64 || !count || *ppos) in sof_msg_inject_ipc4_dfs_read()
104 *ppos += header_size; in sof_msg_inject_ipc4_dfs_read()
114 if (copy_to_user(buffer + *ppos, ipc4_msg->data_ptr, remaining)) in sof_msg_inject_ipc4_dfs_read()
117 *ppos += remaining; in sof_msg_inject_ipc4_dfs_read()
151 size_t count, loff_t *ppos) in sof_msg_inject_dfs_write() argument
158 if (*ppos) in sof_msg_inject_dfs_write()
181 sof_msg_inject_ipc4_dfs_write(struct file * file,const char __user * buffer,size_t count,loff_t * ppos) sof_msg_inject_ipc4_dfs_write() argument
[all...]
/linux/drivers/char/
H A Dmem.c
/linux/security/smack/
H A Dsmackfs.c440 * @ppos: where to start - must be 0
455 size_t count, loff_t *ppos, in smk_write_rules_list()
470 if (*ppos != 0) in smk_write_rules_list()
649 * @ppos: where to start - must be 0 in smk_write_load()
653 size_t count, loff_t *ppos) in smk_write_load()
663 return smk_write_rules_list(file, buf, count, ppos, NULL, NULL,
835 * @ppos: where to start in smk_set_cipso()
842 size_t count, loff_t *ppos, int format) in smk_set_cipso()
864 if (*ppos != 0) in smk_set_cipso()
961 * @ppos in smk_write_cipso()
446 smk_write_rules_list(struct file * file,const char __user * buf,size_t count,loff_t * ppos,struct list_head * rule_list,struct mutex * rule_lock,int format) smk_write_rules_list() argument
644 smk_write_load(struct file * file,const char __user * buf,size_t count,loff_t * ppos) smk_write_load() argument
833 smk_set_cipso(struct file * file,const char __user * buf,size_t count,loff_t * ppos,int format) smk_set_cipso() argument
958 smk_write_cipso(struct file * file,const char __user * buf,size_t count,loff_t * ppos) smk_write_cipso() argument
1032 smk_write_cipso2(struct file * file,const char __user * buf,size_t count,loff_t * ppos) smk_write_cipso2() argument
1150 smk_write_net4addr(struct file * file,const char __user * buf,size_t count,loff_t * ppos) smk_write_net4addr() argument
1411 smk_write_net6addr(struct file * file,const char __user * buf,size_t count,loff_t * ppos) smk_write_net6addr() argument
1575 smk_read_doi(struct file * filp,char __user * buf,size_t count,loff_t * ppos) smk_read_doi() argument
1599 smk_write_doi(struct file * file,const char __user * buf,size_t count,loff_t * ppos) smk_write_doi() argument
1640 smk_read_direct(struct file * filp,char __user * buf,size_t count,loff_t * ppos) smk_read_direct() argument
1664 smk_write_direct(struct file * file,const char __user * buf,size_t count,loff_t * ppos) smk_write_direct() argument
1718 smk_read_mapped(struct file * filp,char __user * buf,size_t count,loff_t * ppos) smk_read_mapped() argument
1742 smk_write_mapped(struct file * file,const char __user * buf,size_t count,loff_t * ppos) smk_write_mapped() argument
1796 smk_read_ambient(struct file * filp,char __user * buf,size_t cn,loff_t * ppos) smk_read_ambient() argument
1833 smk_write_ambient(struct file * file,const char __user * buf,size_t count,loff_t * ppos) smk_write_ambient() argument
2009 smk_write_onlycap(struct file * file,const char __user * buf,size_t count,loff_t * ppos) smk_write_onlycap() argument
2069 smk_read_unconfined(struct file * filp,char __user * buf,size_t cn,loff_t * ppos) smk_read_unconfined() argument
2099 smk_write_unconfined(struct file * file,const char __user * buf,size_t count,loff_t * ppos) smk_write_unconfined() argument
2157 smk_read_logging(struct file * filp,char __user * buf,size_t count,loff_t * ppos) smk_read_logging() argument
2180 smk_write_logging(struct file * file,const char __user * buf,size_t count,loff_t * ppos) smk_write_logging() argument
2271 smk_write_load_self(struct file * file,const char __user * buf,size_t count,loff_t * ppos) smk_write_load_self() argument
2296 smk_user_access(struct file * file,const char __user * buf,size_t count,loff_t * ppos,int format) smk_user_access() argument
2344 smk_write_access(struct file * file,const char __user * buf,size_t count,loff_t * ppos) smk_write_access() argument
2402 smk_write_load2(struct file * file,const char __user * buf,size_t count,loff_t * ppos) smk_write_load2() argument
2479 smk_write_load_self2(struct file * file,const char __user * buf,size_t count,loff_t * ppos) smk_write_load_self2() argument
2503 smk_write_access2(struct file * file,const char __user * buf,size_t count,loff_t * ppos) smk_write_access2() argument
2523 smk_write_revoke_subj(struct file * file,const char __user * buf,size_t count,loff_t * ppos) smk_write_revoke_subj() argument
2598 smk_write_change_rule(struct file * file,const char __user * buf,size_t count,loff_t * ppos) smk_write_change_rule() argument
2627 smk_read_syslog(struct file * filp,char __user * buf,size_t cn,loff_t * ppos) smk_read_syslog() argument
2660 smk_write_syslog(struct file * file,const char __user * buf,size_t count,loff_t * ppos) smk_write_syslog() argument
2752 smk_write_relabel_self(struct file * file,const char __user * buf,size_t count,loff_t * ppos) smk_write_relabel_self() argument
2818 smk_read_ptrace(struct file * filp,char __user * buf,size_t count,loff_t * ppos) smk_read_ptrace() argument
2839 smk_write_ptrace(struct file * file,const char __user * buf,size_t count,loff_t * ppos) smk_write_ptrace() argument
[all...]
/linux/arch/powerpc/platforms/pseries/
H A Dhtmdump.c88 size_t count, loff_t *ppos) in htmdump_read() argument
95 page = ALIGN_DOWN(*ppos, PAGE_SIZE); in htmdump_read()
96 offset = (*ppos) % PAGE_SIZE; in htmdump_read()
115 *ppos += read_size; in htmdump_read()
120 size_t count, loff_t *ppos) in htmsystem_mem_read() argument
146 if (*ppos) { in htmsystem_mem_read()
169 *ppos += to_copy; in htmsystem_mem_read()
288 size_t count, loff_t *ppos) in htmstatus_read() argument
307 if (*ppos) { in htmstatus_read()
336 *ppos += to_copy; in htmstatus_read()
[all …]
/linux/drivers/s390/cio/
H A Dvfio_ccw_chp.c18 loff_t *ppos) in vfio_ccw_schib_region_read() argument
21 unsigned int i = VFIO_CCW_OFFSET_TO_INDEX(*ppos) - VFIO_CCW_NUM_REGIONS; in vfio_ccw_schib_region_read()
22 loff_t pos = *ppos & VFIO_CCW_OFFSET_MASK; in vfio_ccw_schib_region_read()
60 loff_t *ppos) in vfio_ccw_schib_region_write() argument
90 loff_t *ppos) in vfio_ccw_crw_region_read() argument
92 unsigned int i = VFIO_CCW_OFFSET_TO_INDEX(*ppos) - VFIO_CCW_NUM_REGIONS; in vfio_ccw_crw_region_read()
93 loff_t pos = *ppos & VFIO_CCW_OFFSET_MASK; in vfio_ccw_crw_region_read()
146 loff_t *ppos) in vfio_ccw_crw_region_write() argument
/linux/drivers/bluetooth/
H A Dbtmrvl_debugfs.c22 const char __user *ubuf, size_t count, loff_t *ppos) in btmrvl_hscfgcmd_write() argument
42 size_t count, loff_t *ppos) in btmrvl_hscfgcmd_read() argument
51 return simple_read_from_buffer(userbuf, count, ppos, buf, ret); in btmrvl_hscfgcmd_read()
62 size_t count, loff_t *ppos) in btmrvl_pscmd_write() argument
83 size_t count, loff_t *ppos) in btmrvl_pscmd_read() argument
91 return simple_read_from_buffer(userbuf, count, ppos, buf, ret); in btmrvl_pscmd_read()
102 size_t count, loff_t *ppos) in btmrvl_hscmd_write() argument
121 size_t count, loff_t *ppos) in btmrvl_hscmd_read() argument
129 return simple_read_from_buffer(userbuf, count, ppos, buf, ret); in btmrvl_hscmd_read()
/linux/drivers/base/regmap/
H A Dregmap-debugfs.c37 loff_t *ppos) in regmap_name_read_file() argument
54 return simple_read_from_buffer(user_buf, count, ppos, buf, ret); in regmap_name_read_file()
210 size_t count, loff_t *ppos) in regmap_next_readable_reg()
213 loff_t p = *ppos; in regmap_next_readable_reg()
219 if (*ppos < 0 || !count) in regmap_read_debugfs()
232 start_reg = regmap_debugfs_get_dump_start(map, from, *ppos, &p); in regmap_read_debugfs()
238 if (p >= *ppos) { in regmap_read_debugfs()
270 *ppos += buf_pos; in regmap_read_debugfs()
278 size_t count, loff_t *ppos) in regmap_read_debugfs()
283 count, ppos); in regmap_read_debugfs()
218 regmap_read_debugfs(struct regmap * map,unsigned int from,unsigned int to,char __user * user_buf,size_t count,loff_t * ppos) regmap_read_debugfs() argument
286 regmap_map_read_file(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) regmap_map_read_file() argument
304 regmap_map_write_file(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) regmap_map_write_file() argument
346 regmap_range_read_file(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) regmap_range_read_file() argument
363 regmap_reg_ranges_read_file(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) regmap_reg_ranges_read_file() argument
462 regmap_cache_only_write_file(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) regmap_cache_only_write_file() argument
504 regmap_cache_bypass_write_file(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) regmap_cache_bypass_write_file() argument
[all...]

12345678910>>...23