Lines Matching refs:uptr

256 				 unsigned int cmd, void __user *uptr)  in vmci_host_get_version()  argument
259 int __user *vptr = uptr; in vmci_host_get_version()
291 void __user *uptr) in vmci_host_do_init_context() argument
297 if (copy_from_user(&init_block, uptr, sizeof(init_block))) { in vmci_host_do_init_context()
333 if (copy_to_user(uptr, &init_block, sizeof(init_block))) { in vmci_host_do_init_context()
355 void __user *uptr) in vmci_host_do_send_datagram() argument
366 if (copy_from_user(&send_info, uptr, sizeof(send_info))) in vmci_host_do_send_datagram()
405 return copy_to_user(uptr, &send_info, sizeof(send_info)) ? -EFAULT : 0; in vmci_host_do_send_datagram()
410 void __user *uptr) in vmci_host_do_receive_datagram() argument
422 if (copy_from_user(&recv_info, uptr, sizeof(recv_info))) 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()
442 void __user *uptr) in vmci_host_do_alloc_queuepair() argument
455 struct vmci_qp_alloc_info_vmvm __user *info = uptr; in vmci_host_do_alloc_queuepair()
457 if (copy_from_user(&alloc_info, uptr, sizeof(alloc_info))) in vmci_host_do_alloc_queuepair()
476 struct vmci_qp_alloc_info __user *info = uptr; in vmci_host_do_alloc_queuepair()
479 if (copy_from_user(&alloc_info, uptr, sizeof(alloc_info))) in vmci_host_do_alloc_queuepair()
511 void __user *uptr) in vmci_host_do_queuepair_setva() argument
514 struct vmci_qp_set_va_info __user *info = uptr; in vmci_host_do_queuepair_setva()
527 if (copy_from_user(&set_va_info, uptr, sizeof(set_va_info))) in vmci_host_do_queuepair_setva()
552 void __user *uptr) in vmci_host_do_queuepair_setpf() argument
555 struct vmci_qp_page_file_info __user *info = uptr; in vmci_host_do_queuepair_setpf()
570 if (copy_from_user(&page_file_info, uptr, sizeof(*info))) in vmci_host_do_queuepair_setpf()
630 void __user *uptr) in vmci_host_do_qp_detach() argument
633 struct vmci_qp_dtch_info __user *info = uptr; in vmci_host_do_qp_detach()
641 if (copy_from_user(&detach_info, uptr, sizeof(detach_info))) in vmci_host_do_qp_detach()
656 void __user *uptr) in vmci_host_do_ctx_add_notify() argument
659 struct vmci_ctx_info __user *info = uptr; in vmci_host_do_ctx_add_notify()
668 if (copy_from_user(&ar_info, uptr, sizeof(ar_info))) in vmci_host_do_ctx_add_notify()
679 void __user *uptr) in vmci_host_do_ctx_remove_notify() argument
682 struct vmci_ctx_info __user *info = uptr; in vmci_host_do_ctx_remove_notify()
691 if (copy_from_user(&ar_info, uptr, sizeof(ar_info))) in vmci_host_do_ctx_remove_notify()
703 void __user *uptr) in vmci_host_do_ctx_get_cpt_state() argument
715 if (copy_from_user(&get_info, uptr, sizeof(get_info))) 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()
735 void __user *uptr) in vmci_host_do_ctx_set_cpt_state() argument
747 if (copy_from_user(&set_info, uptr, sizeof(set_info))) in vmci_host_do_ctx_set_cpt_state()
759 retval = copy_to_user(uptr, &set_info, sizeof(set_info)) ? -EFAULT : 0; in vmci_host_do_ctx_set_cpt_state()
767 void __user *uptr) in vmci_host_do_get_context_id() argument
769 u32 __user *u32ptr = uptr; in vmci_host_do_get_context_id()
776 void __user *uptr) in vmci_host_do_set_notify() argument
785 if (copy_from_user(&notify_info, uptr, sizeof(notify_info))) in vmci_host_do_set_notify()
797 return copy_to_user(uptr, &notify_info, sizeof(notify_info)) ? in vmci_host_do_set_notify()
803 void __user *uptr) in vmci_host_do_notify_resource() argument
818 if (copy_from_user(&info, uptr, sizeof(info))) in vmci_host_do_notify_resource()
848 return copy_to_user(uptr, &info, sizeof(info)) ? -EFAULT : 0; in vmci_host_do_notify_resource()
853 void __user *uptr) in vmci_host_do_recv_notifications() argument
872 if (copy_from_user(&info, uptr, sizeof(info))) in vmci_host_do_recv_notifications()
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()
913 vmci_host_dev, name, uptr); \ in vmci_host_unlocked_ioctl()
917 void __user *uptr = (void __user *)ioarg; in vmci_host_unlocked_ioctl() local
953 return vmci_host_get_version(vmci_host_dev, iocmd, uptr); in vmci_host_unlocked_ioctl()