Lines Matching +full:static +full:- +full:enable

1 // SPDX-License-Identifier: GPL-2.0
3 // mt8192-afe-gpio.c -- Mediatek 8192 afe gpio ctrl
12 #include "mt8192-afe-common.h"
13 #include "mt8192-afe-gpio.h"
15 static struct pinctrl *aud_pinctrl;
61 static struct audio_gpio_attr aud_gpios[MT8192_AFE_GPIO_GPIO_NUM] = {
102 static DEFINE_MUTEX(gpio_request_mutex);
104 static int mt8192_afe_gpio_select(struct device *dev, in mt8192_afe_gpio_select()
112 return -EINVAL; in mt8192_afe_gpio_select()
118 return -EIO; in mt8192_afe_gpio_select()
165 static int mt8192_afe_gpio_adda_dl(struct device *dev, bool enable) in mt8192_afe_gpio_adda_dl() argument
167 if (enable) { in mt8192_afe_gpio_adda_dl()
176 static int mt8192_afe_gpio_adda_ul(struct device *dev, bool enable) in mt8192_afe_gpio_adda_ul() argument
178 if (enable) { in mt8192_afe_gpio_adda_ul()
187 static int mt8192_afe_gpio_adda_ch34_dl(struct device *dev, bool enable) in mt8192_afe_gpio_adda_ch34_dl() argument
189 if (enable) { in mt8192_afe_gpio_adda_ch34_dl()
198 static int mt8192_afe_gpio_adda_ch34_ul(struct device *dev, bool enable) in mt8192_afe_gpio_adda_ch34_ul() argument
200 if (enable) { in mt8192_afe_gpio_adda_ch34_ul()
209 int mt8192_afe_gpio_request(struct device *dev, bool enable, in mt8192_afe_gpio_request() argument
216 mt8192_afe_gpio_adda_ul(dev, enable); in mt8192_afe_gpio_request()
218 mt8192_afe_gpio_adda_dl(dev, enable); in mt8192_afe_gpio_request()
222 mt8192_afe_gpio_adda_ch34_ul(dev, enable); in mt8192_afe_gpio_request()
224 mt8192_afe_gpio_adda_ch34_dl(dev, enable); in mt8192_afe_gpio_request()
227 if (enable) in mt8192_afe_gpio_request()
233 if (enable) in mt8192_afe_gpio_request()
239 if (enable) in mt8192_afe_gpio_request()
245 if (enable) in mt8192_afe_gpio_request()
251 if (enable) in mt8192_afe_gpio_request()
257 if (enable) in mt8192_afe_gpio_request()
263 if (enable) in mt8192_afe_gpio_request()
269 if (enable) in mt8192_afe_gpio_request()
275 if (enable) in mt8192_afe_gpio_request()
281 if (enable) in mt8192_afe_gpio_request()
287 if (enable) { in mt8192_afe_gpio_request()
302 return -EINVAL; in mt8192_afe_gpio_request()