| /rk3399_rockchip-uboot/cmd/ddr_tool/memtester/ |
| H A D | tests.h | 23 int test_stuck_address(u32v *bufa, size_t count); 25 u32v *bufb, size_t count, ul fix_bit, ul fix_level); 27 u32v *bufb, size_t count, ul fix_bit, ul fix_level); 29 u32v *bufb, size_t count, ul fix_bit, ul fix_level); 31 u32v *bufb, size_t count, ul fix_bit, ul fix_level); 33 u32v *bufb, size_t count, ul fix_bit, ul fix_level); 35 u32v *bufb, size_t count, ul fix_bit, ul fix_level); 37 u32v *bufb, size_t count, ul fix_bit, ul fix_level); 38 int test_seqinc_comparison(u32v *bufa, u32v *bufb, size_t count, 40 int test_solidbits_comparison(u32v *bufa, u32v *bufb, size_t count, [all …]
|
| H A D | tests.c | 40 int compare_regions(u32v *bufa, u32v *bufb, size_t count) in compare_regions() argument 48 for (i = 0; i < count; i++, p1++, p2++) { in compare_regions() 69 int test_stuck_address(u32v *bufa, size_t count) in test_stuck_address() argument 83 for (i = 0; i < count; i++) { in test_stuck_address() 91 for (i = 0; i < count; i++, p1++) { in test_stuck_address() 117 int test_random_value(u32v *bufa, u32v *bufb, size_t count, in test_random_value() argument 127 for (i = 0; i < count; i++) { in test_random_value() 137 return compare_regions(bufa, bufb, count); in test_random_value() 140 int test_xor_comparison(u32v *bufa, u32v *bufb, size_t count, in test_xor_comparison() argument 149 for (i = 0; i < count; i++) { in test_xor_comparison() [all …]
|
| /rk3399_rockchip-uboot/lib/ |
| H A D | string.c | 94 char * strncpy(char * dest,const char *src,size_t count) in strncpy() argument 98 while (count-- && (*dest++ = *src++) != '\0') in strncpy() 159 char * strncat(char *dest, const char *src, size_t count) in strncat() argument 163 if (count) { in strncat() 167 if (--count == 0) { in strncat() 204 int strncmp(const char * cs,const char * ct,size_t count) in strncmp() argument 208 while (count) { in strncmp() 211 count--; in strncmp() 279 size_t strnlen(const char * s, size_t count) in strnlen() argument 283 for (sc = s; count-- && *sc != '\0'; ++sc) in strnlen() [all …]
|
| H A D | time.c | 42 ulong count = timer_read_counter(); in timer_get_boot_us() local 45 return count; in timer_get_boot_us() 47 return lldiv(count, CONFIG_SYS_TIMER_RATE / 1000000); in timer_get_boot_us() 49 return (unsigned long long)count * 1000000 / CONFIG_SYS_TIMER_RATE; in timer_get_boot_us() 52 return count; in timer_get_boot_us() 80 u64 count; in get_ticks() local 95 ret = timer_get_count(gd->timer, &count); in get_ticks() 99 return count; in get_ticks()
|
| /rk3399_rockchip-uboot/common/ |
| H A D | s_record.c | 14 int srec_decode (char *input, int *count, ulong *addr, char *data) in srec_decode() argument 39 if ((*count = hex2_bin(input)) < 0) { in srec_decode() 43 chksum += *count; in srec_decode() 50 *count -= 3; /* - checksum and addr */ in srec_decode() 54 *count -= 3; /* - checksum and addr */ in srec_decode() 58 *count -= 4; /* - checksum and addr */ in srec_decode() 62 *count -= 5; /* - checksum and addr */ in srec_decode() 67 *count = 0; /* no data */ in srec_decode() 72 *count -= 5; /* - checksum and addr */ in srec_decode() 76 *count -= 4; /* - checksum and addr */ in srec_decode() [all …]
|
| H A D | kgdb.c | 133 mem2hex(char *mem, char *buf, int count) in mem2hex() argument 142 tmp = buf + count; in mem2hex() 145 memcpy(tmp, mem, count); in mem2hex() 147 while (count-- > 0) { in mem2hex() 161 hex2mem(char *buf, char *mem, int count) in hex2mem() argument 170 tmp_raw = buf + count * 2; in hex2mem() 187 memcpy(mem, tmp_raw, count); in hex2mem() 189 kgdb_flush_cache_range((void *)mem, (void *)(mem+count)); in hex2mem() 230 int count; in getpacket() local 247 count = 0; in getpacket() [all …]
|
| H A D | image-sig.c | 166 struct fdt_region *fdt_regions, int count, in fit_region_make_list() argument 180 region = calloc(sizeof(*region), count); in fit_region_make_list() 184 for (i = 0; i < count; i++) { in fit_region_make_list() 353 int count; in fit_config_check_sig() local 372 for (name = prop, count = 0; name < end; name++) in fit_config_check_sig() 374 count++; in fit_config_check_sig() 375 if (!count) { in fit_config_check_sig() 381 if (count > IMAGE_MAX_HASHED_NODES) { in fit_config_check_sig() 387 char *node_inc[count]; in fit_config_check_sig() 389 debug("Hash nodes (%d):\n", count); in fit_config_check_sig() [all …]
|
| /rk3399_rockchip-uboot/arch/powerpc/lib/ |
| H A D | _ashrdi3.S | 35 srw r4,r4,r5 # LSW = count > 31 ? 0 : LSW >> count 37 slw r6,r3,r6 # t1 = count > 31 ? 0 : MSW << (32-count) 38 rlwinm r8,r7,0,32 # t3 = (count < 32) ? 32 : 0 39 sraw r7,r3,r7 # t2 = MSW >> (count-32) 41 slw r7,r7,r8 # t2 = (count < 32) ? 0 : t2 42 sraw r3,r3,r5 # MSW = MSW >> count
|
| H A D | _ashldi3.S | 35 slw r3,r3,r5 # MSW = count > 31 ? 0 : MSW << count 37 srw r6,r4,r6 # t1 = count > 31 ? 0 : LSW >> (32-count) 38 slw r7,r4,r7 # t2 = count < 32 ? 0 : LSW << (count-32) 40 slw r4,r4,r5 # LSW = LSW << count
|
| H A D | _lshrdi3.S | 35 srw r4,r4,r5 # LSW = count > 31 ? 0 : LSW >> count 37 slw r6,r3,r6 # t1 = count > 31 ? 0 : MSW << (32-count) 38 srw r7,r3,r7 # t2 = count < 32 ? 0 : MSW >> (count-32) 40 srw r3,r3,r5 # MSW = MSW >> count
|
| /rk3399_rockchip-uboot/drivers/core/ |
| H A D | regmap.c | 21 static struct regmap *regmap_alloc_count(int count) in regmap_alloc_count() argument 28 if (count <= 1) { in regmap_alloc_count() 31 map->range = malloc(count * sizeof(struct regmap_range)); in regmap_alloc_count() 37 map->range_count = count; in regmap_alloc_count() 43 int regmap_init_mem_platdata(struct udevice *dev, fdt_val_t *reg, int count, in regmap_init_mem_platdata() argument 49 map = regmap_alloc_count(count); in regmap_init_mem_platdata() 54 for (range = map->range; count > 0; reg += 2, range++, count--) { in regmap_init_mem_platdata() 68 int count; in regmap_init_mem() local 83 count = len / both_len; in regmap_init_mem() 84 if (!count) in regmap_init_mem() [all …]
|
| /rk3399_rockchip-uboot/drivers/rkflash/ |
| H A D | rkflash_api.c | 98 u32 offset, count = 0; in rksfc_nor_read() local 111 count = FLASH_VENDOR_PART_START - sec; in rksfc_nor_read() 113 ret = snor_read(p_dev, sec, count, buf); in rksfc_nor_read() 114 if (ret != count) in rksfc_nor_read() 118 count = sec + n_sec - 1 - FLASH_VENDOR_PART_END; in rksfc_nor_read() 123 count, buf); in rksfc_nor_read() 124 if (ret != count) in rksfc_nor_read() 162 u32 offset, count = 0; in rksfc_nor_write() local 178 count = FLASH_VENDOR_PART_START - sec; in rksfc_nor_write() 180 ret = snor_write(p_dev, sec, count, buf); in rksfc_nor_write() [all …]
|
| /rk3399_rockchip-uboot/arch/x86/cpu/ivybridge/ |
| H A D | early_me.c | 32 int count; in intel_early_me_init() local 39 for (count = ME_RETRY; count > 0; --count) { in intel_early_me_init() 45 if (!count) { in intel_early_me_init() 97 int count; in intel_early_me_init_done() local 118 for (count = ME_RETRY; count > 0; --count) { in intel_early_me_init_done() 124 if (!count) { in intel_early_me_init_done()
|
| /rk3399_rockchip-uboot/lib/libfdt/ |
| H A D | fdt_region.c | 21 static int str_in_list(const char *str, char * const list[], int count) in str_in_list() argument 25 for (i = 0; i < count; i++) in str_in_list() 41 int count = 0; in fdt_find_regions() local 115 if (count && count <= max_regions && in fdt_find_regions() 116 offset == region[count - 1].offset + in fdt_find_regions() 117 region[count - 1].size - base) in fdt_find_regions() 118 start = region[--count].offset - base; in fdt_find_regions() 124 if (count < max_regions) { in fdt_find_regions() 125 region[count].offset = base + start; in fdt_find_regions() 126 region[count].size = stop_at - start; in fdt_find_regions() [all …]
|
| /rk3399_rockchip-uboot/drivers/reset/ |
| H A D | reset-uclass.c | 86 int i, ret, err, count; in reset_get_bulk() local 88 bulk->count = 0; in reset_get_bulk() 90 count = dev_count_phandle_with_args(dev, "resets", "#reset-cells"); in reset_get_bulk() 91 if (count < 1) in reset_get_bulk() 92 return count; in reset_get_bulk() 94 bulk->resets = devm_kcalloc(dev, count, sizeof(struct reset_ctl), in reset_get_bulk() 99 for (i = 0; i < count; i++) { in reset_get_bulk() 104 ++bulk->count; in reset_get_bulk() 110 err = reset_release_all(bulk->resets, bulk->count); in reset_get_bulk() 167 for (i = 0; i < bulk->count; i++) { in reset_assert_bulk() [all …]
|
| /rk3399_rockchip-uboot/drivers/mtd/ubi/ |
| H A D | upd.c | 273 const void __user *buf, int count) in ubi_more_update_data() argument 276 int lnum, offs, err = 0, len, to_write = count; in ubi_more_update_data() 278 int lnum, err = 0, len, to_write = count; in ubi_more_update_data() 283 count, vol->upd_bytes, vol->upd_received); in ubi_more_update_data() 289 if (vol->upd_received + count > vol->upd_bytes) in ubi_more_update_data() 290 to_write = count = vol->upd_bytes - vol->upd_received; in ubi_more_update_data() 305 if (len > count) in ubi_more_update_data() 306 len = count; in ubi_more_update_data() 328 count -= len; in ubi_more_update_data() 337 while (count) { in ubi_more_update_data() [all …]
|
| /rk3399_rockchip-uboot/arch/microblaze/include/asm/ |
| H A D | io.h | 74 static inline void io_insb (unsigned long port, void *dst, unsigned long count) in io_insb() argument 77 while (count--) in io_insb() 80 static inline void io_insw (unsigned long port, void *dst, unsigned long count) in io_insw() argument 83 while (count--) in io_insw() 86 static inline void io_insl (unsigned long port, void *dst, unsigned long count) in io_insl() argument 89 while (count--) in io_insl() 94 io_outsb (unsigned long port, const void *src, unsigned long count) in io_outsb() argument 97 while (count--) in io_outsb() 101 io_outsw (unsigned long port, const void *src, unsigned long count) in io_outsw() argument 104 while (count--) in io_outsw() [all …]
|
| /rk3399_rockchip-uboot/drivers/tpm/ |
| H A D | tpm_tis_infineon.c | 78 int count; in tpm_tis_i2c_read() local 83 for (count = 0; count < MAX_COUNT; count++) { in tpm_tis_i2c_read() 96 for (count = 0; count < MAX_COUNT; count++) { in tpm_tis_i2c_read() 110 for (count = 0; count < MAX_COUNT; count++) { in tpm_tis_i2c_read() 133 int count; in tpm_tis_i2c_write_generic() local 144 for (count = 0; count < max_count; count++) { in tpm_tis_i2c_write_generic() 346 static int tpm_tis_i2c_recv_data(struct udevice *dev, u8 *buf, size_t count) in tpm_tis_i2c_recv_data() argument 353 while (size < count) { in tpm_tis_i2c_recv_data() 361 if (burstcnt > (count - size)) in tpm_tis_i2c_recv_data() 362 burstcnt = count - size; in tpm_tis_i2c_recv_data() [all …]
|
| /rk3399_rockchip-uboot/tools/ |
| H A D | mkexynosspl.c | 82 int var_size_flag, read_size, count; in main() local 129 count = len; in main() 137 count = CHECKSUM_OFFSET; in main() 141 buffer = malloc(count); in main() 145 prog_name, count, argv[if_index]); in main() 156 if (read_size < count) in main() 157 memset((char *)buffer + read_size, 0xff, count - read_size); in main() 159 for (i = 0, checksum = 0; i < count; i++) in main() 171 spl_size = cpu_to_le32(count + sizeof(struct var_size_header)); in main() 176 write_to_file(ofd, buffer, count); in main()
|
| /rk3399_rockchip-uboot/test/dm/ |
| H A D | test-fdt.c | 310 int count; in dm_test_first_next_device() local 314 for (uclass_first_device(UCLASS_TEST_PROBE, &dev), count = 0; in dm_test_first_next_device() 317 count++; in dm_test_first_next_device() 320 ut_asserteq(4, count); in dm_test_first_next_device() 328 count = 0; in dm_test_first_next_device() 332 count++; in dm_test_first_next_device() 337 ut_asserteq(3, count); in dm_test_first_next_device() 344 for (uclass_first_device(UCLASS_TEST_PROBE, &dev), count = 0; in dm_test_first_next_device() 347 count++; in dm_test_first_next_device() 350 ut_asserteq(2, count); in dm_test_first_next_device() [all …]
|
| /rk3399_rockchip-uboot/fs/jffs2/ |
| H A D | mini_inflate.c | 43 stream->codes.count = stream->code_count; in init_stream() 51 stream->lengths.count = stream->length_count; in init_stream() 59 stream->distance.count = stream->distance_count; in init_stream() 127 while (!(set->count[bits] && code < set->first[bits] + in read_symbol() 128 set->count[bits])) { in read_symbol() 191 code = (code + set->count[i - 1]) << 1; in fill_code_tables() 193 set->pos[i] = set->pos[i - 1] + set->count[i - 1]; in fill_code_tables() 203 for (i = 1; i < set->bits; i++) set->pos[i] -= set->count[i]; in fill_code_tables() 209 cramfs_memset(set->count, 0, set->bits); in init_code_tables() 246 if (length) codes->count[length]++; in decompress_dynamic() [all …]
|
| /rk3399_rockchip-uboot/tools/buildman/ |
| H A D | control.py | 22 def GetPlural(count): argument 24 return 's' if count != 1 else '' 33 count = len(commits) 34 count = (count + options.step - 1) / options.step 35 commit_str = '%d commit%s' % (count, GetPlural(count)) 150 count = options.count 152 if count == -1: 154 count = 1 157 count, msg = gitutil.CountCommitsInRange(options.git_dir, 160 count, msg = gitutil.CountCommitsInBranch(options.git_dir, [all …]
|
| /rk3399_rockchip-uboot/cmd/ |
| H A D | tpm.c | 28 static void print_byte_string(uint8_t *data, size_t count) in print_byte_string() argument 32 for (i = 0; i < count; i++) { in print_byte_string() 58 size_t count, length; in parse_byte_string() local 64 count = length / 2; in parse_byte_string() 67 data = malloc(count); in parse_byte_string() 79 *count_ptr = count; in parse_byte_string() 149 static void *type_string_alloc(const char *type_str, uint32_t *count) in type_string_alloc() argument 159 *count = size; in type_string_alloc() 279 uint32_t index, count, rc; in do_tpm_nv_read_value() local 286 count = simple_strtoul(argv[3], NULL, 0); in do_tpm_nv_read_value() [all …]
|
| /rk3399_rockchip-uboot/arch/x86/lib/ |
| H A D | sfi.c | 30 int count; member 35 if (tab->count == SFI_TABLE_MAX_ENTRIES) in get_entry_start() 38 tab->table[tab->count] = tab->entry_start; in get_entry_start() 58 tab->count++; in finish_table() 69 for (i = 0; i < tab->count; i++) in sfi_write_system_header() 80 int count = 0; in sfi_write_cpus() local 94 count++; in sfi_write_cpus() 98 if (count > 1) in sfi_write_cpus() 140 table.count = 0; in write_sfi_table()
|
| /rk3399_rockchip-uboot/arch/x86/cpu/broadwell/ |
| H A D | me.c | 24 int count; in intel_me_hsio_version() local 33 for (count = ME_RETRY; count > 0; --count) { in intel_me_hsio_version() 39 if (!count) { in intel_me_hsio_version()
|