H A D | pmbus_core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 18 #include <linux/hwmon-sysfs.h> 39 u16 reg; /* register */ member 43 int data; /* Sensor data. member 74 #define pb_reg_to_index(page, reg, mas argument 118 u8 reg; global() member 144 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_clear_cache() local 152 pmbus_set_update(struct i2c_client * client,u8 reg,bool update) pmbus_set_update() argument 154 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_set_update() local 165 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_set_page() local 227 struct pmbus_data *data = i2c_get_clientdata(client); _pmbus_write_byte() local 239 pmbus_write_word_data(struct i2c_client * client,int page,u8 reg,u16 word) pmbus_write_word_data() argument 253 pmbus_write_virt_reg(struct i2c_client * client,int page,int reg,u16 word) pmbus_write_virt_reg() argument 278 _pmbus_write_word_data(struct i2c_client * client,int page,int reg,u16 word) _pmbus_write_word_data() argument 281 struct pmbus_data *data = i2c_get_clientdata(client); _pmbus_write_word_data() local 301 _pmbus_write_byte_data(struct i2c_client * client,int page,int reg,u8 value) _pmbus_write_byte_data() argument 303 struct pmbus_data *data = i2c_get_clientdata(client); _pmbus_write_byte_data() local 319 _pmbus_read_byte_data(struct i2c_client * client,int page,int reg) _pmbus_read_byte_data() argument 321 struct pmbus_data *data = i2c_get_clientdata(client); _pmbus_read_byte_data() local 358 pmbus_read_word_data(struct i2c_client * client,int page,int phase,u8 reg) pmbus_read_word_data() argument 370 pmbus_read_virt_reg(struct i2c_client * client,int page,int reg) pmbus_read_virt_reg() argument 393 _pmbus_read_word_data(struct i2c_client * client,int page,int phase,int reg) _pmbus_read_word_data() argument 395 struct pmbus_data *data = i2c_get_clientdata(client); _pmbus_read_word_data() local 412 __pmbus_read_word_data(struct i2c_client * client,int page,int reg) __pmbus_read_word_data() argument 417 pmbus_read_byte_data(struct i2c_client * client,int page,u8 reg) pmbus_read_byte_data() argument 429 pmbus_write_byte_data(struct i2c_client * client,int page,u8 reg,u8 value) pmbus_write_byte_data() argument 441 pmbus_update_byte_data(struct i2c_client * client,int page,u8 reg,u8 mask,u8 value) pmbus_update_byte_data() argument 460 pmbus_read_block_data(struct i2c_client * client,int page,u8 reg,char * data_buf) pmbus_read_block_data() argument 472 pmbus_find_sensor(struct pmbus_data * data,int page,int reg) pmbus_find_sensor() argument 473 pmbus_find_sensor(struct pmbus_data * data,int page,int reg) pmbus_find_sensor() argument 489 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_get_fan_rate() local 493 int reg; pmbus_get_fan_rate() local 541 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_clear_faults() local 551 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_check_status_cml() local 565 pmbus_check_register(struct i2c_client * client,int (* func)(struct i2c_client * client,int page,int reg),int page,int reg) pmbus_check_register() argument 569 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_check_register() local 584 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_check_status_register() local 598 pmbus_check_byte_register(struct i2c_client * client,int page,int reg) pmbus_check_byte_register() argument 604 pmbus_check_word_register(struct i2c_client * client,int page,int reg) pmbus_check_word_register() argument 611 pmbus_check_block_register(struct i2c_client * client,int page,int reg) pmbus_check_block_register() argument 614 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_check_block_register() local 628 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_get_driver_info() local 634 pmbus_get_status(struct i2c_client * client,int page,int reg) pmbus_get_status() argument 636 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_get_status() local 678 pmbus_reg2data_ieee754(struct pmbus_data * data,struct pmbus_sensor * sensor) pmbus_reg2data_ieee754() argument 723 pmbus_reg2data_linear(struct pmbus_data * data,struct pmbus_sensor * sensor) pmbus_reg2data_linear() argument 760 pmbus_reg2data_direct(struct pmbus_data * data,struct pmbus_sensor * sensor) pmbus_reg2data_direct() argument 804 pmbus_reg2data_vid(struct pmbus_data * data,struct pmbus_sensor * sensor) pmbus_reg2data_vid() argument 835 pmbus_reg2data(struct pmbus_data * data,struct pmbus_sensor * sensor) pmbus_reg2data() argument 863 pmbus_data2reg_ieee754(struct pmbus_data * data,struct pmbus_sensor * sensor,long val) pmbus_data2reg_ieee754() argument 927 pmbus_data2reg_linear(struct pmbus_data * data,struct pmbus_sensor * sensor,s64 val) pmbus_data2reg_linear() argument 992 pmbus_data2reg_direct(struct pmbus_data * data,struct pmbus_sensor * sensor,s64 val) pmbus_data2reg_direct() argument 1027 pmbus_data2reg_vid(struct pmbus_data * data,struct pmbus_sensor * sensor,s64 val) pmbus_data2reg_vid() argument 1035 pmbus_data2reg(struct pmbus_data * data,struct pmbus_sensor * sensor,s64 val) pmbus_data2reg() argument 1087 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_get_boolean() local 1092 u16 reg = pb_index_to_reg(index); pmbus_get_boolean() local 1161 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_show_sensor() local 1179 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_set_sensor() local 1208 pmbus_add_attribute(struct pmbus_data * data,struct attribute * attr) pmbus_add_attribute() argument 1258 pmbus_add_boolean(struct pmbus_data * data,const char * name,const char * type,int seq,struct pmbus_sensor * s1,struct pmbus_sensor * s2,u8 page,u16 reg,u16 mask) pmbus_add_boolean() argument 1262 pmbus_add_boolean(struct pmbus_data * data,const char * name,const char * type,int seq,struct pmbus_sensor * s1,struct pmbus_sensor * s2,u8 page,u16 reg,u16 mask) pmbus_add_boolean() argument 1348 pmbus_add_sensor(struct pmbus_data * data,const char * name,const char * type,int seq,int page,int phase,int reg,enum pmbus_sensor_classes class,bool update,bool readonly,bool convert) pmbus_add_sensor() argument 1351 pmbus_add_sensor(struct pmbus_data * data,const char * name,const char * type,int seq,int page,int phase,int reg,enum pmbus_sensor_classes class,bool update,bool readonly,bool convert) pmbus_add_sensor() argument 1398 pmbus_add_label(struct pmbus_data * data,const char * name,int seq,const char * lstring,int index,int phase) pmbus_add_label() argument 1441 u16 reg; /* Limit register */ global() member 1455 u16 reg; /* sensor register */ global() member 1476 pmbus_add_limit_attrs(struct i2c_client * client,struct pmbus_data * data,const struct pmbus_driver_info * info,const char * name,int index,int page,struct pmbus_sensor * base,const struct pmbus_sensor_attr * attr) pmbus_add_limit_attrs() argument 1515 pmbus_add_sensor_attrs_one(struct i2c_client * client,struct pmbus_data * data,const struct pmbus_driver_info * info,const char * name,int index,int page,int phase,const struct pmbus_sensor_attr * attr,bool paged) pmbus_add_sensor_attrs_one() argument 1587 pmbus_add_sensor_attrs(struct i2c_client * client,struct pmbus_data * data,const char * name,const struct pmbus_sensor_attr * attrs,int nattrs) pmbus_add_sensor_attrs() argument 2156 pmbus_add_fan_ctrl(struct i2c_client * client,struct pmbus_data * data,int index,int page,int id,u8 config) pmbus_add_fan_ctrl() argument 2190 pmbus_add_fan_attributes(struct i2c_client * client,struct pmbus_data * data) pmbus_add_fan_attributes() argument 2242 int reg; pmbus_add_fan_attributes() local 2266 int reg; global() member 2302 struct pmbus_samples_reg *reg = to_samples_reg(devattr); pmbus_show_samples() local 2303 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_show_samples() local 2321 struct pmbus_samples_reg *reg = to_samples_reg(devattr); pmbus_set_samples() local 2322 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_set_samples() local 2334 pmbus_add_samples_attr(struct pmbus_data * data,int page,struct pmbus_samples_attr * attr) pmbus_add_samples_attr() argument 2337 struct pmbus_samples_reg *reg; pmbus_add_samples_attr() local 2353 pmbus_add_samples_attributes(struct i2c_client * client,struct pmbus_data * data) pmbus_add_samples_attributes() argument 2378 pmbus_find_attributes(struct i2c_client * client,struct pmbus_data * data) pmbus_find_attributes() argument 2461 union i2c_smbus_data data; pmbus_read_coefficients() local 2525 pmbus_identify_common(struct i2c_client * client,struct pmbus_data * data,int page) pmbus_identify_common() argument 2610 pmbus_init_common(struct i2c_client * client,struct pmbus_data * data,struct pmbus_driver_info * info) pmbus_init_common() argument 2725 int reg; global() member 2783 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_is_enabled() local 2796 pmbus_notify(struct pmbus_data * data,int page,int reg,int flags) pmbus_notify() argument 2820 _pmbus_get_flags(struct pmbus_data * data,u8 page,unsigned int * flags,unsigned int * event,bool notify) _pmbus_get_flags() argument 2905 pmbus_get_flags(struct pmbus_data * data,u8 page,unsigned int * flags,unsigned int * event,bool notify) pmbus_get_flags() argument 2930 struct pmbus_data *data = i2c_get_clientdata(client); _pmbus_regulator_on_off() local 2957 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_regulator_get_error_flags() local 2967 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_regulator_get_status() local 3009 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_regulator_get_low_margin() local 3035 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_regulator_get_high_margin() local 3063 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_regulator_get_voltage() local 3082 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_regulator_set_voltage() local 3154 pmbus_regulator_register(struct pmbus_data * data) pmbus_regulator_register() argument 3186 pmbus_regulator_notify(struct pmbus_data * data,int page,int event) pmbus_regulator_notify() argument 3199 pmbus_regulator_register(struct pmbus_data * data) pmbus_regulator_register() argument 3204 pmbus_regulator_notify(struct pmbus_data * data,int page,int event) pmbus_regulator_notify() argument 3210 pmbus_write_smbalert_mask(struct i2c_client * client,u8 page,u8 reg,u8 val) pmbus_write_smbalert_mask() argument 3227 struct pmbus_data *data = pdata; pmbus_fault_handler() local 3245 pmbus_irq_setup(struct i2c_client * client,struct pmbus_data * data) pmbus_irq_setup() argument 3295 pmbus_debugfs_get(void * data,u64 * val) pmbus_debugfs_get() argument 3316 pmbus_debugfs_get_status(void * data,u64 * val) pmbus_debugfs_get_status() argument 3343 char data[I2C_SMBUS_BLOCK_MAX + 2] = { 0 }; pmbus_debugfs_mfr_read() local 3370 pmbus_remove_debugfs(void * data) pmbus_remove_debugfs() argument 3378 pmbus_init_debugfs(struct i2c_client * client,struct pmbus_data * data) pmbus_init_debugfs() argument 3581 pmbus_init_debugfs(struct i2c_client * client,struct pmbus_data * data) pmbus_init_debugfs() argument 3591 struct pmbus_data *data; pmbus_do_probe() local 3682 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_get_debugfs_dir() local 3690 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_lock_interruptible() local 3698 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_unlock() local [all...] |