Lines Matching refs:txwin
55 struct vas_window *txwin;
285 struct vas_window *txwin;
293 if (cp_inst->txwin)
312 txwin = cp_inst->coproc->vops->open_win(uattr.vas_id, uattr.flags,
314 if (IS_ERR(txwin)) {
316 PTR_ERR(txwin));
317 return PTR_ERR(txwin);
320 mutex_init(&txwin->task_ref.mmap_mutex);
321 cp_inst->txwin = txwin;
331 if (cp_inst->txwin) {
334 rc = cp_inst->coproc->vops->close_win(cp_inst->txwin);
338 cp_inst->txwin = NULL;
400 struct vas_window *txwin;
408 if (!cp_inst || !cp_inst->txwin) {
413 txwin = cp_inst->txwin;
423 if (txwin->task_ref.vma != vmf->vma) {
428 mutex_lock(&txwin->task_ref.mmap_mutex);
435 if (txwin->status == VAS_WIN_ACTIVE) {
436 paste_addr = cp_inst->coproc->vops->paste_addr(txwin);
440 mutex_unlock(&txwin->task_ref.mmap_mutex);
444 mutex_unlock(&txwin->task_ref.mmap_mutex);
474 struct vas_window *txwin;
480 txwin = cp_inst->txwin;
489 if (!txwin) {
510 mutex_lock(&txwin->task_ref.mmap_mutex);
511 if (txwin->status != VAS_WIN_ACTIVE) {
517 paste_addr = cp_inst->coproc->vops->paste_addr(txwin);
538 txwin->task_ref.vma = vma;
542 mutex_unlock(&txwin->task_ref.mmap_mutex);