/u-boot/lib/ |
H A D | tables_csum.c | 10 const u8 *bytes = v; local 15 checksum -= bytes[i];
|
/u-boot/common/ |
H A D | malloc_simple.c | 20 static void *alloc_simple(size_t bytes, int align) argument 26 new_ptr = addr + bytes - gd->malloc_base; 27 log_debug("size=%lx, ptr=%lx, limit=%lx: ", (ulong)bytes, new_ptr, 34 ptr = map_sysmem(addr, bytes); 40 void *malloc_simple(size_t bytes) argument 44 ptr = alloc_simple(bytes, 1); 49 VALGRIND_MALLOCLIKE_BLOCK(ptr, bytes, 0, false); 54 void *memalign_simple(size_t align, size_t bytes) argument 58 ptr = alloc_simple(bytes, align); 62 VALGRIND_MALLOCLIKE_BLOCK(ptr, bytes, [all...] |
H A D | dlmalloc.c | 250 INTERNAL_SIZE_T size; /* Size in bytes, including overhead. */ 278 | Size of chunk, in bytes |P| 282 . (malloc_usable_space() bytes) . 302 `head:' | Size of chunk, in bytes |P| 308 | Unused space (may be 0 bytes long) . 313 `foot:' | Size of chunk, in bytes | 334 become less than MINSIZE bytes long, it is replenished via 394 /* pad request bytes into a usable size */ 515 Bins for sizes < 512 bytes contain chunks of all the same size, spaced 516 8 bytes apar 1290 mALLOc_impl(size_t bytes) argument 1353 VALGRIND_MALLOCLIKE_BLOCK(chunk2mem(victim), bytes, SIZE_SZ, false); local 1381 VALGRIND_MALLOCLIKE_BLOCK(chunk2mem(victim), bytes, SIZE_SZ, false); local 1405 VALGRIND_MALLOCLIKE_BLOCK(chunk2mem(victim), bytes, SIZE_SZ, false); local 1415 VALGRIND_MALLOCLIKE_BLOCK(chunk2mem(victim), bytes, SIZE_SZ, false); local 1471 VALGRIND_MALLOCLIKE_BLOCK(chunk2mem(victim), bytes, SIZE_SZ, false); local 1480 VALGRIND_MALLOCLIKE_BLOCK(chunk2mem(victim), bytes, SIZE_SZ, false); local 1529 VALGRIND_MALLOCLIKE_BLOCK(chunk2mem(victim), bytes, SIZE_SZ, false); local 1544 VALGRIND_MALLOCLIKE_BLOCK(chunk2mem(victim), bytes, SIZE_SZ, false); local 1718 rEALLOc_impl(Void_t* oldmem, size_t bytes) argument 1809 VALGRIND_RESIZEINPLACE_BLOCK(chunk2mem(oldp), 0, bytes, SIZE_SZ); local 1810 VALGRIND_MAKE_MEM_DEFINED(chunk2mem(oldp), bytes); local 1820 VALGRIND_RESIZEINPLACE_BLOCK(chunk2mem(oldp), 0, bytes, SIZE_SZ); local 1821 VALGRIND_MAKE_MEM_DEFINED(chunk2mem(oldp), bytes); local 1962 mEMALIGn_impl(size_t alignment, size_t bytes) argument 2084 VALGRIND_MALLOCLIKE_BLOCK(chunk2mem(p), bytes, SIZE_SZ, false); local 2118 vALLOc(size_t bytes) argument 2133 pvALLOc(size_t bytes) argument 2234 mALLOc(size_t bytes) argument 2247 rEALLOc(Void_t *oldmem, size_t bytes) argument 2268 mEMALIGn(size_t alignment, size_t bytes) argument [all...] |
/u-boot/include/ |
H A D | display_options.h | 59 #define HEXDUMP_MAX_BUF_LENGTH(bytes) (9 + (bytes) * 4 + 3) 70 * @size: Size of output buffer in bytes 71 * Return: number of bytes processed, if OK, -ENOSPC if buffer too small
|
/u-boot/arch/arm/include/asm/armv8/ |
H A D | sec_firmware.h | 18 int sec_firmware_get_random(uint8_t *rand, int bytes);
|
/u-boot/arch/sandbox/include/asm/ |
H A D | spi.h | 31 /* The client is rx-ing bytes from the bus, so it should tx some */ 32 int (*xfer)(void *priv, const u8 *rx, u8 *tx, uint bytes);
|
/u-boot/cmd/ |
H A D | io.c | 30 ulong addr, length, bytes; local 60 * Length is the number of objects, not number of bytes. 66 bytes = size * length; 69 for (; bytes > 0; addr += todo) { 73 todo = min(bytes, (ulong)DISP_LINE_LEN); 84 bytes -= todo;
|
H A D | avb.c | 45 size_t bytes, bytes_read = 0; local 59 bytes = hextoul(argv[3], NULL); 63 bytes, buffer, &bytes_read); 65 printf("Read %zu bytes\n", bytes_read); 80 size_t bytes, bytes_read = 0; local 94 bytes = hextoul(argv[3], NULL); 96 buffer = malloc(bytes); 101 memset(buffer, 0, bytes); 104 bytes, buffer, &bytes_read); 106 printf("Requested %zu, read %zu bytes\ 129 size_t bytes; local 359 size_t bytes; local [all...] |
/u-boot/arch/arm/mach-imx/ |
H A D | hab.c | 92 u8 *event, size_t *bytes) 103 (unsigned long)event, (unsigned long)bytes, 0, 0, 0, &res); 109 ret = hab_rvt_report_event_func(status, index, event, bytes); 202 size_t bytes) 213 (unsigned long)start, (unsigned long)bytes, 0, 0, 0, &res); 219 ret = hab_rvt_check_target_func(type, start, bytes); 226 void **start, size_t *bytes, hab_loader_callback_f_t loader) 237 (unsigned long)start, (unsigned long)bytes, 0, 0, 0, &res); 243 ret = hab_rvt_authenticate_image_func(cid, ivt_offset, start, bytes, loader); 417 static void process_event_record(uint8_t *event_data, size_t bytes) argument 91 hab_rvt_report_event(enum hab_status status, u32 index, u8 *event, size_t *bytes) argument 201 hab_rvt_check_target(enum hab_target type, const void *start, size_t bytes) argument 225 hab_rvt_authenticate_image(uint8_t cid, ptrdiff_t ivt_offset, void **start, size_t *bytes, hab_loader_callback_f_t loader) argument 431 display_event(uint8_t *event_data, size_t bytes) argument 454 size_t bytes = sizeof(event_data); /* Event size in bytes */ local 742 chk_bounds(u8 *addr, size_t bytes, u8 *start, u8 *end) argument 760 csf_is_valid(struct ivt *ivt, ulong start_addr, size_t bytes) argument 892 size_t bytes; local 1008 size_t bytes; local [all...] |
H A D | spl_imx_romapi.c | 140 u32 bytes; local 144 bytes = end - ss->end; 145 bytes += ss->pagesize - 1; 146 bytes /= ss->pagesize; 147 bytes *= ss->pagesize; 149 debug("downloading another 0x%x bytes\n", bytes); 150 ret = rom_api_download_image(ss->end, 0, bytes); 153 printf("Failure download %d\n", bytes); 157 ss->end += bytes; [all...] |
/u-boot/disk/ |
H A D | part_mac.c | 108 ulong bytes; local 129 bytes = mpart->block_count; 130 bytes /= (1024 / ddesc->blk_size); /* kB; assumes blk_size == 512 */ 131 if (bytes >= 1024) { 132 bytes >>= 10; 135 if (bytes >= 1024) { 136 bytes >>= 10; 145 bytes, c
|
/u-boot/lib/libavb/ |
H A D | avb_util.c | 40 uint8_t bytes[4]; member in union:__anon560 42 ret.bytes[0] = (in >> 24) & 0xff; 43 ret.bytes[1] = (in >> 16) & 0xff; 44 ret.bytes[2] = (in >> 8) & 0xff; 45 ret.bytes[3] = in & 0xff; 53 uint8_t bytes[8]; member in union:__anon561 55 ret.bytes[0] = (in >> 56) & 0xff; 56 ret.bytes[1] = (in >> 48) & 0xff; 57 ret.bytes[2] = (in >> 40) & 0xff; 58 ret.bytes[ [all...] |
/u-boot/drivers/spi/ |
H A D | iproc_qspi.c | 180 static int bspi_read_via_raf(struct bcmspi_priv *priv, u8 *rx, uint bytes) argument 203 words = CEIL(bytes, 4); 222 while (bytes) { 229 if (aligned && bytes >= 4) { 232 bytes -= 4; 234 uint chunk = min(bytes, 4U); 236 /* Read out bytes one by one */ 241 bytes--; 256 static int bspi_read(struct bcmspi_priv *priv, u8 *rx, uint bytes) argument 261 while (bytes > 348 mspi_exec(struct bcmspi_priv *priv, uint bytes, const u8 *tx, u8 *rx, ulong flags) argument 440 uint bytes; local [all...] |
H A D | spi-qup.c | 355 * Function to read bytes number of data from the Input FIFO 357 static int __qup_spi_blsp_spi_read(struct udevice *dev, u8 *data_buffer, unsigned int bytes) argument 363 unsigned int read_bytes = bytes; 368 /* Configure no of bytes to read */ 376 writel(bytes, priv->base + QUP_MX_INPUT_CNT); 417 static int qup_spi_blsp_spi_read(struct udevice *dev, u8 *data_buffer, unsigned int bytes) argument 421 while (bytes) { 422 length = (bytes < MAX_COUNT_SIZE) ? bytes : MAX_COUNT_SIZE; 429 bytes 438 __qup_blsp_spi_write(struct udevice *dev, const u8 *cmd_buffer, unsigned int bytes) argument 530 qup_spi_blsp_spi_write(struct udevice *dev, const u8 *cmd_buffer, unsigned int bytes) argument [all...] |
H A D | ath79_spi.c | 66 u32 bytes = bitlen / 8; local 75 bytes++; 78 while (bytes > 0) { 79 bytes--; 84 if (restbits && !bytes) { 119 if (!bytes) 124 if (restbits && !bytes)
|
H A D | tegra20_slink.c | 240 int bytes; local 245 bytes = (num_bytes > 4) ? 4 : num_bytes; 248 for (i = 0; i < bytes; ++i) 250 dout += bytes; 253 num_bytes -= bytes; 257 (bytes - 1) * 8 + overflow - 1); 260 bytes * 8 - 1); 286 /* swap bytes read in */ 288 for (i = bytes - 1; i >= 0; --i) { 292 din += bytes; [all...] |
/u-boot/arch/arm/mach-zynqmp/ |
H A D | ecc_spl_init.c | 64 u64 bytes; local 72 bytes = len; 75 while (bytes > 0) { 76 size = bytes > ZDMA_TRANSFER_MAX_LEN ? 77 ZDMA_TRANSFER_MAX_LEN : (u32)bytes; 150 bytes -= size;
|
/u-boot/include/mtd/ |
H A D | ubi-user.h | 63 * this number of bytes to the volume character device. The update is finished 64 * when the claimed number of bytes is passed. So, the volume update sequence 86 * user is expected to write the requested amount of bytes (similarly to what 241 * 512 in case of a 512 bytes page NAND flash with no sub-page support. Or 250 * be 2KiB-64 bytes = 1984. Note, that this position is not even 512-bytes 293 * @bytes: volume size in bytes 322 __s64 bytes; member in struct:ubi_mkvol_req 333 * @bytes 342 __s64 bytes; member in struct:ubi_rsvol_req 407 __s32 bytes; member in struct:ubi_leb_change_req [all...] |
/u-boot/drivers/mtd/ubi/ |
H A D | upd.c | 76 * @bytes: new data size in bytes 83 long long bytes) 96 vol->used_bytes = bytes; 97 vol->used_ebs = div_u64_rem(bytes, vol->usable_leb_size, 116 * @bytes: update bytes 118 * This function starts volume update operation. If @bytes is zero, the volume 123 long long bytes) 127 dbg_gen("start update of volume %d, %llu bytes", vo 82 clear_update_marker(struct ubi_device *ubi, struct ubi_volume *vol, long long bytes) argument 122 ubi_start_update(struct ubi_device *ubi, struct ubi_volume *vol, long long bytes) argument [all...] |
/u-boot/board/intel/edison/ |
H A D | config.mk | 7 # Add 4096 bytes of zeroes to u-boot.bin
|
/u-boot/drivers/i2c/ |
H A D | qup_i2c.c | 131 * Max tags length (start, stop and maximum 2 bytes address) for each QUP 262 bool last, u8 *buffer, unsigned int bytes) 268 if (bytes > (qup->in_fifo_sz - READ_RX_TAGS_LEN)) 272 bytes + READ_RX_TAGS_LEN); 277 bytes << 24); 280 QUP_TAG_V2_DATARD << 16 | bytes << 24); 298 if (bytes > 1) 301 for (i = 2; i < bytes; i += 4) { 305 if ((i + j) == bytes) 318 unsigned int bytes) 261 qup_i2c_blsp_read(struct qup_i2c_priv *qup, unsigned int addr, bool last, u8 *buffer, unsigned int bytes) argument 316 qup_i2c_blsp_write(struct qup_i2c_priv *qup, unsigned int addr, bool first, bool last, const u8 *buffer, unsigned int bytes) argument [all...] |
/u-boot/test/cmd/ |
H A D | mem_copy.c | 27 int i, w, bytes; local 31 /* Fill with distinct bytes. */ 39 bytes = count * w; 41 ut_assert(d + bytes <= BUF_SIZE); 43 ut_assert(s + bytes <= BUF_SIZE); 46 memmove(shadow + d, shadow + s, bytes);
|
/u-boot/drivers/block/ |
H A D | blkcache.c | 80 lbaint_t bytes; local 90 bytes = blksz * blkcnt; 98 if (node->blkcnt * node->blksz < bytes) { 110 node->cache = malloc(bytes); 125 memcpy(node->cache, buffer, bytes);
|
/u-boot/tools/dtoc/ |
H A D | fdt.py | 57 """Converts a string of bytes into a type and value 60 A bytes value (which on Python 2 is an alias for str) 67 Type.STRING: str/bytes value from the property 68 Type.INT: a byte-swapped integer stored as a 4-byte str/bytes 69 Type.BYTE: a byte stored as a single-byte str/bytes 71 data = bytes(data) 113 value: Property value as a string of bytes, or a list of strings of 114 bytes 122 self.bytes = bytes(dat [all...] |
H A D | fdt_util.py | 161 if not prop.bytes: 184 if not prop.bytes: 195 if prop.bytes: 247 """Get a set of bytes from a property 252 size (int): Number of bytes to expect 253 default (bytes): Default value or None 256 bytes: Bytes value read, or default if none 261 if len(prop.bytes) != size: 263 (node.name, propname, len(prop.bytes), size)) 264 return prop.bytes [all...] |