Home
last modified time | relevance | path

Searched refs:RAW_PART (Results 1 – 25 of 150) sorted by relevance

123456

/netbsd/src/sys/arch/atari/stand/ahdilabel/
Dwritedtab.c62 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()
Dopenraw.c50 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/
Ddisksubr.c67 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/
Ddisksubr.c67 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/
Ddisksubr.c68 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/
Ddisksubr.c144 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/
Dsubr_disk.c372 #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 …]
Dsubr_disk_mbr.c415 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/
Ddisksubr.c152 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/
Dofdisk.c188 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/
Ddisksubr.c152 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/
Ddisksubr.c200 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/
Ddisksubr.c188 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/
Ddisksubr.c65 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/
Ddisksubr.c69 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/
Ddisksubr.c81 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/
Ddisksubr.c115 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/
Ddisksubr.c74 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/
Ded_mca.c74 #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/
Ddisksubr.c102 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/
Ddisksubr.c78 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/
Ddksubr.c76 (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/
Dwd.c134 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/
Ddisklabel.h56 #ifndef RAW_PART
57 #define RAW_PART 2 /* raw partition: XX?c */ macro
/netbsd/src/sys/dev/gpib/
Drd.c149 #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 …]

123456