Lines Matching defs:cp_inst
267 struct coproc_instance *cp_inst;
269 cp_inst = kzalloc(sizeof(*cp_inst), GFP_KERNEL);
270 if (!cp_inst)
273 cp_inst->coproc = container_of(inode->i_cdev, struct coproc_dev,
275 fp->private_data = cp_inst;
284 struct coproc_instance *cp_inst;
288 cp_inst = fp->private_data;
293 if (cp_inst->txwin)
307 if (!cp_inst->coproc->vops || !cp_inst->coproc->vops->open_win) {
312 txwin = cp_inst->coproc->vops->open_win(uattr.vas_id, uattr.flags,
313 cp_inst->coproc->cop_type);
321 cp_inst->txwin = txwin;
328 struct coproc_instance *cp_inst = fp->private_data;
331 if (cp_inst->txwin) {
332 if (cp_inst->coproc->vops &&
333 cp_inst->coproc->vops->close_win) {
334 rc = cp_inst->coproc->vops->close_win(cp_inst->txwin);
338 cp_inst->txwin = NULL;
341 kfree(cp_inst);
399 struct coproc_instance *cp_inst = fp->private_data;
408 if (!cp_inst || !cp_inst->txwin) {
413 txwin = cp_inst->txwin;
436 paste_addr = cp_inst->coproc->vops->paste_addr(txwin);
473 struct coproc_instance *cp_inst = fp->private_data;
480 txwin = cp_inst->txwin;
494 if (!cp_inst->coproc->vops || !cp_inst->coproc->vops->paste_addr) {
517 paste_addr = cp_inst->coproc->vops->paste_addr(txwin);