Lines Matching refs:ep_data
198 struct rpi_pico_ep_data *const ep_data = get_ep_data(dev, cfg->addr); in rpi_pico_prep_rx() local
208 cfg->addr, net_buf_tailroom(buf), ep_data->next_pid); in rpi_pico_prep_rx()
211 buf_ctrl |= ep_data->next_pid ? USB_BUF_CTRL_DATA1_PID : USB_BUF_CTRL_DATA0_PID; in rpi_pico_prep_rx()
212 ep_data->next_pid ^= 1U; in rpi_pico_prep_rx()
230 struct rpi_pico_ep_data *const ep_data = get_ep_data(dev, cfg->addr); in rpi_pico_prep_tx() local
241 memcpy(ep_data->buf, buf->data, len); in rpi_pico_prep_tx()
244 cfg->addr, len, ep_data->next_pid); in rpi_pico_prep_tx()
247 buf_ctrl |= ep_data->next_pid ? USB_BUF_CTRL_DATA1_PID : USB_BUF_CTRL_DATA0_PID; in rpi_pico_prep_tx()
249 ep_data->next_pid ^= 1U; in rpi_pico_prep_tx()
532 struct rpi_pico_ep_data *ep_data = get_ep_data(dev, ep); in rpi_pico_handle_buff_status_out() local
549 net_buf_add_mem(buf, ep_data->buf, MIN(len, net_buf_tailroom(buf))); in rpi_pico_handle_buff_status_out()
755 struct rpi_pico_ep_data *const ep_data = get_ep_data(dev, cfg->addr); in udc_rpi_pico_ep_enable() local
762 ep_data->next_pid = 0; in udc_rpi_pico_ep_enable()
770 err = sys_mem_blocks_alloc(config->mem_block, blocks, &ep_data->buf); in udc_rpi_pico_ep_enable()
777 ep_ctrl |= (uintptr_t)ep_data->buf & 0xFFFFUL; in udc_rpi_pico_ep_enable()
780 ep_data->buf = dpram->ep0_buf_a; in udc_rpi_pico_ep_enable()
791 struct rpi_pico_ep_data *const ep_data = get_ep_data(dev, cfg->addr); in udc_rpi_pico_ep_disable() local
801 err = sys_mem_blocks_free(config->mem_block, blocks, &ep_data->buf); in udc_rpi_pico_ep_disable()
840 struct rpi_pico_ep_data *const ep_data = get_ep_data(dev, cfg->addr); in udc_rpi_pico_ep_clear_halt() local
848 ep_data->next_pid = 0; in udc_rpi_pico_ep_clear_halt()