Home
last modified time | relevance | path

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

12

/rk3399_ARM-atf/tools/cert_create/src/
H A Dsha.c33 int bytes; in sha_file() local
77 while ((bytes = fread(data, 1, BUFFER_SIZE, inFile)) != 0) { in sha_file()
78 EVP_DigestUpdate(mdctx, data, bytes); in sha_file()
95 while ((bytes = fread(data, 1, BUFFER_SIZE, inFile)) != 0) { in sha_file()
96 SHA384_Update(&sha512Context, data, bytes); in sha_file()
101 while ((bytes = fread(data, 1, BUFFER_SIZE, inFile)) != 0) { in sha_file()
102 SHA512_Update(&sha512Context, data, bytes); in sha_file()
107 while ((bytes = fread(data, 1, BUFFER_SIZE, inFile)) != 0) { in sha_file()
108 SHA256_Update(&shaContext, data, bytes); in sha_file()
/rk3399_ARM-atf/drivers/gpio/
H A Dgpio_spi.c61 static void xfer(unsigned int bytes, const void *out, void *in, int cpol, int cpha) in xfer() argument
63 for (unsigned int j = 0U; j < bytes; j++) { in xfer()
91 static int gpio_spi_xfer(unsigned int bytes, const void *out, void *in) in gpio_spi_xfer() argument
99 xfer(bytes, out, in, 0, 0); in gpio_spi_xfer()
102 xfer(bytes, out, in, 0, 1); in gpio_spi_xfer()
105 xfer(bytes, out, in, 1, 0); in gpio_spi_xfer()
108 xfer(bytes, out, in, 1, 1); in gpio_spi_xfer()
/rk3399_ARM-atf/tools/nxp/create_pbl/
H 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()
/rk3399_ARM-atf/drivers/brcm/spi/
H A Diproc_qspi.c148 static int mspi_xfer(struct bcmspi_priv *priv, uint32_t bytes, in mspi_xfer() argument
165 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
[all …]
/rk3399_ARM-atf/drivers/io/
H 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()
/rk3399_ARM-atf/plat/imx/imx8m/
H A Dimx_hab.c66 enum hab_status (*check_target)(enum hab_target type, const void *start, size_t bytes);
68 size_t *bytes, hab_loader_callback_f_t loader);
73 uint8_t *event, size_t *bytes);
77 size_t *bytes, hab_loader_callback_f_t loader);
80 size_t *bytes, hab_loader_callback_f_t loader, uint32_t srkmask, int skip_dcd);
/rk3399_ARM-atf/drivers/nxp/crypto/caam/src/
H 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()
H 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()
/rk3399_ARM-atf/docs/components/
H A Dgranule-protection-tables-design.rst198 * ``GPCCR_PPS_4GB`` (4GB protected space, 0x100000000 bytes)
199 * ``GPCCR_PPS_64GB`` (64GB protected space, 0x1000000000 bytes)
200 * ``GPCCR_PPS_1TB`` (1TB protected space, 0x10000000000 bytes)
201 * ``GPCCR_PPS_4TB`` (4TB protected space, 0x40000000000 bytes)
202 * ``GPCCR_PPS_16TB`` (16TB protected space, 0x100000000000 bytes)
203 * ``GPCCR_PPS_256TB`` (256TB protected space, 0x1000000000000 bytes)
204 * ``GPCCR_PPS_4PB`` (4PB protected space, 0x10000000000000 bytes)
208 * ``GPCCR_PGS_4K`` (4KB granules, 0x1000 bytes)
209 * ``GPCCR_PGS_16K`` (16KB granules, 0x4000 bytes)
210 * ``GPCCR_PGS_64K`` (64KB granules, 0x10000 bytes)
[all …]
H A Dven-el3-debugfs.rst166 This operation reads a number of bytes from a file descriptor obtained by
176 uint32_t Number of bytes to read
190 uint32_t w1: number of bytes read on success.
H A Drmm-el3-comms-spec.rst416 …buf_size,x2,[63:0],Size,Size in bytes of the Realm Attestation Key buffer. ``bufPa + bufSize`` mus…
461 indicates the remaining bytes that are pending retrieval (via ``remainingSize``
489 …buf_size,x2,[63:0],Size,Size in bytes of the platform attestation token buffer. ``bufPa + bufSize`…
490 …c_size,x3,[63:0],Size,"Size in bytes of the challenge object. It corresponds to the size of one of…
501 remainingSize,x2,[63:0],Size,Remaining bytes of the token that are pending retrieval
651 …buf_size,x3,[63:0],Size,Size in bytes of the input buffer in ``buf_pa``. ``buf_pa + buf_size`` mus…
1013 size,x1,[63:0],Size,"required size of the memory region, in bytes"
1095 from EL3 to RMM. The size of the Boot Manifest is 160 bytes.
1157 | size | 8 | uint64_t | Size of memory bank/device region in bytes |
/rk3399_ARM-atf/tools/encrypt_fw/src/
H 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()
/rk3399_ARM-atf/plat/qti/common/src/
H A Dspmi_arb.c70 uint8_t bytes) in arb_command() argument
73 (addr & 0xff) << 4 | (bytes - 1)); in arb_command()
/rk3399_ARM-atf/include/drivers/brcm/
H A Docotp.h24 int bcm_otpc_read(unsigned int offset, void *val, uint32_t bytes,
/rk3399_ARM-atf/include/drivers/nxp/crypto/caam/
H A Dcaam.h42 int get_rand_bytes_hw(uint8_t *bytes, int byte_len);
/rk3399_ARM-atf/include/drivers/
H A Dnand.h20 unsigned int bytes; /* ECC bytes per step */ member
/rk3399_ARM-atf/docs/tools/
H A Dmemory-layout-tool.rst129 | Memory Usage (bytes) [RAM] |
140 | Memory Usage (bytes) [ROM] |
356 Total Static RAM memory (data + bss): 13505(+13505) bytes
357 Total Flash memory (text + data): 71873(+71873) bytes
373 Total Static RAM memory (data + bss): 15553(+2048) bytes
374 Total Flash memory (text + data): 80065(+8192) bytes
392 Total Static RAM memory (data + bss): 15232(+1824) bytes
393 Total Flash memory (text + data): 79285(+10616) bytes
/rk3399_ARM-atf/drivers/st/fmc/
H 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()
/rk3399_ARM-atf/drivers/brcm/
H 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()
/rk3399_ARM-atf/tools/sptool/
H A Dsptool.py108 to_write = h if type(h) is bytes else to_bytes(h)
/rk3399_ARM-atf/docs/design_documents/
H A Dmeasured_boot_dtpm_poc.rst217 Read File: start.elf, 2975040 (bytes)
219 Read File: fixup.dat, 7265 (bytes)
222 MESS:00:00:01.174630:0: brfs: File read: 153 bytes
239 MESS:00:00:01.504638:0: brfs: File read: 153 bytes
268 MESS:00:00:01.915761:0: brfs: File read: 31922 bytes
270 MESS:00:00:02.017277:0: brfs: File read: 153 bytes
/rk3399_ARM-atf/docs/security_advisories/
H A Dsecurity-advisory-tfv-10.rst85 read 6 bytes, it is possible to read up to 6 bytes past the end of the buffer.
/rk3399_ARM-atf/docs/plat/
H A Dwarp7.rst130 bl2.imx is flashed @ 1024 bytes
131 warp7.fip is flash @ 1048576 bytes
H A Ds32g274a.rst82 # BL2 bin file size in bytes
/rk3399_ARM-atf/plat/allwinner/common/
H A Darisc_off.S10 # $ or1k-elf-objcopy -O binary --reverse-bytes=4 turn_off_core.o \

12