Lines Matching refs:ATMEL_PIO_NPINS_PER_BANK
67 #define ATMEL_PIO_NPINS_PER_BANK 32 macro
68 #define ATMEL_PIO_BANK(pin_id) (pin_id / ATMEL_PIO_NPINS_PER_BANK)
69 #define ATMEL_PIO_LINE(pin_id) (pin_id % ATMEL_PIO_NPINS_PER_BANK)
145 u32 cfgr[ATMEL_PIO_NPINS_PER_BANK];
312 bank * ATMEL_PIO_NPINS_PER_BANK + n)); in atmel_gpio_irq_handler()
358 #if ATMEL_PIO_NPINS_PER_BANK != BITS_PER_LONG in atmel_gpio_get_multiple()
359 word = BIT_WORD(bank * ATMEL_PIO_NPINS_PER_BANK); in atmel_gpio_get_multiple()
360 offset = bank * ATMEL_PIO_NPINS_PER_BANK % BITS_PER_LONG; in atmel_gpio_get_multiple()
417 #if ATMEL_PIO_NPINS_PER_BANK != BITS_PER_LONG in atmel_gpio_set_multiple()
418 word = BIT_WORD(bank * ATMEL_PIO_NPINS_PER_BANK); in atmel_gpio_set_multiple()
429 #if ATMEL_PIO_NPINS_PER_BANK != BITS_PER_LONG in atmel_gpio_set_multiple()
430 mask[word] >>= ATMEL_PIO_NPINS_PER_BANK; in atmel_gpio_set_multiple()
431 bits[word] >>= ATMEL_PIO_NPINS_PER_BANK; in atmel_gpio_set_multiple()
1004 for (j = 0; j < ATMEL_PIO_NPINS_PER_BANK; j++) { in atmel_pctrl_suspend()
1026 for (j = 0; j < ATMEL_PIO_NPINS_PER_BANK; j++) { in atmel_pctrl_resume()
1047 .last_bank_count = ATMEL_PIO_NPINS_PER_BANK,
1096 atmel_pioctrl->npins = atmel_pioctrl->nbanks * ATMEL_PIO_NPINS_PER_BANK; in atmel_pinctrl_probe()
1098 if (atmel_pioctrl_data->last_bank_count != ATMEL_PIO_NPINS_PER_BANK) { in atmel_pinctrl_probe()
1099 atmel_pioctrl->npins -= ATMEL_PIO_NPINS_PER_BANK; in atmel_pinctrl_probe()