Home
last modified time | relevance | path

Searched refs:dp (Results 1 – 15 of 15) sorted by relevance

/device/google/trout/hal/sensors/2.1/
Diio_utils.cpp70 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/
DUsb.cpp234 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/
DUsbGadget.cpp469 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/
DUsb.cpp276 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/
DUsb.cpp880 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/
Dmain.cpp43 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/
DUsb.cpp525 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/
DUsb.cpp525 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/
DUsb.cpp525 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/
DUsb.cpp525 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/
DUsbGadget.cpp50 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/
DUsb.cpp804 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/
Dvport_parser.cpp61 static void close_dir(DIR *dp) { closedir(dp); } in close_dir() argument
/device/google/gs-common/bootctrl/1.2/
DBootControl.cpp81 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/
DBootControl.cpp78 std::string dp(real_path); in getDevPath() local
80 return dp.substr(0, sizeof "/dev/block/sdX" - 1); in getDevPath()