Lines Matching defs:dev
35 int udev_builtin_hwdb_lookup(struct udev_device *dev,
56 if (udev_builtin_add_property(dev, test, key, value) < 0)
63 static const char *modalias_usb(struct udev_device *dev, char *s, size_t size) {
67 v = udev_device_get_sysattr_value(dev, "idVendor");
70 p = udev_device_get_sysattr_value(dev, "idProduct");
83 static int udev_builtin_hwdb_search(struct udev_device *dev, struct udev_device *srcdev,
91 assert(dev);
94 srcdev = dev;
122 r = udev_builtin_hwdb_lookup(dev, prefix, modalias, filter, test);
130 static int builtin_hwdb(struct udev_device *dev, int argc, char *argv[], bool test) {
175 if (udev_builtin_hwdb_lookup(dev, prefix, argv[optind], filter, test) > 0)
182 srcdev = udev_device_new_from_device_id(udev_device_get_udev(dev), device);
187 if (udev_builtin_hwdb_search(dev, srcdev, subsystem, prefix, filter, test) > 0)