Lines Matching refs:i

137 	int i, gpio;  in pxa2xx_mfp_config()  local
139 for (i = 0, c = mfp_cfgs; i < num; i++, c++) { in pxa2xx_mfp_config()
227 int i; in pxa25x_mfp_init() local
231 for (i = 0; i <= pxa_last_gpio; i++) in pxa25x_mfp_init()
232 gpio_desc[i].valid = 1; in pxa25x_mfp_init()
234 for (i = 0; i <= 15; i++) { in pxa25x_mfp_init()
235 gpio_desc[i].can_wakeup = 1; in pxa25x_mfp_init()
236 gpio_desc[i].mask = GPIO_bit(i); in pxa25x_mfp_init()
242 for (i = 86; i <= pxa_last_gpio; i++) in pxa25x_mfp_init()
243 gpio_desc[i].dir_inverted = 1; in pxa25x_mfp_init()
257 unsigned int i, gpio, mask = 0; in keypad_set_wake() local
260 for (i = 0; i < ARRAY_SIZE(pxa27x_pkwr_gpio); i++) { in keypad_set_wake()
262 gpio = pxa27x_pkwr_gpio[i]; in keypad_set_wake()
298 int i, gpio; in pxa27x_mfp_init() local
301 for (i = 0; i <= pxa_last_gpio; i++) { in pxa27x_mfp_init()
305 if (i == 2 || i == 5 || i == 6 || i == 7 || i == 8) in pxa27x_mfp_init()
308 gpio_desc[i].valid = 1; in pxa27x_mfp_init()
312 for (i = 0; i < ARRAY_SIZE(pxa27x_pkwr_gpio); i++) { in pxa27x_mfp_init()
313 gpio = pxa27x_pkwr_gpio[i]; in pxa27x_mfp_init()
316 gpio_desc[gpio].mask = 1 << i; in pxa27x_mfp_init()
320 for (i = 0; i <= 15; i++) { in pxa27x_mfp_init()
322 if (GPIO_bit(i) & 0x1e4) in pxa27x_mfp_init()
325 gpio_desc[i].can_wakeup = 1; in pxa27x_mfp_init()
326 gpio_desc[i].mask = GPIO_bit(i); in pxa27x_mfp_init()
351 int i; in pxa2xx_mfp_suspend() local
354 for (i = 0; i < pxa_last_gpio; i++) { in pxa2xx_mfp_suspend()
355 if ((gpio_desc[i].config & MFP_LPM_KEEP_OUTPUT) && in pxa2xx_mfp_suspend()
356 (GPDR(i) & GPIO_bit(i))) { in pxa2xx_mfp_suspend()
357 if (GPLR(i) & GPIO_bit(i)) in pxa2xx_mfp_suspend()
358 PGSR(gpio_to_bank(i)) |= GPIO_bit(i); in pxa2xx_mfp_suspend()
360 PGSR(gpio_to_bank(i)) &= ~GPIO_bit(i); in pxa2xx_mfp_suspend()
364 for (i = 0; i <= gpio_to_bank(pxa_last_gpio); i++) { in pxa2xx_mfp_suspend()
365 saved_gafr[0][i] = GAFR_L(i); in pxa2xx_mfp_suspend()
366 saved_gafr[1][i] = GAFR_U(i); in pxa2xx_mfp_suspend()
367 saved_gpdr[i] = GPDR(i * 32); in pxa2xx_mfp_suspend()
368 saved_gplr[i] = GPLR(i * 32); in pxa2xx_mfp_suspend()
369 saved_pgsr[i] = PGSR(i); in pxa2xx_mfp_suspend()
371 GPSR(i * 32) = PGSR(i); in pxa2xx_mfp_suspend()
372 GPCR(i * 32) = ~PGSR(i); in pxa2xx_mfp_suspend()
376 for (i = 0; i < pxa_last_gpio; i++) { in pxa2xx_mfp_suspend()
377 if ((gpdr_lpm[gpio_to_bank(i)] & GPIO_bit(i)) || in pxa2xx_mfp_suspend()
378 ((gpio_desc[i].config & MFP_LPM_KEEP_OUTPUT) && in pxa2xx_mfp_suspend()
379 (saved_gpdr[gpio_to_bank(i)] & GPIO_bit(i)))) in pxa2xx_mfp_suspend()
380 GPDR(i) |= GPIO_bit(i); in pxa2xx_mfp_suspend()
382 GPDR(i) &= ~GPIO_bit(i); in pxa2xx_mfp_suspend()
390 int i; in pxa2xx_mfp_resume() local
392 for (i = 0; i <= gpio_to_bank(pxa_last_gpio); i++) { in pxa2xx_mfp_resume()
393 GAFR_L(i) = saved_gafr[0][i]; in pxa2xx_mfp_resume()
394 GAFR_U(i) = saved_gafr[1][i]; in pxa2xx_mfp_resume()
395 GPSR(i * 32) = saved_gplr[i]; in pxa2xx_mfp_resume()
396 GPCR(i * 32) = ~saved_gplr[i]; in pxa2xx_mfp_resume()
397 GPDR(i * 32) = saved_gpdr[i]; in pxa2xx_mfp_resume()
398 PGSR(i) = saved_pgsr[i]; in pxa2xx_mfp_resume()
414 int i; in pxa2xx_mfp_init() local
429 for (i = 0; i <= gpio_to_bank(pxa_last_gpio); i++) in pxa2xx_mfp_init()
430 gpdr_lpm[i] = GPDR(i * 32); in pxa2xx_mfp_init()