Lines Matching refs:priv
200 struct udc_numaker_data *priv = udc_get_private(dev); in numaker_usbd_reset_addr() local
204 priv->addr = 0; in numaker_usbd_reset_addr()
210 struct udc_numaker_data *priv = udc_get_private(dev); in numaker_usbd_set_addr() local
213 if (base->FADDR != priv->addr) { in numaker_usbd_set_addr()
214 base->FADDR = priv->addr; in numaker_usbd_set_addr()
263 struct udc_numaker_data *priv = udc_get_private(dev); in numaker_usbd_send_msg() local
266 err = k_msgq_put(priv->msgq, msg, K_NO_WAIT); in numaker_usbd_send_msg()
276 k_msgq_purge(priv->msgq); in numaker_usbd_send_msg()
278 err = k_msgq_put(priv->msgq, &msg_reconn, K_NO_WAIT); in numaker_usbd_send_msg()
391 struct udc_numaker_data *priv = udc_get_private(dev); in numaker_usbd_bus_reset_th() local
394 for (uint32_t i = 0ul; i < priv->ep_pool_size; i++) { in numaker_usbd_bus_reset_th()
604 struct udc_numaker_data *priv = udc_get_private(dev); in numaker_usbd_ep_mgmt_alloc_ep() local
605 struct numaker_usbd_ep_mgmt *ep_mgmt = &priv->ep_mgmt; in numaker_usbd_ep_mgmt_alloc_ep()
608 if (ep_mgmt->ep_idx < priv->ep_pool_size) { in numaker_usbd_ep_mgmt_alloc_ep()
609 ep_cur = priv->ep_pool + ep_mgmt->ep_idx; in numaker_usbd_ep_mgmt_alloc_ep()
629 struct udc_numaker_data *priv = udc_get_private(dev); in numaker_usbd_ep_mgmt_alloc_dmabuf() local
630 struct numaker_usbd_ep_mgmt *ep_mgmt = &priv->ep_mgmt; in numaker_usbd_ep_mgmt_alloc_dmabuf()
653 struct udc_numaker_data *priv = udc_get_private(dev); in numaker_usbd_ep_mgmt_init() local
655 struct numaker_usbd_ep_mgmt *ep_mgmt = &priv->ep_mgmt; in numaker_usbd_ep_mgmt_init()
663 ep_cur = priv->ep_pool; in numaker_usbd_ep_mgmt_init()
664 ep_end = priv->ep_pool + priv->ep_pool_size; in numaker_usbd_ep_mgmt_init()
675 ep_cur->ep_hw_idx = EP0 + (ep_cur - priv->ep_pool); in numaker_usbd_ep_mgmt_init()
689 ep_cur = priv->ep_pool + 0; in numaker_usbd_ep_mgmt_init()
700 ep_cur = priv->ep_pool + 1; in numaker_usbd_ep_mgmt_init()
714 struct udc_numaker_data *priv = udc_get_private(dev); in numaker_usbd_ep_mgmt_find_ep() local
715 struct numaker_usbd_ep *ep_cur = priv->ep_pool; in numaker_usbd_ep_mgmt_find_ep()
716 struct numaker_usbd_ep *ep_end = priv->ep_pool + priv->ep_pool_size; in numaker_usbd_ep_mgmt_find_ep()
857 struct udc_numaker_data *priv = udc_get_private(dev); in numaker_usbd_ctrl_feed_dout() local
872 priv->ctrlout_tailroom = length; in numaker_usbd_ctrl_feed_dout()
943 struct udc_numaker_data *priv = udc_get_private(dev); in numaker_usbd_msg_handle_out() local
972 __ASSERT_NO_MSG(net_buf_tailroom(buf) >= priv->ctrlout_tailroom); in numaker_usbd_msg_handle_out()
973 data_len = priv->ctrlout_tailroom; in numaker_usbd_msg_handle_out()
981 __ASSERT_NO_MSG(priv->ctrlout_tailroom >= data_len); in numaker_usbd_msg_handle_out()
982 priv->ctrlout_tailroom -= data_len; in numaker_usbd_msg_handle_out()
991 if (ep == USB_CONTROL_EP_OUT && priv->ctrlout_tailroom != 0) { in numaker_usbd_msg_handle_out()
1140 struct udc_numaker_data *priv = udc_get_private(dev); in numaker_usbd_msg_handler() local
1145 if (k_msgq_get(priv->msgq, &msg, K_FOREVER)) { in numaker_usbd_msg_handler()
1189 struct udc_numaker_data *priv = udc_get_private(dev); in numaker_udbd_isr() local
1351 struct numaker_usbd_ep *ep_ctrlout = priv->ep_pool + 0; in numaker_udbd_isr()
1539 struct udc_numaker_data *priv = udc_get_private(dev); in udc_numaker_set_address() local
1547 priv->addr = addr; in udc_numaker_set_address()
1604 struct udc_numaker_data *priv = udc_get_private(dev); in udc_numaker_shutdown() local
1620 k_msgq_purge(priv->msgq); in udc_numaker_shutdown()
1750 struct udc_numaker_data *priv = udc_get_private(dev); \
1752 k_thread_create(&priv->thread_data, udc_numaker_stack_##inst, \
1757 k_thread_name_set(&priv->thread_data, dev->name); \
1798 .priv = &udc_priv_##inst, \