Home
last modified time | relevance | path

Searched refs:vinst (Results 1 – 13 of 13) sorted by relevance

/linux-6.6.21/arch/powerpc/platforms/powernv/
Dvas.c29 static int vas_irq_fault_window_setup(struct vas_instance *vinst) in vas_irq_fault_window_setup() argument
33 rc = request_threaded_irq(vinst->virq, vas_fault_handler, in vas_irq_fault_window_setup()
34 vas_fault_thread_fn, 0, vinst->name, vinst); in vas_irq_fault_window_setup()
38 vinst->vas_id, vinst->virq, rc); in vas_irq_fault_window_setup()
42 rc = vas_setup_fault_window(vinst); in vas_irq_fault_window_setup()
44 free_irq(vinst->virq, vinst); in vas_irq_fault_window_setup()
53 struct vas_instance *vinst; in init_vas_instance() local
77 vinst = kzalloc(sizeof(*vinst), GFP_KERNEL); in init_vas_instance()
78 if (!vinst) in init_vas_instance()
81 vinst->name = kasprintf(GFP_KERNEL, "vas-%d", vasid); in init_vas_instance()
[all …]
Dvas-fault.c29 static void dump_fifo(struct vas_instance *vinst, void *entry) in dump_fifo() argument
31 unsigned long *end = vinst->fault_fifo + vinst->fault_fifo_size; in dump_fifo()
35 pr_err("Fault fifo size %d, Max crbs %d\n", vinst->fault_fifo_size, in dump_fifo()
36 vinst->fault_fifo_size / CRB_SIZE); in dump_fifo()
68 struct vas_instance *vinst = data; in vas_fault_thread_fn() local
97 spin_lock_irqsave(&vinst->fault_lock, flags); in vas_fault_thread_fn()
104 fifo = vinst->fault_fifo + (vinst->fault_crbs * CRB_SIZE); in vas_fault_thread_fn()
109 vinst->fifo_in_progress = 0; in vas_fault_thread_fn()
110 spin_unlock_irqrestore(&vinst->fault_lock, flags); in vas_fault_thread_fn()
114 spin_unlock_irqrestore(&vinst->fault_lock, flags); in vas_fault_thread_fn()
[all …]
Dvas-window.c35 base = window->vinst->paste_base_addr; in vas_win_paste_addr()
36 shift = window->vinst->paste_win_id_shift; in vas_win_paste_addr()
51 pbaddr = window->vinst->hvwc_bar_start; in get_hvwc_mmio_bar()
61 pbaddr = window->vinst->uwc_bar_start; in get_uwc_mmio_bar()
78 name = kasprintf(GFP_KERNEL, "window-v%d-w%d", txwin->vinst->vas_id, in map_paste_region()
525 struct vas_instance *vinst = window->vinst; in vas_window_free() local
534 vas_release_window_id(&vinst->ida, winid); in vas_window_free()
537 static struct pnv_vas_window *vas_window_alloc(struct vas_instance *vinst) in vas_window_alloc() argument
542 winid = vas_assign_window_id(&vinst->ida); in vas_window_alloc()
550 window->vinst = vinst; in vas_window_alloc()
[all …]
Dvas-debug.c123 if (!window->vinst->dbgdir) in vas_window_init_dbgdir()
132 d = debugfs_create_dir(window->vas_win.dbgname, window->vinst->dbgdir); in vas_window_init_dbgdir()
139 void vas_instance_init_dbgdir(struct vas_instance *vinst) in vas_instance_init_dbgdir() argument
145 vinst->dbgname = kzalloc(16, GFP_KERNEL); in vas_instance_init_dbgdir()
146 if (!vinst->dbgname) in vas_instance_init_dbgdir()
149 snprintf(vinst->dbgname, 16, "v%d", vinst->vas_id); in vas_instance_init_dbgdir()
151 d = debugfs_create_dir(vinst->dbgname, vas_debugfs); in vas_instance_init_dbgdir()
152 vinst->dbgdir = d; in vas_instance_init_dbgdir()
Dvas.h354 struct vas_instance *vinst; member
424 extern void vas_instance_init_dbgdir(struct vas_instance *vinst);
427 extern int vas_setup_fault_window(struct vas_instance *vinst);
431 extern struct pnv_vas_window *vas_pswid_to_window(struct vas_instance *vinst,
Dvas-trace.h98 __entry->vasid = win->vinst->vas_id;
/linux-6.6.21/drivers/net/ethernet/microchip/vcap/
Dvcap_api_debugfs.c282 out->prf(out->dst, "vinst: %d\n", admin->vinst); in vcap_show_admin_info()
378 if (admin->vinst) in vcap_port_debugfs_show()
450 admin->vinst); in vcap_debugfs()
459 admin->vinst); in vcap_debugfs()
Dvcap_api_debugfs_kunit.c84 if (admin->vinst == 0 || admin->vinst == 2) in test_add_def_fields()
Dvcap_api_kunit.c77 if (admin->vinst == 0 || admin->vinst == 2) in test_add_def_fields()
1884 .vinst = 0, in vcap_api_next_lookup_basic_test()
1892 .vinst = 1, in vcap_api_next_lookup_basic_test()
1931 .vinst = 0, in vcap_api_next_lookup_advanced_test()
1938 .vinst = 1, in vcap_api_next_lookup_advanced_test()
1945 .vinst = 2, in vcap_api_next_lookup_advanced_test()
1952 .vinst = 0, in vcap_api_next_lookup_advanced_test()
1959 .vinst = 1, in vcap_api_next_lookup_advanced_test()
2199 .vinst = 0, in vcap_api_rule_chain_path_test()
Dvcap_api.h169 int vinst; /* instance number within the same type */ member
Dvcap_api.c1607 int lookup_first = admin->vinst * admin->lookups_per_instance; in vcap_chain_id_to_lookup()
/linux-6.6.21/drivers/net/ethernet/microchip/sparx5/
Dsparx5_vcap_impl.c54 int vinst; /* instance number within the same type */ member
67 .vinst = 0,
79 .vinst = 1,
91 .vinst = 2,
103 .vinst = 0,
115 .vinst = 1,
996 if (admin->vinst == 0) in sparx5_vcap_is2_cache_write()
1195 if (admin->vinst == 0) in sparx5_vcap_is2_cache_read()
1966 admin->vinst = cfg->vinst; in sparx5_vcap_admin_alloc()
2083 if (cfg->vinst == 0) in sparx5_vcap_init()
/linux-6.6.21/drivers/net/ethernet/microchip/lan966x/
Dlan966x_vcap_impl.c624 admin->vinst = 0; in lan966x_vcap_admin_alloc()