/linux-6.14.4/drivers/hwtracing/coresight/ |
D | coresight-sysfs.c | 28 struct device_attribute *attr, char *buf) in coresight_simple_show_pair() 32 u64 val; in coresight_simple_show_pair() local 42 struct device_attribute *attr, char *buf) in coresight_simple_show32() 46 u64 val; in coresight_simple_show32() local 309 struct device_attribute *attr, char *buf) in enable_sink_show() 318 const char *buf, size_t size) in enable_sink_store() 321 unsigned long val; in enable_sink_store() local 336 struct device_attribute *attr, char *buf) in enable_source_show() 347 const char *buf, size_t size) in enable_source_store() 350 unsigned long val; in enable_source_store() local [all …]
|
/linux-6.14.4/fs/btrfs/ |
D | sysfs.c | 147 int val = 0; in can_modify_feature() local 177 struct kobj_attribute *a, char *buf) in btrfs_feature_attr_show() 179 int val = 0; in btrfs_feature_attr_show() local 194 const char *buf, size_t count) in btrfs_feature_attr_store() 199 unsigned long val; in btrfs_feature_attr_store() local 349 struct kobj_attribute *ka, char *buf) in rmdir_subvol_show() 356 struct kobj_attribute *a, char *buf) in supported_checksums_show() 377 struct kobj_attribute *ka, char *buf) in send_stream_version_show() 395 char *buf) in supported_rescue_options_show() 410 char *buf) in supported_sectorsizes_show() [all …]
|
/linux-6.14.4/drivers/dma/idxd/ |
D | sysfs.c | 21 struct device_attribute *attr, char *buf) in engine_group_id_show() 33 const char *buf, size_t count) in engine_group_id_store() 117 char *buf) in group_read_buffers_reserved_show() 126 char *buf) in group_tokens_reserved_show() 134 const char *buf, size_t count) in group_read_buffers_reserved_store() 138 unsigned long val; in group_read_buffers_reserved_store() local 167 const char *buf, size_t count) in group_tokens_reserved_store() 183 char *buf) in group_read_buffers_allowed_show() 192 char *buf) in group_tokens_allowed_show() 200 const char *buf, size_t count) in group_read_buffers_allowed_store() [all …]
|
/linux-6.14.4/drivers/scsi/pcmcia/ |
D | nsp_io.h | 32 unsigned char val) in nsp_write() 69 void *buf, in nsp_multi_read_1() 76 void *buf, in nsp_fifo8_read() 88 void *buf, in nsp_multi_read_2() 95 void *buf, in nsp_fifo16_read() 107 void *buf, in nsp_multi_read_4() 114 void *buf, in nsp_fifo32_read() 126 void *buf, in nsp_multi_write_1() 133 void *buf, in nsp_fifo8_write() 144 void *buf, in nsp_multi_write_2() [all …]
|
/linux-6.14.4/drivers/hwmon/ |
D | nct7802.c | 83 struct device_attribute *attr, char *buf) in temp_type_show() 98 struct device_attribute *attr, const char *buf, in temp_type_store() 119 struct device_attribute *attr, char *buf) in pwm_mode_show() 137 char *buf) in pwm_show() 141 unsigned int val; in pwm_show() local 155 const char *buf, size_t count) in pwm_store() 160 u8 val; in pwm_store() local 171 struct device_attribute *attr, char *buf) in pwm_enable_show() 187 const char *buf, size_t count) in pwm_enable_store() 191 u8 val; in pwm_enable_store() local [all …]
|
D | nct6775-core.c | 1007 static inline u8 in_to_reg(u32 val, u8 nr, const u16 *scales) in in_to_reg() 1212 static int nct6775_read_temp(struct nct6775_data *data, u16 reg, u16 *val) in nct6775_read_temp() 1714 show_in_reg(struct device *dev, struct device_attribute *attr, char *buf) in show_in_reg() 1729 store_in_reg(struct device *dev, struct device_attribute *attr, const char *buf, in store_in_reg() 1736 unsigned long val; in store_in_reg() local 1750 nct6775_show_alarm(struct device *dev, struct device_attribute *attr, char *buf) in nct6775_show_alarm() 1783 show_temp_alarm(struct device *dev, struct device_attribute *attr, char *buf) in show_temp_alarm() 1807 nct6775_show_beep(struct device *dev, struct device_attribute *attr, char *buf) in nct6775_show_beep() 1824 nct6775_store_beep(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) in nct6775_store_beep() 1830 unsigned long val; in nct6775_store_beep() local [all …]
|
D | ina209.c | 81 s32 val; in ina209_update_device() local 108 static long ina209_from_reg(const u8 reg, const u16 val) in ina209_from_reg() 158 static int ina209_to_reg(u8 reg, u16 old, long val) in ina209_to_reg() 232 const char *buf, size_t count) in ina209_interval_store() 235 long val; in ina209_interval_store() local 258 struct device_attribute *da, char *buf) in ina209_interval_show() 281 const char *buf, size_t count) in ina209_history_store() 287 long val; in ina209_history_store() local 307 const char *buf, size_t count) in ina209_value_store() 312 long val; in ina209_value_store() local [all …]
|
D | vt1211.c | 148 #define IN_TO_REG(ix, val) (clamp_val((ix) == 5 ? \ argument 163 #define TEMP_TO_REG(ix, val) clamp_val( \ argument 172 #define RPM_TO_REG(val, div) ((val) == 0 ? 255 : \ argument 236 static inline void vt1211_write8(struct vt1211_data *data, u8 reg, u8 val) in vt1211_write8() 244 int ix, val; in vt1211_update_device() local 335 char *buf) in show_in() 366 const char *buf, size_t count) in set_in() 373 long val; in set_in() local 409 char *buf) in show_temp() 440 const char *buf, size_t count) in set_temp() [all …]
|
D | it87.c | 97 static inline void superio_outb(int ioreg, int reg, int val) in superio_outb() 105 int val; in superio_inw() local 657 static u8 in_to_reg(const struct it87_data *data, int nr, long val) in in_to_reg() 663 static int in_from_reg(const struct it87_data *data, int nr, int val) in in_from_reg() 683 #define FAN_FROM_REG(val, div) ((val) == 0 ? -1 : (val) == 255 ? 0 : \ argument 686 #define FAN16_FROM_REG(val) ((val) == 0 ? -1 : (val) == 0xffff ? 0 : \ argument 689 #define TEMP_TO_REG(val) (clamp_val(((val) < 0 ? (((val) - 500) / 1000) : \ argument 691 #define TEMP_FROM_REG(val) ((val) * 1000) argument 693 static u8 pwm_to_reg(const struct it87_data *data, long val) in pwm_to_reg() 709 static int DIV_TO_REG(int val) in DIV_TO_REG() [all …]
|
D | adt7470.c | 180 unsigned int *val) in adt7470_read_word_data() 195 unsigned int val) in adt7470_write_word_data() 309 unsigned int val; in adt7470_update_sensors() local 380 unsigned int val; in adt7470_update_limits() local 474 char *buf) in auto_update_interval_show() 486 const char *buf, size_t count) in auto_update_interval_store() 505 char *buf) in num_temp_sensors_show() 517 const char *buf, size_t count) in num_temp_sensors_store() 536 static int adt7470_temp_read(struct device *dev, u32 attr, int channel, long *val) in adt7470_temp_read() 563 static int adt7470_temp_write(struct device *dev, u32 attr, int channel, long val) in adt7470_temp_write() [all …]
|
D | sht4x.c | 157 static ssize_t sht4x_interval_write(struct sht4x_data *data, long val) in sht4x_interval_write() 165 static size_t sht4x_interval_read(struct sht4x_data *data, long *val) in sht4x_interval_read() 172 static int sht4x_temperature1_read(struct sht4x_data *data, long *val) in sht4x_temperature1_read() 186 static int sht4x_humidity1_read(struct sht4x_data *data, long *val) in sht4x_humidity1_read() 215 u32 attr, int channel, long *val) in sht4x_hwmon_read() 232 u32 attr, int channel, long val) in sht4x_hwmon_write() 246 char *buf) in heater_enable_show() 255 const char *buf, in heater_enable_store() 310 char *buf) in heater_power_show() 319 const char *buf, in heater_power_store() [all …]
|
D | emc6w201.c | 80 static int emc6w201_write16(struct i2c_client *client, u8 reg, u16 val) in emc6w201_write16() 97 int val; in emc6w201_read8() local 110 static int emc6w201_write8(struct i2c_client *client, u8 reg, u8 val) in emc6w201_write8() 180 char *buf) in in_show() 191 const char *buf, size_t count) in in_store() 198 long val; in in_store() local 219 char *buf) in temp_show() 229 struct device_attribute *devattr, const char *buf, in temp_store() 237 long val; in temp_store() local 258 char *buf) in fan_show() [all …]
|
/linux-6.14.4/drivers/ptp/ |
D | ptp_fc3.c | 96 u8 val; in idtfc3_enable_lpf() local 114 u8 buf[4]; in idtfc3_get_time_ref_freq() local 136 u8 buf[4]; in idtfc3_get_tdc_offset_sign() local 137 u32 val; in idtfc3_get_tdc_offset_sign() local 167 u8 val = FIELD_PREP(LPF_BW_SHIFT, shift) | FIELD_PREP(LPF_BW_MULT, mult); in idtfc3_lpf_bw() local 175 u8 val = 0; in idtfc3_enable_tdc() local 208 u8 buf[9]; in get_tdc_meas() local 209 u8 val; in get_tdc_meas() local 237 u8 val; in check_tdc_fifo_overrun() local 279 u8 buf[5] = {0}; in idtfc3_read_subcounter() local [all …]
|
/linux-6.14.4/tools/testing/selftests/bpf/progs/ |
D | test_global_func1.c | 21 volatile char buf[MAX_STACK] = {}; in f1() local 31 int f2(int val, struct __sk_buff *skb) in f2() 33 volatile char buf[MAX_STACK] = {}; in f2() local 41 int f3(int val, struct __sk_buff *skb, int var) in f3() 43 volatile char buf[MAX_STACK] = {}; in f3() local
|
/linux-6.14.4/samples/vfio-mdev/ |
D | mdpy.c | 39 #define STORE_LE16(addr, val) (*(u16 *)addr = val) argument 40 #define STORE_LE32(addr, val) (*(u32 *)addr = val) argument 149 char *buf, u32 count) in handle_pci_cfg_write() 173 static ssize_t mdev_access(struct mdev_state *mdev_state, char *buf, in mdev_access() 301 static ssize_t mdpy_read(struct vfio_device *vdev, char __user *buf, in mdpy_read() 313 u32 val; in mdpy_read() local 325 u16 val; in mdpy_read() local 337 u8 val; in mdpy_read() local 362 static ssize_t mdpy_write(struct vfio_device *vdev, const char __user *buf, in mdpy_write() 374 u32 val; in mdpy_write() local [all …]
|
/linux-6.14.4/include/linux/ |
D | nvmem-consumer.h | 126 void *buf, size_t len) in nvmem_cell_write() 132 const char *cell_id, u8 *val) in nvmem_cell_read_u8() 138 const char *cell_id, u16 *val) in nvmem_cell_read_u16() 144 const char *cell_id, u32 *val) in nvmem_cell_read_u32() 150 const char *cell_id, u64 *val) in nvmem_cell_read_u64() 157 u32 *val) in nvmem_cell_read_variable_le_u32() 164 u64 *val) in nvmem_cell_read_variable_le_u64() 192 void *buf) in nvmem_device_cell_read() 199 void *buf) in nvmem_device_cell_write() 206 void *buf) in nvmem_device_read() [all …]
|
/linux-6.14.4/drivers/iio/chemical/ |
D | scd4x.c | 100 char buf[SCD4X_COMMAND_BUF_SIZE]; in scd4x_send_command() local 135 char buf[SCD4X_READ_BUF_SIZE]; in scd4x_read() local 186 char buf[SCD4X_WRITE_BUF_SIZE]; in scd4x_write() local 224 char buf[SCD4X_READ_BUF_SIZE]; in scd4x_write_and_fetch() local 274 __be16 buf[3]; in scd4x_read_meas() local 294 uint16_t val; in scd4x_wait_meas_poll() local 316 static int scd4x_read_poll(struct scd4x_state *state, uint16_t *buf) in scd4x_read_poll() 330 uint16_t buf[3]; in scd4x_read_channel() local 340 struct iio_chan_spec const *chan, int *val, in scd4x_read_raw() 429 int val, int val2, long mask) in scd4x_write_raw() [all …]
|
/linux-6.14.4/drivers/platform/x86/ |
D | panasonic-laptop.c | 295 static int acpi_pcc_write_sset(struct pcc_acpi *pcc, int func, int val) in acpi_pcc_write_sset() 516 char *buf) in numbatt_show() 528 char *buf) in lcdtype_show() 540 char *buf) in mute_show() 552 const char *buf, size_t count) in mute_store() 556 int err, val; in mute_store() local 570 char *buf) in sticky_key_show() 582 const char *buf, size_t count) in sticky_key_store() 586 int err, val; in sticky_key_store() local 600 char *buf) in eco_mode_show() [all …]
|
/linux-6.14.4/arch/powerpc/kernel/ |
D | security.c | 80 static int barrier_nospec_set(void *data, u64 val) in barrier_nospec_set() 98 static int barrier_nospec_get(void *data, u64 *val) in barrier_nospec_get() 146 ssize_t cpu_show_meltdown(struct device *dev, struct device_attribute *attr, char *buf) in cpu_show_meltdown() 175 ssize_t cpu_show_l1tf(struct device *dev, struct device_attribute *attr, char *buf) in cpu_show_l1tf() 181 ssize_t cpu_show_spectre_v1(struct device *dev, struct device_attribute *attr, char *buf) in cpu_show_spectre_v1() 203 ssize_t cpu_show_spectre_v2(struct device *dev, struct device_attribute *attr, char *buf) in cpu_show_spectre_v2() 338 ssize_t cpu_show_spec_store_bypass(struct device *dev, struct device_attribute *attr, char *buf) in cpu_show_spec_store_bypass() 401 static int stf_barrier_set(void *data, u64 val) in stf_barrier_set() 419 static int stf_barrier_get(void *data, u64 *val) in stf_barrier_get() 726 static int count_cache_flush_set(void *data, u64 val) in count_cache_flush_set() [all …]
|
/linux-6.14.4/drivers/power/supply/ |
D | ds2781_battery.c | 54 char *buf, int addr, size_t count, int io) in ds2781_battery_io() 59 static int w1_ds2781_read(struct ds2781_device_info *dev_info, char *buf, in w1_ds2781_read() 65 static inline int ds2781_read8(struct ds2781_device_info *dev_info, u8 *val, in ds2781_read8() 71 static int ds2781_read16(struct ds2781_device_info *dev_info, s16 *val, in ds2781_read16() 87 u8 *val, int addr, size_t count) in ds2781_read_block() 92 static inline int ds2781_write(struct ds2781_device_info *dev_info, u8 *val, in ds2781_write() 163 char val[2]; in ds2781_get_voltage() local 192 char val[2]; in ds2781_get_temperature() local 379 union power_supply_propval *val) in ds2781_battery_get_property() 447 char *buf) in ds2781_get_pmod_enabled() [all …]
|
/linux-6.14.4/drivers/media/dvb-frontends/ |
D | si2165.c | 76 const u16 reg, u8 *val, const int count) in si2165_read() 93 const u16 reg, u8 *val) in si2165_readreg8() 103 const u16 reg, u16 *val) in si2165_readreg16() 105 u8 buf[2]; in si2165_readreg16() local 114 const u16 reg, u32 *val) in si2165_readreg24() 116 u8 buf[3]; in si2165_readreg24() local 124 static int si2165_writereg8(struct si2165_state *state, const u16 reg, u8 val) in si2165_writereg8() 129 static int si2165_writereg16(struct si2165_state *state, const u16 reg, u16 val) in si2165_writereg16() 131 u8 buf[2] = { val & 0xff, (val >> 8) & 0xff }; in si2165_writereg16() local 136 static int si2165_writereg24(struct si2165_state *state, const u16 reg, u32 val) in si2165_writereg24() [all …]
|
/linux-6.14.4/drivers/misc/ |
D | isl29003.c | 73 u32 reg, u8 mask, u8 shift, u8 val) in __isl29003_write_reg() 185 struct device_attribute *attr, char *buf) in isl29003_show_range() 194 const char *buf, size_t count) in isl29003_store_range() 197 unsigned long val; in isl29003_store_range() local 221 char *buf) in isl29003_show_resolution() 230 const char *buf, size_t count) in isl29003_store_resolution() 233 unsigned long val; in isl29003_store_resolution() local 255 struct device_attribute *attr, char *buf) in isl29003_show_mode() 263 struct device_attribute *attr, const char *buf, size_t count) in isl29003_store_mode() 266 unsigned long val; in isl29003_store_mode() local [all …]
|
/linux-6.14.4/drivers/media/tuners/ |
D | tda18218.c | 14 static int tda18218_wr_regs(struct tda18218_priv *priv, u8 reg, u8 *val, u8 len) in tda18218_wr_regs() 17 u8 buf[MAX_XFER_SIZE]; in tda18218_wr_regs() local 60 static int tda18218_rd_regs(struct tda18218_priv *priv, u8 reg, u8 *val, u8 len) in tda18218_rd_regs() 63 u8 buf[MAX_XFER_SIZE]; /* we must start read always from reg 0x00 */ in tda18218_rd_regs() local 99 static int tda18218_wr_reg(struct tda18218_priv *priv, u8 reg, u8 val) in tda18218_wr_reg() 106 static int tda18218_rd_reg(struct tda18218_priv *priv, u8 reg, u8 *val) in tda18218_rd_reg() 117 u8 buf[3], i, BP_Filter, LP_Fc; in tda18218_set_params() local 283 u8 val; in tda18218_attach() local
|
/linux-6.14.4/drivers/scsi/bnx2i/ |
D | bnx2i_sysfs.c | 40 struct device_attribute *attr, char *buf) in bnx2i_show_sq_info() 61 const char *buf, size_t count) in bnx2i_set_sq_info() 64 u32 val; in bnx2i_set_sq_info() local 98 struct device_attribute *attr, char *buf) in bnx2i_show_ccell_info() 117 const char *buf, size_t count) in bnx2i_set_ccell_info() 119 u32 val; in bnx2i_set_ccell_info() local
|
/linux-6.14.4/drivers/leds/ |
D | leds-lp55xx-common.c | 94 u8 val; in lp55xx_wait_opmode_done() local 123 u8 mask, val; in lp55xx_load_engine() local 344 u8 val = cfg->reset.val; in lp55xx_reset_device() local 354 u8 val = cfg->enable.val; in lp55xx_detect_device() local 385 char *buf) in led_current_show() 394 const char *buf, size_t len) in led_current_store() 418 char *buf) in max_current_show() 569 char *buf) in select_engine_show() 579 const char *buf, size_t len) in select_engine_store() 583 unsigned long val; in select_engine_store() local [all …]
|