/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 …]
|
/drivers/net/wireless/marvell/libertas/ |
D | debugfs.c | 25 size_t count, loff_t *ppos) in write_file_dummy() argument 33 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 112 ret = simple_read_from_buffer(userbuf, count, ppos, buf, pos); in lbs_sleepparams_read() 121 loff_t *ppos) in lbs_host_sleep_write() argument 162 size_t count, loff_t *ppos) in lbs_host_sleep_read() argument 174 ret = simple_read_from_buffer(userbuf, count, ppos, buf, pos); in lbs_host_sleep_read() 218 size_t count, loff_t *ppos) in lbs_threshold_read() argument [all …]
|
/drivers/infiniband/hw/qib/ |
D | qib_fs.c | 105 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 …]
|
/drivers/net/wireless/ti/wlcore/ |
D | debugfs.c | 45 loff_t *ppos, char *fmt, ...) in wl1271_format_buffer() argument 55 return simple_read_from_buffer(userbuf, count, ppos, buf, res); in wl1271_format_buffer() 91 size_t count, loff_t *ppos) in tx_queue_len_read() argument 101 return simple_read_from_buffer(userbuf, count, ppos, buf, res); in tx_queue_len_read() 143 size_t count, loff_t *ppos) \ 147 ppos, "%d\n", \ 153 size_t count, loff_t *ppos) \ 194 size_t count, loff_t *ppos) in gpio_power_read() argument 204 return simple_read_from_buffer(user_buf, count, ppos, buf, res); in gpio_power_read() 209 size_t count, loff_t *ppos) in gpio_power_write() argument [all …]
|
D | debugfs.h | 30 loff_t *ppos, char *fmt, ...); 41 size_t count, loff_t *ppos) \ 44 return wl1271_format_buffer(userbuf, count, ppos, \ 74 size_t count, loff_t *ppos) \ 81 return wl1271_format_buffer(userbuf, count, ppos, fmt "\n", \ 94 size_t count, loff_t *ppos) \ 107 return wl1271_format_buffer(userbuf, count, ppos, "%s", buf); \
|
/drivers/infiniband/hw/hfi1/ |
D | debugfs.c | 67 loff_t *ppos) in hfi1_seq_read() argument 75 r = seq_read(file, buf, size, ppos); in hfi1_seq_read() 361 size_t count, loff_t *ppos) in dev_counters_read() argument 370 rval = simple_read_from_buffer(buf, count, ppos, counters, avail); in dev_counters_read() 376 size_t count, loff_t *ppos) in dev_names_read() argument 385 rval = simple_read_from_buffer(buf, count, ppos, names, avail); in dev_names_read() 401 size_t count, loff_t *ppos) in portnames_read() argument 410 rval = simple_read_from_buffer(buf, count, ppos, names, avail); in portnames_read() 416 size_t count, loff_t *ppos) in portcntrs_debugfs_read() argument 425 rval = simple_read_from_buffer(buf, count, ppos, counters, avail); in portcntrs_debugfs_read() [all …]
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_debugfs.c | 45 size_t count, loff_t *ppos) in ixgbe_dbg_reg_ops_read() argument 52 if (*ppos != 0) in ixgbe_dbg_reg_ops_read() 66 len = simple_read_from_buffer(buffer, count, ppos, buf, strlen(buf)); in ixgbe_dbg_reg_ops_read() 81 size_t count, loff_t *ppos) in ixgbe_dbg_reg_ops_write() argument 87 if (*ppos != 0) in ixgbe_dbg_reg_ops_write() 94 ppos, in ixgbe_dbg_reg_ops_write() 150 size_t count, loff_t *ppos) in ixgbe_dbg_netdev_ops_read() argument 157 if (*ppos != 0) in ixgbe_dbg_netdev_ops_read() 171 len = simple_read_from_buffer(buffer, count, ppos, buf, strlen(buf)); in ixgbe_dbg_netdev_ops_read() 186 size_t count, loff_t *ppos) in ixgbe_dbg_netdev_ops_write() argument [all …]
|
/drivers/staging/lustre/lnet/lnet/ |
D | router_proc.c | 125 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_lnet_stats() argument 127 return lprocfs_call_handler(table->data, write, ppos, buffer, lenp, in proc_lnet_stats() 132 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_lnet_routes() argument 144 off = LNET_PROC_HOFF_GET(*ppos); in proc_lnet_routes() 145 ver = LNET_PROC_VER_GET(*ppos); in proc_lnet_routes() 158 if (!*ppos) { in proc_lnet_routes() 170 *ppos = LNET_PROC_POS_MAKE(0, ver, 0, off); in proc_lnet_routes() 244 *ppos = LNET_PROC_POS_MAKE(0, ver, 0, off); in proc_lnet_routes() 257 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_lnet_routers() argument 267 off = LNET_PROC_HOFF_GET(*ppos); in proc_lnet_routers() [all …]
|
/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | debugfs.c | 79 size_t count, loff_t *ppos) in iwl_dbgfs_ctdp_budget_read() argument 97 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_ctdp_budget_read() 101 size_t count, loff_t *ppos) in iwl_dbgfs_stop_ctdp_write() argument 116 size_t count, loff_t *ppos) in iwl_dbgfs_tx_flush_write() argument 137 size_t count, loff_t *ppos) in iwl_dbgfs_sta_drain_write() argument 167 size_t count, loff_t *ppos) in iwl_dbgfs_sram_read() argument 194 ret = simple_read_from_buffer(user_buf, count, ppos, ptr, len); in iwl_dbgfs_sram_read() 202 size_t count, loff_t *ppos) in iwl_dbgfs_sram_write() argument 234 size_t count, loff_t *ppos) in iwl_dbgfs_set_nic_temperature_read() argument 245 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_set_nic_temperature_read() [all …]
|
/drivers/net/wireless/marvell/mwifiex/ |
D | debugfs.c | 75 size_t count, loff_t *ppos) in mwifiex_info_read() argument 148 ret = simple_read_from_buffer(ubuf, count, ppos, (char *) page, in mwifiex_info_read() 167 size_t count, loff_t *ppos) in mwifiex_device_dump_read() argument 202 size_t count, loff_t *ppos) in mwifiex_getlog_read() argument 258 ret = simple_read_from_buffer(ubuf, count, ppos, (char *) page, in mwifiex_getlog_read() 278 size_t count, loff_t *ppos) in mwifiex_histogram_read() argument 346 ret = simple_read_from_buffer(ubuf, count, ppos, (char *)page, in mwifiex_histogram_read() 354 size_t count, loff_t *ppos) in mwifiex_histogram_write() argument 414 size_t count, loff_t *ppos) in mwifiex_debug_read() argument 431 ret = simple_read_from_buffer(ubuf, count, ppos, (char *) page, in mwifiex_debug_read() [all …]
|
/drivers/char/ |
D | mem.c | 104 size_t count, loff_t *ppos) in read_mem() argument 106 phys_addr_t p = *ppos; in read_mem() 110 if (p != *ppos) in read_mem() 167 *ppos += read; in read_mem() 172 size_t count, loff_t *ppos) in write_mem() argument 174 phys_addr_t p = *ppos; in write_mem() 179 if (p != *ppos) in write_mem() 238 *ppos += written; in write_mem() 404 size_t count, loff_t *ppos) in read_kmem() argument 406 unsigned long p = *ppos; in read_kmem() [all …]
|
D | generic_nvram.c | 42 size_t count, loff_t *ppos) in read_nvram() argument 49 if (*ppos >= nvram_len) in read_nvram() 51 for (i = *ppos; count > 0 && i < nvram_len; ++i, ++p, --count) in read_nvram() 54 *ppos = i; in read_nvram() 59 size_t count, loff_t *ppos) in write_nvram() argument 67 if (*ppos >= nvram_len) in write_nvram() 69 for (i = *ppos; count > 0 && i < nvram_len; ++i, ++p, --count) { in write_nvram() 74 *ppos = i; in write_nvram()
|
/drivers/staging/lustre/lnet/libcfs/ |
D | module.c | 163 int lprocfs_call_handler(void *data, int write, loff_t *ppos, in lprocfs_call_handler() argument 168 int rc = handler(data, write, *ppos, buffer, *lenp); in lprocfs_call_handler() 174 *ppos += *lenp; in lprocfs_call_handler() 177 *ppos += rc; in lprocfs_call_handler() 225 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_dobitmasks() argument 227 return lprocfs_call_handler(table->data, write, ppos, buffer, lenp, in proc_dobitmasks() 241 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_dump_kernel() argument 243 return lprocfs_call_handler(table->data, write, ppos, buffer, lenp, in proc_dump_kernel() 264 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_daemon_file() argument 266 return lprocfs_call_handler(table->data, write, ppos, buffer, lenp, in proc_daemon_file() [all …]
|
/drivers/staging/vme/devices/ |
D | vme_user.c | 124 loff_t *ppos) in resource_to_user() argument 132 count, *ppos); in resource_to_user() 143 size_t count, loff_t *ppos) in resource_from_user() argument 152 count, *ppos); in resource_from_user() 156 size_t count, loff_t *ppos) in buffer_to_user() argument 160 image_ptr = image[minor].kern_buf + *ppos; in buffer_to_user() 168 size_t count, loff_t *ppos) in buffer_from_user() argument 172 image_ptr = image[minor].kern_buf + *ppos; in buffer_from_user() 180 loff_t *ppos) in vme_user_read() argument 195 if ((*ppos < 0) || (*ppos > (image_size - 1))) { in vme_user_read() [all …]
|
/drivers/net/wireless/intel/iwlegacy/ |
D | debug.c | 156 size_t count, loff_t *ppos); 161 size_t count, loff_t *ppos); 232 loff_t *ppos) in il_dbgfs_tx_stats_read() argument 265 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il_dbgfs_tx_stats_read() 273 loff_t *ppos) in il_dbgfs_clear_traffic_stats_write() argument 293 loff_t *ppos) in il_dbgfs_rx_stats_read() argument 327 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il_dbgfs_rx_stats_read() 337 loff_t *ppos) in il_dbgfs_sram_read() argument 389 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il_dbgfs_sram_read() 396 size_t count, loff_t *ppos) in il_dbgfs_sram_write() argument [all …]
|
/drivers/acpi/ |
D | custom_method.c | 23 size_t count, loff_t *ppos) in cm_write() argument 32 if (!(*ppos)) { in cm_write() 48 if ((*ppos > max_size) || in cm_write() 49 (*ppos + count > max_size) || in cm_write() 50 (*ppos + count < count) || in cm_write() 54 if (copy_from_user(buf + (*ppos), user_buf, count)) { in cm_write() 61 *ppos += count; in cm_write()
|
/drivers/base/regmap/ |
D | regmap-debugfs.c | 40 loff_t *ppos) in regmap_name_read_file() argument 56 ret = simple_read_from_buffer(user_buf, count, ppos, buf, ret); in regmap_name_read_file() 195 size_t count, loff_t *ppos) in regmap_read_debugfs() argument 198 loff_t p = *ppos; in regmap_read_debugfs() 204 if (*ppos < 0 || !count) in regmap_read_debugfs() 214 start_reg = regmap_debugfs_get_dump_start(map, from, *ppos, &p); in regmap_read_debugfs() 224 if (p >= *ppos) { in regmap_read_debugfs() 256 *ppos += buf_pos; in regmap_read_debugfs() 264 size_t count, loff_t *ppos) in regmap_map_read_file() argument 269 count, ppos); in regmap_map_read_file() [all …]
|
/drivers/parport/ |
D | procfs.c | 36 void __user *result, size_t *lenp, loff_t *ppos) in do_active_device() argument 46 if (*ppos) { in do_active_device() 66 *ppos += len; in do_active_device() 73 void __user *result, size_t *lenp, loff_t *ppos) in do_autoprobe() argument 83 if (*ppos) { in do_autoprobe() 108 *ppos += len; in do_autoprobe() 116 size_t *lenp, loff_t *ppos) in do_hardware_base_addr() argument 122 if (*ppos) { in do_hardware_base_addr() 137 *ppos += len; in do_hardware_base_addr() 144 size_t *lenp, loff_t *ppos) in do_hardware_irq() argument [all …]
|
/drivers/net/wireless/ath/ath10k/ |
D | debug.c | 234 size_t count, loff_t *ppos) in ath10k_read_wmi_services() argument 273 ret_cnt = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_wmi_services() 524 size_t count, loff_t *ppos) in ath10k_fw_stats_read() argument 529 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_fw_stats_read() 542 size_t count, loff_t *ppos) in ath10k_debug_fw_reset_stats_read() argument 567 ret = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_debug_fw_reset_stats_read() 603 size_t count, loff_t *ppos) in ath10k_read_simulate_fw_crash() argument 612 return simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); in ath10k_read_simulate_fw_crash() 624 size_t count, loff_t *ppos) in ath10k_write_simulate_fw_crash() argument 632 if (*ppos != 0 || count >= sizeof(buf) || count == 0) in ath10k_write_simulate_fw_crash() [all …]
|
/drivers/remoteproc/ |
D | remoteproc_debugfs.c | 48 size_t count, loff_t *ppos) in rproc_trace_read() argument 53 return simple_read_from_buffer(userbuf, count, ppos, trace->va, len); in rproc_trace_read() 76 size_t count, loff_t *ppos) in rproc_state_read() argument 88 return simple_read_from_buffer(userbuf, count, ppos, buf, i); in rproc_state_read() 92 size_t count, loff_t *ppos) in rproc_state_write() argument 133 size_t count, loff_t *ppos) in rproc_name_read() argument 142 return simple_read_from_buffer(userbuf, count, ppos, buf, i); in rproc_name_read() 153 size_t count, loff_t *ppos) in rproc_recovery_read() argument 158 return simple_read_from_buffer(userbuf, count, ppos, buf, strlen(buf)); in rproc_recovery_read() 187 size_t count, loff_t *ppos) in rproc_recovery_write() argument
|
/drivers/parisc/ |
D | eisa_eeprom.c | 40 char __user *buf, size_t count, loff_t *ppos ) in eisa_eeprom_read() argument 46 if (*ppos < 0 || *ppos >= HPEE_MAX_LENGTH) in eisa_eeprom_read() 49 count = *ppos + count < HPEE_MAX_LENGTH ? count : HPEE_MAX_LENGTH - *ppos; in eisa_eeprom_read() 53 tmp[i] = readb(eisa_eeprom_addr+(*ppos)++); in eisa_eeprom_read()
|
/drivers/bluetooth/ |
D | btmrvl_debugfs.c | 35 const char __user *ubuf, size_t count, loff_t *ppos) in btmrvl_hscfgcmd_write() argument 61 size_t count, loff_t *ppos) in btmrvl_hscfgcmd_read() argument 70 return simple_read_from_buffer(userbuf, count, ppos, buf, ret); in btmrvl_hscfgcmd_read() 81 size_t count, loff_t *ppos) in btmrvl_pscmd_write() argument 108 size_t count, loff_t *ppos) in btmrvl_pscmd_read() argument 116 return simple_read_from_buffer(userbuf, count, ppos, buf, ret); in btmrvl_pscmd_read() 127 size_t count, loff_t *ppos) in btmrvl_hscmd_write() argument 152 size_t count, loff_t *ppos) in btmrvl_hscmd_read() argument 160 return simple_read_from_buffer(userbuf, count, ppos, buf, ret); in btmrvl_hscmd_read() 171 size_t count, loff_t *ppos) in btmrvl_fwdump_write() argument
|
/drivers/video/fbdev/core/ |
D | fb_sys_fops.c | 17 loff_t *ppos) in fb_sys_read() argument 19 unsigned long p = *ppos; in fb_sys_read() 50 *ppos += count; in fb_sys_read() 57 size_t count, loff_t *ppos) in fb_sys_write() argument 59 unsigned long p = *ppos; in fb_sys_write() 96 *ppos += count; in fb_sys_write()
|
/drivers/video/fbdev/mbx/ |
D | mbxdebugfs.c | 25 size_t count, loff_t *ppos) in write_file_dummy() argument 31 size_t count, loff_t *ppos) in sysconf_read_file() argument 41 return simple_read_from_buffer(userbuf, count, ppos, in sysconf_read_file() 47 size_t count, loff_t *ppos) in gsctl_read_file() argument 70 return simple_read_from_buffer(userbuf, count, ppos, in gsctl_read_file() 75 size_t count, loff_t *ppos) in display_read_file() argument 110 return simple_read_from_buffer(userbuf, count, ppos, in display_read_file() 115 size_t count, loff_t *ppos) in clock_read_file() argument 133 return simple_read_from_buffer(userbuf, count, ppos, in clock_read_file() 138 size_t count, loff_t *ppos) in sdram_read_file() argument [all …]
|
/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | debugfs.c | 99 size_t count, loff_t *ppos) in iwl_dbgfs_sram_read() argument 182 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_sram_read() 189 size_t count, loff_t *ppos) in iwl_dbgfs_sram_write() argument 217 size_t count, loff_t *ppos) in iwl_dbgfs_wowlan_sram_read() argument 225 return simple_read_from_buffer(user_buf, count, ppos, in iwl_dbgfs_wowlan_sram_read() 230 size_t count, loff_t *ppos) in iwl_dbgfs_stations_read() argument 280 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_stations_read() 288 loff_t *ppos) in iwl_dbgfs_nvm_read() argument 319 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_nvm_read() 325 size_t count, loff_t *ppos) in iwl_dbgfs_channels_read() argument [all …]
|