Lines Matching refs:txwin

53 	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()
333 rc = cp_inst->coproc->vops->close_win(cp_inst->txwin); in coproc_release()
337 cp_inst->txwin = NULL; in coproc_release()
399 struct vas_window *txwin; in vas_mmap_fault() local
407 if (!cp_inst || !cp_inst->txwin) { in vas_mmap_fault()
413 txwin = cp_inst->txwin; in vas_mmap_fault()
423 if (txwin->task_ref.vma != vmf->vma) { in vas_mmap_fault()
429 mutex_lock(&txwin->task_ref.mmap_mutex); in vas_mmap_fault()
436 if (txwin->status == VAS_WIN_ACTIVE) { in vas_mmap_fault()
437 paste_addr = cp_inst->coproc->vops->paste_addr(txwin); in vas_mmap_fault()
441 mutex_unlock(&txwin->task_ref.mmap_mutex); in vas_mmap_fault()
445 mutex_unlock(&txwin->task_ref.mmap_mutex); in vas_mmap_fault()
475 struct vas_window *txwin; in coproc_mmap() local
481 txwin = cp_inst->txwin; in coproc_mmap()
490 if (!txwin) { in coproc_mmap()
511 mutex_lock(&txwin->task_ref.mmap_mutex); in coproc_mmap()
512 if (txwin->status != VAS_WIN_ACTIVE) { in coproc_mmap()
518 paste_addr = cp_inst->coproc->vops->paste_addr(txwin); in coproc_mmap()
539 txwin->task_ref.vma = vma; in coproc_mmap()
543 mutex_unlock(&txwin->task_ref.mmap_mutex); in coproc_mmap()