/linux-6.14.4/drivers/hwmon/ |
D | w83793.c | 170 static inline unsigned long FAN_FROM_REG(u16 val) in FAN_FROM_REG() 189 static inline u8 TIME_TO_REG(unsigned long val) in TIME_TO_REG() 199 static inline s8 TEMP_TO_REG(long val, s8 min, s8 max) in TEMP_TO_REG() 312 vrm_show(struct device *dev, struct device_attribute *attr, char *buf) in vrm_show() 319 show_vid(struct device *dev, struct device_attribute *attr, char *buf) in show_vid() 331 const char *buf, size_t count) in vrm_store() 334 unsigned long val; in vrm_store() local 351 show_alarm_beep(struct device *dev, struct device_attribute *attr, char *buf) in show_alarm_beep() 359 u8 val; in show_alarm_beep() local 372 const char *buf, size_t count) in store_beep() [all …]
|
D | ultra45_env.c | 81 static void env_write(struct env *p, u8 ireg, u8 val) in env_write() 99 char *buf) in show_fan_speed() 104 u8 val; in show_fan_speed() local 117 const char *buf, size_t count) in set_fan_speed() 123 u8 val; in set_fan_speed() local 141 char *buf) in show_fan_fault() 145 u8 val = env_read(p, IREG_FAN_STAT); in show_fan_fault() local 164 char *buf) in show_temp() 168 s8 val; in show_temp() local 185 char *buf) in show_stat_bit() [all …]
|
D | adm1025.c | 82 #define IN_TO_REG(val, scale) ((val) <= 0 ? 0 : \ argument 87 #define TEMP_TO_REG(val) ((val) <= -127500 ? -128 : \ argument 164 in_show(struct device *dev, struct device_attribute *attr, char *buf) in in_show() 173 in_min_show(struct device *dev, struct device_attribute *attr, char *buf) in in_min_show() 182 in_max_show(struct device *dev, struct device_attribute *attr, char *buf) in in_max_show() 191 temp_show(struct device *dev, struct device_attribute *attr, char *buf) in temp_show() 199 temp_min_show(struct device *dev, struct device_attribute *attr, char *buf) in temp_min_show() 207 temp_max_show(struct device *dev, struct device_attribute *attr, char *buf) in temp_max_show() 215 const char *buf, size_t count) in in_min_store() 220 long val; in in_min_store() local [all …]
|
D | gl518sm.c | 71 #define RAW_FROM_REG(val) val argument 73 #define BOOL_FROM_REG(val) ((val) ? 0 : 1) argument 74 #define BOOL_TO_REG(val) ((val) ? 0 : 1) argument 76 #define TEMP_CLAMP(val) clamp_val(val, -119000, 136000) argument 77 #define TEMP_TO_REG(val) (DIV_ROUND_CLOSEST(TEMP_CLAMP(val), 1000) + 119) argument 78 #define TEMP_FROM_REG(val) (((val) - 119) * 1000) argument 88 #define FAN_FROM_REG(val, div) ((val) == 0 ? 0 : (480000 / ((val) * (div)))) argument 90 #define IN_CLAMP(val) clamp_val(val, 0, 255 * 19) argument 91 #define IN_TO_REG(val) DIV_ROUND_CLOSEST(IN_CLAMP(val), 19) argument 92 #define IN_FROM_REG(val) ((val) * 19) argument [all …]
|
D | w83795.c | 225 static inline u16 in_from_reg(u8 index, u16 val) in in_from_reg() 234 static inline u16 in_to_reg(u8 index, u16 val) in in_to_reg() 242 static inline unsigned long fan_from_reg(u16 val) in fan_from_reg() 261 static inline u8 time_to_reg(unsigned long val) in time_to_reg() 271 static inline s8 temp_to_reg(long val, s8 min, s8 max) in temp_to_reg() 292 static u8 pwm_freq_to_reg(unsigned long val, u16 clkin) in pwm_freq_to_reg() 701 show_alarm_beep(struct device *dev, struct device_attribute *attr, char *buf) in show_alarm_beep() 709 u8 val; in show_alarm_beep() local 721 const char *buf, size_t count) in store_beep() 730 unsigned long val; in store_beep() local [all …]
|
D | adt7475.c | 234 static inline u16 temp2reg(struct adt7475_data *data, long val) in temp2reg() 328 static void adt7475_write_word(struct i2c_client *client, int reg, u16 val) in adt7475_write_word() 335 char *buf) in voltage_show() 339 unsigned short val; in voltage_show() local 356 struct device_attribute *attr, const char *buf, in voltage_store() 364 long val; in voltage_store() local 399 char *buf) in temp_show() 457 const char *buf, size_t count) in temp_store() 465 long val; in temp_store() local 559 char *buf) in temp_st_show() [all …]
|
D | asb100.c | 102 static u8 IN_TO_REG(unsigned val) in IN_TO_REG() 123 static int FAN_FROM_REG(u8 val, int div) in FAN_FROM_REG() 163 #define DIV_FROM_REG(val) (1 << (val)) argument 169 static u8 DIV_TO_REG(long val) in DIV_TO_REG() 287 char *buf) in show_fan() 296 char *buf) in show_fan_min() 305 char *buf) in show_fan_div() 313 const char *buf, size_t count) in set_fan_min() 318 unsigned long val; in set_fan_min() local 339 const char *buf, size_t count) in set_fan_div() [all …]
|
D | mc13783-adc.c | 33 char *buf) in name_show() 41 struct device_attribute *devattr, unsigned int *val) in mc13783_adc_read() 68 char *buf) in mc13783_adc_bp_show() 70 unsigned val; in mc13783_adc_bp_show() local 92 char *buf) in mc13783_adc_gp_show() 94 unsigned val; in mc13783_adc_gp_show() local 111 char *buf) in mc13783_adc_uid_show() 113 unsigned int val; in mc13783_adc_uid_show() local 133 char *buf) in mc13783_adc_temp_show() 135 unsigned int val; in mc13783_adc_temp_show() local
|
D | w83l786ng.c | 79 #define FAN_FROM_REG(val, div) ((val) == 0 ? -1 : \ argument 84 #define TEMP_TO_REG(val) (clamp_val(((val) < 0 ? (val) + 0x100 * 1000 \ argument 86 #define TEMP_FROM_REG(val) (((val) & 0x80 ? \ argument 94 #define IN_TO_REG(val) (clamp_val((((val) + 4) / 8), 0, 255)) argument 95 #define IN_FROM_REG(val) ((val) * 8) argument 97 #define DIV_FROM_REG(val) (1 << (val)) argument 100 DIV_TO_REG(long val) in DIV_TO_REG() 291 const char *buf, size_t count) in store_fan_min() 296 unsigned long val; in store_fan_min() local 314 char *buf) in show_fan_div() [all …]
|
D | lm80.c | 62 #define IN_TO_REG(val) (clamp_val(((val) + 5) / 10, 0, 255)) argument 63 #define IN_FROM_REG(val) ((val) * 10) argument 73 #define FAN_FROM_REG(val, div) ((val) == 0 ? -1 : \ argument 80 #define DIV_FROM_REG(val) (1 << (val)) argument 260 char *buf) in in_show() 272 const char *buf, size_t count) in in_store() 278 long val; in in_store() local 294 char *buf) in fan_show() 306 char *buf) in fan_div_show() 316 const char *buf, size_t count) in fan_store() [all …]
|
D | w83781d.c | 149 #define IN_TO_REG(val) clamp_val(((val) + 8) / 16, 0, 255) argument 150 #define IN_FROM_REG(val) ((val) * 16) argument 162 FAN_FROM_REG(u8 val, int div) in FAN_FROM_REG() 171 #define TEMP_TO_REG(val) clamp_val((val) / 1000, -127, 128) argument 172 #define TEMP_FROM_REG(val) ((val) * 1000) argument 174 #define BEEP_MASK_FROM_REG(val, type) ((type) == as99127f ? \ argument 176 #define BEEP_MASK_TO_REG(val, type) ((type) == as99127f ? \ argument 179 #define DIV_FROM_REG(val) (1 << (val)) argument 182 DIV_TO_REG(long val, enum chips type) in DIV_TO_REG() 314 const char *buf, size_t count) in store_fan_min() [all …]
|
/linux-6.14.4/drivers/regulator/ |
D | virtual.c | 109 struct device_attribute *attr, char *buf) in show_min_uV() 116 const char *buf, size_t count) in set_min_uV() 119 long val; in set_min_uV() local 135 struct device_attribute *attr, char *buf) in show_max_uV() 142 const char *buf, size_t count) in set_max_uV() 145 long val; in set_max_uV() local 161 struct device_attribute *attr, char *buf) in show_min_uA() 168 const char *buf, size_t count) in set_min_uA() 171 long val; in set_min_uA() local 187 struct device_attribute *attr, char *buf) in show_max_uA() [all …]
|
/linux-6.14.4/drivers/gpu/drm/nouveau/ |
D | nouveau_hwmon.c | 42 struct device_attribute *a, char *buf) in nouveau_hwmon_show_temp1_auto_point1_pwm() 51 struct device_attribute *a, char *buf) in nouveau_hwmon_temp1_auto_point1_temp() 63 const char *buf, size_t count) in nouveau_hwmon_set_temp1_auto_point1_temp() 84 struct device_attribute *a, char *buf) in nouveau_hwmon_temp1_auto_point1_temp_hyst() 96 const char *buf, size_t count) in nouveau_hwmon_set_temp1_auto_point1_temp_hyst() 117 struct device_attribute *a, char *buf) in nouveau_hwmon_get_pwm1_max() 133 struct device_attribute *a, char *buf) in nouveau_hwmon_get_pwm1_min() 149 const char *buf, size_t count) in nouveau_hwmon_set_pwm1_min() 172 const char *buf, size_t count) in nouveau_hwmon_set_pwm1_max() 352 nouveau_chip_read(struct device *dev, u32 attr, int channel, long *val) in nouveau_chip_read() [all …]
|
/linux-6.14.4/drivers/power/supply/ |
D | max77693_charger.c | 32 static int max77693_get_charger_state(struct regmap *regmap, int *val) in max77693_get_charger_state() 73 static int max77693_get_charge_type(struct regmap *regmap, int *val) in max77693_get_charge_type() 125 static int max77693_get_battery_health(struct regmap *regmap, int *val) in max77693_get_battery_health() 168 static int max77693_get_present(struct regmap *regmap, int *val) in max77693_get_present() 186 static int max77693_get_online(struct regmap *regmap, int *val) in max77693_get_online() 206 static int max77693_get_input_current_limit(struct regmap *regmap, int *val) in max77693_get_input_current_limit() 227 static int max77693_get_fast_charge_current(struct regmap *regmap, int *val) in max77693_get_fast_charge_current() 258 union power_supply_propval *val) in max77693_charger_get_property() 308 struct device_attribute *attr, const char *buf, size_t count, in device_attr_store() 312 unsigned long val; in device_attr_store() local [all …]
|
/linux-6.14.4/drivers/net/wireless/st/cw1200/ |
D | hwio.c | 31 void *buf, size_t buf_len, int buf_id) in __cw1200_reg_read() 52 const void *buf, size_t buf_len, int buf_id) in __cw1200_reg_write() 67 u16 addr, u32 *val) in __cw1200_reg_read_32() 76 u16 addr, u32 val) in __cw1200_reg_write_32() 83 u16 addr, u16 *val) in __cw1200_reg_read_16() 92 u16 addr, u16 val) in __cw1200_reg_write_16() 98 int cw1200_reg_read(struct cw1200_common *priv, u16 addr, void *buf, in cw1200_reg_read() 108 int cw1200_reg_write(struct cw1200_common *priv, u16 addr, const void *buf, in cw1200_reg_write() 118 int cw1200_data_read(struct cw1200_common *priv, void *buf, size_t buf_len) in cw1200_data_read() 144 int cw1200_data_write(struct cw1200_common *priv, const void *buf, in cw1200_data_write() [all …]
|
/linux-6.14.4/drivers/media/usb/dvb-usb-v2/ |
D | anysee.c | 95 static int anysee_read_reg(struct dvb_usb_device *d, u16 reg, u8 *val) in anysee_read_reg() 97 u8 buf[] = {CMD_REG_READ, reg >> 8, reg & 0xff, 0x01}; in anysee_read_reg() local 104 static int anysee_write_reg(struct dvb_usb_device *d, u16 reg, u8 val) in anysee_write_reg() 106 u8 buf[] = {CMD_REG_WRITE, reg >> 8, reg & 0xff, 0x01, val}; in anysee_write_reg() local 112 static int anysee_wr_reg_mask(struct dvb_usb_device *d, u16 reg, u8 val, in anysee_wr_reg_mask() 133 static int anysee_rd_reg_mask(struct dvb_usb_device *d, u16 reg, u8 *val, in anysee_rd_reg_mask() 157 u8 buf[] = {CMD_GET_HW_INFO}; in anysee_get_hw_info() local 163 u8 buf[] = {CMD_STREAMING_CTRL, (u8)onoff, 0x00}; in anysee_streaming_ctrl() local 170 u8 buf[] = {CMD_LED_AND_IR_CTRL, 0x01, mode, interval}; in anysee_led_ctrl() local 178 u8 buf[] = {CMD_LED_AND_IR_CTRL, 0x02, onoff}; in anysee_ir_ctrl() local [all …]
|
/linux-6.14.4/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm_debugfs.c | 76 long *param, const char __user *buf, in parse_write_buffer_into_params() 187 static ssize_t dp_link_settings_read(struct file *f, char __user *buf, in dp_link_settings_read() 255 static ssize_t dp_link_settings_write(struct file *f, const char __user *buf, in dp_link_settings_write() 386 static ssize_t dp_mst_link_setting(struct file *f, const char __user *buf, in dp_mst_link_setting() 530 static ssize_t dp_phy_settings_read(struct file *f, char __user *buf, in dp_phy_settings_read() 607 static ssize_t dp_phy_settings_write(struct file *f, const char __user *buf, in dp_phy_settings_write() 750 static ssize_t dp_phy_test_pattern_debugfs_write(struct file *f, const char __user *buf, in dp_phy_test_pattern_debugfs_write() 1196 static ssize_t dp_dsc_passthrough_set(struct file *f, const char __user *buf, in dp_dsc_passthrough_set() 1325 static ssize_t dp_sdp_message_debugfs_write(struct file *f, const char __user *buf, in dp_sdp_message_debugfs_write() 1431 static ssize_t trigger_hotplug(struct file *f, const char __user *buf, in trigger_hotplug() [all …]
|
/linux-6.14.4/drivers/scsi/lpfc/ |
D | lpfc_attr.c | 119 char *buf) in lpfc_cmf_info_show() 304 char *buf) in lpfc_drvr_version_show() 319 char *buf) in lpfc_enable_fip_show() 333 char *buf) in lpfc_nvme_info_show() 705 char *buf) in lpfc_scsi_stat_show() 756 char *buf) in lpfc_bg_info_show() 776 char *buf) in lpfc_bg_guard_err_show() 788 char *buf) in lpfc_bg_apptag_err_show() 800 char *buf) in lpfc_bg_reftag_err_show() 820 char *buf) in lpfc_info_show() [all …]
|
/linux-6.14.4/drivers/media/usb/pvrusb2/ |
D | pvrusb2-sysfs.c | 71 char *buf) in show_name() 85 char *buf) in show_type() 106 char *buf) in show_min() 109 long val; in show_min() local 119 char *buf) in show_max() 122 long val; in show_max() local 132 char *buf) in show_def() 135 int val; in show_def() local 151 char *buf) in show_val_norm() 154 int val; in show_val_norm() local [all …]
|
/linux-6.14.4/net/bluetooth/ |
D | hci_debugfs.c | 179 u8 i, val[16]; in uuids_show() local 216 static int conn_info_min_age_set(void *data, u64 val) in conn_info_min_age_set() 232 static int conn_info_min_age_get(void *data, u64 *val) in conn_info_min_age_get() 246 static int conn_info_max_age_set(void *data, u64 val) in conn_info_max_age_set() 262 static int conn_info_max_age_get(void *data, u64 *val) in conn_info_max_age_get() 280 char buf[3]; in use_debug_keys_read() local 298 char buf[3]; in sc_only_mode_read() local 416 static int voice_setting_get(void *data, u64 *val) in voice_setting_get() 434 char buf[3]; in ssp_debug_mode_read() local 448 static int auto_accept_delay_set(void *data, u64 val) in auto_accept_delay_set() [all …]
|
/linux-6.14.4/sound/usb/ |
D | mixer_us16x08.c | 152 unsigned char *buf, int size) in snd_us16x08_recv_urb() 167 static int snd_us16x08_send_urb(struct snd_usb_audio *chip, char *buf, int size) in snd_us16x08_send_urb() 198 char buf[sizeof(route_msg)]; in snd_us16x08_route_put() local 199 int val, val_org, err; in snd_us16x08_route_put() local 265 char buf[sizeof(mix_msg_out)]; in snd_us16x08_master_put() local 266 int val, err; in snd_us16x08_master_put() local 302 char buf[sizeof(mix_msg_out)]; in snd_us16x08_bus_put() local 303 int val, err = 0; in snd_us16x08_bus_put() local 375 char buf[sizeof(mix_msg_in)]; in snd_us16x08_channel_put() local 376 int val, err; in snd_us16x08_channel_put() local [all …]
|
/linux-6.14.4/drivers/platform/chrome/wilco_ec/ |
D | sysfs.c | 26 u8 val; /* Either 0 or 1 */ member 41 u8 val; /* When setting, either 0 or 1 */ member 47 u8 val; /* When getting, set by EC to either 0 or 1 */ member 71 const char *buf, size_t count) in boot_on_ac_store() 77 u8 val; in boot_on_ac_store() local 103 static ssize_t get_info(struct device *dev, char *buf, enum get_ec_info_op op) in get_info() 126 char *buf) in version_show() 134 struct device_attribute *attr, char *buf) in build_revision_show() 142 struct device_attribute *attr, char *buf) in build_date_show() 150 struct device_attribute *attr, char *buf) in model_number_show() [all …]
|
/linux-6.14.4/drivers/hid/ |
D | hid-ntrig.c | 93 static int ntrig_version_string(unsigned char *raw, char *buf) in ntrig_version_string() 143 char buf[20]; in ntrig_report_version() local 170 char *buf) in show_phys_width() 182 char *buf) in show_phys_height() 194 char *buf) in show_log_width() 206 char *buf) in show_log_height() 218 char *buf) in show_min_width() 230 const char *buf, size_t count) in set_min_width() 235 unsigned long val; in set_min_width() local 253 char *buf) in show_min_height() [all …]
|
/linux-6.14.4/drivers/mfd/ |
D | intel-m10-bmc-core.c | 61 int m10bmc_sys_read(struct intel_m10bmc *m10bmc, unsigned int offset, unsigned int *val) in m10bmc_sys_read() 81 unsigned int msk, unsigned int val) in m10bmc_sys_update_bits() 101 struct device_attribute *attr, char *buf) in bmc_version_show() 104 unsigned int val; in bmc_version_show() local 116 struct device_attribute *attr, char *buf) in bmcfw_version_show() 119 unsigned int val; in bmcfw_version_show() local 131 struct device_attribute *attr, char *buf) in mac_address_show() 156 struct device_attribute *attr, char *buf) in mac_count_show()
|
/linux-6.14.4/drivers/scsi/ |
D | nsp32_io.h | 14 unsigned char val) in nsp32_write1() 27 unsigned short val) in nsp32_write2() 40 unsigned long val) in nsp32_write4() 55 unsigned char val) in nsp32_mmio_write1() 76 unsigned short val) in nsp32_mmio_write2() 97 unsigned long val) in nsp32_mmio_write4() 127 unsigned char val) in nsp32_index_write1() 142 unsigned short val) in nsp32_index_write2() 162 unsigned long val) in nsp32_index_write4() 190 unsigned char val) in nsp32_mmio_index_write1() [all …]
|