Lines Matching refs:cpt_buf
707 void *cpt_buf; in vmci_host_do_ctx_get_cpt_state() local
720 &get_info.buf_size, &cpt_buf); in vmci_host_do_ctx_get_cpt_state()
722 void __user *ubuf = (void __user *)(uintptr_t)get_info.cpt_buf; in vmci_host_do_ctx_get_cpt_state()
723 retval = copy_to_user(ubuf, cpt_buf, get_info.buf_size); in vmci_host_do_ctx_get_cpt_state()
724 kfree(cpt_buf); in vmci_host_do_ctx_get_cpt_state()
739 void *cpt_buf; in vmci_host_do_ctx_set_cpt_state() local
750 cpt_buf = memdup_user((void __user *)(uintptr_t)set_info.cpt_buf, in vmci_host_do_ctx_set_cpt_state()
752 if (IS_ERR(cpt_buf)) in vmci_host_do_ctx_set_cpt_state()
753 return PTR_ERR(cpt_buf); in vmci_host_do_ctx_set_cpt_state()
757 set_info.buf_size, cpt_buf); in vmci_host_do_ctx_set_cpt_state()
761 kfree(cpt_buf); in vmci_host_do_ctx_set_cpt_state()