/openbsd/sbin/disklabel/ |
H A D | disklabel.c | 422 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 D | editor.c | 219 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 D | dkcksum.c | 45 end = (u_short *)&lp->d_partitions[lp->d_npartitions]; in dkcksum()
|
/openbsd/sys/arch/alpha/stand/nboot/ |
H A D | disk.c | 124 lp->d_npartitions = MAXPARTITIONS; in diskopen() 146 if (part >= lp->d_npartitions || in diskopen()
|
/openbsd/sys/arch/alpha/stand/boot/ |
H A D | disk.c | 131 lp->d_npartitions = MAXPARTITIONS; in diskopen() 154 if (part >= lp->d_npartitions || in diskopen()
|
/openbsd/sys/arch/luna88k/stand/boot/ |
H A D | ufs_disksubr.c | 131 lp->d_npartitions = 1; in readdisklabel() 167 lp->d_npartitions = MAXPARTITIONS; in readdisklabel()
|
H A D | sd.c | 241 lp->d_npartitions = 1; in sdinit()
|
/openbsd/sys/lib/libsa/ |
H A D | dkcksum.c | 49 end = (u_short *)&lp->d_partitions[lp->d_npartitions]; in dkcksum()
|
H A D | disklabel.c | 51 } else if (dlp->d_npartitions > MAXPARTITIONS || in getdisklabel()
|
/openbsd/sys/arch/hppa/stand/libsa/ |
H A D | dk.c | 81 if (i >= lp->d_npartitions || !lp->d_partitions[i].p_size) in dkopen()
|
/openbsd/sys/kern/ |
H A D | subr_disk.c | 131 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 D | bootstrap.c | 88 for (i = 0; i < dl.d_npartitions; i++) { in bootstrap()
|
H A D | landisk_installboot.c | 173 for (i = 0; i < dl.d_npartitions; i++) { in md_bootstrap()
|
/openbsd/lib/libc/gen/ |
H A D | disklabel.c | 128 dp->d_npartitions = max + 1 - 'a'; in getdiskbyname()
|
/openbsd/sys/arch/loongson/stand/boot/ |
H A D | dev.c | 145 if (part >= pi->label.d_npartitions) { in pmon_ioopen()
|
/openbsd/usr.sbin/makefs/ |
H A D | ffs.c | 239 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 D | udf_subr.c | 173 lp->d_npartitions = MAXPARTITIONS; in udf_disklabelspoof()
|
/openbsd/sys/arch/sparc64/stand/ofwboot/ |
H A D | ofdev.c | 311 lp->d_npartitions = MAXPARTITIONS; in disklabel_sun_to_bsd() 439 lp->d_npartitions = MAXPARTITIONS; in search_label()
|
/openbsd/sys/arch/hppa/hppa/ |
H A D | disksubr.c | 186 lp->d_npartitions = MAXPARTITIONS; in readliflabel()
|
/openbsd/sys/sys/ |
H A D | disklabel.h | 119 u_int16_t d_npartitions; /* number of partitions in following */ member
|
/openbsd/sys/arch/amd64/stand/libsa/ |
H A D | diskprobe.c | 278 dip->disklabel.d_npartitions = MAXPARTITIONS; in cdprobe()
|
/openbsd/sys/arch/i386/stand/libsa/ |
H A D | diskprobe.c | 353 dip->disklabel.d_npartitions = MAXPARTITIONS; in cdprobe()
|
/openbsd/sys/arch/luna88k/luna88k/ |
H A D | disksubr.c | 278 lp->d_npartitions = MAXPARTITIONS; in disklabel_om_to_bsd()
|
/openbsd/sys/arch/sparc64/sparc64/ |
H A D | disksubr.c | 262 lp->d_npartitions = MAXPARTITIONS; in disklabel_sun_to_bsd()
|
/openbsd/sys/arch/armv7/stand/efiboot/ |
H A D | efidev.c | 479 label->d_npartitions = MAXPARTITIONS; in efi_getdisklabel_cd9660()
|