Lines Matching refs:pmbus_data
82 struct pmbus_data { struct
147 struct pmbus_data *data = i2c_get_clientdata(client); in pmbus_clear_cache()
157 struct pmbus_data *data = i2c_get_clientdata(client); in pmbus_set_update()
169 struct pmbus_data *data = i2c_get_clientdata(client); in pmbus_wait()
189 struct pmbus_data *data = i2c_get_clientdata(client); in pmbus_update_ts()
201 struct pmbus_data *data = i2c_get_clientdata(client); in pmbus_set_page()
263 struct pmbus_data *data = i2c_get_clientdata(client); in _pmbus_write_byte()
321 struct pmbus_data *data = i2c_get_clientdata(client); in _pmbus_write_word_data()
343 struct pmbus_data *data = i2c_get_clientdata(client); in _pmbus_write_byte_data()
361 struct pmbus_data *data = i2c_get_clientdata(client); in _pmbus_read_byte_data()
439 struct pmbus_data *data = i2c_get_clientdata(client); in _pmbus_read_word_data()
528 static struct pmbus_sensor *pmbus_find_sensor(struct pmbus_data *data, int page, in pmbus_find_sensor()
545 struct pmbus_data *data = i2c_get_clientdata(client); in pmbus_get_fan_rate()
597 struct pmbus_data *data = i2c_get_clientdata(client); in pmbus_clear_faults()
607 struct pmbus_data *data = i2c_get_clientdata(client); in pmbus_check_status_cml()
625 struct pmbus_data *data = i2c_get_clientdata(client); in pmbus_check_register()
640 struct pmbus_data *data = i2c_get_clientdata(client); in pmbus_check_status_register()
670 struct pmbus_data *data = i2c_get_clientdata(client); in pmbus_check_block_register()
684 struct pmbus_data *data = i2c_get_clientdata(client); in pmbus_get_driver_info()
692 struct pmbus_data *data = i2c_get_clientdata(client); in pmbus_get_status()
734 static long pmbus_reg2data_ieee754(struct pmbus_data *data, in pmbus_reg2data_ieee754()
779 static s64 pmbus_reg2data_linear(struct pmbus_data *data, in pmbus_reg2data_linear()
816 static s64 pmbus_reg2data_direct(struct pmbus_data *data, in pmbus_reg2data_direct()
860 static s64 pmbus_reg2data_vid(struct pmbus_data *data, in pmbus_reg2data_vid()
891 static s64 pmbus_reg2data(struct pmbus_data *data, struct pmbus_sensor *sensor) in pmbus_reg2data()
919 static u16 pmbus_data2reg_ieee754(struct pmbus_data *data, in pmbus_data2reg_ieee754()
983 static u16 pmbus_data2reg_linear(struct pmbus_data *data, in pmbus_data2reg_linear()
1048 static u16 pmbus_data2reg_direct(struct pmbus_data *data, in pmbus_data2reg_direct()
1083 static u16 pmbus_data2reg_vid(struct pmbus_data *data, in pmbus_data2reg_vid()
1091 static u16 pmbus_data2reg(struct pmbus_data *data, in pmbus_data2reg()
1143 struct pmbus_data *data = i2c_get_clientdata(client); in pmbus_get_boolean()
1217 struct pmbus_data *data = i2c_get_clientdata(client); in pmbus_show_sensor()
1235 struct pmbus_data *data = i2c_get_clientdata(client); in pmbus_set_sensor()
1264 static int pmbus_add_attribute(struct pmbus_data *data, struct attribute *attr) in pmbus_add_attribute()
1314 static int pmbus_add_boolean(struct pmbus_data *data, in pmbus_add_boolean()
1344 struct pmbus_data *pmbus_data; member
1352 struct pmbus_data *pmbus_data = tdata->pmbus_data; in pmbus_thermal_get_temp() local
1353 struct i2c_client *client = to_i2c_client(pmbus_data->dev); in pmbus_thermal_get_temp()
1354 struct device *dev = pmbus_data->hwmon_dev; in pmbus_thermal_get_temp()
1363 mutex_lock(&pmbus_data->update_lock); in pmbus_thermal_get_temp()
1368 *temp = (int)pmbus_reg2data(pmbus_data, sensor); in pmbus_thermal_get_temp()
1369 mutex_unlock(&pmbus_data->update_lock); in pmbus_thermal_get_temp()
1378 static int pmbus_thermal_add_sensor(struct pmbus_data *pmbus_data, in pmbus_thermal_add_sensor() argument
1381 struct device *dev = pmbus_data->dev; in pmbus_thermal_add_sensor()
1390 tdata->pmbus_data = pmbus_data; in pmbus_thermal_add_sensor()
1404 static struct pmbus_sensor *pmbus_add_sensor(struct pmbus_data *data, in pmbus_add_sensor()
1454 static int pmbus_add_label(struct pmbus_data *data, in pmbus_add_label()
1532 struct pmbus_data *data, in pmbus_add_limit_attrs()
1571 struct pmbus_data *data, in pmbus_add_sensor_attrs_one()
1643 struct pmbus_data *data, in pmbus_add_sensor_attrs()
2212 struct pmbus_data *data, int index, int page, int id, in pmbus_add_fan_ctrl()
2246 struct pmbus_data *data) in pmbus_add_fan_attributes()
2359 struct pmbus_data *data = i2c_get_clientdata(client); in pmbus_show_samples()
2378 struct pmbus_data *data = i2c_get_clientdata(client); in pmbus_set_samples()
2390 static int pmbus_add_samples_attr(struct pmbus_data *data, int page, in pmbus_add_samples_attr()
2409 struct pmbus_data *data) in pmbus_add_samples_attributes()
2434 struct pmbus_data *data) in pmbus_find_attributes()
2583 struct pmbus_data *data, int page) in pmbus_identify_common()
2668 static int pmbus_init_common(struct i2c_client *client, struct pmbus_data *data, in pmbus_init_common()
2853 struct pmbus_data *data = i2c_get_clientdata(client); in pmbus_is_enabled()
2866 static void pmbus_notify(struct pmbus_data *data, int page, int reg, int flags) in pmbus_notify()
2890 static int _pmbus_get_flags(struct pmbus_data *data, u8 page, unsigned int *flags, in _pmbus_get_flags()
2975 static int __maybe_unused pmbus_get_flags(struct pmbus_data *data, u8 page, unsigned int *flags, in pmbus_get_flags()
3000 struct pmbus_data *data = i2c_get_clientdata(client); in _pmbus_regulator_on_off()
3027 struct pmbus_data *data = i2c_get_clientdata(client); in pmbus_regulator_get_error_flags()
3037 struct pmbus_data *data = i2c_get_clientdata(client); in pmbus_regulator_get_status()
3079 struct pmbus_data *data = i2c_get_clientdata(client); in pmbus_regulator_get_low_margin()
3105 struct pmbus_data *data = i2c_get_clientdata(client); in pmbus_regulator_get_high_margin()
3133 struct pmbus_data *data = i2c_get_clientdata(client); in pmbus_regulator_get_voltage()
3152 struct pmbus_data *data = i2c_get_clientdata(client); in pmbus_regulator_set_voltage()
3224 static int pmbus_regulator_register(struct pmbus_data *data) in pmbus_regulator_register()
3256 static int pmbus_regulator_notify(struct pmbus_data *data, int page, int event) in pmbus_regulator_notify()
3269 static int pmbus_regulator_register(struct pmbus_data *data) in pmbus_regulator_register()
3274 static int pmbus_regulator_notify(struct pmbus_data *data, int page, int event) in pmbus_regulator_notify()
3287 struct pmbus_data *data = pdata; in pmbus_fault_handler()
3305 static int pmbus_irq_setup(struct i2c_client *client, struct pmbus_data *data) in pmbus_irq_setup()
3359 struct pmbus_data *pdata = i2c_get_clientdata(entry->client); in pmbus_debugfs_get()
3380 struct pmbus_data *pdata = i2c_get_clientdata(entry->client); in pmbus_debugfs_get_status()
3402 struct pmbus_data *pdata = i2c_get_clientdata(entry->client); in pmbus_debugfs_mfr_read()
3438 struct pmbus_data *data) in pmbus_init_debugfs()
3641 struct pmbus_data *data) in pmbus_init_debugfs()
3651 struct pmbus_data *data; in pmbus_do_probe()
3742 struct pmbus_data *data = i2c_get_clientdata(client); in pmbus_get_debugfs_dir()
3750 struct pmbus_data *data = i2c_get_clientdata(client); in pmbus_lock_interruptible()
3758 struct pmbus_data *data = i2c_get_clientdata(client); in pmbus_unlock()