Lines Matching refs:gpio_desc
39 struct gpio_desc { struct
49 static struct gpio_desc gpio_desc[MFP_PIN_GPIO127 + 1]; argument
74 if (is_out ^ gpio_desc[gpio].dir_inverted) in __mfp_config_gpio()
99 if (is_out ^ gpio_desc[gpio].dir_inverted) in __mfp_config_gpio()
107 if ((c & MFP_LPM_CAN_WAKEUP) && !gpio_desc[gpio].can_wakeup) { in __mfp_config_gpio()
124 if ((mfp > MFP_PIN_GPIO127) || !gpio_desc[gpio].valid) { in __mfp_validate()
146 gpio_desc[gpio].config = *c; in pxa2xx_mfp_config()
164 c = gpio_desc[gpio].config; in pxa2xx_mfp_set_lpm()
173 struct gpio_desc *d; in gpio_set_wake()
179 d = &gpio_desc[gpio]; in gpio_set_wake()
235 gpio_desc[i].valid = 1; in pxa25x_mfp_init()
238 gpio_desc[i].can_wakeup = 1; in pxa25x_mfp_init()
239 gpio_desc[i].mask = GPIO_bit(i); in pxa25x_mfp_init()
246 gpio_desc[i].dir_inverted = 1; in pxa25x_mfp_init()
261 struct gpio_desc *d; in keypad_set_wake()
266 d = &gpio_desc[gpio]; in keypad_set_wake()
273 mask |= gpio_desc[gpio].mask; in keypad_set_wake()
294 gpio_desc[(gpio)].can_wakeup = 1; \
295 gpio_desc[(gpio)].mask = PWER_ ## mux ## _GPIO ##gpio; \
296 gpio_desc[(gpio)].mux_mask = PWER_ ## mux ## _MASK; \
311 gpio_desc[i].valid = 1; in pxa27x_mfp_init()
317 gpio_desc[gpio].can_wakeup = 1; in pxa27x_mfp_init()
318 gpio_desc[gpio].keypad_gpio = 1; in pxa27x_mfp_init()
319 gpio_desc[gpio].mask = 1 << i; in pxa27x_mfp_init()
328 gpio_desc[i].can_wakeup = 1; in pxa27x_mfp_init()
329 gpio_desc[i].mask = GPIO_bit(i); in pxa27x_mfp_init()
332 gpio_desc[35].can_wakeup = 1; in pxa27x_mfp_init()
333 gpio_desc[35].mask = PWER_WE35; in pxa27x_mfp_init()
358 if ((gpio_desc[i].config & MFP_LPM_KEEP_OUTPUT) && in pxa2xx_mfp_suspend()
381 ((gpio_desc[i].config & MFP_LPM_KEEP_OUTPUT) && in pxa2xx_mfp_suspend()