Lines Matching refs:txwin

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()
334 rc = cp_inst->coproc->vops->close_win(cp_inst->txwin); in coproc_release()
338 cp_inst->txwin = NULL; in coproc_release()
400 struct vas_window *txwin; in vas_mmap_fault() local
408 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()
428 mutex_lock(&txwin->task_ref.mmap_mutex); in vas_mmap_fault()
435 if (txwin->status == VAS_WIN_ACTIVE) { in vas_mmap_fault()
436 paste_addr = cp_inst->coproc->vops->paste_addr(txwin); in vas_mmap_fault()
440 mutex_unlock(&txwin->task_ref.mmap_mutex); in vas_mmap_fault()
444 mutex_unlock(&txwin->task_ref.mmap_mutex); in vas_mmap_fault()
474 struct vas_window *txwin; in coproc_mmap() local
480 txwin = cp_inst->txwin; in coproc_mmap()
489 if (!txwin) { in coproc_mmap()
510 mutex_lock(&txwin->task_ref.mmap_mutex); in coproc_mmap()
511 if (txwin->status != VAS_WIN_ACTIVE) { in coproc_mmap()
517 paste_addr = cp_inst->coproc->vops->paste_addr(txwin); in coproc_mmap()
538 txwin->task_ref.vma = vma; in coproc_mmap()
542 mutex_unlock(&txwin->task_ref.mmap_mutex); in coproc_mmap()