vinst 120 arch/powerpc/platforms/powernv/vas-debug.c if (!window->vinst->dbgdir) vinst 129 arch/powerpc/platforms/powernv/vas-debug.c d = debugfs_create_dir(window->dbgname, window->vinst->dbgdir); vinst 154 arch/powerpc/platforms/powernv/vas-debug.c void vas_instance_init_dbgdir(struct vas_instance *vinst) vinst 162 arch/powerpc/platforms/powernv/vas-debug.c vinst->dbgname = kzalloc(16, GFP_KERNEL); vinst 163 arch/powerpc/platforms/powernv/vas-debug.c if (!vinst->dbgname) vinst 166 arch/powerpc/platforms/powernv/vas-debug.c snprintf(vinst->dbgname, 16, "v%d", vinst->vas_id); vinst 168 arch/powerpc/platforms/powernv/vas-debug.c d = debugfs_create_dir(vinst->dbgname, vas_debugfs); vinst 172 arch/powerpc/platforms/powernv/vas-debug.c vinst->dbgdir = d; vinst 176 arch/powerpc/platforms/powernv/vas-debug.c kfree(vinst->dbgname); vinst 177 arch/powerpc/platforms/powernv/vas-debug.c vinst->dbgname = NULL; vinst 178 arch/powerpc/platforms/powernv/vas-debug.c vinst->dbgdir = NULL; vinst 98 arch/powerpc/platforms/powernv/vas-trace.h __entry->vasid = win->vinst->vas_id; vinst 32 arch/powerpc/platforms/powernv/vas-window.c base = window->vinst->paste_base_addr; vinst 33 arch/powerpc/platforms/powernv/vas-window.c shift = window->vinst->paste_win_id_shift; vinst 48 arch/powerpc/platforms/powernv/vas-window.c pbaddr = window->vinst->hvwc_bar_start; vinst 58 arch/powerpc/platforms/powernv/vas-window.c pbaddr = window->vinst->uwc_bar_start; vinst 75 arch/powerpc/platforms/powernv/vas-window.c name = kasprintf(GFP_KERNEL, "window-v%d-w%d", txwin->vinst->vas_id, vinst 524 arch/powerpc/platforms/powernv/vas-window.c struct vas_instance *vinst = window->vinst; vinst 532 arch/powerpc/platforms/powernv/vas-window.c vas_release_window_id(&vinst->ida, winid); vinst 535 arch/powerpc/platforms/powernv/vas-window.c static struct vas_window *vas_window_alloc(struct vas_instance *vinst) vinst 540 arch/powerpc/platforms/powernv/vas-window.c winid = vas_assign_window_id(&vinst->ida); vinst 548 arch/powerpc/platforms/powernv/vas-window.c window->vinst = vinst; vinst 560 arch/powerpc/platforms/powernv/vas-window.c vas_release_window_id(&vinst->ida, winid); vinst 580 arch/powerpc/platforms/powernv/vas-window.c static struct vas_window *get_user_rxwin(struct vas_instance *vinst, u32 pswid) vinst 587 arch/powerpc/platforms/powernv/vas-window.c if (vinst->vas_id != vasid) vinst 590 arch/powerpc/platforms/powernv/vas-window.c rxwin = vinst->windows[winid]; vinst 604 arch/powerpc/platforms/powernv/vas-window.c static struct vas_window *get_vinst_rxwin(struct vas_instance *vinst, vinst 609 arch/powerpc/platforms/powernv/vas-window.c mutex_lock(&vinst->mutex); vinst 612 arch/powerpc/platforms/powernv/vas-window.c rxwin = get_user_rxwin(vinst, pswid); vinst 614 arch/powerpc/platforms/powernv/vas-window.c rxwin = vinst->rxwin[cop] ?: ERR_PTR(-EINVAL); vinst 619 arch/powerpc/platforms/powernv/vas-window.c mutex_unlock(&vinst->mutex); vinst 639 arch/powerpc/platforms/powernv/vas-window.c static void set_vinst_win(struct vas_instance *vinst, vinst 644 arch/powerpc/platforms/powernv/vas-window.c mutex_lock(&vinst->mutex); vinst 651 arch/powerpc/platforms/powernv/vas-window.c WARN_ON_ONCE(vinst->rxwin[window->cop]); vinst 652 arch/powerpc/platforms/powernv/vas-window.c vinst->rxwin[window->cop] = window; vinst 655 arch/powerpc/platforms/powernv/vas-window.c WARN_ON_ONCE(vinst->windows[id] != NULL); vinst 656 arch/powerpc/platforms/powernv/vas-window.c vinst->windows[id] = window; vinst 658 arch/powerpc/platforms/powernv/vas-window.c mutex_unlock(&vinst->mutex); vinst 668 arch/powerpc/platforms/powernv/vas-window.c struct vas_instance *vinst = window->vinst; vinst 670 arch/powerpc/platforms/powernv/vas-window.c mutex_lock(&vinst->mutex); vinst 673 arch/powerpc/platforms/powernv/vas-window.c WARN_ON_ONCE(!vinst->rxwin[window->cop]); vinst 674 arch/powerpc/platforms/powernv/vas-window.c vinst->rxwin[window->cop] = NULL; vinst 677 arch/powerpc/platforms/powernv/vas-window.c WARN_ON_ONCE(vinst->windows[id] != window); vinst 678 arch/powerpc/platforms/powernv/vas-window.c vinst->windows[id] = NULL; vinst 680 arch/powerpc/platforms/powernv/vas-window.c mutex_unlock(&vinst->mutex); vinst 852 arch/powerpc/platforms/powernv/vas-window.c struct vas_instance *vinst; vinst 859 arch/powerpc/platforms/powernv/vas-window.c vinst = find_vas_instance(vasid); vinst 860 arch/powerpc/platforms/powernv/vas-window.c if (!vinst) { vinst 866 arch/powerpc/platforms/powernv/vas-window.c rxwin = vas_window_alloc(vinst); vinst 883 arch/powerpc/platforms/powernv/vas-window.c set_vinst_win(vinst, rxwin); vinst 982 arch/powerpc/platforms/powernv/vas-window.c struct vas_instance *vinst; vinst 997 arch/powerpc/platforms/powernv/vas-window.c vinst = find_vas_instance(vasid); vinst 998 arch/powerpc/platforms/powernv/vas-window.c if (!vinst) { vinst 1003 arch/powerpc/platforms/powernv/vas-window.c rxwin = get_vinst_rxwin(vinst, cop, attr->pswid); vinst 1009 arch/powerpc/platforms/powernv/vas-window.c txwin = vas_window_alloc(vinst); vinst 1051 arch/powerpc/platforms/powernv/vas-window.c set_vinst_win(vinst, txwin); vinst 30 arch/powerpc/platforms/powernv/vas.c struct vas_instance *vinst; vinst 45 arch/powerpc/platforms/powernv/vas.c vinst = kzalloc(sizeof(*vinst), GFP_KERNEL); vinst 46 arch/powerpc/platforms/powernv/vas.c if (!vinst) vinst 49 arch/powerpc/platforms/powernv/vas.c INIT_LIST_HEAD(&vinst->node); vinst 50 arch/powerpc/platforms/powernv/vas.c ida_init(&vinst->ida); vinst 51 arch/powerpc/platforms/powernv/vas.c mutex_init(&vinst->mutex); vinst 52 arch/powerpc/platforms/powernv/vas.c vinst->vas_id = vasid; vinst 53 arch/powerpc/platforms/powernv/vas.c vinst->pdev = pdev; vinst 56 arch/powerpc/platforms/powernv/vas.c vinst->hvwc_bar_start = res->start; vinst 59 arch/powerpc/platforms/powernv/vas.c vinst->uwc_bar_start = res->start; vinst 62 arch/powerpc/platforms/powernv/vas.c vinst->paste_base_addr = res->start; vinst 70 arch/powerpc/platforms/powernv/vas.c vinst->paste_win_id_shift = 63 - res->end; vinst 74 arch/powerpc/platforms/powernv/vas.c vinst->paste_base_addr, vinst->paste_win_id_shift); vinst 82 arch/powerpc/platforms/powernv/vas.c list_add(&vinst->node, &vas_instances); vinst 85 arch/powerpc/platforms/powernv/vas.c vas_instance_init_dbgdir(vinst); vinst 87 arch/powerpc/platforms/powernv/vas.c dev_set_drvdata(&pdev->dev, vinst); vinst 92 arch/powerpc/platforms/powernv/vas.c kfree(vinst); vinst 104 arch/powerpc/platforms/powernv/vas.c struct vas_instance *vinst; vinst 112 arch/powerpc/platforms/powernv/vas.c vinst = list_entry(ent, struct vas_instance, node); vinst 113 arch/powerpc/platforms/powernv/vas.c if (vinst->vas_id == vasid) { vinst 115 arch/powerpc/platforms/powernv/vas.c return vinst; vinst 329 arch/powerpc/platforms/powernv/vas.h struct vas_instance *vinst; vinst 406 arch/powerpc/platforms/powernv/vas.h extern void vas_instance_init_dbgdir(struct vas_instance *vinst);