/linux-6.6.21/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-debugfs.c | 125 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-6.6.21/include/linux/ |
D | nvram.h | 81 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-6.6.21/kernel/ |
D | sysctl.c | 147 char *buffer, size_t *lenp, loff_t *ppos) in _proc_do_string() argument 164 if (*ppos > len) in _proc_do_string() 166 len = *ppos; in _proc_do_string() 172 *ppos += *lenp; in _proc_do_string() 186 if (*ppos > len) { in _proc_do_string() 191 data += *ppos; in _proc_do_string() 192 len -= *ppos; in _proc_do_string() 203 *ppos += len; in _proc_do_string() 225 static bool proc_first_pos_non_zero_ignore(loff_t *ppos, in proc_first_pos_non_zero_ignore() argument 228 if (!*ppos) in proc_first_pos_non_zero_ignore() [all …]
|
/linux-6.6.21/drivers/infiniband/hw/hfi1/ |
D | debugfs.c | 27 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-6.6.21/drivers/net/wireless/marvell/libertas/ |
D | debugfs.c | 26 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-6.6.21/drivers/infiniband/hw/qib/ |
D | qib_fs.c | 104 size_t count, loff_t *ppos) in driver_stats_read() argument 107 return simple_read_from_buffer(buf, count, ppos, &qib_stats, in driver_stats_read() 132 size_t count, loff_t *ppos) in driver_names_read() argument 134 return simple_read_from_buffer(buf, count, ppos, qib_statnames, in driver_names_read() 145 size_t count, loff_t *ppos) in dev_counters_read() argument 151 avail = dd->f_read_cntrs(dd, *ppos, NULL, &counters); in dev_counters_read() 152 return simple_read_from_buffer(buf, count, ppos, counters, avail); in dev_counters_read() 157 size_t count, loff_t *ppos) in dev_names_read() argument 163 avail = dd->f_read_cntrs(dd, *ppos, &names, NULL); in dev_names_read() 164 return simple_read_from_buffer(buf, count, ppos, names, avail); in dev_names_read() [all …]
|
/linux-6.6.21/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_debugfs.c | 14 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-6.6.21/drivers/net/wireless/ti/wlcore/ |
D | debugfs.c | 32 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-6.6.21/net/mac80211/ |
D | debugfs.c | 21 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-6.6.21/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | debugfs.c | 24 size_t count, loff_t *ppos) in iwl_dbgfs_ctdp_budget_read() argument 46 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_ctdp_budget_read() 50 size_t count, loff_t *ppos) in iwl_dbgfs_stop_ctdp_write() argument 69 size_t count, loff_t *ppos) in iwl_dbgfs_force_ctkill_write() argument 81 size_t count, loff_t *ppos) in iwl_dbgfs_tx_flush_write() argument 115 size_t count, loff_t *ppos) in iwl_dbgfs_sta_drain_write() argument 146 size_t count, loff_t *ppos) in iwl_dbgfs_sram_read() argument 173 ret = simple_read_from_buffer(user_buf, count, ppos, ptr, len); in iwl_dbgfs_sram_read() 181 size_t count, loff_t *ppos) in iwl_dbgfs_sram_write() argument 213 size_t count, loff_t *ppos) in iwl_dbgfs_set_nic_temperature_read() argument [all …]
|
/linux-6.6.21/fs/fuse/ |
D | control.c | 35 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-6.6.21/drivers/acpi/ |
D | custom_method.c | 23 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-6.6.21/drivers/crypto/intel/qat/qat_common/ |
D | adf_heartbeat_dbgfs.c | 22 size_t count, loff_t *ppos) in adf_hb_stats_read() argument 28 if (*ppos > 0) in adf_hb_stats_read() 34 return simple_read_from_buffer(user_buffer, count, ppos, buf, len + 1); in adf_hb_stats_read() 44 size_t count, loff_t *ppos) in adf_hb_status_read() argument 52 if (*ppos > 0) in adf_hb_status_read() 65 return simple_read_from_buffer(user_buf, count, ppos, ret_str, len + 1); in adf_hb_status_read() 75 size_t count, loff_t *ppos) in adf_hb_cfg_read() argument 82 if (*ppos > 0) in adf_hb_cfg_read() 89 return simple_read_from_buffer(user_buf, count, ppos, timer_str, in adf_hb_cfg_read() 94 size_t count, loff_t *ppos) in adf_hb_cfg_write() argument [all …]
|
/linux-6.6.21/drivers/net/wireless/marvell/mwifiex/ |
D | debugfs.c | 63 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-6.6.21/net/core/ |
D | sysctl_net_core.c | 50 static void dump_cpumask(void *buffer, size_t *lenp, loff_t *ppos, in dump_cpumask() argument 56 if (*ppos || !*lenp) { in dump_cpumask() 72 *ppos += len; in dump_cpumask() 95 void *buffer, size_t *lenp, loff_t *ppos) in rps_default_mask_sysctl() argument 116 dump_cpumask(buffer, lenp, ppos, in rps_default_mask_sysctl() 126 void *buffer, size_t *lenp, loff_t *ppos) in rps_sock_flow_sysctl() argument 144 ret = proc_dointvec(&tmp, write, buffer, lenp, ppos); in rps_sock_flow_sysctl() 195 void *buffer, size_t *lenp, loff_t *ppos) in flow_limit_cpu_sysctl() argument 243 dump_cpumask(buffer, lenp, ppos, mask); in flow_limit_cpu_sysctl() 252 void *buffer, size_t *lenp, loff_t *ppos) in flow_limit_table_len_sysctl() argument [all …]
|
/linux-6.6.21/drivers/staging/vme_user/ |
D | vme_user.c | 120 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-6.6.21/drivers/s390/cio/ |
D | vfio_ccw_chp.c | 17 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
|
/linux-6.6.21/drivers/net/wireless/intel/iwlegacy/ |
D | debug.c | 125 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-6.6.21/drivers/char/ |
D | nvram.c | 169 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 …]
|
D | mem.c | 105 size_t count, loff_t *ppos) in read_mem() argument 107 phys_addr_t p = *ppos; in read_mem() 113 if (p != *ppos) in read_mem() 183 *ppos += read; in read_mem() 192 size_t count, loff_t *ppos) in write_mem() argument 194 phys_addr_t p = *ppos; in write_mem() 199 if (p != *ppos) in write_mem() 260 *ppos += written; in write_mem() 399 size_t count, loff_t *ppos) in read_port() argument 401 unsigned long i = *ppos; in read_port() [all …]
|
/linux-6.6.21/drivers/scsi/qedf/ |
D | qedf_debugfs.c | 100 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-6.6.21/sound/soc/sof/ |
D | sof-client-ipc-msg-injector.c | 53 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-6.6.21/drivers/parisc/ |
D | eisa_eeprom.c | 26 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-6.6.21/drivers/parport/ |
D | procfs.c | 44 void *result, size_t *lenp, loff_t *ppos) in do_active_device() argument 54 if (*ppos) { in do_active_device() 74 *ppos += len; in do_active_device() 81 void *result, size_t *lenp, loff_t *ppos) in do_autoprobe() argument 91 if (*ppos) { in do_autoprobe() 116 *ppos += len; in do_autoprobe() 124 void *result, size_t *lenp, loff_t *ppos) in do_hardware_base_addr() argument 130 if (*ppos) { in do_hardware_base_addr() 145 *ppos += len; in do_hardware_base_addr() 151 void *result, size_t *lenp, loff_t *ppos) in do_hardware_irq() argument [all …]
|
/linux-6.6.21/fs/ |
D | read_write.c | 355 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 …]
|