Lines Matching defs:dev

94  * dev/ppbus/vpo.c driver, by Nicolas Souchu (nsouch@FreeBSD.org).
233 #define UMASS_ATTACH_PRENAME "/dev/sd"
806 umass_probe_proto(device_t dev, struct usb_attach_arg *uaa)
896 umass_probe(device_t dev)
899 (struct usb_attach_arg *)device_get_ivars(dev);
905 temp = umass_probe_proto(dev, uaa);
911 umass_attach(device_t dev)
914 (struct umass_softc *)device_get_softc(dev);
916 (struct usb_attach_arg *)device_get_ivars(dev);
917 struct umass_probe_proto temp = umass_probe_proto(dev, uaa);
927 sc->sc_dev = dev;
931 sc->sc_unit = device_get_unit(dev);
937 dev_quantity |= 1ull << (unsigned int)device_get_unit(dev);
941 "%s", device_get_nameunit(dev));
943 device_set_usb_desc(dev);
945 mtx_init(&sc->sc_mtx, device_get_nameunit(dev),
947 mtx_init(&sc->sc_umass_mtx, device_get_nameunit(dev),
956 device_printf(dev, "failed to get "
962 device_printf(dev, " ");
1035 device_printf(dev, "could not setup required "
1093 if (umass_attach_dev(sc, device_get_unit(dev))) {
1101 (void)umass_detach(dev);
1106 umass_detach(device_t dev)
1108 struct umass_softc *sc = (struct umass_softc *)device_get_softc(dev);
1109 unsigned int dev_unit = device_get_unit(dev);
3295 device_t dev;
3305 dev = sc->sc_dev;
3307 dev_quantity |= 1ull << (unsigned int)device_get_unit(dev);
3328 cur_info.nameunit = device_get_nameunit(dev);
3335 parent_info.nameunit = device_get_nameunit(device_get_parent(dev));
3357 device_t dev = NULL;
3364 dev = sc->sc_dev;
3370 parent_info.nameunit = device_get_nameunit(device_get_parent(dev));
3373 cur_info.nameunit = device_get_nameunit(dev);
3396 dev_quantity &= ~(1ull << (unsigned int)device_get_unit(dev));
3409 struct umass_dev_info *dev = g_umass_dev_array;
3415 if (dev[i].used == 1) {
3416 sc = dev[i].sc;
3419 if (dev[i].attached == 1) {
3420 umass_detach_dev_sub(sc, dev[i].dev_unit, 1);
3421 dev[i].attached = 0;
3427 if (dev[i].attached == 1) {
3432 ret = umass_attach_dev_sub(sc, dev[i].dev_unit);
3590 if ((devname == NULL) || strlen(devname) > 7) { /* /dev/sd* */