Searched refs:fnIface (Results 1 – 6 of 6) sorted by relevance
/drivers/peripheral/usb/gadget/function/ecm/ |
D | cdcecm.c | 672 struct UsbFnInterface *fnIface = iface->fn; in EcmParseEachPipe() local 673 for (uint32_t i = 0; i < fnIface->info.numPipes; i++) { in EcmParseEachPipe() 676 int32_t ret = UsbFnGetInterfacePipeInfo(fnIface, i, &pipeInfo); in EcmParseEachPipe() 707 static int32_t EcmParseEcmIface(struct UsbEcmDevice *ecm, struct UsbFnInterface *fnIface) in EcmParseEcmIface() argument 711 UsbFnInterfaceHandle handle = UsbFnOpenInterface(fnIface); in EcmParseEcmIface() 716 iface.fn = fnIface; in EcmParseEcmIface() 728 struct UsbFnInterface *fnIface = NULL; in EcmParseEachIface() local 732 fnIface = (struct UsbFnInterface *)UsbFnGetInterface(fnDev, i); in EcmParseEachIface() 733 if (fnIface == NULL) { in EcmParseEachIface() 738 if (fnIface->info.subclass == USB_DDK_CDC_SUBCLASS_ETHERNET) { in EcmParseEachIface() [all …]
|
/drivers/hdf_core/framework/test/unittest/model/usb/device/src/ |
D | usb_device_lite_cdcacm_test.c | 328 static void ParsePipes(struct AcmDevice *acmDevice, const struct UsbFnInterface *fnIface, UsbFnInte… in ParsePipes() argument 331 for (uint32_t j = 0; j < fnIface->info.numPipes; j++) { in ParsePipes() 332 int32_t ret = UsbFnGetInterfacePipeInfo((struct UsbFnInterface *)fnIface, j, &pipeInfo); in ParsePipes() 339 acmDevice->ctrlIface.fn = (struct UsbFnInterface *)fnIface; in ParsePipes() 345 acmDevice->dataIface.fn = (struct UsbFnInterface *)fnIface; in ParsePipes() 350 acmDevice->dataIface.fn = (struct UsbFnInterface *)fnIface; in ParsePipes() 360 struct UsbFnInterface *fnIface = NULL; in ParseInterfaces() local 364 fnIface = (struct UsbFnInterface *)UsbFnGetInterface(acmDevice->fnDev, i); in ParseInterfaces() 365 if (fnIface == NULL) { in ParseInterfaces() 368 handle = UsbFnOpenInterface(fnIface); in ParseInterfaces() [all …]
|
/drivers/peripheral/usb/test/unittest/device_sdk/ |
D | usb_device_cdcacm_test.cpp | 344 struct UsbFnInterface *fnIface = nullptr; in ParseInterfaces() local 348 fnIface = const_cast<UsbFnInterface *>(UsbFnGetInterface(acmDevice->fnDev, i)); in ParseInterfaces() 349 if (fnIface == nullptr) { in ParseInterfaces() 352 handle = UsbFnOpenInterface(fnIface); in ParseInterfaces() 356 for (j = 0; j < fnIface->info.numPipes; j++) { in ParseInterfaces() 358 ret = UsbFnGetInterfacePipeInfo(fnIface, j, &pipeInfo); in ParseInterfaces() 365 acmDevice->ctrlIface.fn = fnIface; in ParseInterfaces() 372 acmDevice->dataIface.fn = fnIface; in ParseInterfaces() 379 acmDevice->dataIface.fn = fnIface; in ParseInterfaces()
|
/drivers/peripheral/usb/gadget/function/mtp/src/ |
D | usbfn_mtp_impl.cpp | 691 struct UsbFnInterface *fnIface = iface.fn; in UsbMtpDeviceParseEachPipe() local 692 if (fnIface == nullptr || fnIface->info.numPipes == 0) { in UsbMtpDeviceParseEachPipe() 697 …"protocol=%{public}hhu cfgIndex=%{public}hhu", __func__, fnIface->info.index, fnIface->info.numPip… in UsbMtpDeviceParseEachPipe() 698 …fnIface->info.interfaceClass, fnIface->info.subclass, fnIface->info.protocol, fnIface->info.config… in UsbMtpDeviceParseEachPipe() 699 for (uint32_t i = 0; i < fnIface->info.numPipes; ++i) { in UsbMtpDeviceParseEachPipe() 702 int32_t ret = UsbFnGetInterfacePipeInfo(fnIface, i, &pipeInfo); in UsbMtpDeviceParseEachPipe() 734 int32_t UsbfnMtpImpl::UsbMtpDeviceParseMtpIface(struct UsbFnInterface *fnIface) in UsbMtpDeviceParseMtpIface() argument 736 UsbFnInterfaceHandle handle = UsbFnOpenInterface(fnIface); in UsbMtpDeviceParseMtpIface() 742 iface.fn = fnIface; in UsbMtpDeviceParseMtpIface() 771 … struct UsbFnInterface *fnIface = const_cast<struct UsbFnInterface *>(UsbFnGetInterface(fnDev, i)); in UsbMtpDeviceParseEachIface() local [all …]
|
/drivers/peripheral/usb/gadget/function/acm/ |
D | cdcacm.c | 1334 struct UsbFnInterface *fnIface = iface->fn; in AcmParseEachPipe() local 1335 for (uint32_t i = 0; i < fnIface->info.numPipes; i++) { in AcmParseEachPipe() 1338 int32_t ret = UsbFnGetInterfacePipeInfo(fnIface, i, &pipeInfo); in AcmParseEachPipe() 1368 static int32_t AcmParseAcmIface(struct UsbAcmDevice *acm, struct UsbFnInterface *fnIface) in AcmParseAcmIface() argument 1371 UsbFnInterfaceHandle handle = UsbFnOpenInterface(fnIface); in AcmParseAcmIface() 1376 iface.fn = fnIface; in AcmParseAcmIface() 1388 struct UsbFnInterface *fnIface = NULL; in AcmParseEachIface() local 1394 fnIface = (struct UsbFnInterface *)UsbFnGetInterface(fnDev, i); in AcmParseEachIface() 1395 if (fnIface == NULL) { in AcmParseEachIface() 1400 if (fnIface->info.subclass == USB_DDK_CDC_SUBCLASS_ACM) { in AcmParseEachIface() [all …]
|
/drivers/peripheral/usb/gadget/function/mtp/include/ |
D | usbfn_mtp_impl.h | 225 int32_t UsbMtpDeviceParseMtpIface(struct UsbFnInterface *fnIface);
|