// SPDX-License-Identifier: ISC /* * Copyright (c) 2019 Broadcom */ #include <linux/unaligned.h> #include <linux/math.h> #include <linux/string.h> #include <linux/bug.h> #include "xtlv.h" static int brcmf_xtlv_header_size(u16 opts) { … } int brcmf_xtlv_data_size(int dlen, u16 opts) { … } void brcmf_xtlv_pack_header(struct brcmf_xtlv *xtlv, u16 id, u16 len, const u8 *data, u16 opts) { … }