Lines Matching refs:wm8350
27 struct wm8350 *wm8350; member
39 struct wm8350 *wm8350 = wm8350_gpio->wm8350; in wm8350_gpio_direction_in() local
41 return wm8350_set_bits(wm8350, WM8350_GPIO_CONFIGURATION_I_O, in wm8350_gpio_direction_in()
48 struct wm8350 *wm8350 = wm8350_gpio->wm8350; in wm8350_gpio_get() local
51 ret = wm8350_reg_read(wm8350, WM8350_GPIO_LEVEL); in wm8350_gpio_get()
64 struct wm8350 *wm8350 = wm8350_gpio->wm8350; in wm8350_gpio_set() local
67 wm8350_set_bits(wm8350, WM8350_GPIO_LEVEL, 1 << offset); in wm8350_gpio_set()
69 wm8350_clear_bits(wm8350, WM8350_GPIO_LEVEL, 1 << offset); in wm8350_gpio_set()
76 struct wm8350 *wm8350 = wm8350_gpio->wm8350; in wm8350_gpio_direction_out() local
79 ret = wm8350_clear_bits(wm8350, WM8350_GPIO_CONFIGURATION_I_O, in wm8350_gpio_direction_out()
93 struct wm8350 *wm8350 = wm8350_gpio->wm8350; in wm8350_gpio_to_irq() local
95 if (!wm8350->irq_base) in wm8350_gpio_to_irq()
98 return wm8350->irq_base + WM8350_IRQ_GPIO(offset); in wm8350_gpio_to_irq()
114 struct wm8350 *wm8350 = dev_get_drvdata(pdev->dev.parent); in wm8350_gpio_probe() local
115 struct wm8350_platform_data *pdata = dev_get_platdata(wm8350->dev); in wm8350_gpio_probe()
124 wm8350_gpio->wm8350 = wm8350; in wm8350_gpio_probe()