Lines Matching defs:error
45 * Return: A success or error code.
61 * vdo_status_to_errno() - Given an error code, return a value we can return to the OS.
62 * @error: The error code to convert.
64 * The input error code may be a system-generated value (such as -EIO), an errno macro used in our
68 * Return: A system error code value.
70 int vdo_status_to_errno(int error)
75 /* 0 is success, negative a system error code */
76 if (likely(error <= 0))
77 return error;
78 if (error < 1024)
79 return -error;
81 /* VDO or UDS error */
82 switch (error) {
89 __func__, error,
90 uds_string_error_name(error, error_name, sizeof(error_name)),
91 uds_string_error(error, error_message, sizeof(error_message)));