Lines Matching defs:error_code
474 int orangefs_normalize_to_errno(__s32 error_code)
479 if (error_code == 0) {
485 } else if (error_code > 0) {
488 error_code = -error_code;
500 if ((-error_code) & ORANGEFS_NON_ERRNO_ERROR_BIT) {
501 if (((-error_code) &
508 error_code = -ETIMEDOUT;
513 error_code);
514 error_code = -EINVAL;
518 } else if ((-error_code) & ORANGEFS_ERROR_BIT) {
519 i = (-error_code) & ~(ORANGEFS_ERROR_BIT|ORANGEFS_ERROR_CLASS_BITS);
521 error_code = -PINT_errno_mapping[i];
523 error_code = -EINVAL;
531 error_code = -EINVAL;
533 return error_code;