Home
last modified time | relevance | path

Searched refs:bLength (Results 1 - 20 of 20) sorted by relevance

/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()
181 if ((header->bDescriptorType != USB_DDK_DT_ENDPOINT) || (header->bLength > size)) { in ParseEndpoint()
183 header->bDescriptorType, header->bLength); in ParseEndpoint()
185 } else if (header->bLength < USB_DDK_DT_ENDPOINT_SIZE) { in ParseEndpoint()
186 EDM_LOGE(MODULE_USB_DDK, "invalid endpoint length = %{public}hhu", header->bLength); in ParseEndpoint()
193 buffer += header->bLength; in ParseEndpoint()
194 size -= header->bLength; in ParseEndpoint()
218 (ddkIntfDesc.interfaceDescriptor.bLength > siz in RawParseDescriptor()
[all...]
/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
252 uint8_t bLength; global() member
259 uint8_t bLength; global() member
283 uint8_t bLength; global() member
315 uint8_t bLength; global() member
322 uint8_t bLength; global() member
333 uint8_t bLength; global() member
340 uint8_t bLength; global() member
348 uint8_t bLength; global() member
355 uint8_t bLength; global() member
[all...]
/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()
277 if (uacMixerDesc->bLength < sizeof(*uacMixerDesc) || !uacMixerDesc->bNrInPins) { in ValidateMixerUnit()
297 temp = uacMixerDesc->bLength >= length; in ValidateMixerUnit()
309 if (uacProcessDesc->bLength < *length + 1) { in UacProcessGetLength()
339 if (uacProcessDesc->bLength < *length + AUDIO_USB_DESC_LEN_1) { in UacV1ProcessGetLen()
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 < lengt in ValidateProcessingUnit()
[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()
H A Daudio_usb_linux.c144 if (h1 == NULL || h1->bLength < sizeof(*h1)) { in AudioUsbDriverInit()
H A Daudio_usb_dma_ops.c239 if (epDesc->bLength >= USB_DT_ENDPOINT_AUDIO_SIZE && epDesc->bRefresh >= SYNC_REFRESH_1 && in AudioUsbEndpointInit()
320 epDescAudioSize = (epDesc->bLength >= USB_DT_ENDPOINT_AUDIO_SIZE); in AudioUsbGetEndpoint()
322 AUDIO_DEVICE_LOG_ERR("%d:%d : invalid sync pipe. bmAttributes %02x, bLength %d, bSynchAddress %02x\n", in AudioUsbGetEndpoint()
323 audioUsbFormat->iface, audioUsbFormat->altsetting, epDesc->bmAttributes, epDesc->bLength, in AudioUsbGetEndpoint()
333 epDescAudioSize = (epDesc->bLength >= USB_DT_ENDPOINT_AUDIO_SIZE && epDesc->bSynchAddress != 0); in AudioUsbGetEndpoint()
H A Daudio_usb_mixer.c367 lenth = featureUnitDesc->bLength >= HDR_BLENGTH_MAX; in AudioUsbFindAudioControlUnit()
878 if (desc->bLength < temp) { in AudioUsbMixerUnitGetChannels()
1549 featureParam->channels = (hdr->bLength - CHANNEL_HDR_BLENGTH) / featureParam->controlSize - 1; in AudioUsbParseFeatureDescriptorParam()
/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),
77 .bLength = sizeof(g_acmCallMgmtDescriptor),
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
[all...]
/drivers/peripheral/usb/hdi_service/include/
H A Dusbd_type.h141 uint8_t bLength; member
146 uint8_t bLength; member
163 uint8_t bLength; member
174 uint8_t bLength; member
186 uint8_t bLength; member
/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
/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),
69 .bLength = sizeof(g_acmCallMgmtDescriptor),
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
[all...]
/drivers/peripheral/usb/ddk/host/src/
H A Dusb_raw_api_library.c140 if (desc->bLength < USB_DDK_DT_INTERFACE_SIZE) { in GetInterfaceNumberDes()
141 HDF_LOGW("%{public}s: invalid interface descriptor length %{public}d, skipping", __func__, desc->bLength); in GetInterfaceNumberDes()
169 for ((buffer2 = 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()
323 if ((header->bDescriptorType != USB_DDK_DT_ENDPOINT) || (header->bLength > siz in ParseEndpoint()
[all...]
H A Dlinux_adapter.c275 if ((configDesc->bDescriptorType != USB_DDK_DT_CONFIG) || (configDesc->bLength < USB_DDK_DT_CONFIG_SIZE)) { in OsParseConfigDescriptors()
277 __func__, __LINE__, configDesc->bDescriptorType, configDesc->bLength); in OsParseConfigDescriptors()
H A Dliteos_adapter.c350 if ((configDesc->bDescriptorType != USB_DDK_DT_CONFIG) || (configDesc->bLength < USB_DDK_DT_CONFIG_SIZE)) { in OsParseConfigDescriptors()
352 configDesc->bDescriptorType, configDesc->bLength); in OsParseConfigDescriptors()
/drivers/external_device_manager/services/native/driver_extension_manager/src/bus_extension/usb/
H A Dusb_dev_subscriber.cpp31 uint8_t bLength; member
139 if (deviceDescriptor.bLength != USB_DEV_DESC_SIZE) { in OnDeviceConnect()
/drivers/peripheral/usb/ddk/device/src/
H A Dusbfn_cfg_mgr.c38 if (drsOps->GetUint8(devDescNode, DESC_LENGTH, &devDesc->bLength, 0) != HDF_SUCCESS) { in UsbFnCfgMgrParseDevDesc()
42 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, in UsbFnCfgMgrParseQualifierDesc()
[all...]
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()
H A Dadapter_if_liteos.c342 lenDes += func->fsDescriptors[i]->bLength; in GetCountAndHead()
346 lenDes += func->hsDescriptors[i]->bLength; in GetCountAndHead()
350 lenDes += func->ssDescriptors[i]->bLength; in GetCountAndHead()
373 if (memcpy_s(*whereDec, headDes[i]->bLength, headDes[i], headDes[i]->bLength) != EOK) { in WriteFuncDescriptors()
377 *whereDec += headDes[i]->bLength; in WriteFuncDescriptors()
/drivers/peripheral/usb/test/unittest/mock/src/
H A Dmock_linux_adapter.cpp170 if ((configDesc->bDescriptorType != USB_DDK_DT_CONFIG) || (configDesc->bLength < USB_DDK_DT_CONFIG_SIZE)) { in OsParseConfigDescriptors()
172 __func__, configDesc->bDescriptorType, configDesc->bLength); in OsParseConfigDescriptors()
/drivers/peripheral/usb/net/src/
H A Dusb_net_host.c845 HARCH_INFO_PRINT("bLength = %{public}d", tmpConfig->configDescriptor.bLength); in UsbnetHostPrintConfigDescriptor()
858 HARCH_INFO_PRINT("bLength = %{public}d", in UsbnetHostPrintConfigDescriptor()
859 tmpConfig->interface[i]->altsetting[j].endPoint[k].endpointDescriptor.bLength); in UsbnetHostPrintConfigDescriptor()

Completed in 26 milliseconds