Home
last modified time | relevance | path

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

12

/drivers/peripheral/usb/test/unittest/host_sdk/
Dusb_host_sdk_if_test.cpp350 g_acm->interfaceIndex = 1U;
352 …ataIface = UsbClaimInterface(g_acm->session, g_acm->busNum, g_acm->devAddr, g_acm->interfaceIndex);
380 g_acm->interfaceIndex = 0U;
382 …intIface = UsbClaimInterface(g_acm->session, g_acm->busNum, g_acm->devAddr, g_acm->interfaceIndex);
410 g_acm->interfaceIndex = 255U;
412 …ctrIface = UsbClaimInterface(g_acm->session, g_acm->busNum, g_acm->devAddr, g_acm->interfaceIndex);
454 g_acm->interfaceIndex = 2U;
456 …ataIface = UsbClaimInterface(g_acm->session, g_acm->busNum, g_acm->devAddr, g_acm->interfaceIndex);
470 g_acm->interfaceIndex = 3U;
472 …ataIface = UsbClaimInterface(g_acm->session, g_acm->busNum, g_acm->devAddr, g_acm->interfaceIndex);
[all …]
Dusb_host_sdk_if_test_io.cpp141 p.interfaceId = g_acm->dataIface->info.interfaceIndex; in AcmGetPipe()
148 p.interfaceId = g_acm->dataIface->info.interfaceIndex; in AcmGetPipe()
160 p.interfaceId = g_acm->intIface->info.interfaceIndex; in AcmGetPipe()
167 g_acm->interfaceIndex = USB_CTRL_INTERFACE_ID; in AcmGetPipe()
174 p.interfaceId = g_acm->interfaceIndex; in AcmGetPipe()
332 g_acm->interfaceIndex = 3U; in AcmInit()
333 …taIface = UsbClaimInterface(g_acm->session, g_acm->busNum, g_acm->devAddr, g_acm->interfaceIndex); in AcmInit()
336 g_acm->interfaceIndex = 2U; in AcmInit()
337 …ntIface = UsbClaimInterface(g_acm->session, g_acm->busNum, g_acm->devAddr, g_acm->interfaceIndex); in AcmInit()
340 g_acm->interfaceIndex = 255U; in AcmInit()
[all …]
Dusb_raw_sdk_if_test_io.cpp255 acm->interfaceIndex[0] = 2; in UsbParseConfigDescriptor()
256 acm->interfaceIndex[1] = 3; in UsbParseConfigDescriptor()
259 uint8_t interfaceIndex = acm->interfaceIndex[i]; in UsbParseConfigDescriptor() local
260 const struct UsbRawInterface *interface = config->interface[interfaceIndex]; in UsbParseConfigDescriptor()
264 if (UsbRawClaimInterface(acm->devHandle, interfaceIndex) != HDF_SUCCESS) { in UsbParseConfigDescriptor()
271 acm->ctrlIface = interfaceIndex; in UsbParseConfigDescriptor()
283 acm->dataIface = interfaceIndex; in UsbParseConfigDescriptor()
Dusb_host_sdk_if_test.h111 uint8_t interfaceIndex; member
/drivers/peripheral/usb/ddk/host/src/
Dusb_interface_pool.c220 …const struct UsbSdkInterface *interfaceObj, uint8_t interfaceIndex, bool refCountFlag, bool *claim… in IfInterfaceRefCount() argument
222 if (refCountFlag && interfaceIndex != USB_CTRL_INTERFACE_ID) { in IfInterfaceRefCount()
297 if ((interfacePos->interface.info.interfaceIndex == queryPara.interfaceIndex) && in IfFindInterfaceObj()
303 if ((interfacePos->interface.info.interfaceIndex == queryPara.interfaceIndex) && in IfFindInterfaceObj()
313 IfInterfaceRefCount(interfacePos, queryPara.interfaceIndex, refCountFlag, claimFlag); in IfFindInterfaceObj()
411 interfaceQueryPara.interfaceIndex = interfaceId; in IfGetRequestPipeType()
804 (*pipeObj)->info.interfaceId = interfaceObj->interface.info.interfaceIndex; in UsbIfCreatPipeObj()
972 …const struct UsbSession *session, uint8_t busNum, uint8_t usbAddr, uint8_t interfaceIndex, bool fo… in ClaimInterface() argument
976 …UsbInterfaceQueryPara interfaceQueryPara = {USB_INTERFACE_INTERFACE_INDEX_TYPE, interfaceIndex, 0}; in ClaimInterface()
1004 if (interfaceIndex != USB_CTRL_INTERFACE_ID && claimFlag) { in ClaimInterface()
[all …]
/drivers/hdf_core/framework/test/unittest/model/usb/host/src/
Dusb_test.c248 g_acm->interfaceIndex = 1U; in CheckHostSdkIfClaimInterface001()
251 …nterface *)UsbClaimInterface(g_acm->session, g_acm->busNum, g_acm->devAddr, g_acm->interfaceIndex); in CheckHostSdkIfClaimInterface001()
271 g_acm->interfaceIndex = 0U; in CheckHostSdkIfClaimInterface002()
274 …nterface *)UsbClaimInterface(g_acm->session, g_acm->busNum, g_acm->devAddr, g_acm->interfaceIndex); in CheckHostSdkIfClaimInterface002()
294 g_acm->interfaceIndex = USB_CTRL_INTERFACE_ID; in CheckHostSdkIfClaimInterface003()
297 …nterface *)UsbClaimInterface(g_acm->session, g_acm->busNum, g_acm->devAddr, g_acm->interfaceIndex); in CheckHostSdkIfClaimInterface003()
317 g_acm->interfaceIndex = 2U; in CheckHostSdkIfClaimInterface004()
320 …nterface *)UsbClaimInterface(g_acm->session, g_acm->busNum, g_acm->devAddr, g_acm->interfaceIndex); in CheckHostSdkIfClaimInterface004()
330 g_acm->interfaceIndex = 3U; in CheckHostSdkIfClaimInterface005()
333 …nterface *)UsbClaimInterface(g_acm->session, g_acm->busNum, g_acm->devAddr, g_acm->interfaceIndex); in CheckHostSdkIfClaimInterface005()
[all …]
/drivers/peripheral/usb/interfaces/ddk/host/
Dusb_ddk_interface.h158 uint8_t interfaceIndex; member
329 uint8_t usbAddr, uint8_t interfaceIndex);
346 uint8_t usbAddr, uint8_t interfaceIndex);
368 uint8_t interfaceIndex, UsbInterfaceStatus status);
/drivers/peripheral/usb/sample/host/src/
Dusbhost_sdkapi_speed.c91 if (acm->iface[i]->info.interfaceIndex == id) { in InterfaceIdToHandle()
204 static struct UsbInterface *GetUsbInterfaceById(const struct AcmDevice *acm, uint8_t interfaceIndex) in GetUsbInterfaceById() argument
206 return UsbClaimInterface(acm->session, acm->busNum, acm->devAddr, interfaceIndex); in GetUsbInterfaceById()
210 …const struct AcmDevice *acm, uint8_t interfaceIndex, UsbPipeType pipeType, UsbPipeDirection pipeDi… in EnumePipe() argument
218 info = &acm->iface[interfaceIndex]->info; in EnumePipe()
219 interfaceHandle = InterfaceIdToHandle(acm, info->interfaceIndex); in EnumePipe()
234 p.interfaceId = info->interfaceIndex; in EnumePipe()
335 acm->interfaceIndex[0] = ifaceNum; in CheckParam()
350 acm->iface[i] = GetUsbInterfaceById((const struct AcmDevice *)acm, acm->interfaceIndex[i]); in InitUsbDdk()
Dusbhost_sdkraw_speed.c256 …ruct AcmDevice * const acm, const struct UsbRawInterface * const interface, uint8_t interfaceIndex) in UsbParseConfigDescriptorProcess() argument
263 acm->ctrlIface = interfaceIndex; in UsbParseConfigDescriptorProcess()
275 acm->dataIface = interfaceIndex; in UsbParseConfigDescriptorProcess()
297 uint8_t interfaceIndex = acm->interfaceIndex[i]; in UsbParseConfigDescriptor() local
298 const struct UsbRawInterface *interface = config->interface[interfaceIndex]; in UsbParseConfigDescriptor()
300 int32_t ret = UsbRawClaimInterface(acm->devHandle, interfaceIndex); in UsbParseConfigDescriptor()
306 UsbParseConfigDescriptorProcess(acm, interface, interfaceIndex); in UsbParseConfigDescriptor()
590 g_acm->interfaceIndex[0] = ifaceNum; in CheckParam()
/drivers/peripheral/usb/sample/host/liteos_test/src/
Dusbhost_sdkraw_speed.c261 struct AcmDevice *acm, const struct UsbRawInterface *interface, uint8_t interfaceIndex) in UsbSpeedParaseInterfaceClass() argument
269 acm->ctrlIface = interfaceIndex; in UsbSpeedParaseInterfaceClass()
281 acm->dataIface = interfaceIndex; in UsbSpeedParaseInterfaceClass()
307 uint8_t interfaceIndex = acm->interfaceIndex[i]; in UsbParseConfigDescriptor() local
308 const struct UsbRawInterface *interface = config->interface[interfaceIndex]; in UsbParseConfigDescriptor()
311 ret = UsbRawClaimInterface(acm->devHandle, interfaceIndex); in UsbParseConfigDescriptor()
318 UsbSpeedParaseInterfaceClass(acm, interface, interfaceIndex); in UsbParseConfigDescriptor()
590 g_acm->interfaceIndex[0] = *ifaceNum; in UsbSerialSpeedInit()
662 uint8_t interfaceIndex = g_acm->interfaceIndex[i]; in UsbSpeedDdkExit() local
663 UsbRawReleaseInterface(g_acm->devHandle, interfaceIndex); in UsbSpeedDdkExit()
Dusbhost_sdkapi_speed.c97 if (acm->iface[i]->info.interfaceIndex == id) { in InterfaceIdToHandle()
215 static struct UsbInterface *GetUsbInterfaceById(const struct AcmDevice *acm, uint8_t interfaceIndex) in GetUsbInterfaceById() argument
217 return UsbClaimInterface(NULL, acm->busNum, acm->devAddr, interfaceIndex); in GetUsbInterfaceById()
221 …const struct AcmDevice *acm, uint8_t interfaceIndex, UsbPipeType pipeType, UsbPipeDirection pipeDi… in EnumePipe() argument
229 info = &acm->iface[interfaceIndex]->info; in EnumePipe()
230 interfaceHandle = InterfaceIdToHandle(acm, info->interfaceIndex); in EnumePipe()
245 p.interfaceId = info->interfaceIndex; in EnumePipe()
367 g_acm->interfaceIndex[0] = *ifaceNum; in UsbSerialSpeedInit()
383 … g_acm->iface[i] = GetUsbInterfaceById((const struct AcmDevice *)g_acm, g_acm->interfaceIndex[i]); in UsbSpeedDdkInit()
/drivers/peripheral/usb/ddk/host/include/
Dusb_interface_pool.h51 uint8_t interfaceIndex; member
94 uint8_t interfaceIndex; member
/drivers/peripheral/usb/ddk/device/include/
Dusbfn_dev_mgr.h46 …sbFnInterfaceMgr *UsbFnMgrDeviceGetInterface(struct UsbFnDevice *fnDevice, uint8_t interfaceIndex);
/drivers/peripheral/usb/net/src/
Dcdc_ether.c39 static struct UsbInterface *EcmGetUsbInterfaceById(struct EcmDevice *ecm, uint8_t interfaceIndex);
73 if (ecm->iface[i]->info.interfaceIndex == id) { in InterfaceIdToHandle()
558 static struct UsbInterface *EcmGetUsbInterfaceById(struct EcmDevice *ecm, uint8_t interfaceIndex) in EcmGetUsbInterfaceById() argument
560 return UsbClaimInterface(ecm->session, ecm->busNum, ecm->devAddr, interfaceIndex); in EcmGetUsbInterfaceById()
587 …struct EcmDevice *ecm, uint8_t interfaceIndex, UsbPipeType pipeType, UsbPipeDirection pipeDirectio… in EcmEnumePipe() argument
595 info = &ecm->iface[interfaceIndex]->info; in EcmEnumePipe()
596 interfaceHandle = ecm->devHandle[interfaceIndex]; in EcmEnumePipe()
611 p.interfaceId = info->interfaceIndex; in EcmEnumePipe()
652 …ecm->ctrPipe = EcmEnumePipe(ecm, ecm->ctrIface->info.interfaceIndex, USB_PIPE_TYPE_CONTROL, USB_PI… in EcmGetPipes()
697 …err = memcpy_s((void *)(ecm->interfaceIndex), USB_MAX_INTERFACES, (const void *)info->interfaceNum… in EcmDriverBind()
[all …]
/drivers/peripheral/usb/interfaces/ddk/device/
Dusbfn_device.h196 const struct UsbFnInterface *UsbFnGetInterface(struct UsbFnDevice *fnDevice, uint8_t interfaceIndex
/drivers/external_device_manager/interfaces/ddk/usb/
Dusb_ddk_api.h117 int32_t OH_Usb_ClaimInterface(uint64_t deviceId, uint8_t interfaceIndex, uint64_t *interfaceHandle);
/drivers/peripheral/usb/ddk_service/include/
Dusb_ddk_service.h39 …int32_t ClaimInterface(uint64_t deviceId, uint8_t interfaceIndex, uint64_t &interfaceHandle) overr…
/drivers/peripheral/usb/sample/host/liteos_test/include/
Dusbhost_sdkraw_speed.h121 uint8_t interfaceIndex[USB_MAX_INTERFACES]; member
Dusbhost_sdkapi_speed.h123 uint8_t interfaceIndex[USB_MAX_INTERFACES]; member
Dusbhost_nosdk_speed.h120 uint8_t interfaceIndex[USB_MAX_INTERFACES]; member
/drivers/peripheral/usb/sample/host/include/
Dusbhost_sdkraw_speed.h126 uint8_t interfaceIndex[USB_MAX_INTERFACES]; member
Dusbhost_sdkapi_speed.h126 uint8_t interfaceIndex[USB_MAX_INTERFACES]; member
/drivers/peripheral/usb/net/include/
Dcdc_ether.h114 uint8_t interfaceIndex[USB_MAX_INTERFACES]; member
/drivers/peripheral/usb/serial/include/
Dusb_serial_rawapi.h135 uint8_t interfaceIndex[USB_MAX_INTERFACES]; member
/drivers/external_device_manager/frameworks/ddk/usb/
Dusb_ddk_api.cpp100 int32_t OH_Usb_ClaimInterface(uint64_t deviceId, uint8_t interfaceIndex, uint64_t *interfaceHandle) in OH_Usb_ClaimInterface() argument
111 return g_ddk->ClaimInterface(deviceId, interfaceIndex, *interfaceHandle); in OH_Usb_ClaimInterface()

12