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()
231 gpio_desc[i].valid = 1; in pxa25x_mfp_init()
234 gpio_desc[i].can_wakeup = 1; in pxa25x_mfp_init()
235 gpio_desc[i].mask = GPIO_bit(i); in pxa25x_mfp_init()
242 gpio_desc[i].dir_inverted = 1; in pxa25x_mfp_init()
257 struct gpio_desc *d; in keypad_set_wake()
262 d = &gpio_desc[gpio]; in keypad_set_wake()
269 mask |= gpio_desc[gpio].mask; in keypad_set_wake()
290 gpio_desc[(gpio)].can_wakeup = 1; \
291 gpio_desc[(gpio)].mask = PWER_ ## mux ## _GPIO ##gpio; \
292 gpio_desc[(gpio)].mux_mask = PWER_ ## mux ## _MASK; \
307 gpio_desc[i].valid = 1; in pxa27x_mfp_init()
313 gpio_desc[gpio].can_wakeup = 1; in pxa27x_mfp_init()
314 gpio_desc[gpio].keypad_gpio = 1; in pxa27x_mfp_init()
315 gpio_desc[gpio].mask = 1 << i; in pxa27x_mfp_init()
324 gpio_desc[i].can_wakeup = 1; in pxa27x_mfp_init()
325 gpio_desc[i].mask = GPIO_bit(i); in pxa27x_mfp_init()
328 gpio_desc[35].can_wakeup = 1; in pxa27x_mfp_init()
329 gpio_desc[35].mask = PWER_WE35; in pxa27x_mfp_init()
354 if ((gpio_desc[i].config & MFP_LPM_KEEP_OUTPUT) && in pxa2xx_mfp_suspend()
377 ((gpio_desc[i].config & MFP_LPM_KEEP_OUTPUT) && in pxa2xx_mfp_suspend()