Lines Matching full:ep
211 uint8_t ep = ep_idx | USB_EP_DIR_OUT; in usb_dc_ep_isr() local
218 dev_data.ep_data[ep_idx].cb_out(ep, USB_DC_EP_DATA_OUT); in usb_dc_ep_isr()
221 uint8_t ep = ep_idx | USB_EP_DIR_IN; in usb_dc_ep_isr() local
228 dev_data.ep_data[ep_idx].cb_in(ep, USB_DC_EP_DATA_IN); in usb_dc_ep_isr()
482 LOG_INF("Configure ep %x, mps %d, type %d", cfg->ep_addr, cfg->ep_mps, in usb_dc_ep_configure()
546 LOG_INF("Temporary disable ep idx %x", i); in usb_dc_ep_configure()
574 int usb_dc_ep_set_stall(uint8_t ep) in usb_dc_ep_set_stall() argument
576 uint8_t ep_idx = USB_EP_GET_IDX(ep); in usb_dc_ep_set_stall()
585 LOG_DBG("ep 0x%x", ep); in usb_dc_ep_set_stall()
590 int usb_dc_ep_clear_stall(uint8_t ep) in usb_dc_ep_clear_stall() argument
592 uint8_t ep_idx = USB_EP_GET_IDX(ep); in usb_dc_ep_clear_stall()
601 LOG_DBG("ep 0x%x", ep); in usb_dc_ep_clear_stall()
606 int usb_dc_ep_is_stalled(uint8_t ep, uint8_t *stalled) in usb_dc_ep_is_stalled() argument
608 uint8_t ep_idx = USB_EP_GET_IDX(ep); in usb_dc_ep_is_stalled()
622 LOG_DBG("ep 0x%x", ep); in usb_dc_ep_is_stalled()
627 int usb_dc_ep_halt(uint8_t ep) in usb_dc_ep_halt() argument
629 return usb_dc_ep_set_stall(ep); in usb_dc_ep_halt()
633 int usb_dc_ep_enable(uint8_t ep) in usb_dc_ep_enable() argument
635 uint8_t ep_idx = USB_EP_GET_IDX(ep); in usb_dc_ep_enable()
656 LOG_INF("Enable ep 0x%x", ep); in usb_dc_ep_enable()
662 int usb_dc_ep_disable(uint8_t ep) in usb_dc_ep_disable() argument
664 uint8_t ep_idx = USB_EP_GET_IDX(ep); in usb_dc_ep_disable()
677 LOG_INF("Disable ep 0x%x", ep); in usb_dc_ep_disable()
683 int usb_dc_ep_flush(uint8_t ep) in usb_dc_ep_flush() argument
685 uint8_t ep_idx = USB_EP_GET_IDX(ep); in usb_dc_ep_flush()
716 LOG_DBG("ep 0x%x", ep); in usb_dc_ep_flush()
721 int usb_dc_ep_write(uint8_t ep, const uint8_t *data, uint32_t data_len, uint32_t *ret_bytes) in usb_dc_ep_write() argument
723 uint8_t ep_idx = USB_EP_GET_IDX(ep); in usb_dc_ep_write()
736 if (USB_EP_GET_DIR(ep) != USB_EP_DIR_IN) { in usb_dc_ep_write()
774 LOG_DBG("ep 0x%x write %d bytes from %d", ep, packet_len, data_len); in usb_dc_ep_write()
779 int usb_dc_ep_read(uint8_t ep, uint8_t *data, uint32_t max_data_len, uint32_t *read_bytes) in usb_dc_ep_read() argument
781 uint8_t ep_idx = USB_EP_GET_IDX(ep); in usb_dc_ep_read()
784 rc = usb_dc_ep_read_wait(ep, data, max_data_len, read_bytes); in usb_dc_ep_read()
799 rc = usb_dc_ep_read_continue(ep); in usb_dc_ep_read()
802 LOG_DBG("ep 0x%x", ep); in usb_dc_ep_read()
807 int usb_dc_ep_set_callback(uint8_t ep, const usb_dc_ep_callback cb) in usb_dc_ep_set_callback() argument
809 uint8_t ep_idx = USB_EP_GET_IDX(ep); in usb_dc_ep_set_callback()
816 if (USB_EP_DIR_IS_IN(ep)) { in usb_dc_ep_set_callback()
822 LOG_DBG("ep 0x%x", ep); in usb_dc_ep_set_callback()
827 int usb_dc_ep_read_wait(uint8_t ep, uint8_t *data, uint32_t max_data_len, in usb_dc_ep_read_wait() argument
830 uint8_t ep_idx = USB_EP_GET_IDX(ep); in usb_dc_ep_read_wait()
844 if (USB_EP_GET_DIR(ep) != USB_EP_DIR_OUT) { in usb_dc_ep_read_wait()
881 LOG_DBG("ep 0x%x read %d bytes", ep, data_len); in usb_dc_ep_read_wait()
886 int usb_dc_ep_read_continue(uint8_t ep) in usb_dc_ep_read_continue() argument
888 uint8_t ep_idx = USB_EP_GET_IDX(ep); in usb_dc_ep_read_continue()
900 if (USB_EP_GET_DIR(ep) != USB_EP_DIR_OUT) { in usb_dc_ep_read_continue()
921 LOG_DBG("ep 0x%x continue", ep); in usb_dc_ep_read_continue()
926 int usb_dc_ep_mps(uint8_t ep) in usb_dc_ep_mps() argument
928 uint8_t ep_idx = USB_EP_GET_IDX(ep); in usb_dc_ep_mps()