Lines Matching defs:bank
8 // - GPIO registers, specific to each GPIO bank
52 const struct wpcm450_bank *bank;
82 u8 first_irq_bit; /* First bit in GPEVST that belongs to this bank */
83 u8 num_irqs; /* Number of IRQ-capable GPIOs in this bank */
84 u8 first_irq_gpio; /* First IRQ-capable GPIO in this bank */
101 const struct wpcm450_bank *bank = gpio->bank;
104 if (hwirq < bank->first_irq_gpio)
107 if (hwirq - bank->first_irq_gpio >= bank->num_irqs)
110 return hwirq - bank->first_irq_gpio + bank->first_irq_bit;
115 const struct wpcm450_bank *bank = gpio->bank;
117 if (bitnum < bank->first_irq_bit)
120 if (bitnum - bank->first_irq_bit > bank->num_irqs)
123 return bitnum - bank->first_irq_bit + bank->first_irq_gpio;
195 void __iomem *reg = gpio->pctrl->gpio_base + gpio->bank->datain;
315 ours = GENMASK(gpio->bank->num_irqs - 1, 0) << gpio->bank->first_irq_bit;
1029 const struct wpcm450_bank *bank = gpio->bank;
1032 0, bank->base, bank->length);
1052 const struct wpcm450_bank *bank;
1072 bank = &wpcm450_banks[reg];
1073 gpio->bank = bank;
1075 dat = pctrl->gpio_base + bank->datain;
1076 if (bank->dataout) {
1077 set = pctrl->gpio_base + bank->dataout;
1078 dirout = pctrl->gpio_base + bank->cfg0;
1087 gpio->gc.ngpio = bank->length;