Home
last modified time | relevance | path

Searched refs:count (Results 1 – 25 of 601) sorted by relevance

12345678910>>...25

/u-boot/drivers/misc/
A Djz4780_efuse.c44 ((count - 1) << EFUSE_EFUCTRL_LEN_BIT) | in jz4780_efuse_read_chunk()
54 if ((count % 4) == 0) { in jz4780_efuse_read_chunk()
55 for (i = 0; i < count / 4; i++) { in jz4780_efuse_read_chunk()
61 if (count > 2) in jz4780_efuse_read_chunk()
63 if (count > 1) in jz4780_efuse_read_chunk()
71 if (count >= 32) in jz4780_efuse_chunk_size()
73 else if ((count / 4) > 0) in jz4780_efuse_chunk_size()
74 return (count / 4) * 4; in jz4780_efuse_chunk_size()
76 return count % 4; in jz4780_efuse_chunk_size()
83 while (count > 0) { in jz4780_efuse_read()
[all …]
/u-boot/common/
A Ds_record.c38 if ((*count = hex2_bin(input)) < 0) { in srec_decode()
42 chksum += *count; in srec_decode()
49 *count -= 3; /* - checksum and addr */ in srec_decode()
53 *count -= 3; /* - checksum and addr */ in srec_decode()
57 *count -= 4; /* - checksum and addr */ in srec_decode()
61 *count -= 5; /* - checksum and addr */ in srec_decode()
66 *count = 0; /* no data */ in srec_decode()
71 *count -= 5; /* - checksum and addr */ in srec_decode()
75 *count -= 4; /* - checksum and addr */ in srec_decode()
79 *count -= 3; /* - checksum and addr */ in srec_decode()
[all …]
A Dkgdb.c143 tmp = buf + count; in mem2hex()
148 while (count-- > 0) { in mem2hex()
231 int count; in getpacket() local
248 count = 0; in getpacket()
256 buffer[count] = ch; in getpacket()
257 count = count + 1; in getpacket()
263 buffer[count] = 0; in getpacket()
291 int count; in putpacket() local
298 count = 0; in putpacket()
303 count += 1; in putpacket()
[all …]
A Dimage-fit-sig.c40 int count, in fit_region_make_list() argument
58 for (i = 0; i < count; i++) { in fit_region_make_list()
259 int count; in fit_config_check_sig() local
281 count++; in fit_config_check_sig()
282 if (!count) { in fit_config_check_sig()
299 char *node_inc[count]; in fit_config_check_sig()
322 max_regions = 20 + count * 7; in fit_config_check_sig()
326 count = fdt_find_regions(fit, node_inc, count, in fit_config_check_sig()
330 if (count < 0) { in fit_config_check_sig()
334 if (count == 0) { in fit_config_check_sig()
[all …]
A Dfdt_region.c25 for (i = 0; i < count; i++) in str_in_list()
41 int count = 0; in fdt_find_regions() local
131 if (count && count <= max_regions && in fdt_find_regions()
140 if (count < max_regions) { in fdt_find_regions()
144 count++; in fdt_find_regions()
153 if (count < max_regions) { in fdt_find_regions()
159 count++; in fdt_find_regions()
161 return count; in fdt_find_regions()
260 info->count = count; in fdt_add_alias_regions()
291 return info->count < max_regions ? info->count : -FDT_ERR_NOSPACE; in fdt_add_alias_regions()
[all …]
/u-boot/lib/
A Dstring.c164 if (count) { in strncat()
209 while (count) { in strncmp()
212 count--; in strncmp()
308 ++count; in strcspn()
310 return count; in strcspn()
371 return count; in strspn()
372 ++count; in strspn()
375 return count; in strspn()
515 while (count--) in memset()
550 while (count--) in memcpy()
[all …]
A Doid_registry.c116 int count; in sprint_oid() local
122 ret = count = snprintf(buffer, bufsize, "%u.%u", n / 40, n % 40); in sprint_oid()
123 if (count >= bufsize) in sprint_oid()
125 buffer += count; in sprint_oid()
126 bufsize -= count; in sprint_oid()
143 ret += count = snprintf(buffer, bufsize, ".%lu", num); in sprint_oid()
144 if (count >= bufsize) in sprint_oid()
146 buffer += count; in sprint_oid()
147 bufsize -= count; in sprint_oid()
/u-boot/tools/
A Dfile2include.c30 size_t count, i, j; in main() local
49 count = ftell(file); in main()
50 if (!count) { in main()
56 buf = malloc(count); in main()
61 count = fread(buf, 1, count, file); in main()
70 printf("#define EFI_ST_DISK_IMG { 0x%08zx, { \\\n", count); in main()
72 for (i = 0; i < count; i += BLOCK_SIZE) { in main()
75 for (j = i; j < i + BLOCK_SIZE && j < count; ++j) { in main()
82 for (j = i; j < i + BLOCK_SIZE && j < count; ++j) in main()
85 for (j = i; j < i + BLOCK_SIZE && j < count; ++j) { in main()
A Dmkexynosspl.c81 int var_size_flag, read_size, count; in main() local
128 count = len; in main()
136 count = CHECKSUM_OFFSET; in main()
140 buffer = malloc(count); in main()
144 prog_name, count, argv[if_index]); in main()
155 if (read_size < count) in main()
156 memset((char *)buffer + read_size, 0xff, count - read_size); in main()
158 for (i = 0, checksum = 0; i < count; i++) in main()
170 spl_size = cpu_to_le32(count + sizeof(struct var_size_header)); in main()
175 write_to_file(ofd, buffer, count); in main()
/u-boot/arch/powerpc/lib/
A D_ashrdi3.S34 srw r4,r4,r5 # LSW = count > 31 ? 0 : LSW >> count
36 slw r6,r3,r6 # t1 = count > 31 ? 0 : MSW << (32-count)
37 rlwinm r8,r7,0,32 # t3 = (count < 32) ? 32 : 0
38 sraw r7,r3,r7 # t2 = MSW >> (count-32)
40 slw r7,r7,r8 # t2 = (count < 32) ? 0 : t2
41 sraw r3,r3,r5 # MSW = MSW >> count
A D_ashldi3.S34 slw r3,r3,r5 # MSW = count > 31 ? 0 : MSW << count
36 srw r6,r4,r6 # t1 = count > 31 ? 0 : LSW >> (32-count)
37 slw r7,r4,r7 # t2 = count < 32 ? 0 : LSW << (count-32)
39 slw r4,r4,r5 # LSW = LSW << count
A D_lshrdi3.S34 srw r4,r4,r5 # LSW = count > 31 ? 0 : LSW >> count
36 slw r6,r3,r6 # t1 = count > 31 ? 0 : MSW << (32-count)
37 srw r7,r3,r7 # t2 = count < 32 ? 0 : MSW >> (count-32)
39 srw r3,r3,r5 # MSW = MSW >> count
/u-boot/lib/efi_selftest/
A Defi_selftest_manageprotocols.c53 for (i = 0; i < count; ++i) { in find_in_buffer()
140 efi_uintn_t count = 0; in execute() local
166 &count, &buffer); in execute()
171 buffer_size = count; in execute()
220 count = buffer_size; in execute()
222 &count, &buffer); in execute()
227 if (count != 2) { in execute()
249 &count, buffer); in execute()
258 buffer_size = count; in execute()
304 count = buffer_size; in execute()
[all …]
A Defi_selftest_controllers.c48 *count = 0; in count_child_controllers()
58 ++*count; in count_child_controllers()
203 efi_uintn_t count; in stop() local
227 while (count) { in stop()
312 efi_uintn_t count; in execute() local
322 &count); in execute()
337 &count); in execute()
350 &count); in execute()
364 &count); in execute()
389 &count); in execute()
[all …]
/u-boot/arch/x86/cpu/ivybridge/
A Dearly_me.c34 int count; in intel_early_me_init() local
41 for (count = ME_RETRY; count > 0; --count) { in intel_early_me_init()
47 if (!count) { in intel_early_me_init()
99 int count; in intel_early_me_init_done() local
120 for (count = ME_RETRY; count > 0; --count) { in intel_early_me_init_done()
126 if (!count) { in intel_early_me_init_done()
/u-boot/board/alliedtelesis/common/
A Dgpio_hog.c17 int count; in gpio_hog_list() local
25 count = in gpio_hog_list()
29 if (count < 0) in gpio_hog_list()
30 return count; in gpio_hog_list()
32 for (i = 0; i < count; i++) in gpio_hog_list()
/u-boot/test/py/tests/
A Dtest_sf.py120 count = sf_params['len']
124 cmd = 'mw.b %08x %02x %x' % (addr, pattern, count)
126 crc_pattern = u_boot_utils.crc32(u_boot_console, addr, count)
130 cmd = 'sf read %08x %08x %x' % (addr, offset, count)
154 count = sf_params['len']
157 cmd = 'mw.b %08x %02x %x' % (addr, pattern, count)
161 cmd = 'sf update %08x %08x %x' % (addr, offset, count)
196 count = sf_params['len']
198 cmd = 'sf erase %08x %x' % (offset, count)
202 cmd = 'mw.b %08x ff %x' % (addr, count)
[all …]
/u-boot/drivers/w1-eeprom/
A Deep_sandbox.c18 u8 *buf, unsigned int count) in eep_sandbox_read_buf() argument
21 if (offset + count < strlen(EEP_SANDBOX_SAMPLE_MEM)) { in eep_sandbox_read_buf()
23 count = strlen(EEP_SANDBOX_SAMPLE_MEM); in eep_sandbox_read_buf()
25 strncpy((char *)buf, EEP_SANDBOX_SAMPLE_MEM, count); in eep_sandbox_read_buf()
38 w1_read_buf(dev, buf, count); in eep_sandbox_read_buf()
/u-boot/arch/arm/mach-snapdragon/
A Ddram.c58 int count = 0; in msm_fixup_memory() local
81 bank_start[count] = p->start; in msm_fixup_memory()
82 bank_size[count] = p->size; in msm_fixup_memory()
84 count, p->start, p->size); in msm_fixup_memory()
85 count++; in msm_fixup_memory()
89 if (!count) { in msm_fixup_memory()
94 ret = fdt_fixup_memory_banks(blob, bank_start, bank_size, count); in msm_fixup_memory()
/u-boot/drivers/mtd/ubi/
A Dupd.c274 const void __user *buf, int count) in ubi_more_update_data() argument
279 int lnum, err = 0, len, to_write = count; in ubi_more_update_data()
306 if (len > count) in ubi_more_update_data()
307 len = count; in ubi_more_update_data()
329 count -= len; in ubi_more_update_data()
338 while (count) { in ubi_more_update_data()
339 if (count > vol->usable_leb_size) in ubi_more_update_data()
342 len = count; in ubi_more_update_data()
357 count -= len; in ubi_more_update_data()
411 vol->upd_received += count; in ubi_more_leb_change_data()
[all …]
/u-boot/arch/x86/cpu/apollolake/
A Dfsp_bindings.c27 if (count == 0) { in read_u8_prop()
34 memcpy(dst, buf, count); in read_u8_prop()
55 if (ARRAY_SIZE(buf) < count) { in read_u16_prop()
60 if (count == 0) { in read_u16_prop()
67 for (int i = 0; i < count; i++) in read_u16_prop()
86 if (count == 0) in read_u32_prop()
89 ofnode_read_u32_array(node, name, dst, count); in read_u32_prop()
104 if (count == 0) { in read_u64_prop()
126 if (count > 0) { in read_string_prop()
129 strlcpy(dst, string_buf, count); in read_string_prop()
[all …]
/u-boot/arch/x86/cpu/broadwell/
A Dme.c25 int count; in intel_me_hsio_version() local
34 for (count = ME_RETRY; count > 0; --count) { in intel_me_hsio_version()
40 if (!count) { in intel_me_hsio_version()
/u-boot/drivers/tpm/
A Dtpm_tis_infineon.c77 int count; in tpm_tis_i2c_read() local
82 for (count = 0; count < MAX_COUNT; count++) { in tpm_tis_i2c_read()
95 for (count = 0; count < MAX_COUNT; count++) { in tpm_tis_i2c_read()
109 for (count = 0; count < MAX_COUNT; count++) { in tpm_tis_i2c_read()
132 int count; in tpm_tis_i2c_write_generic() local
143 for (count = 0; count < max_count; count++) { in tpm_tis_i2c_write_generic()
352 while (size < count) { in tpm_tis_i2c_recv_data()
399 count); in tpm_tis_i2c_recv()
427 size_t count = 0; in tpm_tis_i2c_send() local
455 while (count < len) { in tpm_tis_i2c_send()
[all …]
/u-boot/fs/jffs2/
A Dmini_inflate.c126 set->count[bits])) { in read_symbol()
244 if (length) codes->count[length]++; in decompress_dynamic()
259 lengths->count[symbol]++; in decompress_dynamic()
268 lengths->count[last_code]++; in decompress_dynamic()
272 distance->count[last_code]++; in decompress_dynamic()
294 distance->count[symbol]++; in decompress_dynamic()
301 distance->count[last_code]++; in decompress_dynamic()
330 lengths->count[7] = 24; in decompress_fixed()
331 lengths->count[8] = 152; in decompress_fixed()
332 lengths->count[9] = 112; in decompress_fixed()
[all …]
/u-boot/arch/x86/lib/
A Dsfi.c29 int count; member
34 if (tab->count == SFI_TABLE_MAX_ENTRIES) in get_entry_start()
37 tab->table[tab->count] = tab->entry_start; in get_entry_start()
57 tab->count++; in finish_table()
68 for (i = 0; i < tab->count; i++) in sfi_write_system_header()
79 int count = 0; in sfi_write_cpus() local
93 count++; in sfi_write_cpus()
97 if (count > 1) in sfi_write_cpus()
139 table.count = 0; in write_sfi_table()

Completed in 1092 milliseconds

12345678910>>...25