Home
last modified time | relevance | path

Searched refs:gpio_chip (Results 1 – 9 of 9) sorted by relevance

/sound/soc/
Dsoc-ac97.c48 struct gpio_chip gpio_chip; member
53 static inline struct snd_soc_component *gpio_to_component(struct gpio_chip *chip) in gpio_to_component()
60 static int snd_soc_ac97_gpio_request(struct gpio_chip *chip, unsigned offset) in snd_soc_ac97_gpio_request()
68 static int snd_soc_ac97_gpio_direction_in(struct gpio_chip *chip, in snd_soc_ac97_gpio_direction_in()
78 static int snd_soc_ac97_gpio_get(struct gpio_chip *chip, unsigned offset) in snd_soc_ac97_gpio_get()
91 static void snd_soc_ac97_gpio_set(struct gpio_chip *chip, unsigned offset, in snd_soc_ac97_gpio_set()
104 static int snd_soc_ac97_gpio_direction_out(struct gpio_chip *chip, in snd_soc_ac97_gpio_direction_out()
115 static const struct gpio_chip snd_soc_ac97_gpio_chip = {
137 gpio_priv->gpio_chip = snd_soc_ac97_gpio_chip; in snd_soc_ac97_init_gpio()
138 gpio_priv->gpio_chip.ngpio = AC97_NUM_GPIOS; in snd_soc_ac97_init_gpio()
[all …]
/sound/soc/codecs/
Dzl38060.c88 struct gpio_chip *gpio_chip; member
391 static void chip_gpio_set(struct gpio_chip *c, unsigned int offset, int val) in chip_gpio_set()
399 static int chip_gpio_get(struct gpio_chip *c, unsigned int offset) in chip_gpio_get()
413 static int chip_direction_input(struct gpio_chip *c, unsigned int offset) in chip_direction_input()
422 chip_direction_output(struct gpio_chip *c, unsigned int offset, int val) in chip_direction_output()
431 static const struct gpio_chip template_chip = {
588 priv->gpio_chip = devm_kmemdup(dev, &template_chip, in zl38_spi_probe()
590 if (!priv->gpio_chip) in zl38_spi_probe()
593 priv->gpio_chip->of_node = dev->of_node; in zl38_spi_probe()
595 err = devm_gpiochip_add_data(dev, priv->gpio_chip, priv->regmap); in zl38_spi_probe()
Dwm8903.c150 struct gpio_chip gpio_chip; member
1774 static int wm8903_gpio_request(struct gpio_chip *chip, unsigned offset) in wm8903_gpio_request()
1782 static int wm8903_gpio_direction_in(struct gpio_chip *chip, unsigned offset) in wm8903_gpio_direction_in()
1800 static int wm8903_gpio_get(struct gpio_chip *chip, unsigned offset) in wm8903_gpio_get()
1810 static int wm8903_gpio_direction_out(struct gpio_chip *chip, in wm8903_gpio_direction_out()
1829 static void wm8903_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in wm8903_gpio_set()
1838 static const struct gpio_chip wm8903_template_chip = {
1854 wm8903->gpio_chip = wm8903_template_chip; in wm8903_init_gpio()
1855 wm8903->gpio_chip.ngpio = WM8903_NUM_GPIO; in wm8903_init_gpio()
1856 wm8903->gpio_chip.parent = wm8903->dev; in wm8903_init_gpio()
[all …]
Dwm5100.c81 struct gpio_chip gpio_chip; member
2236 static void wm5100_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in wm5100_gpio_set()
2244 static int wm5100_gpio_direction_out(struct gpio_chip *chip, in wm5100_gpio_direction_out()
2261 static int wm5100_gpio_get(struct gpio_chip *chip, unsigned offset) in wm5100_gpio_get()
2274 static int wm5100_gpio_direction_in(struct gpio_chip *chip, unsigned offset) in wm5100_gpio_direction_in()
2284 static const struct gpio_chip wm5100_template_chip = {
2299 wm5100->gpio_chip = wm5100_template_chip; in wm5100_init_gpio()
2300 wm5100->gpio_chip.ngpio = 6; in wm5100_init_gpio()
2301 wm5100->gpio_chip.parent = &i2c->dev; in wm5100_init_gpio()
2304 wm5100->gpio_chip.base = wm5100->pdata.gpio_base; in wm5100_init_gpio()
[all …]
Dwm8996.c93 struct gpio_chip gpio_chip; member
2139 static void wm8996_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in wm8996_gpio_set()
2147 static int wm8996_gpio_direction_out(struct gpio_chip *chip, in wm8996_gpio_direction_out()
2160 static int wm8996_gpio_get(struct gpio_chip *chip, unsigned offset) in wm8996_gpio_get()
2173 static int wm8996_gpio_direction_in(struct gpio_chip *chip, unsigned offset) in wm8996_gpio_direction_in()
2183 static const struct gpio_chip wm8996_template_chip = {
2197 wm8996->gpio_chip = wm8996_template_chip; in wm8996_init_gpio()
2198 wm8996->gpio_chip.ngpio = 5; in wm8996_init_gpio()
2199 wm8996->gpio_chip.parent = wm8996->dev; in wm8996_init_gpio()
2202 wm8996->gpio_chip.base = wm8996->pdata.gpio_base; in wm8996_init_gpio()
[all …]
Dwm8962.c81 struct gpio_chip gpio_chip; member
3367 static int wm8962_gpio_request(struct gpio_chip *chip, unsigned offset) in wm8962_gpio_request()
3390 static void wm8962_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in wm8962_gpio_set()
3399 static int wm8962_gpio_direction_out(struct gpio_chip *chip, in wm8962_gpio_direction_out()
3417 static const struct gpio_chip wm8962_template_chip = {
3432 wm8962->gpio_chip = wm8962_template_chip; in wm8962_init_gpio()
3433 wm8962->gpio_chip.ngpio = WM8962_MAX_GPIO; in wm8962_init_gpio()
3434 wm8962->gpio_chip.parent = component->dev; in wm8962_init_gpio()
3437 wm8962->gpio_chip.base = pdata->gpio_base; in wm8962_init_gpio()
3439 wm8962->gpio_chip.base = -1; in wm8962_init_gpio()
[all …]
Drt5677.c4721 static void rt5677_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in rt5677_gpio_set()
4741 static int rt5677_gpio_direction_out(struct gpio_chip *chip, in rt5677_gpio_direction_out()
4766 static int rt5677_gpio_get(struct gpio_chip *chip, unsigned offset) in rt5677_gpio_get()
4778 static int rt5677_gpio_direction_in(struct gpio_chip *chip, unsigned offset) in rt5677_gpio_direction_in()
4832 static int rt5677_to_irq(struct gpio_chip *chip, unsigned offset) in rt5677_to_irq()
4863 static const struct gpio_chip rt5677_template_chip = {
4879 rt5677->gpio_chip = rt5677_template_chip; in rt5677_init_gpio()
4880 rt5677->gpio_chip.ngpio = RT5677_GPIO_NUM; in rt5677_init_gpio()
4881 rt5677->gpio_chip.parent = &i2c->dev; in rt5677_init_gpio()
4882 rt5677->gpio_chip.base = -1; in rt5677_init_gpio()
[all …]
Drt5677.h1849 struct gpio_chip gpio_chip; member
/sound/soc/ti/
Ddavinci-mcasp.c122 struct gpio_chip gpio_chip; member
2107 static int davinci_mcasp_gpio_request(struct gpio_chip *chip, unsigned offset) in davinci_mcasp_gpio_request()
2122 static void davinci_mcasp_gpio_free(struct gpio_chip *chip, unsigned offset) in davinci_mcasp_gpio_free()
2135 static int davinci_mcasp_gpio_direction_out(struct gpio_chip *chip, in davinci_mcasp_gpio_direction_out()
2158 static void davinci_mcasp_gpio_set(struct gpio_chip *chip, unsigned offset, in davinci_mcasp_gpio_set()
2169 static int davinci_mcasp_gpio_direction_in(struct gpio_chip *chip, in davinci_mcasp_gpio_direction_in()
2187 static int davinci_mcasp_gpio_get(struct gpio_chip *chip, unsigned offset) in davinci_mcasp_gpio_get()
2199 static int davinci_mcasp_gpio_get_direction(struct gpio_chip *chip, in davinci_mcasp_gpio_get_direction()
2212 static const struct gpio_chip davinci_mcasp_template_chip = {
2230 mcasp->gpio_chip = davinci_mcasp_template_chip; in davinci_mcasp_init_gpiochip()
[all …]