Lines Matching +full:enable +full:- +full:gpios
1 /* SPDX-License-Identifier: GPL-2.0+ */
29 * Opaque descriptor for modem lines controlled by GPIOs
36 * Set state of the modem control output lines via GPIOs.
38 void mctrl_gpio_set(struct mctrl_gpios *gpios, unsigned int mctrl);
41 * Get state of the modem control input lines from GPIOs.
44 unsigned int mctrl_gpio_get(struct mctrl_gpios *gpios, unsigned int *mctrl);
47 * Get state of the modem control output lines from GPIOs.
51 mctrl_gpio_get_outputs(struct mctrl_gpios *gpios, unsigned int *mctrl);
56 struct gpio_desc *mctrl_gpio_to_gpiod(struct mctrl_gpios *gpios,
60 * Request and set direction of modem control line GPIOs and set up irq
63 * Returns a pointer to the allocated mctrl structure if ok, -ENOMEM on
69 * Request and set direction of modem control line GPIOs.
71 * Returns a pointer to the allocated mctrl structure if ok, -ENOMEM on
78 * Enable gpio interrupts to report status line changes.
80 void mctrl_gpio_enable_ms(struct mctrl_gpios *gpios);
86 void mctrl_gpio_disable_ms_sync(struct mctrl_gpios *gpios);
92 void mctrl_gpio_disable_ms_no_sync(struct mctrl_gpios *gpios);
95 * Enable gpio wakeup interrupts to enable wake up source.
97 void mctrl_gpio_enable_irq_wake(struct mctrl_gpios *gpios);
100 * Disable gpio wakeup interrupts to enable wake up source.
102 void mctrl_gpio_disable_irq_wake(struct mctrl_gpios *gpios);
107 void mctrl_gpio_set(struct mctrl_gpios *gpios, unsigned int mctrl) in mctrl_gpio_set() argument
112 unsigned int mctrl_gpio_get(struct mctrl_gpios *gpios, unsigned int *mctrl) in mctrl_gpio_get() argument
118 mctrl_gpio_get_outputs(struct mctrl_gpios *gpios, unsigned int *mctrl) in mctrl_gpio_get_outputs() argument
124 struct gpio_desc *mctrl_gpio_to_gpiod(struct mctrl_gpios *gpios, in mctrl_gpio_to_gpiod() argument
142 static inline void mctrl_gpio_enable_ms(struct mctrl_gpios *gpios) in mctrl_gpio_enable_ms() argument
146 static inline void mctrl_gpio_disable_ms_sync(struct mctrl_gpios *gpios) in mctrl_gpio_disable_ms_sync() argument
150 static inline void mctrl_gpio_disable_ms_no_sync(struct mctrl_gpios *gpios) in mctrl_gpio_disable_ms_no_sync() argument
154 static inline void mctrl_gpio_enable_irq_wake(struct mctrl_gpios *gpios) in mctrl_gpio_enable_irq_wake() argument
158 static inline void mctrl_gpio_disable_irq_wake(struct mctrl_gpios *gpios) in mctrl_gpio_disable_irq_wake() argument