/u-boot/arch/mips/mach-mtmips/ |
A D | ddr_init.c | 123 sz = DRAM_8MB; in ddr1_init() 127 sz = DRAM_16MB; in ddr1_init() 129 sz = DRAM_32MB; in ddr1_init() 132 sz = DRAM_64MB; in ddr1_init() 134 sz = DRAM_128MB; in ddr1_init() 169 sz = DRAM_32MB; in ddr2_init() 182 sz = DRAM_32MB; in ddr2_init() 236 sz = DRAM_8MB; in sdr_init() 240 sz = DRAM_16MB; in sdr_init() 242 sz = DRAM_32MB; in sdr_init() [all …]
|
/u-boot/arch/powerpc/cpu/mpc83xx/ |
A D | law.c | 12 int set_ddr_laws(u64 start, u64 sz, enum law_trgt_if id) in set_ddr_laws() argument 23 law_sz = min(start_align, sz); in set_ddr_laws() 38 sz = sz - law_sz; in set_ddr_laws() 39 if (sz) { in set_ddr_laws() 43 law_sz = min(start_align, sz); in set_ddr_laws() 55 sz = sz - law_sz; in set_ddr_laws() 56 if (sz) in set_ddr_laws()
|
/u-boot/arch/powerpc/include/asm/ |
A D | fsl_law.h | 14 #define SET_LAW_ENTRY(idx, a, sz, trgt) \ argument 15 { .index = idx, .addr = a, .size = sz, .trgt_id = trgt } 17 #define SET_LAW(a, sz, trgt) \ argument 18 { .index = -1, .addr = a, .size = sz, .trgt_id = trgt } 47 #define law_size_bits(sz) (__ilog2_u64(sz) - 1) argument 135 extern void set_law(u8 idx, phys_addr_t addr, enum law_size sz, enum law_trgt_if id); 136 extern int set_next_law(phys_addr_t addr, enum law_size sz, enum law_trgt_if id); 137 extern int set_last_law(phys_addr_t addr, enum law_size sz, enum law_trgt_if id); 138 extern int set_ddr_laws(u64 start, u64 sz, enum law_trgt_if id);
|
A D | fsl_srio.h | 39 #define atmu_size_mask(sz) (__ilog2_u64(sz) - 1) argument
|
/u-boot/arch/x86/lib/ |
A D | acpi_nhlt.c | 206 size_t sz = 0; in calc_format_size() local 222 return sz; in calc_format_size() 228 size_t sz = 0; in calc_endpoint_size() local 242 endp->length = sz; in calc_endpoint_size() 244 return sz; in calc_endpoint_size() 249 size_t sz = 0; in calc_endpoints_size() local 255 return sz; in calc_endpoints_size() 314 cur->buf += sz; in serblob() 388 size_t sz; in nhlt_serialise_oem_overrides() local 400 header->length = sz; in nhlt_serialise_oem_overrides() [all …]
|
/u-boot/fs/squashfs/ |
A D | sqfs_inode.c | 47 u32 sz; in sqfs_inode_size() local 54 sz = get_unaligned_le32(&di->size) + 1; in sqfs_inode_size() 55 index_list_size += sz; in sqfs_inode_size() 56 di = (void *)di + sizeof(*di) + sz; in sqfs_inode_size() 115 int sz; in sqfs_find_inode() local 127 sz = sqfs_inode_size(base, le32_to_cpu(block_size)); in sqfs_find_inode() 128 if (sz < 0) in sqfs_find_inode() 131 offset += sz; in sqfs_find_inode()
|
/u-boot/arch/powerpc/cpu/mpc8xxx/ |
A D | law.c | 62 out_be32(LAWAR_ADDR(idx), LAW_EN | ((u32)id << 20) | (u32)sz); in set_law() 100 int set_next_law(phys_addr_t addr, enum law_size sz, enum law_trgt_if id) in set_next_law() argument 107 set_law(idx, addr, sz, id); in set_next_law() 128 set_law(idx, addr, sz, id); in set_last_law() 184 int set_ddr_laws(u64 start, u64 sz, enum law_trgt_if id) in set_ddr_laws() argument 193 law_sz = min(start_align, sz); in set_ddr_laws() 203 sz = sz - law_sz; in set_ddr_laws() 204 if (sz) { in set_ddr_laws() 208 law_sz = min(start_align, sz); in set_ddr_laws() 218 sz = sz - law_sz; in set_ddr_laws() [all …]
|
/u-boot/arch/arc/include/asm/ |
A D | arc-bcr.h | 21 unsigned int pad:12, line_len:4, sz:4, config:4, ver:8; member 23 unsigned int ver:8, config:4, sz:4, line_len:4, pad:12; 32 unsigned int pad:24, way:2, lsz:2, sz:4; member 34 unsigned int sz:4, lsz:2, way:2, pad:24;
|
/u-boot/arch/arm/cpu/armv8/ |
A D | cpu.c | 71 size_t sz = __secure_end - __secure_start; in relocate_secure_section() local 73 memcpy((void *)CONFIG_ARMV8_SECURE_BASE, __secure_start, sz); in relocate_secure_section() 75 CONFIG_ARMV8_SECURE_BASE + sz + 1); in relocate_secure_section()
|
/u-boot/test/py/tests/ |
A D | test_net.py | 155 sz = f.get('size', None) 156 if sz: 157 expected_text += '%d' % sz 195 sz = f.get('size', None) 196 if sz: 197 expected_text += '%d' % sz
|
/u-boot/lib/ |
A D | of_live.c | 130 int sz; in unflatten_dt_node() local 132 p = fdt_getprop_by_offset(blob, offset, &pname, &sz); in unflatten_dt_node() 165 pp->length = sz; in unflatten_dt_node() 177 int sz; in unflatten_dt_node() local 188 sz = (pa - ps) + 1; in unflatten_dt_node() 189 pp = unflatten_dt_alloc(&mem, sizeof(struct property) + sz, in unflatten_dt_node() 193 pp->length = sz; in unflatten_dt_node() 197 memcpy(pp->value, ps, sz - 1); in unflatten_dt_node() 198 ((char *)pp->value)[sz - 1] = 0; in unflatten_dt_node()
|
A D | linux_compat.c | 36 ret->sz = element_sz; in get_mem() 43 return malloc_cache_aligned(obj->sz); in kmem_cache_alloc()
|
/u-boot/board/gateworks/venice/ |
A D | gsc.c | 385 #define snprintfcat(dest, sz, fmt, ...) \ argument 408 snprintf(buf, sz, "%s%2dxx-%dx", pre, base, som); in gsc_get_dtb_name() 414 snprintfcat(buf, sz, "-%c", rev_base_pcb); in gsc_get_dtb_name() 418 snprintfcat(buf, sz, "%c", rev_pcb); in gsc_get_dtb_name() 424 snprintfcat(buf, sz, "-%c", rev_base_pcb); in gsc_get_dtb_name() 425 snprintfcat(buf, sz, "xx"); in gsc_get_dtb_name() 428 snprintfcat(buf, sz, "-xx"); in gsc_get_dtb_name() 432 snprintfcat(buf, sz, "%c", rev_pcb); in gsc_get_dtb_name() 440 snprintf(buf, sz, "%s%04d", pre, model); in gsc_get_dtb_name() 446 snprintfcat(buf, sz, "-%c", rev_pcb); in gsc_get_dtb_name() [all …]
|
/u-boot/arch/mips/lib/ |
A D | cache_init.S | 44 .macro l1_info sz, line_sz, off 53 move \sz, zero 55 li \sz, 2 56 sllv \line_sz, \sz, \line_sz 59 srl \sz, $1, \off + MIPS_CONF1_DA_SHF - MIPS_CONF1_DA_SHF 60 andi \sz, \sz, (MIPS_CONF1_DA >> MIPS_CONF1_DA_SHF) 61 addiu \sz, \sz, 1 64 mul \sz, \sz, \line_sz 73 sllv \sz, \sz, $1 77 mul \sz, \sz, $1
|
/u-boot/drivers/pci/ |
A D | fsl_pci_init.c | 57 u32 sz = (__ilog2_u64(size) - 1); in set_inbound_window() local 75 out_be32(&pi->piwar, flag | sz); in set_inbound_window() 111 if ((bus_start + sz) > out_lo) { in fsl_pci_setup_inbound_windows() 112 sz = out_lo - bus_start; in fsl_pci_setup_inbound_windows() 132 if (pci_sz != sz) in fsl_pci_setup_inbound_windows() 133 sz = 2ull << __ilog2_u64(sz); in fsl_pci_setup_inbound_windows() 145 sz -= pci_sz; in fsl_pci_setup_inbound_windows() 150 if (sz) { in fsl_pci_setup_inbound_windows() 157 sz -= pci_sz; in fsl_pci_setup_inbound_windows() 185 if (sz) { in fsl_pci_setup_inbound_windows() [all …]
|
/u-boot/drivers/net/fsl-mc/dpio/ |
A D | qbman_private.h | 92 unsigned long p, size_t sz, const unsigned char *c) in DECLARE_CODEC32() 101 if ((start < p) || (start >= (p + sz))) in DECLARE_CODEC32() 122 static inline void hexdump(const void *ptr, size_t sz) in hexdump() argument 126 unsigned long end = (p + sz + 15) & ~(unsigned long)15; in hexdump() 129 __hexdump(start, end, p, sz, c); in hexdump()
|
/u-boot/lib/efi_loader/ |
A D | efi_device_path.c | 74 memset(buf, 0, sz); in dp_alloc() 242 efi_uintn_t sz = 0; in efi_dp_instance_size() local 247 sz += dp->length; in efi_dp_instance_size() 251 return sz; in efi_dp_instance_size() 277 ndp = dp_alloc(sz); in efi_dp_dup() 280 memcpy(ndp, dp, sz); in efi_dp_dup() 327 memcpy(p, node, sz); in efi_dp_append_node() 336 memcpy(p, dp, sz); in efi_dp_append_node() 367 size_t sz, szi; in efi_dp_append_instance() local 381 p = (void *)p + sz; in efi_dp_append_instance() [all …]
|
A D | efi_load_initrd.c | 55 loff_t sz = 0; in get_file_size() local 64 ret = fs_size(file, &sz); in get_file_size() 66 sz = 0; in get_file_size() 72 return sz; in get_file_size()
|
A D | efi_device_path_utilities.c | 30 efi_uintn_t sz = 0; in get_device_path_size() local 35 sz = efi_dp_size(device_path) + sizeof(struct efi_device_path); in get_device_path_size() 36 return EFI_EXIT(sz); in get_device_path_size()
|
/u-boot/common/ |
A D | dlmalloc.c | 636 (((((unsigned long)(sz)) >> 9) == 0) ? (((unsigned long)(sz)) >> 3): \ 637 ((((unsigned long)(sz)) >> 9) <= 4) ? 56 + (((unsigned long)(sz)) >> 6): \ 638 ((((unsigned long)(sz)) >> 9) <= 20) ? 91 + (((unsigned long)(sz)) >> 9): \ 652 #define smallbin_index(sz) (((unsigned long)(sz)) >> 3) argument 861 long room = sz - s; 1590 sz += nextsz; 1596 sz += prevsz; 1615 sz += prevsz; 1625 sz += nextsz; 1638 set_foot(p, sz); [all …]
|
/u-boot/arch/arm/cpu/armv7/ |
A D | virt-v7.c | 57 size_t sz = __secure_end - __secure_start; in relocate_secure_section() local 58 unsigned long szflush = ALIGN(sz + 1, CONFIG_SYS_CACHELINE_SIZE); in relocate_secure_section() 60 memcpy((void *)CONFIG_ARMV7_SECURE_BASE, __secure_start, sz); in relocate_secure_section()
|
/u-boot/drivers/pci_endpoint/ |
A D | pcie-cadence-ep.c | 59 u64 sz; in cdns_set_bar() local 62 sz = max_t(size_t, ep_bar->size, CDNS_PCIE_EP_MIN_APERTURE); in cdns_set_bar() 67 sz = 1ULL << fls64(sz - 1); in cdns_set_bar() 68 aperture = ilog2(sz) - 7; /* 128B -> 0, 256B -> 1, 512B -> 2, ... */ in cdns_set_bar() 74 bool is_64bits = (sz > SZ_2G) | in cdns_set_bar()
|
/u-boot/include/linux/mtd/ |
A D | mtd.h | 460 static inline uint32_t mtd_div_by_eb(uint64_t sz, struct mtd_info *mtd) in mtd_div_by_eb() argument 463 return sz >> mtd->erasesize_shift; in mtd_div_by_eb() 464 do_div(sz, mtd->erasesize); in mtd_div_by_eb() 465 return sz; in mtd_div_by_eb() 471 return sz & mtd->erasesize_mask; in mtd_mod_by_eb() 472 return do_div(sz, mtd->erasesize); in mtd_mod_by_eb() 478 return sz >> mtd->writesize_shift; in mtd_div_by_ws() 479 do_div(sz, mtd->writesize); in mtd_div_by_ws() 480 return sz; in mtd_div_by_ws() 486 return sz & mtd->writesize_mask; in mtd_mod_by_ws() [all …]
|
/u-boot/fs/ubifs/ |
A D | recovery.c | 128 offs += sz; in get_master_node() 129 buf += sz; in get_master_node() 130 len -= sz; in get_master_node() 136 offs -= sz; in get_master_node() 137 buf -= sz; in get_master_node() 138 len += sz; in get_master_node() 172 offs += sz; in get_master_node() 173 buf += sz; in get_master_node() 174 len -= sz; in get_master_node() 273 c->leb_size - offs2 - sz < sz) { in ubifs_recover_master_node() [all …]
|
/u-boot/tools/kermit/ |
A D | dot.kermrc | 13 define sz !sz \%1 \%2 \%3 \%4 \%5 \%6 \%7 \%8 \%9 < \v(line) > \v(line)
|