| /rk3399_rockchip-uboot/arch/nds32/lib/ |
| H A D | cache.c | 45 unsigned long end, line_size; in invalidate_icache_all() local 47 end = line_size * CACHE_WAY(ICACHE) * CACHE_SET(ICACHE); in invalidate_icache_all() 49 end -= line_size; in invalidate_icache_all() 50 __asm__ volatile ("\n\tcctl %0, L1I_IX_INVAL" : : "r" (end)); in invalidate_icache_all() 52 end -= line_size; in invalidate_icache_all() 53 __asm__ volatile ("\n\tcctl %0, L1I_IX_INVAL" : : "r" (end)); in invalidate_icache_all() 55 end -= line_size; in invalidate_icache_all() 56 __asm__ volatile ("\n\tcctl %0, L1I_IX_INVAL" : : "r" (end)); in invalidate_icache_all() 57 end -= line_size; in invalidate_icache_all() 58 __asm__ volatile ("\n\tcctl %0, L1I_IX_INVAL" : : "r" (end)); in invalidate_icache_all() [all …]
|
| /rk3399_rockchip-uboot/arch/nios2/lib/ |
| H A D | cache.c | 14 static void __flush_dcache(unsigned long start, unsigned long end) in __flush_dcache() argument 19 end += (gd->arch.dcache_line_size - 1); in __flush_dcache() 20 end &= ~(gd->arch.dcache_line_size - 1); in __flush_dcache() 22 for (addr = start; addr < end; addr += gd->arch.dcache_line_size) { in __flush_dcache() 30 static void __flush_dcache_all(unsigned long start, unsigned long end) in __flush_dcache_all() argument 35 end += (gd->arch.dcache_line_size - 1); in __flush_dcache_all() 36 end &= ~(gd->arch.dcache_line_size - 1); in __flush_dcache_all() 38 if (end > start + gd->arch.dcache_size) in __flush_dcache_all() 39 end = start + gd->arch.dcache_size; in __flush_dcache_all() 41 for (addr = start; addr < end; addr += gd->arch.dcache_line_size) { in __flush_dcache_all() [all …]
|
| /rk3399_rockchip-uboot/cmd/ |
| H A D | ini.c | 82 char *end; in memgets() local 86 end = memchr(*mem, '\n', *memsize); in memgets() 87 if (end == NULL) { in memgets() 90 end = *mem + *memsize; in memgets() 93 len = min((end - *mem) + newline, num); in memgets() 99 *memsize -= (end - *mem) + newline; in memgets() 100 *mem += (end - *mem) + newline; in memgets() 127 char *end; in ini_parse() local 158 end = find_char_or_comment(start + 1, ']'); in ini_parse() 159 if (*end == ']') { in ini_parse() [all …]
|
| /rk3399_rockchip-uboot/lib/libxbc/ |
| H A D | libxbc.c | 66 ulong end = bootconfig_start_addr + bootconfig_size; in addBootConfigParameters() local 68 if (isTrailerPresent(end)) { in addBootConfigParameters() 69 end -= BOOTCONFIG_TRAILER_SIZE; in addBootConfigParameters() 71 memcpy(&new_size, (void *)end, BOOTCONFIG_SIZE_SIZE); in addBootConfigParameters() 77 memcpy((void*)end, params, params_size); in addBootConfigParameters() 97 ulong end = bootconfig_start_addr + bootconfig_size; in addBootConfigTrailer() local 99 if (isTrailerPresent(end)) { in addBootConfigTrailer() 105 memcpy((void *)(end), &bootconfig_size, BOOTCONFIG_SIZE_SIZE); in addBootConfigTrailer() 110 memcpy((void *)(end + BOOTCONFIG_SIZE_SIZE), &sum, in addBootConfigTrailer() 114 memcpy((void *)(end + BOOTCONFIG_SIZE_SIZE + BOOTCONFIG_CHECKSUM_SIZE), in addBootConfigTrailer()
|
| /rk3399_rockchip-uboot/arch/arm/mach-rockchip/ |
| H A D | iomem.c | 18 void iomem_show(const char *label, unsigned long base, size_t start, size_t end) in iomem_show() argument 26 for (offset = start; offset <= end; offset += 0x04) { in iomem_show() 39 size_t start, size_t end) in iomem_show_by_match() argument 66 iomem_show(name, addr, start, end); in iomem_show_by_match() 77 void iomem_show_by_compatible(const char *compat, size_t start, size_t end) in iomem_show_by_compatible() argument 79 iomem_show_by_match(SEARCH_COMP, compat, start, end); in iomem_show_by_compatible() 85 size_t start, end; in do_iomem_by_match() local 93 end = simple_strtoul(argv[3], NULL, 0); in do_iomem_by_match() 94 if (start > end) { in do_iomem_by_match() 95 printf("Invalid: 0x%lx > 0x%lx\n", (ulong)start, (ulong)end); in do_iomem_by_match() [all …]
|
| /rk3399_rockchip-uboot/arch/arm/mach-uniphier/arm32/ |
| H A D | cache-uniphier.c | 129 static void uniphier_cache_maint_range(u32 start, u32 end, u32 ways, in uniphier_cache_maint_range() argument 140 size = end - start; in uniphier_cache_maint_range() 167 void uniphier_cache_prefetch_range(u32 start, u32 end, u32 ways) in uniphier_cache_prefetch_range() argument 169 uniphier_cache_maint_range(start, end, ways, in uniphier_cache_prefetch_range() 174 void uniphier_cache_touch_range(u32 start, u32 end, u32 ways) in uniphier_cache_touch_range() argument 176 uniphier_cache_maint_range(start, end, ways, in uniphier_cache_touch_range() 181 void uniphier_cache_touch_zero_range(u32 start, u32 end, u32 ways) in uniphier_cache_touch_zero_range() argument 183 uniphier_cache_maint_range(start, end, ways, in uniphier_cache_touch_zero_range() 245 void v7_outer_cache_flush_range(u32 start, u32 end) in v7_outer_cache_flush_range() argument 247 uniphier_cache_maint_range(start, end, 0, UNIPHIER_SSCOQM_CM_FLUSH); in v7_outer_cache_flush_range() [all …]
|
| /rk3399_rockchip-uboot/lib/ |
| H A D | linux_string.c | 38 char *end; in strim() local 45 end = s + size - 1; in strim() 46 while (end >= s && isspace(*end)) in strim() 47 end--; in strim() 48 *(end + 1) = '\0'; in strim()
|
| H A D | membuff.c | 42 len = mb->end - mb->head - 1; in membuff_putrawflex() 132 len = mb->end - mb->tail; in membuff_getraw() 137 if (mb->tail == mb->end) in membuff_getraw() 231 return mb->end - mb->start; in membuff_size() 240 (int)(mb->end - mb->start)); in membuff_makecontig() 252 topsize = mb->end - mb->tail; in membuff_makecontig() 287 return mb->end == mb->start ? 0 : in membuff_free() 288 (mb->end - mb->start) - 1 - membuff_avail(mb); in membuff_free() 294 char *s, *end; in membuff_readline() local 298 end = mb->head >= mb->tail ? mb->head : mb->end; in membuff_readline() [all …]
|
| H A D | vsprintf.c | 152 if ((str) < end) \ 157 static char *number(char *buf, char *end, u64 num, in number() argument 256 static char *string(char *buf, char *end, char *s, int field_width, in string() argument 276 static char *string16(char *buf, char *end, u16 *s, int field_width, in string16() argument 297 static char *mac_address_string(char *buf, char *end, u8 *addr, int field_width, in mac_address_string() argument 312 return string(buf, end, mac_addr, field_width, precision, in mac_address_string() 316 static char *ip6_addr_string(char *buf, char *end, u8 *addr, int field_width, in ip6_addr_string() argument 332 return string(buf, end, ip6_addr, field_width, precision, in ip6_addr_string() 336 static char *ip4_addr_string(char *buf, char *end, u8 *addr, int field_width, in ip4_addr_string() argument 355 return string(buf, end, ip4_addr, field_width, precision, in ip4_addr_string() [all …]
|
| H A D | initcall.c | 26 ulong start = 0, end = 0, sum = 0; in initcall_run_list() local 47 call_get_ticks(&end); in initcall_run_list() 49 if (start != end) { in initcall_run_list() 50 sum = TICKS_TO_US(end - gd->sys_start_tick); in initcall_run_list() 52 TICKS_TO_US(end - start), US_TO_MS(sum), US_TO_US(sum)); in initcall_run_list()
|
| H A D | trace.c | 150 void *end, *ptr = buff; in trace_list_functions() local 154 end = buff ? buff + buff_size : NULL; in trace_list_functions() 157 if (ptr + sizeof(struct trace_output_hdr) < end) in trace_list_functions() 168 if (ptr + sizeof(struct trace_output_func) < end) { in trace_list_functions() 186 if (ptr > end) in trace_list_functions() 194 void *end, *ptr = buff; in trace_list_calls() local 198 end = buff ? buff + buff_size : NULL; in trace_list_calls() 201 if (ptr + sizeof(struct trace_output_hdr) < end) in trace_list_calls() 210 if (ptr + sizeof(struct trace_call) < end) { in trace_list_calls() 230 if (ptr > end) in trace_list_calls() [all …]
|
| /rk3399_rockchip-uboot/env/ |
| H A D | flags.c | 173 static void skip_num(int hex, const char *value, const char **end, in skip_num() argument 188 if (end != NULL) in skip_num() 189 *end = value; in skip_num() 195 const char *end; in eth_validate_ethaddr_str() local 201 skip_num(1, cur, &end, 2); in eth_validate_ethaddr_str() 202 if (cur == end) in eth_validate_ethaddr_str() 204 if (cur + 2 == end && is_hex_prefix(cur)) in eth_validate_ethaddr_str() 206 if (i != 5 && *end != ':') in eth_validate_ethaddr_str() 208 if (i == 5 && *end != '\0') in eth_validate_ethaddr_str() 210 cur = end + 1; in eth_validate_ethaddr_str() [all …]
|
| /rk3399_rockchip-uboot/arch/x86/cpu/coreboot/ |
| H A D | sdram.c | 62 uint64_t end = memrange->base + memrange->size; in board_get_usable_ram_top() local 69 if (end > 0xffffffffULL) in board_get_usable_ram_top() 70 end = 0x100000000ULL; in board_get_usable_ram_top() 72 if (end - start < total_size) in board_get_usable_ram_top() 76 if (end > dest_addr) in board_get_usable_ram_top() 77 dest_addr = end; in board_get_usable_ram_top() 94 unsigned long long end = memrange->base + memrange->size; in dram_init() local 96 if (memrange->type == CB_MEM_RAM && end > ram_size) in dram_init()
|
| /rk3399_rockchip-uboot/arch/arm/mach-exynos/ |
| H A D | tzpc.c | 17 unsigned int addr, start = 0, end = 0; in tzpc_init() local 22 end = start + ((EXYNOS5_NR_TZPC_BANKS - 1) * TZPC_BASE_OFFSET); in tzpc_init() 24 end = start + ((EXYNOS4_NR_TZPC_BANKS - 1) * TZPC_BASE_OFFSET); in tzpc_init() 26 for (addr = start; addr <= end; addr += TZPC_BASE_OFFSET) { in tzpc_init() 35 if (cpu_is_exynos5() && (addr == end)) in tzpc_init()
|
| /rk3399_rockchip-uboot/arch/x86/lib/efi/ |
| H A D | efi.c | 27 struct efi_mem_desc *desc, *end; in board_get_usable_ram_top() local 47 end = (struct efi_mem_desc *)((ulong)map + size); in board_get_usable_ram_top() 49 for (; desc < end; desc = efi_get_next_mem_desc(map, desc)) { in board_get_usable_ram_top() 73 struct efi_mem_desc *desc, *end; in dram_init() local 84 end = (struct efi_mem_desc *)((ulong)map + size); in dram_init() 87 for (; desc < end; desc = efi_get_next_mem_desc(map, desc)) { in dram_init() 97 struct efi_mem_desc *desc, *end; in dram_init_banksize() local 108 end = (struct efi_mem_desc *)((ulong)map + size); in dram_init_banksize() 111 desc < end && num_banks < CONFIG_NR_DRAM_BANKS; in dram_init_banksize()
|
| /rk3399_rockchip-uboot/common/ |
| H A D | hwconfig.c | 36 const char *end; in hwconfig_parse() local 40 end = str + optlen; in hwconfig_parse() 41 if (end - start > maxlen) in hwconfig_parse() 45 (strpbrk(end, stopchs) == end || *end == eqch || in hwconfig_parse() 46 *end == '\0')) { in hwconfig_parse() 52 if (*end != eqch) in hwconfig_parse() 59 *arglen = arg_end - end - 1; in hwconfig_parse() 61 return end + 1; in hwconfig_parse() 63 opts = end; in hwconfig_parse()
|
| H A D | bootstage.c | 71 struct bootstage_record *end; in find_id() local 73 for (rec = data->record, end = rec + data->rec_count; rec < end; in find_id() 147 __maybe_unused char *end; in bootstage_mark_code() local 160 end = p + len; in bootstage_mark_code() 162 p += snprintf(p, end - p, "%s,", file); in bootstage_mark_code() 164 p += snprintf(p, end - p, "%d", linenum); in bootstage_mark_code() 166 p += snprintf(p, end - p, ": %s", func); in bootstage_mark_code() 351 static void append_data(char **ptrp, char *end, const void *data, int size) in append_data() argument 356 if (*ptrp > end) in append_data() 368 char *ptr = base, *end = ptr + size; in bootstage_stash() local [all …]
|
| /rk3399_rockchip-uboot/include/ |
| H A D | linker_lists.h | 224 static char end[0] __aligned(4) __attribute__((unused, \ 226 (_type *)&end; \ 247 _type *end = ll_entry_end(_type, _list); \ 248 unsigned int _ll_result = end - start; \ 313 static char end[0] __aligned(4) __attribute__((unused, \ 315 (_type *)&end; \
|
| /rk3399_rockchip-uboot/arch/powerpc/lib/ |
| H A D | cache.c | 15 ulong addr, start, end; in flush_cache() local 18 end = start_addr + size - 1; in flush_cache() 20 for (addr = start; (addr <= end) && (addr >= start); in flush_cache() 28 for (addr = start; (addr <= end) && (addr >= start); in flush_cache()
|
| /rk3399_rockchip-uboot/arch/sandbox/lib/ |
| H A D | bootm.c | 21 int bootz_setup(ulong image, ulong *start, ulong *end) in bootz_setup() argument 33 *end = (setup_sects + 1) * 512 + syssize * 16; in bootz_setup() 36 *start, *end); in bootz_setup() 39 *end = le32_to_cpu(arm_hdr->zi_end); in bootz_setup() 42 *start, *end); in bootz_setup()
|
| /rk3399_rockchip-uboot/lib/libfdt/ |
| H A D | fdt_region.c | 38 char *end; in fdt_find_regions() local 47 end = path; in fdt_find_regions() 48 *end = '\0'; in fdt_find_regions() 82 if (end - path + 2 + len >= path_len) in fdt_find_regions() 84 if (end != path + 1) in fdt_find_regions() 85 *end++ = '/'; in fdt_find_regions() 86 strcpy(end, name); in fdt_find_regions() 87 end += len; in fdt_find_regions() 103 while (end > path && *--end != '/') in fdt_find_regions() 105 *end = '\0'; in fdt_find_regions() [all …]
|
| /rk3399_rockchip-uboot/tools/rockchip/ |
| H A D | boot_merger.c | 129 char *start, *end; in fixPath() local 141 end = start + strlen(gLegacyPath); in fixPath() 143 strcpy(tmp, end); in fixPath() 383 goto end; in parseOpts_from_file() 389 goto end; in parseOpts_from_file() 396 goto end; in parseOpts_from_file() 402 goto end; in parseOpts_from_file() 408 goto end; in parseOpts_from_file() 414 goto end; in parseOpts_from_file() 420 goto end; in parseOpts_from_file() [all …]
|
| H A D | trust_merger.c | 89 char *start, *end; in fixPath() local 101 end = start + strlen(gLegacyPath); in fixPath() 103 strcpy(tmp, end); in fixPath() 279 goto end; in parseOpts() 285 goto end; in parseOpts() 292 goto end; in parseOpts() 298 goto end; in parseOpts() 304 goto end; in parseOpts() 310 goto end; in parseOpts() 316 goto end; in parseOpts() [all …]
|
| /rk3399_rockchip-uboot/scripts/dtc/libfdt/ |
| H A D | fdt_ro.c | 185 const char *end = path + namelen; in fdt_path_offset_namelen() local 193 const char *q = memchr(path, '/', end - p); in fdt_path_offset_namelen() 196 q = end; in fdt_path_offset_namelen() 206 while (p < end) { in fdt_path_offset_namelen() 211 if (p == end) in fdt_path_offset_namelen() 214 q = memchr(p, '/', end - p); in fdt_path_offset_namelen() 216 q = end; in fdt_path_offset_namelen() 569 const char *list, *end; in fdt_stringlist_count() local 576 end = list + length; in fdt_stringlist_count() 578 while (list < end) { in fdt_stringlist_count() [all …]
|
| /rk3399_rockchip-uboot/arch/arm/lib/ |
| H A D | cache.c | 78 phys_addr_t start, end; in noncached_init() local 81 end = ALIGN(mem_malloc_start, MMU_SECTION_SIZE) - MMU_SECTION_SIZE; in noncached_init() 83 start = end - size; in noncached_init() 85 debug("mapping memory %pa-%pa non-cached\n", &start, &end); in noncached_init() 88 noncached_end = end; in noncached_init()
|