Home
last modified time | relevance | path

Searched refs:alloc_table (Results 1 – 3 of 3) sorted by relevance

/openbsd-src/sbin/disklabel/
H A Deditor.c126 struct alloc_table { struct
131 struct alloc_table alloc_table_default[] = { argument
137 struct alloc_table *alloc_table = alloc_table_default; variable
178 int allocate_space(struct disklabel *, const struct alloc_table *);
546 if (allocate_space(&label, &alloc_table[i]) == 0) { in editor_allocspace()
657 allocate_space(struct disklabel *lp, const struct alloc_table *alloc_table) in allocate_space() argument
665 for (i = 0; i < alloc_table->sz; i++) { in allocate_space()
666 sa[i] = alloc_table->table[i]; in allocate_space()
667 if (alloc_table->table == alloc_big) in allocate_space()
673 sa[alloc_table->sz - 1].rate = 100; /* Last allocation is greedy. */ in allocate_space()
[all …]
/openbsd-src/sys/dev/pci/drm/i915/selftests/
H A Dscatterlist.c214 static int alloc_table(struct pfn_table *pt, in alloc_table() function
299 err = alloc_table(&pt, sz, sz, *npages, &prng, in igt_sg_alloc()
341 err = alloc_table(&pt, prime, max, *npages, &prng, in igt_sg_trim()
/openbsd-src/sys/dev/pci/drm/i915/gem/
H A Di915_gem_userptr.c153 alloc_table: in i915_gem_userptr_get_pages()
166 goto alloc_table; in i915_gem_userptr_get_pages()