Home
last modified time | relevance | path

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

12

/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()
A Dfdtgrep.c690 int count; in fdtgrep_find_regions() local
693 count = 0; in fdtgrep_find_regions()
699 count < max_regions ? &region[count] : NULL, in fdtgrep_find_regions()
702 count++; in fdtgrep_find_regions()
723 count = new_count; in fdtgrep_find_regions()
729 return count; in fdtgrep_find_regions()
818 int count = 100; in do_fdtgrep() local
848 count); in do_fdtgrep()
851 max_regions = count; in do_fdtgrep()
856 if (count < 0) { in do_fdtgrep()
[all …]
A Dmksunxiboot.c69 int count; in main() local
131 count = read(fd_in, img.code, file_size); in main()
132 if (count != file_size) { in main()
165 count = write(fd_out, &img, le32_to_cpu(img.header.length)); in main()
166 if (count != le32_to_cpu(img.header.length)) { in main()
A Dfit_common.c135 size_t count; in copyfile() local
165 count = size; in copyfile()
166 size = write(fd_dst, buf, count); in copyfile()
A Dimage-host.c393 ssize_t count; in get_random_data() local
395 count = read(fd, data, size); in get_random_data()
396 if (count < 0) { in get_random_data()
405 data += count; in get_random_data()
406 size -= count; in get_random_data()
715 int count; member
990 int count, i; in fit_config_get_regions() local
1005 count = fdt_find_regions(fit, node_inc.strings, node_inc.count, in fit_config_get_regions()
1009 if (count < 0) { in fit_config_get_regions()
1014 if (count == 0) { in fit_config_get_regions()
[all …]
A Difwitool.c810 for (i = 0; i < count; i++) { in bpdt_print_entries()
860 for (i = 0; i < count; i++) { in bpdt_read_entries()
883 for (i = 0; i < count; i++) { in __find_entry_by_type()
888 if (i == count) in __find_entry_by_type()
944 size_t count) in read_subpart_buf() argument
950 for (i = 0; i < count; i++) { in read_subpart_buf()
1453 for (i = 0; i < count; i++) { in bpdt_fixup_write_buffer()
1592 hdr->num_entries = count; in init_subpart_dir_header()
1667 for (i = 0; i < count; i++) { in subpart_dir_fixup_write_buffer()
1691 for (i = 0; i < count; i++) { in create_subpart()
[all …]
A Ddefault_image.c176 ulong count; in image_extract_subimage() local
179 count = image_multi_count(hdr); in image_extract_subimage()
184 if ((file_len == 0) || (idx >= count)) { in image_extract_subimage()
A Dmxsimage.h159 uint32_t count; member
164 uint32_t count; member
A Dfit_image.c781 int count = fdt_stringlist_count(fdt, node, props[i]); in fit_import_data() local
783 if (count < 0) in fit_import_data()
786 for (int j = 0; j < count; j++) { in fit_import_data()
1011 int count = 0; in fit_extract_contents() local
1026 count = fit_get_subimage_count(fit, images_noffset); in fit_extract_contents()
1027 if ((params->pflag < 0) || (count <= params->pflag)) { in fit_extract_contents()
1033 for (ndepth = 0, count = 0, in fit_extract_contents()
1042 if (params->pflag == count) { in fit_extract_contents()
1044 count, fit_get_name(fit, noffset, NULL)); in fit_extract_contents()
1052 count++; in fit_extract_contents()
A Dmkimage.c49 int count; in show_valid_options() local
53 count = genimg_get_cat_count(category); in show_valid_options()
54 order = calloc(count, sizeof(*order)); in show_valid_options()
59 for (i = 0, item = 0; i < count; i++, item++) { in show_valid_options()
60 while (!genimg_cat_has_id(category, item) && i < count) { in show_valid_options()
62 count--; in show_valid_options()
67 qsort(order, count, sizeof(int), h_compare_category_name); in show_valid_options()
71 for (i = 0; i < count; i++) { in show_valid_options()
/tools/buildman/
A Dcontrol.py44 def get_plural(count): argument
60 count = len(commits)
229 if count == -1:
231 count = 1
237 if count is None:
239 elif count == 0:
246 if not count:
250 return count, has_range
286 count, has_range = count_commits(branch, count, col, git_dir)
291 if count != 1:
[all …]
A Dbuilder.py478 count = len(self._timestamps)
484 if count > 1 and self._next_delay_update < now:
487 self._build_period = float(seconds) / count
488 todo = self.count - self.upto
497 count -= 1
585 line += ' /%-5d ' % self.count
586 remaining = self.count - self.upto
1205 count = len(target_list)
1212 avg_diff = float(diff) / count
1659 self.count = len(board_selected) * count
[all …]
A Dfunc_test.py306 count = int(args[3][2:])
524 self.assertEqual(self._builder.count, self._total_builds)
545 self.assertEqual(self._builder.count, self._total_builds)
551 self.assertEqual(self._builder.count, 2 * len(BOARDS))
565 self.assertEqual(self._builder.count, self._total_builds)
592 self.assertEqual(self._builder.count, self._total_builds)
600 self.assertEqual(self._builder.count, self._total_builds)
606 self.assertEqual(self._builder.count, self._total_builds)
1074 self.assertEqual(1, self._builder.count)
1078 self.assertEqual(2, self._builder.count)
[all …]
/tools/patman/
A Dsend.py118 def prepare_patches(col, branch, count, start, end, ignore_binary, signoff, argument
145 if count == -1:
147 count = (gitutil.count_commits_to_branch(branch, git_dir=git_dir) -
150 if not count:
156 to_do = count - end
182 col, args.branch, args.count, args.start, args.end,
A Dstatus.py138 count = 0
146 count += 1
147 return count
177 count = len(series.commits)
186 target = repo.revparse_single('%s~%d' % (branch, count))
190 for seq in range(count):
192 cherry = repo.revparse_single('%s~%d' % (branch, count - seq - 1))
257 count = len(series.commits)
258 new_rtag_list = [None] * count
259 review_list = [None] * count
[all …]
A Dpatchstream.py614 if self.commit.count == -1:
636 parts.append(str(self.commit.count + 1))
727 def get_list(commit_range, git_dir=None, count=None): argument
740 params = gitutil.log_cmd(commit_range, reverse=True, count=count,
765 stdout = get_list(commit_range, git_dir, count)
863 count = 0
865 cmt = series.commits[count]
867 cmt.count = count
877 count += 1
878 print('Cleaned %d patch%s' % (count, 'es' if count > 1 else ''))
[all …]
A Dcser_helper.py304 if not count:
508 count = len(pwc)
526 count = len(pwc)
648 count = len(pwc.values())
763 for _ in range(count):
947 name, count, new_name)
1146 count = len(pwc)
1182 count = len(pwc)
1235 for seq in range(count):
1301 count = len(pwc)
[all …]
A Dfunc_test.py209 count = 2
697 self.assertEqual(1, patch.count)
706 self.assertEqual(2, patch.count)
714 self.assertEqual(2, patch.count)
722 self.assertEqual(5, patch.count)
730 self.assertEqual(7, patch.count)
738 self.assertEqual(7, patch.count)
746 self.assertEqual(7, patch.count)
998 count = 2
1030 count = 2
[all …]
A Dpatchwork.py91 self.count = None
142 self.count = int(mat_seq.group(2))
145 self.count = 1
827 count = len(patch_list)
832 for i in range(count)]
839 for i in range(count):
A Dcontrol.py50 def patchwork_status(branch, count, start, end, dest_branch, force, argument
78 if count == -1:
80 count = gitutil.count_commits_to_branch(branch) - start
82 series = patchstream.get_metadata(branch, start, count - end)
317 patchwork_status(args.branch, args.count, args.start, args.end,
/tools/env/
A Dfw_env.c292 while (count > 0) { in ubi_read()
293 ret = read(fd, buf, count); in ubi_read()
295 count -= ret; in ubi_read()
335 while (count > 0) { in ubi_write()
342 (unsigned int)count); in ubi_write()
346 count -= ret; in ubi_write()
930 while (processed < count) { in flash_read_buf()
1007 blocklen = count; in flash_write_buf()
1039 if (write_total > count) { in flash_write_buf()
1148 if (write_total > count) in flash_write_buf()
[all …]
/tools/dtoc/test/
A Ddtoc_test_driver_alias.dts17 sandbox,gpio-count = <20>;
/tools/u_boot_pylib/
A Dgitutil.py18 count=None, decorate=False): argument
44 if count is not None:
123 cmd = log_cmd(branch, git_dir=git_dir, oneline=True, count=100,
341 def create_patches(branch, start, count, ignore_binary, series, signoff=True, argument
720 cmd = log_cmd(None, count=0)
/tools/binman/
A Delf.py285 count = 0
318 count += 1
319 if count:
322 return count

Completed in 59 milliseconds

12