Lines Matching refs:nparts
174 efi_alloc_and_init(int fd, uint32_t nparts, struct dk_gpt **vtoc) in efi_alloc_and_init() argument
190 nblocks = NBLOCKS(nparts, lbsize); in efi_alloc_and_init()
196 if (nparts > MAX_PARTS) { in efi_alloc_and_init()
206 sizeof (struct dk_part) * (nparts - 1); in efi_alloc_and_init()
215 vptr->efi_nparts = nparts; in efi_alloc_and_init()
238 uint32_t nparts; in efi_alloc_and_read() local
273 nparts = EFI_MIN_ARRAY_SIZE / sizeof (efi_gpe_t); in efi_alloc_and_read()
275 (int) sizeof (struct dk_part) * (nparts - 1); in efi_alloc_and_read()
279 (*vtoc)->efi_nparts = nparts; in efi_alloc_and_read()
282 if ((rval == VT_EINVAL) && (*vtoc)->efi_nparts > nparts) { in efi_alloc_and_read()
287 nparts = (*vtoc)->efi_nparts; in efi_alloc_and_read()