/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/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 …]
|
/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/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 …]
|
/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 …]
|
D | debugfs.h | 16 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); \
|
/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 …]
|
/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 …]
|
D | debugfs-vif.c | 73 size_t count, loff_t *ppos) in iwl_dbgfs_pm_params_write() argument 137 size_t count, loff_t *ppos) in iwl_dbgfs_tx_pwr_lmt_read() argument 147 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_tx_pwr_lmt_read() 152 size_t count, loff_t *ppos) in iwl_dbgfs_pm_params_read() argument 163 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_pm_params_read() 168 size_t count, loff_t *ppos) in iwl_dbgfs_mac_params_read() argument 247 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_mac_params_read() 296 size_t count, loff_t *ppos) in iwl_dbgfs_bf_params_write() argument 394 size_t count, loff_t *ppos) in iwl_dbgfs_bf_params_read() argument 438 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_bf_params_read() [all …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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()
|
/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 …]
|
/drivers/net/wireless/ath/ath10k/ |
D | debug.c | 152 size_t count, loff_t *ppos) in ath10k_read_wmi_services() argument 188 ret_cnt = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_wmi_services() 445 size_t count, loff_t *ppos) in ath10k_fw_stats_read() argument 450 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_fw_stats_read() 463 size_t count, loff_t *ppos) in ath10k_debug_fw_reset_stats_read() argument 487 ret = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_debug_fw_reset_stats_read() 523 size_t count, loff_t *ppos) in ath10k_read_simulate_fw_crash() argument 532 return simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); in ath10k_read_simulate_fw_crash() 544 size_t count, loff_t *ppos) in ath10k_write_simulate_fw_crash() argument 552 if (*ppos != 0 || count >= sizeof(buf) || count == 0) in ath10k_write_simulate_fw_crash() [all …]
|
/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 …]
|
/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 …]
|
/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
|
D | vfio_ccw_async.c | 16 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()
|
/drivers/base/regmap/ |
D | regmap-debugfs.c | 36 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() 217 size_t count, loff_t *ppos) in regmap_read_debugfs() argument 220 loff_t p = *ppos; in regmap_read_debugfs() 226 if (*ppos < 0 || !count) in regmap_read_debugfs() 239 start_reg = regmap_debugfs_get_dump_start(map, from, *ppos, &p); in regmap_read_debugfs() 245 if (p >= *ppos) { in regmap_read_debugfs() 277 *ppos += buf_pos; in regmap_read_debugfs() 285 size_t count, loff_t *ppos) in regmap_map_read_file() argument 290 count, ppos); in regmap_map_read_file() [all …]
|
/drivers/bluetooth/ |
D | btmrvl_debugfs.c | 22 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()
|
/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()
|
/drivers/net/wireless/ath/ath11k/ |
D | debugfs.c | 301 size_t count, loff_t *ppos) in ath11k_read_pdev_stats() argument 306 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_read_pdev_stats() 372 size_t count, loff_t *ppos) in ath11k_read_vdev_stats() argument 377 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_read_vdev_stats() 456 size_t count, loff_t *ppos) in ath11k_read_bcn_stats() argument 461 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_read_bcn_stats() 474 size_t count, loff_t *ppos) in ath11k_read_simulate_fw_crash() argument 481 return simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); in ath11k_read_simulate_fw_crash() 493 size_t count, loff_t *ppos) in ath11k_write_simulate_fw_crash() argument 511 if (*ppos != 0 || count >= sizeof(buf) || count == 0) in ath11k_write_simulate_fw_crash() [all …]
|