Lines Matching refs:devpath
142 const char *devpath; in device_set_syspath() local
240 assert_se(devpath = startswith(syspath, "/sys")); in device_set_syspath()
241 if (devpath[0] != '/') in device_set_syspath()
244 r = device_add_property_internal(device, "DEVPATH", devpath); in device_set_syspath()
249 device->devpath = devpath; in device_set_syspath()
937 const char *devpath, *drivers, *p; in device_set_drivers_subsystem() local
942 r = sd_device_get_devpath(device, &devpath); in device_set_drivers_subsystem()
946 drivers = strstr(devpath, "/drivers/"); in device_set_drivers_subsystem()
948 drivers = endswith(devpath, "/drivers"); in device_set_drivers_subsystem()
953 r = path_find_last_component(devpath, /* accept_dot_dot= */ false, &drivers, &p); in device_set_drivers_subsystem()
990 device->devpath); in sd_device_get_subsystem()
995 else if (!isempty(path_startswith(device->devpath, "/module/"))) in sd_device_get_subsystem()
999 else if (!isempty(PATH_STARTSWITH_SET(device->devpath, "/class/", "/bus/"))) in sd_device_get_subsystem()
1008 device->devpath); in sd_device_get_subsystem()
1144 assert(device->devpath); in sd_device_get_devpath()
1145 assert(device->devpath[0] == '/'); in sd_device_get_devpath()
1148 *ret = device->devpath; in sd_device_get_devpath()
1179 r = path_extract_filename(device->devpath, &sysname); in device_set_sysname_and_sysnum()
1458 r = path_extract_filename(device->devpath, &sysname); in device_get_device_id()