/drivers/peripheral/usb/net/src/ |
H A D | cdc_ether.c | 40 static void EcmAllocWriteReq(struct EcmDevice * const ecm); 41 static void EcmFreeWriteReq(struct EcmDevice * const ecm); 42 static int32_t EcmAllocIntReq(struct EcmDevice *ecm); 43 static void EcmAllocReadReq(struct EcmDevice *ecm); 44 static void EcmFreeReadReq(struct EcmDevice *ecm); 45 static int32_t EcmInit(struct EcmDevice *ecm); 46 static void EcmRelease(struct EcmDevice *ecm); 47 static struct UsbInterface *EcmGetUsbInterfaceById(struct EcmDevice *ecm, uint8_t interfaceIndex); 49 static int32_t EcmWbAlloc(struct EcmDevice *ecm) in EcmWbAlloc() argument 55 OsalMutexLock(&ecm in EcmWbAlloc() 73 InterfaceIdToHandle(const struct EcmDevice *ecm, uint8_t id) InterfaceIdToHandle() argument 110 EcmWbIsAvail(struct EcmDevice *ecm) EcmWbIsAvail() argument 122 EcmStartWb(struct EcmDevice *ecm, struct EcmWb *wb) EcmStartWb() argument 156 EcmWriteBufAlloc(struct EcmDevice *ecm) EcmWriteBufAlloc() argument 175 EcmWriteBufFree(struct EcmDevice *ecm) EcmWriteBufFree() argument 192 struct EcmDevice *ecm = wb->ecm; EcmWriteBulk() local 226 EcmCtrlMsg(struct EcmDevice *ecm, uint8_t request, uint16_t value, void *buf, uint16_t len) EcmCtrlMsg() argument 274 EcmRead(struct EcmDevice *ecm, struct HdfSBuf *reply) EcmRead() argument 324 EcmOpen(struct EcmDevice *ecm, struct HdfSBuf *data) EcmOpen() argument 375 EcmClostRelease(struct EcmDevice *ecm) EcmClostRelease() argument 410 EcmClose(struct EcmDevice *ecm, struct HdfSBuf *data) EcmClose() argument 434 EcmWrite(struct EcmDevice *ecm, struct HdfSBuf *data) EcmWrite() argument 487 EcmGetMac(struct EcmDevice *ecm, struct HdfSBuf *reply) EcmGetMac() argument 494 EcmAddOrRemoveInterface(int32_t cmd, struct EcmDevice *ecm, struct HdfSBuf *data) EcmAddOrRemoveInterface() argument 523 struct EcmDevice *ecm = NULL; EcmDeviceDispatch() local 567 EcmGetUsbInterfaceById(struct EcmDevice *ecm, uint8_t interfaceIndex) EcmGetUsbInterfaceById() argument 572 EcmFreePipes(struct EcmDevice *ecm) EcmFreePipes() argument 595 EcmEnumePipe( struct EcmDevice *ecm, uint8_t interfaceIndex, UsbPipeType pipeType, UsbPipeDirection pipeDirection) EcmEnumePipe() argument 628 EcmGetPipe(struct EcmDevice *ecm, UsbPipeType pipeType, UsbPipeDirection pipeDirection) EcmGetPipe() argument 649 EcmGetPipes(struct EcmDevice *ecm) EcmGetPipes() argument 688 struct EcmDevice *ecm = NULL; EcmDriverBind() local 729 EcmProcessNotification(struct EcmDevice *ecm, unsigned char *buf) EcmProcessNotification() argument 747 EcmNotificationAndRequest(struct UsbRequest *req, struct EcmDevice *ecm, struct UsbCdcNotification *dr, unsigned int currentSize, uint32_t expectedSize) EcmNotificationAndRequest() argument 762 struct EcmDevice *ecm = (struct EcmDevice *)req->compInfo.userData; EcmCtrlIrq() local 814 struct EcmDevice *ecm = (struct EcmDevice *)req->compInfo.userData; EcmReadBulk() local 847 EcmAllocWriteReq(struct EcmDevice * const ecm) EcmAllocWriteReq() argument 870 EcmFreeWriteReq(struct EcmDevice * const ecm) EcmFreeWriteReq() argument 882 EcmAllocIntReq(struct EcmDevice *ecm) EcmAllocIntReq() argument 912 EcmAllocReadReq(struct EcmDevice *ecm) EcmAllocReadReq() argument 940 EcmFreeReadReq(struct EcmDevice *ecm) EcmFreeReadReq() argument 953 UsbFreeNotifyReqeust(struct EcmDevice *ecm) UsbFreeNotifyReqeust() argument 973 EcmReleaseInterfaces(struct EcmDevice *ecm) EcmReleaseInterfaces() argument 987 EcmClaimInterfaces(struct EcmDevice *ecm) EcmClaimInterfaces() argument 1010 EcmCloseInterfaces(struct EcmDevice *ecm) EcmCloseInterfaces() argument 1025 EcmOpenInterfaces(struct EcmDevice *ecm) EcmOpenInterfaces() argument 1050 EcmGetPipesAndRequest(struct EcmDevice *ecm, int32_t ret) EcmGetPipesAndRequest() argument 1080 EcmInit(struct EcmDevice *ecm) EcmInit() argument 1130 EcmRelease(struct EcmDevice *ecm) EcmRelease() argument 1148 struct EcmDevice *ecm = NULL; EcmDriverInit() local 1172 struct EcmDevice *ecm = NULL; EcmDriverRelease() local [all...] |
/drivers/peripheral/usb/gadget/function/ecm/ |
H A D | cdcecm.c | 55 if (port->ecm == NULL) { in UsbEcmStartTx() 67 len = DataFifoRead(&port->writeFifo, req->buf, port->ecm->dataInPipe.maxPacketSize); in UsbEcmStartTx() 83 /* if ecm is disconnect, abort immediately */ in UsbEcmStartTx() 84 if (port->ecm == NULL) { in UsbEcmStartTx() 94 struct UsbEcmPipe *out = &port->ecm->dataOutPipe; in UsbEcmStartRx() 114 /* if ecm is disconnect, abort immediately */ in UsbEcmStartRx() 115 if (port->ecm == NULL) { in UsbEcmStartRx() 160 if (!disconnect && port->ecm) { in UsbEcmRxPush() 199 HDF_LOGV("%{public}s: ecm device was disconnected", __func__); in UsbEcmWriteComplete() 210 struct UsbEcmDevice *ecm in UsbEcmAllocReadRequests() local 231 struct UsbEcmDevice *ecm = port->ecm; UsbEcmAllocWriteRequests() local 430 UsbFnNotifyRequest(struct UsbFnRequest *req, struct UsbEcmDevice *ecm) UsbFnNotifyRequest() argument 441 EcmDoNotify(struct UsbEcmDevice *ecm) EcmDoNotify() argument 498 struct UsbEcmDevice *ecm = req->context; EcmNotifyComplete() local 508 EcmSetup(const struct UsbEcmDevice *ecm, const struct UsbFnCtrlRequest *ctrl) EcmSetup() argument 548 struct UsbEcmDevice *ecm = NULL; EcmDeviceDispatch() local 600 EcmEnable(struct UsbEcmDevice *ecm) EcmEnable() argument 606 EcmDisable(const struct UsbEcmDevice *ecm) EcmDisable() argument 614 struct UsbEcmDevice *ecm = NULL; UsbEcmEventCallback() local 654 EcmAllocNotifyRequest(struct UsbEcmDevice *ecm) EcmAllocNotifyRequest() argument 669 EcmAllocEp0Request(struct UsbEcmDevice *ecm) EcmAllocEp0Request() argument 680 EcmParseEachPipe(struct UsbEcmDevice *ecm, struct UsbEcmInterface *iface) EcmParseEachPipe() argument 723 EcmParseEcmIface(struct UsbEcmDevice *ecm, struct UsbFnInterface *fnIface) EcmParseEcmIface() argument 742 EcmParseEachIface(struct UsbEcmDevice *ecm, struct UsbFnDevice *fnDev) EcmParseEachIface() argument 769 EcmCreateFuncDevice(struct UsbEcmDevice *ecm, struct DeviceResourceIface *iface) EcmCreateFuncDevice() argument 798 EcmFreeNotifyRequest(struct UsbEcmDevice *ecm) EcmFreeNotifyRequest() argument 811 EcmReleaseFuncDevice(struct UsbEcmDevice *ecm) EcmReleaseFuncDevice() argument 826 UsbEcmAlloc(struct UsbEcmDevice *ecm) UsbEcmAlloc() argument 873 UsbEcmFree(struct UsbEcmDevice *ecm) UsbEcmFree() argument 888 struct UsbEcmDevice *ecm = NULL; EcmDriverBind() local 924 struct UsbEcmDevice *ecm = NULL; EcmInit() local 984 struct UsbEcmDevice *ecm = NULL; EcmRelease() local 1015 struct UsbEcmDevice *ecm = NULL; EcmDriverRelease() local [all...] |
/drivers/peripheral/usb/gadget/function/include/ |
H A D | cdcecm.h | 44 struct UsbEcmDevice *ecm; member
|
/drivers/hdf_core/adapter/khdf/liteos/model/usb/device/ |
H A D | Makefile | 70 $(FRAMEWORKS_USB_DEVICE_DEMO_ROOT)/ecm/cdcecm.c
|
/drivers/peripheral/usb/net/include/ |
H A D | cdc_ether.h | 64 struct EcmDevice *ecm; member
|
/drivers/hdf_core/adapter/khdf/liteos/ |
H A D | hdf_lite.mk | 147 LIB_SUBDIRS += $(LITEOS_SOURCE_ROOT)/drivers/peripheral/usb/gadget/function/ecm
|