Lines Matching refs:ap_index

67 static void gwin_enable_window(int ap_index, struct addr_map_win *win,  in gwin_enable_window()  argument
85 mmio_write_32(GWIN_ALR_OFFSET(ap_index, win_num), alr); in gwin_enable_window()
86 mmio_write_32(GWIN_AHR_OFFSET(ap_index, win_num), ahr); in gwin_enable_window()
89 mmio_write_32(GWIN_CR_OFFSET(ap_index, win_num), in gwin_enable_window()
93 static void gwin_disable_window(int ap_index, uint32_t win_num) in gwin_disable_window() argument
97 win_reg = mmio_read_32(GWIN_CR_OFFSET(ap_index, win_num)); in gwin_disable_window()
99 mmio_write_32(GWIN_CR_OFFSET(ap_index, win_num), win_reg); in gwin_disable_window()
110 void gwin_temp_win_insert(int ap_index, struct addr_map_win *win, int size) in gwin_temp_win_insert() argument
117 gwin_enable_window(ap_index, win, win_id); in gwin_temp_win_insert()
126 void gwin_temp_win_remove(int ap_index, struct addr_map_win *win, int size) in gwin_temp_win_remove() argument
136 target = mmio_read_32(GWIN_CR_OFFSET(ap_index, win_id)); in gwin_temp_win_remove()
140 base = mmio_read_32(GWIN_ALR_OFFSET(ap_index, win_id)); in gwin_temp_win_remove()
149 gwin_disable_window(ap_index, win_id); in gwin_temp_win_remove()
155 static void dump_gwin(int ap_index) in dump_gwin() argument
166 cr = mmio_read_32(GWIN_CR_OFFSET(ap_index, win_num)); in dump_gwin()
169 alr = mmio_read_32(GWIN_ALR_OFFSET(ap_index, win_num)); in dump_gwin()
171 ahr = mmio_read_32(GWIN_AHR_OFFSET(ap_index, win_num)); in dump_gwin()
180 int init_gwin(int ap_index) in init_gwin() argument
190 marvell_get_gwin_memory_map(ap_index, &win, &win_count); in init_gwin()
204 gwin_disable_window(ap_index, win_id); in init_gwin()
209 gwin_enable_window(ap_index, win, win_id); in init_gwin()
220 win_reg = mmio_read_32(CCU_GRU_CR_OFFSET(ap_index)); in init_gwin()
222 mmio_write_32(CCU_GRU_CR_OFFSET(ap_index), win_reg); in init_gwin()
225 dump_gwin(ap_index); in init_gwin()