Lines Matching refs:i
159 int32_t i; in SendProcess() local
162 for (i = 0; i < TEST_CYCLE; i++) { in SendProcess()
163 if (urb[i].inUse == 0) { in SendProcess()
164 urb[i].inUse = 1; in SendProcess()
165 urb[i].urb->userContext = (void *)(&urb[i]); in SendProcess()
170 if (i == TEST_CYCLE) { in SendProcess()
171 i = TEST_CYCLE - 1; in SendProcess()
173 g_sendUrb = urb[i].urb; in SendProcess()
178 urb[i].inUse = 0; in SendProcess()
219 for (int32_t i = 0; i < urbrecv->actualLength; i++) { in ReapProcess() local
220 HDF_LOGI("%{public}s: recvbuf %{public}c", __func__, recvBuf[i]); in ReapProcess()
238 int32_t i; in FillUrbData() local
240 for (i = 0; i < TEST_CYCLE; i++) { in FillUrbData()
241 urb[i].urb = calloc(1, sizeof(struct UsbAdapterUrb)); in FillUrbData()
242 if (urb[i].urb == NULL) { in FillUrbData()
245 urb[i].inUse = 0; in FillUrbData()
246 urb[i].urb->userContext = (void *)(&urb[i]); in FillUrbData()
247 urb[i].urb->type = USB_ADAPTER_URB_TYPE_BULK; in FillUrbData()
248 urb[i].urb->streamId = 0; in FillUrbData()
249 urb[i].urb->endPoint = endPoint; in FillUrbData()
257 urb[i].urb->buffer = (void *)data; in FillUrbData()
258 urb[i].urb->bufferLength = TEST_LENGTH; in FillUrbData()
268 int32_t i; in BeginProcess() local
284 for (i = 0; i < TEST_CYCLE; i++) { in BeginProcess()
285 urb[i].inUse = 1; in BeginProcess()
286 urb[i].urbNum = transNum; in BeginProcess()
287 urb[i].urb->userContext = (void *)(&urb[i]); in BeginProcess()
288 g_sendUrb = urb[i].urb; in BeginProcess()
291 urb[i].inUse = 0; in BeginProcess()
305 for (i = 0; i < TEST_CYCLE; i++) { in BeginProcess()
306 munmap(urb[i].urb->buffer, TEST_LENGTH); in BeginProcess()
307 free(urb[i].urb); in BeginProcess()