Searched refs:ep_state (Results 1 – 3 of 3) sorted by relevance
132 struct smartbond_ep_state ep_state[2][4]; member201 return (ep_idx < EP_MAX) ? &dev_state.ep_state[ep_dir][ep_idx] : NULL; in usb_dc_get_ep_state()209 &dev_state.ep_state[0][ep_idx] : NULL; in usb_dc_get_ep_out_state()217 &dev_state.ep_state[1][ep_idx] : NULL; in usb_dc_get_ep_in_state()241 static void fill_tx_fifo(struct smartbond_ep_state *ep_state) in fill_tx_fifo() argument245 uint8_t ep_idx = USB_EP_GET_IDX(ep_state->ep_addr); in fill_tx_fifo()246 struct smartbond_ep_reg_set *regs = ep_state->regs; in fill_tx_fifo()248 src = &ep_state->buffer[ep_state->transferred]; in fill_tx_fifo()249 remaining = ep_state->total_len - ep_state->transferred; in fill_tx_fifo()250 if (remaining > ep_state->mps - ep_state->last_packet_size) { in fill_tx_fifo()[all …]
95 struct udc_rpi_ep_state *ep_state = udc_rpi_get_ep_state(ep); in udc_rpi_start_xfer() local98 if (*ep_state->buf_ctl & USB_BUF_CTRL_AVAIL) { in udc_rpi_start_xfer()109 memcpy(ep_state->buf, data, len); in udc_rpi_start_xfer()112 ep_state->read_offset = 0; in udc_rpi_start_xfer()115 LOG_DBG("xfer ep %d len %d pid: %d", ep, len, ep_state->next_pid); in udc_rpi_start_xfer()116 val |= ep_state->next_pid ? USB_BUF_CTRL_DATA1_PID : USB_BUF_CTRL_DATA0_PID; in udc_rpi_start_xfer()118 ep_state->next_pid ^= 1u; in udc_rpi_start_xfer()119 *ep_state->buf_ctl = val; in udc_rpi_start_xfer()142 struct udc_rpi_ep_state *const ep_state = udc_rpi_get_ep_state(ep); in udc_rpi_cancel_endpoint() local144 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 …]