Lines Matching refs:ap_index
64 static void gwin_enable_window(int ap_index, struct addr_map_win *win, in gwin_enable_window() argument
82 mmio_write_32(GWIN_ALR_OFFSET(ap_index, win_num), alr); in gwin_enable_window()
83 mmio_write_32(GWIN_AHR_OFFSET(ap_index, win_num), ahr); in gwin_enable_window()
86 mmio_write_32(GWIN_CR_OFFSET(ap_index, win_num), in gwin_enable_window()
90 static void gwin_disable_window(int ap_index, uint32_t win_num) in gwin_disable_window() argument
94 win_reg = mmio_read_32(GWIN_CR_OFFSET(ap_index, win_num)); in gwin_disable_window()
96 mmio_write_32(GWIN_CR_OFFSET(ap_index, win_num), win_reg); in gwin_disable_window()
107 void gwin_temp_win_insert(int ap_index, struct addr_map_win *win, int size) in gwin_temp_win_insert() argument
114 gwin_enable_window(ap_index, win, win_id); in gwin_temp_win_insert()
123 void gwin_temp_win_remove(int ap_index, struct addr_map_win *win, int size) in gwin_temp_win_remove() argument
133 target = mmio_read_32(GWIN_CR_OFFSET(ap_index, win_id)); in gwin_temp_win_remove()
137 base = mmio_read_32(GWIN_ALR_OFFSET(ap_index, win_id)); in gwin_temp_win_remove()
146 gwin_disable_window(ap_index, win_id); in gwin_temp_win_remove()
152 static void dump_gwin(int ap_index) in dump_gwin() argument
163 cr = mmio_read_32(GWIN_CR_OFFSET(ap_index, win_num)); in dump_gwin()
166 alr = mmio_read_32(GWIN_ALR_OFFSET(ap_index, win_num)); in dump_gwin()
168 ahr = mmio_read_32(GWIN_AHR_OFFSET(ap_index, win_num)); in dump_gwin()
177 int init_gwin(int ap_index) in init_gwin() argument
187 marvell_get_gwin_memory_map(ap_index, &win, &win_count); in init_gwin()
201 gwin_disable_window(ap_index, win_id); in init_gwin()
206 gwin_enable_window(ap_index, win, win_id); in init_gwin()
217 win_reg = mmio_read_32(CCU_GRU_CR_OFFSET(ap_index)); in init_gwin()
219 mmio_write_32(CCU_GRU_CR_OFFSET(ap_index), win_reg); in init_gwin()
222 dump_gwin(ap_index); in init_gwin()