Lines Matching refs:count

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
131 if (count && count <= max_regions && in fdt_find_regions()
132 offset == region[count - 1].offset + in fdt_find_regions()
133 region[count - 1].size - base) in fdt_find_regions()
134 start = region[--count].offset - base; in fdt_find_regions()
140 if (count < max_regions) { in fdt_find_regions()
141 region[count].offset = base + start; in fdt_find_regions()
142 region[count].size = stop_at - start; in fdt_find_regions()
144 count++; in fdt_find_regions()
153 if (count < max_regions) { in fdt_find_regions()
154 region[count].offset = base + start; in fdt_find_regions()
155 region[count].size = nextoffset - start; in fdt_find_regions()
157 region[count].size += fdt_size_dt_strings(fdt); in fdt_find_regions()
159 count++; in fdt_find_regions()
161 return count; in fdt_find_regions()
178 reg = info->region ? &info->region[info->count - 1] : NULL; in fdt_add_region()
179 if (info->can_merge && info->count && in fdt_add_region()
180 info->count <= info->max_regions && in fdt_add_region()
183 } else if (info->count++ < info->max_regions) { in fdt_add_region()
203 for (reg = info->region, num = 0; num < info->count; reg++, num++) { in region_list_contains_offset()
235 int fdt_add_alias_regions(const void *fdt, struct fdt_region *region, int count, in fdt_add_alias_regions() argument
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()
463 info->count = 0; in fdt_next_region()
670 return info->count > 0 ? 0 : -FDT_ERR_NOTFOUND; in fdt_next_region()