Home
last modified time | relevance | path

Searched refs:ep_bm (Results 1 – 5 of 5) sorted by relevance

/Zephyr-latest/subsys/usb/device_next/
Dusbd_endpoint.h20 static inline void usbd_ep_bm_set(uint32_t *const ep_bm, const uint8_t ep) in usbd_ep_bm_set() argument
23 *ep_bm |= BIT(USB_EP_GET_IDX(ep) + 16U); in usbd_ep_bm_set()
25 *ep_bm |= BIT(USB_EP_GET_IDX(ep)); in usbd_ep_bm_set()
37 static inline void usbd_ep_bm_clear(uint32_t *const ep_bm, const uint8_t ep) in usbd_ep_bm_clear() argument
40 *ep_bm &= ~BIT(USB_EP_GET_IDX(ep) + 16U); in usbd_ep_bm_clear()
42 *ep_bm &= ~BIT(USB_EP_GET_IDX(ep)); in usbd_ep_bm_clear()
56 static inline bool usbd_ep_bm_is_set(const uint32_t *const ep_bm, const uint8_t ep) in usbd_ep_bm_is_set() argument
66 return (*ep_bm & BIT(bit)) ? true : false; in usbd_ep_bm_is_set()
82 uint32_t *const ep_bm);
97 uint32_t *const ep_bm);
Dusbd_interface.c28 uint32_t *const ep_bm) in handle_ep_op() argument
38 ret = usbd_ep_enable(uds_ctx->dev, ed, ep_bm); in handle_ep_op()
41 ret = usbd_ep_disable(uds_ctx->dev, ep, ep_bm); in handle_ep_op()
47 op, ep, *ep_bm, ret); in handle_ep_op()
116 uint32_t *ep_bm = &c_nd->ep_active; in usbd_interface_shutdown() local
118 for (int idx = 1; idx < 16 && *ep_bm; idx++) { in usbd_interface_shutdown()
123 if (usbd_ep_bm_is_set(ep_bm, ep_in)) { in usbd_interface_shutdown()
124 ret = usbd_ep_disable(uds_ctx->dev, ep_in, ep_bm); in usbd_interface_shutdown()
130 if (usbd_ep_bm_is_set(ep_bm, ep_out)) { in usbd_interface_shutdown()
131 ret = usbd_ep_disable(uds_ctx->dev, ep_out, ep_bm); in usbd_interface_shutdown()
Dusbd_endpoint.c22 uint32_t *const ep_bm) in usbd_ep_enable() argument
29 usbd_ep_bm_set(ep_bm, ed->bEndpointAddress); in usbd_ep_enable()
37 uint32_t *const ep_bm) in usbd_ep_disable() argument
46 usbd_ep_bm_clear(ep_bm, ep); in usbd_ep_disable()
Dusbd_class.c148 uint32_t ep_bm; in usbd_class_get_by_ep() local
151 ep_bm = BIT(ep_idx + 16); in usbd_class_get_by_ep()
153 ep_bm = BIT(ep_idx); in usbd_class_get_by_ep()
169 if (c_nd->ep_assigned & ep_bm) { in usbd_class_get_by_ep()
/Zephyr-latest/subsys/usb/device/
Dusb_device.c139 uint32_t ep_bm; member
530 uint32_t ep_bm = 0; in get_ep_bm_from_addr() local
540 ep_bm = BIT(ep_idx + 16); in get_ep_bm_from_addr()
542 ep_bm = BIT(ep_idx); in get_ep_bm_from_addr()
545 return ep_bm; in get_ep_bm_from_addr()
561 uint32_t ep_bm; in set_endpoint() local
572 ep_bm = get_ep_bm_from_addr(ep_desc->bEndpointAddress); in set_endpoint()
573 if (ep_bm & usb_dev.ep_bm) { in set_endpoint()
602 usb_dev.ep_bm |= ep_bm; in set_endpoint()
609 uint32_t ep_bm; in disable_endpoint() local
[all …]