Lines Matching refs:wm831x_gpio
25 struct wm831x_gpio { struct
32 struct wm831x_gpio *wm831x_gpio = gpiochip_get_data(chip); in wm831x_gpio_direction_in() local
33 struct wm831x *wm831x = wm831x_gpio->wm831x; in wm831x_gpio_direction_in()
46 struct wm831x_gpio *wm831x_gpio = gpiochip_get_data(chip); in wm831x_gpio_get() local
47 struct wm831x *wm831x = wm831x_gpio->wm831x; in wm831x_gpio_get()
62 struct wm831x_gpio *wm831x_gpio = gpiochip_get_data(chip); in wm831x_gpio_set() local
63 struct wm831x *wm831x = wm831x_gpio->wm831x; in wm831x_gpio_set()
72 struct wm831x_gpio *wm831x_gpio = gpiochip_get_data(chip); in wm831x_gpio_direction_out() local
73 struct wm831x *wm831x = wm831x_gpio->wm831x; in wm831x_gpio_direction_out()
94 struct wm831x_gpio *wm831x_gpio = gpiochip_get_data(chip); in wm831x_gpio_to_irq() local
95 struct wm831x *wm831x = wm831x_gpio->wm831x; in wm831x_gpio_to_irq()
133 struct wm831x_gpio *wm831x_gpio = gpiochip_get_data(chip); in wm831x_set_config() local
134 struct wm831x *wm831x = wm831x_gpio->wm831x; in wm831x_set_config()
157 struct wm831x_gpio *wm831x_gpio = gpiochip_get_data(chip); in wm831x_gpio_dbg_show() local
158 struct wm831x *wm831x = wm831x_gpio->wm831x; in wm831x_gpio_dbg_show()
267 struct wm831x_gpio *wm831x_gpio; in wm831x_gpio_probe() local
271 wm831x_gpio = devm_kzalloc(&pdev->dev, sizeof(*wm831x_gpio), in wm831x_gpio_probe()
273 if (wm831x_gpio == NULL) in wm831x_gpio_probe()
276 wm831x_gpio->wm831x = wm831x; in wm831x_gpio_probe()
277 wm831x_gpio->gpio_chip = template_chip; in wm831x_gpio_probe()
278 wm831x_gpio->gpio_chip.ngpio = wm831x->num_gpio; in wm831x_gpio_probe()
279 wm831x_gpio->gpio_chip.parent = &pdev->dev; in wm831x_gpio_probe()
281 wm831x_gpio->gpio_chip.base = pdata->gpio_base; in wm831x_gpio_probe()
283 wm831x_gpio->gpio_chip.base = -1; in wm831x_gpio_probe()
285 return devm_gpiochip_add_data(&pdev->dev, &wm831x_gpio->gpio_chip, wm831x_gpio); in wm831x_gpio_probe()