Lines Matching defs:ep0
279 static int32_t UsbFnWriteStrings(int32_t ep0, struct UsbFnStrings ** const strings)
320 if (handle_write(ep0, str, headerStr.length) < 0) {
410 static int32_t UsbFnAdapterCreatPipes(int32_t ep0, const struct UsbFnFunction *func)
460 if (handle_write(ep0, dec, header.length) < 0) {
467 ret = UsbFnWriteStrings(ep0, func->strings);
845 ret = handle_read(event->ep0[i], &event->ep0Event[i].ctrlEvent, sizeof(struct UsbFnCtrlEvent));
847 HDF_LOGE("unable to read event from ep0");
852 ret = handle_ioctl(event->ep0[i], GENERIC_CMD_GET_EP0_EVENT, &event->ep0Event[i].reqEvent);
854 HDF_LOGE("unable to read reqEvent from ep0");
898 if (event->ep0[i] <= 0) {
899 HDF_LOGE("%{public}s: ep[%{public}d] = %{public}d", __func__, i, event->ep0[i]);
902 pfds[i].fd = event->ep0[i];