/Zephyr-Core-3.5.0/subsys/usb/device/ |
D | usb_descriptor.c | 241 struct usb_dc_ep_cfg_data ep_cfg; in usb_validate_ep_cfg_data() local 243 ep_cfg.ep_type = (ep_descr->bmAttributes & in usb_validate_ep_cfg_data() 245 ep_cfg.ep_mps = ep_descr->wMaxPacketSize; in usb_validate_ep_cfg_data() 246 ep_cfg.ep_addr = ep_descr->bEndpointAddress; in usb_validate_ep_cfg_data() 247 if (ep_cfg.ep_addr & USB_EP_DIR_IN) { in usb_validate_ep_cfg_data() 252 ep_cfg.ep_addr = (USB_EP_DIR_IN | idx); in usb_validate_ep_cfg_data() 258 ep_cfg.ep_addr = idx; in usb_validate_ep_cfg_data() 260 if (!usb_dc_ep_check_cap(&ep_cfg)) { in usb_validate_ep_cfg_data() 263 ep_cfg.ep_addr); in usb_validate_ep_cfg_data() 264 ep_descr->bEndpointAddress = ep_cfg.ep_addr; in usb_validate_ep_cfg_data() [all …]
|
D | usb_device.c | 559 struct usb_dc_ep_cfg_data ep_cfg; in set_endpoint() local 563 ep_cfg.ep_addr = ep_desc->bEndpointAddress; in set_endpoint() 564 ep_cfg.ep_mps = sys_le16_to_cpu(ep_desc->wMaxPacketSize); in set_endpoint() 565 ep_cfg.ep_type = ep_desc->bmAttributes & USB_EP_TRANSFER_TYPE_MASK; in set_endpoint() 568 ep_cfg.ep_addr, ep_cfg.ep_type, ep_cfg.ep_mps); in set_endpoint() 580 ret = usb_dc_ep_configure(&ep_cfg); in set_endpoint() 582 LOG_WRN("Endpoint 0x%02x already configured", ep_cfg.ep_addr); in set_endpoint() 584 LOG_ERR("Failed to configure endpoint 0x%02x", ep_cfg.ep_addr); in set_endpoint() 590 ret = usb_dc_ep_enable(ep_cfg.ep_addr); in set_endpoint() 592 LOG_WRN("Endpoint 0x%02x already enabled", ep_cfg.ep_addr); in set_endpoint() [all …]
|
/Zephyr-Core-3.5.0/subsys/usb/device/class/ |
D | loopback.c | 87 static struct usb_ep_cfg_data ep_cfg[] = { variable 107 loopback_in_cb(ep_cfg[LOOPBACK_IN_EP_IDX].ep_addr, 0); in loopback_status_cb() 115 if (*param == ep_cfg[LOOPBACK_IN_EP_IDX].ep_addr) { in loopback_status_cb() 116 loopback_in_cb(ep_cfg[LOOPBACK_IN_EP_IDX].ep_addr, 0); in loopback_status_cb() 179 .num_endpoints = ARRAY_SIZE(ep_cfg), 180 .endpoint = ep_cfg,
|
/Zephyr-Core-3.5.0/drivers/usb/udc/ |
D | udc_kinetis.c | 467 struct udc_ep_config *ep_cfg; in xfer_work_handler() local 472 ep_cfg = udc_get_ep_cfg(ev->dev, ev->ep); in xfer_work_handler() 473 if (unlikely(ep_cfg == NULL)) { in xfer_work_handler() 491 err = usbfsotg_ep_clear_halt(ev->dev, ep_cfg); in xfer_work_handler() 503 if (usbfsotg_xfer_next(ev->dev, ep_cfg) == 0) { in xfer_work_handler() 527 struct udc_ep_config *ep_cfg = udc_get_ep_cfg(dev, USB_CONTROL_EP_IN); in set_control_in_pid_data1() local 530 ep_cfg->stat.data1 = true; in set_control_in_pid_data1() 541 struct udc_ep_config *ep_cfg; in isr_handle_xfer_done() local 547 ep_cfg = udc_get_ep_cfg(dev, ep); in isr_handle_xfer_done() 548 bd = usbfsotg_get_ebd(dev, ep_cfg, false); in isr_handle_xfer_done() [all …]
|
D | udc_common.c | 52 struct udc_ep_config *ep_cfg; in udc_ep_is_busy() local 54 ep_cfg = udc_get_ep_cfg(dev, ep); in udc_ep_is_busy() 55 __ASSERT(ep_cfg != NULL, "ep 0x%02x is not available", ep); in udc_ep_is_busy() 57 return ep_cfg->stat.busy; in udc_ep_is_busy() 62 struct udc_ep_config *ep_cfg; in udc_ep_set_busy() local 64 ep_cfg = udc_get_ep_cfg(dev, ep); in udc_ep_set_busy() 65 __ASSERT(ep_cfg != NULL, "ep 0x%02x is not available", ep); in udc_ep_set_busy() 66 ep_cfg->stat.busy = busy; in udc_ep_set_busy() 89 struct udc_ep_config *ep_cfg; in udc_buf_get() local 91 ep_cfg = udc_get_ep_cfg(dev, ep); in udc_buf_get() [all …]
|
D | udc_virtual.c | 79 struct udc_ep_config *ep_cfg = udc_get_ep_cfg(dev, USB_CONTROL_EP_OUT); in vrt_ctrl_feed_dout() local 87 udc_buf_put(ep_cfg, buf); in vrt_ctrl_feed_dout() 162 struct udc_ep_config *ep_cfg; in vrt_handle_out() local 169 ep_cfg = udc_get_ep_cfg(dev, ep); in vrt_handle_out() 170 if (ep_cfg->stat.halted) { in vrt_handle_out() 186 if (net_buf_tailroom(buf) == 0 || pkt->length < ep_cfg->mps) { in vrt_handle_out() 229 struct udc_ep_config *ep_cfg; in vrt_handle_in() local 236 ep_cfg = udc_get_ep_cfg(dev, ep); in vrt_handle_in() 237 if (ep_cfg->stat.halted) { in vrt_handle_in() 249 pkt->length, buf->len, ep_cfg->mps); in vrt_handle_in() [all …]
|
D | udc_nrf.c | 405 struct udc_ep_config *ep_cfg; in udc_sof_check_iso_out() local 407 ep_cfg = udc_get_ep_cfg(dev, iso_out_addr); in udc_sof_check_iso_out() 408 if (ep_cfg == NULL) { in udc_sof_check_iso_out() 412 if (ep_cfg->stat.enabled && !k_fifo_is_empty(&ep_cfg->fifo)) { in udc_sof_check_iso_out()
|
D | udc_common.h | 133 void udc_buf_put(struct udc_ep_config *const ep_cfg,
|
/Zephyr-Core-3.5.0/samples/subsys/ipc/ipc_service/icmsg/src/ |
D | main.c | 92 static struct ipc_ept_cfg ep_cfg = { variable 115 ret = ipc_service_register_endpoint(ipc0_instance, &ep, &ep_cfg); in main() 154 ret = ipc_service_register_endpoint(ipc0_instance, &ep, &ep_cfg); in main()
|
/Zephyr-Core-3.5.0/subsys/tracing/ |
D | tracing_backend_usb.c | 119 static struct usb_ep_cfg_data ep_cfg[] = { variable 139 .num_endpoints = ARRAY_SIZE(ep_cfg), 140 .endpoint = ep_cfg,
|
/Zephyr-Core-3.5.0/drivers/usb/device/ |
D | usb_dc_nrfx.c | 1377 int usb_dc_ep_check_cap(const struct usb_dc_ep_cfg_data *const ep_cfg) in usb_dc_ep_check_cap() argument 1379 uint8_t ep_idx = NRF_USBD_EP_NR_GET(ep_cfg->ep_addr); in usb_dc_ep_check_cap() 1381 LOG_DBG("ep 0x%02x, mps %d, type %d", ep_cfg->ep_addr, ep_cfg->ep_mps, in usb_dc_ep_check_cap() 1382 ep_cfg->ep_type); in usb_dc_ep_check_cap() 1384 if ((ep_cfg->ep_type == USB_DC_EP_CONTROL) && ep_idx) { in usb_dc_ep_check_cap() 1389 if (!NRF_USBD_EP_VALIDATE(ep_cfg->ep_addr)) { in usb_dc_ep_check_cap() 1394 if ((ep_cfg->ep_type == USB_DC_EP_ISOCHRONOUS) && in usb_dc_ep_check_cap() 1395 (!NRF_USBD_EPISO_CHECK(ep_cfg->ep_addr))) { in usb_dc_ep_check_cap() 1400 if ((ep_cfg->ep_type != USB_DC_EP_ISOCHRONOUS) && in usb_dc_ep_check_cap() 1401 (NRF_USBD_EPISO_CHECK(ep_cfg->ep_addr))) { in usb_dc_ep_check_cap() [all …]
|
D | usb_dc_stm32.c | 620 int usb_dc_ep_configure(const struct usb_dc_ep_cfg_data * const ep_cfg) in usb_dc_ep_configure() argument 622 uint8_t ep = ep_cfg->ep_addr; in usb_dc_ep_configure() 630 ep_cfg->ep_addr, ep_state->ep_mps, ep_cfg->ep_mps, in usb_dc_ep_configure() 631 ep_cfg->ep_type); in usb_dc_ep_configure() 634 if (ep_cfg->ep_mps > ep_state->ep_pma_buf_len) { in usb_dc_ep_configure() 636 (usb_dc_stm32_state.pma_offset + ep_cfg->ep_mps)) { in usb_dc_ep_configure() 641 ep_state->ep_pma_buf_len = ep_cfg->ep_mps; in usb_dc_ep_configure() 642 usb_dc_stm32_state.pma_offset += ep_cfg->ep_mps; in usb_dc_ep_configure() 645 ep_state->ep_mps = ep_cfg->ep_mps; in usb_dc_ep_configure() 647 switch (ep_cfg->ep_type) { in usb_dc_ep_configure()
|
D | usb_dc_rpi_pico.c | 540 int usb_dc_ep_configure(const struct usb_dc_ep_cfg_data *const ep_cfg) in usb_dc_ep_configure() argument 542 uint8_t ep = ep_cfg->ep_addr; in usb_dc_ep_configure() 550 ep_cfg->ep_addr, ep_state->mps, in usb_dc_ep_configure() 551 ep_cfg->ep_mps, ep_cfg->ep_type); in usb_dc_ep_configure() 553 ep_state->mps = ep_cfg->ep_mps; in usb_dc_ep_configure() 554 ep_state->type = ep_cfg->ep_type; in usb_dc_ep_configure()
|
D | usb_dc_smartbond.c | 1217 int usb_dc_ep_configure(const struct usb_dc_ep_cfg_data *const ep_cfg) in usb_dc_ep_configure() argument 1219 struct smartbond_ep_state *ep_state = usb_dc_get_ep_state(ep_cfg->ep_addr); in usb_dc_ep_configure() 1220 uint8_t ep_idx = USB_EP_GET_IDX(ep_cfg->ep_addr); in usb_dc_ep_configure() 1221 uint8_t ep_dir = USB_EP_GET_DIR(ep_cfg->ep_addr); in usb_dc_ep_configure() 1228 LOG_DBG("%02x", ep_cfg->ep_addr); in usb_dc_ep_configure() 1230 ep_state->iso = ep_cfg->ep_type == USB_DC_EP_ISOCHRONOUS; in usb_dc_ep_configure() 1233 if (ep_cfg->ep_type == USB_DC_EP_CONTROL) { in usb_dc_ep_configure() 1236 ep_state->mps = ep_cfg->ep_mps; in usb_dc_ep_configure() 1242 if (ep_cfg->ep_mps > ep_out_buf_size[ep_idx]) { in usb_dc_ep_configure()
|
D | usb_dc_kinetis.c | 853 struct usb_dc_ep_cfg_data ep_cfg; in reenable_control_endpoints() local 856 ep_cfg.ep_addr = USB_CONTROL_EP_OUT; in reenable_control_endpoints() 857 ep_cfg.ep_mps = USB_CONTROL_EP_MPS; in reenable_control_endpoints() 858 ep_cfg.ep_type = USB_DC_EP_CONTROL; in reenable_control_endpoints() 859 usb_dc_ep_configure(&ep_cfg); in reenable_control_endpoints() 860 ep_cfg.ep_addr = USB_CONTROL_EP_IN; in reenable_control_endpoints() 861 usb_dc_ep_configure(&ep_cfg); in reenable_control_endpoints()
|
D | usb_dc_dw.c | 969 int usb_dc_ep_configure(const struct usb_dc_ep_cfg_data * const ep_cfg) in usb_dc_ep_configure() argument 973 if (!ep_cfg) { in usb_dc_ep_configure() 977 ep = ep_cfg->ep_addr; in usb_dc_ep_configure() 984 usb_dw_ep_set(ep, ep_cfg->ep_mps, ep_cfg->ep_type); in usb_dc_ep_configure()
|
/Zephyr-Core-3.5.0/samples/subsys/ipc/ipc_service/icmsg/remote/src/ |
D | main.c | 90 static struct ipc_ept_cfg ep_cfg = { variable 113 ret = ipc_service_register_endpoint(ipc0_instance, &ep, &ep_cfg); in main()
|