Lines Matching refs:EFAULT

266 			return -EFAULT;  in vmci_host_get_version()
304 return -EFAULT; in vmci_host_do_init_context()
342 retval = -EFAULT; in vmci_host_do_init_context()
370 return -EFAULT; in vmci_host_do_send_datagram()
395 return -EFAULT; in vmci_host_do_send_datagram()
414 return copy_to_user(uptr, &send_info, sizeof(send_info)) ? -EFAULT : 0; in vmci_host_do_send_datagram()
432 return -EFAULT; in vmci_host_do_receive_datagram()
443 return -EFAULT; in vmci_host_do_receive_datagram()
446 return copy_to_user(uptr, &recv_info, sizeof(recv_info)) ? -EFAULT : 0; in vmci_host_do_receive_datagram()
470 return -EFAULT; in vmci_host_do_alloc_queuepair()
492 return -EFAULT; in vmci_host_do_alloc_queuepair()
515 return -EFAULT; in vmci_host_do_alloc_queuepair()
540 return -EFAULT; in vmci_host_do_queuepair_setva()
559 return put_user(result, &info->result) ? -EFAULT : 0; in vmci_host_do_queuepair_setva()
583 return -EFAULT; in vmci_host_do_queuepair_setpf()
607 return -EFAULT; in vmci_host_do_queuepair_setpf()
633 return -EFAULT; in vmci_host_do_queuepair_setpf()
654 return -EFAULT; in vmci_host_do_qp_detach()
663 return put_user(result, &info->result) ? -EFAULT : 0; in vmci_host_do_qp_detach()
681 return -EFAULT; in vmci_host_do_ctx_add_notify()
686 return put_user(result, &info->result) ? -EFAULT : 0; in vmci_host_do_ctx_add_notify()
704 return -EFAULT; in vmci_host_do_ctx_remove_notify()
710 return put_user(result, &info->result) ? -EFAULT : 0; in vmci_host_do_ctx_remove_notify()
728 return -EFAULT; in vmci_host_do_ctx_get_cpt_state()
739 return -EFAULT; in vmci_host_do_ctx_get_cpt_state()
742 return copy_to_user(uptr, &get_info, sizeof(get_info)) ? -EFAULT : 0; in vmci_host_do_ctx_get_cpt_state()
760 return -EFAULT; in vmci_host_do_ctx_set_cpt_state()
772 retval = -EFAULT; in vmci_host_do_ctx_set_cpt_state()
780 retval = copy_to_user(uptr, &set_info, sizeof(set_info)) ? -EFAULT : 0; in vmci_host_do_ctx_set_cpt_state()
793 return put_user(VMCI_HOST_CONTEXT_ID, u32ptr) ? -EFAULT : 0; in vmci_host_do_get_context_id()
808 return -EFAULT; in vmci_host_do_set_notify()
820 -EFAULT : 0; in vmci_host_do_set_notify()
841 return -EFAULT; in vmci_host_do_notify_resource()
870 return copy_to_user(uptr, &info, sizeof(info)) ? -EFAULT : 0; in vmci_host_do_notify_resource()
895 return -EFAULT; in vmci_host_do_recv_notifications()
907 return copy_to_user(uptr, &info, sizeof(info)) ? -EFAULT : 0; in vmci_host_do_recv_notifications()
920 retval = -EFAULT; in vmci_host_do_recv_notifications()