Lines Matching refs:win
49 static int h_allocate_vas_window(struct pseries_vas_window *win, u64 *domain, in h_allocate_vas_window() argument
64 if (win->win_addr == VAS_INVALID_WIN_ADDRESS) { in h_allocate_vas_window()
68 win->vas_win.winid = retbuf[0]; in h_allocate_vas_window()
69 win->win_addr = retbuf[1]; in h_allocate_vas_window()
70 win->complete_irq = retbuf[2]; in h_allocate_vas_window()
71 win->fault_irq = retbuf[3]; in h_allocate_vas_window()
107 static int h_modify_vas_window(struct pseries_vas_window *win) in h_modify_vas_window() argument
118 win->vas_win.winid, lpid, 0, in h_modify_vas_window()
128 rc, win->vas_win.winid, lpid); in h_modify_vas_window()
388 struct pseries_vas_window *win; in vas_paste_address() local
390 win = container_of(vwin, struct pseries_vas_window, vas_win); in vas_paste_address()
391 return win->win_addr; in vas_paste_address()
394 static int deallocate_free_window(struct pseries_vas_window *win) in deallocate_free_window() argument
407 rc = h_deallocate_vas_window(win->vas_win.winid); in deallocate_free_window()
409 free_irq_setup(win); in deallocate_free_window()
416 struct pseries_vas_window *win; in vas_deallocate_window() local
423 win = container_of(vwin, struct pseries_vas_window, vas_win); in vas_deallocate_window()
426 if (win->win_type >= VAS_MAX_FEAT_TYPE) { in vas_deallocate_window()
428 vwin->winid, win->win_type); in vas_deallocate_window()
432 caps = &vascaps[win->win_type].caps; in vas_deallocate_window()
434 rc = deallocate_free_window(win); in vas_deallocate_window()
440 list_del(&win->win_list); in vas_deallocate_window()
447 kfree(win); in vas_deallocate_window()