Lines Matching defs:dev
51 major = major(sd->dev);
52 minor = minor(sd->dev);
252 static DeviceType detect_device_type(struct udev_device *dev) {
256 sysname = udev_device_get_sysname(dev);
257 subsystem = udev_device_get_subsystem(dev);
272 struct udev_device *dev, *p = NULL;
276 dev = udev_device_new_from_devnum(sd->session->manager->udev, 'c', sd->dev);
277 if (!dev)
280 sp = udev_device_get_syspath(dev);
281 node = udev_device_get_devnode(dev);
288 sd->type = detect_device_type(dev);
294 p = dev;
295 dev = udev_device_get_parent_with_subsystem_devtype(p, "input", NULL);
296 if (!dev) {
300 sp = udev_device_get_syspath(dev);
315 r = manager_process_seat_device(sd->session->manager, dev);
340 udev_device_unref(p ? : dev);
344 int session_device_new(Session *s, dev_t dev, SessionDevice **out) {
359 sd->dev = dev;
367 r = hashmap_put(s->devices, &sd->dev, sd);
396 hashmap_remove(s->devices, &sd->dev);
411 hashmap_remove(sd->session->devices, &sd->dev);