Searched refs:ep_state (Results 1 – 3 of 3) sorted by relevance
133 struct smartbond_ep_state ep_state[2][4]; member202 return (ep_idx < EP_MAX) ? &dev_state.ep_state[ep_dir][ep_idx] : NULL; in usb_dc_get_ep_state()210 &dev_state.ep_state[0][ep_idx] : NULL; in usb_dc_get_ep_out_state()218 &dev_state.ep_state[1][ep_idx] : NULL; in usb_dc_get_ep_in_state()242 static void fill_tx_fifo(struct smartbond_ep_state *ep_state) in fill_tx_fifo() argument246 uint8_t ep_idx = USB_EP_GET_IDX(ep_state->ep_addr); in fill_tx_fifo()247 struct smartbond_ep_reg_set *regs = ep_state->regs; in fill_tx_fifo()249 src = &ep_state->buffer[ep_state->transferred]; in fill_tx_fifo()250 remaining = ep_state->total_len - ep_state->transferred; in fill_tx_fifo()251 if (remaining > ep_state->mps - ep_state->last_packet_size) { in fill_tx_fifo()[all …]
96 struct udc_rpi_ep_state *ep_state = udc_rpi_get_ep_state(ep); in udc_rpi_start_xfer() local99 if (*ep_state->buf_ctl & USB_BUF_CTRL_AVAIL) { in udc_rpi_start_xfer()110 memcpy(ep_state->buf, data, len); in udc_rpi_start_xfer()113 ep_state->read_offset = 0; in udc_rpi_start_xfer()116 LOG_DBG("xfer ep %d len %d pid: %d", ep, len, ep_state->next_pid); in udc_rpi_start_xfer()117 val |= ep_state->next_pid ? USB_BUF_CTRL_DATA1_PID : USB_BUF_CTRL_DATA0_PID; in udc_rpi_start_xfer()119 ep_state->next_pid ^= 1u; in udc_rpi_start_xfer()120 *ep_state->buf_ctl = val; in udc_rpi_start_xfer()143 struct udc_rpi_ep_state *const ep_state = udc_rpi_get_ep_state(ep); in udc_rpi_cancel_endpoint() local145 if (*ep_state->buf_ctl & USB_BUF_CTRL_AVAIL) { in udc_rpi_cancel_endpoint()[all …]
524 struct usb_dc_stm32_ep_state *ep_state = usb_dc_stm32_get_ep_state(ep); in usb_dc_ep_set_callback() local528 if (!ep_state) { in usb_dc_ep_set_callback()532 ep_state->cb = cb; in usb_dc_ep_set_callback()623 struct usb_dc_stm32_ep_state *ep_state = usb_dc_stm32_get_ep_state(ep); in usb_dc_ep_configure() local625 if (!ep_state) { in usb_dc_ep_configure()630 ep_cfg->ep_addr, ep_state->ep_mps, ep_cfg->ep_mps, in usb_dc_ep_configure()634 if (ep_cfg->ep_mps > ep_state->ep_pma_buf_len) { in usb_dc_ep_configure()641 ep_state->ep_pma_buf_len = ep_cfg->ep_mps; in usb_dc_ep_configure()645 ep_state->ep_mps = ep_cfg->ep_mps; in usb_dc_ep_configure()649 ep_state->ep_type = EP_TYPE_CTRL; in usb_dc_ep_configure()[all …]