Lines Matching refs:nparts
144 efi_alloc_and_init(int fd, uint32_t nparts, struct dk_gpt **vtoc) in efi_alloc_and_init() argument
160 nblocks = NBLOCKS(nparts, lbsize); in efi_alloc_and_init()
166 if (nparts > MAX_PARTS) { in efi_alloc_and_init()
176 sizeof (struct dk_part) * (nparts - 1); in efi_alloc_and_init()
185 vptr->efi_nparts = nparts; in efi_alloc_and_init()
208 uint32_t nparts; in efi_alloc_and_read() local
212 nparts = EFI_MIN_ARRAY_SIZE / sizeof (efi_gpe_t); in efi_alloc_and_read()
214 (int) sizeof (struct dk_part) * (nparts - 1); in efi_alloc_and_read()
218 (*vtoc)->efi_nparts = nparts; in efi_alloc_and_read()
221 if ((rval == VT_EINVAL) && (*vtoc)->efi_nparts > nparts) { in efi_alloc_and_read()
226 nparts = (*vtoc)->efi_nparts; in efi_alloc_and_read()