Lines Matching refs:win
34 #define IOB_WIN_CR_OFFSET(win) (iob_base + 0x0 + (0x20 * win)) argument
38 #define IOB_WIN_SCR_OFFSET(win) (iob_base + 0x4 + (0x20 * win)) argument
44 #define IOB_WIN_ALR_OFFSET(win) (iob_base + 0x8 + (0x20 * win)) argument
45 #define IOB_WIN_AHR_OFFSET(win) (iob_base + 0xC + (0x20 * win)) argument
49 static void iob_win_check(struct addr_map_win *win, uint32_t win_num) in iob_win_check() argument
52 if (IS_NOT_ALIGN(win->base_addr, IOB_WIN_ALIGNMENT)) { in iob_win_check()
53 win->base_addr = ALIGN_UP(win->base_addr, IOB_WIN_ALIGNMENT); in iob_win_check()
57 win->base_addr); in iob_win_check()
61 if (IS_NOT_ALIGN(win->win_size, IOB_WIN_ALIGNMENT)) { in iob_win_check()
62 win->win_size = ALIGN_UP(win->win_size, IOB_WIN_ALIGNMENT); in iob_win_check()
65 printf("Aligning size to 0x%llx\n", win->win_size); in iob_win_check()
69 static void iob_enable_win(struct addr_map_win *win, uint32_t win_id) in iob_enable_win() argument
75 end_addr = (win->base_addr + win->win_size - 1); in iob_enable_win()
76 alr = (uint32_t)((win->base_addr >> ADDRESS_SHIFT) & ADDRESS_MASK); in iob_enable_win()
83 iob_win_reg |= (win->target_id & IOB_TARGET_ID_MASK) in iob_enable_win()
149 struct addr_map_win *win; in init_iob() local
159 marvell_get_iob_memory_map(&win, &win_count, base); in init_iob()
184 for (win_id = 1; win_id < win_count + 1; win_id++, win++) { in init_iob()
185 iob_win_check(win, win_id); in init_iob()
186 iob_enable_win(win, win_id); in init_iob()