| H A D | ltc4282.c | 157 struct ltc4282_state *st = container_of(hw, struct ltc4282_state, in ltc4282_set_rate() local 164 return regmap_update_bits(st->map, LTC4282_CLK_DIV, LTC4282_CLKOUT_MASK, in ltc4282_set_rate() 190 struct ltc4282_state *st = container_of(hw, struct ltc4282_state, in ltc4282_recalc_rate() local 195 ret = regmap_read(st->map, LTC4282_CLK_DIV, &clkdiv); in ltc4282_recalc_rate() 210 struct ltc4282_state *st = container_of(clk_hw, struct ltc4282_state, in ltc4282_disable() local 213 regmap_clear_bits(st->map, LTC4282_CLK_DIV, LTC4282_CLKOUT_MASK); in ltc4282_disable() 216 static int ltc4282_read_voltage_word(const struct ltc4282_state *st, u32 reg, in ltc4282_read_voltage_word() argument 222 ret = regmap_bulk_read(st->map, reg, &in, sizeof(in)); in ltc4282_read_voltage_word() 234 static int ltc4282_read_voltage_byte_cached(const struct ltc4282_state *st, in ltc4282_read_voltage_byte_cached() argument 244 ret = regmap_read(st in ltc4282_read_voltage_byte_cached() 253 ltc4282_read_voltage_byte(const struct ltc4282_state * st,u32 reg,u32 fs,long * val) ltc4282_read_voltage_byte() argument 259 __ltc4282_read_alarm(struct ltc4282_state * st,u32 reg,u32 mask,long * val) __ltc4282_read_alarm() argument 278 ltc4282_read_alarm(struct ltc4282_state * st,u32 reg,u32 mask,long * val) ltc4282_read_alarm() argument 284 ltc4282_vdd_source_read_in(struct ltc4282_state * st,u32 channel,long * val) ltc4282_vdd_source_read_in() argument 293 ltc4282_vdd_source_read_hist(struct ltc4282_state * st,u32 reg,u32 channel,long * cached,long * val) ltc4282_vdd_source_read_hist() argument 311 ltc4282_vdd_source_read_lim(struct ltc4282_state * st,u32 reg,u32 channel,u32 * cached,long * val) ltc4282_vdd_source_read_lim() argument 321 ltc4282_vdd_source_read_alm(struct ltc4282_state * st,u32 mask,u32 channel,long * val) ltc4282_vdd_source_read_alm() argument 340 ltc4282_read_in(struct ltc4282_state * st,u32 attr,long * val,u32 channel) ltc4282_read_in() argument 421 ltc4282_read_current_word(const struct ltc4282_state * st,u32 reg,long * val) ltc4282_read_current_word() argument 440 ltc4282_read_current_byte(const struct ltc4282_state * st,u32 reg,long * val) ltc4282_read_current_byte() argument 455 ltc4282_read_curr(struct ltc4282_state * st,const u32 attr,long * val) ltc4282_read_curr() argument 485 ltc4282_read_power_word(const struct ltc4282_state * st,u32 reg,long * val) ltc4282_read_power_word() argument 515 ltc4282_read_power_byte(const struct ltc4282_state * st,u32 reg,long * val) ltc4282_read_power_byte() argument 533 ltc4282_read_energy(const struct ltc4282_state * st,s64 * val) ltc4282_read_energy() argument 567 ltc4282_read_power(struct ltc4282_state * st,const u32 attr,long * val) ltc4282_read_power() argument 595 struct ltc4282_state *st = dev_get_drvdata(dev); ltc4282_read() local 616 ltc4282_write_power_byte(const struct ltc4282_state * st,u32 reg,long val) ltc4282_write_power_byte() argument 632 ltc4282_write_power_word(const struct ltc4282_state * st,u32 reg,long val) ltc4282_write_power_word() argument 652 __ltc4282_in_write_history(const struct ltc4282_state * st,u32 reg,long lowest,long highest,u32 fs) __ltc4282_in_write_history() argument 674 ltc4282_in_write_history(struct ltc4282_state * st,u32 reg,long lowest,long highest,u32 fs) ltc4282_in_write_history() argument 680 ltc4282_power_reset_hist(struct ltc4282_state * st) ltc4282_power_reset_hist() argument 698 ltc4282_write_power(struct ltc4282_state * st,u32 attr,long val) ltc4282_write_power() argument 713 ltc4282_write_voltage_byte_cached(const struct ltc4282_state * st,u32 reg,u32 fs,long val,u32 * cache_raw) ltc4282_write_voltage_byte_cached() argument 730 ltc4282_write_voltage_byte(const struct ltc4282_state * st,u32 reg,u32 fs,long val) ltc4282_write_voltage_byte() argument 736 ltc4282_cache_history(struct ltc4282_state * st,u32 channel) ltc4282_cache_history() argument 764 ltc4282_cache_sync(struct ltc4282_state * st,u32 channel) ltc4282_cache_sync() argument 784 ltc4282_vdd_source_write_lim(struct ltc4282_state * st,u32 reg,int channel,u32 * cache,long val) ltc4282_vdd_source_write_lim() argument 798 ltc4282_vdd_source_reset_hist(struct ltc4282_state * st,int channel) ltc4282_vdd_source_reset_hist() argument 839 ltc4282_vdd_source_enable(struct ltc4282_state * st,int channel,long val) ltc4282_vdd_source_enable() argument 883 ltc4282_write_in(struct ltc4282_state * st,u32 attr,long val,int channel) ltc4282_write_in() argument 917 ltc4282_curr_reset_hist(struct ltc4282_state * st) ltc4282_curr_reset_hist() argument 931 ltc4282_write_curr(struct ltc4282_state * st,u32 attr,long val) ltc4282_write_curr() argument 951 ltc4282_energy_enable_set(struct ltc4282_state * st,long val) ltc4282_energy_enable_set() argument 971 struct ltc4282_state *st = dev_get_drvdata(dev); ltc4282_write() local 987 ltc4282_in_is_visible(const struct ltc4282_state * st,u32 attr) ltc4282_in_is_visible() argument 1104 ltc428_clk_provider_setup(struct ltc4282_state * st,struct device * dev) ltc428_clk_provider_setup() argument 1130 ltc428_clks_setup(struct ltc4282_state * st,struct device * dev) ltc428_clks_setup() argument 1170 ltc4282_get_defaults(struct ltc4282_state * st,u32 * vin_mode) ltc4282_get_defaults() argument 1216 ltc4282_set_max_limits(struct ltc4282_state * st) ltc4282_set_max_limits() argument 1250 ltc4282_gpio_setup(struct ltc4282_state * st,struct device * dev) ltc4282_gpio_setup() argument 1320 ltc4282_setup(struct ltc4282_state * st,struct device * dev) ltc4282_setup() argument 1580 struct ltc4282_state *st = arg; ltc4282_show_fault_log() local 1635 ltc4282_debugfs_init(struct ltc4282_state * st,struct i2c_client * i2c) ltc4282_debugfs_init() argument 1654 struct ltc4282_state *st; ltc4282_probe() local [all...] |