Lines Matching defs:ep
40 int32_t ep;
42 ep = handle_open("/dev/fconfig");
43 if (ep > 0) {
48 if (ep < 0) {
51 return ep;
226 int32_t ep;
231 ret = snprintf_s(epName, MAX_NAMELEN, MAX_NAMELEN - 1, "/dev/%s/ep%d", funcName, epIndex);
238 ep = handle_open(pName);
239 if (ep > 0) {
244 if (ep < 0) {
248 return ep;
251 static int32_t UsbFnAdapterClosePipe(int32_t ep)
253 if (ep < 0) {
257 return handle_close(ep);
748 static int32_t UsbFnAdapterGetPipeInfo(int32_t ep, struct UsbFnPipeInfo * const pipeInfo)
750 if (ep <= 0 || pipeInfo == NULL) {
760 int32_t ret = handle_ioctl(ep, GENERIC_CMD_GET_PIPE_INFO, &desc);
778 static int32_t UsbFnAdapterQueueInit(int32_t ep)
780 (void)ep;
784 static int32_t UsbFnAdapterQueueDel(int32_t ep)
786 (void)ep;
790 static int32_t UsbFnAdapterReleaseBuf(int32_t ep, const struct GenericMemory *mem)
792 return handle_ioctl(ep, GENERIC_CMD_FREE_MEM, &mem);
795 static int32_t UsbFnAdapterPipeIo(int32_t ep, struct IoData * const ioData)
798 if (ep <= 0 || ioData == NULL) {
802 ret = handle_write(ep, (void *)ioData->buf, ioData->len);
804 ret = handle_ioctl(ep, GENERIC_CMD_ENDPOINT_IO, ioData);
809 static int32_t UsbFnAdapterCancelIo(int32_t ep, const struct IoData * const ioData)
816 return handle_ioctl(ep, GENERIC_CMD_CANCEL_REQUEST, &mem);
819 static int32_t UsbFnAdapterRequestGetStatus(int32_t ep, const struct IoData *ioData)
821 if (ep <= 0 || ioData == NULL) {
824 return handle_ioctl(ep, GENERIC_CMD_GET_REQ_STATUS, (void *)ioData);
827 static uint8_t *UsbFnAdapterMapAddr(int32_t ep, uint32_t len)
829 return handle_mmap(ep, len);
899 HDF_LOGE("%{public}s: ep[%{public}d] = %{public}d", __func__, i, event->ep0[i]);
907 HDF_LOGE("%{public}s: ep[%{public}d] = %{public}d", __func__, i, event->epx[i]);