Home
last modified time | relevance | path

Searched refs:hdr_copy (Results 1 – 2 of 2) sorted by relevance

/openbmc/qemu/crypto/
H A Dblock-luks.c418 g_autofree QCryptoBlockLUKSHeader *hdr_copy = NULL; in qcrypto_block_luks_store_header() local
421 hdr_copy = g_new0(QCryptoBlockLUKSHeader, 1); in qcrypto_block_luks_store_header()
422 memcpy(hdr_copy, &luks->header, sizeof(QCryptoBlockLUKSHeader)); in qcrypto_block_luks_store_header()
424 qcrypto_block_luks_to_disk_endian(hdr_copy); in qcrypto_block_luks_store_header()
427 writefunc(block, 0, (const uint8_t *)hdr_copy, sizeof(*hdr_copy), in qcrypto_block_luks_store_header()
/openbmc/linux/kernel/bpf/
H A Dbtf.c5244 u32 hdr_len, hdr_copy, btf_data_size; in btf_parse_hdr() local
5276 hdr_copy = min_t(u32, hdr_len, sizeof(btf->hdr)); in btf_parse_hdr()
5277 memcpy(&btf->hdr, btf->data, hdr_copy); in btf_parse_hdr()