Lines Matching refs:copy_to_user
210 *retval = copy_to_user(user_buf_uva, in drv_cp_harray_to_user()
333 if (copy_to_user(uptr, &init_block, sizeof(init_block))) { in vmci_host_do_init_context()
405 return copy_to_user(uptr, &send_info, sizeof(send_info)) ? -EFAULT : 0; in vmci_host_do_send_datagram()
431 retval = copy_to_user(ubuf, dg, VMCI_DG_SIZE(dg)); in vmci_host_do_receive_datagram()
437 return copy_to_user(uptr, &recv_info, sizeof(recv_info)) ? -EFAULT : 0; in vmci_host_do_receive_datagram()
723 retval = copy_to_user(ubuf, cpt_buf, get_info.buf_size); in vmci_host_do_ctx_get_cpt_state()
730 return copy_to_user(uptr, &get_info, sizeof(get_info)) ? -EFAULT : 0; in vmci_host_do_ctx_get_cpt_state()
759 retval = copy_to_user(uptr, &set_info, sizeof(set_info)) ? -EFAULT : 0; in vmci_host_do_ctx_set_cpt_state()
797 return copy_to_user(uptr, ¬ify_info, sizeof(notify_info)) ? in vmci_host_do_set_notify()
848 return copy_to_user(uptr, &info, sizeof(info)) ? -EFAULT : 0; in vmci_host_do_notify_resource()
885 return copy_to_user(uptr, &info, sizeof(info)) ? -EFAULT : 0; in vmci_host_do_recv_notifications()
897 if (!retval && copy_to_user(uptr, &info, sizeof(info))) in vmci_host_do_recv_notifications()