Home
last modified time | relevance | path

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

12345678910>>...22

/linux/kernel/
H A Dsysctl.c77 char *buffer, size_t *lenp, loff_t *ppos) in _proc_do_string() argument
94 if (*ppos > len) in _proc_do_string()
96 len = *ppos; in _proc_do_string()
102 *ppos += *lenp; in _proc_do_string()
116 if (*ppos > len) { in _proc_do_string()
121 data += *ppos; in _proc_do_string()
122 len -= *ppos; in _proc_do_string()
133 *ppos += len; in _proc_do_string()
155 static bool proc_first_pos_non_zero_ignore(loff_t *ppos, in proc_first_pos_non_zero_ignore() argument
158 if (!*ppos) in proc_first_pos_non_zero_ignore()
[all …]
/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 …]
/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/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
49 res = simple_read_from_buffer(userbuf, count, ppos, buf, pos); in lbs_dev_info()
57 loff_t *ppos) in lbs_sleepparams_write() argument
93 size_t count, loff_t *ppos) in lbs_sleepparams_read() argument
113 ret = simple_read_from_buffer(userbuf, count, ppos, buf, pos); in lbs_sleepparams_read()
122 loff_t *ppos) in lbs_host_sleep_write() argument
163 size_t count, loff_t *ppos) in lbs_host_sleep_read() argument
175 ret = simple_read_from_buffer(userbuf, count, ppos, buf, pos); in lbs_host_sleep_read()
219 size_t count, loff_t *ppos) in lbs_threshold_read() 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/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
[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.c63 size_t count, loff_t *ppos) in mwifiex_info_read() argument
136 ret = simple_read_from_buffer(ubuf, count, ppos, (char *) 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, (char *) page, in mwifiex_getlog_read()
243 size_t count, loff_t *ppos) in mwifiex_histogram_read() argument
312 ret = simple_read_from_buffer(ubuf, count, ppos, (char *)page, in mwifiex_histogram_read()
322 size_t count, loff_t *ppos) in mwifiex_histogram_write() argument
382 size_t count, loff_t *ppos) in mwifiex_debug_read() argument
399 ret = simple_read_from_buffer(ubuf, count, ppos, (char *) page, in mwifiex_debug_read()
418 const char __user *ubuf, size_t count, loff_t *ppos) in mwifiex_regrdwr_write() argument
[all …]
/linux/drivers/net/wireless/ath/ath10k/
H A Ddebug.c155 size_t count, loff_t *ppos) in ath10k_read_wmi_services() argument
191 ret_cnt = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_wmi_services()
448 size_t count, loff_t *ppos) in ath10k_fw_stats_read() argument
453 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_fw_stats_read()
466 size_t count, loff_t *ppos) in ath10k_debug_fw_reset_stats_read() argument
490 ret = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_debug_fw_reset_stats_read()
526 size_t count, loff_t *ppos) in ath10k_read_simulate_fw_crash() argument
535 return simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); in ath10k_read_simulate_fw_crash()
547 size_t count, loff_t *ppos) in ath10k_write_simulate_fw_crash() argument
555 if (*ppos != 0 || count >= sizeof(buf) || count == 0) in ath10k_write_simulate_fw_crash()
[all …]
/linux/drivers/vfio/pci/nvgrace-gpu/
H A Dmain.c505 char __user *buf, size_t count, loff_t *ppos) in nvgrace_gpu_read_config_emu() argument
510 u64 pos = *ppos & VFIO_PCI_OFFSET_MASK; in nvgrace_gpu_read_config_emu()
518 ret = vfio_pci_core_read(core_vdev, buf, count, ppos); in nvgrace_gpu_read_config_emu()
546 *ppos -= count; in nvgrace_gpu_read_config_emu()
556 const char __user *buf, size_t count, loff_t *ppos) in nvgrace_gpu_write_config_emu() argument
561 u64 pos = *ppos & VFIO_PCI_OFFSET_MASK; in nvgrace_gpu_write_config_emu()
580 *ppos += copy_count; in nvgrace_gpu_write_config_emu()
584 return vfio_pci_core_write(core_vdev, buf, count, ppos); in nvgrace_gpu_write_config_emu()
635 char __user *buf, size_t mem_count, loff_t *ppos) in nvgrace_gpu_map_and_read() argument
637 unsigned int index = VFIO_PCI_OFFSET_TO_INDEX(*ppos); in nvgrace_gpu_map_and_read()
[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
[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
[all …]
/linux/drivers/char/
H A Dnvram.c169 static ssize_t pc_nvram_read(char *buf, size_t count, loff_t *ppos) in pc_nvram_read() argument
179 for (i = *ppos; count > 0 && i < NVRAM_BYTES; --count, ++i, ++p) in pc_nvram_read()
183 *ppos = i; in pc_nvram_read()
187 static ssize_t pc_nvram_write(char *buf, size_t count, loff_t *ppos) in pc_nvram_write() argument
197 for (i = *ppos; count > 0 && i < NVRAM_BYTES; --count, ++i, ++p) in pc_nvram_write()
202 *ppos = i; in pc_nvram_write()
229 size_t count, loff_t *ppos) in nvram_misc_read() argument
235 if (*ppos >= nvram_size) in nvram_misc_read()
238 count = min_t(size_t, count, nvram_size - *ppos); in nvram_misc_read()
245 ret = nvram_read(tmp, count, ppos); in nvram_misc_read()
[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.c17 loff_t *ppos) in vfio_ccw_schib_region_read() argument
20 unsigned int i = VFIO_CCW_OFFSET_TO_INDEX(*ppos) - VFIO_CCW_NUM_REGIONS; in vfio_ccw_schib_region_read()
21 loff_t pos = *ppos & VFIO_CCW_OFFSET_MASK; in vfio_ccw_schib_region_read()
52 loff_t *ppos) in vfio_ccw_schib_region_write() argument
82 loff_t *ppos) in vfio_ccw_crw_region_read() argument
84 unsigned int i = VFIO_CCW_OFFSET_TO_INDEX(*ppos) - VFIO_CCW_NUM_REGIONS; in vfio_ccw_crw_region_read()
85 loff_t pos = *ppos & VFIO_CCW_OFFSET_MASK; in vfio_ccw_crw_region_read()
125 loff_t *ppos) in vfio_ccw_crw_region_write() argument
H A Dvfio_ccw_async.c16 loff_t *ppos) in vfio_ccw_async_region_read() argument
18 unsigned int i = VFIO_CCW_OFFSET_TO_INDEX(*ppos) - VFIO_CCW_NUM_REGIONS; in vfio_ccw_async_region_read()
19 loff_t pos = *ppos & VFIO_CCW_OFFSET_MASK; in vfio_ccw_async_region_read()
38 loff_t *ppos) in vfio_ccw_async_region_write() argument
40 unsigned int i = VFIO_CCW_OFFSET_TO_INDEX(*ppos) - VFIO_CCW_NUM_REGIONS; in vfio_ccw_async_region_write()
41 loff_t pos = *ppos & VFIO_CCW_OFFSET_MASK; in vfio_ccw_async_region_write()
/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.c53 size_t count, loff_t *ppos) in sof_msg_inject_dfs_read() argument
59 if (!rhdr->hdr.size || !count || *ppos) in sof_msg_inject_dfs_read()
68 *ppos += count; in sof_msg_inject_dfs_read()
74 size_t count, loff_t *ppos) in sof_msg_inject_ipc4_dfs_read() argument
82 if (!ipc4_msg->header_u64 || !count || *ppos) in sof_msg_inject_ipc4_dfs_read()
105 *ppos += header_size; in sof_msg_inject_ipc4_dfs_read()
115 if (copy_to_user(buffer + *ppos, ipc4_msg->data_ptr, remaining)) in sof_msg_inject_ipc4_dfs_read()
118 *ppos += remaining; in sof_msg_inject_ipc4_dfs_read()
152 size_t count, loff_t *ppos) in sof_msg_inject_dfs_write()
159 if (*ppos) in sof_msg_inject_dfs_write()
148 sof_msg_inject_dfs_write(struct file * file,const char __user * buffer,size_t count,loff_t * ppos) sof_msg_inject_dfs_write() argument
178 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/security/smack/
H A Dsmackfs.c446 size_t count, loff_t *ppos, in smk_write_rules_list() argument
461 if (*ppos != 0) in smk_write_rules_list()
644 size_t count, loff_t *ppos) in smk_write_load() argument
654 return smk_write_rules_list(file, buf, count, ppos, NULL, NULL, in smk_write_load()
833 size_t count, loff_t *ppos, int format) in smk_set_cipso() argument
855 if (*ppos != 0) in smk_set_cipso()
958 size_t count, loff_t *ppos) in smk_write_cipso() argument
960 return smk_set_cipso(file, buf, count, ppos, SMK_FIXED24_FMT); in smk_write_cipso()
1032 size_t count, loff_t *ppos) in smk_write_cipso2() argument
1034 return smk_set_cipso(file, buf, count, ppos, SMK_LONG_FMT); in smk_write_cipso2()
[all …]
/linux/drivers/net/wireless/ath/ath11k/
H A Ddebugfs.c181 size_t count, loff_t *ppos) in ath11k_read_pdev_stats() argument
186 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_read_pdev_stats()
252 size_t count, loff_t *ppos) in ath11k_read_vdev_stats() argument
257 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_read_vdev_stats()
336 size_t count, loff_t *ppos) in ath11k_read_bcn_stats() argument
341 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_read_bcn_stats()
354 size_t count, loff_t *ppos) in ath11k_read_simulate_fw_crash() argument
361 return simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); in ath11k_read_simulate_fw_crash()
373 size_t count, loff_t *ppos) in ath11k_write_simulate_fw_crash() argument
391 if (*ppos != 0 || count >= sizeof(buf) || count == 0) in ath11k_write_simulate_fw_crash()
[all …]
/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/kernel/time/
H A Djiffies.c222 * @ppos: file position
232 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_jiffies()
234 return proc_dointvec_conv(table, dir, buffer, lenp, ppos, in proc_dointvec_jiffies()
245 * @ppos: pointer to the file position
255 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_userhz_jiffies()
257 return proc_dointvec_conv(table, dir, buffer, lenp, ppos, in proc_dointvec_userhz_jiffies()
268 * @ppos: the current position in the file
278 size_t *lenp, loff_t *ppos) in proc_dointvec_ms_jiffies()
280 return proc_dointvec_conv(table, dir, buffer, lenp, ppos, in proc_dointvec_ms_jiffies()
286 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_ms_jiffies_minmax()
233 proc_dointvec_jiffies(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_jiffies() argument
256 proc_dointvec_userhz_jiffies(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_userhz_jiffies() argument
279 proc_dointvec_ms_jiffies(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_ms_jiffies() argument
287 proc_dointvec_ms_jiffies_minmax(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_dointvec_ms_jiffies_minmax() argument
311 proc_doulongvec_ms_jiffies_minmax(const struct ctl_table * table,int dir,void * buffer,size_t * lenp,loff_t * ppos) proc_doulongvec_ms_jiffies_minmax() argument
[all...]
/linux/drivers/net/wireless/ti/wlcore/
H A Ddebugfs.h16 loff_t *ppos, char *fmt, ...);
27 size_t count, loff_t *ppos) \
30 return wl1271_format_buffer(userbuf, count, ppos, \
56 size_t count, loff_t *ppos) \
63 return wl1271_format_buffer(userbuf, count, ppos, fmt "\n", \
76 size_t count, loff_t *ppos) \
90 return wl1271_format_buffer(userbuf, count, ppos, "%s", buf); \
/linux/lib/
H A Dsys_info.c54 void *buffer, size_t *lenp, loff_t *ppos, in sys_info_write_handler() argument
60 ret = proc_dostring(table, 1, buffer, lenp, ppos); in sys_info_write_handler()
73 void *buffer, size_t *lenp, loff_t *ppos, in sys_info_read_handler() argument
92 return proc_dostring(table, 0, buffer, lenp, ppos); in sys_info_read_handler()
97 loff_t *ppos) in sysctl_sys_info_handler() argument
116 return sys_info_write_handler(&table, buffer, lenp, ppos, ro_table->data); in sysctl_sys_info_handler()
118 return sys_info_read_handler(&table, buffer, lenp, ppos, ro_table->data); in sysctl_sys_info_handler()

12345678910>>...22