Lines Matching refs:ep_cfg
391 struct udc_ep_config *ep_cfg = udc_get_ep_cfg(dev, USB_CONTROL_EP_OUT); in dwc2_ctrl_feed_dout() local
405 udc_buf_put(ep_cfg, buf); in dwc2_ctrl_feed_dout()
2421 struct udc_ep_config *ep_cfg; in dwc2_handle_rxflvl() local
2440 ep_cfg = udc_get_ep_cfg(dev, ep); in dwc2_handle_rxflvl()
2442 buf = udc_buf_peek(dev, ep_cfg->addr); in dwc2_handle_rxflvl()
2464 struct udc_ep_config *ep_cfg; in dwc2_handle_in_xfercompl() local
2467 ep_cfg = udc_get_ep_cfg(dev, ep_idx | USB_EP_DIR_IN); in dwc2_handle_in_xfercompl()
2468 buf = udc_buf_peek(dev, ep_cfg->addr); in dwc2_handle_in_xfercompl()
2475 if (buf->len && dwc2_tx_fifo_write(dev, ep_cfg, buf) == 0) { in dwc2_handle_in_xfercompl()
2521 struct udc_ep_config *ep_cfg = udc_get_ep_cfg(dev, ep_idx); in dwc2_handle_out_xfercompl() local
2527 const bool is_iso = dwc2_ep_is_iso(ep_cfg); in dwc2_handle_out_xfercompl()
2531 buf = udc_buf_peek(dev, ep_cfg->addr); in dwc2_handle_out_xfercompl()
2533 LOG_ERR("No buffer for ep 0x%02x", ep_cfg->addr); in dwc2_handle_out_xfercompl()
2581 if (!is_iso && bcnt && (bcnt % udc_mps_ep_size(ep_cfg)) == 0 && in dwc2_handle_out_xfercompl()
2583 dwc2_prep_rx(dev, buf, ep_cfg); in dwc2_handle_out_xfercompl()
2953 struct udc_ep_config *ep_cfg; in dwc2_thread_handler() local
2982 ep_cfg = udc_get_ep_cfg(dev, ep); in dwc2_thread_handler()
2984 if (!udc_ep_is_busy(dev, ep_cfg->addr)) { in dwc2_thread_handler()
2985 dwc2_handle_xfer_next(dev, ep_cfg); in dwc2_thread_handler()
2987 LOG_DBG("ep 0x%02x busy", ep_cfg->addr); in dwc2_thread_handler()
3005 ep_cfg = udc_get_ep_cfg(dev, ep); in dwc2_thread_handler()
3009 dwc2_handle_evt_din(dev, ep_cfg); in dwc2_thread_handler()
3011 LOG_DBG("DOUT event ep 0x%02x", ep_cfg->addr); in dwc2_thread_handler()
3012 dwc2_handle_evt_dout(dev, ep_cfg); in dwc2_thread_handler()
3015 if (!udc_ep_is_busy(dev, ep_cfg->addr)) { in dwc2_thread_handler()
3016 dwc2_handle_xfer_next(dev, ep_cfg); in dwc2_thread_handler()
3018 LOG_DBG("ep 0x%02x busy", ep_cfg->addr); in dwc2_thread_handler()