Home
last modified time | relevance | path

Searched refs:fnDev (Results 1 – 16 of 16) sorted by relevance

/drivers/peripheral/usb/test/unittest/device_sdk/
Dusb_device_sdk_if_test.cpp58 EXPECT_NE(nullptr, g_acmDevice->fnDev);
64 struct UsbFnDevice *fnDev = nullptr; variable
68 fnDev = (struct UsbFnDevice *)UsbFnCreateDevice("100e0000.hidwc3_0", &descData);
69 EXPECT_EQ(nullptr, fnDev);
75 struct UsbFnDevice *fnDev = nullptr; variable
79 fnDev = (struct UsbFnDevice *)UsbFnCreateDevice("100e0000.hidwc3_1", &descData);
80 EXPECT_EQ(nullptr, fnDev);
86 struct UsbFnDevice *fnDev = nullptr; variable
90 fnDev = (struct UsbFnDevice *)UsbFnCreateDevice("100e0000.hidwc3_0", &descData);
91 EXPECT_EQ(nullptr, fnDev);
[all …]
Dusb_device_cdcacm_test.h94 struct UsbFnDevice *fnDev; member
Dusb_device_cdcacm_test.cpp347 for (i = 0; i < acmDevice->fnDev->numInterfaces; i++) { in ParseInterfaces()
348 fnIface = const_cast<UsbFnInterface *>(UsbFnGetInterface(acmDevice->fnDev, i)); in ParseInterfaces()
710 …acmDevice->fnDev = const_cast<struct UsbFnDevice *>(UsbFnCreateDevice("100e0000.hidwc3_0", &descDa… in SetUpAcmDevice()
711 if (acmDevice->fnDev == nullptr) { in SetUpAcmDevice()
Dusb_device_sdk_io_test.cpp33 EXPECT_NE(nullptr, g_acmDevice->fnDev);
521 EXPECT_NE(nullptr, g_acmDevice->fnDev);
522 ret = UsbFnRemoveDevice(g_acmDevice->fnDev);
/drivers/hdf_core/framework/test/unittest/model/usb/device/src/
Dusb_device_lite_sdk_if_test.c26 if (g_acmDevice == NULL || g_acmDevice->fnDev == NULL) { in UsbFnDviceTestCreate()
35 struct UsbFnDevice *fnDev = NULL; in UsbFnDviceTestCreate002() local
40 fnDev = (struct UsbFnDevice *)UsbFnCreateDevice("100e0000.hidwc3_0", &descData); in UsbFnDviceTestCreate002()
41 if (fnDev != NULL) { in UsbFnDviceTestCreate002()
50 struct UsbFnDevice *fnDev = NULL; in UsbFnDviceTestCreate003() local
55 fnDev = (struct UsbFnDevice *)UsbFnCreateDevice("100e0000.hidwc3_0", &descData); in UsbFnDviceTestCreate003()
56 if (fnDev != NULL) { in UsbFnDviceTestCreate003()
65 struct UsbFnDevice *fnDev = NULL; in UsbFnDviceTestCreate004() local
70 fnDev = (struct UsbFnDevice *)UsbFnCreateDevice("100e0000.hidwc3_0", &descData); in UsbFnDviceTestCreate004()
71 if (fnDev != NULL) { in UsbFnDviceTestCreate004()
[all …]
Dusb_device_lite_cdcacm_test.c363 for (i = 0; i < acmDevice->fnDev->numInterfaces; i++) { in ParseInterfaces()
364 fnIface = (struct UsbFnInterface *)UsbFnGetInterface(acmDevice->fnDev, i); in ParseInterfaces()
703 acmDevice->fnDev = (struct UsbFnDevice *)UsbFnCreateDevice("100e0000.hidwc3_0", &descData); in SetUpAcmDevice()
704 if (acmDevice->fnDev == NULL) { in SetUpAcmDevice()
/drivers/peripheral/usb/gadget/function/usbfn/
Ddev_usbfn.c65 struct UsbFnDevice *fnDev = NULL; in UsbFnRegistUsbfnDevice() local
81 fnDev = (struct UsbFnDevice *)UsbFnCreateDevice(devMgr->udcName, &devMgr->descData); in UsbFnRegistUsbfnDevice()
82 if (fnDev == NULL) { in UsbFnRegistUsbfnDevice()
89 g_fnDev = fnDev; in UsbFnRegistUsbfnDevice()
/drivers/peripheral/usb/ddk/device/src/
Dusbfn_dev_mgr.c42 if (g_intfCnt >= devMgr->fnDev.numInterfaces) { in GetInterfaceInfo()
54 devMgr->interfaceMgr[g_intfCnt].interface.object = &devMgr->fnDev.object; in GetInterfaceInfo()
79 devMgr->funcMgr[fnCnt].object = &devMgr->fnDev.object; in CreateInterface()
134 fnDevMgr->fnDev.object.objectId = devCnt; in CreatDev()
178 … fnDevMgr->fnDev.numInterfaces += GetInterfaceNum(des->configs[i]->functions[j]->fsDescriptors); in AllocInterfaceAndFuncMgr()
181 if (fnDevMgr->fnDev.numInterfaces == 0) { in AllocInterfaceAndFuncMgr()
186 …fnDevMgr->interfaceMgr = UsbFnMemCalloc(fnDevMgr->fnDev.numInterfaces * sizeof(struct UsbFnInterfa… in AllocInterfaceAndFuncMgr()
227 DListInsertTail(&fnDevMgr->fnDev.object.entry, &g_devEntry); in UsbFnMgrDeviceCreate()
346 if (interfaceIndex >= fnDevMgr->fnDev.numInterfaces) { in UsbFnMgrDeviceGetInterface()
370 for (i = 0; i < devMgr->fnDev.numInterfaces; i++) { in CollectEventHandle()
[all …]
/drivers/peripheral/usb/gadget/function/ecm/
Dcdcecm.c726 static int32_t EcmParseEachIface(struct UsbEcmDevice *ecm, struct UsbFnDevice *fnDev) in EcmParseEachIface() argument
731 for (i = 0; i < fnDev->numInterfaces; i++) { in EcmParseEachIface()
732 fnIface = (struct UsbFnInterface *)UsbFnGetInterface(fnDev, i); in EcmParseEachIface()
740 fnIface = (struct UsbFnInterface *)UsbFnGetInterface(fnDev, i + 1); in EcmParseEachIface()
755 struct UsbFnDevice *fnDev = NULL; in EcmCreateFuncDevice() local
763 fnDev = (struct UsbFnDevice *)UsbFnGetDevice(ecm->udcName); in EcmCreateFuncDevice()
764 if (fnDev == NULL) { in EcmCreateFuncDevice()
769 ret = EcmParseEachIface(ecm, fnDev); in EcmCreateFuncDevice()
775 ecm->fnDev = fnDev; in EcmCreateFuncDevice()
798 if (ecm->fnDev == NULL) { in EcmReleaseFuncDevice()
/drivers/peripheral/usb/ddk/device/include/
Dusbfn_dev_mgr.h28 struct UsbFnDevice fnDev; member
/drivers/peripheral/usb/gadget/function/include/
Dcdcecm.h77 struct UsbFnDevice *fnDev; member
Dcdcacm.h93 struct UsbFnDevice *fnDev; member
/drivers/peripheral/usb/gadget/function/acm/
Dcdcacm.c1386 static int32_t AcmParseEachIface(struct UsbAcmDevice *acm, struct UsbFnDevice *fnDev) in AcmParseEachIface() argument
1390 if (fnDev == NULL) { in AcmParseEachIface()
1393 for (i = 0; i < fnDev->numInterfaces; i++) { in AcmParseEachIface()
1394 fnIface = (struct UsbFnInterface *)UsbFnGetInterface(fnDev, i); in AcmParseEachIface()
1402 fnIface = (struct UsbFnInterface *)UsbFnGetInterface(fnDev, i + 1); in AcmParseEachIface()
1417 struct UsbFnDevice *fnDev = NULL; in AcmCreateFuncDevice() local
1424 fnDev = (struct UsbFnDevice *)UsbFnGetDevice(acm->udcName); in AcmCreateFuncDevice()
1425 if (fnDev == NULL) { in AcmCreateFuncDevice()
1430 ret = AcmParseEachIface(acm, fnDev); in AcmCreateFuncDevice()
1436 acm->fnDev = fnDev; in AcmCreateFuncDevice()
[all …]
/drivers/peripheral/usb/gadget/function/mtp/src/
Dusbfn_mtp_impl.cpp768 int32_t UsbfnMtpImpl::UsbMtpDeviceParseEachIface(struct UsbFnDevice *fnDev) in UsbMtpDeviceParseEachIface() argument
770 for (int32_t i = 0; i < fnDev->numInterfaces; ++i) { in UsbMtpDeviceParseEachIface()
771 … struct UsbFnInterface *fnIface = const_cast<struct UsbFnInterface *>(UsbFnGetInterface(fnDev, i)); in UsbMtpDeviceParseEachIface()
773 …HDF_LOGE("%{public}s: get interface failed: %{public}d/%{public}d", __func__, i, fnDev->numInterfa… in UsbMtpDeviceParseEachIface()
778 …I("%{public}s: found mtp/ptp interface: %{public}d/%{public}d", __func__, i, fnDev->numInterfaces); in UsbMtpDeviceParseEachIface()
800 struct UsbFnDevice *fnDev = nullptr; in UsbMtpDeviceCreateFuncDevice() local
802 fnDev = const_cast<struct UsbFnDevice *>(UsbFnGetDevice(udcName)); in UsbMtpDeviceCreateFuncDevice()
805 fnDev = const_cast<struct UsbFnDevice *>(UsbFnGetDevice(UDC_NAME)); in UsbMtpDeviceCreateFuncDevice()
807 if (fnDev == NULL) { in UsbMtpDeviceCreateFuncDevice()
811 HDF_LOGI("%{public}s: getDevice interface count=%{public}d", __func__, fnDev->numInterfaces); in UsbMtpDeviceCreateFuncDevice()
[all …]
/drivers/peripheral/usb/gadget/function/mtp/include/
Dusbfn_mtp_impl.h119 struct UsbFnDevice *fnDev; member
227 int32_t UsbMtpDeviceParseEachIface(struct UsbFnDevice *fnDev);
/drivers/hdf_core/framework/test/unittest/model/usb/device/include/
Dusb_device_lite_cdcacm_test.h86 struct UsbFnDevice *fnDev; member