/kernel/linux/linux-5.10/drivers/power/supply/ |
H A D | wm8350_power.c | 3 * Battery driver for wm8350 PMIC 16 #include <linux/mfd/wm8350/supply.h> 17 #include <linux/mfd/wm8350/core.h> 18 #include <linux/mfd/wm8350/comparator.h> 20 static int wm8350_read_battery_uvolts(struct wm8350 *wm8350) in wm8350_read_battery_uvolts() argument 22 return wm8350_read_auxadc(wm8350, WM8350_AUXADC_BATT, 0, 0) in wm8350_read_battery_uvolts() 26 static int wm8350_read_line_uvolts(struct wm8350 *wm8350) in wm8350_read_line_uvolts() argument 28 return wm8350_read_auxadc(wm8350, WM8350_AUXADC_LIN in wm8350_read_line_uvolts() 32 wm8350_read_usb_uvolts(struct wm8350 *wm8350) wm8350_read_usb_uvolts() argument 42 wm8350_charge_time_min(struct wm8350 *wm8350, int min) wm8350_charge_time_min() argument 50 wm8350_get_supplies(struct wm8350 *wm8350) wm8350_get_supplies() argument 86 wm8350_charger_config(struct wm8350 *wm8350, struct wm8350_charger_policy *policy) wm8350_charger_config() argument 136 wm8350_batt_status(struct wm8350 *wm8350) wm8350_batt_status() argument 159 struct wm8350 *wm8350 = dev_get_drvdata(dev); charger_state_show() local 186 struct wm8350 *wm8350 = data; wm8350_charger_handler() local 251 struct wm8350 *wm8350 = dev_get_drvdata(psy->dev.parent); wm8350_ac_get_prop() local 281 struct wm8350 *wm8350 = dev_get_drvdata(psy->dev.parent); wm8350_usb_get_prop() local 308 wm8350_bat_check_health(struct wm8350 *wm8350) wm8350_bat_check_health() argument 325 wm8350_bat_get_charge_type(struct wm8350 *wm8350) wm8350_bat_get_charge_type() argument 347 struct wm8350 *wm8350 = dev_get_drvdata(psy->dev.parent); wm8350_bat_get_property() local 411 wm8350_init_charger(struct wm8350 *wm8350) wm8350_init_charger() argument 519 free_charger_irq(struct wm8350 *wm8350) free_charger_irq() argument 538 struct wm8350 *wm8350 = platform_get_drvdata(pdev); wm8350_power_probe() local 584 struct wm8350 *wm8350 = platform_get_drvdata(pdev); wm8350_power_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/power/supply/ |
H A D | wm8350_power.c | 3 * Battery driver for wm8350 PMIC 16 #include <linux/mfd/wm8350/supply.h> 17 #include <linux/mfd/wm8350/core.h> 18 #include <linux/mfd/wm8350/comparator.h> 20 static int wm8350_read_battery_uvolts(struct wm8350 *wm8350) in wm8350_read_battery_uvolts() argument 22 return wm8350_read_auxadc(wm8350, WM8350_AUXADC_BATT, 0, 0) in wm8350_read_battery_uvolts() 26 static int wm8350_read_line_uvolts(struct wm8350 *wm8350) in wm8350_read_line_uvolts() argument 28 return wm8350_read_auxadc(wm8350, WM8350_AUXADC_LIN in wm8350_read_line_uvolts() 32 wm8350_read_usb_uvolts(struct wm8350 *wm8350) wm8350_read_usb_uvolts() argument 42 wm8350_charge_time_min(struct wm8350 *wm8350, int min) wm8350_charge_time_min() argument 50 wm8350_get_supplies(struct wm8350 *wm8350) wm8350_get_supplies() argument 86 wm8350_charger_config(struct wm8350 *wm8350, struct wm8350_charger_policy *policy) wm8350_charger_config() argument 136 wm8350_batt_status(struct wm8350 *wm8350) wm8350_batt_status() argument 159 struct wm8350 *wm8350 = dev_get_drvdata(dev); charger_state_show() local 186 struct wm8350 *wm8350 = data; wm8350_charger_handler() local 251 struct wm8350 *wm8350 = dev_get_drvdata(psy->dev.parent); wm8350_ac_get_prop() local 281 struct wm8350 *wm8350 = dev_get_drvdata(psy->dev.parent); wm8350_usb_get_prop() local 308 wm8350_bat_check_health(struct wm8350 *wm8350) wm8350_bat_check_health() argument 325 wm8350_bat_get_charge_type(struct wm8350 *wm8350) wm8350_bat_get_charge_type() argument 347 struct wm8350 *wm8350 = dev_get_drvdata(psy->dev.parent); wm8350_bat_get_property() local 411 wm8350_init_charger(struct wm8350 *wm8350) wm8350_init_charger() argument 519 free_charger_irq(struct wm8350 *wm8350) free_charger_irq() argument 538 struct wm8350 *wm8350 = platform_get_drvdata(pdev); wm8350_power_probe() local 584 struct wm8350 *wm8350 = platform_get_drvdata(pdev); wm8350_power_remove() local [all...] |
/kernel/linux/linux-5.10/drivers/mfd/ |
H A D | wm8350-gpio.c | 3 * wm8350-core.c -- Device access for Wolfson WM8350 14 #include <linux/mfd/wm8350/core.h> 15 #include <linux/mfd/wm8350/gpio.h> 16 #include <linux/mfd/wm8350/pmic.h> 18 static int gpio_set_dir(struct wm8350 *wm8350, int gpio, int dir) in gpio_set_dir() argument 22 wm8350_reg_unlock(wm8350); in gpio_set_dir() 24 ret = wm8350_clear_bits(wm8350, in gpio_set_dir() 28 ret = wm8350_set_bits(wm8350, in gpio_set_dir() 31 wm8350_reg_lock(wm8350); in gpio_set_dir() 35 wm8350_gpio_set_debounce(struct wm8350 *wm8350, int gpio, int db) wm8350_gpio_set_debounce() argument 45 gpio_set_func(struct wm8350 *wm8350, int gpio, int func) gpio_set_func() argument 138 gpio_set_pull_up(struct wm8350 *wm8350, int gpio, int up) gpio_set_pull_up() argument 150 gpio_set_pull_down(struct wm8350 *wm8350, int gpio, int down) gpio_set_pull_down() argument 162 gpio_set_polarity(struct wm8350 *wm8350, int gpio, int pol) gpio_set_polarity() argument 174 gpio_set_invert(struct wm8350 *wm8350, int gpio, int invert) gpio_set_invert() argument 183 wm8350_gpio_config(struct wm8350 *wm8350, int gpio, int dir, int func, int pol, int pull, int invert, int debounce) wm8350_gpio_config() argument [all...] |
H A D | wm8350-core.c | 3 * wm8350-core.c -- Device access for Wolfson WM8350 21 #include <linux/mfd/wm8350/core.h> 22 #include <linux/mfd/wm8350/audio.h> 23 #include <linux/mfd/wm8350/comparator.h> 24 #include <linux/mfd/wm8350/gpio.h> 25 #include <linux/mfd/wm8350/pmic.h> 26 #include <linux/mfd/wm8350/rtc.h> 27 #include <linux/mfd/wm8350/supply.h> 28 #include <linux/mfd/wm8350/wdt.h> 63 int wm8350_clear_bits(struct wm8350 *wm835 argument 69 wm8350_set_bits(struct wm8350 *wm8350, u16 reg, u16 mask) wm8350_set_bits() argument 75 wm8350_reg_read(struct wm8350 *wm8350, int reg) wm8350_reg_read() argument 88 wm8350_reg_write(struct wm8350 *wm8350, int reg, u16 val) wm8350_reg_write() argument 100 wm8350_block_read(struct wm8350 *wm8350, int start_reg, int regs, u16 *dest) wm8350_block_read() argument 114 wm8350_block_write(struct wm8350 *wm8350, int start_reg, int regs, u16 *src) wm8350_block_write() argument 137 wm8350_reg_lock(struct wm8350 *wm8350) wm8350_reg_lock() argument 168 wm8350_reg_unlock(struct wm8350 *wm8350) wm8350_reg_unlock() argument 188 wm8350_read_auxadc(struct wm8350 *wm8350, int channel, int scale, int vref) wm8350_read_auxadc() argument 243 struct wm8350 *wm8350 = irq_data; wm8350_auxadc_irq() local 254 wm8350_client_dev_register(struct wm8350 *wm8350, const char *name, struct platform_device **pdev) wm8350_client_dev_register() argument 276 wm8350_device_init(struct wm8350 *wm8350, int irq, struct wm8350_platform_data *pdata) wm8350_device_init() argument [all...] |
H A D | wm8350-irq.c | 3 * wm8350-irq.c -- IRQ support for Wolfson WM8350 17 #include <linux/mfd/wm8350/core.h> 18 #include <linux/mfd/wm8350/audio.h> 19 #include <linux/mfd/wm8350/comparator.h> 20 #include <linux/mfd/wm8350/gpio.h> 21 #include <linux/mfd/wm8350/pmic.h> 22 #include <linux/mfd/wm8350/rtc.h> 23 #include <linux/mfd/wm8350/supply.h> 24 #include <linux/mfd/wm8350/wdt.h> 361 static inline struct wm8350_irq_data *irq_to_wm8350_irq(struct wm8350 *wm835 argument 378 struct wm8350 *wm8350 = irq_data; wm8350_irq() local 416 struct wm8350 *wm8350 = irq_data_get_irq_chip_data(data); wm8350_irq_lock() local 423 struct wm8350 *wm8350 = irq_data_get_irq_chip_data(data); wm8350_irq_sync_unlock() local 439 struct wm8350 *wm8350 = irq_data_get_irq_chip_data(data); wm8350_irq_enable() local 448 struct wm8350 *wm8350 = irq_data_get_irq_chip_data(data); wm8350_irq_disable() local 463 wm8350_irq_init(struct wm8350 *wm8350, int irq, struct wm8350_platform_data *pdata) wm8350_irq_init() argument 538 wm8350_irq_exit(struct wm8350 *wm8350) wm8350_irq_exit() argument [all...] |
H A D | wm8350-i2c.c | 3 * wm8350-i2c.c -- Generic I2C driver for Wolfson WM8350 PMIC 15 #include <linux/mfd/wm8350/core.h> 22 struct wm8350 *wm8350; in wm8350_i2c_probe() local 26 wm8350 = devm_kzalloc(&i2c->dev, sizeof(struct wm8350), GFP_KERNEL); in wm8350_i2c_probe() 27 if (wm8350 == NULL) in wm8350_i2c_probe() 30 wm8350->regmap = devm_regmap_init_i2c(i2c, &wm8350_regmap); in wm8350_i2c_probe() 31 if (IS_ERR(wm8350->regmap)) { in wm8350_i2c_probe() 32 ret = PTR_ERR(wm8350 in wm8350_i2c_probe() [all...] |
/kernel/linux/linux-6.6/drivers/mfd/ |
H A D | wm8350-gpio.c | 3 * wm8350-core.c -- Device access for Wolfson WM8350 14 #include <linux/mfd/wm8350/core.h> 15 #include <linux/mfd/wm8350/gpio.h> 16 #include <linux/mfd/wm8350/pmic.h> 18 static int gpio_set_dir(struct wm8350 *wm8350, int gpio, int dir) in gpio_set_dir() argument 22 wm8350_reg_unlock(wm8350); in gpio_set_dir() 24 ret = wm8350_clear_bits(wm8350, in gpio_set_dir() 28 ret = wm8350_set_bits(wm8350, in gpio_set_dir() 31 wm8350_reg_lock(wm8350); in gpio_set_dir() 35 wm8350_gpio_set_debounce(struct wm8350 *wm8350, int gpio, int db) wm8350_gpio_set_debounce() argument 45 gpio_set_func(struct wm8350 *wm8350, int gpio, int func) gpio_set_func() argument 138 gpio_set_pull_up(struct wm8350 *wm8350, int gpio, int up) gpio_set_pull_up() argument 150 gpio_set_pull_down(struct wm8350 *wm8350, int gpio, int down) gpio_set_pull_down() argument 162 gpio_set_polarity(struct wm8350 *wm8350, int gpio, int pol) gpio_set_polarity() argument 174 gpio_set_invert(struct wm8350 *wm8350, int gpio, int invert) gpio_set_invert() argument 183 wm8350_gpio_config(struct wm8350 *wm8350, int gpio, int dir, int func, int pol, int pull, int invert, int debounce) wm8350_gpio_config() argument [all...] |
H A D | wm8350-core.c | 3 * wm8350-core.c -- Device access for Wolfson WM8350 21 #include <linux/mfd/wm8350/core.h> 22 #include <linux/mfd/wm8350/audio.h> 23 #include <linux/mfd/wm8350/comparator.h> 24 #include <linux/mfd/wm8350/gpio.h> 25 #include <linux/mfd/wm8350/pmic.h> 26 #include <linux/mfd/wm8350/rtc.h> 27 #include <linux/mfd/wm8350/supply.h> 28 #include <linux/mfd/wm8350/wdt.h> 63 int wm8350_clear_bits(struct wm8350 *wm835 argument 69 wm8350_set_bits(struct wm8350 *wm8350, u16 reg, u16 mask) wm8350_set_bits() argument 75 wm8350_reg_read(struct wm8350 *wm8350, int reg) wm8350_reg_read() argument 88 wm8350_reg_write(struct wm8350 *wm8350, int reg, u16 val) wm8350_reg_write() argument 100 wm8350_block_read(struct wm8350 *wm8350, int start_reg, int regs, u16 *dest) wm8350_block_read() argument 114 wm8350_block_write(struct wm8350 *wm8350, int start_reg, int regs, u16 *src) wm8350_block_write() argument 137 wm8350_reg_lock(struct wm8350 *wm8350) wm8350_reg_lock() argument 168 wm8350_reg_unlock(struct wm8350 *wm8350) wm8350_reg_unlock() argument 188 wm8350_read_auxadc(struct wm8350 *wm8350, int channel, int scale, int vref) wm8350_read_auxadc() argument 243 struct wm8350 *wm8350 = irq_data; wm8350_auxadc_irq() local 254 wm8350_client_dev_register(struct wm8350 *wm8350, const char *name, struct platform_device **pdev) wm8350_client_dev_register() argument 276 wm8350_device_init(struct wm8350 *wm8350, int irq, struct wm8350_platform_data *pdata) wm8350_device_init() argument [all...] |
H A D | wm8350-irq.c | 3 * wm8350-irq.c -- IRQ support for Wolfson WM8350 17 #include <linux/mfd/wm8350/core.h> 18 #include <linux/mfd/wm8350/audio.h> 19 #include <linux/mfd/wm8350/comparator.h> 20 #include <linux/mfd/wm8350/gpio.h> 21 #include <linux/mfd/wm8350/pmic.h> 22 #include <linux/mfd/wm8350/rtc.h> 23 #include <linux/mfd/wm8350/supply.h> 24 #include <linux/mfd/wm8350/wdt.h> 361 static inline struct wm8350_irq_data *irq_to_wm8350_irq(struct wm8350 *wm835 argument 378 struct wm8350 *wm8350 = irq_data; wm8350_irq() local 416 struct wm8350 *wm8350 = irq_data_get_irq_chip_data(data); wm8350_irq_lock() local 423 struct wm8350 *wm8350 = irq_data_get_irq_chip_data(data); wm8350_irq_sync_unlock() local 439 struct wm8350 *wm8350 = irq_data_get_irq_chip_data(data); wm8350_irq_enable() local 448 struct wm8350 *wm8350 = irq_data_get_irq_chip_data(data); wm8350_irq_disable() local 463 wm8350_irq_init(struct wm8350 *wm8350, int irq, struct wm8350_platform_data *pdata) wm8350_irq_init() argument 538 wm8350_irq_exit(struct wm8350 *wm8350) wm8350_irq_exit() argument [all...] |
H A D | wm8350-i2c.c | 3 * wm8350-i2c.c -- Generic I2C driver for Wolfson WM8350 PMIC 15 #include <linux/mfd/wm8350/core.h> 21 struct wm8350 *wm8350; in wm8350_i2c_probe() local 25 wm8350 = devm_kzalloc(&i2c->dev, sizeof(struct wm8350), GFP_KERNEL); in wm8350_i2c_probe() 26 if (wm8350 == NULL) in wm8350_i2c_probe() 29 wm8350->regmap = devm_regmap_init_i2c(i2c, &wm8350_regmap); in wm8350_i2c_probe() 30 if (IS_ERR(wm8350->regmap)) { in wm8350_i2c_probe() 31 ret = PTR_ERR(wm8350 in wm8350_i2c_probe() [all...] |
/kernel/linux/linux-5.10/drivers/regulator/ |
H A D | wm8350-regulator.c | 3 // wm8350.c -- Voltage and current regulation for the Wolfson WM8350 PMIC 16 #include <linux/mfd/wm8350/core.h> 17 #include <linux/mfd/wm8350/pmic.h> 96 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); in wm8350_isink_enable() local 101 switch (wm8350->pmic.isink_A_dcdc) { in wm8350_isink_enable() 104 wm8350_set_bits(wm8350, WM8350_POWER_MGMT_7, in wm8350_isink_enable() 106 wm8350_set_bits(wm8350, WM8350_CSA_FLASH_CONTROL, in wm8350_isink_enable() 108 wm8350_set_bits(wm8350, WM8350_DCDC_LDO_REQUESTED, in wm8350_isink_enable() 109 1 << (wm8350 in wm8350_isink_enable() 140 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); wm8350_isink_disable() local 180 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); wm8350_isink_is_enabled() local 196 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); wm8350_isink_enable_time() local 239 wm8350_isink_set_flash(struct wm8350 *wm8350, int isink, u16 mode, u16 trigger, u16 duration, u16 on_ramp, u16 off_ramp, u16 drive) wm8350_isink_set_flash() argument 265 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); wm8350_dcdc_set_suspend_voltage() local 302 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); wm8350_dcdc_set_suspend_enable() local 342 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); wm8350_dcdc_set_suspend_disable() local 382 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); wm8350_dcdc25_set_suspend_enable() local 407 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); wm8350_dcdc25_set_suspend_disable() local 433 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); wm8350_dcdc_set_suspend_mode() local 480 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); wm8350_ldo_set_suspend_voltage() local 515 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); wm8350_ldo_set_suspend_enable() local 544 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); wm8350_ldo_set_suspend_disable() local 571 wm8350_dcdc_set_slot(struct wm8350 *wm8350, int dcdc, u16 start, u16 stop, u16 fault) wm8350_dcdc_set_slot() argument 619 wm8350_ldo_set_slot(struct wm8350 *wm8350, int ldo, u16 start, u16 stop) wm8350_ldo_set_slot() argument 654 wm8350_dcdc25_set_mode(struct wm8350 *wm8350, int dcdc, u16 mode, u16 ilim, u16 ramp, u16 feedback) wm8350_dcdc25_set_mode() argument 691 force_continuous_enable(struct wm8350 *wm8350, int dcdc, int enable) force_continuous_enable() argument 723 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); wm8350_dcdc_set_mode() local 766 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); wm8350_dcdc_get_mode() local 1106 struct wm8350 *wm8350 = dev_get_drvdata(&pdev->dev); wm8350_regulator_probe() local 1164 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); wm8350_regulator_remove() local 1171 wm8350_register_regulator(struct wm8350 *wm8350, int reg, struct regulator_init_data *initdata) wm8350_register_regulator() argument 1230 wm8350_register_led(struct wm8350 *wm8350, int lednum, int dcdc, int isink, struct wm8350_led_platform_data *pdata) wm8350_register_led() argument [all...] |
/kernel/linux/linux-6.6/drivers/regulator/ |
H A D | wm8350-regulator.c | 3 // wm8350.c -- Voltage and current regulation for the Wolfson WM8350 PMIC 16 #include <linux/mfd/wm8350/core.h> 17 #include <linux/mfd/wm8350/pmic.h> 96 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); in wm8350_isink_enable() local 101 switch (wm8350->pmic.isink_A_dcdc) { in wm8350_isink_enable() 104 wm8350_set_bits(wm8350, WM8350_POWER_MGMT_7, in wm8350_isink_enable() 106 wm8350_set_bits(wm8350, WM8350_CSA_FLASH_CONTROL, in wm8350_isink_enable() 108 wm8350_set_bits(wm8350, WM8350_DCDC_LDO_REQUESTED, in wm8350_isink_enable() 109 1 << (wm8350 in wm8350_isink_enable() 140 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); wm8350_isink_disable() local 180 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); wm8350_isink_is_enabled() local 196 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); wm8350_isink_enable_time() local 239 wm8350_isink_set_flash(struct wm8350 *wm8350, int isink, u16 mode, u16 trigger, u16 duration, u16 on_ramp, u16 off_ramp, u16 drive) wm8350_isink_set_flash() argument 265 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); wm8350_dcdc_set_suspend_voltage() local 302 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); wm8350_dcdc_set_suspend_enable() local 342 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); wm8350_dcdc_set_suspend_disable() local 382 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); wm8350_dcdc25_set_suspend_enable() local 407 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); wm8350_dcdc25_set_suspend_disable() local 433 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); wm8350_dcdc_set_suspend_mode() local 480 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); wm8350_ldo_set_suspend_voltage() local 515 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); wm8350_ldo_set_suspend_enable() local 544 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); wm8350_ldo_set_suspend_disable() local 571 wm8350_dcdc_set_slot(struct wm8350 *wm8350, int dcdc, u16 start, u16 stop, u16 fault) wm8350_dcdc_set_slot() argument 619 wm8350_ldo_set_slot(struct wm8350 *wm8350, int ldo, u16 start, u16 stop) wm8350_ldo_set_slot() argument 654 wm8350_dcdc25_set_mode(struct wm8350 *wm8350, int dcdc, u16 mode, u16 ilim, u16 ramp, u16 feedback) wm8350_dcdc25_set_mode() argument 691 force_continuous_enable(struct wm8350 *wm8350, int dcdc, int enable) force_continuous_enable() argument 723 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); wm8350_dcdc_set_mode() local 766 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); wm8350_dcdc_get_mode() local 1106 struct wm8350 *wm8350 = dev_get_drvdata(&pdev->dev); wm8350_regulator_probe() local 1164 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); wm8350_regulator_remove() local 1171 wm8350_register_regulator(struct wm8350 *wm8350, int reg, struct regulator_init_data *initdata) wm8350_register_regulator() argument 1230 wm8350_register_led(struct wm8350 *wm8350, int lednum, int dcdc, int isink, struct wm8350_led_platform_data *pdata) wm8350_register_led() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpio/ |
H A D | gpio-wm8350.c | 19 #include <linux/mfd/wm8350/core.h> 20 #include <linux/mfd/wm8350/gpio.h> 23 struct wm8350 *wm8350; member 30 struct wm8350 *wm8350 = wm8350_gpio->wm8350; in wm8350_gpio_direction_in() local 32 return wm8350_set_bits(wm8350, WM8350_GPIO_CONFIGURATION_I_O, in wm8350_gpio_direction_in() 39 struct wm8350 *wm8350 in wm8350_gpio_get() local 55 struct wm8350 *wm8350 = wm8350_gpio->wm8350; wm8350_gpio_set() local 67 struct wm8350 *wm8350 = wm8350_gpio->wm8350; wm8350_gpio_direction_out() local 84 struct wm8350 *wm8350 = wm8350_gpio->wm8350; wm8350_gpio_to_irq() local 105 struct wm8350 *wm8350 = dev_get_drvdata(pdev->dev.parent); wm8350_gpio_probe() local [all...] |
/kernel/linux/linux-6.6/drivers/gpio/ |
H A D | gpio-wm8350.c | 18 #include <linux/mfd/wm8350/core.h> 19 #include <linux/mfd/wm8350/gpio.h> 22 struct wm8350 *wm8350; member 29 struct wm8350 *wm8350 = wm8350_gpio->wm8350; in wm8350_gpio_direction_in() local 31 return wm8350_set_bits(wm8350, WM8350_GPIO_CONFIGURATION_I_O, in wm8350_gpio_direction_in() 38 struct wm8350 *wm8350 in wm8350_gpio_get() local 54 struct wm8350 *wm8350 = wm8350_gpio->wm8350; wm8350_gpio_set() local 66 struct wm8350 *wm8350 = wm8350_gpio->wm8350; wm8350_gpio_direction_out() local 83 struct wm8350 *wm8350 = wm8350_gpio->wm8350; wm8350_gpio_to_irq() local 104 struct wm8350 *wm8350 = dev_get_drvdata(pdev->dev.parent); wm8350_gpio_probe() local [all...] |
/kernel/linux/linux-5.10/drivers/rtc/ |
H A D | rtc-wm8350.c | 19 #include <linux/mfd/wm8350/rtc.h> 20 #include <linux/mfd/wm8350/core.h> 33 struct wm8350 *wm8350 = dev_get_drvdata(dev); in wm8350_rtc_readtime() local 42 ret = wm8350_block_read(wm8350, WM8350_RTC_SECONDS_MINUTES, in wm8350_rtc_readtime() 46 ret = wm8350_block_read(wm8350, WM8350_RTC_SECONDS_MINUTES, in wm8350_rtc_readtime() 92 struct wm8350 *wm8350 = dev_get_drvdata(dev); in wm8350_rtc_settime() local 110 ret = wm8350_set_bits(wm8350, WM8350_RTC_TIME_CONTROL, WM8350_RTC_SET); in wm8350_rtc_settime() 116 rtc_ctrl = wm8350_reg_read(wm8350, WM8350_RTC_TIME_CONTRO in wm8350_rtc_settime() 141 struct wm8350 *wm8350 = dev_get_drvdata(dev); wm8350_rtc_readalarm() local 185 wm8350_rtc_stop_alarm(struct wm8350 *wm8350) wm8350_rtc_stop_alarm() argument 209 wm8350_rtc_start_alarm(struct wm8350 *wm8350) wm8350_rtc_start_alarm() argument 235 struct wm8350 *wm8350 = dev_get_drvdata(dev); wm8350_rtc_alarm_irq_enable() local 245 struct wm8350 *wm8350 = dev_get_drvdata(dev); wm8350_rtc_setalarm() local 300 struct wm8350 *wm8350 = data; wm8350_rtc_alarm_handler() local 319 struct wm8350 *wm8350 = data; wm8350_rtc_update_handler() local 338 struct wm8350 *wm8350 = dev_get_drvdata(dev); wm8350_rtc_suspend() local 356 struct wm8350 *wm8350 = dev_get_drvdata(dev); wm8350_rtc_resume() local 371 struct wm8350 *wm8350 = platform_get_drvdata(pdev); wm8350_rtc_probe() local 456 struct wm8350 *wm8350 = platform_get_drvdata(pdev); wm8350_rtc_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/rtc/ |
H A D | rtc-wm8350.c | 19 #include <linux/mfd/wm8350/rtc.h> 20 #include <linux/mfd/wm8350/core.h> 33 struct wm8350 *wm8350 = dev_get_drvdata(dev); in wm8350_rtc_readtime() local 42 ret = wm8350_block_read(wm8350, WM8350_RTC_SECONDS_MINUTES, in wm8350_rtc_readtime() 46 ret = wm8350_block_read(wm8350, WM8350_RTC_SECONDS_MINUTES, in wm8350_rtc_readtime() 92 struct wm8350 *wm8350 = dev_get_drvdata(dev); in wm8350_rtc_settime() local 110 ret = wm8350_set_bits(wm8350, WM8350_RTC_TIME_CONTROL, WM8350_RTC_SET); in wm8350_rtc_settime() 116 rtc_ctrl = wm8350_reg_read(wm8350, WM8350_RTC_TIME_CONTRO in wm8350_rtc_settime() 141 struct wm8350 *wm8350 = dev_get_drvdata(dev); wm8350_rtc_readalarm() local 185 wm8350_rtc_stop_alarm(struct wm8350 *wm8350) wm8350_rtc_stop_alarm() argument 209 wm8350_rtc_start_alarm(struct wm8350 *wm8350) wm8350_rtc_start_alarm() argument 235 struct wm8350 *wm8350 = dev_get_drvdata(dev); wm8350_rtc_alarm_irq_enable() local 245 struct wm8350 *wm8350 = dev_get_drvdata(dev); wm8350_rtc_setalarm() local 300 struct wm8350 *wm8350 = data; wm8350_rtc_alarm_handler() local 319 struct wm8350 *wm8350 = data; wm8350_rtc_update_handler() local 338 struct wm8350 *wm8350 = dev_get_drvdata(dev); wm8350_rtc_suspend() local 356 struct wm8350 *wm8350 = dev_get_drvdata(dev); wm8350_rtc_resume() local 371 struct wm8350 *wm8350 = platform_get_drvdata(pdev); wm8350_rtc_probe() local 451 struct wm8350 *wm8350 = platform_get_drvdata(pdev); wm8350_rtc_remove() local [all...] |
/kernel/linux/linux-5.10/drivers/watchdog/ |
H A D | wm8350_wdt.c | 3 * Watchdog driver for the wm8350 17 #include <linux/mfd/wm8350/core.h> 39 struct wm8350 *wm8350 = watchdog_get_drvdata(wdt_dev); in wm8350_wdt_set_timeout() local 50 wm8350_reg_unlock(wm8350); in wm8350_wdt_set_timeout() 52 reg = wm8350_reg_read(wm8350, WM8350_SYSTEM_CONTROL_2); in wm8350_wdt_set_timeout() 55 ret = wm8350_reg_write(wm8350, WM8350_SYSTEM_CONTROL_2, reg); in wm8350_wdt_set_timeout() 57 wm8350_reg_lock(wm8350); in wm8350_wdt_set_timeout() 66 struct wm8350 *wm8350 in wm8350_wdt_start() local 86 struct wm8350 *wm8350 = watchdog_get_drvdata(wdt_dev); wm8350_wdt_stop() local 105 struct wm8350 *wm8350 = watchdog_get_drvdata(wdt_dev); wm8350_wdt_ping() local 142 struct wm8350 *wm8350 = platform_get_drvdata(pdev); wm8350_wdt_probe() local [all...] |
/kernel/linux/linux-6.6/drivers/watchdog/ |
H A D | wm8350_wdt.c | 3 * Watchdog driver for the wm8350 17 #include <linux/mfd/wm8350/core.h> 39 struct wm8350 *wm8350 = watchdog_get_drvdata(wdt_dev); in wm8350_wdt_set_timeout() local 50 wm8350_reg_unlock(wm8350); in wm8350_wdt_set_timeout() 52 reg = wm8350_reg_read(wm8350, WM8350_SYSTEM_CONTROL_2); in wm8350_wdt_set_timeout() 55 ret = wm8350_reg_write(wm8350, WM8350_SYSTEM_CONTROL_2, reg); in wm8350_wdt_set_timeout() 57 wm8350_reg_lock(wm8350); in wm8350_wdt_set_timeout() 66 struct wm8350 *wm8350 in wm8350_wdt_start() local 86 struct wm8350 *wm8350 = watchdog_get_drvdata(wdt_dev); wm8350_wdt_stop() local 105 struct wm8350 *wm8350 = watchdog_get_drvdata(wdt_dev); wm8350_wdt_ping() local 142 struct wm8350 *wm8350 = platform_get_drvdata(pdev); wm8350_wdt_probe() local [all...] |
/kernel/linux/linux-5.10/sound/soc/codecs/ |
H A D | wm8350.c | 3 * wm8350.c -- WM8350 ALSA SoC audio driver 17 #include <linux/mfd/wm8350/audio.h> 18 #include <linux/mfd/wm8350/core.h> 28 #include "wm8350.h" 60 struct wm8350 *wm8350; member 78 struct wm8350 *wm8350 = wm8350_data->wm8350; in wm8350_out1_ramp_step() local 83 reg = wm8350_reg_read(wm8350, WM8350_LOUT1_VOLUM in wm8350_out1_ramp_step() 143 struct wm8350 *wm8350 = wm8350_data->wm8350; wm8350_out2_ramp_step() local 755 struct wm8350 *wm8350 = wm8350_data->wm8350; wm8350_set_dai_sysclk() local 909 struct wm8350 *wm8350 = wm8350_data->wm8350; wm8350_pcm_hw_params() local 1026 struct wm8350 *wm8350 = priv->wm8350; wm8350_set_fll() local 1078 struct wm8350 *wm8350 = priv->wm8350; wm8350_set_bias_level() local 1241 struct wm8350 *wm8350 = priv->wm8350; wm8350_hp_work() local 1274 struct wm8350 *wm8350 = priv->wm8350; wm8350_hpl_jack_handler() local 1292 struct wm8350 *wm8350 = priv->wm8350; wm8350_hpr_jack_handler() local 1322 struct wm8350 *wm8350 = priv->wm8350; wm8350_hp_jack_detect() local 1366 struct wm8350 *wm8350 = priv->wm8350; wm8350_mic_handler() local 1402 struct wm8350 *wm8350 = priv->wm8350; wm8350_mic_jack_detect() local 1458 struct wm8350 *wm8350 = dev_get_platdata(component->dev); wm8350_component_probe() local 1576 struct wm8350 *wm8350 = dev_get_platdata(component->dev); wm8350_component_remove() local [all...] |
/kernel/linux/linux-6.6/sound/soc/codecs/ |
H A D | wm8350.c | 3 * wm8350.c -- WM8350 ALSA SoC audio driver 17 #include <linux/mfd/wm8350/audio.h> 18 #include <linux/mfd/wm8350/core.h> 28 #include "wm8350.h" 60 struct wm8350 *wm8350; member 78 struct wm8350 *wm8350 = wm8350_data->wm8350; in wm8350_out1_ramp_step() local 83 reg = wm8350_reg_read(wm8350, WM8350_LOUT1_VOLUM in wm8350_out1_ramp_step() 143 struct wm8350 *wm8350 = wm8350_data->wm8350; wm8350_out2_ramp_step() local 756 struct wm8350 *wm8350 = wm8350_data->wm8350; wm8350_set_dai_sysclk() local 910 struct wm8350 *wm8350 = wm8350_data->wm8350; wm8350_pcm_hw_params() local 1027 struct wm8350 *wm8350 = priv->wm8350; wm8350_set_fll() local 1079 struct wm8350 *wm8350 = priv->wm8350; wm8350_set_bias_level() local 1242 struct wm8350 *wm8350 = priv->wm8350; wm8350_hp_work() local 1275 struct wm8350 *wm8350 = priv->wm8350; wm8350_hpl_jack_handler() local 1293 struct wm8350 *wm8350 = priv->wm8350; wm8350_hpr_jack_handler() local 1323 struct wm8350 *wm8350 = priv->wm8350; wm8350_hp_jack_detect() local 1367 struct wm8350 *wm8350 = priv->wm8350; wm8350_mic_handler() local 1403 struct wm8350 *wm8350 = priv->wm8350; wm8350_mic_jack_detect() local 1459 struct wm8350 *wm8350 = dev_get_platdata(component->dev); wm8350_component_probe() local 1577 struct wm8350 *wm8350 = dev_get_platdata(component->dev); wm8350_component_remove() local [all...] |
/kernel/linux/linux-5.10/include/linux/mfd/wm8350/ |
H A D | core.h | 17 #include <linux/mfd/wm8350/audio.h> 18 #include <linux/mfd/wm8350/gpio.h> 19 #include <linux/mfd/wm8350/pmic.h> 20 #include <linux/mfd/wm8350/rtc.h> 21 #include <linux/mfd/wm8350/supply.h> 22 #include <linux/mfd/wm8350/wdt.h> 574 /* wm8350 chip revisions */ 586 struct wm8350; 593 struct wm8350 { struct 629 int (*init)(struct wm8350 *wm835 657 wm8350_register_irq(struct wm8350 *wm8350, int irq, irq_handler_t handler, unsigned long flags, const char *name, void *data) wm8350_register_irq() argument 669 wm8350_free_irq(struct wm8350 *wm8350, int irq, void *data) wm8350_free_irq() argument 674 wm8350_mask_irq(struct wm8350 *wm8350, int irq) wm8350_mask_irq() argument 679 wm8350_unmask_irq(struct wm8350 *wm8350, int irq) wm8350_unmask_irq() argument [all...] |
H A D | pmic.h | 698 struct wm8350; 750 int wm8350_register_regulator(struct wm8350 *wm8350, int reg, 752 int wm8350_register_led(struct wm8350 *wm8350, int lednum, int dcdc, int isink, 758 int wm8350_dcdc_set_slot(struct wm8350 *wm8350, int dcdc, u16 start, 760 int wm8350_dcdc25_set_mode(struct wm8350 *wm8350, int dcdc, u16 mode, 766 int wm8350_ldo_set_slot(struct wm8350 *wm835 [all...] |
/kernel/linux/linux-6.6/include/linux/mfd/wm8350/ |
H A D | core.h | 17 #include <linux/mfd/wm8350/audio.h> 18 #include <linux/mfd/wm8350/gpio.h> 19 #include <linux/mfd/wm8350/pmic.h> 20 #include <linux/mfd/wm8350/rtc.h> 21 #include <linux/mfd/wm8350/supply.h> 22 #include <linux/mfd/wm8350/wdt.h> 574 /* wm8350 chip revisions */ 586 struct wm8350; 593 struct wm8350 { struct 629 int (*init)(struct wm8350 *wm835 657 wm8350_register_irq(struct wm8350 *wm8350, int irq, irq_handler_t handler, unsigned long flags, const char *name, void *data) wm8350_register_irq() argument 669 wm8350_free_irq(struct wm8350 *wm8350, int irq, void *data) wm8350_free_irq() argument 674 wm8350_mask_irq(struct wm8350 *wm8350, int irq) wm8350_mask_irq() argument 679 wm8350_unmask_irq(struct wm8350 *wm8350, int irq) wm8350_unmask_irq() argument [all...] |
/kernel/linux/linux-5.10/drivers/hwmon/ |
H A D | wm8350-hwmon.c | 3 * drivers/hwmon/wm8350-hwmon.c - Wolfson Microelectronics WM8350 PMIC 16 #include <linux/mfd/wm8350/core.h> 17 #include <linux/mfd/wm8350/comparator.h> 28 struct wm8350 *wm8350 = dev_get_drvdata(dev); in show_voltage() local 32 val = wm8350_read_auxadc(wm8350, channel, 0, 0) * WM8350_AUX_COEFF; in show_voltage() 67 ATTRIBUTE_GROUPS(wm8350); variable 71 struct wm8350 *wm8350 = platform_get_drvdata(pdev); in wm8350_hwmon_probe() local 74 hwmon_dev = devm_hwmon_device_register_with_groups(&pdev->dev, "wm8350", in wm8350_hwmon_probe() [all...] |
/kernel/linux/linux-6.6/drivers/hwmon/ |
H A D | wm8350-hwmon.c | 3 * drivers/hwmon/wm8350-hwmon.c - Wolfson Microelectronics WM8350 PMIC 16 #include <linux/mfd/wm8350/core.h> 17 #include <linux/mfd/wm8350/comparator.h> 28 struct wm8350 *wm8350 = dev_get_drvdata(dev); in show_voltage() local 32 val = wm8350_read_auxadc(wm8350, channel, 0, 0) * WM8350_AUX_COEFF; in show_voltage() 67 ATTRIBUTE_GROUPS(wm8350); variable 71 struct wm8350 *wm8350 = platform_get_drvdata(pdev); in wm8350_hwmon_probe() local 74 hwmon_dev = devm_hwmon_device_register_with_groups(&pdev->dev, "wm8350", in wm8350_hwmon_probe() [all...] |