Lines Matching refs:wm8350
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 = 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
58 wm8350_set_bits(wm8350, WM8350_GPIO_LEVEL, 1 << offset); in wm8350_gpio_set()
60 wm8350_clear_bits(wm8350, WM8350_GPIO_LEVEL, 1 << offset); in wm8350_gpio_set()
67 struct wm8350 *wm8350 = wm8350_gpio->wm8350; in wm8350_gpio_direction_out() local
70 ret = wm8350_clear_bits(wm8350, WM8350_GPIO_CONFIGURATION_I_O, in wm8350_gpio_direction_out()
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
106 struct wm8350_platform_data *pdata = dev_get_platdata(wm8350->dev); in wm8350_gpio_probe()
115 wm8350_gpio->wm8350 = wm8350; in wm8350_gpio_probe()