Lines Matching refs:value

45 static int32_t DdkSysfsReadProperty(const char *deviceDir, const char *propName, int64_t *value, uint64_t maxVal)
92 *value = res;
109 int64_t value = 0;
110 int32_t ret = DdkSysfsReadProperty(intfPath, "bInterfaceClass", &value, UINT8_MAX);
111 intf->interfaceClass = (uint8_t)value;
112 ret += DdkSysfsReadProperty(intfPath, "bInterfaceSubClass", &value, UINT8_MAX);
113 intf->interfaceSubClass = (uint8_t)value;
114 ret += DdkSysfsReadProperty(intfPath, "bInterfaceProtocol", &value, UINT8_MAX);
115 intf->interfaceProtocol = (uint8_t)value;
116 ret += DdkSysfsReadProperty(intfPath, "bInterfaceNumber", &value, UINT8_MAX);
117 intf->interfaceNumber = (uint8_t)value;
191 int64_t value = 0;
192 int32_t ret = DdkSysfsReadProperty(deviceDir, "devnum", &value, INT32_MAX);
193 device->devNum = (int32_t)value;
194 ret += DdkSysfsReadProperty(deviceDir, "busnum", &value, INT32_MAX);
195 device->busNum = (int32_t)value;
196 ret += DdkSysfsReadProperty(deviceDir, "bNumInterfaces", &value, UINT8_MAX);
197 device->numInfos = (uint8_t)value;
200 ret += DdkSysfsReadProperty(deviceDir, "idVendor", &value, UINT16_MAX);
201 devInfo->vendorId = (uint16_t)value;
202 ret += DdkSysfsReadProperty(deviceDir, "idProduct", &value, UINT16_MAX);
203 devInfo->productId = (uint16_t)value;
204 ret += DdkSysfsReadProperty(deviceDir, "bcdDevice", &value, UINT16_MAX);
205 devInfo->bcdDeviceLow = (uint16_t)value;
207 ret += DdkSysfsReadProperty(deviceDir, "bDeviceClass", &value, UINT8_MAX);
208 devInfo->deviceClass = (uint8_t)value;
209 ret += DdkSysfsReadProperty(deviceDir, "bDeviceSubClass", &value, UINT8_MAX);
210 devInfo->deviceSubClass = (uint8_t)value;
211 ret += DdkSysfsReadProperty(deviceDir, "bDeviceProtocol", &value, UINT8_MAX);
212 devInfo->deviceProtocol = (uint8_t)value;