Searched refs:nparts (Results 1 – 13 of 13) sorted by relevance
/freebsd/usr.bin/mkimg/ |
H A D | apm.c | 55 blk += (where == SCHEME_META_IMG_START) ? nparts + 2 : 0; in apm_metadata() 68 buf = calloc(nparts + 2, secsz); in apm_write() 79 be32enc(&ent->ent_pmblkcnt, nparts + 1); in apm_write() 81 be32enc(&ent->ent_size, nparts + 1); in apm_write() 88 be32enc(&ent->ent_pmblkcnt, nparts + 1); in apm_write() 98 error = image_write(0, buf, nparts + 2); in apm_write() 109 .nparts = 4096,
|
H A D | mkimg.c | 65 u_int nparts = 0; variable 246 nparts++; in parse_part() 309 part->index = nparts; in parse_part() 311 nparts++; in parse_part() 671 if (scheme_selected() == NULL && nparts > 0) in main() 673 if (nparts == 0 && min_capacity == 0) in main() 689 if (nparts > scheme_max_parts()) in main() 691 scheme_max_parts(), nparts); in main()
|
H A D | bsd.c | 81 bsdparts = nparts + 1; /* Account for c partition */ in bsd_write() 128 .nparts = BSD_NPARTS_MAX - 1,
|
H A D | gpt.c | 141 return (MAX(howmany(GPT_MIN_RESERVED, secsz), howmany(nparts, eps))); in gpt_tblsz() 290 .nparts = 4096,
|
H A D | scheme.h | 73 u_int nparts; member
|
H A D | mkimg.h | 50 extern u_int nparts;
|
H A D | ebr.c | 125 .nparts = 4096,
|
H A D | mbr.c | 119 .nparts = NDOSPART,
|
H A D | scheme.c | 177 return ((scheme == NULL) ? 0 : scheme->nparts); in scheme_max_parts()
|
/freebsd/usr.sbin/bsdinstall/partedit/ |
H A D | partedit.c | 414 int nparts = 0; in apply_changes() local 416 nparts++; in apply_changes() 417 tobesorted = malloc(sizeof(struct partition_metadata *)*nparts); in apply_changes() 418 nparts = 0; in apply_changes() 420 tobesorted[nparts++] = md; in apply_changes() 423 qsort(tobesorted, nparts, sizeof(tobesorted[0]), in apply_changes() 427 while (nparts-- > 0) in apply_changes() 429 tobesorted[nparts], metadata); in apply_changes()
|
H A D | gpart_ops.c | 863 int i, nparts; in gpart_max_free() local 874 i = nparts = 0; in gpart_max_free() 876 nparts++; in gpart_max_free() 877 providers = calloc(nparts, sizeof(providers[0])); in gpart_max_free() 880 qsort(providers, nparts, sizeof(providers[0]), part_compare); in gpart_max_free() 884 for (i = 0; i < nparts; i++) { in gpart_max_free()
|
/freebsd/sys/contrib/openzfs/lib/libefi/ |
H A D | rdwr_efi.c | 333 efi_alloc_and_init(int fd, uint32_t nparts, struct dk_gpt **vtoc) in efi_alloc_and_init() argument 357 nblocks = NBLOCKS(nparts, lbsize); in efi_alloc_and_init() 363 if (nparts > MAX_PARTS) { in efi_alloc_and_init() 373 sizeof (struct dk_part) * (nparts - 1); in efi_alloc_and_init() 383 vptr->efi_nparts = nparts; in efi_alloc_and_init() 406 uint32_t nparts; in efi_alloc_and_read() local 411 nparts = EFI_MIN_ARRAY_SIZE / sizeof (efi_gpe_t); in efi_alloc_and_read() 413 (int) sizeof (struct dk_part) * (nparts - 1); in efi_alloc_and_read() 419 vptr->efi_nparts = nparts; in efi_alloc_and_read() 422 if ((rval == VT_EINVAL) && vptr->efi_nparts > nparts) { in efi_alloc_and_read()
|
/freebsd/sys/geom/stripe/ |
H A D | g_stripe.c | 307 u_int nparts = 0; in g_stripe_start_fast() local 321 nparts++; in g_stripe_start_fast() 341 if (nparts >= sc->sc_ndisks) { in g_stripe_start_fast() 345 nparts++; in g_stripe_start_fast() 373 nparts++; in g_stripe_start_fast()
|