/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 | 37 int size) in i2c_eeprom_write() argument 105 u32 size; in i2c_eeprom_std_of_to_plat() local 114 priv->size = size; in i2c_eeprom_std_of_to_plat() 116 priv->size = data->size; in i2c_eeprom_std_of_to_plat() 167 .size = 0, 174 .size = 128, 181 .size = 256, 289 u32 size; member 326 if (offset + size > priv->size) in i2c_eeprom_partition_read() 340 if (offset + size > priv->size) in i2c_eeprom_partition_write() [all …]
|
A D | nvmem.c | 20 if (size != cell->size) in nvmem_cell_read() 25 return i2c_eeprom_read(cell->nvmem, cell->offset, buf, size); in nvmem_cell_read() 27 int ret = misc_read(cell->nvmem, cell->offset, buf, size); in nvmem_cell_read() 31 if (ret != size) in nvmem_cell_read() 36 return dm_rtc_read(cell->nvmem, cell->offset, buf, size); in nvmem_cell_read() 45 if (size != cell->size) in nvmem_cell_write() 52 int ret = misc_write(cell->nvmem, cell->offset, buf, size); in nvmem_cell_write() 56 if (ret != size) in nvmem_cell_write() 61 return dm_rtc_write(cell->nvmem, cell->offset, buf, size); in nvmem_cell_write() 103 fdt_size_t size = FDT_SIZE_T_NONE; in nvmem_cell_get_by_index() local [all …]
|
/u-boot/arch/arm/mach-apple/ |
A D | board.c | 34 .size = SZ_1G, 42 .size = SZ_1G, 50 .size = SZ_512M, 66 .size = SZ_1G, 95 .size = SZ_1G, 103 .size = SZ_1G, 500 size = gd->bd->bi_dram[0].size; in build_mem_map() 503 size = ALIGN(size, SZ_4K); in build_mem_map() 508 mem_map[i - 2].size = size; in build_mem_map() 521 size = ALIGN(size, SZ_4K); in build_mem_map() [all …]
|
/u-boot/common/ |
A D | bloblist.c | 140 size, hdr->size, new_alloced); in bloblist_addrec() 147 rec->size = size; in bloblist_addrec() 166 if (size && size != rec->size) { in bloblist_ensurerec() 189 if (size && size != rec->size) in bloblist_find() 235 *sizep = rec->size; in bloblist_ensure_size_ret() 329 hdr->size = size; in bloblist_new() 347 if (size && hdr->size != size) in bloblist_check() 379 return hdr->size; in bloblist_get_size() 387 *sizep = hdr->size; in bloblist_get_stats() 435 ulong addr, size; in bloblist_init() local [all …]
|
/u-boot/lib/ |
A D | abuf.c | 22 abuf->size = size; in abuf_set() 28 abuf_set(abuf, map_sysmem(addr, size), size); in abuf_map_sysmem() 60 abuf->size = new_size; in abuf_realloc() 67 abuf->size = new_size; in abuf_realloc() 76 if (abuf->size) in abuf_realloc() 79 abuf->size = new_size; in abuf_realloc() 90 *sizep = abuf->size; in abuf_uninit_move() 91 if (!abuf->size) in abuf_uninit_move() 109 abuf_set(abuf, data, size); in abuf_init_set() 114 abuf_init_set(abuf, data, size); in abuf_init_move() [all …]
|
A D | lmb.c | 34 size = rgn->region[i].size; in lmb_dump_region() 94 rgn->region[i].size = rgn->region[i + 1].size; in lmb_remove_region() 104 rgn->region[r1].size += rgn->region[r2].size; in lmb_coalesce_regions() 239 rgn->region[0].size = size; in lmb_add_region_flags() 266 rgn->region[i].size += size; in lmb_add_region_flags() 272 rgn->region[i].size += size; in lmb_add_region_flags() 297 rgn->region[i + 1].size = rgn->region[i].size; in lmb_add_region_flags() 301 rgn->region[i + 1].size = size; in lmb_add_region_flags() 309 rgn->region[0].size = size; in lmb_add_region_flags() 363 rgn->region[i].size -= size; in lmb_free() [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/drivers/crypto/fsl/ |
A D | fsl_blob.c | 33 int ret, size, i = 0; in blob_decap() local 56 (unsigned long)src + size); in blob_decap() 66 (unsigned long)desc + size); in blob_decap() 69 (unsigned long)dst + size); in blob_decap() 82 (unsigned long)dst + size); in blob_decap() 105 int ret, size, i = 0; in blob_encap() local 128 (unsigned long)src + size); in blob_encap() 138 (unsigned long)desc + size); in blob_encap() 141 (unsigned long)dst + size); in blob_encap() 150 (unsigned long)dst + size); in blob_encap() [all …]
|
A D | fsl_mfgprot.c | 46 pdb->img_size = size; in mfg_build_sign_dsc() 75 int size, ret; in gen_mppubk() local 88 size = roundup(sizeof(uint32_t) * MFG_PUBK_DSC_WORDS, in gen_mppubk() 92 size = roundup(FSL_CAAM_MP_PUBK_BYTES, ARCH_DMA_MINALIGN); in gen_mppubk() 104 size = roundup(FSL_CAAM_MP_PUBK_BYTES, ARCH_DMA_MINALIGN); in gen_mppubk() 113 int size, ret; in sign_mppubk() local 126 size = roundup(sizeof(uint32_t) * MFG_SIGN_DSC_WORDS, in sign_mppubk() 130 size = roundup(data_size, ARCH_DMA_MINALIGN); in sign_mppubk() 136 size = roundup(FSL_CAAM_MP_PRVK_BYTES, ARCH_DMA_MINALIGN); in sign_mppubk() 151 (unsigned long)dgst + size); in sign_mppubk() [all …]
|
/u-boot/cmd/ |
A D | io.c | 32 int size, todo; in do_io_iod() local 39 size = last_size; in do_io_iod() 51 if (size < 0) in do_io_iod() 74 for (i = 0; i < todo; i += size, ptr += size) { in do_io_iod() 75 if (size == 4) in do_io_iod() 82 print_buffer(addr, buf, size, todo / size, in do_io_iod() 89 last_size = size; in do_io_iod() 97 int size; in do_io_iow() local 103 if (size < 0) in do_io_iow() 109 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 …]
|
/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/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/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/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 19 memset(data, 0, size); in sound_create_square_wave() 24 if (size % 2) in sound_create_square_wave() 25 size--; in sound_create_square_wave() 27 while (size) { in sound_create_square_wave() 30 for (i = 0; size && i < half; i++) { in sound_create_square_wave() 31 for (j = 0; size && j < channels; j++, size -= 2) in sound_create_square_wave() 34 for (i = 0; size && i < period - half; i++) { in sound_create_square_wave() 35 for (j = 0; size && j < channels; j++, size -= 2) in sound_create_square_wave()
|
/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() 258 u64 size = 0; in dram_init() local 283 gd->ram_size = size; in dram_init() 294 u64 size = 0; in dram_init_banksize() local [all …]
|
/u-boot/post/drivers/ |
A D | memory.c | 271 unsigned long size, in memory_post_test1() argument 279 for (i = 0; i < size / sizeof (ulong); i++) { in memory_post_test1() 396 size); in memory_post_test_lines() 400 (ulong *)start, size); in memory_post_test_lines() 422 ret = memory_post_test2(start, size); in memory_post_test_patterns() 425 ret = memory_post_test3(start, size); in memory_post_test_patterns() 428 ret = memory_post_test4(start, size); in memory_post_test_patterns() 455 ret = memory_post_test_lines(start, size); in memory_post_tests() 471 *size = (gd->ram_size >= 256 << 20 ? in arch_memory_test_prepare() 475 if ((*vstart) + (*size) > (ulong)bd) in arch_memory_test_prepare() [all …]
|
/u-boot/drivers/misc/sentinel/ |
A D | s400_api.c | 31 msg.size = 2; in ahab_release_rdc() 51 ret = misc_call(dev, false, &msg, size, &msg, size); in ahab_release_rdc() 76 msg.size = 3; in ahab_auth_oem_ctnr() 81 ret = misc_call(dev, false, &msg, size, &msg, size); in ahab_auth_oem_ctnr() 109 ret = misc_call(dev, false, &msg, size, &msg, size); in ahab_release_container() 138 ret = misc_call(dev, false, &msg, size, &msg, size); in ahab_verify_image() 167 ret = misc_call(dev, false, &msg, size, &msg, size); in ahab_forward_lifecycle() 207 ret = misc_call(dev, false, &msg, size, &msg, size); in ahab_read_common_fuse() 248 ret = misc_call(dev, false, &msg, size, &msg, size); in ahab_write_fuse() 277 ret = misc_call(dev, false, &msg, size, &msg, size); in ahab_release_caam() [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/fs/ |
A D | semihostingfs.c | 26 long fd, size, ret; in smh_fs_read_at() local 40 return size; in smh_fs_read_at() 43 maxsize = size; in smh_fs_read_at() 48 if (size < 0) in smh_fs_read_at() 49 return size; in smh_fs_read_at() 51 *actread = size; in smh_fs_read_at() 71 *actwrite = size; in smh_fs_write_at() 77 long fd, size; in smh_fs_size() local 86 if (size < 0) in smh_fs_size() 87 return size; in smh_fs_size() [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 …]
|
A D | k3-am62a7.dtsi | 17 #size-cells = <0>; 44 i-cache-size = <0x8000>; 45 i-cache-line-size = <64>; 47 d-cache-size = <0x8000>; 48 d-cache-line-size = <64>; 58 i-cache-size = <0x8000>; 61 d-cache-size = <0x8000>; 72 i-cache-size = <0x8000>; 75 d-cache-size = <0x8000>; 99 cache-size = <0x40000>; [all …]
|