Lines Matching refs:cp_inst

266 	struct coproc_instance *cp_inst;  in coproc_open()  local
268 cp_inst = kzalloc(sizeof(*cp_inst), GFP_KERNEL); in coproc_open()
269 if (!cp_inst) in coproc_open()
272 cp_inst->coproc = container_of(inode->i_cdev, struct coproc_dev, in coproc_open()
274 fp->private_data = cp_inst; in coproc_open()
283 struct coproc_instance *cp_inst; in coproc_ioc_tx_win_open() local
287 cp_inst = fp->private_data; in coproc_ioc_tx_win_open()
292 if (cp_inst->txwin) in coproc_ioc_tx_win_open()
306 if (!cp_inst->coproc->vops || !cp_inst->coproc->vops->open_win) { 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()
312 cp_inst->coproc->cop_type); in coproc_ioc_tx_win_open()
320 cp_inst->txwin = txwin; in coproc_ioc_tx_win_open()
327 struct coproc_instance *cp_inst = fp->private_data; in coproc_release() local
330 if (cp_inst->txwin) { in coproc_release()
331 if (cp_inst->coproc->vops && in coproc_release()
332 cp_inst->coproc->vops->close_win) { 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()
340 kfree(cp_inst); in coproc_release()
398 struct coproc_instance *cp_inst = fp->private_data; 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()
437 paste_addr = cp_inst->coproc->vops->paste_addr(txwin); in vas_mmap_fault()
474 struct coproc_instance *cp_inst = fp->private_data; in coproc_mmap() local
481 txwin = cp_inst->txwin; in coproc_mmap()
495 if (!cp_inst->coproc->vops || !cp_inst->coproc->vops->paste_addr) { in coproc_mmap()
518 paste_addr = cp_inst->coproc->vops->paste_addr(txwin); in coproc_mmap()