Lines Matching refs:EFAULT
261 return -EFAULT; in vmci_host_get_version()
299 return -EFAULT; in vmci_host_do_init_context()
337 retval = -EFAULT; in vmci_host_do_init_context()
367 return -EFAULT; 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()
423 return -EFAULT; in vmci_host_do_receive_datagram()
434 return -EFAULT; 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()
458 return -EFAULT; in vmci_host_do_alloc_queuepair()
480 return -EFAULT; in vmci_host_do_alloc_queuepair()
503 return -EFAULT; in vmci_host_do_alloc_queuepair()
528 return -EFAULT; in vmci_host_do_queuepair_setva()
547 return put_user(result, &info->result) ? -EFAULT : 0; in vmci_host_do_queuepair_setva()
571 return -EFAULT; in vmci_host_do_queuepair_setpf()
595 return -EFAULT; in vmci_host_do_queuepair_setpf()
621 return -EFAULT; in vmci_host_do_queuepair_setpf()
642 return -EFAULT; in vmci_host_do_qp_detach()
651 return put_user(result, &info->result) ? -EFAULT : 0; in vmci_host_do_qp_detach()
669 return -EFAULT; in vmci_host_do_ctx_add_notify()
674 return put_user(result, &info->result) ? -EFAULT : 0; in vmci_host_do_ctx_add_notify()
692 return -EFAULT; in vmci_host_do_ctx_remove_notify()
698 return put_user(result, &info->result) ? -EFAULT : 0; in vmci_host_do_ctx_remove_notify()
716 return -EFAULT; in vmci_host_do_ctx_get_cpt_state()
727 return -EFAULT; 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()
748 return -EFAULT; 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()
771 return put_user(VMCI_HOST_CONTEXT_ID, u32ptr) ? -EFAULT : 0; in vmci_host_do_get_context_id()
786 return -EFAULT; in vmci_host_do_set_notify()
798 -EFAULT : 0; in vmci_host_do_set_notify()
819 return -EFAULT; in vmci_host_do_notify_resource()
848 return copy_to_user(uptr, &info, sizeof(info)) ? -EFAULT : 0; in vmci_host_do_notify_resource()
873 return -EFAULT; in vmci_host_do_recv_notifications()
885 return copy_to_user(uptr, &info, sizeof(info)) ? -EFAULT : 0; in vmci_host_do_recv_notifications()
898 retval = -EFAULT; in vmci_host_do_recv_notifications()