Home
last modified time | relevance | path

Searched refs:sz (Results 1 – 25 of 56) sorted by relevance

123

/rk3399_rockchip-uboot/arch/powerpc/cpu/mpc83xx/
H A Dlaw.c12 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()
/rk3399_rockchip-uboot/arch/powerpc/include/asm/
H A Dfsl_law.h15 #define SET_LAW_ENTRY(idx, a, sz, trgt) \ argument
16 { .index = idx, .addr = a, .size = sz, .trgt_id = trgt }
18 #define SET_LAW(a, sz, trgt) \ argument
19 { .index = -1, .addr = a, .size = sz, .trgt_id = trgt }
48 #define law_size_bits(sz) (__ilog2_u64(sz) - 1) argument
136 extern void set_law(u8 idx, phys_addr_t addr, enum law_size sz, enum law_trgt_if id);
137 extern int set_next_law(phys_addr_t addr, enum law_size sz, enum law_trgt_if id);
138 extern int set_last_law(phys_addr_t addr, enum law_size sz, enum law_trgt_if id);
139 extern int set_ddr_laws(u64 start, u64 sz, enum law_trgt_if id);
H A Dfsl_srio.h40 #define atmu_size_mask(sz) (__ilog2_u64(sz) - 1) argument
/rk3399_rockchip-uboot/arch/arc/lib/
H A Dcache.c79 static inline void __slc_line_loop(unsigned long paddr, unsigned long sz, in __slc_line_loop() argument
89 sz += paddr & ~SLC_LINE_MASK; in __slc_line_loop()
92 num_lines = DIV_ROUND_UP(sz, slc_line_sz); in __slc_line_loop()
115 static inline void __slc_line_op(unsigned long paddr, unsigned long sz, in __slc_line_op() argument
119 __slc_line_loop(paddr, sz, cacheop); in __slc_line_op()
124 #define __slc_line_op(paddr, sz, cacheop) argument
133 unsigned int pad:24, way:2, lsz:2, sz:4; in read_decode_cache_bcr_arcv2() member
135 unsigned int sz:4, lsz:2, way:2, pad:24; in read_decode_cache_bcr_arcv2()
183 unsigned int pad:12, line_len:4, sz:4, config:4, ver:8; in read_decode_cache_bcr() member
185 unsigned int ver:8, config:4, sz:4, line_len:4, pad:12; in read_decode_cache_bcr()
[all …]
/rk3399_rockchip-uboot/arch/powerpc/cpu/mpc8xxx/
H A Dlaw.c55 void set_law(u8 idx, phys_addr_t addr, enum law_size sz, enum law_trgt_if id) in set_law() argument
61 out_be32(LAWAR_ADDR(idx), LAW_EN | ((u32)id << 20) | (u32)sz); in set_law()
99 int set_next_law(phys_addr_t addr, enum law_size sz, enum law_trgt_if id) in set_next_law() argument
106 set_law(idx, addr, sz, id); in set_next_law()
113 int set_last_law(phys_addr_t addr, enum law_size sz, enum law_trgt_if id) in set_last_law() argument
127 set_law(idx, addr, sz, id); in set_last_law()
183 int set_ddr_laws(u64 start, u64 sz, enum law_trgt_if id) in set_ddr_laws() argument
192 law_sz = min(start_align, sz); in set_ddr_laws()
202 sz = sz - law_sz; in set_ddr_laws()
203 if (sz) { in set_ddr_laws()
[all …]
/rk3399_rockchip-uboot/test/py/tests/
H A Dtest_net.py155 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
H A Dtest_efi_loader.py127 sz = f.get('size', None)
128 if sz:
129 expected_text += '%d' % sz
/rk3399_rockchip-uboot/drivers/pci/
H A Dfsl_pci_init.c51 u32 sz = (__ilog2_u64(size) - 1); in set_inbound_window() local
69 out_be32(&pi->piwar, flag | sz); in set_inbound_window()
89 u64 sz = min((u64)gd->ram_size, (1ull << 32)); in fsl_pci_setup_inbound_windows() local
102 if ((bus_start + sz) > out_lo) { in fsl_pci_setup_inbound_windows()
103 sz = out_lo - bus_start; in fsl_pci_setup_inbound_windows()
104 debug ("limiting size to %llx\n", sz); in fsl_pci_setup_inbound_windows()
107 pci_sz = 1ull << __ilog2_u64(sz); in fsl_pci_setup_inbound_windows()
112 if ((pcie_cap == PCI_CAP_ID_EXP) && (pci_sz < sz)) { in fsl_pci_setup_inbound_windows()
114 (u64)bus_start, (u64)phys_start, (u64)sz); in fsl_pci_setup_inbound_windows()
115 pci_set_region(r, bus_start, phys_start, sz, in fsl_pci_setup_inbound_windows()
[all …]
/rk3399_rockchip-uboot/arch/arm/cpu/armv8/
H A Dcpu.c66 size_t sz = __secure_end - __secure_start; in relocate_secure_section() local
68 memcpy((void *)CONFIG_ARMV8_SECURE_BASE, __secure_start, sz); in relocate_secure_section()
70 CONFIG_ARMV8_SECURE_BASE + sz + 1); in relocate_secure_section()
/rk3399_rockchip-uboot/lib/efi_loader/
H A Defi_device_path.c39 static void *dp_alloc(size_t sz) in dp_alloc() argument
43 if (efi_allocate_pool(EFI_ALLOCATE_ANY_PAGES, sz, &buf) != EFI_SUCCESS) in dp_alloc()
182 unsigned sz = 0; in efi_dp_size() local
185 sz += dp->length; in efi_dp_size()
189 return sz; in efi_dp_size()
195 unsigned sz = efi_dp_size(dp) + sizeof(END); in efi_dp_dup() local
200 ndp = dp_alloc(sz); in efi_dp_dup()
201 memcpy(ndp, dp, sz); in efi_dp_dup()
239 unsigned sz = node->length; in efi_dp_append_node() local
240 void *p = dp_alloc(sz + sizeof(END)); in efi_dp_append_node()
[all …]
/rk3399_rockchip-uboot/lib/
H A Dof_live.c132 int sz; in unflatten_dt_node() local
134 p = fdt_getprop_by_offset(blob, offset, &pname, &sz); in unflatten_dt_node()
167 pp->length = sz; in unflatten_dt_node()
179 int sz; in unflatten_dt_node() local
190 sz = (pa - ps) + 1; in unflatten_dt_node()
191 pp = unflatten_dt_alloc(&mem, sizeof(struct property) + sz, in unflatten_dt_node()
195 pp->length = sz; in unflatten_dt_node()
199 memcpy(pp->value, ps, sz - 1); in unflatten_dt_node()
200 ((char *)pp->value)[sz - 1] = 0; in unflatten_dt_node()
H A Dlinux_compat.c33 ret->sz = element_sz; in get_mem()
40 return memalign(ARCH_DMA_MINALIGN, obj->sz); in kmem_cache_alloc()
/rk3399_rockchip-uboot/arch/mips/lib/
H A Dcache_init.S51 .macro l1_info sz, line_sz, off
60 move \sz, zero
62 li \sz, 2
63 sllv \line_sz, \sz, \line_sz
66 srl \sz, $1, \off + MIPS_CONF1_DA_SHF - MIPS_CONF1_DA_SHF
67 andi \sz, \sz, (MIPS_CONF1_DA >> MIPS_CONF1_DA_SHF)
68 addiu \sz, \sz, 1
71 mul \sz, \sz, \line_sz
80 sllv \sz, \sz, $1
84 mul \sz, \sz, $1
/rk3399_rockchip-uboot/common/
H A Ddlmalloc.c624 #define bin_index(sz) \ argument
625 (((((unsigned long)(sz)) >> 9) == 0) ? (((unsigned long)(sz)) >> 3): \
626 ((((unsigned long)(sz)) >> 9) <= 4) ? 56 + (((unsigned long)(sz)) >> 6): \
627 ((((unsigned long)(sz)) >> 9) <= 20) ? 91 + (((unsigned long)(sz)) >> 9): \
628 ((((unsigned long)(sz)) >> 9) <= 84) ? 110 + (((unsigned long)(sz)) >> 12): \
629 ((((unsigned long)(sz)) >> 9) <= 340) ? 119 + (((unsigned long)(sz)) >> 15): \
630 ((((unsigned long)(sz)) >> 9) <= 1364) ? 124 + (((unsigned long)(sz)) >> 18): \
641 #define smallbin_index(sz) (((unsigned long)(sz)) >> 3) argument
734 INTERNAL_SIZE_T sz = p->size & ~PREV_INUSE; local
742 assert((char*)p + sz <= (char*)top);
[all …]
/rk3399_rockchip-uboot/drivers/net/fsl-mc/dpio/
H A Dqbman_private.h92 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()
/rk3399_rockchip-uboot/arch/arm/cpu/armv7/
H A Dvirt-v7.c56 size_t sz = __secure_end - __secure_start; in relocate_secure_section() local
57 unsigned long szflush = ALIGN(sz + 1, CONFIG_SYS_CACHELINE_SIZE); in relocate_secure_section()
59 memcpy((void *)CONFIG_ARMV7_SECURE_BASE, __secure_start, sz); in relocate_secure_section()
/rk3399_rockchip-uboot/include/linux/mtd/
H A Dmtd.h466 static inline uint32_t mtd_div_by_eb(uint64_t sz, struct mtd_info *mtd) in mtd_div_by_eb() argument
469 return sz >> mtd->erasesize_shift; in mtd_div_by_eb()
470 do_div(sz, mtd->erasesize); in mtd_div_by_eb()
471 return sz; in mtd_div_by_eb()
474 static inline uint32_t mtd_mod_by_eb(uint64_t sz, struct mtd_info *mtd) in mtd_mod_by_eb() argument
477 return sz & mtd->erasesize_mask; in mtd_mod_by_eb()
478 return do_div(sz, mtd->erasesize); in mtd_mod_by_eb()
481 static inline uint32_t mtd_div_by_ws(uint64_t sz, struct mtd_info *mtd) in mtd_div_by_ws() argument
484 return sz >> mtd->writesize_shift; in mtd_div_by_ws()
485 do_div(sz, mtd->writesize); in mtd_div_by_ws()
[all …]
/rk3399_rockchip-uboot/fs/ubifs/
H A Drecovery.c105 const int sz = c->mst_node_alsz; in get_master_node() local
126 offs += sz; in get_master_node()
127 buf += sz; in get_master_node()
128 len -= sz; in get_master_node()
134 offs -= sz; in get_master_node()
135 buf -= sz; in get_master_node()
136 len += sz; in get_master_node()
140 offs -= sz; in get_master_node()
141 buf -= sz; in get_master_node()
142 len += sz; in get_master_node()
[all …]
/rk3399_rockchip-uboot/drivers/core/
H A Dread.c203 u32 *out_values, size_t sz) in dev_read_u32_array() argument
207 return ofnode_read_u32_array(dev_ofnode(dev), propname, out_values, sz); in dev_read_u32_array()
211 u32 *values, size_t sz) in dev_write_u32_array() argument
215 return ofnode_write_u32_array(dev_ofnode(dev), propname, values, sz); in dev_write_u32_array()
219 size_t sz) in dev_read_u8_array_ptr() argument
221 return ofnode_read_u8_array_ptr(dev_ofnode(dev), propname, sz); in dev_read_u8_array_ptr()
/rk3399_rockchip-uboot/arch/arm/mach-omap2/
H A Dutils.c86 u64 sz = 0; in omap_mmc_get_part_size() local
101 sz = (info.size * (u64)info.blksz); in omap_mmc_get_part_size()
103 sz >>= 10; in omap_mmc_get_part_size()
105 return (u32)sz; in omap_mmc_get_part_size()
/rk3399_rockchip-uboot/include/dm/
H A Dread.h400 u32 *out_values, size_t sz);
419 u32 *values, size_t sz);
454 size_t sz);
659 u32 *out_values, size_t sz) in dev_read_u32_array() argument
663 return ofnode_read_u32_array(dev_ofnode(dev), propname, out_values, sz); in dev_read_u32_array()
677 const char *propname, size_t sz) in dev_read_u8_array_ptr() argument
679 return ofnode_read_u8_array_ptr(dev_ofnode(dev), propname, sz); in dev_read_u8_array_ptr()
H A Dof_access.h292 u32 *out_values, size_t sz);
308 u32 *values, size_t sz);
327 size_t sz, int index);
/rk3399_rockchip-uboot/tools/kermit/
H A Ddot.kermrc13 define sz !sz \%1 \%2 \%3 \%4 \%5 \%6 \%7 \%8 \%9 < \v(line) > \v(line)
/rk3399_rockchip-uboot/fs/yaffs2/
H A Dydirectenv.h53 #define sort(base, n, sz, cmp_fn, swp) yaffs_qsort(base, n, sz, cmp_fn) argument
/rk3399_rockchip-uboot/arch/arm/cpu/arm926ejs/mxs/
H A Dspl_mem_init.c232 uint32_t sz, da; in mxs_mem_get_size() local
241 sz = get_ram_size((long *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE); in mxs_mem_get_size()
246 return sz; in mxs_mem_get_size()

123