Lines Matching refs:dev
95 struct disk_devdesc *dev;
98 dev = va_arg(ap, struct disk_devdesc *);
106 if (dev->d_unit != 0)
108 return (disk_open(dev, altera_sdcard_get_mediasize(),
115 struct disk_devdesc *dev;
117 dev = (struct disk_devdesc *)f->f_devdata;
118 return (disk_close(dev));
124 struct disk_devdesc dev;
129 dev.d_dev = &beri_sdcard_disk;
130 dev.d_unit = 0;
131 dev.d_slice = -1;
132 dev.d_partition = -1;
133 if (disk_open(&dev, altera_sdcard_get_mediasize(),
136 disk_print(&dev, line, verbose);
137 disk_close(&dev);