Lines Matching refs:wm8350
27 struct wm8350 *wm8350; member
34 struct wm8350 *wm8350 = wm8350_gpio->wm8350; in wm8350_gpio_direction_in() local
36 return wm8350_set_bits(wm8350, WM8350_GPIO_CONFIGURATION_I_O, in wm8350_gpio_direction_in()
43 struct wm8350 *wm8350 = wm8350_gpio->wm8350; in wm8350_gpio_get() local
46 ret = wm8350_reg_read(wm8350, WM8350_GPIO_LEVEL); in wm8350_gpio_get()
59 struct wm8350 *wm8350 = wm8350_gpio->wm8350; in wm8350_gpio_set() local
62 wm8350_set_bits(wm8350, WM8350_GPIO_LEVEL, 1 << offset); in wm8350_gpio_set()
64 wm8350_clear_bits(wm8350, WM8350_GPIO_LEVEL, 1 << offset); in wm8350_gpio_set()
71 struct wm8350 *wm8350 = wm8350_gpio->wm8350; in wm8350_gpio_direction_out() local
74 ret = wm8350_clear_bits(wm8350, WM8350_GPIO_CONFIGURATION_I_O, in wm8350_gpio_direction_out()
88 struct wm8350 *wm8350 = wm8350_gpio->wm8350; in wm8350_gpio_to_irq() local
90 if (!wm8350->irq_base) in wm8350_gpio_to_irq()
93 return wm8350->irq_base + WM8350_IRQ_GPIO(offset); in wm8350_gpio_to_irq()
109 struct wm8350 *wm8350 = dev_get_drvdata(pdev->dev.parent); in wm8350_gpio_probe() local
110 struct wm8350_platform_data *pdata = dev_get_platdata(wm8350->dev); in wm8350_gpio_probe()
119 wm8350_gpio->wm8350 = wm8350; in wm8350_gpio_probe()