Searched refs:ioData (Results 1 – 4 of 4) sorted by relevance
/drivers/peripheral/usb/ddk/device/src/ |
D | usbfn_io_mgr.c | 20 static int32_t ReqToIoData(struct UsbFnRequest *req, struct IoData *ioData, uint32_t aio, uint32_t … in ReqToIoData() argument 22 if (req == NULL || ioData == NULL) { in ReqToIoData() 27 ioData->aio = aio; in ReqToIoData() 29 ioData->read = 0; in ReqToIoData() 31 ioData->read = 1; in ReqToIoData() 33 ioData->buf = reqList->buf; in ReqToIoData() 34 ioData->len = req->length; in ReqToIoData() 35 ioData->timeout = timeout; in ReqToIoData() 160 struct IoData ioData = {0}; in UsbFnIoMgrRequestSubmitAsync() local 167 if (ReqToIoData(req, &ioData, 1, 0)) { in UsbFnIoMgrRequestSubmitAsync() [all …]
|
D | adapter_if_liteos.c | 783 static int32_t UsbFnAdapterPipeIo(int32_t ep, struct IoData * const ioData) in UsbFnAdapterPipeIo() argument 786 if (ep <= 0 || ioData == NULL) { in UsbFnAdapterPipeIo() 789 if (ioData->aio) { in UsbFnAdapterPipeIo() 790 ret = handle_write(ep, (void *)ioData->buf, ioData->len); in UsbFnAdapterPipeIo() 792 ret = handle_ioctl(ep, GENERIC_CMD_ENDPOINT_IO, ioData); in UsbFnAdapterPipeIo() 797 static int32_t UsbFnAdapterCancelIo(int32_t ep, const struct IoData * const ioData) in UsbFnAdapterCancelIo() argument 801 mem.buf = ioData->buf; in UsbFnAdapterCancelIo() 802 mem.size = ioData->len; in UsbFnAdapterCancelIo() 807 static int32_t UsbFnAdapterRequestGetStatus(int32_t ep, const struct IoData *ioData) in UsbFnAdapterRequestGetStatus() argument 809 if (ep <= 0 || ioData == NULL) { in UsbFnAdapterRequestGetStatus() [all …]
|
D | adapter_if.c | 1072 static int32_t UsbFnAdapterPipeIo(int32_t ep, struct IoData *ioData) in UsbFnAdapterPipeIo() argument 1075 if (ep <= 0 || ioData == NULL) { in UsbFnAdapterPipeIo() 1080 if (ioData->read) { in UsbFnAdapterPipeIo() 1081 ret = ioctl(ep, FUNCTIONFS_ENDPOINT_READ, ioData); in UsbFnAdapterPipeIo() 1083 ret = ioctl(ep, FUNCTIONFS_ENDPOINT_WRITE, ioData); in UsbFnAdapterPipeIo() 1093 static int32_t UsbFnAdapterCancelIo(int32_t ep, const struct IoData * const ioData) in UsbFnAdapterCancelIo() argument 1095 if (ep <= 0 || ioData == NULL) { in UsbFnAdapterCancelIo() 1098 return ioctl(ep, FUNCTIONFS_ENDPOINT_RW_CANCEL, ioData); in UsbFnAdapterCancelIo() 1203 static int32_t UsbFnAdapterRequestGetStatus(int32_t ep, const struct IoData *ioData) in UsbFnAdapterRequestGetStatus() argument 1205 if (ep <= 0 || ioData == NULL) { in UsbFnAdapterRequestGetStatus() [all …]
|
/drivers/peripheral/usb/ddk/device/include/ |
D | adapter_if.h | 217 int32_t (*pipeIo)(int32_t ep, struct IoData *ioData); 218 int32_t (*cancelIo)(int32_t ep, const struct IoData *ioData); 219 int32_t (*getReqStatus)(int32_t ep, const struct IoData *ioData);
|