Lines Matching refs:sep
438 const char *sep; in sd_device_new_from_subsystem_sysname() local
440 sep = strchr(name, ':'); in sd_device_new_from_subsystem_sysname()
441 if (sep && sep[1] != '\0') { /* Require ":" and something non-empty after that. */ in sd_device_new_from_subsystem_sysname()
443 const char *subsys = memdupa_suffix0(name, sep - name); in sd_device_new_from_subsystem_sysname()
444 sep++; in sd_device_new_from_subsystem_sysname()
446 …if (streq(sep, "drivers")) /* If the sysname is "drivers", then it's the drivers directory itself … in sd_device_new_from_subsystem_sysname()
449 r = device_strjoin_new("/sys/bus/", subsys, "/drivers/", sep, ret); in sd_device_new_from_subsystem_sysname()
837 const char *subsys, *sep; in sd_device_new_from_device_id() local
839 sep = strchr(id + 1, ':'); in sd_device_new_from_device_id()
840 if (!sep || sep - id - 1 > NAME_MAX) in sd_device_new_from_device_id()
843 subsys = memdupa_suffix0(id + 1, sep - id - 1); in sd_device_new_from_device_id()
845 return sd_device_new_from_subsystem_sysname(ret, subsys, sep + 1); in sd_device_new_from_device_id()