Lines Matching refs:cpt_buf
719 void *cpt_buf; in vmci_host_do_ctx_get_cpt_state() local
732 &get_info.buf_size, &cpt_buf); in vmci_host_do_ctx_get_cpt_state()
734 void __user *ubuf = (void __user *)(uintptr_t)get_info.cpt_buf; in vmci_host_do_ctx_get_cpt_state()
735 retval = copy_to_user(ubuf, cpt_buf, get_info.buf_size); in vmci_host_do_ctx_get_cpt_state()
736 kfree(cpt_buf); in vmci_host_do_ctx_get_cpt_state()
751 void *cpt_buf; in vmci_host_do_ctx_set_cpt_state() local
762 cpt_buf = kmalloc(set_info.buf_size, GFP_KERNEL); in vmci_host_do_ctx_set_cpt_state()
763 if (!cpt_buf) { in vmci_host_do_ctx_set_cpt_state()
770 if (copy_from_user(cpt_buf, (void __user *)(uintptr_t)set_info.cpt_buf, in vmci_host_do_ctx_set_cpt_state()
778 set_info.buf_size, cpt_buf); in vmci_host_do_ctx_set_cpt_state()
783 kfree(cpt_buf); in vmci_host_do_ctx_set_cpt_state()