Home
last modified time | relevance | path

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

12345678910>>...29

/Linux-v6.1/drivers/net/ethernet/amd/xgbe/
Dxgbe-debugfs.c125 loff_t *ppos, unsigned int value) in xgbe_common_read() argument
130 if (*ppos != 0) in xgbe_common_read()
142 len = simple_read_from_buffer(buffer, count, ppos, buf, strlen(buf)); in xgbe_common_read()
149 loff_t *ppos, unsigned int *value) in xgbe_common_write() argument
155 if (*ppos != 0) in xgbe_common_write()
161 len = simple_write_to_buffer(workarea, sizeof(workarea) - 1, ppos, in xgbe_common_write()
175 size_t count, loff_t *ppos) in xgmac_reg_addr_read() argument
179 return xgbe_common_read(buffer, count, ppos, pdata->debugfs_xgmac_reg); in xgmac_reg_addr_read()
184 size_t count, loff_t *ppos) in xgmac_reg_addr_write() argument
188 return xgbe_common_write(buffer, count, ppos, in xgmac_reg_addr_write()
[all …]
/Linux-v6.1/include/linux/
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-v6.1/kernel/
Dsysctl.c148 char *buffer, size_t *lenp, loff_t *ppos) in _proc_do_string() argument
165 if (*ppos > len) in _proc_do_string()
167 len = *ppos; in _proc_do_string()
173 *ppos += *lenp; in _proc_do_string()
187 if (*ppos > len) { in _proc_do_string()
192 data += *ppos; in _proc_do_string()
193 len -= *ppos; in _proc_do_string()
204 *ppos += len; in _proc_do_string()
226 static bool proc_first_pos_non_zero_ignore(loff_t *ppos, in proc_first_pos_non_zero_ignore() argument
229 if (!*ppos) in proc_first_pos_non_zero_ignore()
[all …]
/Linux-v6.1/drivers/infiniband/hw/hfi1/
Ddebugfs.c27 loff_t *ppos) in hfi1_seq_read() argument
35 r = seq_read(file, buf, size, ppos); in hfi1_seq_read()
418 size_t count, loff_t *ppos) in dev_counters_read() argument
427 rval = simple_read_from_buffer(buf, count, ppos, counters, avail); in dev_counters_read()
433 size_t count, loff_t *ppos) in dev_names_read() argument
442 rval = simple_read_from_buffer(buf, count, ppos, names, avail); in dev_names_read()
458 size_t count, loff_t *ppos) in portnames_read() argument
467 rval = simple_read_from_buffer(buf, count, ppos, names, avail); in portnames_read()
473 size_t count, loff_t *ppos) in portcntrs_debugfs_read() argument
482 rval = simple_read_from_buffer(buf, count, ppos, counters, avail); in portcntrs_debugfs_read()
[all …]
/Linux-v6.1/drivers/net/wireless/marvell/libertas/
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-v6.1/drivers/infiniband/hw/qib/
Dqib_fs.c105 size_t count, loff_t *ppos) in driver_stats_read() argument
108 return simple_read_from_buffer(buf, count, ppos, &qib_stats, in driver_stats_read()
133 size_t count, loff_t *ppos) in driver_names_read() argument
135 return simple_read_from_buffer(buf, count, ppos, qib_statnames, in driver_names_read()
146 size_t count, loff_t *ppos) in dev_counters_read() argument
152 avail = dd->f_read_cntrs(dd, *ppos, NULL, &counters); in dev_counters_read()
153 return simple_read_from_buffer(buf, count, ppos, counters, avail); in dev_counters_read()
158 size_t count, loff_t *ppos) in dev_names_read() argument
164 avail = dd->f_read_cntrs(dd, *ppos, &names, NULL); in dev_names_read()
165 return simple_read_from_buffer(buf, count, ppos, names, avail); in dev_names_read()
[all …]
/Linux-v6.1/drivers/net/ethernet/intel/ixgbe/
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-v6.1/drivers/net/wireless/ti/wlcore/
Ddebugfs.c32 loff_t *ppos, char *fmt, ...) in wl1271_format_buffer() argument
42 return simple_read_from_buffer(userbuf, count, ppos, buf, res); in wl1271_format_buffer()
79 size_t count, loff_t *ppos) in tx_queue_len_read() argument
89 return simple_read_from_buffer(userbuf, count, ppos, buf, res); in tx_queue_len_read()
125 size_t count, loff_t *ppos) \
129 ppos, "%d\n", \
135 size_t count, loff_t *ppos) \
176 size_t count, loff_t *ppos) in gpio_power_read() argument
186 return simple_read_from_buffer(user_buf, count, ppos, buf, res); in gpio_power_read()
191 size_t count, loff_t *ppos) in gpio_power_write() argument
[all …]
/Linux-v6.1/net/mac80211/
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, \
78 loff_t *ppos) in aqm_read() argument
112 return simple_read_from_buffer(user_buf, count, ppos, in aqm_read()
119 loff_t *ppos) in aqm_write() argument
154 size_t count, loff_t *ppos) in airtime_flags_read() argument
169 return simple_read_from_buffer(user_buf, count, ppos, buf, in airtime_flags_read()
175 size_t count, loff_t *ppos) in airtime_flags_write() argument
[all …]
/Linux-v6.1/fs/fuse/
Dcontrol.c35 size_t count, loff_t *ppos) in fuse_conn_abort_write() argument
48 size_t len, loff_t *ppos) in fuse_conn_waiting_read() argument
53 if (!*ppos) { in fuse_conn_waiting_read()
64 return simple_read_from_buffer(buf, len, ppos, tmp, size); in fuse_conn_waiting_read()
68 size_t len, loff_t *ppos, unsigned val) in fuse_conn_limit_read() argument
73 return simple_read_from_buffer(buf, len, ppos, tmp, size); in fuse_conn_limit_read()
77 size_t count, loff_t *ppos, unsigned *val, in fuse_conn_limit_write() argument
84 if (*ppos) in fuse_conn_limit_write()
104 loff_t *ppos) in fuse_conn_max_background_read() argument
116 return fuse_conn_limit_read(file, buf, len, ppos, val); in fuse_conn_max_background_read()
[all …]
/Linux-v6.1/drivers/scsi/qedf/
Dqedf_debugfs.c99 loff_t *ppos) in qedf_dbg_fp_int_cmd_read() argument
121 cnt = min_t(int, count, cnt - *ppos); in qedf_dbg_fp_int_cmd_read()
122 *ppos += cnt; in qedf_dbg_fp_int_cmd_read()
128 size_t count, loff_t *ppos) in qedf_dbg_fp_int_cmd_write() argument
130 if (!count || *ppos) in qedf_dbg_fp_int_cmd_write()
138 loff_t *ppos) in qedf_dbg_debug_cmd_read() argument
147 cnt = min_t(int, count, cnt - *ppos); in qedf_dbg_debug_cmd_read()
148 *ppos += cnt; in qedf_dbg_debug_cmd_read()
154 size_t count, loff_t *ppos) in qedf_dbg_debug_cmd_write() argument
162 if (!count || *ppos) in qedf_dbg_debug_cmd_write()
[all …]
/Linux-v6.1/drivers/acpi/
Dcustom_method.c23 size_t count, loff_t *ppos) in cm_write() argument
37 if (!(*ppos)) { in cm_write()
55 if ((*ppos > max_size) || in cm_write()
56 (*ppos + count > max_size) || in cm_write()
57 (*ppos + count < count) || in cm_write()
64 if (copy_from_user(buf + (*ppos), user_buf, count)) { in cm_write()
71 *ppos += count; in cm_write()
/Linux-v6.1/drivers/net/wireless/intel/iwlwifi/mvm/
Ddebugfs.c21 size_t count, loff_t *ppos) in iwl_dbgfs_ctdp_budget_read() argument
43 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_ctdp_budget_read()
47 size_t count, loff_t *ppos) in iwl_dbgfs_stop_ctdp_write() argument
66 size_t count, loff_t *ppos) in iwl_dbgfs_force_ctkill_write() argument
78 size_t count, loff_t *ppos) in iwl_dbgfs_tx_flush_write() argument
112 size_t count, loff_t *ppos) in iwl_dbgfs_sta_drain_write() argument
143 size_t count, loff_t *ppos) in iwl_dbgfs_sram_read() argument
170 ret = simple_read_from_buffer(user_buf, count, ppos, ptr, len); in iwl_dbgfs_sram_read()
178 size_t count, loff_t *ppos) in iwl_dbgfs_sram_write() argument
210 size_t count, loff_t *ppos) in iwl_dbgfs_set_nic_temperature_read() argument
[all …]
/Linux-v6.1/drivers/net/wireless/marvell/mwifiex/
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
309 ret = simple_read_from_buffer(ubuf, count, ppos, (char *)page, in mwifiex_histogram_read()
317 size_t count, loff_t *ppos) in mwifiex_histogram_write() argument
377 size_t count, loff_t *ppos) in mwifiex_debug_read() argument
394 ret = simple_read_from_buffer(ubuf, count, ppos, (char *) page, in mwifiex_debug_read()
413 const char __user *ubuf, size_t count, loff_t *ppos) in mwifiex_regrdwr_write() argument
[all …]
/Linux-v6.1/drivers/parport/
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-v6.1/drivers/staging/vme_user/
Dvme_user.c120 loff_t *ppos) in resource_to_user() argument
128 count, *ppos); in resource_to_user()
139 size_t count, loff_t *ppos) in resource_from_user() argument
148 count, *ppos); in resource_from_user()
152 size_t count, loff_t *ppos) in buffer_to_user() argument
156 image_ptr = image[minor].kern_buf + *ppos; in buffer_to_user()
164 size_t count, loff_t *ppos) in buffer_from_user() argument
168 image_ptr = image[minor].kern_buf + *ppos; in buffer_from_user()
176 loff_t *ppos) in vme_user_read() argument
191 if ((*ppos < 0) || (*ppos > (image_size - 1))) { in vme_user_read()
[all …]
/Linux-v6.1/drivers/s390/cio/
Dvfio_ccw_chp.c17 loff_t *ppos) in vfio_ccw_schib_region_read() argument
19 unsigned int i = VFIO_CCW_OFFSET_TO_INDEX(*ppos) - VFIO_CCW_NUM_REGIONS; in vfio_ccw_schib_region_read()
20 loff_t pos = *ppos & VFIO_CCW_OFFSET_MASK; in vfio_ccw_schib_region_read()
51 loff_t *ppos) in vfio_ccw_schib_region_write() argument
81 loff_t *ppos) in vfio_ccw_crw_region_read() argument
83 unsigned int i = VFIO_CCW_OFFSET_TO_INDEX(*ppos) - VFIO_CCW_NUM_REGIONS; in vfio_ccw_crw_region_read()
84 loff_t pos = *ppos & VFIO_CCW_OFFSET_MASK; in vfio_ccw_crw_region_read()
124 loff_t *ppos) in vfio_ccw_crw_region_write() argument
/Linux-v6.1/net/sctp/
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);
371 void *buffer, size_t *lenp, loff_t *ppos) in proc_sctp_do_hmac_alg() argument
390 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_sctp_do_hmac_alg()
416 void *buffer, size_t *lenp, loff_t *ppos) in proc_sctp_do_rto_min() argument
[all …]
/Linux-v6.1/drivers/net/wireless/intel/iwlegacy/
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-v6.1/drivers/char/
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 …]
Dmem.c112 size_t count, loff_t *ppos) in read_mem() argument
114 phys_addr_t p = *ppos; in read_mem()
120 if (p != *ppos) in read_mem()
190 *ppos += read; in read_mem()
199 size_t count, loff_t *ppos) in write_mem() argument
201 phys_addr_t p = *ppos; in write_mem()
206 if (p != *ppos) in write_mem()
267 *ppos += written; in write_mem()
406 size_t count, loff_t *ppos) in read_port() argument
408 unsigned long i = *ppos; in read_port()
[all …]
/Linux-v6.1/sound/soc/sof/
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()
149 size_t count, loff_t *ppos) in sof_msg_inject_dfs_write() argument
156 if (*ppos) in sof_msg_inject_dfs_write()
[all …]
/Linux-v6.1/drivers/parisc/
Deisa_eeprom.c26 char __user *buf, size_t count, loff_t *ppos ) in eisa_eeprom_read() argument
32 if (*ppos < 0 || *ppos >= HPEE_MAX_LENGTH) in eisa_eeprom_read()
35 count = *ppos + count < HPEE_MAX_LENGTH ? count : HPEE_MAX_LENGTH - *ppos; in eisa_eeprom_read()
39 tmp[i] = readb(eisa_eeprom_addr+(*ppos)++); in eisa_eeprom_read()
/Linux-v6.1/fs/
Dread_write.c355 int rw_verify_area(int read_write, struct file *file, const loff_t *ppos, size_t count) in rw_verify_area() argument
360 if (ppos) { in rw_verify_area()
361 loff_t pos = *ppos; in rw_verify_area()
379 static ssize_t new_sync_read(struct file *filp, char __user *buf, size_t len, loff_t *ppos) in new_sync_read() argument
386 kiocb.ki_pos = (ppos ? *ppos : 0); in new_sync_read()
391 if (ppos) in new_sync_read()
392 *ppos = kiocb.ki_pos; in new_sync_read()
481 static ssize_t new_sync_write(struct file *filp, const char __user *buf, size_t len, loff_t *ppos) in new_sync_write() argument
488 kiocb.ki_pos = (ppos ? *ppos : 0); in new_sync_write()
493 if (ret > 0 && ppos) in new_sync_write()
[all …]
/Linux-v6.1/net/core/
Dsysctl_net_core.c50 void *buffer, size_t *lenp, loff_t *ppos) in rps_sock_flow_sysctl() argument
68 ret = proc_dointvec(&tmp, write, buffer, lenp, ppos); in rps_sock_flow_sysctl()
119 void *buffer, size_t *lenp, loff_t *ppos) in flow_limit_cpu_sysctl() argument
160 if (*ppos || !*lenp) { in flow_limit_cpu_sysctl()
184 *ppos += len; in flow_limit_cpu_sysctl()
193 void *buffer, size_t *lenp, loff_t *ppos) in flow_limit_table_len_sysctl() argument
202 ret = proc_dointvec(table, write, buffer, lenp, ppos); in flow_limit_table_len_sysctl()
215 void *buffer, size_t *lenp, loff_t *ppos) in set_default_qdisc() argument
226 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in set_default_qdisc()
234 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_dev_weight() argument
[all …]

12345678910>>...29