| /netbsd/src/sys/arch/atari/stand/ahdilabel/ |
| D | writedtab.c | 62 if (j == RAW_PART) { in ahdi_writedisktab() 65 RAW_PART + 'a', ptable->secperunit, in ahdi_writedisktab() 66 RAW_PART + 'a', RAW_PART + 'a'); in ahdi_writedisktab() 99 if (j <= RAW_PART) { in ahdi_writedisktab() 101 RAW_PART + 'a', ptable->secperunit, in ahdi_writedisktab() 102 RAW_PART + 'a', RAW_PART + 'a'); in ahdi_writedisktab()
|
| D | openraw.c | 50 snprintf (buf, MAXPATHLEN, "r%s%c", name, RAW_PART + 'a'); in openraw() 54 snprintf (buf, MAXPATHLEN, "%sr%s%c", _PATH_DEV, name, RAW_PART + 'a'); in openraw()
|
| /netbsd/src/sys/arch/news68k/news68k/ |
| D | disksubr.c | 67 if (lp->d_npartitions < RAW_PART + 1) in readdisklabel() 68 lp->d_npartitions = RAW_PART + 1; in readdisklabel() 69 for (i = 0; i < RAW_PART; i++) { in readdisklabel() 73 if (lp->d_partitions[RAW_PART].p_size == 0) in readdisklabel() 74 lp->d_partitions[RAW_PART].p_size = lp->d_secperunit; in readdisklabel() 75 lp->d_partitions[RAW_PART].p_offset = 0; in readdisklabel() 77 lp->d_partitions[0].p_size = lp->d_partitions[RAW_PART].p_size; in readdisklabel()
|
| /netbsd/src/sys/arch/newsmips/newsmips/ |
| D | disksubr.c | 67 if (lp->d_npartitions < RAW_PART + 1) in readdisklabel() 68 lp->d_npartitions = RAW_PART + 1; in readdisklabel() 69 for (i = 0; i < RAW_PART; i++) { in readdisklabel() 73 if (lp->d_partitions[RAW_PART].p_size == 0) in readdisklabel() 74 lp->d_partitions[RAW_PART].p_size = lp->d_secperunit; in readdisklabel() 75 lp->d_partitions[RAW_PART].p_offset = 0; in readdisklabel() 77 lp->d_partitions[0].p_size = lp->d_partitions[RAW_PART].p_size; in readdisklabel()
|
| /netbsd/src/sys/arch/hp300/hp300/ |
| D | disksubr.c | 68 if (lp->d_npartitions < RAW_PART + 1) in readdisklabel() 69 lp->d_npartitions = RAW_PART + 1; in readdisklabel() 70 for (i = 0; i < RAW_PART; i++) { in readdisklabel() 74 if (lp->d_partitions[RAW_PART].p_size == 0) in readdisklabel() 75 lp->d_partitions[RAW_PART].p_size = lp->d_secperunit; in readdisklabel() 76 lp->d_partitions[RAW_PART].p_offset = 0; in readdisklabel() 78 lp->d_partitions[0].p_size = lp->d_partitions[RAW_PART].p_size; in readdisklabel()
|
| /netbsd/src/sys/arch/arm/arm/ |
| D | disksubr.c | 144 if (lp->d_npartitions < RAW_PART + 1) in readdisklabel() 145 lp->d_npartitions = RAW_PART + 1; in readdisklabel() 147 if (lp->d_partitions[RAW_PART].p_size == 0) { in readdisklabel() 148 lp->d_partitions[RAW_PART].p_fstype = FS_UNUSED; in readdisklabel() 149 lp->d_partitions[RAW_PART].p_offset = 0; in readdisklabel() 150 lp->d_partitions[RAW_PART].p_size = 0x1fffffff; in readdisklabel() 156 lp->d_partitions[0].p_size = lp->d_partitions[RAW_PART].p_size; in readdisklabel()
|
| /netbsd/src/sys/kern/ |
| D | subr_disk.c | 372 #if RAW_PART == 3 in bounds_check_with_label() 375 labelsector = lp->d_partitions[RAW_PART].p_offset; in bounds_check_with_label() 457 p = &lp->d_partitions[RAW_PART]; in convertdisklabel() 458 if (RAW_PART == 'c' - 'a') in convertdisklabel() 463 if (lp->d_npartitions > RAW_PART && p->p_offset == 0 && p->p_size != 0) in convertdisklabel() 474 } else if (lp->d_npartitions <= RAW_PART && in convertdisklabel() 479 lp->d_npartitions = RAW_PART + 1; in convertdisklabel() 484 else if (lp->d_npartitions <= RAW_PART) { in convertdisklabel() 486 sizeof(struct partition) * (RAW_PART - lp->d_npartitions)); in convertdisklabel() 488 lp->d_npartitions = RAW_PART + 1; in convertdisklabel() [all …]
|
| D | subr_disk_mbr.c | 415 lp->d_npartitions = RAW_PART + 1; in readdisklabel() 416 for (i = 0; i < RAW_PART; i++) { in readdisklabel() 420 if (lp->d_partitions[RAW_PART].p_size == 0) in readdisklabel() 421 lp->d_partitions[RAW_PART].p_size = lp->d_secperunit; in readdisklabel() 422 lp->d_partitions[RAW_PART].p_offset = 0; in readdisklabel() 428 lp->d_partitions[0].p_size = lp->d_partitions[RAW_PART].p_size; in readdisklabel() 521 #if RAW_PART == 3 in look_netbsd_part()
|
| /netbsd/src/sys/arch/next68k/next68k/ |
| D | disksubr.c | 152 if (nbp == RAW_PART) in parse_nextstep_label() 158 if (lp->d_npartitions <= RAW_PART) in parse_nextstep_label() 159 lp->d_npartitions = RAW_PART + 1; in parse_nextstep_label() 218 if (nbp != RAW_PART && lp->d_partitions[nbp].p_offset > 0 && in build_nextstep_label() 222 if (t != (nbp > RAW_PART ? nbp - 1 : nbp) && in build_nextstep_label() 238 &ondisk->cd_partitions[nbp > RAW_PART ? in build_nextstep_label() 241 memcpy(&ondisk->cd_partitions[nbp > RAW_PART ? in build_nextstep_label() 285 if (nbp == RAW_PART) in build_nextstep_label() 326 lp->d_npartitions = RAW_PART + 1; in readdisklabel() 327 for (i = 0; i < RAW_PART; i++) { in readdisklabel()
|
| /netbsd/src/sys/dev/ofw/ |
| D | ofdisk.c | 188 if (of->sc_dk.dk_nwedges != 0 && part != RAW_PART) { in ofdisk_open() 302 if (DISKPART(bp->b_dev) != RAW_PART) { in ofdisk_strategy() 413 DISKUNIT(dev), RAW_PART), ofdisk_strategy, in ofdisk_ioctl() 497 lp->d_partitions[RAW_PART].p_offset = 0; in ofdisk_getdefaultlabel() 498 lp->d_partitions[RAW_PART].p_size = lp->d_secperunit; in ofdisk_getdefaultlabel() 499 lp->d_npartitions = RAW_PART + 1; in ofdisk_getdefaultlabel() 528 if (l == RAW_PART) in ofdisk_getdisklabel() 532 lp->d_partitions[RAW_PART]; in ofdisk_getdisklabel() 537 unit, RAW_PART), ofdisk_strategy, lp, in ofdisk_getdisklabel()
|
| /netbsd/src/sys/arch/amiga/amiga/ |
| D | disksubr.c | 152 lp->d_npartitions = RAW_PART + 1; in readdisklabel() 154 if (lp->d_partitions[RAW_PART].p_size == 0) in readdisklabel() 155 lp->d_partitions[RAW_PART].p_size = 0x1fffffff; in readdisklabel() 156 lp->d_partitions[RAW_PART].p_offset = 0; in readdisklabel() 159 lp->d_partitions[0].p_size = lp->d_partitions[RAW_PART].p_size; in readdisklabel() 174 bp->b_dev = MAKEDISKDEV(major(dev), DISKUNIT(dev), RAW_PART); in readdisklabel() 236 if (i == RAW_PART) in readdisklabel() 298 lp->d_partitions[RAW_PART].p_size = rbp->ncylinders * lp->d_secpercyl; in readdisklabel() 400 while ((pp - lp->d_partitions) > RAW_PART + 1) { in readdisklabel() 651 bp->b_dev = MAKEDISKDEV(major(dev), DISKUNIT(dev), RAW_PART); in getrdbmap()
|
| /netbsd/src/sys/arch/ofppc/ofppc/ |
| D | disksubr.c | 200 lp->d_npartitions = ((maxslot >= RAW_PART) ? maxslot : RAW_PART) + 1; in read_dos_label() 217 if ((i != RAW_PART) in getFreeLabelEntry() 243 lp->d_npartitions = RAW_PART + 1; in read_rdb_label() 245 if (lp->d_partitions[RAW_PART].p_size == 0) in read_rdb_label() 246 lp->d_partitions[RAW_PART].p_size = 0x1fffffff; in read_rdb_label() 247 lp->d_partitions[RAW_PART].p_offset = 0; in read_rdb_label() 250 lp->d_partitions[0].p_size = lp->d_partitions[RAW_PART].p_size; in read_rdb_label() 265 bp->b_dev = MAKEDISKDEV(major(dev), DISKUNIT(dev), RAW_PART); in read_rdb_label() 315 if (i == RAW_PART) in read_rdb_label() 373 lp->d_partitions[RAW_PART].p_size = rbp->ncylinders * lp->d_secpercyl; in read_rdb_label() [all …]
|
| /netbsd/src/sys/arch/luna68k/luna68k/ |
| D | disksubr.c | 188 if (lp->d_npartitions < RAW_PART + 1) in readdisklabel() 189 lp->d_npartitions = RAW_PART + 1; in readdisklabel() 190 for (i = 0; i < RAW_PART; i++) { in readdisklabel() 194 if (lp->d_partitions[RAW_PART].p_size == 0) in readdisklabel() 195 lp->d_partitions[RAW_PART].p_size = lp->d_secperunit; in readdisklabel() 196 lp->d_partitions[RAW_PART].p_offset = 0; in readdisklabel()
|
| /netbsd/src/sys/arch/evbmips/evbmips/ |
| D | disksubr.c | 65 lp->d_npartitions = RAW_PART + 1; in readdisklabel() 66 if (lp->d_partitions[RAW_PART].p_size == 0) in readdisklabel() 67 lp->d_partitions[RAW_PART].p_size = lp->d_secperunit; in readdisklabel() 68 lp->d_partitions[RAW_PART].p_offset = 0; in readdisklabel()
|
| /netbsd/src/sys/arch/alpha/alpha/ |
| D | disksubr.c | 69 lp->d_npartitions = RAW_PART + 1; in readdisklabel() 70 if (lp->d_partitions[RAW_PART].p_size == 0) in readdisklabel() 71 lp->d_partitions[RAW_PART].p_size = lp->d_secperunit; in readdisklabel() 72 lp->d_partitions[RAW_PART].p_offset = 0; in readdisklabel()
|
| /netbsd/src/sys/arch/x68k/x68k/ |
| D | disksubr.c | 81 lp->d_npartitions = RAW_PART + 1; in readdisklabel() 82 for (i = 0; i < RAW_PART; i++) { in readdisklabel() 86 if (lp->d_partitions[RAW_PART].p_size == 0) in readdisklabel() 87 lp->d_partitions[RAW_PART].p_size = lp->d_secperunit; in readdisklabel() 88 lp->d_partitions[RAW_PART].p_offset = 0; in readdisklabel() 90 lp->d_partitions[0].p_size = lp->d_partitions[RAW_PART].p_size; in readdisklabel() 172 int part = i + (i < RAW_PART ? 0 : 1); in readdisklabel() 344 int part = i + (i < RAW_PART ? 0 : 1); in writedisklabel()
|
| /netbsd/src/sys/arch/mac68k/mac68k/ |
| D | disksubr.c | 115 if ((i != RAW_PART) in getFreeLabelEntry() 269 lp->d_npartitions = RAW_PART + 1; in read_mac_label() 309 lp->d_npartitions = ((maxslot >= RAW_PART) ? maxslot : RAW_PART) + 1; in read_mac_label() 364 lp->d_npartitions = ((maxslot >= RAW_PART) ? maxslot : RAW_PART) + 1; in read_mbr_label() 536 if (i != RAW_PART) in writedisklabel()
|
| /netbsd/src/sys/arch/evbppc/evbppc/ |
| D | disksubr.c | 74 lp->d_npartitions = RAW_PART + 1; in readdisklabel() 75 if (lp->d_partitions[RAW_PART].p_size == 0) in readdisklabel() 76 lp->d_partitions[RAW_PART].p_size = lp->d_secperunit; in readdisklabel() 77 lp->d_partitions[RAW_PART].p_offset = 0; in readdisklabel()
|
| /netbsd/src/sys/dev/mca/ |
| D | ed_mca.c | 74 #define EDLABELDEV(dev) (MAKEDISKDEV(major(dev), DISKUNIT(dev), RAW_PART)) 243 if (DISKPART(bp->b_dev) != RAW_PART && in edmcastrategy() 257 if (DISKPART(bp->b_dev) != RAW_PART) in edmcastrategy() 310 if (wd->sc_dk.dk_nwedges != 0 && part != RAW_PART) { in edmcaopen() 341 if (part != RAW_PART && in edmcaopen() 423 lp->d_partitions[RAW_PART].p_offset = 0; in edgetdefaultlabel() 424 lp->d_partitions[RAW_PART].p_size = in edgetdefaultlabel() 426 lp->d_partitions[RAW_PART].p_fstype = FS_UNUSED; in edgetdefaultlabel() 427 lp->d_npartitions = RAW_PART + 1; in edgetdefaultlabel()
|
| /netbsd/src/sys/arch/atari/atari/ |
| D | disksubr.c | 102 lp->d_partitions[RAW_PART].p_size = lp->d_secperunit; in readdisklabel() 103 lp->d_npartitions = RAW_PART + 1; in readdisklabel() 153 bp->b_dev = MAKEDISKDEV(major(dev), DISKUNIT(dev), RAW_PART); in writedisklabel() 203 bp->b_dev = MAKEDISKDEV(major(dev), DISKUNIT(dev), RAW_PART); in bsd_label() 262 if (i == RAW_PART || p->p_size == 0) in ck_label() 414 user_part = RAW_PART; in ahdi_to_bsd() 488 bp->b_dev = MAKEDISKDEV(major(dev), DISKUNIT(dev), RAW_PART); in ahdi_getparts()
|
| /netbsd/src/sys/arch/mipsco/mipsco/ |
| D | disksubr.c | 78 lp->d_npartitions = RAW_PART + 1; in readdisklabel() 79 if (lp->d_partitions[RAW_PART].p_size == 0) in readdisklabel() 80 lp->d_partitions[RAW_PART].p_size = 0x1fffffff; in readdisklabel() 81 lp->d_partitions[RAW_PART].p_offset = 0; in readdisklabel() 225 {10, MIPS_FS_VOLUME, RAW_PART, FS_OTHER},
|
| /netbsd/src/sys/dev/ |
| D | dksubr.c | 76 (MAKEDISKDEV(major((dev)), DISKUNIT((dev)), RAW_PART)) 144 if (dk->dk_nwedges != 0 && part != RAW_PART) { in dk_open() 176 if (part != RAW_PART && in dk_open() 269 if (part == RAW_PART) { in dk_translate() 287 if (part != RAW_PART) in dk_translate() 814 if (part == RAW_PART) { in dk_dump() 902 lp->d_partitions[RAW_PART].p_offset = 0; in dk_getdefaultlabel() 903 lp->d_partitions[RAW_PART].p_size = lp->d_secperunit; in dk_getdefaultlabel() 904 lp->d_partitions[RAW_PART].p_fstype = FS_UNUSED; in dk_getdefaultlabel() 905 lp->d_npartitions = RAW_PART + 1; in dk_getdefaultlabel() [all …]
|
| /netbsd/src/sys/arch/mmeye/stand/boot/ |
| D | wd.c | 134 lp->d_partitions[RAW_PART].p_offset = 0; in wdgetdefaultlabel() 135 lp->d_partitions[RAW_PART].p_size = in wdgetdefaultlabel() 137 lp->d_partitions[RAW_PART].p_fstype = FS_UNUSED; in wdgetdefaultlabel() 148 lp->d_partitions[0].p_size = lp->d_partitions[RAW_PART].p_size; in wdgetdefaultlabel()
|
| /netbsd/src/sys/arch/arm/include/ |
| D | disklabel.h | 56 #ifndef RAW_PART 57 #define RAW_PART 2 /* raw partition: XX?c */ macro
|
| /netbsd/src/sys/dev/gpib/ |
| D | rd.c | 149 #define RDLABELDEV(dev) (RDMAKEDEV(major(dev), RDUNIT(dev), RAW_PART)) 452 msg = readdisklabel(RDMAKEDEV(0, device_unit(sc->sc_dev), RAW_PART), in rdgetinfo() 460 pi[RAW_PART].p_size = rdidentinfo[sc->sc_type].ri_nblocks; in rdgetinfo() 461 lp->d_npartitions = RAW_PART+1; in rdgetinfo() 501 if (part != RAW_PART && (part > sc->sc_dk.dk_label->d_npartitions || in rdopen() 581 offset = (RDPART(bp->b_dev) == RAW_PART) ? 0 : pinfo->p_offset; in rdstrategy() 583 if (RDPART(bp->b_dev) != RAW_PART) { in rdstrategy() 1040 lp->d_partitions[RAW_PART].p_offset = 0; in rdgetdefaultlabel() 1041 lp->d_partitions[RAW_PART].p_size = in rdgetdefaultlabel() 1043 lp->d_partitions[RAW_PART].p_fstype = FS_UNUSED; in rdgetdefaultlabel() [all …]
|