/u-boot/fs/yaffs2/ |
A D | yaffs_nameval.c | 36 int size; in nval_find() local 39 while (size > 0 && (size < xb_size) && (pos + size < xb_size)) { in nval_find() 50 size = 0; in nval_find() 60 int size; in nval_used() local 63 while (size > 0 && (size < xb_size) && (pos + size < xb_size)) { in nval_used() 76 int size; in nval_del() local 85 memset(xb + (xb_size - size), 0, size); in nval_del() 133 int size; in nval_get() local 144 size--; in nval_get() 148 size--; in nval_get() [all …]
|
/u-boot/arch/arm/mach-uniphier/ |
A D | dram_init.c | 41 size = SZ_64M; in uniphier_memconf_decode() 44 size = SZ_128M; in uniphier_memconf_decode() 53 size = SZ_1G; in uniphier_memconf_decode() 61 size *= 2; in uniphier_memconf_decode() 63 dram_map[0].size = size; in uniphier_memconf_decode() 93 size = SZ_1G; in uniphier_memconf_decode() 101 size *= 2; in uniphier_memconf_decode() 103 dram_map[1].size = size; in uniphier_memconf_decode() 133 size *= 2; in uniphier_memconf_decode() 135 dram_map[2].size = size; in uniphier_memconf_decode() [all …]
|
A D | boards.c | 19 .size = 0x10000000, 23 .size = 0x10000000, 35 .size = 0x20000000, 39 .size = 0x20000000, 48 .size = 0x40000000, 52 .size = 0x40000000, 62 .size = 0x10000000, 66 .size = 0x10000000, 77 .size = 0x20000000, 81 .size = 0x20000000, [all …]
|
/u-boot/drivers/misc/ |
A D | i2c_eeprom.c | 102 u32 size; in i2c_eeprom_std_of_to_plat() local 111 priv->size = size; in i2c_eeprom_std_of_to_plat() 113 priv->size = data->size; in i2c_eeprom_std_of_to_plat() 164 .size = 0, 171 .size = 256, 178 .size = 128, 185 .size = 256, 293 u32 size; member 330 if (offset + size > priv->size) in i2c_eeprom_partition_read() 344 if (offset + size > priv->size) in i2c_eeprom_partition_write() [all …]
|
/u-boot/lib/ |
A D | lmb.c | 87 rgn->region[i].size = rgn->region[i + 1].size; in lmb_remove_region() 96 rgn->region[r1].size += rgn->region[r2].size; in lmb_coalesce_regions() 151 rgn->region[0].size = size; in lmb_add_region() 168 rgn->region[i].size += size; in lmb_add_region() 172 rgn->region[i].size += size; in lmb_add_region() 195 rgn->region[i + 1].size = rgn->region[i].size; in lmb_add_region() 198 rgn->region[i + 1].size = size; in lmb_add_region() 205 rgn->region[0].size = size; in lmb_add_region() 252 rgn->region[i].size -= size; in lmb_free() 258 rgn->region[i].size -= size; in lmb_free() [all …]
|
/u-boot/cmd/ |
A D | io.c | 31 int size, todo; in do_io_iod() local 38 size = last_size; in do_io_iod() 50 if (size < 0) in do_io_iod() 73 for (i = 0; i < todo; i += size, ptr += size) { in do_io_iod() 74 if (size == 4) in do_io_iod() 81 print_buffer(addr, buf, size, todo / size, in do_io_iod() 88 last_size = size; in do_io_iod() 96 int size; in do_io_iow() local 102 if (size < 0) in do_io_iow() 108 if (size == 4) in do_io_iow() [all …]
|
A D | legacy-mtd-utils.c | 33 *size = part->size; in get_part() 34 *maxsize = part->size; in get_part() 48 return get_part(arg, idx, off, size, maxsize, devtype); in mtd_arg_off() 56 *size = *maxsize; in mtd_arg_off() 61 loff_t *size, loff_t *maxsize, int devtype, in mtd_arg_off_size() argument 68 *size = chipsize; in mtd_arg_off_size() 69 *maxsize = *size; in mtd_arg_off_size() 73 ret = mtd_arg_off(argv[0], idx, off, size, maxsize, devtype, in mtd_arg_off_size() 81 if (!str2off(argv[1], size)) { in mtd_arg_off_size() 86 if (*size > *maxsize) { in mtd_arg_off_size() [all …]
|
A D | iotrace.c | 12 ulong start, size, needed_size, offset, count; in do_print_stats() local 17 printf("Actual Size: %08lx\n", size); in do_print_stats() 19 iotrace_get_region(&start, &size); in do_print_stats() 21 printf("Size: %08lx\n", size); in do_print_stats() 36 if (!start || !size || !count) in do_print_trace() 60 ulong addr = 0, size = 0; in do_set_buffer() local 64 size = simple_strtoul(*argv++, NULL, 16); in do_set_buffer() 69 iotrace_set_buffer(addr, size); in do_set_buffer() 76 ulong addr = 0, size = 0; in do_set_region() local 80 size = simple_strtoul(*argv++, NULL, 16); in do_set_region() [all …]
|
A D | pstore.c | 18 u32 size; member 100 if (prb->size > size) { in pstore_get_buffer() 249 u32 size; in pstore_display() local 292 if (size == 0) in pstore_display() 316 if (size != 0) in pstore_display() 328 if (size != 0) in pstore_display() 336 if (size != 0) in pstore_display() 368 u32 size; in pstore_save() local 404 if (size == 0) in pstore_save() 426 if (size != 0) { in pstore_save() [all …]
|
/u-boot/include/ |
A D | memalign.h | 71 #define ALLOC_ALIGN_BUFFER_PAD(type, name, size, align, pad) \ argument 76 #define ALLOC_ALIGN_BUFFER(type, name, size, align) \ argument 77 ALLOC_ALIGN_BUFFER_PAD(type, name, size, align, 1) 78 #define ALLOC_CACHE_ALIGN_BUFFER_PAD(type, name, size, pad) \ argument 80 #define ALLOC_CACHE_ALIGN_BUFFER(type, name, size) \ argument 81 ALLOC_ALIGN_BUFFER(type, name, size, ARCH_DMA_MINALIGN) 88 #define DEFINE_ALIGN_BUFFER(type, name, size, align) \ argument 89 static char __##name[ALIGN(size * sizeof(type), align)] \ 93 #define DEFINE_CACHE_ALIGN_BUFFER(type, name, size) \ argument 94 DEFINE_ALIGN_BUFFER(type, name, size, ARCH_DMA_MINALIGN) [all …]
|
/u-boot/include/dm/ |
A D | devres.h | 38 #define _devres_alloc(release, size, gfp) \ argument 39 __devres_alloc(release, size, gfp, #release) 57 #define devres_alloc(release, size, gfp) \ argument 187 if (size != 0 && n > SIZE_MAX / size) in devm_kmalloc_array() 193 size_t n, size_t size, gfp_t flags) in devm_kcalloc() argument 214 return kzalloc(size, gfp); in devres_alloc() 258 return kmalloc(size, gfp); in devm_kmalloc() 263 return kzalloc(size, gfp); in devm_kzalloc() 270 if (size != 0 && n > SIZE_MAX / size) in devm_kmalloc_array() 272 return kmalloc(n * size, flags); in devm_kmalloc_array() [all …]
|
/u-boot/arch/arm/mach-k3/ |
A D | arm64-mmu.c | 25 .size = 0x80000000UL, 32 .size = 0x20000000UL, 38 .size = 0x02100000UL, 44 .size = 0x5df00000UL, 50 .size = 0x80000000UL, 56 .size = 0x400000000UL, 80 .size = 0x80000000UL, 87 .size = 0x20000000UL, 93 .size = 0x1bc00000UL, 99 .size = 0x44400000UL, [all …]
|
/u-boot/arch/arm/mach-rmobile/ |
A D | memmap-gen3.c | 19 .size = 0x40000000UL, 26 .size = 0x03F00000UL, 32 .size = 0x78200000UL, 38 .size = 0x40000000UL, 60 u64 start, size; in enable_caches() local 75 size = gd->bd->bi_dram[bank].size; in enable_caches() 78 if (!size) in enable_caches() 101 gen3_mem_map[i].size = size; in enable_caches() 119 size = gd->bd->bi_dram[bank].size; in enable_caches() 122 if (!size) in enable_caches() [all …]
|
/u-boot/drivers/crypto/fsl/ |
A D | fsl_blob.c | 33 int ret, size, i = 0; in blob_decap() local 50 size = ALIGN(16, ARCH_DMA_MINALIGN); in blob_decap() 56 (unsigned long)src + size); in blob_decap() 66 (unsigned long)desc + size); in blob_decap() 75 (unsigned long)dst + size); in blob_decap() 98 int ret, size, i = 0; in blob_encap() local 121 (unsigned long)src + size); in blob_encap() 131 (unsigned long)desc + size); in blob_encap() 140 (unsigned long)dst + size); in blob_encap() 152 int ret, size, i = 0; in blob_dek() local [all …]
|
/u-boot/common/ |
A D | bloblist.c | 115 size, hdr->size, new_alloced); in bloblist_addrec() 122 rec->size = size; in bloblist_addrec() 141 if (size && size != rec->size) { in bloblist_ensurerec() 164 if (size && size != rec->size) in bloblist_find() 210 *sizep = rec->size; in bloblist_ensure_size_ret() 237 if (size < sizeof(*hdr)) in bloblist_new() 247 hdr->size = size; in bloblist_new() 265 if (size && hdr->size != size) in bloblist_check() 292 *sizep = hdr->size; in bloblist_get_stats() 308 show_value("size", size); in bloblist_show_stats() [all …]
|
/u-boot/arch/arm/mach-mvebu/ |
A D | dram.c | 105 u32 size; in mvebu_sdram_size_adjust() local 139 if (size) { in mv_xor_init2() 145 base += size + 1; in mv_xor_init2() 146 size = (size / (64 << 10)) << 16; in mv_xor_init2() 169 u32 size, temp; in dram_ecc_scrubbing() local 186 if (size == 0) in dram_ecc_scrubbing() 189 total = (u64)size; in dram_ecc_scrubbing() 264 u64 size = 0; in dram_init() local 289 gd->ram_size = size; in dram_init() 300 u64 size = 0; in dram_init_banksize() local [all …]
|
/u-boot/post/drivers/ |
A D | memory.c | 273 unsigned long size, in memory_post_test1() argument 281 for (i = 0; i < size / sizeof (ulong); i++) { in memory_post_test1() 402 size); in memory_post_test_lines() 406 (ulong *)start, size); in memory_post_test_lines() 428 ret = memory_post_test2(start, size); in memory_post_test_patterns() 431 ret = memory_post_test3(start, size); in memory_post_test_patterns() 434 ret = memory_post_test4(start, size); in memory_post_test_patterns() 461 ret = memory_post_test_lines(start, size); in memory_post_tests() 477 *size = (gd->ram_size >= 256 << 20 ? in arch_memory_test_prepare() 481 if ((*vstart) + (*size) > (ulong)bd) in arch_memory_test_prepare() [all …]
|
/u-boot/drivers/pci/ |
A D | pci_auto_common.c | 31 void pciauto_region_align(struct pci_region *res, pci_size_t size) in pciauto_region_align() argument 33 res->bus_lower = ((res->bus_lower - 1) | (size - 1)) + 1; in pciauto_region_align() 36 int pciauto_region_allocate(struct pci_region *res, pci_size_t size, in pciauto_region_allocate() argument 46 addr = ((res->bus_lower - 1) | (size - 1)) + 1; in pciauto_region_allocate() 48 if (addr - res->bus_start + size > res->size) { in pciauto_region_allocate() 51 (unsigned long long)res->size, (unsigned long long)size); in pciauto_region_allocate() 60 res->bus_lower = addr + size; in pciauto_region_allocate() 79 (unsigned long long)(region->bus_start + region->size - 1), in pciauto_show_region() 96 hose->pci_io->size < hose->regions[i].size) in pciauto_config_init() 101 hose->pci_mem->size < hose->regions[i].size) in pciauto_config_init() [all …]
|
/u-boot/arch/arm/dts/ |
A D | k3-am654.dtsi | 13 #size-cells = <0>; 41 i-cache-size = <0x8000>; 42 i-cache-line-size = <64>; 44 d-cache-size = <0x8000>; 45 d-cache-line-size = <64>; 55 i-cache-size = <0x8000>; 58 d-cache-size = <0x8000>; 96 cache-size = <0x80000>; 97 cache-line-size = <64>; 105 cache-size = <0x80000>; [all …]
|
/u-boot/lib/efi_loader/ |
A D | efi_bootmgr.c | 44 efi_uintn_t *size) in get_var() argument 49 *size = 0; in get_var() 52 buf = malloc(*size); in get_var() 58 *size = 0; in get_var() 84 efi_uintn_t size; in try_load_entry() local 134 if (size) { in try_load_entry() 135 *load_options = malloc(size); in try_load_entry() 166 efi_uintn_t size; in efi_bootmgr_load() local 174 size = sizeof(bootnext); in efi_bootmgr_load() 190 if (size == sizeof(u16)) { in efi_bootmgr_load() [all …]
|
A D | efi_load_options.c | 61 efi_uintn_t *size) in efi_deserialize_load_option() argument 70 *size -= len; in efi_deserialize_load_option() 75 *size -= len; in efi_deserialize_load_option() 82 if (*size < len) in efi_deserialize_load_option() 85 *size -= len; in efi_deserialize_load_option() 88 if (*size < len) in efi_deserialize_load_option() 94 *size -= len; in efi_deserialize_load_option() 113 unsigned long size; in efi_serialize_load_option() local 121 size += label_len; in efi_serialize_load_option() 126 p = malloc(size); in efi_serialize_load_option() [all …]
|
/u-boot/arch/arm/mach-mvebu/armada3700/ |
A D | cpu.c | 94 if (size) { in get_cpu_dec_win() 117 u32 base, tgt, size; in build_mem_map() local 134 mvebu_mem_map[region].size = size; in build_mem_map() 158 u32 base, tgt, size; in a3700_dram_init() local 181 size_t base, size; member 204 size_t size; in a3700_dram_init_banksize() local 208 u32 base, tgt, size; in a3700_dram_init_banksize() local 219 dram_wins[win].size = size; in a3700_dram_init_banksize() 240 gd->bd->bi_dram[bank - 1].size += size; in a3700_dram_init_banksize() 241 last_end += size; in a3700_dram_init_banksize() [all …]
|
/u-boot/scripts/ |
A D | checkstack.pl | 128 my $size = $1; 129 $size = hex($size) if ($size =~ /^0x/); 131 if ($size > 0xf0000000) { 132 $size = - $size; 133 $size += 0x80000000; 134 $size += 0x80000000; 136 next if ($size > 0x10000000); 149 next if ($size < 100); 150 push @stack, "$intro$size\n"; 153 my $size = "Dynamic ($1)"; [all …]
|
/u-boot/include/asm-generic/ |
A D | ioctl.h | 65 #define _IOC(dir,type,nr,size) \ argument 69 ((size) << _IOC_SIZESHIFT)) 84 #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(size))) argument 85 #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) argument 86 #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) argument 87 #define _IOR_BAD(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) argument 88 #define _IOW_BAD(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) argument 89 #define _IOWR_BAD(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) argument
|
/u-boot/drivers/sound/ |
A D | sound.c | 11 void sound_create_square_wave(uint sample_rate, unsigned short *data, int size, in sound_create_square_wave() argument 21 if (size % 2) in sound_create_square_wave() 22 size--; in sound_create_square_wave() 24 while (size) { in sound_create_square_wave() 27 for (i = 0; size && i < half; i++) { in sound_create_square_wave() 28 size -= 2; in sound_create_square_wave() 32 for (i = 0; size && i < period - half; i++) { in sound_create_square_wave() 33 size -= 2; in sound_create_square_wave()
|