Home
last modified time | relevance | path

Searched refs:length_bytes (Results 1 – 8 of 8) sorted by relevance

/openbmc/qemu/crypto/
H A Dder.c89 uint8_t length_bytes = 0, header_byte; in qcrypto_der_encode_length() local
95 for (length_bytes = 1; max_length < src_len; length_bytes++) { in qcrypto_der_encode_length()
98 header_byte = length_bytes; in qcrypto_der_encode_length()
100 *dst_len = length_bytes + 1; in qcrypto_der_encode_length()
107 for (; length_bytes > 0; length_bytes--) { in qcrypto_der_encode_length()
108 *dst++ = ((src_len >> (length_bytes - 1) * 8) & 0xFF); in qcrypto_der_encode_length()
/openbmc/u-boot/tools/
H A Dsocfpgaimage.c122 uint32_t length_bytes) in sfp_build_header() argument
128 .length_u32 = cpu_to_le16(length_bytes / 4), in sfp_build_header()
137 .length_u8 = cpu_to_le32(length_bytes), in sfp_build_header()
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_bios.c474 u8 *bios, u32 length_bytes) in amdgpu_soc15_read_bios_from_rom() argument
484 if (length_bytes == 0) in amdgpu_soc15_read_bios_from_rom()
495 length_dw = ALIGN(length_bytes, 4) / 4; in amdgpu_soc15_read_bios_from_rom()
H A Dcik.c1013 u8 *bios, u32 length_bytes) in cik_read_bios_from_rom() argument
1021 if (length_bytes == 0) in cik_read_bios_from_rom()
1028 length_dw = ALIGN(length_bytes, 4) / 4; in cik_read_bios_from_rom()
H A Dvi.c636 u8 *bios, u32 length_bytes) in vi_read_bios_from_rom() argument
644 if (length_bytes == 0) in vi_read_bios_from_rom()
651 length_dw = ALIGN(length_bytes, 4) / 4; in vi_read_bios_from_rom()
H A Dsi.c1307 u8 *bios, u32 length_bytes) in si_read_bios_from_rom() argument
1314 if (length_bytes == 0) in si_read_bios_from_rom()
1321 length_dw = ALIGN(length_bytes, 4) / 4; in si_read_bios_from_rom()
H A Damdgpu.h387 u8 *bios, u32 length_bytes);
543 u8 *bios, u32 length_bytes);
/openbmc/qemu/hw/acpi/
H A Daml-build.c295 unsigned length_bytes; in build_prepend_package_length() local
298 length_bytes = 1; in build_prepend_package_length()
300 length_bytes = 2; in build_prepend_package_length()
302 length_bytes = 3; in build_prepend_package_length()
304 length_bytes = 4; in build_prepend_package_length()
317 length += length_bytes; in build_prepend_package_length()
320 switch (length_bytes) { in build_prepend_package_length()
345 byte = ((length_bytes - 1) << PACKAGE_LENGTH_1BYTE_SHIFT) | length; in build_prepend_package_length()