Home
last modified time | relevance | path

Searched refs:bLength (Results 1 – 25 of 37) sorted by relevance

12

/ohos5.0/base/usb/usb_manager/services/native/src/
H A Dusb_descriptor_parser.cpp56 if (deviceDescriptor.bLength != deviceDescriptorSize) { in ParseDeviceDescriptor()
186 cursor += descriptorHeader.bLength; in ParseConfigDescriptors()
204 length, configDescriptor.bLength); in ParseConfigDescriptor()
262 if (descriptorHeader.bLength > length) { in ParseInterfaceDescriptor()
269 cursor += descriptorHeader.bLength; in ParseInterfaceDescriptor()
271 descriptorHeader.bLength); in ParseInterfaceDescriptor()
279 cursor += interfaceDescriptor.bLength; in ParseInterfaceDescriptor()
317 if (descriptorHeader.bLength > length) { in ParseEndpointDescriptor()
324 cursor += descriptorHeader.bLength; in ParseEndpointDescriptor()
326 descriptorHeader.bLength); in ParseEndpointDescriptor()
[all …]
/ohos5.0/drivers/peripheral/usb/interfaces/ddk/common/
H A Dusb_ddk.h157 uint8_t bLength; member
162 uint8_t bLength; member
179 uint8_t bLength; member
190 uint8_t bLength; member
196 uint8_t bLength; member
208 uint8_t bLength; member
219 uint8_t bLength; member
226 uint8_t bLength; member
234 uint8_t bLength; member
246 uint8_t bLength; member
[all …]
/ohos5.0/drivers/external_device_manager/frameworks/ddk/usb/
H A Dusb_config_desc_parser.cpp25 uint8_t bLength; member
123 buffer += header->bLength; in FindNextDescriptor()
124 size -= header->bLength; in FindNextDescriptor()
183 header->bDescriptorType, header->bLength); in ParseEndpoint()
193 buffer += header->bLength; in ParseEndpoint()
194 size -= header->bLength; in ParseEndpoint()
267 if (desc->bLength < USB_DDK_DT_INTERFACE_SIZE) { in GetInterfaceNumberDes()
300 …ffer2 = buffer, size2 = size); size2 > 0; (buffer2 += header->bLength, size2 -= header->bLength)) { in GetInterfaceNumber()
306 if ((header->bLength > size2) || (header->bLength < sizeof(UsbDescriptorHeader))) { in GetInterfaceNumber()
541 buffer += config.configDescriptor.bLength; in ParseConfiguration()
[all …]
/ohos5.0/drivers/hdf_core/framework/model/audio/usb/src/
H A Daudio_usb_validate_desc.c263 if (uacHeaderDesc->bLength >= sizeof(*uacHeaderDesc) && uacHeaderDesc->bLength >= descSize) { in ValidateUac1Header()
297 temp = uacMixerDesc->bLength >= length; in ValidateMixerUnit()
309 if (uacProcessDesc->bLength < *length + 1) { in UacProcessGetLength()
358 if (uacProcessDesc->bLength < *length + 1) { in UacV2ProcessGetLen()
376 if (uacProcessDesc->bLength < *length + 1) { in UacV3ProcessGetLen()
434 if (uacProcessDesc->bLength < sizeof(*uacProcessDesc)) { in ValidateProcessingUnit()
438 if (uacProcessDesc->bLength < length) { in ValidateProcessingUnit()
447 if (uacProcessDesc->bLength < length) { in ValidateProcessingUnit()
458 if (uacProcessDesc->bLength < length) { in ValidateProcessingUnit()
487 return uacSelectorDesc->bLength >= length; in ValidateSelectorUnit()
[all …]
H A Daudio_usb_parse_interface.c165 if (csep == NULL || csep->bLength < DESP_LENTH || csep->bDescriptorSubtype != UAC_EP_GENERAL) { in ParseUacEndpointAttr()
174 if (csep2->bLength < sizeof(*csep2)) { in ParseUacEndpointAttr()
185 if (csep3->bLength < sizeof(*csep3)) { in ParseUacEndpointAttr()
615 if (as->bLength < sizeof(*as)) { in AudioUsbGetFormat()
636 if (((uacFmt->protocol == UAC_VERSION_1) && ((*fmt)->bLength < FORMAT_LRENGTH_8)) || in AudioUsbGetFormat()
637 ((uacFmt->protocol == UAC_VERSION_2) && ((*fmt)->bLength < FORMAT_LRENGTH_6))) { in AudioUsbGetFormat()
/ohos5.0/drivers/peripheral/usb/test/unittest/device_sdk/
H A Dusb_device_cdcacm_test.cpp23 .bLength = sizeof(g_acmIadDescriptor),
38 .bLength = USB_DDK_DT_INTERFACE_SIZE,
54 .bLength = USB_DDK_DT_INTERFACE_SIZE,
70 .bLength = sizeof(g_acmHeaderDesc),
85 .bLength = sizeof(g_acmDescriptor),
92 .bLength = sizeof(g_acmUnionDesc),
105 .bLength = USB_DDK_DT_ENDPOINT_SIZE,
114 .bLength = USB_DDK_DT_ENDPOINT_SIZE,
121 .bLength = USB_DDK_DT_ENDPOINT_SIZE,
142 .bLength = USB_DDK_DT_ENDPOINT_SIZE,
[all …]
/ohos5.0/drivers/hdf_core/framework/test/unittest/model/usb/device/src/
H A Dusb_device_lite_cdcacm_test.c15 .bLength = sizeof(g_acmIadDescriptor),
30 .bLength = USB_DDK_DT_INTERFACE_SIZE,
46 .bLength = USB_DDK_DT_INTERFACE_SIZE,
62 .bLength = sizeof(g_acmHeaderDesc),
77 .bLength = sizeof(g_acmDescriptor),
84 .bLength = sizeof(g_acmUnionDesc),
97 .bLength = USB_DDK_DT_ENDPOINT_SIZE,
106 .bLength = USB_DDK_DT_ENDPOINT_SIZE,
113 .bLength = USB_DDK_DT_ENDPOINT_SIZE,
134 .bLength = USB_DDK_DT_ENDPOINT_SIZE,
[all …]
/ohos5.0/drivers/peripheral/usb/hdi_service/include/
H A Dusbd_type.h144 uint8_t bLength; member
149 uint8_t bLength; member
166 uint8_t bLength; member
177 uint8_t bLength; member
189 uint8_t bLength; member
/ohos5.0/docs/zh-cn/application-dev/reference/apis-driverdevelopment-kit/
H A D_usb_endpoint_descriptor.md24 | [bLength](#blength) | 该描述符的大小,单位为字节。 |
73 ### bLength subsection
77 uint8_t UsbEndpointDescriptor::bLength
H A D_usb_config_descriptor.md24 | [bLength](#blength) | 该描述符的大小,单位为字节。 |
61 ### bLength subsection
65 uint8_t UsbConfigDescriptor::bLength
H A D_usb_interface_descriptor.md24 | [bLength](#blength) | 该描述符的大小,单位为字节。 |
110 ### bLength subsection
114 uint8_t UsbInterfaceDescriptor::bLength
H A D_usb_device_descriptor.md24 | [bLength](#blength) | 该描述符的大小,单位为字节。 |
115 ### bLength subsection
119 uint8_t UsbDeviceDescriptor::bLength
H A Dusb__ddk__types_8h.md64 | [bLength](#blength) | 该描述符的大小,单位为字节。 |
285 ### bLength subsection
289 uint8_t bLength
/ohos5.0/drivers/external_device_manager/interfaces/ddk/usb/
H A Dusb_ddk_types.h76 uint8_t bLength; member
114 uint8_t bLength; member
142 uint8_t bLength; member
169 uint8_t bLength; member
/ohos5.0/drivers/peripheral/usb/ddk/host/src/
H A Dusb_raw_api_library.c140 if (desc->bLength < USB_DDK_DT_INTERFACE_SIZE) { in GetInterfaceNumberDes()
169 …ffer2 = buffer, size2 = size); size2 > 0; (buffer2 += header->bLength, size2 -= header->bLength)) { in GetInterfaceNumber()
175 if ((header->bLength > size2) || (header->bLength < sizeof(struct UsbDescriptorHeader))) { in GetInterfaceNumber()
177 __func__, header->bLength); in GetInterfaceNumber()
199 buffer += h->bLength; in FindNextDescriptor()
200 size -= h->bLength; in FindNextDescriptor()
338 buffer += header->bLength; in ParseEndpoint()
339 size -= header->bLength; in ParseEndpoint()
412 (ifp->interfaceDescriptor.bLength > size)) { in RawParseDescriptor()
506 buffer += ifp->interfaceDescriptor.bLength; in ParseInterface()
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-driverdevelopment-kit/
H A D_usb_endpoint_descriptor.md24 | [bLength](#blength) | Size of the descriptor, in bytes.|
73 ### bLength subsection
77 uint8_t UsbEndpointDescriptor::bLength
H A D_usb_config_descriptor.md24 | [bLength](#blength) | Size of the descriptor, in bytes.|
61 ### bLength subsection
65 uint8_t UsbConfigDescriptor::bLength
H A D_usb_interface_descriptor.md24 | [bLength](#blength) | Size of the descriptor, in bytes.|
110 ### bLength subsection
114 uint8_t UsbInterfaceDescriptor::bLength
H A D_usb_device_descriptor.md24 | [bLength](#blength) | Size of the descriptor, in bytes.|
115 ### bLength subsection
119 uint8_t UsbDeviceDescriptor::bLength
H A Dusb__ddk__types_8h.md64 | [bLength](#blength) | Size of the descriptor, in bytes.|
285 ### bLength subsection
289 uint8_t bLength
/ohos5.0/drivers/peripheral/usb/ddk/device/src/
H A Dusbfn_cfg_mgr.c42 if (devDesc->bLength != sizeof(struct UsbDeviceDescriptor)) { in UsbFnCfgMgrParseDevDesc()
265 if (drsOps->GetUint8(node, DESC_LENGTH, &desc->bLength, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseAccocInterfaceDesc()
289 if (drsOps->GetUint8(node, DESC_LENGTH, &desc->bLength, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseInterfaceDesc()
314 if (drsOps->GetUint8(node, DESC_LENGTH, &desc->bLength, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseEndpointDesc()
324 if (desc->bLength == USB_DDK_DT_ENDPOINT_AUDIO_SIZE) { in UsbFnCfgMgrParseEndpointDesc()
344 if (drsOps->GetUint8(node, DESC_LENGTH, &desc->bLength, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseStringDesc()
366 if (drsOps->GetUint8(node, DESC_LENGTH, &desc->bLength, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseSspIsocEndpointDesc()
389 if (drsOps->GetUint8(node, DESC_LENGTH, &desc->bLength, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseSsEndpointDesc()
412 if (drsOps->GetUint8(node, DESC_LENGTH, &desc->bLength, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseQualifierDesc()
440 if (drsOps->GetUint8(node, DESC_LENGTH, &desc->bLength, 0) != HDF_SUCCESS || in UsbFnCfgMgrParseOtgDesc()
[all …]
H A Dadapter_if_liteos.c338 lenDes += func->fsDescriptors[i]->bLength; in GetCountAndHead()
342 lenDes += func->hsDescriptors[i]->bLength; in GetCountAndHead()
346 lenDes += func->ssDescriptors[i]->bLength; in GetCountAndHead()
369 if (memcpy_s(*whereDec, headDes[i]->bLength, headDes[i], headDes[i]->bLength) != EOK) { in WriteFuncDescriptors()
373 *whereDec += headDes[i]->bLength; in WriteFuncDescriptors()
H A Dadapter_if.c528 if (memcpy_s(*whereDec, headDes[i]->bLength, headDes[i], headDes[i]->bLength) != EOK) { in WriteFuncDescriptors()
532 *whereDec += headDes[i]->bLength; in WriteFuncDescriptors()
549 lenDes += func->fsDescriptors[i]->bLength; in GetCountAndHead()
553 lenDes += func->hsDescriptors[i]->bLength; in GetCountAndHead()
557 lenDes += func->ssDescriptors[i]->bLength; in GetCountAndHead()
/ohos5.0/drivers/external_device_manager/services/native/driver_extension_manager/src/bus_extension/usb/
H A Dusb_dev_subscriber.cpp31 uint8_t bLength; member
140 if (deviceDescriptor.bLength != USB_DEV_DESC_SIZE) { in OnDeviceConnect()
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/usb_ddk_v1_0/cpp_target/usb/ddk/v1_0/
H A Dusb_ddk_types.h.txt64 uint8_t bLength;

12