Lines Matching +full:request +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
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);
97 void mctrl_gpio_enable_irq_wake(struct mctrl_gpios *gpios);
102 void mctrl_gpio_disable_irq_wake(struct mctrl_gpios *gpios);
107 void mctrl_gpio_set(struct mctrl_gpios *gpios, unsigned int mctrl)
112 unsigned int mctrl_gpio_get(struct mctrl_gpios *gpios, unsigned int *mctrl)
118 mctrl_gpio_get_outputs(struct mctrl_gpios *gpios, unsigned int *mctrl)
124 struct gpio_desc *mctrl_gpio_to_gpiod(struct mctrl_gpios *gpios,
142 static inline void mctrl_gpio_enable_ms(struct mctrl_gpios *gpios)
146 static inline void mctrl_gpio_disable_ms_sync(struct mctrl_gpios *gpios)
150 static inline void mctrl_gpio_disable_ms_no_sync(struct mctrl_gpios *gpios)
154 static inline void mctrl_gpio_enable_irq_wake(struct mctrl_gpios *gpios)
158 static inline void mctrl_gpio_disable_irq_wake(struct mctrl_gpios *gpios)