Lines Matching refs:ioData
21 static int32_t ReqToIoData(struct UsbFnRequest *req, struct IoData *ioData, uint32_t aio, uint32_t timeout)
23 if (req == NULL || ioData == NULL) {
28 ioData->aio = aio;
30 ioData->read = 0;
32 ioData->read = 1;
34 ioData->buf = reqList->buf;
35 ioData->len = req->length;
36 ioData->timeout = timeout;
161 struct IoData ioData = {0};
168 if (ReqToIoData(req, &ioData, 1, 0)) {
173 ret = fnOps->pipeIo(reqList->fd, &ioData);
175 HDF_LOGE("%{public}s pipeIo failed fd:%{public}d read:%{public}u", __func__, reqList->fd, ioData.read);
184 struct IoData ioData = {0};
191 if (ReqToIoData(req, &ioData, 1, 0)) {
195 ret = fnOps->cancelIo(reqList->fd, &ioData);
202 struct IoData ioData = {0};
209 if (ReqToIoData(req, &ioData, 1, 0)) {
213 *status = -(fnOps->getReqStatus(reqList->fd, &ioData));
221 struct IoData ioData = {0};
229 if (ReqToIoData(req, &ioData, 0, timeout)) {
233 ret = fnOps->pipeIo(reqList->fd, &ioData);