Home
last modified time | relevance | path

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

12

/hardware/google/pixel/usb/
DI2cHelper.cpp36 DIR *dp = opendir(hsi2cPath.c_str()); in getI2cBusNumberString() local
38 if (dp != NULL) { in getI2cBusNumberString()
41 while ((ep = readdir(dp))) { in getI2cBusNumberString()
47 closedir(dp); in getI2cBusNumberString()
52 closedir(dp); in getI2cBusNumberString()
76 DIR *dp; in getI2cClientPath() local
85 dp = opendir(i2cPathPartial.c_str()); in getI2cClientPath()
86 if (dp != NULL) { in getI2cClientPath()
90 while ((ep = readdir(dp))) { in getI2cClientPath()
93 closedir(dp); in getI2cClientPath()
[all …]
DUsbBusHelper.cpp31 DIR *dp = opendir(busPath.c_str()); in getBusNumberString() local
33 if (dp != NULL) { in getBusNumberString()
36 while ((ep = readdir(dp))) { in getBusNumberString()
42 closedir(dp); in getBusNumberString()
47 closedir(dp); in getBusNumberString()
79 DIR *dp; in getBusClientPath() local
88 dp = opendir(busPathPartial.c_str()); in getBusClientPath()
89 if (dp != NULL) { in getBusClientPath()
93 while ((ep = readdir(dp))) { in getBusClientPath()
96 closedir(dp); in getBusClientPath()
[all …]
DUsbDpUtils.cpp391 DIR *dp; in getDisplayPortUsbPathHelper() local
394 dp = opendir(kPortPartnerPath); in getDisplayPortUsbPathHelper()
395 if (dp) { in getDisplayPortUsbPathHelper()
398 while ((ep = readdir(dp))) { in getDisplayPortUsbPathHelper()
412 closedir(dp); in getDisplayPortUsbPathHelper()
571 DIR *dp; in queryPartnerSvids() local
573 dp = opendir(kPortPartnerPath); in queryPartnerSvids()
574 if (dp != NULL) { in queryPartnerSvids()
577 while ((ep = readdir(dp))) { in queryPartnerSvids()
586 closedir(dp); in queryPartnerSvids()
/hardware/invensense/6515/libsensors_iio/software/simple_apps/stress_iio/
Diio_utils.h105 DIR *dp; in iioutils_get_type() local
127 dp = opendir(scan_el_dir); in iioutils_get_type()
128 if (dp == NULL) { in iioutils_get_type()
132 while (ent = readdir(dp), ent != NULL) in iioutils_get_type()
181 closedir(dp); in iioutils_get_type()
200 DIR *dp; in iioutils_get_param_float() local
216 dp = opendir(device_dir); in iioutils_get_param_float()
217 if (dp == NULL) { in iioutils_get_param_float()
221 while (ent = readdir(dp), ent != NULL) in iioutils_get_param_float()
242 closedir(dp); in iioutils_get_param_float()
[all …]
/hardware/qcom/gps/msm8994/loc_api/libloc_api-rpc/gen-3200/
Dloc_api_fixup.c40 xdr_double(xdrp, dp) in xdr_double() argument
42 double *dp;
44 return xdr_long(xdrp, (long*)dp + 1)
45 && xdr_long(xdrp, (long*)dp);
/hardware/qcom/gps/msm8084/loc_api/libloc_api-rpc/gen-3200/
Dloc_api_fixup.c40 xdr_double(xdrp, dp) in xdr_double() argument
42 double *dp;
44 return xdr_long(xdrp, (long*)dp + 1)
45 && xdr_long(xdrp, (long*)dp);
/hardware/qcom/gps/msm8084/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/
Dloc_api_fixup.c44 xdr_double(xdrp, dp) in xdr_double() argument
46 double *dp;
48 return xdr_long(xdrp, (long*)dp + 1)
49 && xdr_long(xdrp, (long*)dp);
/hardware/qcom/gps/msm8084/loc_api/libloc_api-rpc/gen-1240/
Dloc_api_fixup.c40 xdr_double(xdrp, dp) in xdr_double() argument
42 double *dp;
44 return xdr_long(xdrp, (long*)dp + 1)
45 && xdr_long(xdrp, (long*)dp);
/hardware/qcom/gps/msm8994/loc_api/libloc_api-rpc/gen-1240/
Dloc_api_fixup.c40 xdr_double(xdrp, dp) in xdr_double() argument
42 double *dp;
44 return xdr_long(xdrp, (long*)dp + 1)
45 && xdr_long(xdrp, (long*)dp);
/hardware/qcom/gps/loc_api/libloc_api-rpc/gen-1240/
Dloc_api_fixup.c40 xdr_double(xdrp, dp) in xdr_double() argument
42 double *dp;
44 return xdr_long(xdrp, (long*)dp + 1)
45 && xdr_long(xdrp, (long*)dp);
/hardware/qcom/gps/msm8996/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/
Dloc_api_fixup.c44 xdr_double(xdrp, dp) in xdr_double() argument
46 double *dp;
48 return xdr_long(xdrp, (long*)dp + 1)
49 && xdr_long(xdrp, (long*)dp);
/hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/
Dloc_api_fixup.c44 xdr_double(xdrp, dp) in xdr_double() argument
46 double *dp;
48 return xdr_long(xdrp, (long*)dp + 1)
49 && xdr_long(xdrp, (long*)dp);
/hardware/qcom/gps/loc_api/libloc_api-rpc/gen-3200/
Dloc_api_fixup.c40 xdr_double(xdrp, dp) in xdr_double() argument
42 double *dp;
44 return xdr_long(xdrp, (long*)dp + 1)
45 && xdr_long(xdrp, (long*)dp);
/hardware/qcom/gps/msm8909/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/
Dloc_api_fixup.c44 xdr_double(xdrp, dp) in xdr_double() argument
46 double *dp;
48 return xdr_long(xdrp, (long*)dp + 1)
49 && xdr_long(xdrp, (long*)dp);
/hardware/qcom/gps/msm8994/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/
Dloc_api_fixup.c44 xdr_double(xdrp, dp) in xdr_double() argument
46 double *dp;
48 return xdr_long(xdrp, (long*)dp + 1)
49 && xdr_long(xdrp, (long*)dp);
/hardware/invensense/6515/libsensors_iio/software/simple_apps/devnode_parser/
Diio_utils.h107 DIR *dp; in iioutils_get_type() local
129 dp = opendir(scan_el_dir); in iioutils_get_type()
130 if (dp == NULL) { in iioutils_get_type()
134 while (ent = readdir(dp), ent != NULL) in iioutils_get_type()
183 closedir(dp); in iioutils_get_type()
202 DIR *dp; in iioutils_get_param_float() local
218 dp = opendir(device_dir); in iioutils_get_param_float()
219 if (dp == NULL) { in iioutils_get_param_float()
223 while (ent = readdir(dp), ent != NULL) in iioutils_get_param_float()
244 closedir(dp); in iioutils_get_param_float()
[all …]
/hardware/invensense/6515/libsensors_iio/software/simple_apps/mpu_iio/
Diio_utils.h107 DIR *dp; in iioutils_get_type() local
129 dp = opendir(scan_el_dir); in iioutils_get_type()
130 if (dp == NULL) { in iioutils_get_type()
134 while (ent = readdir(dp), ent != NULL) in iioutils_get_type()
183 closedir(dp); in iioutils_get_type()
202 DIR *dp; in iioutils_get_param_float() local
218 dp = opendir(device_dir); in iioutils_get_param_float()
219 if (dp == NULL) { in iioutils_get_param_float()
223 while (ent = readdir(dp), ent != NULL) in iioutils_get_param_float()
244 closedir(dp); in iioutils_get_param_float()
[all …]
/hardware/interfaces/audio/aidl/vts/
DVtsHalDynamicsProcessingTest.cpp72 DynamicsProcessing dp = DynamicsProcessing::make<DynamicsProcessing::engineArchitecture>( in getDefaultParamSpecific() local
75 Parameter::Specific::make<Parameter::Specific::dynamicsProcessing>(dp); in getDefaultParamSpecific()
111 bool isParamValid(const DynamicsProcessing::Tag& tag, const DynamicsProcessing& dp);
210 const DynamicsProcessing& dp) { in isParamValid() argument
213 return isChannelConfigValid(dp.get<DynamicsProcessing::preEq>()); in isParamValid()
216 return isChannelConfigValid(dp.get<DynamicsProcessing::postEq>()); in isParamValid()
219 return isChannelConfigValid(dp.get<DynamicsProcessing::mbc>()); in isParamValid()
222 return isBandConfigValid(dp.get<DynamicsProcessing::preEqBand>(), in isParamValid()
226 return isBandConfigValid(dp.get<DynamicsProcessing::postEqBand>(), in isParamValid()
230 return isBandConfigValid(dp.get<DynamicsProcessing::mbcBand>(), in isParamValid()
[all …]
/hardware/interfaces/audio/aidl/common/
DEffectRangeSpecific.cpp99 bool isParamInRange(const DynamicsProcessing& dp, in isParamInRange() argument
101 auto tag = dp.getTag(); in isParamInRange()
108 dp.get<DynamicsProcessing::engineArchitecture>(), in isParamInRange()
113 return isChannelConfigInRange(dp.get<DynamicsProcessing::preEq>(), in isParamInRange()
118 return isChannelConfigInRange(dp.get<DynamicsProcessing::postEq>(), in isParamInRange()
123 return isChannelConfigInRange(dp.get<DynamicsProcessing::mbc>(), in isParamInRange()
128 return isEqBandConfigInRange(dp.get<DynamicsProcessing::preEqBand>(), in isParamInRange()
133 return isEqBandConfigInRange(dp.get<DynamicsProcessing::postEqBand>(), in isParamInRange()
138 return isMbcBandConfigInRange(dp.get<DynamicsProcessing::mbcBand>(), in isParamInRange()
143 return isLimiterConfigInRange(dp.get<DynamicsProcessing::limiter>(), in isParamInRange()
[all …]
/hardware/invensense/6515/libsensors_iio/software/core/mllite/linux/
Dml_sysfs_helper.c71 DIR *dp; in find_type_by_name() local
75 dp = opendir(iio_dir); in find_type_by_name()
76 if (dp == NULL) { in find_type_by_name()
81 while (ent = readdir(dp), ent != NULL) { in find_type_by_name()
316 DIR *dp; in find_name_by_sensor_type() local
319 dp = opendir(iio_dir); in find_name_by_sensor_type()
320 if (dp == NULL) { in find_name_by_sensor_type()
325 while (ent = readdir(dp), ent != NULL) { in find_name_by_sensor_type()
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/linux/
Dml_sysfs_helper.c63 DIR *dp; in find_type_by_name() local
67 dp = opendir(iio_dir); in find_type_by_name()
68 if (dp == NULL) { in find_type_by_name()
73 while (ent = readdir(dp), ent != NULL) { in find_type_by_name()
308 DIR *dp; in find_name_by_sensor_type() local
311 dp = opendir(iio_dir); in find_name_by_sensor_type()
312 if (dp == NULL) { in find_name_by_sensor_type()
317 while (ent = readdir(dp), ent != NULL) { in find_name_by_sensor_type()
/hardware/interfaces/usb/1.0/default/
DUsb.cpp164 DIR *dp; in getTypeCPortNamesHelper() local
166 dp = opendir("/sys/class/dual_role_usb"); in getTypeCPortNamesHelper()
167 if (dp != NULL) in getTypeCPortNamesHelper()
174 while ((ep = readdir (dp))) { in getTypeCPortNamesHelper()
181 closedir(dp); in getTypeCPortNamesHelper()
186 rewinddir(dp); in getTypeCPortNamesHelper()
188 while ((ep = readdir (dp))) { in getTypeCPortNamesHelper()
192 rewinddir(dp); in getTypeCPortNamesHelper()
199 closedir (dp); in getTypeCPortNamesHelper()
/hardware/invensense/65xx/libsensors_iio/
DMPLSupport.cpp287 DIR *dp; in read_sysfs_dir() local
290 dp = opendir (sysfs_path); in read_sysfs_dir()
292 if (dp != NULL) in read_sysfs_dir()
296 while ((ep = readdir (dp))) { in read_sysfs_dir()
323 closedir(dp); in read_sysfs_dir()
/hardware/interfaces/usb/gadget/aidl/default/
DUsbGadget.cpp182 DIR *dp; in getI2cBusHelper() local
184 dp = opendir(kHsi2cPath); in getI2cBusHelper()
185 if (dp != NULL) { in getI2cBusHelper()
188 while ((ep = readdir(dp))) { in getI2cBusHelper()
196 closedir(dp); in getI2cBusHelper()
/hardware/invensense/6515/libsensors_iio/
DMPLSupport.cpp290 DIR *dp; in read_sysfs_dir() local
293 dp = opendir (sysfs_path); in read_sysfs_dir()
295 if (dp != NULL) in read_sysfs_dir()
299 while ((ep = readdir (dp))) { in read_sysfs_dir()
326 closedir(dp); in read_sysfs_dir()

12