/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 | 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 …]
|
/drivers/infiniband/hw/hfi1/ |
D | debugfs.c | 71 loff_t *ppos) in hfi1_seq_read() argument 79 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 …]
|
/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/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/scsi/qedf/ |
D | qedf_debugfs.c | 118 loff_t *ppos) in qedf_dbg_fp_int_cmd_read() argument 140 cnt = min_t(int, count, cnt - *ppos); in qedf_dbg_fp_int_cmd_read() 141 *ppos += cnt; in qedf_dbg_fp_int_cmd_read() 147 size_t count, loff_t *ppos) in qedf_dbg_fp_int_cmd_write() argument 149 if (!count || *ppos) in qedf_dbg_fp_int_cmd_write() 157 loff_t *ppos) in qedf_dbg_debug_cmd_read() argument 166 cnt = min_t(int, count, cnt - *ppos); in qedf_dbg_debug_cmd_read() 167 *ppos += cnt; in qedf_dbg_debug_cmd_read() 173 size_t count, loff_t *ppos) in qedf_dbg_debug_cmd_write() argument 181 if (!count || *ppos) in qedf_dbg_debug_cmd_write() [all …]
|
/drivers/staging/lustre/lnet/lnet/ |
D | router_proc.c | 126 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_lnet_stats() argument 128 return lprocfs_call_handler(table->data, write, ppos, buffer, lenp, in proc_lnet_stats() 133 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_lnet_routes() argument 145 off = LNET_PROC_HOFF_GET(*ppos); in proc_lnet_routes() 146 ver = LNET_PROC_VER_GET(*ppos); in proc_lnet_routes() 159 if (!*ppos) { in proc_lnet_routes() 171 *ppos = LNET_PROC_POS_MAKE(0, ver, 0, off); in proc_lnet_routes() 246 *ppos = LNET_PROC_POS_MAKE(0, ver, 0, off); in proc_lnet_routes() 259 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_lnet_routers() argument 269 off = LNET_PROC_HOFF_GET(*ppos); in proc_lnet_routers() [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 344 ret = simple_read_from_buffer(ubuf, count, ppos, (char *)page, in mwifiex_histogram_read() 352 size_t count, loff_t *ppos) in mwifiex_histogram_write() argument 412 size_t count, loff_t *ppos) in mwifiex_debug_read() argument 429 ret = simple_read_from_buffer(ubuf, count, ppos, (char *) page, in mwifiex_debug_read() [all …]
|
/drivers/char/ |
D | mem.c | 112 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() 433 size_t count, loff_t *ppos) in read_kmem() argument 435 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/net/wireless/intel/iwlwifi/mvm/ |
D | debugfs.c | 81 size_t count, loff_t *ppos) in iwl_dbgfs_ctdp_budget_read() argument 103 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_ctdp_budget_read() 107 size_t count, loff_t *ppos) in iwl_dbgfs_stop_ctdp_write() argument 126 size_t count, loff_t *ppos) in iwl_dbgfs_force_ctkill_write() argument 138 size_t count, loff_t *ppos) in iwl_dbgfs_tx_flush_write() argument 171 size_t count, loff_t *ppos) in iwl_dbgfs_sta_drain_write() argument 202 size_t count, loff_t *ppos) in iwl_dbgfs_sram_read() argument 229 ret = simple_read_from_buffer(user_buf, count, ppos, ptr, len); in iwl_dbgfs_sram_read() 237 size_t count, loff_t *ppos) in iwl_dbgfs_sram_write() argument 269 size_t count, loff_t *ppos) in iwl_dbgfs_set_nic_temperature_read() argument [all …]
|
/drivers/staging/lustre/lnet/libcfs/ |
D | module.c | 162 int lprocfs_call_handler(void *data, int write, loff_t *ppos, in lprocfs_call_handler() argument 167 int rc = handler(data, write, *ppos, buffer, *lenp); in lprocfs_call_handler() 173 *ppos += *lenp; in lprocfs_call_handler() 176 *ppos += rc; in lprocfs_call_handler() 224 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_dobitmasks() argument 226 return lprocfs_call_handler(table->data, write, ppos, buffer, lenp, in proc_dobitmasks() 240 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_dump_kernel() argument 242 return lprocfs_call_handler(table->data, write, ppos, buffer, lenp, in proc_dump_kernel() 263 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_daemon_file() argument 265 return lprocfs_call_handler(table->data, write, ppos, buffer, lenp, in proc_daemon_file() [all …]
|
/drivers/staging/vme/devices/ |
D | vme_user.c | 125 loff_t *ppos) in resource_to_user() argument 133 count, *ppos); in resource_to_user() 144 size_t count, loff_t *ppos) in resource_from_user() argument 153 count, *ppos); in resource_from_user() 157 size_t count, loff_t *ppos) in buffer_to_user() argument 161 image_ptr = image[minor].kern_buf + *ppos; in buffer_to_user() 169 size_t count, loff_t *ppos) in buffer_from_user() argument 173 image_ptr = image[minor].kern_buf + *ppos; in buffer_from_user() 181 loff_t *ppos) in vme_user_read() argument 196 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/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/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() 56 if (copy_from_user(buf + (*ppos), user_buf, count)) { in cm_write() 63 *ppos += count; in cm_write()
|
/drivers/parport/ |
D | procfs.c | 37 void __user *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 __user *result, size_t *lenp, loff_t *ppos) in do_autoprobe() argument 84 if (*ppos) { in do_autoprobe() 109 *ppos += len; in do_autoprobe() 117 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() 145 size_t *lenp, loff_t *ppos) in do_hardware_irq() argument [all …]
|
/drivers/net/wireless/ath/ath10k/ |
D | debug.c | 244 size_t count, loff_t *ppos) in ath10k_read_wmi_services() argument 280 ret_cnt = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_wmi_services() 534 size_t count, loff_t *ppos) in ath10k_fw_stats_read() argument 539 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_fw_stats_read() 552 size_t count, loff_t *ppos) in ath10k_debug_fw_reset_stats_read() argument 576 ret = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_debug_fw_reset_stats_read() 612 size_t count, loff_t *ppos) in ath10k_read_simulate_fw_crash() argument 621 return simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); in ath10k_read_simulate_fw_crash() 633 size_t count, loff_t *ppos) in ath10k_write_simulate_fw_crash() argument 641 if (*ppos != 0 || count >= sizeof(buf) || count == 0) in ath10k_write_simulate_fw_crash() [all …]
|
/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 | 20 size_t count, loff_t *ppos) in write_file_dummy() argument 26 size_t count, loff_t *ppos) in sysconf_read_file() argument 36 return simple_read_from_buffer(userbuf, count, ppos, in sysconf_read_file() 42 size_t count, loff_t *ppos) in gsctl_read_file() argument 65 return simple_read_from_buffer(userbuf, count, ppos, in gsctl_read_file() 70 size_t count, loff_t *ppos) in display_read_file() argument 105 return simple_read_from_buffer(userbuf, count, ppos, in display_read_file() 110 size_t count, loff_t *ppos) in clock_read_file() argument 128 return simple_read_from_buffer(userbuf, count, ppos, in clock_read_file() 133 size_t count, loff_t *ppos) in sdram_read_file() argument [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() 64 size_t count, loff_t *ppos) in rproc_name_read() argument 73 return simple_read_from_buffer(userbuf, count, ppos, buf, i); in rproc_name_read() 84 size_t count, loff_t *ppos) in rproc_recovery_read() argument 89 return simple_read_from_buffer(userbuf, count, ppos, buf, strlen(buf)); in rproc_recovery_read() 118 size_t count, loff_t *ppos) in rproc_recovery_write() argument
|