/kernel/linux/linux-6.6/arch/powerpc/platforms/pseries/ |
H A D | vas.c | 199 struct pseries_vas_window *txwin = data; in pseries_vas_fault_thread_fn() local 204 while (atomic_read(&txwin->pending_faults)) { in pseries_vas_fault_thread_fn() 205 rc = h_get_nx_fault(txwin->vas_win.winid, (u64)virt_to_phys(&crb)); in pseries_vas_fault_thread_fn() 207 tsk_ref = &txwin->vas_win.task_ref; in pseries_vas_fault_thread_fn() 211 atomic_dec(&txwin->pending_faults); in pseries_vas_fault_thread_fn() 228 struct pseries_vas_window *txwin = data; in pseries_vas_irq_handler() local 234 atomic_inc(&txwin->pending_faults); in pseries_vas_irq_handler() 242 static int allocate_setup_window(struct pseries_vas_window *txwin, in allocate_setup_window() argument 247 rc = h_allocate_vas_window(txwin, domain, wintype, DEF_WIN_CREDS); in allocate_setup_window() 255 txwin in allocate_setup_window() 291 free_irq_setup(struct pseries_vas_window *txwin) free_irq_setup() argument 304 struct pseries_vas_window *txwin; vas_allocate_window() local [all...] |
/kernel/linux/linux-6.6/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() 400 struct vas_window *txwin; vas_mmap_fault() local 474 struct vas_window *txwin; coproc_mmap() local [all...] |
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
H A D | vas-api.c | 49 struct vas_window *txwin; member 78 struct vas_window *txwin; in coproc_ioc_tx_win_open() local 86 if (cp_inst->txwin) in coproc_ioc_tx_win_open() 110 pr_devel("Pid %d: Opening txwin, PIDR %ld\n", txattr.pidr, in coproc_ioc_tx_win_open() 113 txwin = vas_tx_win_open(vasid, cp_inst->coproc->cop_type, &txattr); in coproc_ioc_tx_win_open() 114 if (IS_ERR(txwin)) { in coproc_ioc_tx_win_open() 116 PTR_ERR(txwin)); in coproc_ioc_tx_win_open() 117 return PTR_ERR(txwin); in coproc_ioc_tx_win_open() 120 cp_inst->txwin = txwin; in coproc_ioc_tx_win_open() 151 struct vas_window *txwin; coproc_mmap() local [all...] |
H A D | vas-window.c | 70 static void *map_paste_region(struct vas_window *txwin) in map_paste_region() argument 77 name = kasprintf(GFP_KERNEL, "window-v%d-w%d", txwin->vinst->vas_id, in map_paste_region() 78 txwin->winid); in map_paste_region() 82 txwin->paste_addr_name = name; in map_paste_region() 83 vas_win_paste_addr(txwin, &start, &len); in map_paste_region() 338 static void init_rsvd_tx_buf_count(struct vas_window *txwin, in init_rsvd_tx_buf_count() argument 341 write_hvwc_reg(txwin, VREG(TX_RSVD_BUF_COUNT), 0ULL); in init_rsvd_tx_buf_count() 908 static void init_winctx_for_txwin(struct vas_window *txwin, in init_winctx_for_txwin() argument 929 winctx->wcreds_max = txwin->wcreds_max; in init_winctx_for_txwin() 932 winctx->nx_win = txwin in init_winctx_for_txwin() 996 struct vas_window *txwin; vas_tx_win_open() local 1135 vas_paste_crb(struct vas_window *txwin, int offset, bool re) vas_paste_crb() argument [all...] |
/kernel/linux/linux-6.6/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 in init_winctx_for_txwin() 999 struct pnv_vas_window *txwin; vas_tx_win_open() local 1100 struct pnv_vas_window *txwin; vas_paste_crb() local 1431 vas_user_win_paste_addr(struct vas_window *txwin) vas_user_win_paste_addr() argument 1442 vas_user_win_close(struct vas_window *txwin) vas_user_win_close() argument [all...] |
/kernel/linux/linux-5.10/drivers/crypto/nx/ |
H A D | nx-common-powernv.c | 566 struct vas_window *txwin; in nx842_exec_vas() local 589 txwin = this_cpu_read(cpu_txwin); in nx842_exec_vas() 599 * @txwin, @offset and @last (must be true). 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() 709 * engine and save txwin i 719 struct vas_window *txwin = NULL; nx_open_percpu_txwins() local 998 struct vas_window *txwin; nx_delete_coprocs() local [all...] |
/kernel/linux/linux-6.6/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() 596 * @txwin, @offset and @last (must be true). 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() 706 * engine and save txwin i 716 struct vas_window *txwin = NULL; nx_open_percpu_txwins() local 995 struct vas_window *txwin; nx_delete_coprocs() local [all...] |