Searched refs:txwin (Results 1 – 4 of 4) sorted by relevance
/linux/arch/powerpc/platforms/pseries/ |
H A D | vas.c | 219 struct pseries_vas_window *txwin = data; in pseries_vas_fault_thread_fn() local 224 while (atomic_read(&txwin->pending_faults)) { in pseries_vas_fault_thread_fn() 225 rc = h_get_nx_fault(txwin->vas_win.winid, (u64)virt_to_phys(&crb)); in pseries_vas_fault_thread_fn() 227 tsk_ref = &txwin->vas_win.task_ref; in pseries_vas_fault_thread_fn() 231 atomic_dec(&txwin->pending_faults); in pseries_vas_fault_thread_fn() 248 struct pseries_vas_window *txwin = data; in pseries_vas_irq_handler() local 254 atomic_inc(&txwin->pending_faults); in pseries_vas_irq_handler() 262 static int allocate_setup_window(struct pseries_vas_window *txwin, in allocate_setup_window() argument 267 rc = h_allocate_vas_window(txwin, domain, wintype, DEF_WIN_CREDS); in allocate_setup_window() 275 txwin->fault_virq = irq_create_mapping(NULL, txwin->fault_irq); in allocate_setup_window() [all …]
|
/linux/arch/powerpc/platforms/book3s/ |
H A D | vas-api.c | 55 struct vas_window *txwin; member 285 struct vas_window *txwin; in coproc_ioc_tx_win_open() local 293 if (cp_inst->txwin) in coproc_ioc_tx_win_open() 312 txwin = cp_inst->coproc->vops->open_win(uattr.vas_id, uattr.flags, in coproc_ioc_tx_win_open() 314 if (IS_ERR(txwin)) { in coproc_ioc_tx_win_open() 316 PTR_ERR(txwin)); in coproc_ioc_tx_win_open() 317 return PTR_ERR(txwin); in coproc_ioc_tx_win_open() 320 mutex_init(&txwin->task_ref.mmap_mutex); in coproc_ioc_tx_win_open() 321 cp_inst->txwin = txwin; in coproc_ioc_tx_win_open() 331 if (cp_inst->txwin) { in coproc_release() [all …]
|
/linux/arch/powerpc/platforms/powernv/ |
H A D | vas-window.c | 71 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/drivers/crypto/nx/ |
H A D | nx-common-powernv.c | 563 struct vas_window *txwin; in nx842_exec_vas() local 586 txwin = this_cpu_read(cpu_txwin); in nx842_exec_vas() 598 ret = vas_paste_crb(txwin, 0, 1); in nx842_exec_vas() 683 struct vas_window *txwin = NULL; in nx_alloc_txwin() local 696 txwin = vas_tx_win_open(coproc->vas.id, coproc->ct, &txattr); in nx_alloc_txwin() 697 if (IS_ERR(txwin)) in nx_alloc_txwin() 699 PTR_ERR(txwin)); in nx_alloc_txwin() 701 return txwin; in nx_alloc_txwin() 716 struct vas_window *txwin = NULL; in nx_open_percpu_txwins() local 731 txwin = nx_alloc_txwin(coproc); in nx_open_percpu_txwins() [all …]
|