Lines Matching full:rc

74 	efx_rc_t rc;  in efx_asn1_parse_header_match_tag()  local
77 rc = EINVAL; in efx_asn1_parse_header_match_tag()
84 rc = ENOENT; in efx_asn1_parse_header_match_tag()
90 rc = EINVAL; in efx_asn1_parse_header_match_tag()
105 rc = EINVAL; in efx_asn1_parse_header_match_tag()
110 rc = EINVAL; in efx_asn1_parse_header_match_tag()
115 rc = E2BIG; in efx_asn1_parse_header_match_tag()
128 rc = E2BIG; in efx_asn1_parse_header_match_tag()
147 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_asn1_parse_header_match_tag()
149 return (rc); in efx_asn1_parse_header_match_tag()
158 efx_rc_t rc; in efx_asn1_enter_tag() local
161 rc = EINVAL; in efx_asn1_enter_tag()
167 rc = ENOTSUP; in efx_asn1_enter_tag()
170 rc = efx_asn1_parse_header_match_tag(cursor, tag); in efx_asn1_enter_tag()
171 if (rc != 0) { in efx_asn1_enter_tag()
187 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_asn1_enter_tag()
189 return (rc); in efx_asn1_enter_tag()
203 efx_rc_t rc; in efx_asn1_match_tag_value() local
206 rc = EINVAL; in efx_asn1_match_tag_value()
209 rc = efx_asn1_parse_header_match_tag(cursor, tag); in efx_asn1_match_tag_value()
210 if (rc != 0) { in efx_asn1_match_tag_value()
216 rc = EINVAL; in efx_asn1_match_tag_value()
221 rc = EINVAL; in efx_asn1_match_tag_value()
236 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_asn1_match_tag_value()
238 return (rc); in efx_asn1_match_tag_value()
247 efx_rc_t rc; in efx_asn1_skip_tag() local
250 rc = EINVAL; in efx_asn1_skip_tag()
254 rc = efx_asn1_parse_header_match_tag(cursor, tag); in efx_asn1_skip_tag()
255 if (rc != 0) { in efx_asn1_skip_tag()
267 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_asn1_skip_tag()
269 return (rc); in efx_asn1_skip_tag()
280 efx_rc_t rc; in efx_asn1_get_tag_value() local
283 rc = EINVAL; in efx_asn1_get_tag_value()
287 rc = efx_asn1_parse_header_match_tag(cursor, tag); in efx_asn1_get_tag_value()
288 if (rc != 0) { in efx_asn1_get_tag_value()
300 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_asn1_get_tag_value()
302 return (rc); in efx_asn1_get_tag_value()
337 efx_rc_t rc; in efx_check_signed_image_header() local
340 rc = EINVAL; in efx_check_signed_image_header()
347 rc = efx_asn1_enter_tag(&cursor, ASN1_TAG_SEQUENCE); in efx_check_signed_image_header()
348 if (rc != 0) in efx_check_signed_image_header()
352 rc = efx_asn1_match_tag_value(&cursor, ASN1_TAG_OBJ_ID, in efx_check_signed_image_header()
354 if (rc != 0) in efx_check_signed_image_header()
358 rc = efx_asn1_enter_tag(&cursor, ASN1_TAG_CONS_CONTEXT(0)); in efx_check_signed_image_header()
359 if (rc != 0) in efx_check_signed_image_header()
363 rc = efx_asn1_enter_tag(&cursor, ASN1_TAG_SEQUENCE); in efx_check_signed_image_header()
364 if (rc != 0) in efx_check_signed_image_header()
368 rc = efx_asn1_match_tag_value(&cursor, ASN1_TAG_INTEGER, in efx_check_signed_image_header()
370 if (rc != 0) in efx_check_signed_image_header()
374 rc = efx_asn1_skip_tag(&cursor, ASN1_TAG_SET); in efx_check_signed_image_header()
375 if (rc != 0) in efx_check_signed_image_header()
379 rc = efx_asn1_enter_tag(&cursor, ASN1_TAG_SEQUENCE); in efx_check_signed_image_header()
380 if (rc != 0) in efx_check_signed_image_header()
384 rc = efx_asn1_match_tag_value(&cursor, ASN1_TAG_OBJ_ID, in efx_check_signed_image_header()
386 if (rc != 0) in efx_check_signed_image_header()
390 rc = efx_asn1_enter_tag(&cursor, ASN1_TAG_CONS_CONTEXT(0)); in efx_check_signed_image_header()
391 if (rc != 0) in efx_check_signed_image_header()
400 rc = efx_asn1_get_tag_value(&cursor, ASN1_TAG_OCTET_STRING, in efx_check_signed_image_header()
402 if (rc != 0) in efx_check_signed_image_header()
406 rc = EINVAL; in efx_check_signed_image_header()
410 rc = EINVAL; in efx_check_signed_image_header()
414 rc = EINVAL; in efx_check_signed_image_header()
450 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_check_signed_image_header()
452 return (rc); in efx_check_signed_image_header()
463 efx_rc_t rc; in efx_check_unsigned_image() local
471 rc = ENOSPC; in efx_check_unsigned_image()
477 rc = EINVAL; in efx_check_unsigned_image()
486 rc = EINVAL; in efx_check_unsigned_image()
493 rc = ENOSPC; in efx_check_unsigned_image()
505 rc = EINVAL; in efx_check_unsigned_image()
520 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_check_unsigned_image()
522 return (rc); in efx_check_unsigned_image()
535 efx_rc_t rc; in efx_check_reflash_image() local
539 rc = EINVAL; in efx_check_reflash_image()
545 rc = EINVAL; in efx_check_reflash_image()
553 rc = efx_check_signed_image_header(bufferp, buffer_size, in efx_check_reflash_image()
555 if (rc == 0) { in efx_check_reflash_image()
568 rc = E2BIG; in efx_check_reflash_image()
574 rc = efx_check_unsigned_image(imagep, image_size); in efx_check_reflash_image()
575 if (rc != 0) in efx_check_reflash_image()
597 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_check_reflash_image()
599 return (rc); in efx_check_reflash_image()
616 efx_rc_t rc; in efx_build_signed_image_write_buffer() local
623 rc = EINVAL; in efx_build_signed_image_write_buffer()
634 rc = EINVAL; in efx_build_signed_image_write_buffer()
644 rc = EINVAL; in efx_build_signed_image_write_buffer()
652 rc = EINVAL; in efx_build_signed_image_write_buffer()
660 rc = EINVAL; in efx_build_signed_image_write_buffer()
668 rc = EINVAL; in efx_build_signed_image_write_buffer()
676 rc = EINVAL; in efx_build_signed_image_write_buffer()
741 rc = ENOSPC; in efx_build_signed_image_write_buffer()
756 rc = ENOSPC; in efx_build_signed_image_write_buffer()
768 rc = ENOSPC; in efx_build_signed_image_write_buffer()
781 rc = ENOSPC; in efx_build_signed_image_write_buffer()
795 rc = ENOSPC; in efx_build_signed_image_write_buffer()
808 rc = ENOSPC; in efx_build_signed_image_write_buffer()
826 rc = ENOSPC; in efx_build_signed_image_write_buffer()
834 rc = ENOSPC; in efx_build_signed_image_write_buffer()
846 rc = ENOSPC; in efx_build_signed_image_write_buffer()
859 rc = ENOSPC; in efx_build_signed_image_write_buffer()
901 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_build_signed_image_write_buffer()
903 return (rc); in efx_build_signed_image_write_buffer()