Lines Matching refs:winid
32 int winid; in vas_win_paste_addr() local
37 winid = window->vas_win.winid; in vas_win_paste_addr()
39 *addr = base + (winid << shift); in vas_win_paste_addr()
43 pr_debug("Txwin #%d: Paste addr 0x%llx\n", winid, *addr); in vas_win_paste_addr()
52 *start = pbaddr + window->vas_win.winid * VAS_HVWC_SIZE; in get_hvwc_mmio_bar()
62 *start = pbaddr + window->vas_win.winid * VAS_UWC_SIZE; in get_uwc_mmio_bar()
79 txwin->vas_win.winid); in map_paste_region()
506 static void vas_release_window_id(struct ida *ida, int winid) in vas_release_window_id() argument
508 ida_free(ida, winid); in vas_release_window_id()
513 int winid = ida_alloc_max(ida, VAS_WINDOWS_PER_CHIP - 1, GFP_KERNEL); in vas_assign_window_id() local
515 if (winid == -ENOSPC) { in vas_assign_window_id()
520 return winid; in vas_assign_window_id()
526 int winid = window->vas_win.winid; in vas_window_free() local
534 vas_release_window_id(&vinst->ida, winid); in vas_window_free()
539 int winid; in vas_window_alloc() local
542 winid = vas_assign_window_id(&vinst->ida); in vas_window_alloc()
543 if (winid < 0) in vas_window_alloc()
544 return ERR_PTR(winid); in vas_window_alloc()
551 window->vas_win.winid = winid; in vas_window_alloc()
562 vas_release_window_id(&vinst->ida, winid); in vas_window_alloc()
585 int vasid, winid; in get_user_rxwin() local
588 decode_pswid(pswid, &vasid, &winid); in get_user_rxwin()
593 rxwin = vinst->windows[winid]; in get_user_rxwin()
645 int id = window->vas_win.winid; in set_vinst_win()
670 int id = window->vas_win.winid; in clear_vinst_win()
951 winctx->rx_win_id = txwin->rxwin->vas_win.winid; in init_winctx_for_txwin()
957 winctx->fault_win_id = txwin->vinst->fault_win->vas_win.winid; in init_winctx_for_txwin()
968 txwin->vas_win.winid); in init_winctx_for_txwin()
1135 pr_debug("Txwin #%d: Msg count %llu\n", txwin->vas_win.winid, in vas_paste_crb()
1197 window->vas_win.winid, in poll_window_credits()
1230 window->vas_win.winid, count); in poll_window_busy_state()
1365 int winid; in vas_pswid_to_window() local
1372 decode_pswid(pswid, NULL, &winid); in vas_pswid_to_window()
1374 if (winid >= VAS_WINDOWS_PER_CHIP) in vas_pswid_to_window()
1386 window = vinst->windows[winid]; in vas_pswid_to_window()
1390 winid, pswid, vinst); in vas_pswid_to_window()
1404 winid, window->tx_win, window->user_win, in vas_pswid_to_window()