Lines Matching refs:ep_cfg
764 int usb_dc_ep_configure(const struct usb_dc_ep_cfg_data * const ep_cfg) in usb_dc_ep_configure() argument
766 uint8_t ep = ep_cfg->ep_addr; in usb_dc_ep_configure()
774 ep_cfg->ep_addr, ep_state->ep_mps, ep_cfg->ep_mps, in usb_dc_ep_configure()
775 ep_cfg->ep_type); in usb_dc_ep_configure()
777 if (ep_cfg->ep_mps > ep_state->ep_pma_buf_len) { in usb_dc_ep_configure()
778 if (ep_cfg->ep_type == USB_DC_EP_ISOCHRONOUS) { in usb_dc_ep_configure()
780 (usb_dc_stm32_state.pma_offset + ep_cfg->ep_mps*2)) { in usb_dc_ep_configure()
784 (usb_dc_stm32_state.pma_offset + ep_cfg->ep_mps)) { in usb_dc_ep_configure()
788 if (ep_cfg->ep_type == USB_DC_EP_ISOCHRONOUS) { in usb_dc_ep_configure()
791 ((usb_dc_stm32_state.pma_offset + ep_cfg->ep_mps) << 16)); in usb_dc_ep_configure()
792 ep_state->ep_pma_buf_len = ep_cfg->ep_mps*2; in usb_dc_ep_configure()
793 usb_dc_stm32_state.pma_offset += ep_cfg->ep_mps*2; in usb_dc_ep_configure()
797 ep_state->ep_pma_buf_len = ep_cfg->ep_mps; in usb_dc_ep_configure()
798 usb_dc_stm32_state.pma_offset += ep_cfg->ep_mps; in usb_dc_ep_configure()
801 if (ep_cfg->ep_type == USB_DC_EP_ISOCHRONOUS) { in usb_dc_ep_configure()
802 ep_state->ep_mps = ep_cfg->ep_mps*2; in usb_dc_ep_configure()
804 ep_state->ep_mps = ep_cfg->ep_mps; in usb_dc_ep_configure()
807 ep_state->ep_mps = ep_cfg->ep_mps; in usb_dc_ep_configure()
810 switch (ep_cfg->ep_type) { in usb_dc_ep_configure()