Lines Matching defs:devpath
162 info("updating devpath from '%s' to '%s'", udev->dev->devpath, value);
208 dbg("found parent '%s', get the node name", dev_parent->devpath);
213 if (udev_db_get_device(udev_parent, dev_parent->devpath) == 0) {
250 strlcat(devicepath, udev->dev->devpath, sizeof(devicepath));
275 static int attr_get_by_subsys_id(const char *attrstr, char *devpath, size_t len, char **attr)
299 if (sysfs_lookup_devpath_by_subsys_id(devpath, len, subsys, id)) {
341 { .name = "devpath", .fmt = 'p', .type = SUBST_DEVPATH },
419 strlcat(string, udev->dev->devpath, maxsize);
420 dbg("substitute devpath '%s'", udev->dev->devpath);
484 char devpath[PATH_SIZE];
489 if (attr_get_by_subsys_id(attr, devpath, sizeof(devpath), &attrib)) {
491 value = sysfs_attr_get_value(devpath, attrib);
498 value = sysfs_attr_get_value(udev->dev_parent->devpath, attr);
505 dbg("looking at '%s'", dev_parent->devpath);
506 value = sysfs_attr_get_value(dev_parent->devpath, attr);
539 dbg("found parent '%s', get the node name", dev_parent->devpath);
543 if (udev_db_get_device(udev_parent, dev_parent->devpath) == 0) {
663 if (match_key("DEVPATH", rule, &rule->devpath, udev->dev->devpath))
693 char devpath[PATH_SIZE];
701 if (attr_get_by_subsys_id(filename, devpath, sizeof(devpath), &attr)) {
703 strlcat(filename, devpath, sizeof(filename));
741 char devpath[PATH_SIZE];
747 if (attr_get_by_subsys_id(key_name, devpath, sizeof(devpath), &attrib)) {
749 value = sysfs_attr_get_value(devpath, attrib);
754 value = sysfs_attr_get_value(udev->dev->devpath, key_name);
800 value = sysfs_attr_get_value(udev->dev_parent->devpath, key_name);
802 value = sysfs_attr_get_value(udev->dev->devpath, key_name);
829 dbg("looking at dev_parent->devpath='%s'", udev->dev_parent->devpath);
930 char devpath[PATH_SIZE];
936 if (attr_get_by_subsys_id(key_name, devpath, sizeof(devpath), &attrib)) {
939 strlcat(attr, devpath, sizeof(attr));
947 strlcat(attr, udev->dev->devpath, sizeof(attr));
976 dbg("udev->dev->devpath='%s'", udev->dev->devpath);