Lines Matching refs:dev
95 struct disk_devdesc *dev;
98 dev = va_arg(ap, struct disk_devdesc *);
101 if (dev->d_unit != 0)
103 return (disk_open(dev, cfi_get_mediasize(), cfi_get_sectorsize(), 0));
109 struct disk_devdesc *dev;
111 dev = (struct disk_devdesc *)f->f_devdata;
112 return (disk_close(dev));
118 struct disk_devdesc dev;
123 dev.d_dev = &beri_cfi_disk;
124 dev.d_unit = 0;
125 dev.d_slice = -1;
126 dev.d_partition = -1;
127 if (disk_open(&dev, cfi_get_mediasize(),
130 disk_print(&dev, line, verbose);
131 disk_close(&dev);