// SPDX-License-Identifier: GPL-2.0-only /* * vpd_decode.c * * Google VPD decoding routines. * * Copyright 2017 Google Inc. */ #include "vpd_decode.h" static int vpd_decode_len(const u32 max_len, const u8 *in, u32 *length, u32 *decoded_len) { … } static int vpd_decode_entry(const u32 max_len, const u8 *input_buf, u32 *_consumed, const u8 **entry, u32 *entry_len) { … } int vpd_decode_string(const u32 max_len, const u8 *input_buf, u32 *consumed, vpd_decode_callback callback, void *callback_arg) { … }