Home
last modified time | relevance | path

Searched refs:ep_addr (Results 1 – 25 of 34) sorted by relevance

12

/Zephyr-Core-3.6.0/subsys/usb/device/class/
Dbt_h4.c87 .ep_addr = BT_H4_OUT_EP_ADDR,
91 .ep_addr = BT_H4_IN_EP_ADDR,
112 usb_transfer(bt_h4_ep_data[BT_H4_OUT_EP_IDX].ep_addr, data, in bt_h4_read()
129 usb_transfer_sync(bt_h4_ep_data[BT_H4_IN_EP_IDX].ep_addr, in hci_tx_thread()
170 bt_h4_read(bt_h4_ep_data[BT_H4_OUT_EP_IDX].ep_addr, in bt_h4_status_cb()
177 usb_cancel_transfer(bt_h4_ep_data[BT_H4_IN_EP_IDX].ep_addr); in bt_h4_status_cb()
178 usb_cancel_transfer(bt_h4_ep_data[BT_H4_OUT_EP_IDX].ep_addr); in bt_h4_status_cb()
Dloopback.c90 .ep_addr = LOOPBACK_OUT_EP_ADDR,
94 .ep_addr = LOOPBACK_IN_EP_ADDR,
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()
Dbluetooth.c113 .ep_addr = BLUETOOTH_INT_EP_ADDR,
117 .ep_addr = BLUETOOTH_OUT_EP_ADDR,
121 .ep_addr = BLUETOOTH_IN_EP_ADDR,
162 bluetooth_ep_data[HCI_INT_EP_IDX].ep_addr, in hci_tx_thread()
168 bluetooth_ep_data[HCI_IN_EP_IDX].ep_addr, in hci_tx_thread()
306 usb_transfer(bluetooth_ep_data[HCI_OUT_EP_IDX].ep_addr, ep_out_buf, in acl_read_cb()
330 acl_read_cb(bluetooth_ep_data[HCI_OUT_EP_IDX].ep_addr, in bluetooth_status_cb()
337 usb_cancel_transfer(bluetooth_ep_data[HCI_INT_EP_IDX].ep_addr); in bluetooth_status_cb()
338 usb_cancel_transfer(bluetooth_ep_data[HCI_IN_EP_IDX].ep_addr); in bluetooth_status_cb()
339 usb_cancel_transfer(bluetooth_ep_data[HCI_OUT_EP_IDX].ep_addr); in bluetooth_status_cb()
Dmsc.c196 .ep_addr = MASS_STORAGE_OUT_EP_ADDR
200 .ep_addr = MASS_STORAGE_IN_EP_ADDR
288 if (usb_write(mass_ep_data[MSD_IN_EP_IDX].ep_addr, (uint8_t *)&csw, in sendCSW()
300 usb_ep_set_stall(mass_ep_data[MSD_IN_EP_IDX].ep_addr); in fail()
302 usb_ep_set_stall(mass_ep_data[MSD_OUT_EP_IDX].ep_addr); in fail()
321 if (usb_write(mass_ep_data[MSD_IN_EP_IDX].ep_addr, buf, size, NULL)) { in write()
377 usb_ep_set_stall(mass_ep_data[MSD_IN_EP_IDX].ep_addr); in testUnitReady()
380 usb_ep_set_stall(mass_ep_data[MSD_OUT_EP_IDX].ep_addr); in testUnitReady()
464 if (usb_write(mass_ep_data[MSD_IN_EP_IDX].ep_addr, in thread_memory_read_done()
467 mass_ep_data[MSD_IN_EP_IDX].ep_addr); in thread_memory_read_done()
[all …]
Dcdc_acm.c256 uint8_t ep = cfg->endpoint[ACM_IN_EP_IDX].ep_addr; in tx_work_handler()
395 cdc_acm_read_cb(cfg->endpoint[ACM_OUT_EP_IDX].ep_addr, 0, in cdc_acm_do_cb()
399 usb_transfer(cfg->endpoint[ACM_IN_EP_IDX].ep_addr, NULL, 0, in cdc_acm_do_cb()
575 cdc_acm_read_cb(cfg->endpoint[ACM_OUT_EP_IDX].ep_addr, 0, dev_data); in cdc_acm_fifo_read()
788 usb_write(cfg->endpoint[ACM_INT_EP_IDX].ep_addr, in cdc_acm_send_notification()
1174 .ep_addr = AUTO_EP_IN, \
1178 .ep_addr = AUTO_EP_OUT, \
1182 .ep_addr = AUTO_EP_IN, \
/Zephyr-Core-3.6.0/subsys/usb/device/class/netusb/
Dfunction_eem.c82 .ep_addr = CDC_EEM_OUT_EP_ADDR
87 .ep_addr = CDC_EEM_IN_EP_ADDR
130 ret = usb_transfer_sync(eem_ep_data[EEM_IN_EP_IDX].ep_addr, in eem_send()
200 usb_transfer(eem_ep_data[EEM_OUT_EP_IDX].ep_addr, rx_buf, in eem_read_cb()
207 eem_read_cb(eem_ep_data[EEM_OUT_EP_IDX].ep_addr, 0, NULL); in eem_connect()
210 usb_cancel_transfer(eem_ep_data[EEM_OUT_EP_IDX].ep_addr); in eem_connect()
211 usb_cancel_transfer(eem_ep_data[EEM_IN_EP_IDX].ep_addr); in eem_connect()
Dfunction_ecm.c175 .ep_addr = CDC_ECM_INT_EP_ADDR
180 .ep_addr = CDC_ECM_OUT_EP_ADDR
185 .ep_addr = CDC_ECM_IN_EP_ADDR
265 ret = usb_transfer_sync(ecm_ep_data[ECM_IN_EP_IDX].ep_addr, in ecm_send()
315 usb_transfer(ecm_ep_data[ECM_OUT_EP_IDX].ep_addr, rx_buf, in ecm_read_cb()
322 ecm_read_cb(ecm_ep_data[ECM_OUT_EP_IDX].ep_addr, 0, NULL); in ecm_connect()
325 usb_cancel_transfer(ecm_ep_data[ECM_OUT_EP_IDX].ep_addr); in ecm_connect()
326 usb_cancel_transfer(ecm_ep_data[ECM_IN_EP_IDX].ep_addr); in ecm_connect()
Dfunction_rndis.c224 .ep_addr = RNDIS_INT_EP_ADDR
228 .ep_addr = RNDIS_OUT_EP_ADDR
232 .ep_addr = RNDIS_IN_EP_ADDR
433 ret = usb_transfer(rndis_ep_data[RNDIS_INT_EP_IDX].ep_addr, in rndis_notify_rsp()
959 ret = usb_transfer_sync(rndis_ep_data[RNDIS_IN_EP_IDX].ep_addr, tx_buf, in rndis_send()
/Zephyr-Core-3.6.0/subsys/usb/device/
Dusb_descriptor.c236 if (ep_descr->bEndpointAddress != ep_data[i].ep_addr) { 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()
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()
265 ep_data[i].ep_addr = ep_cfg.ep_addr; in usb_validate_ep_cfg_data()
266 if (ep_cfg.ep_addr & USB_EP_DIR_IN) { in usb_validate_ep_cfg_data()
271 LOG_DBG("endpoint 0x%x", ep_data[i].ep_addr); in usb_validate_ep_cfg_data()
[all …]
Dusb_device.c563 ep_cfg.ep_addr = ep_desc->bEndpointAddress; in set_endpoint()
568 ep_cfg.ep_addr, ep_cfg.ep_type, ep_cfg.ep_mps); 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()
594 LOG_ERR("Failed to enable endpoint 0x%02x", ep_cfg.ep_addr); in set_endpoint()
606 static int disable_endpoint(uint8_t ep_addr) in disable_endpoint() argument
611 ret = usb_dc_ep_disable(ep_addr); in disable_endpoint()
613 LOG_WRN("Endpoint 0x%02x already disabled", ep_addr); in disable_endpoint()
[all …]
/Zephyr-Core-3.6.0/samples/subsys/usb/webusb/src/
Dwebusb.c151 usb_transfer(cfg->endpoint[WEBUSB_IN_EP_IDX].ep_addr, rx_buf, size, in webusb_read_cb()
183 webusb_read_cb(cfg->endpoint[WEBUSB_OUT_EP_IDX].ep_addr, in webusb_dev_status_cb()
206 .ep_addr = AUTO_EP_IN
210 .ep_addr = AUTO_EP_OUT
/Zephyr-Core-3.6.0/drivers/usb/device/
Dusb_dc_smartbond.c124 uint8_t ep_addr; /** EP address */ member
246 uint8_t ep_idx = USB_EP_GET_IDX(ep_state->ep_addr); in fill_tx_fifo()
289 uint8_t ep_idx = USB_EP_GET_IDX(ep_state->ep_addr); in try_allocate_dma()
325 uint8_t ep_idx = USB_EP_GET_IDX(ep_state->ep_addr); in start_rx_packet()
328 LOG_DBG("%02x", ep_state->ep_addr); in start_rx_packet()
380 LOG_DBG("%02x %d/%d", ep_state->ep_addr, size, remaining); in start_tx_packet()
390 if (ep_state->ep_addr != EP0_IN && in start_tx_packet()
483 LOG_DBG("%02x %02x", ep0_in_state->ep_addr, txs0); in handle_ep0_tx()
580 ep_state->cb(ep_state->ep_addr, in handle_epx_rx_ev()
628 ep_state->cb(ep_state->ep_addr, USB_DC_EP_DATA_IN); in handle_epx_tx_ev()
[all …]
Dusb_dc_kinetis.c270 uint8_t ep_idx = USB_EP_GET_IDX(cfg->ep_addr); in usb_dc_ep_check_cap()
304 if (USB_EP_GET_DIR(cfg->ep_addr) != USB_EP_DIR_IN) { in usb_dc_ep_check_cap()
309 if (USB_EP_GET_DIR(cfg->ep_addr) != USB_EP_DIR_OUT) { in usb_dc_ep_check_cap()
320 uint8_t ep_idx = USB_EP_GET_IDX(cfg->ep_addr); in usb_dc_ep_configure()
330 idx_even = get_bdt_idx(cfg->ep_addr, 0); in usb_dc_ep_configure()
331 idx_odd = get_bdt_idx(cfg->ep_addr, 1); in usb_dc_ep_configure()
340 LOG_DBG("ep %x, mps %d, type %d", cfg->ep_addr, cfg->ep_mps, in usb_dc_ep_configure()
343 if (USB_EP_DIR_IS_OUT(cfg->ep_addr)) { in usb_dc_ep_configure()
370 if (cfg->ep_addr & USB_EP_DIR_IN) { in usb_dc_ep_configure()
392 if (USB_EP_DIR_IS_OUT(cfg->ep_addr)) { in usb_dc_ep_configure()
[all …]
Dusb_dc_sam_usbhs.c254 .ep_addr = 0, in usb_dc_isr()
426 uint8_t ep_idx = USB_EP_GET_IDX(cfg->ep_addr); in usb_dc_ep_check_cap()
439 if (USB_EP_GET_DIR(cfg->ep_addr) != USB_EP_DIR_IN) { in usb_dc_ep_check_cap()
444 if (USB_EP_GET_DIR(cfg->ep_addr) != USB_EP_DIR_OUT) { in usb_dc_ep_check_cap()
462 uint8_t ep_idx = USB_EP_GET_IDX(cfg->ep_addr); in usb_dc_ep_configure()
482 LOG_INF("Configure ep %x, mps %d, type %d", cfg->ep_addr, cfg->ep_mps, in usb_dc_ep_configure()
509 if (USB_EP_DIR_IS_OUT(cfg->ep_addr) || in usb_dc_ep_configure()
Dusb_dc_mcux.c258 uint8_t ep_abs_idx = EP_ABS_IDX(cfg->ep_addr); in usb_dc_ep_check_cap()
259 uint8_t ep_idx = USB_EP_GET_IDX(cfg->ep_addr); in usb_dc_ep_check_cap()
276 uint8_t ep_abs_idx = EP_ABS_IDX(cfg->ep_addr); in usb_dc_ep_configure()
283 ep_init.endpointAddress = cfg->ep_addr; in usb_dc_ep_configure()
297 ep = cfg->ep_addr; in usb_dc_ep_configure()
307 if (USB_EP_DIR_IS_OUT(cfg->ep_addr)) { in usb_dc_ep_configure()
341 if ((USB_EP_GET_IDX(cfg->ep_addr) == USB_CONTROL_ENDPOINT) && in usb_dc_ep_configure()
342 (USB_EP_DIR_IS_OUT(cfg->ep_addr))) { in usb_dc_ep_configure()
Dusb_dc_native_posix.c153 uint8_t ep_idx = USB_EP_GET_IDX(cfg->ep_addr); in usb_dc_ep_check_cap()
155 LOG_DBG("ep %x, mps %d, type %d", cfg->ep_addr, cfg->ep_mps, in usb_dc_ep_check_cap()
168 if ((USB_EP_DIR_IS_OUT(cfg->ep_addr)) && in usb_dc_ep_check_cap()
174 if ((USB_EP_DIR_IS_IN(cfg->ep_addr)) && in usb_dc_ep_check_cap()
186 uint8_t ep = cfg->ep_addr; in usb_dc_ep_configure()
Dusb_dc_numaker.c652 (USB_EP_GET_IDX(ep_cfg->ep_addr) << USBD_CFG_EPNUM_Pos) & USBD_CFG_EPNUM_Msk; in numaker_usbd_ep_config_major()
1357 if ((ep_cfg->ep_type == USB_DC_EP_CONTROL) && USB_EP_GET_IDX(ep_cfg->ep_addr) != 0) { in usb_dc_ep_check_cap()
1369 if (USB_EP_DIR_IS_OUT(ep_cfg->ep_addr) && USB_EP_GET_IDX(ep_cfg->ep_addr) >= 8) { in usb_dc_ep_check_cap()
1371 ep_cfg->ep_addr); in usb_dc_ep_check_cap()
1377 if (USB_EP_DIR_IS_IN(ep_cfg->ep_addr) && USB_EP_GET_IDX(ep_cfg->ep_addr) < 8) { in usb_dc_ep_check_cap()
1379 ep_cfg->ep_addr); in usb_dc_ep_check_cap()
1388 ep_cur = numaker_usbd_ep_mgmt_bind_ep(dev, ep_cfg->ep_addr); in usb_dc_ep_check_cap()
1390 LOG_ERR("Bind EP context: ep=0x%02x", ep_cfg->ep_addr); in usb_dc_ep_check_cap()
1436 LOG_DBG("EP=0x%02x, MPS=%d, Type=%d", ep_cfg->ep_addr, ep_cfg->ep_mps, ep_cfg->ep_type); in usb_dc_ep_configure()
1441 ep_cur = numaker_usbd_ep_mgmt_bind_ep(dev, ep_cfg->ep_addr); in usb_dc_ep_configure()
[all …]
Dusb_dc_it82xx2.c933 uint8_t ep_idx = USB_EP_GET_IDX(cfg->ep_addr); in usb_dc_ep_check_cap()
934 bool in = USB_EP_DIR_IS_IN(cfg->ep_addr); in usb_dc_ep_check_cap()
942 LOG_WRN("Invalid Endpoint Number 0x%02x", cfg->ep_addr); in usb_dc_ep_check_cap()
947 LOG_WRN("Invalid Endpoint Number 0x%02x", cfg->ep_addr); in usb_dc_ep_check_cap()
952 LOG_WRN("Invalid Endpoint Number 0x%02x", cfg->ep_addr); in usb_dc_ep_check_cap()
966 LOG_DBG("Check cap(%02x)", cfg->ep_addr); in usb_dc_ep_check_cap()
973 uint8_t ep_idx = USB_EP_GET_IDX(cfg->ep_addr); in usb_dc_ep_configure()
974 bool in = USB_EP_DIR_IS_IN(cfg->ep_addr); in usb_dc_ep_configure()
977 LOG_DBG("Not attached / Invalid Endpoint: 0x%X", cfg->ep_addr); in usb_dc_ep_configure()
1005 it82xx2_usb_fifo_ctrl(cfg->ep_addr); in usb_dc_ep_configure()
Dusb_dc_nrfx.c1380 uint8_t ep_idx = NRF_USBD_EP_NR_GET(ep_cfg->ep_addr); in usb_dc_ep_check_cap()
1382 LOG_DBG("ep 0x%02x, mps %d, type %d", ep_cfg->ep_addr, ep_cfg->ep_mps, in usb_dc_ep_check_cap()
1390 if (!NRF_USBD_EP_VALIDATE(ep_cfg->ep_addr)) { in usb_dc_ep_check_cap()
1396 (!NRF_USBD_EPISO_CHECK(ep_cfg->ep_addr))) { in usb_dc_ep_check_cap()
1402 (NRF_USBD_EPISO_CHECK(ep_cfg->ep_addr))) { in usb_dc_ep_check_cap()
1428 ep_ctx = endpoint_ctx(ep_cfg->ep_addr); in usb_dc_ep_configure()
1433 ep_ctx->cfg.addr = ep_cfg->ep_addr; in usb_dc_ep_configure()
1437 if (!NRF_USBD_EPISO_CHECK(ep_cfg->ep_addr)) { in usb_dc_ep_configure()
1444 nrf_usbd_common_ep_max_packet_size_set(ep_addr_to_nrfx(ep_cfg->ep_addr), in usb_dc_ep_configure()
Dusb_dc_sam_usbc.c841 uint8_t ep_idx = USB_EP_GET_IDX(cfg->ep_addr); in usb_dc_ep_check_cap()
854 if (USB_EP_DIR_IS_OUT(cfg->ep_addr)) { in usb_dc_ep_check_cap()
859 if (USB_EP_DIR_IS_IN(cfg->ep_addr)) { in usb_dc_ep_check_cap()
875 uint8_t ep_idx = USB_EP_GET_IDX(cfg->ep_addr); in usb_dc_ep_configure()
894 cfg->ep_addr, cfg->ep_mps, cfg->ep_type); in usb_dc_ep_configure()
913 if (USB_EP_DIR_IS_OUT(cfg->ep_addr) || in usb_dc_ep_configure()
950 LOG_DBG("ep 0x%02x configured", cfg->ep_addr); in usb_dc_ep_configure()
Dusb_dc_sam0.c365 uint8_t ep_idx = USB_EP_GET_IDX(cfg->ep_addr); in usb_dc_ep_check_cap()
384 uint8_t ep_idx = USB_EP_GET_IDX(cfg->ep_addr); in usb_dc_ep_configure()
423 if (USB_EP_DIR_IS_IN(cfg->ep_addr)) { in usb_dc_ep_configure()
443 if (USB_EP_DIR_IS_IN(cfg->ep_addr)) { in usb_dc_ep_configure()
/Zephyr-Core-3.6.0/subsys/tracing/
Dtracing_backend_usb.c122 .ep_addr = TRACING_IF_OUT_EP_ADDR,
126 .ep_addr = TRACING_IF_IN_EP_ADDR,
/Zephyr-Core-3.6.0/samples/net/wpanusb/src/
Dwpanusb.c90 .ep_addr = AUTO_EP_IN,
268 uint8_t ep = wpanusb_config.endpoint[WPANUSB_IN_EP_IDX].ep_addr; in tx()
406 ep = wpanusb_config.endpoint[WPANUSB_IN_EP_IDX].ep_addr; in net_recv_data()
/Zephyr-Core-3.6.0/tests/subsys/usb/desc_sections/src/
Ddesc_sections.c82 .ep_addr = addr, \
139 if (cfg_data->endpoint[i].ep_addr == in find_cfg_data_ep()
/Zephyr-Core-3.6.0/include/zephyr/drivers/usb/
Dusb_dc.h115 uint8_t ep_addr; member

12