/device/google/trout/hal/sensors/2.1/ |
D | iio_utils.cpp | 70 static int sysfs_opendir(const std::string& name, DirPtr* dp) { in sysfs_opendir() argument 71 if (dp == nullptr) { in sysfs_opendir() 89 dp->reset(tmp); in sysfs_opendir() 165 DirPtr dp(nullptr, closedir); in get_sampling_frequency_available() local 168 ret = sysfs_opendir(device_dir, &dp); in get_sampling_frequency_available() 170 while (ent = readdir(dp.get()), ent != nullptr) { in get_sampling_frequency_available() 192 DirPtr dp(nullptr, closedir); in get_sensor_range() local 195 ret = sysfs_opendir(device_dir, &dp); in get_sensor_range() 197 while (ent = readdir(dp.get()), ent != nullptr) { in get_sensor_range() 226 DirPtr dp(nullptr, closedir); in set_sampling_frequency() local [all …]
|
/device/google/gs101/usb/usb/ |
D | Usb.cpp | 234 DIR *dp; in getI2cBusNumber() local 243 dp = opendir(kHsi2cPath); in getI2cBusNumber() 244 if (dp != NULL) { in getI2cBusNumber() 247 while ((ep = readdir(dp))) { in getI2cBusNumber() 255 closedir(dp); in getI2cBusNumber() 265 DIR *dp; in getI2cClientPath() local 285 dp = opendir(i2cClientPathLabeled); in getI2cClientPath() 286 if (dp != NULL) { in getI2cClientPath() 288 closedir(dp); in getI2cClientPath() 292 dp = opendir(i2cClientPathUnLabeled); in getI2cClientPath() [all …]
|
/device/google/gs101/usb/gadget/ |
D | UsbGadget.cpp | 469 DIR *dp; in getI2cBusNumber() local 478 dp = opendir(kHsi2cPath); in getI2cBusNumber() 479 if (dp != NULL) { in getI2cBusNumber() 482 while ((ep = readdir(dp))) { in getI2cBusNumber() 490 closedir(dp); in getI2cBusNumber() 500 DIR *dp; in getI2cClientPath() local 520 dp = opendir(i2cClientPathLabeled); in getI2cClientPath() 521 if (dp != NULL) { in getI2cClientPath() 523 closedir(dp); in getI2cClientPath() 527 dp = opendir(i2cClientPathUnLabeled); in getI2cClientPath() [all …]
|
/device/google/zuma/usb/usb/ |
D | Usb.cpp | 276 DIR *dp; in getI2cBusHelper() local 278 dp = opendir(kHsi2cPath); in getI2cBusHelper() 279 if (dp != NULL) { in getI2cBusHelper() 282 while ((ep = readdir(dp))) { in getI2cBusHelper() 290 closedir(dp); in getI2cBusHelper() 789 DIR *dp; in getTypeCPortNamesHelper() local 791 dp = opendir(kTypecPath); in getTypeCPortNamesHelper() 792 if (dp != NULL) { in getTypeCPortNamesHelper() 795 while ((ep = readdir(dp))) { in getTypeCPortNamesHelper() 808 closedir(dp); in getTypeCPortNamesHelper() [all …]
|
/device/google/zumapro/usb/usb/ |
D | Usb.cpp | 880 DIR *dp; in getTypeCPortNamesHelper() local 882 dp = opendir(kTypecPath); in getTypeCPortNamesHelper() 883 if (dp != NULL) { in getTypeCPortNamesHelper() 886 while ((ep = readdir(dp))) { in getTypeCPortNamesHelper() 899 closedir(dp); in getTypeCPortNamesHelper() 1103 DIR *dp; in queryPartnerSvids() local 1105 dp = opendir(kDisplayPortUsbPath); in queryPartnerSvids() 1106 if (dp != NULL) { in queryPartnerSvids() 1109 while ((ep = readdir(dp))) { in queryPartnerSvids() 1118 closedir(dp); in queryPartnerSvids() [all …]
|
/device/google/trout/vport_trigger/ |
D | main.cpp | 43 dirent* dp; in main() local 44 while ((dp = readdir(dir)) != nullptr) { in main() 45 std::string dirname = dp->d_name; in main()
|
/device/google/sunfish/usb/usb/ |
D | Usb.cpp | 525 DIR *dp; in getTypeCPortNamesHelper() local 527 dp = opendir(kTypecPath); in getTypeCPortNamesHelper() 528 if (dp != NULL) { in getTypeCPortNamesHelper() 531 while ((ep = readdir(dp))) { in getTypeCPortNamesHelper() 544 closedir(dp); in getTypeCPortNamesHelper() 745 DIR *dp = in uevent_event() local 749 if (dp == NULL) { in uevent_event() 752 closedir(dp); in uevent_event()
|
/device/google/barbet/usb/usb/ |
D | Usb.cpp | 525 DIR *dp; in getTypeCPortNamesHelper() local 527 dp = opendir(kTypecPath); in getTypeCPortNamesHelper() 528 if (dp != NULL) { in getTypeCPortNamesHelper() 531 while ((ep = readdir(dp))) { in getTypeCPortNamesHelper() 544 closedir(dp); in getTypeCPortNamesHelper() 745 DIR *dp = in uevent_event() local 749 if (dp == NULL) { in uevent_event() 752 closedir(dp); in uevent_event()
|
/device/google/redfin/usb/usb/ |
D | Usb.cpp | 525 DIR *dp; in getTypeCPortNamesHelper() local 527 dp = opendir(kTypecPath); in getTypeCPortNamesHelper() 528 if (dp != NULL) { in getTypeCPortNamesHelper() 531 while ((ep = readdir(dp))) { in getTypeCPortNamesHelper() 544 closedir(dp); in getTypeCPortNamesHelper() 745 DIR *dp = in uevent_event() local 749 if (dp == NULL) { in uevent_event() 752 closedir(dp); in uevent_event()
|
/device/google/coral/usb/usb/ |
D | Usb.cpp | 525 DIR *dp; in getTypeCPortNamesHelper() local 527 dp = opendir(kTypecPath); in getTypeCPortNamesHelper() 528 if (dp != NULL) { in getTypeCPortNamesHelper() 531 while ((ep = readdir(dp))) { in getTypeCPortNamesHelper() 544 closedir(dp); in getTypeCPortNamesHelper() 745 DIR *dp = in uevent_event() local 749 if (dp == NULL) { in uevent_event() 752 closedir(dp); in uevent_event()
|
/device/google/zuma/usb/gadget/ |
D | UsbGadget.cpp | 50 DIR *dp; in getI2cBusHelper() local 52 dp = opendir(kHsi2cPath); in getI2cBusHelper() 53 if (dp != NULL) { in getI2cBusHelper() 56 while ((ep = readdir(dp))) { in getI2cBusHelper() 64 closedir(dp); in getI2cBusHelper()
|
/device/google/gs201/usb/usb/ |
D | Usb.cpp | 804 DIR *dp; in getTypeCPortNamesHelper() local 806 dp = opendir(kTypecPath); in getTypeCPortNamesHelper() 807 if (dp != NULL) { in getTypeCPortNamesHelper() 810 while ((ep = readdir(dp))) { in getTypeCPortNamesHelper() 823 closedir(dp); in getTypeCPortNamesHelper() 1095 DIR *dp = in uevent_event() local 1099 if (dp == NULL) { in uevent_event() 1102 closedir(dp); in uevent_event()
|
/device/generic/goldfish/qemu-props/ |
D | vport_parser.cpp | 61 static void close_dir(DIR *dp) { closedir(dp); } in close_dir() argument
|
/device/google/gs-common/bootctrl/1.2/ |
D | BootControl.cpp | 81 std::string dp(real_path); in getDevPath() local 83 return dp.substr(0, sizeof "/dev/block/sdX" - 1); in getDevPath()
|
/device/google/gs-common/bootctrl/aidl/ |
D | BootControl.cpp | 78 std::string dp(real_path); in getDevPath() local 80 return dp.substr(0, sizeof "/dev/block/sdX" - 1); in getDevPath()
|