Lines Matching refs:subsystem
302 if (uevent == NULL || uevent->subsystem == NULL || STRINGEQUAL(uevent->subsystem, "block") == 0) {
312 // check subsystem file under directory, see if it links to bus/platform.
326 // Reverse walk through sysPath, and check subsystem file under each directory.
329 char subsystem[SYSPATH_SIZE];
330 if (snprintf_s(subsystem, SYSPATH_SIZE, SYSPATH_SIZE - 1, "%s/subsystem", parent) == -1) {
331 INIT_LOGE("Failed to build subsystem path for device \" %s \"", uevent->syspath);
335 char *bus = GetRealPath(subsystem);
426 static const char *GetDeviceBasePath(const char *subsystem)
429 if (INVALIDSTRING(subsystem)) {
433 if (STRINGEQUAL(subsystem, "block")) {
435 } else if (STRINGEQUAL(subsystem, "input")) {
437 } else if (STRINGEQUAL(subsystem, "drm")) {
439 } else if (STRINGEQUAL(subsystem, "graphics")) {
441 } else if (STRINGEQUAL(subsystem, "sound")) {
443 } else if (STRINGEQUAL(subsystem, "functionfs")) {
445 } else if (STRINGEQUAL(subsystem, "dma_heap")) {
456 if (uevent == NULL || uevent->subsystem == NULL) {
461 if (strcmp(uevent->subsystem, "block") != 0) {
462 INIT_LOGE("Unexpected uevent subsystem \" %s \" received in block device handler", uevent->subsystem);
472 const char *devPath = GetDeviceBasePath(uevent->subsystem);
498 if (uevent == NULL || uevent->subsystem == NULL || uevent->syspath == NULL) {
514 const char *devPath = GetDeviceBasePath(uevent->subsystem);
525 if (STRINGEQUAL(uevent->subsystem, "usb")) {
542 } else if (STARTSWITH(uevent->subsystem, "usb")) {