Searched refs:ep_data (Results 1 – 6 of 6) sorted by relevance
/Zephyr-latest/drivers/usb/device/ |
D | usb_dc_sam_usbc.c | 99 struct usb_device_ep_data ep_data[NUM_OF_EP_MAX]; member 209 mps = dev_data.ep_data[ep_idx].mps_x2 in usb_dc_sam_usbc_ep_alloc_buf() 210 ? dev_data.ep_data[ep_idx].mps * 2 in usb_dc_sam_usbc_ep_alloc_buf() 211 : dev_data.ep_data[ep_idx].mps; in usb_dc_sam_usbc_ep_alloc_buf() 215 if (!dev_data.ep_data[i].is_configured || i == ep_idx) { in usb_dc_sam_usbc_ep_alloc_buf() 219 desc_mem_alloc += dev_data.ep_data[i].mps_x2 in usb_dc_sam_usbc_ep_alloc_buf() 220 ? dev_data.ep_data[i].mps * 2 in usb_dc_sam_usbc_ep_alloc_buf() 221 : dev_data.ep_data[i].mps; in usb_dc_sam_usbc_ep_alloc_buf() 225 memset(&dev_data.ep_data[ep_idx], 0, in usb_dc_sam_usbc_ep_alloc_buf() 239 if (!dev_data.ep_data[i].is_configured) { in usb_dc_sam_usbc_ep_alloc_buf() [all …]
|
D | usb_dc_it82xx2.c | 160 struct it82xx2_endpoint_data ep_data[MAX_NUM_ENDPOINTS]; member 295 if (USB_EP_DIR_IS_IN(ep) && udata0.ep_data[ep_idx].ep_status == EP_CONFIG_IN) { in it82xx2_usb_fifo_ctrl() 304 udata0.ep_data[ep_idx].ep_status == EP_CONFIG_OUT) { in it82xx2_usb_fifo_ctrl() 609 udata0.ep_data[ep_idx].cb_out(ep_idx | USB_EP_DIR_OUT, USB_DC_EP_DATA_OUT); in it82xx2_handler_setup() 619 udata0.ep_data[ep_idx].cb_in(ep_idx | USB_EP_DIR_IN, USB_DC_EP_DATA_IN); in it82xx2_handler_setup() 627 udata0.ep_data[ep_idx].cb_out(ep_idx | USB_EP_DIR_OUT, USB_DC_EP_SETUP); in it82xx2_handler_setup() 666 } else if (udata0.ep_data[ep_idx].remaining == 0 && in it82xx2_handler_in() 678 if (udata0.ep_data[ep_idx].cb_in) { in it82xx2_handler_in() 679 udata0.ep_data[ep_idx].cb_in(ep_idx | USB_EP_DIR_IN, USB_DC_EP_DATA_IN); in it82xx2_handler_in() 689 if (udata0.st_state == DIN_ST && udata0.ep_data[ep_idx].remaining == 0) { in it82xx2_handler_in() [all …]
|
D | usb_dc_sam_usbhs.c | 66 struct usb_device_ep_data ep_data[NUM_OF_EP_MAX]; member 154 dev_data.ep_data[ep_idx].fifo = p; in usb_dc_ep_fifo_reset() 160 return *(dev_data.ep_data[ep_idx].fifo++); in usb_dc_ep_fifo_get() 166 *(dev_data.ep_data[ep_idx].fifo++) = data; in usb_dc_ep_fifo_put() 178 dev_data.ep_data[0].cb_out(USB_EP_DIR_OUT, USB_DC_EP_SETUP); in usb_dc_ep0_isr() 183 dev_data.ep_data[0].cb_out(USB_EP_DIR_OUT, USB_DC_EP_DATA_OUT); in usb_dc_ep0_isr() 191 dev_data.ep_data[0].cb_in(USB_EP_DIR_IN, USB_DC_EP_DATA_IN); in usb_dc_ep0_isr() 218 dev_data.ep_data[ep_idx].cb_out(ep, USB_DC_EP_DATA_OUT); in usb_dc_ep_isr() 228 dev_data.ep_data[ep_idx].cb_in(ep, USB_DC_EP_DATA_IN); in usb_dc_ep_isr() 251 if (!usb_dc_ep_is_configured(0) && dev_data.ep_data[0].mps) { in usb_dc_isr() [all …]
|
/Zephyr-latest/drivers/usb/udc/ |
D | udc_rpi_pico.c | 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 [all …]
|
/Zephyr-latest/subsys/usb/device/ |
D | usb_device.c | 1005 const struct usb_ep_cfg_data *ep_data; in is_ep_valid() local 1013 ep_data = cfg_data->endpoint; in is_ep_valid() 1016 if (ep_data[n].ep_addr == ep) { in is_ep_valid() 1216 struct usb_ep_cfg_data *ep_data; in foreach_ep() local 1219 ep_data = cfg_data->endpoint; in foreach_ep() 1224 ret = endpoint_callback(&ep_data[n]); in foreach_ep() 1234 static int disable_interface_ep(const struct usb_ep_cfg_data *ep_data) in disable_interface_ep() argument 1239 ret = usb_dc_ep_disable(ep_data->ep_addr); in disable_interface_ep() 1242 ep_bm = get_ep_bm_from_addr(ep_data->ep_addr); in disable_interface_ep() 1558 struct usb_ep_cfg_data *ep_data; in composite_setup_ep_cb() local [all …]
|
D | usb_descriptor.c | 255 struct usb_ep_cfg_data *ep_data = cfg_data->endpoint; in usb_validate_ep_cfg_data() local 260 if (ep_descr->bEndpointAddress != ep_data[i].ep_addr) { in usb_validate_ep_cfg_data() 289 ep_data[i].ep_addr = ep_cfg.ep_addr; in usb_validate_ep_cfg_data() 295 LOG_DBG("endpoint 0x%x", ep_data[i].ep_addr); in usb_validate_ep_cfg_data() 595 const struct usb_ep_cfg_data *ep_data = cfg->endpoint; in usb_get_dev_data_by_ep() local 598 if (ep_data[i].ep_addr == ep) { in usb_get_dev_data_by_ep()
|