Lines Matching refs:cpt_buf
714 void *cpt_buf; in vmci_host_do_ctx_get_cpt_state() local
727 &get_info.buf_size, &cpt_buf); in vmci_host_do_ctx_get_cpt_state()
729 void __user *ubuf = (void __user *)(uintptr_t)get_info.cpt_buf; in vmci_host_do_ctx_get_cpt_state()
730 retval = copy_to_user(ubuf, cpt_buf, get_info.buf_size); in vmci_host_do_ctx_get_cpt_state()
731 kfree(cpt_buf); in vmci_host_do_ctx_get_cpt_state()
746 void *cpt_buf; in vmci_host_do_ctx_set_cpt_state() local
757 cpt_buf = kmalloc(set_info.buf_size, GFP_KERNEL); in vmci_host_do_ctx_set_cpt_state()
758 if (!cpt_buf) { in vmci_host_do_ctx_set_cpt_state()
765 if (copy_from_user(cpt_buf, (void __user *)(uintptr_t)set_info.cpt_buf, in vmci_host_do_ctx_set_cpt_state()
773 set_info.buf_size, cpt_buf); in vmci_host_do_ctx_set_cpt_state()
778 kfree(cpt_buf); in vmci_host_do_ctx_set_cpt_state()