Lines Matching full:bank
23 #define UNIPHIER_SBC_STRIDE 0x10 /* register stride to next bank */
25 #define UNIPHIER_SBC_BASE_DUMMY 0xffffffff /* data to squash bank 0, 1 */
35 struct uniphier_system_bus_bank bank[UNIPHIER_SBC_NR_BANKS]; member
39 int bank, u32 addr, u64 paddr, u32 size) in uniphier_system_bus_add_bank() argument
44 "range found: bank = %d, addr = %08x, paddr = %08llx, size = %08x\n", in uniphier_system_bus_add_bank()
45 bank, addr, paddr, size); in uniphier_system_bus_add_bank()
47 if (bank >= ARRAY_SIZE(priv->bank)) { in uniphier_system_bus_add_bank()
48 dev_err(priv->dev, "unsupported bank number %d\n", bank); in uniphier_system_bus_add_bank()
52 if (priv->bank[bank].base || priv->bank[bank].end) { in uniphier_system_bus_add_bank()
54 "range for bank %d has already been specified\n", bank); in uniphier_system_bus_add_bank()
86 priv->bank[bank].base = paddr; in uniphier_system_bus_add_bank()
87 priv->bank[bank].end = end; in uniphier_system_bus_add_bank()
89 dev_dbg(priv->dev, "range added: bank = %d, addr = %08x, end = %08x\n", in uniphier_system_bus_add_bank()
90 bank, priv->bank[bank].base, priv->bank[bank].end); in uniphier_system_bus_add_bank()
100 for (i = 0; i < ARRAY_SIZE(priv->bank); i++) { in uniphier_system_bus_check_overlap()
101 for (j = i + 1; j < ARRAY_SIZE(priv->bank); j++) { in uniphier_system_bus_check_overlap()
102 if (priv->bank[i].end > priv->bank[j].base && in uniphier_system_bus_check_overlap()
103 priv->bank[i].base < priv->bank[j].end) { in uniphier_system_bus_check_overlap()
105 "region overlap between bank%d and bank%d\n", in uniphier_system_bus_check_overlap()
130 swap(priv->bank[0], priv->bank[1]); in uniphier_system_bus_check_boot_swap()
140 for (i = 0; i < ARRAY_SIZE(priv->bank); i++) { in uniphier_system_bus_set_reg()
141 base = priv->bank[i].base; in uniphier_system_bus_set_reg()
142 end = priv->bank[i].end; in uniphier_system_bus_set_reg()
148 * bank 0 (if boot swap if off) or bank 1 (if boot swap in uniphier_system_bus_set_reg()
150 * bank 2 or later. In other words, bank 0/1 cannot in uniphier_system_bus_set_reg()
154 * set when the bank 0/1 is unused. As for bank 2 and in uniphier_system_bus_set_reg()