Home
last modified time | relevance | path

Searched refs:txwin (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/arch/powerpc/platforms/pseries/
Dvas.c198 struct pseries_vas_window *txwin = data; in pseries_vas_fault_thread_fn() local
203 while (atomic_read(&txwin->pending_faults)) { in pseries_vas_fault_thread_fn()
204 rc = h_get_nx_fault(txwin->vas_win.winid, (u64)virt_to_phys(&crb)); in pseries_vas_fault_thread_fn()
206 tsk_ref = &txwin->vas_win.task_ref; in pseries_vas_fault_thread_fn()
210 atomic_dec(&txwin->pending_faults); in pseries_vas_fault_thread_fn()
227 struct pseries_vas_window *txwin = data; in pseries_vas_irq_handler() local
233 atomic_inc(&txwin->pending_faults); in pseries_vas_irq_handler()
241 static int allocate_setup_window(struct pseries_vas_window *txwin, in allocate_setup_window() argument
246 rc = h_allocate_vas_window(txwin, domain, wintype, DEF_WIN_CREDS); in allocate_setup_window()
254 txwin->fault_virq = irq_create_mapping(NULL, txwin->fault_irq); in allocate_setup_window()
[all …]
/linux-6.1.9/arch/powerpc/platforms/book3s/
Dvas-api.c53 struct vas_window *txwin; member
284 struct vas_window *txwin; in coproc_ioc_tx_win_open() local
292 if (cp_inst->txwin) in coproc_ioc_tx_win_open()
311 txwin = cp_inst->coproc->vops->open_win(uattr.vas_id, uattr.flags, in coproc_ioc_tx_win_open()
313 if (IS_ERR(txwin)) { in coproc_ioc_tx_win_open()
315 PTR_ERR(txwin)); in coproc_ioc_tx_win_open()
316 return PTR_ERR(txwin); in coproc_ioc_tx_win_open()
319 mutex_init(&txwin->task_ref.mmap_mutex); in coproc_ioc_tx_win_open()
320 cp_inst->txwin = txwin; in coproc_ioc_tx_win_open()
330 if (cp_inst->txwin) { in coproc_release()
[all …]
/linux-6.1.9/arch/powerpc/platforms/powernv/
Dvas-window.c71 static void *map_paste_region(struct pnv_vas_window *txwin) in map_paste_region() argument
78 name = kasprintf(GFP_KERNEL, "window-v%d-w%d", txwin->vinst->vas_id, in map_paste_region()
79 txwin->vas_win.winid); in map_paste_region()
83 txwin->paste_addr_name = name; in map_paste_region()
84 vas_win_paste_addr(txwin, &start, &len); in map_paste_region()
339 static void init_rsvd_tx_buf_count(struct pnv_vas_window *txwin, in init_rsvd_tx_buf_count() argument
342 write_hvwc_reg(txwin, VREG(TX_RSVD_BUF_COUNT), 0ULL); in init_rsvd_tx_buf_count()
910 static void init_winctx_for_txwin(struct pnv_vas_window *txwin, in init_winctx_for_txwin() argument
931 winctx->wcreds_max = txwin->vas_win.wcreds_max; in init_winctx_for_txwin()
934 winctx->nx_win = txwin->rxwin->nx_win; in init_winctx_for_txwin()
[all …]
/linux-6.1.9/drivers/crypto/nx/
Dnx-common-powernv.c566 struct vas_window *txwin; in nx842_exec_vas() local
589 txwin = this_cpu_read(cpu_txwin); in nx842_exec_vas()
601 ret = vas_paste_crb(txwin, 0, 1); in nx842_exec_vas()
686 struct vas_window *txwin = NULL; in nx_alloc_txwin() local
699 txwin = vas_tx_win_open(coproc->vas.id, coproc->ct, &txattr); in nx_alloc_txwin()
700 if (IS_ERR(txwin)) in nx_alloc_txwin()
702 PTR_ERR(txwin)); in nx_alloc_txwin()
704 return txwin; in nx_alloc_txwin()
719 struct vas_window *txwin = NULL; in nx_open_percpu_txwins() local
734 txwin = nx_alloc_txwin(coproc); in nx_open_percpu_txwins()
[all …]