Lines Matching refs:bank
13 #define P(bank) (0x0000 + (bank) * 4) argument
14 #define PSR(bank) (0x0100 + (bank) * 4) argument
15 #define PPR(bank) (0x0200 + (bank) * 4) argument
16 #define PM(bank) (0x0300 + (bank) * 4) argument
17 #define PMC(bank) (0x0400 + (bank) * 4) argument
18 #define PFC(bank) (0x0500 + (bank) * 4) argument
19 #define PFCE(bank) (0x0600 + (bank) * 4) argument
20 #define PNOT(bank) (0x0700 + (bank) * 4) argument
21 #define PMSR(bank) (0x0800 + (bank) * 4) argument
22 #define PMCSR(bank) (0x0900 + (bank) * 4) argument
23 #define PFCAE(bank) (0x0A00 + (bank) * 4) argument
24 #define PIBC(bank) (0x4000 + (bank) * 4) argument
25 #define PBDC(bank) (0x4100 + (bank) * 4) argument
26 #define PIPC(bank) (0x4200 + (bank) * 4) argument
34 int bank; member
41 return !!(readw(priv->regs + PPR(priv->bank)) & BIT(offset)); in r7s72100_gpio_get_value()
50 priv->regs + PSR(priv->bank)); in r7s72100_gpio_set_value()
60 writel(BIT(line + 16), priv->regs + PMCSR(priv->bank)); in r7s72100_gpio_set_direction()
62 priv->regs + PMSR(priv->bank)); in r7s72100_gpio_set_direction()
64 clrsetbits_le16(priv->regs + PIBC(priv->bank), BIT(line), in r7s72100_gpio_set_direction()
88 if (readw(priv->regs + PM(priv->bank)) & BIT(offset)) in r7s72100_gpio_get_function()
122 priv->bank = ret == 0 ? (args.args[1] / RZA1_MAX_GPIO_PER_BANK) : -1; in r7s72100_gpio_probe()