Searched refs:deviceDir (Results 1 – 4 of 4) sorted by relevance
/ohos5.0/drivers/peripheral/usb/ddk/host/src/ |
H A D | ddk_sysfs_device.c | 103 int32_t num = sprintf_s(intfPath, SYSFS_PATH_LEN, "%s/%s", deviceDir, intfDir); in DdkSysfsGetInterface() 162 if (strncmp(devHandle->d_name, deviceDir, strlen(deviceDir)) != 0) { in DdkSysfsGetActiveInterfaces() 192 int32_t ret = DdkSysfsReadProperty(deviceDir, "devnum", &value, INT32_MAX); in DdkSysfsGetDevice() 194 ret += DdkSysfsReadProperty(deviceDir, "busnum", &value, INT32_MAX); in DdkSysfsGetDevice() 196 ret += DdkSysfsReadProperty(deviceDir, "bNumInterfaces", &value, UINT8_MAX); in DdkSysfsGetDevice() 200 ret += DdkSysfsReadProperty(deviceDir, "idVendor", &value, UINT16_MAX); in DdkSysfsGetDevice() 202 ret += DdkSysfsReadProperty(deviceDir, "idProduct", &value, UINT16_MAX); in DdkSysfsGetDevice() 204 ret += DdkSysfsReadProperty(deviceDir, "bcdDevice", &value, UINT16_MAX); in DdkSysfsGetDevice() 207 ret += DdkSysfsReadProperty(deviceDir, "bDeviceClass", &value, UINT8_MAX); in DdkSysfsGetDevice() 209 ret += DdkSysfsReadProperty(deviceDir, "bDeviceSubClass", &value, UINT8_MAX); in DdkSysfsGetDevice() [all …]
|
H A D | ddk_device_manager.c | 134 const struct UsbPnpNotifyMatchInfoTable *DdkDevMgrCreateDevice(const char *deviceDir) in DdkDevMgrCreateDevice() argument 152 status = DdkSysfsGetDevice(deviceDir, &device->info); in DdkDevMgrCreateDevice()
|
/ohos5.0/drivers/peripheral/usb/ddk/host/include/ |
H A D | ddk_sysfs_device.h | 25 int32_t DdkSysfsGetDevice(const char *deviceDir, struct UsbPnpNotifyMatchInfoTable *device);
|
H A D | ddk_device_manager.h | 31 const struct UsbPnpNotifyMatchInfoTable *DdkDevMgrCreateDevice(const char *deviceDir);
|