/u-boot/board/st/common/ |
A D | stm32mp_dfu.c | 45 len += snprintf(buf + len, in board_get_alt_info_mmc() 47 len += snprintf(buf + len, DFU_ALT_BUF_LEN - len, in board_get_alt_info_mmc() 51 len += snprintf(buf + len, DFU_ALT_BUF_LEN - len, in board_get_alt_info_mmc() 54 len += snprintf(buf + len, DFU_ALT_BUF_LEN - len, in board_get_alt_info_mmc() 64 len += snprintf(buf + len, DFU_ALT_BUF_LEN - len, ";"); in board_get_alt_info_mmc() 66 len += snprintf(buf + len, DFU_ALT_BUF_LEN - len, in board_get_alt_info_mmc() 83 len += snprintf(buf + len, DFU_ALT_BUF_LEN - len, "&"); in board_get_alt_info_mtd() 84 len += snprintf(buf + len, DFU_ALT_BUF_LEN - len, in board_get_alt_info_mtd() 87 len += snprintf(buf + len, DFU_ALT_BUF_LEN - len, in board_get_alt_info_mtd() 94 len += snprintf(buf + len, DFU_ALT_BUF_LEN - len, ";"); in board_get_alt_info_mtd() [all …]
|
/u-boot/scripts/dtc/ |
A D | data.c | 65 d.len = len; in data_copy_mem() 86 q[d.len++] = c; in data_copy_escape_string() 111 if (d.len + ret < d.len) in data_copy_file() 114 d.len += ret; in data_copy_file() 123 memcpy(d.val + d.len, p, len); in data_append_data() 124 d.len += len; in data_append_data() 134 d.len += len; in data_insert_at_marker() 229 memset(d.val + d.len, 0, len); in data_append_zeroes() 230 d.len += len; in data_append_zeroes() 256 int len = d.len; in data_is_one_string() local [all …]
|
/u-boot/board/xilinx/common/ |
A D | fru_ops.c | 43 while (len--) { in fru_checksum() 53 int len; in fru_check_type_len() local 62 return len; in fru_check_type_len() 80 return 1 + len; in fru_gen_type_len() 121 member += len; in fru_generate() 123 member += len; in fru_generate() 165 int len; in fru_parse_board() local 194 if (!len) in fru_parse_board() 201 addr += len; in fru_parse_board() 245 int len; in fru_display_board() local [all …]
|
/u-boot/test/lib/ |
A D | string.c | 53 int offset, int len) in test_memset() argument 78 int offset, len; in lib_memset() local 82 for (len = 1; len < BUFLEN - SWEEP; ++len) { in lib_memset() 136 int offset1, offset2, len; in lib_memcpy() local 143 for (len = 1; len < BUFLEN - SWEEP; ++len) { in lib_memcpy() 146 len); in lib_memcpy() 149 offset2, len)) { in lib_memcpy() 173 int offset1, offset2, len; in lib_memmove() local 178 for (len = 1; len < BUFLEN - SWEEP; ++len) { in lib_memmove() 181 len); in lib_memmove() [all …]
|
/u-boot/board/emulation/common/ |
A D | qemu_dfu.c | 19 int len, partnum = 0; in board_get_alt_info() local 22 len = strlen(buf); in board_get_alt_info() 25 len += snprintf(buf + len, DFU_ALT_BUF_LEN - len, "&"); in board_get_alt_info() 26 len += snprintf(buf + len, DFU_ALT_BUF_LEN - len, in board_get_alt_info() 32 len += snprintf(buf + len, DFU_ALT_BUF_LEN - len, ";"); in board_get_alt_info() 35 len += snprintf(buf + len, DFU_ALT_BUF_LEN - len, in board_get_alt_info()
|
/u-boot/drivers/mtd/ubi/ |
A D | crc32.c | 73 while (len--) { in crc32_le() 103 if((len >= 4)){ in crc32_le() 106 len = len >> 2; in crc32_le() 119 if(len){ in crc32_le() 132 while (len--) { in crc32_le() 139 while (len--) { in crc32_le() 169 while (len--) { in crc32_be() 204 len = len >> 2; in crc32_be() 217 if(len){ in crc32_be() 388 while (len--) in buf_dump() [all …]
|
A D | upd.c | 235 memset(buf + len, 0xFF, l - len); in write_leb() 237 if (len == 0) { in write_leb() 253 memset(buf + len, 0, vol->usable_leb_size - len); in write_leb() 306 if (len > count) in ubi_more_update_data() 307 len = count; in ubi_more_update_data() 329 count -= len; in ubi_more_update_data() 330 buf += len; in ubi_more_update_data() 342 len = count; in ubi_more_update_data() 357 count -= len; in ubi_more_update_data() 359 buf += len; in ubi_more_update_data() [all …]
|
/u-boot/net/ |
A D | cdp.c | 56 if (len > 0) { in cdp_compute_csum() 60 len--; in cdp_compute_csum() 69 len -= 2; in cdp_compute_csum() 71 if (len) { in cdp_compute_csum() 112 int len; in cdp_send_trigger() local 157 len++; in cdp_send_trigger() 160 s += len / 2; in cdp_send_trigger() 176 len++; in cdp_send_trigger() 179 s += len / 2; in cdp_send_trigger() 188 len++; in cdp_send_trigger() [all …]
|
/u-boot/drivers/usb/gadget/ |
A D | config.c | 44 unsigned len = (*src)->bLength; in usb_descriptor_fillbuf() local 46 if (len > buflen) in usb_descriptor_fillbuf() 48 memcpy(dest, *src, len); in usb_descriptor_fillbuf() 49 buflen -= len; in usb_descriptor_fillbuf() 50 dest += len; in usb_descriptor_fillbuf() 84 int len; in usb_gadget_config_buf() local 95 if (len < 0) in usb_gadget_config_buf() 96 return len; in usb_gadget_config_buf() 97 len += USB_DT_CONFIG_SIZE; in usb_gadget_config_buf() 98 if (len > 0xffff) in usb_gadget_config_buf() [all …]
|
/u-boot/lib/efi_selftest/ |
A D | efi_selftest_devicepath_util.c | 58 efi_uintn_t len; in create_single_node_device_path() local 78 if (len != length + 4) { in create_single_node_device_path() 98 efi_uintn_t len; in execute() local 108 if (len) { in execute() 126 if (len != 4) { in execute() 155 if (len != 42) { in execute() 173 if (len != 46) { in execute() 198 if (len != 88) { in execute() 229 if (len != 46) { in execute() 235 if (len != 42) { in execute() [all …]
|
/u-boot/lib/zlib/ |
A D | inftrees.c | 103 for (len = 0; len <= MAXBITS; len++) in inflate_table() 104 count[len] = 0; in inflate_table() 128 for (len = 1; len <= MAXBITS; len++) { in inflate_table() 130 left -= count[len]; in inflate_table() 138 for (len = 1; len < MAXBITS; len++) in inflate_table() 139 offs[len + 1] = offs[len] + count[len]; in inflate_table() 226 incr = 1U << (len - drop); in inflate_table() 235 incr = 1U << (len - 1); in inflate_table() 262 curr = len - drop; in inflate_table() 298 len = root; in inflate_table() [all …]
|
/u-boot/lib/efi_loader/ |
A D | efi_load_options.c | 63 efi_uintn_t len; in efi_deserialize_load_option() local 69 data += len; in efi_deserialize_load_option() 70 *size -= len; in efi_deserialize_load_option() 74 data += len; in efi_deserialize_load_option() 75 *size -= len; in efi_deserialize_load_option() 81 len = (len + 1) * sizeof(u16); in efi_deserialize_load_option() 82 if (*size < len) in efi_deserialize_load_option() 84 data += len; in efi_deserialize_load_option() 85 *size -= len; in efi_deserialize_load_option() 93 data += len; in efi_deserialize_load_option() [all …]
|
/u-boot/cmd/ |
A D | binop.c | 26 for (i = 0; i < len; i++) { in write_to_env_var() 51 src = map_sysmem(addr, len); in read_from_mem() 52 memcpy(result, src, len); in read_from_mem() 63 memcpy(buf, result, len); in write_to_mem() 70 ulong len; in do_binop() local 94 src1 = malloc(len); in do_binop() 95 src2 = malloc(len); in do_binop() 107 result = malloc(len); in do_binop() 111 for (i = 0; i < len; i++) in do_binop() 115 for (i = 0; i < len; i++) in do_binop() [all …]
|
A D | fdt.c | 61 } else if (len%4 == 0 && len <= 20) { in fdt_value_env_set() 162 int len; in do_fdt() local 200 int len; in do_fdt() local 318 len = 0; in do_fdt() 804 *len = 0; in fdt_parse_prop() 828 *len += 4; in fdt_parse_prop() 861 *len = *len + 1; in fdt_parse_prop() 895 if (len == 0) in is_printable_string() 899 if (s[len - 1] != '\0' && s[len - 1] != '\n') in is_printable_string() 917 len--; in is_printable_string() [all …]
|
A D | sf.c | 64 *len = len_arg; in sf_parse_len_arg() 184 offset, len); in spi_flash_update_block() 185 *skipped += len; in spi_flash_update_block() 193 memcpy(cmp_buf, buf, len); in spi_flash_update_block() 218 const char *end = buf + len; in spi_flash_update() 316 unmap_physmem(buf, len); in do_spi_flash_read_write() 359 loff_t start, len; in do_spi_protect() local 453 test.bytes = len; in spi_flash_test() 481 memset(vbuf, '\0', len); in spi_flash_test() 512 unsigned long len; in do_spi_flash_test() local [all …]
|
/u-boot/include/ |
A D | spi_flash.h | 103 size_t len, void *buf) in spi_flash_read() argument 109 size_t len, const void *buf) in spi_flash_write() argument 115 size_t len) in spi_flash_erase() argument 117 return spi_flash_erase_dm(flash->dev, offset, len); in spi_flash_erase() 134 size_t len, void *buf) in spi_flash_read() argument 139 return mtd->_read(mtd, offset, len, &retlen, buf); in spi_flash_read() 143 size_t len, const void *buf) in spi_flash_write() argument 152 size_t len) in spi_flash_erase() argument 164 instr.len = len; in spi_flash_erase() 177 return flash->flash_lock(flash, ofs, len); in spi_flash_protect() [all …]
|
/u-boot/arch/arm/mach-imx/ |
A D | cmd_dek.c | 26 static int blob_encap_dek(const u8 *src, u8 *dst, u32 len) in blob_encap_dek() argument 37 if (!((len == 128) | (len == 192) | (len == 256))) { in blob_encap_dek() 42 len /= 8; in blob_encap_dek() 43 ret = blob_dek(src, dst, len); in blob_encap_dek() 61 uint32_t src_addr, dst_addr, len; in do_dek_blob() local 70 len = simple_strtoul(argv[3], NULL, 10); in do_dek_blob() 72 src_ptr = map_sysmem(src_addr, len/8); in do_dek_blob() 73 dst_ptr = map_sysmem(dst_addr, BLOB_SIZE(len/8)); in do_dek_blob() 75 ret = blob_encap_dek(src_ptr, dst_ptr, len); in do_dek_blob()
|
/u-boot/include/linux/ |
A D | dma-mapping.h | 29 static inline dma_addr_t dma_map_single(void *vaddr, size_t len, in dma_map_single() argument 34 len = ALIGN(len, ARCH_DMA_MINALIGN); in dma_map_single() 37 invalidate_dcache_range(addr, addr + len); in dma_map_single() 39 flush_dcache_range(addr, addr + len); in dma_map_single() 55 static inline void dma_unmap_single(dma_addr_t addr, size_t len, in dma_unmap_single() argument 58 len = ALIGN(len, ARCH_DMA_MINALIGN); in dma_unmap_single() 61 invalidate_dcache_range(addr, addr + len); in dma_unmap_single()
|
/u-boot/common/ |
A D | hwconfig.c | 246 size_t len; in main() local 251 ret = hwconfig_arg("key1", &len); in main() 252 printf("%zd %.*s\n", len, (int)len, ret); in main() 253 assert(len == 29); in main() 258 printf("%zd %.*s\n", len, (int)len, ret); in main() 259 assert(len == 6); in main() 264 printf("%zd %.*s\n", len, (int)len, ret); in main() 265 assert(len == 6); in main() 269 ret = hwconfig_arg("key2", &len); in main() 270 printf("%zd %.*s\n", len, (int)len, ret); in main() [all …]
|
/u-boot/arch/x86/lib/fsp/ |
A D | fsp_support.c | 36 top += (u32)(res_desc->len); in fsp_get_usable_lowmem_top() 93 top += (u32)(res_desc->len); in fsp_get_usable_highmem_top() 117 if (len) in fsp_get_reserved_mem_from_guid() 118 *len = (u32)(res_desc->len); in fsp_get_reserved_mem_from_guid() 138 if (len && base) in fsp_get_fsp_reserved_mem() 139 *len = (u32)length; in fsp_get_fsp_reserved_mem() 152 if (len && base) in fsp_get_tseg_reserved_mem() 153 *len = (u32)length; in fsp_get_tseg_reserved_mem() 162 return hob_get_guid_hob_data(hob_list, len, &guid); in fsp_get_nvs_data() 169 return hob_get_guid_hob_data(hob_list, len, &guid); in fsp_get_var_nvs_data() [all …]
|
/u-boot/arch/powerpc/cpu/mpc85xx/ |
A D | portals.c | 32 int len; in fdt_portal() local 35 range = fdt_getprop_w(blob, off, "ranges", &len); in fdt_portal() 42 if (len == 16) { in fdt_portal() 50 fdt_setprop_inplace(blob, off, "ranges", range, len); in fdt_portal() 53 name = fdt_get_name(blob, off, &len); in fdt_portal() 54 p = memchr(name, '@', len); in fdt_portal() 57 len = p - name; in fdt_portal() 61 if (container && (memcmp(container, name, len))) { in fdt_portal() 67 memcpy(&buf, name, len); in fdt_portal() 68 len += sprintf(&buf[len], "@%llx", addr); in fdt_portal()
|
/u-boot/test/dm/ |
A D | dma.c | 23 size_t len = 512; in dm_test_dma_m2m() local 29 memset(dst_buf, 0, len); in dm_test_dma_m2m() 30 for (i = 0; i < len; i++) in dm_test_dma_m2m() 34 ut_asserteq_mem(src_buf, dst_buf, len); in dm_test_dma_m2m() 47 size_t len = 512; in dm_test_dma() local 59 memset(dst_buf, 0, len); in dm_test_dma() 60 for (i = 0; i < len; i++) in dm_test_dma() 76 ut_asserteq_mem(src_buf, dst_buf, len); in dm_test_dma() 89 size_t len = 512; in dm_test_dma_rx() local 101 memset(dst_buf, 0, len); in dm_test_dma_rx() [all …]
|
/u-boot/lib/ |
A D | smbios.c | 247 *current += len; in smbios_write_type0() 250 return len; in smbios_write_type0() 278 *current += len; in smbios_write_type1() 281 return len; in smbios_write_type1() 306 return len; in smbios_write_type2() 330 return len; in smbios_write_type3() 389 return len; in smbios_write_type4() 406 return len; in smbios_write_type32() 422 return len; in smbios_write_type127() 442 int len = 0; in write_smbios_table() local [all …]
|
/u-boot/scripts/dtc/libfdt/ |
A D | fdt_wip.c | 16 int len) in fdt_setprop_inplace_namelen_partial() argument 26 if ((unsigned)proplen < (len + idx)) in fdt_setprop_inplace_namelen_partial() 29 memcpy((char *)propval + idx, val, len); in fdt_setprop_inplace_namelen_partial() 34 const void *val, int len) in fdt_setprop_inplace() argument 43 if (proplen != len) in fdt_setprop_inplace() 48 val, len); in fdt_setprop_inplace() 51 static void fdt_nop_region_(void *start, int len) in fdt_nop_region_() argument 55 for (p = start; (char *)p < ((char *)start + len); p++) in fdt_nop_region_() 62 int len; in fdt_nop_property() local 66 return len; in fdt_nop_property() [all …]
|
/u-boot/drivers/misc/ |
A D | i2c_eeprom_emul.c | 87 int len; in sandbox_i2c_eeprom_xfer() local 92 len = msg->len; in sandbox_i2c_eeprom_xfer() 95 msg->addr, msg->len); in sandbox_i2c_eeprom_xfer() 98 len = 1; in sandbox_i2c_eeprom_xfer() 100 if (offset + len > plat->size) { in sandbox_i2c_eeprom_xfer() 102 int initial = len - overflow; in sandbox_i2c_eeprom_xfer() 110 memset(msg->buf + len, '\xff', msg->len - len); in sandbox_i2c_eeprom_xfer() 112 } else if (len >= plat->offset_len) { in sandbox_i2c_eeprom_xfer() 121 len = min(len, 1); in sandbox_i2c_eeprom_xfer() 132 if (offset + len > plat->size) { in sandbox_i2c_eeprom_xfer() [all …]
|