Home
last modified time | relevance | path

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

12345678910>>...29

/u-boot/arch/arm/lib/
A Dmemset-arm64.S20 #define count x2 macro
54 cmp count, x3
63 cmp count, 96
65 cmp count, 16
70 tbz count, 3, 1f
79 2: cbz count, 3f
81 tbz count, 1, 3f
109 cmp count, 160
123 sub count, count, 128 /* Adjust count and bias for loop. */
129 subs count, count, 64
[all …]
A Dmemcpy-arm64.S18 #define count x2 macro
37 #define G_l count
63 cmp count, 128
65 cmp count, 32
69 cmp count, 16
116 cmp count, 64
159 add count, count, tmp1 /* Count is now 16 too large. */
177 subs count, count, 64
204 sub count, count, tmp1
211 subs count, count, 128
[all …]
/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 …]
/u-boot/lib/
A Dstring.c169 if (count) { in strncat()
237 while (count--) { in strncmp()
337 return count; in strcspn()
339 ++count; in strcspn()
341 return count; in strcspn()
402 return count; in strspn()
403 ++count; in strspn()
406 return count; in strspn()
546 while (count--) in memset()
581 while (count--) in memcpy()
[all …]
A Dtpm_api.c130 return tpm1_nv_read_value(dev, index, data, count); in tpm_nv_read_value()
132 return tpm2_nv_read_value(dev, index, data, count); in tpm_nv_read_value()
138 u32 count) in tpm_nv_write_value() argument
141 return tpm1_nv_write_value(dev, index, data, count); in tpm_nv_write_value()
143 return tpm2_nv_write_value(dev, index, data, count); in tpm_nv_write_value()
180 return tpm1_pcr_read(dev, index, data, count); in tpm_pcr_read()
217 return tpm1_read_pubek(dev, data, count); in tpm_read_pubek()
270 void *cap, size_t count) in tpm_get_capability() argument
290 u32 tpm_get_random(struct udevice *dev, void *data, u32 count) in tpm_get_random() argument
293 return tpm1_get_random(dev, data, count); in tpm_get_random()
[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()
142 efi_uintn_t count = 0; in execute() local
168 &count, &buffer); in execute()
173 buffer_size = count; in execute()
222 count = buffer_size; in execute()
224 &count, &buffer); in execute()
229 if (count != 2) { in execute()
251 &count, buffer); in execute()
260 buffer_size = count; in execute()
306 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()
314 efi_uintn_t count; in execute() local
324 &count); in execute()
339 &count); in execute()
352 &count); in execute()
366 &count); in execute()
391 &count); in execute()
[all …]
A Defi_selftest_exitbootservices.c19 unsigned int count; member
52 if (ctx->record->count >= CAPACITY) in ebs_notify()
55 ctx->record->type[ctx->record->count] = ctx->type; in ebs_notify()
56 ctx->record->count++; in ebs_notify()
108 if (record.count != 2) { in execute()
109 efi_st_error("Incorrect event count %u\n", record.count); in execute()
121 if (record.count != 2) { in execute()
122 efi_st_error("Incorrect event count %u\n", record.count); in execute()
/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/boot/
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()
262 info->count = count; in fdt_add_alias_regions()
293 return info->count < max_regions ? info->count : -FDT_ERR_NOSPACE; in fdt_add_alias_regions()
[all …]
A Dimage-fit-sig.c40 int count, in fit_region_make_list() argument
56 for (i = 0; i < count; i++) { in fit_region_make_list()
279 int count; in fit_config_check_sig() local
301 count++; in fit_config_check_sig()
302 if (!count) { in fit_config_check_sig()
319 char *node_inc[count]; in fit_config_check_sig()
342 max_regions = 20 + count * 7; in fit_config_check_sig()
346 count = fdt_find_regions(fit, node_inc, count, in fit_config_check_sig()
350 if (count < 0) { in fit_config_check_sig()
354 if (count == 0) { in fit_config_check_sig()
[all …]
/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/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/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/drivers/misc/sentinel/
A Ds4mu.c90 u8 count = 0; in imx8ulp_mu_read() local
99 count++; in imx8ulp_mu_read()
108 while (count < msg->size) { in imx8ulp_mu_read()
110 &msg->data[count - 1]); in imx8ulp_mu_read()
113 count++; in imx8ulp_mu_read()
123 u8 count = 0; in imx8ulp_mu_write() local
136 count++; in imx8ulp_mu_write()
139 while (count < msg->size) { in imx8ulp_mu_write()
140 ret = mu_hal_sendmsg((ulong)base, count % MU_TR_COUNT, in imx8ulp_mu_write()
141 msg->data[count - 1]); in imx8ulp_mu_write()
[all …]
/u-boot/drivers/watchdog/
A Dcdns_wdt.c131 u32 count, prescaler, ctrl_clksel, data = 0; in cdns_wdt_start() local
165 count = (timeout * (clk_f / prescaler)) / in cdns_wdt_start()
168 if (count > CDNS_WDT_COUNTER_MAX) in cdns_wdt_start()
169 count = CDNS_WDT_COUNTER_MAX; in cdns_wdt_start()
173 count = (count << 2) & CDNS_WDT_CCR_CRV_MASK; in cdns_wdt_start()
176 data = count | CDNS_WDT_REGISTER_ACCESS_KEY | ctrl_clksel; in cdns_wdt_start()
232 u32 data, count = 0; in cdns_wdt_expire_now() local
235 count = 0x40; /* Increase the value if you need more time */ in cdns_wdt_expire_now()
241 count = (count << 2) & CDNS_WDT_CCR_CRV_MASK; in cdns_wdt_expire_now()
244 data = count | CDNS_WDT_REGISTER_ACCESS_KEY; in cdns_wdt_expire_now()

Completed in 43 milliseconds

12345678910>>...29