Lines Matching refs:EcmDevice
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()
73 static UsbInterfaceHandle *InterfaceIdToHandle(const struct EcmDevice *ecm, uint8_t id) in InterfaceIdToHandle()
110 static int32_t EcmWbIsAvail(struct EcmDevice *ecm) in EcmWbIsAvail()
122 static int32_t EcmStartWb(struct EcmDevice *ecm, struct EcmWb *wb) in EcmStartWb()
156 static int32_t EcmWriteBufAlloc(struct EcmDevice *ecm) in EcmWriteBufAlloc()
175 static int32_t EcmWriteBufFree(struct EcmDevice *ecm) in EcmWriteBufFree()
192 struct EcmDevice *ecm = wb->ecm; in EcmWriteBulk()
226 static int32_t EcmCtrlMsg(struct EcmDevice *ecm, uint8_t request, uint16_t value, void *buf, uint16… in EcmCtrlMsg()
274 static int32_t EcmRead(struct EcmDevice *ecm, struct HdfSBuf *reply) in EcmRead()
324 static int32_t EcmOpen(struct EcmDevice *ecm, struct HdfSBuf *data) in EcmOpen()
375 static void EcmClostRelease(struct EcmDevice *ecm) in EcmClostRelease()
410 static int32_t EcmClose(struct EcmDevice *ecm, struct HdfSBuf *data) in EcmClose()
434 static int32_t EcmWrite(struct EcmDevice *ecm, struct HdfSBuf *data) in EcmWrite()
487 static int32_t EcmGetMac(struct EcmDevice *ecm, struct HdfSBuf *reply) in EcmGetMac()
494 static int32_t EcmAddOrRemoveInterface(int32_t cmd, struct EcmDevice *ecm, struct HdfSBuf *data) in EcmAddOrRemoveInterface()
523 struct EcmDevice *ecm = NULL; in EcmDeviceDispatch()
544 ecm = (struct EcmDevice *)client->device->service; in EcmDeviceDispatch()
567 static struct UsbInterface *EcmGetUsbInterfaceById(struct EcmDevice *ecm, uint8_t interfaceIndex) in EcmGetUsbInterfaceById()
572 static void EcmFreePipes(struct EcmDevice *ecm) in EcmFreePipes()
596 …struct EcmDevice *ecm, uint8_t interfaceIndex, UsbPipeType pipeType, UsbPipeDirection pipeDirectio… in EcmEnumePipe()
628 static struct UsbPipeInfo *EcmGetPipe(struct EcmDevice *ecm, UsbPipeType pipeType, UsbPipeDirection… in EcmGetPipe()
649 static int32_t EcmGetPipes(struct EcmDevice *ecm) in EcmGetPipes()
688 struct EcmDevice *ecm = NULL; in EcmDriverBind()
693 ecm = (struct EcmDevice *)OsalMemCalloc(sizeof(*ecm)); in EcmDriverBind()
729 static void EcmProcessNotification(struct EcmDevice *ecm, unsigned char *buf) in EcmProcessNotification()
747 static void EcmNotificationAndRequest(struct UsbRequest *req, struct EcmDevice *ecm, struct UsbCdcN… in EcmNotificationAndRequest()
762 struct EcmDevice *ecm = (struct EcmDevice *)req->compInfo.userData; in EcmCtrlIrq()
814 struct EcmDevice *ecm = (struct EcmDevice *)req->compInfo.userData; in EcmReadBulk()
847 static void EcmAllocWriteReq(struct EcmDevice * const ecm) in EcmAllocWriteReq()
870 static void EcmFreeWriteReq(struct EcmDevice * const ecm) in EcmFreeWriteReq()
882 static int32_t EcmAllocIntReq(struct EcmDevice *ecm) in EcmAllocIntReq()
912 static void EcmAllocReadReq(struct EcmDevice *ecm) in EcmAllocReadReq()
940 static void EcmFreeReadReq(struct EcmDevice *ecm) in EcmFreeReadReq()
953 static void UsbFreeNotifyReqeust(struct EcmDevice *ecm) in UsbFreeNotifyReqeust()
973 static void EcmReleaseInterfaces(struct EcmDevice *ecm) in EcmReleaseInterfaces()
987 static int32_t EcmClaimInterfaces(struct EcmDevice *ecm) in EcmClaimInterfaces()
1010 static void EcmCloseInterfaces(struct EcmDevice *ecm) in EcmCloseInterfaces()
1025 static int32_t EcmOpenInterfaces(struct EcmDevice *ecm) in EcmOpenInterfaces()
1050 static int32_t EcmGetPipesAndRequest(struct EcmDevice *ecm, int32_t ret) in EcmGetPipesAndRequest()
1080 static int32_t EcmInit(struct EcmDevice *ecm) in EcmInit()
1130 static void EcmRelease(struct EcmDevice *ecm) in EcmRelease()
1148 struct EcmDevice *ecm = NULL; in EcmDriverInit()
1154 ecm = (struct EcmDevice *)device->service; in EcmDriverInit()
1172 struct EcmDevice *ecm = NULL; in EcmDriverRelease()
1177 ecm = (struct EcmDevice *)device->service; in EcmDriverRelease()