Home | History | Annotate | Download | only in x86

Lines Matching refs:dv

85 dmatch(const char *func, device_t dv, const char *method)
90 method, device_xname(dv));
94 is_valid_disk(device_t dv)
97 if (device_class(dv) != DV_DISK)
100 return (device_is_a(dv, "dk") ||
101 device_is_a(dv, "sd") ||
102 device_is_a(dv, "wd") ||
103 device_is_a(dv, "ld") ||
104 device_is_a(dv, "xbd") ||
105 device_is_a(dv, "ed"));
117 device_t dv;
132 for (dv = deviter_first(&di, DEVITER_F_ROOT_FIRST); dv != NULL;
133 dv = deviter_next(&di)) {
134 if (is_valid_disk(dv))
164 for (dv = deviter_first(&di, DEVITER_F_ROOT_FIRST); dv != NULL;
165 dv = deviter_next(&di)) {
166 if (!is_valid_disk(dv))
169 device_xname(dv), device_cfdata(dv)->cf_name));
173 "%s", device_xname(dv));
175 if ((tv = opendisk(dv)) == NULL) {
201 __func__, be->dev, device_xname(dv)));
216 match_bootwedge(device_t dv, struct btinfo_bootwedge *biw)
232 device_xname(dv)));
236 if ((tmpvn = opendisk(dv)) == NULL) {
237 DPRINTF(("%s: can't open %s\n", __func__, device_xname(dv)));
251 blk, device_xname(dv), error);
261 DPRINTF(("%s: %s found=%d\n", __func__, device_xname(dv), found));
274 match_bootdisk(device_t dv, struct btinfo_bootdisk *bid)
281 if (device_is_a(dv, "dk")) {
282 DPRINTF(("%s: dk %s\n", __func__, device_xname(dv)));
292 DPRINTF(("%s: no label %s\n", __func__, device_xname(dv)));
296 if ((tmpvn = opendisk(dv)) == NULL) {
297 DPRINTF(("%s: can't open %s\n", __func__, device_xname(dv)));
310 device_xname(dv), error);
320 DPRINTF(("%s: %s found=%d\n", __func__, device_xname(dv), found));
339 device_t dv;
358 for (dv = deviter_first(&di, DEVITER_F_ROOT_FIRST);
359 dv != NULL;
360 dv = deviter_next(&di)) {
364 if (device_class(dv) != DV_DISK)
367 cd = device_cfdata(dv);
371 biv->devname[len] - '0' == device_unit(dv)) {
372 booted_device = dv;
382 if (dv != NULL)
403 for (dv = deviter_first(&di, DEVITER_F_ROOT_FIRST);
404 dv != NULL;
405 dv = deviter_next(&di)) {
406 if (is_valid_disk(dv)) {
413 match_bootwedge(dv, biw) == 0)
421 dmatch(__func__, dv, "bootinfo/bootwedge");
424 booted_device = dv;
446 for (dv = deviter_first(&di, DEVITER_F_ROOT_FIRST);
447 dv != NULL;
448 dv = deviter_next(&di)) {
450 if (device_is_a(dv, "fd") &&
451 device_class(dv) == DV_DISK) {
460 device_unit(dv) != bid->biosdev)
465 if (is_valid_disk(dv)) {
472 match_bootdisk(dv, bid) == 0)
480 dmatch(__func__, dv, "bootinfo/bootdisk");
483 booted_device = dv;
519 for (dv = deviter_first(&di, DEVITER_F_ROOT_FIRST);
520 dv != NULL;
521 dv = deviter_next(&di)) {
522 if (device_class(dv) == DV_DISK &&
523 device_is_a(dv, "cd")) {
524 booted_device = dv;