Searched refs:ep_state (Results 1 – 4 of 4) sorted by relevance
166 struct smartbond_ep_state ep_state[2][4]; member324 return (ep_idx < EP_MAX) ? &dev_state.ep_state[ep_dir][ep_idx] : NULL; in usb_dc_get_ep_state()332 &dev_state.ep_state[0][ep_idx] : NULL; in usb_dc_get_ep_out_state()340 &dev_state.ep_state[1][ep_idx] : NULL; in usb_dc_get_ep_in_state()364 static void fill_tx_fifo(struct smartbond_ep_state *ep_state) in fill_tx_fifo() argument368 uint8_t ep_idx = USB_EP_GET_IDX(ep_state->ep_addr); in fill_tx_fifo()369 struct smartbond_ep_reg_set *regs = ep_state->regs; in fill_tx_fifo()371 src = &ep_state->buffer[ep_state->transferred]; in fill_tx_fifo()372 remaining = ep_state->total_len - ep_state->transferred; in fill_tx_fifo()373 if (remaining > ep_state->mps - ep_state->last_packet_size) { in fill_tx_fifo()[all …]
110 struct udc_rpi_ep_state *ep_state = udc_rpi_get_ep_state(ep); in udc_rpi_start_xfer() local113 if (*ep_state->buf_ctl & USB_BUF_CTRL_AVAIL) { in udc_rpi_start_xfer()124 memcpy(ep_state->buf, data, len); in udc_rpi_start_xfer()127 ep_state->read_offset = 0; in udc_rpi_start_xfer()130 LOG_DBG("xfer ep %d len %d pid: %d", ep, len, ep_state->next_pid); in udc_rpi_start_xfer()131 val |= ep_state->next_pid ? USB_BUF_CTRL_DATA1_PID : USB_BUF_CTRL_DATA0_PID; in udc_rpi_start_xfer()133 ep_state->next_pid ^= 1u; in udc_rpi_start_xfer()134 *ep_state->buf_ctl = val; in udc_rpi_start_xfer()142 *ep_state->buf_ctl = val | USB_BUF_CTRL_AVAIL; in udc_rpi_start_xfer()165 struct udc_rpi_ep_state *const ep_state = udc_rpi_get_ep_state(ep); in udc_rpi_cancel_endpoint() local[all …]
668 struct usb_dc_stm32_ep_state *ep_state = usb_dc_stm32_get_ep_state(ep); in usb_dc_ep_set_callback() local672 if (!ep_state) { in usb_dc_ep_set_callback()676 ep_state->cb = cb; in usb_dc_ep_set_callback()767 struct usb_dc_stm32_ep_state *ep_state = usb_dc_stm32_get_ep_state(ep); in usb_dc_ep_configure() local769 if (!ep_state) { in usb_dc_ep_configure()774 ep_cfg->ep_addr, ep_state->ep_mps, ep_cfg->ep_mps, in usb_dc_ep_configure()777 if (ep_cfg->ep_mps > ep_state->ep_pma_buf_len) { in usb_dc_ep_configure()792 ep_state->ep_pma_buf_len = ep_cfg->ep_mps*2; in usb_dc_ep_configure()797 ep_state->ep_pma_buf_len = ep_cfg->ep_mps; in usb_dc_ep_configure()802 ep_state->ep_mps = ep_cfg->ep_mps*2; in usb_dc_ep_configure()[all …]
119 struct smartbond_ep_state ep_state[2][4]; member123 #define EP0_OUT_STATE(data) (&data->ep_state[0][0])124 #define EP0_IN_STATE(data) (&data->ep_state[1][0])241 return (ep_idx < config->num_of_eps) ? &data->ep_state[ep_dir][ep_idx] : NULL; in usb_dc_get_ep_state()249 return ep_idx < config->num_of_eps ? &data->ep_state[0][ep_idx] : NULL; in usb_dc_get_ep_out_state()257 return ep_idx < config->num_of_eps ? &data->ep_state[1][ep_idx] : NULL; in usb_dc_get_ep_in_state()271 static void fill_tx_fifo(struct smartbond_ep_state *ep_state) in fill_tx_fifo() argument275 struct smartbond_ep_reg_set *regs = ep_state->regs; in fill_tx_fifo()276 struct net_buf *buf = ep_state->buf; in fill_tx_fifo()277 const struct udc_ep_config *const ep_cfg = &ep_state->config; in fill_tx_fifo()[all …]