/linux/drivers/power/supply/ |
A D | wm8350_power.c | 20 static int wm8350_read_battery_uvolts(struct wm8350 *wm8350) in wm8350_read_battery_uvolts() argument 26 static int wm8350_read_line_uvolts(struct wm8350 *wm8350) in wm8350_read_line_uvolts() argument 32 static int wm8350_read_usb_uvolts(struct wm8350 *wm8350) in wm8350_read_usb_uvolts() argument 50 static int wm8350_get_supplies(struct wm8350 *wm8350) in wm8350_get_supplies() argument 86 static int wm8350_charger_config(struct wm8350 *wm8350, in wm8350_charger_config() argument 136 static int wm8350_batt_status(struct wm8350 *wm8350) in wm8350_batt_status() argument 159 struct wm8350 *wm8350 = dev_get_drvdata(dev); in charger_state_show() local 186 struct wm8350 *wm8350 = data; in wm8350_charger_handler() local 451 static void free_charger_irq(struct wm8350 *wm8350) in free_charger_irq() argument 456 wm8350_free_irq(wm8350, WM8350_IRQ_CHG_TO, wm8350); in free_charger_irq() [all …]
|
/linux/drivers/mfd/ |
A D | wm8350-core.c | 63 int wm8350_clear_bits(struct wm8350 *wm8350, u16 reg, u16 mask) in wm8350_clear_bits() argument 69 int wm8350_set_bits(struct wm8350 *wm8350, u16 reg, u16 mask) in wm8350_set_bits() argument 75 u16 wm8350_reg_read(struct wm8350 *wm8350, int reg) in wm8350_reg_read() argument 88 int wm8350_reg_write(struct wm8350 *wm8350, int reg, u16 val) in wm8350_reg_write() argument 100 int wm8350_block_read(struct wm8350 *wm8350, int start_reg, int regs, in wm8350_block_read() argument 137 int wm8350_reg_lock(struct wm8350 *wm8350) in wm8350_reg_lock() argument 168 int wm8350_reg_unlock(struct wm8350 *wm8350) in wm8350_reg_unlock() argument 243 struct wm8350 *wm8350 = irq_data; in wm8350_auxadc_irq() local 254 static void wm8350_client_dev_register(struct wm8350 *wm8350, in wm8350_client_dev_register() argument 276 int wm8350_device_init(struct wm8350 *wm8350, int irq, in wm8350_device_init() argument [all …]
|
A D | wm8350-gpio.c | 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() 31 wm8350_reg_lock(wm8350); in gpio_set_dir() 35 static int wm8350_gpio_set_debounce(struct wm8350 *wm8350, int gpio, int db) in wm8350_gpio_set_debounce() argument 45 static int gpio_set_func(struct wm8350 *wm8350, int gpio, int func) in gpio_set_func() argument 49 wm8350_reg_unlock(wm8350); in gpio_set_func() 138 static int gpio_set_pull_up(struct wm8350 *wm8350, int gpio, int up) in gpio_set_pull_up() argument 150 static int gpio_set_pull_down(struct wm8350 *wm8350, int gpio, int down) in gpio_set_pull_down() argument 162 static int gpio_set_polarity(struct wm8350 *wm8350, int gpio, int pol) in gpio_set_polarity() argument 174 static int gpio_set_invert(struct wm8350 *wm8350, int gpio, int invert) in gpio_set_invert() argument [all …]
|
A D | wm8350-irq.c | 361 static inline struct wm8350_irq_data *irq_to_wm8350_irq(struct wm8350 *wm8350, in irq_to_wm8350_irq() argument 378 struct wm8350 *wm8350 = irq_data; in wm8350_irq() local 416 struct wm8350 *wm8350 = irq_data_get_irq_chip_data(data); in wm8350_irq_lock() local 423 struct wm8350 *wm8350 = irq_data_get_irq_chip_data(data); in wm8350_irq_sync_unlock() local 439 struct wm8350 *wm8350 = irq_data_get_irq_chip_data(data); in wm8350_irq_enable() local 448 struct wm8350 *wm8350 = irq_data_get_irq_chip_data(data); in wm8350_irq_disable() local 463 int wm8350_irq_init(struct wm8350 *wm8350, int irq, in wm8350_irq_init() argument 495 wm8350->irq_base = in wm8350_irq_init() 499 wm8350->irq_base); in wm8350_irq_init() 538 int wm8350_irq_exit(struct wm8350 *wm8350) in wm8350_irq_exit() argument [all …]
|
A D | wm8350-i2c.c | 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->regmap); in wm8350_i2c_probe() 38 i2c_set_clientdata(i2c, wm8350); in wm8350_i2c_probe() 39 wm8350->dev = &i2c->dev; in wm8350_i2c_probe() 41 return wm8350_device_init(wm8350, i2c->irq, pdata); in wm8350_i2c_probe()
|
A D | wm8350-regmap.c | 288 struct wm8350 *wm8350 = dev_get_drvdata(dev); in wm8350_writeable() local 290 if (!wm8350->unlocked) { in wm8350_writeable()
|
A D | Makefile | 70 wm8350-objs := wm8350-core.o wm8350-regmap.o wm8350-gpio.o 71 wm8350-objs += wm8350-irq.o 72 obj-$(CONFIG_MFD_WM8350) += wm8350.o 73 obj-$(CONFIG_MFD_WM8350_I2C) += wm8350-i2c.o
|
/linux/drivers/regulator/ |
A D | wm8350-regulator.c | 96 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); in wm8350_isink_enable() local 140 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); in wm8350_isink_disable() local 180 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); in wm8350_isink_is_enabled() local 196 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); in wm8350_isink_enable_time() local 265 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); in wm8350_dcdc_set_suspend_voltage() local 302 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); in wm8350_dcdc_set_suspend_enable() local 342 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); in wm8350_dcdc_set_suspend_disable() local 382 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); in wm8350_dcdc25_set_suspend_enable() local 407 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); in wm8350_dcdc25_set_suspend_disable() local 433 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); in wm8350_dcdc_set_suspend_mode() local [all …]
|
A D | Makefile | 170 obj-$(CONFIG_REGULATOR_WM8350) += wm8350-regulator.o
|
/linux/drivers/rtc/ |
A D | rtc-wm8350.c | 33 struct wm8350 *wm8350 = dev_get_drvdata(dev); in wm8350_rtc_readtime() local 92 struct wm8350 *wm8350 = dev_get_drvdata(dev); in wm8350_rtc_settime() local 141 struct wm8350 *wm8350 = dev_get_drvdata(dev); in wm8350_rtc_readalarm() local 235 struct wm8350 *wm8350 = dev_get_drvdata(dev); in wm8350_rtc_alarm_irq_enable() local 245 struct wm8350 *wm8350 = dev_get_drvdata(dev); in wm8350_rtc_setalarm() local 300 struct wm8350 *wm8350 = data; in wm8350_rtc_alarm_handler() local 319 struct wm8350 *wm8350 = data; in wm8350_rtc_update_handler() local 338 struct wm8350 *wm8350 = dev_get_drvdata(dev); in wm8350_rtc_suspend() local 356 struct wm8350 *wm8350 = dev_get_drvdata(dev); in wm8350_rtc_resume() local 371 struct wm8350 *wm8350 = platform_get_drvdata(pdev); in wm8350_rtc_probe() local [all …]
|
A D | Makefile | 179 obj-$(CONFIG_RTC_DRV_WM8350) += rtc-wm8350.o
|
/linux/sound/soc/codecs/ |
A D | wm8350.c | 60 struct wm8350 *wm8350; member 78 struct wm8350 *wm8350 = wm8350_data->wm8350; in wm8350_out1_ramp_step() local 143 struct wm8350 *wm8350 = wm8350_data->wm8350; in wm8350_out2_ramp_step() local 1027 struct wm8350 *wm8350 = priv->wm8350; in wm8350_set_fll() local 1079 struct wm8350 *wm8350 = priv->wm8350; in wm8350_set_bias_level() local 1242 struct wm8350 *wm8350 = priv->wm8350; in wm8350_hp_work() local 1275 struct wm8350 *wm8350 = priv->wm8350; in wm8350_hpl_jack_handler() local 1293 struct wm8350 *wm8350 = priv->wm8350; in wm8350_hpr_jack_handler() local 1323 struct wm8350 *wm8350 = priv->wm8350; in wm8350_hp_jack_detect() local 1367 struct wm8350 *wm8350 = priv->wm8350; in wm8350_mic_handler() local [all …]
|
/linux/drivers/gpio/ |
A D | gpio-wm8350.c | 23 struct wm8350 *wm8350; member 30 struct wm8350 *wm8350 = wm8350_gpio->wm8350; in wm8350_gpio_direction_in() local 39 struct wm8350 *wm8350 = wm8350_gpio->wm8350; in wm8350_gpio_get() local 42 ret = wm8350_reg_read(wm8350, WM8350_GPIO_LEVEL); in wm8350_gpio_get() 55 struct wm8350 *wm8350 = wm8350_gpio->wm8350; in wm8350_gpio_set() local 67 struct wm8350 *wm8350 = wm8350_gpio->wm8350; in wm8350_gpio_direction_out() local 84 struct wm8350 *wm8350 = wm8350_gpio->wm8350; in wm8350_gpio_to_irq() local 86 if (!wm8350->irq_base) in wm8350_gpio_to_irq() 89 return wm8350->irq_base + WM8350_IRQ_GPIO(offset); in wm8350_gpio_to_irq() 105 struct wm8350 *wm8350 = dev_get_drvdata(pdev->dev.parent); in wm8350_gpio_probe() local [all …]
|
A D | Makefile | 176 obj-$(CONFIG_GPIO_WM8350) += gpio-wm8350.o
|
/linux/drivers/watchdog/ |
A D | wm8350_wdt.c | 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() 57 wm8350_reg_lock(wm8350); in wm8350_wdt_set_timeout() 66 struct wm8350 *wm8350 = watchdog_get_drvdata(wdt_dev); in wm8350_wdt_start() local 71 wm8350_reg_unlock(wm8350); in wm8350_wdt_start() 78 wm8350_reg_lock(wm8350); in wm8350_wdt_start() 86 struct wm8350 *wm8350 = watchdog_get_drvdata(wdt_dev); in wm8350_wdt_stop() local 97 wm8350_reg_lock(wm8350); in wm8350_wdt_stop() 105 struct wm8350 *wm8350 = watchdog_get_drvdata(wdt_dev); in wm8350_wdt_ping() local 142 struct wm8350 *wm8350 = platform_get_drvdata(pdev); in wm8350_wdt_probe() local [all …]
|
/linux/include/linux/mfd/wm8350/ |
A D | core.h | 586 struct wm8350; 593 struct wm8350 { struct 629 int (*init)(struct wm8350 *wm8350); argument 639 int wm8350_device_init(struct wm8350 *wm8350, int irq, 646 int wm8350_set_bits(struct wm8350 *wm8350, u16 reg, u16 mask); 647 u16 wm8350_reg_read(struct wm8350 *wm8350, int reg); 648 int wm8350_reg_write(struct wm8350 *wm8350, int reg, u16 val); 649 int wm8350_reg_lock(struct wm8350 *wm8350); 650 int wm8350_reg_unlock(struct wm8350 *wm8350); 684 int wm8350_irq_init(struct wm8350 *wm8350, int irq, [all …]
|
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 *wm8350, int ldo, u16 start, u16 stop); 771 int wm8350_isink_set_flash(struct wm8350 *wm8350, int isink, u16 mode,
|
A D | comparator.h | 163 struct wm8350; 168 int wm8350_read_auxadc(struct wm8350 *wm8350, int channel, int scale,
|
A D | gpio.h | 342 struct wm8350; 344 int wm8350_gpio_config(struct wm8350 *wm8350, int gpio, int dir, int func,
|
/linux/drivers/hwmon/ |
A D | wm8350-hwmon.c | 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); 71 struct wm8350 *wm8350 = platform_get_drvdata(pdev); in wm8350_hwmon_probe() local 75 wm8350, in wm8350_hwmon_probe()
|
A D | Makefile | 203 obj-$(CONFIG_SENSORS_WM8350) += wm8350-hwmon.o
|
/linux/Documentation/hwmon/ |
A D | wm8350.rst | 1 Kernel driver wm8350-hwmon 8 Prefix: 'wm8350'
|
A D | index.rst | 212 wm8350
|
/linux/arch/arm/mach-s3c/ |
A D | mach-smdk6410.c | 467 static int __init smdk6410_wm8350_init(struct wm8350 *wm8350) in smdk6410_wm8350_init() argument 476 wm8350_register_regulator(wm8350, in smdk6410_wm8350_init()
|
/linux/drivers/leds/ |
A D | Makefile | 88 obj-$(CONFIG_LEDS_WM8350) += leds-wm8350.o
|