Lines Matching refs:gpio_desc

41 struct gpio_desc {  struct
51 static struct gpio_desc gpio_desc[MFP_PIN_GPIO127 + 1]; variable
76 if (is_out ^ gpio_desc[gpio].dir_inverted) in __mfp_config_gpio()
101 if (is_out ^ gpio_desc[gpio].dir_inverted) in __mfp_config_gpio()
109 if ((c & MFP_LPM_CAN_WAKEUP) && !gpio_desc[gpio].can_wakeup) { in __mfp_config_gpio()
126 if ((mfp > MFP_PIN_GPIO127) || !gpio_desc[gpio].valid) { in __mfp_validate()
148 gpio_desc[gpio].config = *c; in pxa2xx_mfp_config()
166 c = gpio_desc[gpio].config; in pxa2xx_mfp_set_lpm()
175 struct gpio_desc *d; in gpio_set_wake()
181 d = &gpio_desc[gpio]; in gpio_set_wake()
237 gpio_desc[i].valid = 1; in pxa25x_mfp_init()
240 gpio_desc[i].can_wakeup = 1; in pxa25x_mfp_init()
241 gpio_desc[i].mask = GPIO_bit(i); in pxa25x_mfp_init()
248 gpio_desc[i].dir_inverted = 1; in pxa25x_mfp_init()
263 struct gpio_desc *d; in keypad_set_wake()
268 d = &gpio_desc[gpio]; in keypad_set_wake()
275 mask |= gpio_desc[gpio].mask; in keypad_set_wake()
296 gpio_desc[(gpio)].can_wakeup = 1; \
297 gpio_desc[(gpio)].mask = PWER_ ## mux ## _GPIO ##gpio; \
298 gpio_desc[(gpio)].mux_mask = PWER_ ## mux ## _MASK; \
313 gpio_desc[i].valid = 1; in pxa27x_mfp_init()
319 gpio_desc[gpio].can_wakeup = 1; in pxa27x_mfp_init()
320 gpio_desc[gpio].keypad_gpio = 1; in pxa27x_mfp_init()
321 gpio_desc[gpio].mask = 1 << i; in pxa27x_mfp_init()
330 gpio_desc[i].can_wakeup = 1; in pxa27x_mfp_init()
331 gpio_desc[i].mask = GPIO_bit(i); in pxa27x_mfp_init()
334 gpio_desc[35].can_wakeup = 1; in pxa27x_mfp_init()
335 gpio_desc[35].mask = PWER_WE35; in pxa27x_mfp_init()
360 if ((gpio_desc[i].config & MFP_LPM_KEEP_OUTPUT) && in pxa2xx_mfp_suspend()
383 ((gpio_desc[i].config & MFP_LPM_KEEP_OUTPUT) && in pxa2xx_mfp_suspend()