Lines Matching refs:ap_index

62 static void io_win_enable_window(int ap_index, struct addr_map_win *win,  in io_win_enable_window()  argument
86 mmio_write_32(IO_WIN_ALR_OFFSET(ap_index, win_num), alr); in io_win_enable_window()
87 mmio_write_32(IO_WIN_AHR_OFFSET(ap_index, win_num), ahr); in io_win_enable_window()
90 mmio_write_32(IO_WIN_CR_OFFSET(ap_index, win_num), win->target_id); in io_win_enable_window()
93 static void io_win_disable_window(int ap_index, uint32_t win_num) in io_win_disable_window() argument
102 win_reg = mmio_read_32(IO_WIN_ALR_OFFSET(ap_index, win_num)); in io_win_disable_window()
104 mmio_write_32(IO_WIN_ALR_OFFSET(ap_index, win_num), win_reg); in io_win_disable_window()
115 void iow_temp_win_insert(int ap_index, struct addr_map_win *win, int size) in iow_temp_win_insert() argument
122 io_win_enable_window(ap_index, win, win_id); in iow_temp_win_insert()
131 void iow_temp_win_remove(int ap_index, struct addr_map_win *win, int size) in iow_temp_win_remove() argument
142 target = mmio_read_32(IO_WIN_CR_OFFSET(ap_index, win_id)); in iow_temp_win_remove()
143 base = mmio_read_32(IO_WIN_ALR_OFFSET(ap_index, win_id)); in iow_temp_win_remove()
152 io_win_disable_window(ap_index, win_id); in iow_temp_win_remove()
158 static void dump_io_win(int ap_index) in dump_io_win() argument
168 alr = mmio_read_32(IO_WIN_ALR_OFFSET(ap_index, win_id)); in dump_io_win()
171 ahr = mmio_read_32(IO_WIN_AHR_OFFSET(ap_index, win_id)); in dump_io_win()
172 trgt_id = mmio_read_32(IO_WIN_CR_OFFSET(ap_index, in dump_io_win()
181 mmio_read_32(MVEBU_IO_WIN_BASE(ap_index) + in dump_io_win()
228 int init_io_win(int ap_index) in init_io_win() argument
237 marvell_get_io_win_memory_map(ap_index, &win, &win_count); in init_io_win()
248 win_reg = marvell_get_io_win_gcr_target(ap_index); in init_io_win()
249 mmio_write_32(MVEBU_IO_WIN_BASE(ap_index) + MVEBU_IO_WIN_GCR_OFFSET, in init_io_win()
254 io_win_disable_window(ap_index, win_id); in init_io_win()
261 io_win_enable_window(ap_index, win, win_id); in init_io_win()
265 dump_io_win(ap_index); in init_io_win()