Home
last modified time | relevance | path

Searched refs:d_npartitions (Results 1 – 25 of 33) sorted by relevance

12

/openbsd/sbin/disklabel/
H A Ddisklabel.c422 for (i = 0; i < lp->d_npartitions; i++, pp++) { in makedisktab()
536 for (i = 0; i < lp->d_npartitions; i++, pp++) in canonical_unit()
594 fprintf(f, "\n%hu partitions:\n", lp->d_npartitions); in display()
597 for (i = 0; i < lp->d_npartitions; i++) in display()
863 lp->d_npartitions = MAXPARTITIONS; in getasciilabel()
866 lp->d_npartitions = v; in getasciilabel()
912 if (part >= lp->d_npartitions) { in getasciilabel()
919 lp->d_npartitions = part + 1; in getasciilabel()
1042 if (lp->d_npartitions > MAXPARTITIONS) in checklabel()
1044 lp->d_npartitions, MAXPARTITIONS); in checklabel()
[all …]
H A Deditor.c219 if (newlab.d_npartitions <= RAW_PART) in editor()
220 newlab.d_npartitions = RAW_PART + 1; in editor()
675 for (i = lp->d_npartitions; i < MAXPARTITIONS; i++) { in allocate_space()
680 lp->d_npartitions = MAXPARTITIONS; in allocate_space()
833 for(; lp->d_npartitions <= partno; lp->d_npartitions++) in editor_add()
902 if (partno == lp->d_npartitions) { in editor_delete()
1015 if (partno >= lp->d_npartitions || in getpartno()
1032 return lp->d_npartitions; in getpartno()
1041 inuse = partno < lp->d_npartitions && DL_GETPSIZE(pp) > 0 && in getpartno()
1254 for (npartitions = 0, i = 0; i < lp->d_npartitions; i++) { in sort_partitions()
[all …]
H A Ddkcksum.c45 end = (u_short *)&lp->d_partitions[lp->d_npartitions]; in dkcksum()
/openbsd/sys/arch/alpha/stand/nboot/
H A Ddisk.c124 lp->d_npartitions = MAXPARTITIONS; in diskopen()
146 if (part >= lp->d_npartitions || in diskopen()
/openbsd/sys/arch/alpha/stand/boot/
H A Ddisk.c131 lp->d_npartitions = MAXPARTITIONS; in diskopen()
154 if (part >= lp->d_npartitions || in diskopen()
/openbsd/sys/arch/luna88k/stand/boot/
H A Dufs_disksubr.c131 lp->d_npartitions = 1; in readdisklabel()
167 lp->d_npartitions = MAXPARTITIONS; in readdisklabel()
H A Dsd.c241 lp->d_npartitions = 1; in sdinit()
/openbsd/sys/lib/libsa/
H A Ddkcksum.c49 end = (u_short *)&lp->d_partitions[lp->d_npartitions]; in dkcksum()
H A Ddisklabel.c51 } else if (dlp->d_npartitions > MAXPARTITIONS || in getdisklabel()
/openbsd/sys/arch/hppa/stand/libsa/
H A Ddk.c81 if (i >= lp->d_npartitions || !lp->d_partitions[i].p_size) in dkopen()
/openbsd/sys/kern/
H A Dsubr_disk.c131 end = (u_int16_t *)&lp->d_partitions[lp->d_npartitions]; in dkcksum()
149 lp->d_npartitions = MAXPARTITIONS; in initdisklabel()
181 else if (dlp->d_npartitions > MAXPARTITIONS) in checkdisklabel()
196 swap16(dlp->d_npartitions) > MAXPARTITIONS) in checkdisklabel()
205 swap16(dlp->d_npartitions)]; in checkdisklabel()
237 dlp->d_npartitions = swap16(dlp->d_npartitions); in checkdisklabel()
278 for (i = 0; i < lp->d_npartitions; i++, pp++, v0pp++) { in checkdisklabel()
1184 part >= dk->dk_label->d_npartitions || in disk_openpart()
/openbsd/usr.sbin/installboot/
H A Dbootstrap.c88 for (i = 0; i < dl.d_npartitions; i++) { in bootstrap()
H A Dlandisk_installboot.c173 for (i = 0; i < dl.d_npartitions; i++) { in md_bootstrap()
/openbsd/lib/libc/gen/
H A Ddisklabel.c128 dp->d_npartitions = max + 1 - 'a'; in getdiskbyname()
/openbsd/sys/arch/loongson/stand/boot/
H A Ddev.c145 if (part >= pi->label.d_npartitions) { in pmon_ioopen()
/openbsd/usr.sbin/makefs/
H A Dffs.c239 lp->d_npartitions = RAW_PART + 1; in ffs_makerdroot()
321 end = (uint16_t *)&lp->d_partitions[lp->d_npartitions]; in ffs_makefs()
361 for (i = 0; i < lp->d_npartitions; i++) { in ffs_validate()
368 if (i == lp->d_npartitions) in ffs_validate()
/openbsd/sys/isofs/udf/
H A Dudf_subr.c173 lp->d_npartitions = MAXPARTITIONS; in udf_disklabelspoof()
/openbsd/sys/arch/sparc64/stand/ofwboot/
H A Dofdev.c311 lp->d_npartitions = MAXPARTITIONS; in disklabel_sun_to_bsd()
439 lp->d_npartitions = MAXPARTITIONS; in search_label()
/openbsd/sys/arch/hppa/hppa/
H A Ddisksubr.c186 lp->d_npartitions = MAXPARTITIONS; in readliflabel()
/openbsd/sys/sys/
H A Ddisklabel.h119 u_int16_t d_npartitions; /* number of partitions in following */ member
/openbsd/sys/arch/amd64/stand/libsa/
H A Ddiskprobe.c278 dip->disklabel.d_npartitions = MAXPARTITIONS; in cdprobe()
/openbsd/sys/arch/i386/stand/libsa/
H A Ddiskprobe.c353 dip->disklabel.d_npartitions = MAXPARTITIONS; in cdprobe()
/openbsd/sys/arch/luna88k/luna88k/
H A Ddisksubr.c278 lp->d_npartitions = MAXPARTITIONS; in disklabel_om_to_bsd()
/openbsd/sys/arch/sparc64/sparc64/
H A Ddisksubr.c262 lp->d_npartitions = MAXPARTITIONS; in disklabel_sun_to_bsd()
/openbsd/sys/arch/armv7/stand/efiboot/
H A Defidev.c479 label->d_npartitions = MAXPARTITIONS; in efi_getdisklabel_cd9660()

12