Lines Matching refs:AcmDevice
33 static int32_t SerialCtrlMsg(struct AcmDevice *acm, uint8_t request, uint16_t value, void *buf, uint16_t len);
35 static int32_t AcmInit(struct AcmDevice *acm);
36 static void AcmRelease(struct AcmDevice *acm);
37 static struct UsbInterface *GetUsbInterfaceById(const struct AcmDevice *acm, uint8_t interfaceIndex);
39 static int32_t AcmWbAlloc(const struct AcmDevice *acm)
82 static int32_t AcmWbIsAvail(const struct AcmDevice *acm)
93 static UsbInterfaceHandle *InterfaceIdToHandle(const struct AcmDevice *acm, uint8_t id)
110 static int32_t AcmStartWb(struct AcmDevice *acm, struct AcmWb *wb, struct UsbPipeInfo *pipe)
141 static int32_t AcmStartWbSync(struct AcmDevice *acm, struct AcmWb *wb, struct UsbPipeInfo *pipe)
170 static int32_t AcmWriteBufAlloc(const struct AcmDevice *acm)
189 static void AcmWriteBufFree(struct AcmDevice *acm)
428 static int32_t SerialCtrlMsg(struct AcmDevice *acm, uint8_t request, uint16_t value, void *buf, uint16_t len)
527 static int32_t UsbSerialDeviceAlloc(struct AcmDevice *acm)
555 static void UsbSeriaDevicelFree(struct AcmDevice *acm)
570 struct AcmDevice *acm = port->acm;
617 struct AcmDevice *acm = port->acm;
647 struct AcmDevice *acm = port->acm;
676 struct AcmDevice *acm = port->acm;
734 struct AcmDevice *acm = port->acm;
826 struct AcmDevice *acm = port->acm;
887 struct AcmDevice *acm = port->acm;
939 struct AcmDevice *acm = NULL;
984 struct AcmDevice *acm = port->acm;
1024 struct AcmDevice *acm = port->acm;
1088 struct AcmDevice *acm = NULL;
1103 acm = (struct AcmDevice *)client->device->service;
1118 static struct UsbInterface *GetUsbInterfaceById(const struct AcmDevice *acm, uint8_t interfaceIndex)
1123 static void AcmFreePipes(struct AcmDevice *acm)
1147 const struct AcmDevice *acm, uint8_t interfaceIndex, UsbPipeType pipeType, UsbPipeDirection pipeDirection)
1179 static struct UsbPipeInfo *GetPipe(const struct AcmDevice *acm, UsbPipeType pipeType, UsbPipeDirection pipeDirection)
1205 struct AcmDevice *acm = NULL;
1210 acm = (struct AcmDevice *)OsalMemCalloc(sizeof(*acm));
1252 static void AcmProcessNotification(const struct AcmDevice *acm, const unsigned char *buf)
1270 static int32_t AcmCtrlIrqCheckSize(struct UsbRequest * const req, struct AcmDevice *acm, struct UsbCdcNotification *dr)
1319 struct AcmDevice *acm = (struct AcmDevice *)req->compInfo.userData;
1356 struct AcmDevice *acm = (struct AcmDevice *)req->compInfo.userData;
1387 static void AcmFreeWriteRequests(struct AcmDevice *acm)
1407 static void AcmFreeReadRequests(struct AcmDevice *acm)
1429 static void AcmFreeNotifyReqeust(struct AcmDevice *acm)
1449 static int32_t AcmAllocReadRequests(struct AcmDevice *acm)
1482 static int32_t AcmAllocNotifyRequest(struct AcmDevice *acm)
1513 static void AcmReleaseInterfaces(struct AcmDevice *acm)
1527 static int32_t AcmClaimInterfaces(struct AcmDevice *acm)
1530 acm->iface[i] = GetUsbInterfaceById((const struct AcmDevice *)acm, acm->interfaceIndex[i]);
1537 acm->ctrIface = GetUsbInterfaceById((const struct AcmDevice *)acm, USB_CTRL_INTERFACE_ID);
1550 static void AcmCloseInterfaces(struct AcmDevice *acm)
1564 static int32_t AcmOpenInterfaces(struct AcmDevice *acm)
1588 static int32_t AcmGetPipes(struct AcmDevice *acm)
1626 static void AcmFreeRequests(struct AcmDevice *acm)
1638 static int32_t AcmAllocRequests(const struct AcmDevice *acm)
1650 InterfaceIdToHandle((struct AcmDevice *)acm, acm->dataOutPipe->interfaceId), 0, acm->writeSize);
1651 snd->instance = (struct AcmDevice *)acm;
1658 ret = AcmAllocNotifyRequest((struct AcmDevice *)acm);
1664 ret = AcmAllocReadRequests((struct AcmDevice *)acm);
1673 AcmFreeNotifyReqeust((struct AcmDevice *)acm);
1675 AcmFreeWriteRequests((struct AcmDevice *)acm);
1677 AcmWriteBufFree((struct AcmDevice *)acm);
1681 static int32_t AcmInit(struct AcmDevice *acm)
1741 static void AcmRelease(struct AcmDevice *acm)
1761 struct AcmDevice *acm = NULL;
1767 acm = (struct AcmDevice *)device->service;
1791 struct AcmDevice *acm = NULL;
1797 acm = (struct AcmDevice *)device->service;