Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 25 of 44) sorted by relevance

12

/trusted-firmware-a/tools/cert_create/src/
A Dsha.c19 int bytes; in sha_file() local
35 while ((bytes = fread(data, 1, BUFFER_SIZE, inFile)) != 0) { in sha_file()
36 SHA384_Update(&sha512Context, data, bytes); in sha_file()
41 while ((bytes = fread(data, 1, BUFFER_SIZE, inFile)) != 0) { in sha_file()
42 SHA512_Update(&sha512Context, data, bytes); in sha_file()
47 while ((bytes = fread(data, 1, BUFFER_SIZE, inFile)) != 0) { in sha_file()
48 SHA256_Update(&shaContext, data, bytes); in sha_file()
/trusted-firmware-a/tools/nxp/create_pbl/
A Dbyte_swap.c36 int bytes = 0; in do_byteswap() local
47 bytes = ftell(fp); in do_byteswap()
49 append_bytes = EIGHT_BYTE_ALIGN - (bytes % EIGHT_BYTE_ALIGN); in do_byteswap()
57 bytes += append_bytes; in do_byteswap()
61 while (bytes > 0) { in do_byteswap()
85 bytes -= EIGHT_BYTE_ALIGN; in do_byteswap()
/trusted-firmware-a/drivers/brcm/spi/
A Diproc_qspi.c165 if (bytes & 1) in mspi_xfer()
172 while (bytes) { in mspi_xfer()
181 chunk = MIN(bytes, NUM_CDRAM_BYTES * 2); in mspi_xfer()
183 bytes -= chunk; in mspi_xfer()
199 chunk = MIN(bytes, NUM_CDRAM_BYTES); in mspi_xfer()
201 bytes -= chunk; in mspi_xfer()
223 if (bytes == 0 && (flag & SPI_XFER_END)) in mspi_xfer()
229 if (bytes == 0 && (flag & SPI_XFER_END)) in mspi_xfer()
280 uint32_t bytes = bitlen / 8; in iproc_qspi_xfer() local
309 if (bytes) in iproc_qspi_xfer()
[all …]
/trusted-firmware-a/drivers/io/
A Dio_semihosting.c132 size_t bytes = length; in sh_file_read() local
140 sh_result = semihosting_file_read(file_handle, &bytes, buffer); in sh_file_read()
143 *length_read = (bytes != length) ? bytes : length; in sh_file_read()
157 size_t bytes = length; in sh_file_write() local
164 sh_result = semihosting_file_write(file_handle, &bytes, buffer); in sh_file_write()
166 *length_written = length - bytes; in sh_file_write()
/trusted-firmware-a/drivers/nxp/crypto/caam/src/
A Dcaam.c290 int bytes = 0; in get_random() local
306 bytes = 4; in get_random()
308 bytes = 8; in get_random()
313 ret = get_rand_bytes_hw(rand_byte, bytes); in get_random()
315 for (i = 0; i < bytes; i++) { in get_random()
320 rand_byte_swp[i] = rand_byte[bytes - i - 1]; in get_random()
A Drng.c216 int get_rand_bytes_hw(uint8_t *bytes, int byte_len) in get_rand_bytes_hw() argument
244 ret_code = hw_rng_generate(0, 0, bytes, byte_len, state_handle); in get_rand_bytes_hw()
/trusted-firmware-a/docs/components/
A Dgranule-protection-tables-design.rst168 * ``GPCCR_PPS_4GB`` (4GB protected space, 0x100000000 bytes)
170 * ``GPCCR_PPS_1TB`` (1TB protected space, 0x10000000000 bytes)
178 * ``GPCCR_PGS_4K`` (4KB granules, 0x1000 bytes)
179 * ``GPCCR_PGS_16K`` (16KB granules, 0x4000 bytes)
180 * ``GPCCR_PGS_64K`` (64KB granules, 0x10000 bytes)
184 * ``GPCCR_L0GPTSZ_30BITS`` (1GB regions, 0x40000000 bytes)
185 * ``GPCCR_L0GPTSZ_34BITS`` (16GB regions, 0x400000000 bytes)
186 * ``GPCCR_L0GPTSZ_36BITS`` (64GB regions, 0x1000000000 bytes)
198 (8 bytes). ((PPS / L0GPTSZ) * 8)
224 tables must be aligned to 4096 bytes.
[all …]
A Darm-sip-service.rst256 This operation reads a number of bytes from a file descriptor obtained by
266 uint32_t Number of bytes to read
280 uint32_t w1: number of bytes read on success.
A Dxlat-tables-lib-v2-design.rst162 Size in bytes of the virtual address space to map using this context. This
169 Size in bytes of the physical address space to map using this context.
/trusted-firmware-a/docs/build/TF-A_2.5/_sources/components/
A Dgranule-protection-tables-design.rst.txt168 * ``GPCCR_PPS_4GB`` (4GB protected space, 0x100000000 bytes)
170 * ``GPCCR_PPS_1TB`` (1TB protected space, 0x10000000000 bytes)
178 * ``GPCCR_PGS_4K`` (4KB granules, 0x1000 bytes)
179 * ``GPCCR_PGS_16K`` (16KB granules, 0x4000 bytes)
180 * ``GPCCR_PGS_64K`` (64KB granules, 0x10000 bytes)
184 * ``GPCCR_L0GPTSZ_30BITS`` (1GB regions, 0x40000000 bytes)
185 * ``GPCCR_L0GPTSZ_34BITS`` (16GB regions, 0x400000000 bytes)
186 * ``GPCCR_L0GPTSZ_36BITS`` (64GB regions, 0x1000000000 bytes)
198 (8 bytes). ((PPS / L0GPTSZ) * 8)
224 tables must be aligned to 4096 bytes.
[all …]
A Darm-sip-service.rst.txt256 This operation reads a number of bytes from a file descriptor obtained by
266 uint32_t Number of bytes to read
280 uint32_t w1: number of bytes read on success.
/trusted-firmware-a/tools/encrypt_fw/src/
A Dencrypt.c31 int bytes, enc_len = 0, i, j, ret = 0; in gcm_encrypt() local
99 while ((bytes = fread(data, 1, BUFFER_SIZE, ip_file)) != 0) { in gcm_encrypt()
100 ret = EVP_EncryptUpdate(ctx, enc_data, &enc_len, data, bytes); in gcm_encrypt()
/trusted-firmware-a/plat/qti/common/src/
A Dspmi_arb.c70 uint8_t bytes) in arb_command() argument
73 (addr & 0xff) << 4 | (bytes - 1)); in arb_command()
/trusted-firmware-a/include/drivers/brcm/
A Docotp.h24 int bcm_otpc_read(unsigned int offset, void *val, uint32_t bytes,
/trusted-firmware-a/include/drivers/nxp/crypto/caam/
A Dcaam.h42 int get_rand_bytes_hw(uint8_t *bytes, int byte_len);
/trusted-firmware-a/drivers/st/fmc/
A Dstm32_fmc2_nand.c350 uint8_t bytes[4]; in stm32_fmc2_ham_correct() member
368 xor_ecc.bytes[2] = xor_ecc_3b; in stm32_fmc2_ham_correct()
369 xor_ecc.bytes[1] = xor_ecc_2b; in stm32_fmc2_ham_correct()
370 xor_ecc.bytes[0] = xor_ecc_1b; in stm32_fmc2_ham_correct()
509 unsigned int eccbytes = nand->ecc.bytes; in stm32_fmc2_read_page()
760 nand->ecc.bytes = 3; in stm32_fmc2_setup()
765 nand->ecc.bytes = 13; in stm32_fmc2_setup()
770 nand->ecc.bytes = 7; in stm32_fmc2_setup()
775 nand->ecc.bytes++; in stm32_fmc2_setup()
/trusted-firmware-a/include/drivers/
A Dnand.h20 unsigned int bytes; /* ECC bytes per step */ member
/trusted-firmware-a/drivers/brcm/
A Docotp.c148 int bcm_otpc_read(unsigned int offset, void *val, uint32_t bytes, in bcm_otpc_read() argument
164 for (bytes_read = 0; (bytes_read + priv->map->word_size) <= bytes;) { in bcm_otpc_read()
/trusted-firmware-a/docs/build/TF-A_2.5/_sources/plat/
A Dwarp7.rst.txt130 bl2.imx is flashed @ 1024 bytes
131 warp7.fip is flash @ 1048576 bytes
/trusted-firmware-a/docs/plat/
A Dwarp7.rst130 bl2.imx is flashed @ 1024 bytes
131 warp7.fip is flash @ 1048576 bytes
/trusted-firmware-a/plat/allwinner/common/
A Darisc_off.S10 # $ or1k-elf-objcopy -O binary --reverse-bytes=4 turn_off_core.o \
/trusted-firmware-a/docs/build/latex/
A DLatinRules.xdy13 ;; observed not to use bytes with octal encoding 0o266 or higher.
15 ;; So here we use only 0o266 or higher bytes.
/trusted-firmware-a/docs/design_documents/
A Dmeasured_boot_poc.rst492 - **CFG_TA_EVENT_LOG_SIZE**: Defines the size, in bytes, of the larger event log that
495 is not defined, the fTPM falls back to a default value of 1024 bytes, which is enough
/trusted-firmware-a/docs/build/TF-A_2.5/_sources/design_documents/
A Dmeasured_boot_poc.rst.txt492 - **CFG_TA_EVENT_LOG_SIZE**: Defines the size, in bytes, of the larger event log that
495 is not defined, the fTPM falls back to a default value of 1024 bytes, which is enough
/trusted-firmware-a/docs/build/TF-A_2.5/_sources/plat/arm/fvp/
A Dindex.rst.txt180 One way to do that is to create an 8-byte file containing all zero bytes using
269 # Skip uboot header (64 bytes)

Completed in 35 milliseconds

12