Lines Matching full:dwc

692  * @dwc: pointer to DWC controller
706 struct dwc3 *dwc; member
729 * @dwc: pointer to DWC controller
756 struct dwc3 *dwc; member
883 * @ctrl: DWC-F
1561 void dwc3_set_prtcap(struct dwc3 *dwc, u32 mode, bool ignore_susphy);
1562 void dwc3_set_mode(struct dwc3 *dwc, u32 mode);
1566 (dwc->ip == _ip##_IP)
1569 (DWC3_IP_IS(_ip) && dwc->revision == _ip##_REVISION_##_ver)
1572 (DWC3_IP_IS(_ip) && dwc->revision < _ip##_REVISION_##_ver)
1576 dwc->revision >= _ip##_REVISION_##_from && \
1578 dwc->revision <= _ip##_REVISION_##_to))
1582 dwc->version_type >= _ip##_VERSIONTYPE_##_from && \
1584 dwc->version_type <= _ip##_VERSIONTYPE_##_to))
1588 * @dwc: pointer to our context structure
1592 static inline u32 dwc3_mdwidth(struct dwc3 *dwc) in dwc3_mdwidth() argument
1596 mdwidth = DWC3_GHWPARAMS0_MDWIDTH(dwc->hwparams.hwparams0); in dwc3_mdwidth()
1598 mdwidth += DWC3_GHWPARAMS6_MDWIDTH(dwc->hwparams.hwparams6); in dwc3_mdwidth()
1603 bool dwc3_has_imod(struct dwc3 *dwc);
1605 int dwc3_event_buffers_setup(struct dwc3 *dwc);
1606 void dwc3_event_buffers_cleanup(struct dwc3 *dwc);
1608 int dwc3_core_soft_reset(struct dwc3 *dwc);
1609 void dwc3_enable_susphy(struct dwc3 *dwc, bool enable);
1612 int dwc3_host_init(struct dwc3 *dwc);
1613 void dwc3_host_exit(struct dwc3 *dwc);
1615 static inline int dwc3_host_init(struct dwc3 *dwc) in dwc3_host_init() argument
1617 static inline void dwc3_host_exit(struct dwc3 *dwc) in dwc3_host_exit() argument
1622 int dwc3_gadget_init(struct dwc3 *dwc);
1623 void dwc3_gadget_exit(struct dwc3 *dwc);
1624 int dwc3_gadget_set_test_mode(struct dwc3 *dwc, int mode);
1625 int dwc3_gadget_get_link_state(struct dwc3 *dwc);
1626 int dwc3_gadget_set_link_state(struct dwc3 *dwc, enum dwc3_link_state state);
1629 int dwc3_send_gadget_generic_command(struct dwc3 *dwc, unsigned int cmd,
1631 void dwc3_gadget_clear_tx_fifos(struct dwc3 *dwc);
1632 void dwc3_remove_requests(struct dwc3 *dwc, struct dwc3_ep *dep, int status);
1634 static inline int dwc3_gadget_init(struct dwc3 *dwc) in dwc3_gadget_init() argument
1636 static inline void dwc3_gadget_exit(struct dwc3 *dwc) in dwc3_gadget_exit() argument
1638 static inline int dwc3_gadget_set_test_mode(struct dwc3 *dwc, int mode) in dwc3_gadget_set_test_mode() argument
1640 static inline int dwc3_gadget_get_link_state(struct dwc3 *dwc) in dwc3_gadget_get_link_state() argument
1642 static inline int dwc3_gadget_set_link_state(struct dwc3 *dwc, in dwc3_gadget_set_link_state() argument
1649 static inline int dwc3_send_gadget_generic_command(struct dwc3 *dwc, in dwc3_send_gadget_generic_command() argument
1652 static inline void dwc3_gadget_clear_tx_fifos(struct dwc3 *dwc) in dwc3_gadget_clear_tx_fifos() argument
1657 int dwc3_drd_init(struct dwc3 *dwc);
1658 void dwc3_drd_exit(struct dwc3 *dwc);
1659 void dwc3_otg_init(struct dwc3 *dwc);
1660 void dwc3_otg_exit(struct dwc3 *dwc);
1661 void dwc3_otg_update(struct dwc3 *dwc, bool ignore_idstatus);
1662 void dwc3_otg_host_init(struct dwc3 *dwc);
1664 static inline int dwc3_drd_init(struct dwc3 *dwc) in dwc3_drd_init() argument
1666 static inline void dwc3_drd_exit(struct dwc3 *dwc) in dwc3_drd_exit() argument
1668 static inline void dwc3_otg_init(struct dwc3 *dwc) in dwc3_otg_init() argument
1670 static inline void dwc3_otg_exit(struct dwc3 *dwc) in dwc3_otg_exit() argument
1672 static inline void dwc3_otg_update(struct dwc3 *dwc, bool ignore_idstatus) in dwc3_otg_update() argument
1674 static inline void dwc3_otg_host_init(struct dwc3 *dwc) in dwc3_otg_host_init() argument
1680 int dwc3_gadget_suspend(struct dwc3 *dwc);
1681 int dwc3_gadget_resume(struct dwc3 *dwc);
1683 static inline int dwc3_gadget_suspend(struct dwc3 *dwc) in dwc3_gadget_suspend() argument
1688 static inline int dwc3_gadget_resume(struct dwc3 *dwc) in dwc3_gadget_resume() argument
1696 int dwc3_ulpi_init(struct dwc3 *dwc);
1697 void dwc3_ulpi_exit(struct dwc3 *dwc);
1699 static inline int dwc3_ulpi_init(struct dwc3 *dwc) in dwc3_ulpi_init() argument
1701 static inline void dwc3_ulpi_exit(struct dwc3 *dwc) in dwc3_ulpi_exit() argument