Lines Matching refs:ap_index
59 static void io_win_enable_window(int ap_index, struct addr_map_win *win, in io_win_enable_window() argument
83 mmio_write_32(IO_WIN_ALR_OFFSET(ap_index, win_num), alr); in io_win_enable_window()
84 mmio_write_32(IO_WIN_AHR_OFFSET(ap_index, win_num), ahr); in io_win_enable_window()
87 mmio_write_32(IO_WIN_CR_OFFSET(ap_index, win_num), win->target_id); in io_win_enable_window()
90 static void io_win_disable_window(int ap_index, uint32_t win_num) in io_win_disable_window() argument
99 win_reg = mmio_read_32(IO_WIN_ALR_OFFSET(ap_index, win_num)); in io_win_disable_window()
101 mmio_write_32(IO_WIN_ALR_OFFSET(ap_index, win_num), win_reg); in io_win_disable_window()
112 void iow_temp_win_insert(int ap_index, struct addr_map_win *win, int size) in iow_temp_win_insert() argument
119 io_win_enable_window(ap_index, win, win_id); in iow_temp_win_insert()
128 void iow_temp_win_remove(int ap_index, struct addr_map_win *win, int size) in iow_temp_win_remove() argument
139 target = mmio_read_32(IO_WIN_CR_OFFSET(ap_index, win_id)); in iow_temp_win_remove()
140 base = mmio_read_32(IO_WIN_ALR_OFFSET(ap_index, win_id)); in iow_temp_win_remove()
149 io_win_disable_window(ap_index, win_id); in iow_temp_win_remove()
155 static void dump_io_win(int ap_index) in dump_io_win() argument
165 alr = mmio_read_32(IO_WIN_ALR_OFFSET(ap_index, win_id)); in dump_io_win()
168 ahr = mmio_read_32(IO_WIN_AHR_OFFSET(ap_index, win_id)); in dump_io_win()
169 trgt_id = mmio_read_32(IO_WIN_CR_OFFSET(ap_index, in dump_io_win()
178 mmio_read_32(MVEBU_IO_WIN_BASE(ap_index) + in dump_io_win()
225 int init_io_win(int ap_index) in init_io_win() argument
234 marvell_get_io_win_memory_map(ap_index, &win, &win_count); in init_io_win()
245 win_reg = marvell_get_io_win_gcr_target(ap_index); in init_io_win()
246 mmio_write_32(MVEBU_IO_WIN_BASE(ap_index) + MVEBU_IO_WIN_GCR_OFFSET, in init_io_win()
251 io_win_disable_window(ap_index, win_id); in init_io_win()
258 io_win_enable_window(ap_index, win, win_id); in init_io_win()
262 dump_io_win(ap_index); in init_io_win()