Lines Matching refs:copy_to_user
205 *retval = copy_to_user(user_buf_uva, in drv_cp_harray_to_user()
330 if (copy_to_user(uptr, &init_block, sizeof(init_block))) { in vmci_host_do_init_context()
400 return copy_to_user(uptr, &send_info, sizeof(send_info)) ? -EFAULT : 0; in vmci_host_do_send_datagram()
426 retval = copy_to_user(ubuf, dg, VMCI_DG_SIZE(dg)); in vmci_host_do_receive_datagram()
432 return copy_to_user(uptr, &recv_info, sizeof(recv_info)) ? -EFAULT : 0; in vmci_host_do_receive_datagram()
718 retval = copy_to_user(ubuf, cpt_buf, get_info.buf_size); in vmci_host_do_ctx_get_cpt_state()
725 return copy_to_user(uptr, &get_info, sizeof(get_info)) ? -EFAULT : 0; in vmci_host_do_ctx_get_cpt_state()
754 retval = copy_to_user(uptr, &set_info, sizeof(set_info)) ? -EFAULT : 0; in vmci_host_do_ctx_set_cpt_state()
792 return copy_to_user(uptr, ¬ify_info, sizeof(notify_info)) ? in vmci_host_do_set_notify()
843 return copy_to_user(uptr, &info, sizeof(info)) ? -EFAULT : 0; in vmci_host_do_notify_resource()
880 return copy_to_user(uptr, &info, sizeof(info)) ? -EFAULT : 0; in vmci_host_do_recv_notifications()
892 if (!retval && copy_to_user(uptr, &info, sizeof(info))) in vmci_host_do_recv_notifications()