Home
last modified time | relevance | path

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

/sound/soc/
Dsoc-ac97.c39 struct gpio_chip gpio_chip; member
55 static inline struct snd_soc_component *gpio_to_component(struct gpio_chip *chip) in gpio_to_component()
62 static int snd_soc_ac97_gpio_request(struct gpio_chip *chip, unsigned offset) in snd_soc_ac97_gpio_request()
70 static int snd_soc_ac97_gpio_direction_in(struct gpio_chip *chip, in snd_soc_ac97_gpio_direction_in()
80 static int snd_soc_ac97_gpio_get(struct gpio_chip *chip, unsigned offset) in snd_soc_ac97_gpio_get()
94 static void snd_soc_ac97_gpio_set(struct gpio_chip *chip, unsigned offset, in snd_soc_ac97_gpio_set()
107 static int snd_soc_ac97_gpio_direction_out(struct gpio_chip *chip, in snd_soc_ac97_gpio_direction_out()
118 static const struct gpio_chip snd_soc_ac97_gpio_chip = {
140 gpio_priv->gpio_chip = snd_soc_ac97_gpio_chip; in snd_soc_ac97_init_gpio()
141 gpio_priv->gpio_chip.ngpio = AC97_NUM_GPIOS; in snd_soc_ac97_init_gpio()
[all …]
/sound/soc/codecs/
Dwm8903.c150 struct gpio_chip gpio_chip; member
1775 static int wm8903_gpio_request(struct gpio_chip *chip, unsigned offset) in wm8903_gpio_request()
1783 static int wm8903_gpio_direction_in(struct gpio_chip *chip, unsigned offset) in wm8903_gpio_direction_in()
1801 static int wm8903_gpio_get(struct gpio_chip *chip, unsigned offset) in wm8903_gpio_get()
1811 static int wm8903_gpio_direction_out(struct gpio_chip *chip, in wm8903_gpio_direction_out()
1830 static void wm8903_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in wm8903_gpio_set()
1839 static const struct gpio_chip wm8903_template_chip = {
1855 wm8903->gpio_chip = wm8903_template_chip; in wm8903_init_gpio()
1856 wm8903->gpio_chip.ngpio = WM8903_NUM_GPIO; in wm8903_init_gpio()
1857 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
3361 static int wm8962_gpio_request(struct gpio_chip *chip, unsigned offset) in wm8962_gpio_request()
3384 static void wm8962_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in wm8962_gpio_set()
3393 static int wm8962_gpio_direction_out(struct gpio_chip *chip, in wm8962_gpio_direction_out()
3411 static const struct gpio_chip wm8962_template_chip = {
3426 wm8962->gpio_chip = wm8962_template_chip; in wm8962_init_gpio()
3427 wm8962->gpio_chip.ngpio = WM8962_MAX_GPIO; in wm8962_init_gpio()
3428 wm8962->gpio_chip.parent = component->dev; in wm8962_init_gpio()
3431 wm8962->gpio_chip.base = pdata->gpio_base; in wm8962_init_gpio()
3433 wm8962->gpio_chip.base = -1; in wm8962_init_gpio()
[all …]
Drt5677.c4517 static void rt5677_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in rt5677_gpio_set()
4537 static int rt5677_gpio_direction_out(struct gpio_chip *chip, in rt5677_gpio_direction_out()
4562 static int rt5677_gpio_get(struct gpio_chip *chip, unsigned offset) in rt5677_gpio_get()
4574 static int rt5677_gpio_direction_in(struct gpio_chip *chip, unsigned offset) in rt5677_gpio_direction_in()
4628 static int rt5677_to_irq(struct gpio_chip *chip, unsigned offset) in rt5677_to_irq()
4659 static const struct gpio_chip rt5677_template_chip = {
4675 rt5677->gpio_chip = rt5677_template_chip; in rt5677_init_gpio()
4676 rt5677->gpio_chip.ngpio = RT5677_GPIO_NUM; in rt5677_init_gpio()
4677 rt5677->gpio_chip.parent = &i2c->dev; in rt5677_init_gpio()
4678 rt5677->gpio_chip.base = -1; in rt5677_init_gpio()
[all …]
Drt5677.h1846 struct gpio_chip gpio_chip; member
/sound/soc/ti/
Ddavinci-mcasp.c116 struct gpio_chip gpio_chip; member
1947 static int davinci_mcasp_gpio_request(struct gpio_chip *chip, unsigned offset) in davinci_mcasp_gpio_request()
1962 static void davinci_mcasp_gpio_free(struct gpio_chip *chip, unsigned offset) in davinci_mcasp_gpio_free()
1975 static int davinci_mcasp_gpio_direction_out(struct gpio_chip *chip, in davinci_mcasp_gpio_direction_out()
1998 static void davinci_mcasp_gpio_set(struct gpio_chip *chip, unsigned offset, in davinci_mcasp_gpio_set()
2009 static int davinci_mcasp_gpio_direction_in(struct gpio_chip *chip, in davinci_mcasp_gpio_direction_in()
2027 static int davinci_mcasp_gpio_get(struct gpio_chip *chip, unsigned offset) in davinci_mcasp_gpio_get()
2039 static int davinci_mcasp_gpio_get_direction(struct gpio_chip *chip, in davinci_mcasp_gpio_get_direction()
2052 static const struct gpio_chip davinci_mcasp_template_chip = {
2070 mcasp->gpio_chip = davinci_mcasp_template_chip; in davinci_mcasp_init_gpiochip()
[all …]