Lines Matching refs:ap_id
183 static void iow_save_win_range(int ap_id, int win_first, int win_last, in iow_save_win_range() argument
190 buffer[idx++] = mmio_read_32(IO_WIN_CR_OFFSET(ap_id, win_id)); in iow_save_win_range()
191 buffer[idx++] = mmio_read_32(IO_WIN_ALR_OFFSET(ap_id, win_id)); in iow_save_win_range()
192 buffer[idx++] = mmio_read_32(IO_WIN_AHR_OFFSET(ap_id, win_id)); in iow_save_win_range()
194 buffer[idx] = mmio_read_32(MVEBU_IO_WIN_BASE(ap_id) + in iow_save_win_range()
198 static void iow_restore_win_range(int ap_id, int win_first, int win_last, in iow_restore_win_range() argument
205 mmio_write_32(IO_WIN_CR_OFFSET(ap_id, win_id), buffer[idx++]); in iow_restore_win_range()
206 mmio_write_32(IO_WIN_ALR_OFFSET(ap_id, win_id), buffer[idx++]); in iow_restore_win_range()
207 mmio_write_32(IO_WIN_AHR_OFFSET(ap_id, win_id), buffer[idx++]); in iow_restore_win_range()
209 mmio_write_32(MVEBU_IO_WIN_BASE(ap_id) + MVEBU_IO_WIN_GCR_OFFSET, in iow_restore_win_range()
213 void iow_save_win_all(int ap_id) in iow_save_win_all() argument
215 iow_save_win_range(ap_id, 0, MVEBU_IO_WIN_MAX_WINS - 1, in iow_save_win_all()
219 void iow_restore_win_all(int ap_id) in iow_restore_win_all() argument
221 iow_restore_win_range(ap_id, 0, MVEBU_IO_WIN_MAX_WINS - 1, in iow_restore_win_all()