Searched refs:ep0 (Results 1 – 4 of 4) sorted by relevance
/drivers/peripheral/usb/ddk/device/src/ |
D | adapter_if_liteos.c | 276 static int32_t UsbFnWriteStrings(int32_t ep0, struct UsbFnStrings ** const strings) in UsbFnWriteStrings() argument 317 if (handle_write(ep0, str, headerStr.length) < 0) { in UsbFnWriteStrings() 407 static int32_t UsbFnAdapterCreatPipes(int32_t ep0, const struct UsbFnFunction *func) in UsbFnAdapterCreatPipes() argument 452 if (handle_write(ep0, dec, header.length) < 0) { in UsbFnAdapterCreatPipes() 459 ret = UsbFnWriteStrings(ep0, func->strings); in UsbFnAdapterCreatPipes() 833 … ret = handle_read(event->ep0[i], &event->ep0Event[i].ctrlEvent, sizeof(struct UsbFnCtrlEvent)); in Ep0Event() 840 … ret = handle_ioctl(event->ep0[i], GENERIC_CMD_GET_EP0_EVENT, &event->ep0Event[i].reqEvent); in Ep0Event() 886 if (event->ep0[i] <= 0) { in UsbFnAdapterPollEvent() 887 HDF_LOGE("%{public}s: ep[%d] = %d", __func__, i, event->ep0[i]); in UsbFnAdapterPollEvent() 890 pfds[i].fd = event->ep0[i]; in UsbFnAdapterPollEvent()
|
D | adapter_if.c | 440 static int32_t UsbFnWriteStrings(int32_t ep0, struct UsbFnStrings ** const strings) in UsbFnWriteStrings() argument 481 if (write(ep0, str, headerStr.length) < 0) { in UsbFnWriteStrings() 571 static int32_t UsbFnAdapterCreatPipes(int32_t ep0, const struct UsbFnFunction *func) in UsbFnAdapterCreatPipes() argument 616 if (write(ep0, dec, header.length) < 0) { in UsbFnAdapterCreatPipes() 623 ret = UsbFnWriteStrings(ep0, func->strings); in UsbFnAdapterCreatPipes() 1125 ret = read(event->ep0[i], &event->ep0Event[i].ctrlEvent, sizeof(struct UsbFnCtrlEvent)); in Ep0Event() 1131 … ret = ioctl(event->ep0[i], FUNCTIONFS_ENDPOINT_GET_EP0_EVENT, &event->ep0Event[i].reqEvent); in Ep0Event() 1171 if (event->ep0[i] <= 0) { in UsbFnAdapterPollEvent() 1173 HDF_LOGE("%{public}s: ep[%d] = %d", __func__, i, event->ep0[i]); in UsbFnAdapterPollEvent() 1176 pfds[i].fd = event->ep0[i]; in UsbFnAdapterPollEvent()
|
D | usbfn_dev_mgr.c | 365 event->ep0[event->ep0Num] = funcMgr->fd; in CollectEventHandle() 444 static struct UsbFnFuncMgr *GetFuncMgr(const struct UsbFnDeviceMgr *devMgr, int32_t ep0) in GetFuncMgr() argument 455 if (funcMgr->fd == ep0) { in GetFuncMgr() 492 funcMgr = GetFuncMgr(devMgr, event.ep0[i]); in HandleEp0Event()
|
/drivers/peripheral/usb/ddk/device/include/ |
D | adapter_if.h | 197 int32_t ep0[MAX_EP0_NUM]; member
|