Lines Matching refs:dwc
704 struct dwc3 *dwc; member
752 struct dwc3 *dwc; member
1560 void dwc3_set_prtcap(struct dwc3 *dwc, u32 mode);
1561 void dwc3_set_mode(struct dwc3 *dwc, u32 mode);
1565 (dwc->ip == _ip##_IP)
1568 (DWC3_IP_IS(_ip) && dwc->revision == _ip##_REVISION_##_ver)
1571 (DWC3_IP_IS(_ip) && dwc->revision < _ip##_REVISION_##_ver)
1575 dwc->revision >= _ip##_REVISION_##_from && \
1577 dwc->revision <= _ip##_REVISION_##_to))
1581 dwc->version_type >= _ip##_VERSIONTYPE_##_from && \
1583 dwc->version_type <= _ip##_VERSIONTYPE_##_to))
1591 static inline u32 dwc3_mdwidth(struct dwc3 *dwc) in dwc3_mdwidth() argument
1595 mdwidth = DWC3_GHWPARAMS0_MDWIDTH(dwc->hwparams.hwparams0); in dwc3_mdwidth()
1597 mdwidth += DWC3_GHWPARAMS6_MDWIDTH(dwc->hwparams.hwparams6); in dwc3_mdwidth()
1602 bool dwc3_has_imod(struct dwc3 *dwc);
1604 int dwc3_event_buffers_setup(struct dwc3 *dwc);
1605 void dwc3_event_buffers_cleanup(struct dwc3 *dwc);
1607 int dwc3_core_soft_reset(struct dwc3 *dwc);
1608 void dwc3_enable_susphy(struct dwc3 *dwc, bool enable);
1611 int dwc3_host_init(struct dwc3 *dwc);
1612 void dwc3_host_exit(struct dwc3 *dwc);
1614 static inline int dwc3_host_init(struct dwc3 *dwc) in dwc3_host_init() argument
1616 static inline void dwc3_host_exit(struct dwc3 *dwc) in dwc3_host_exit() argument
1621 int dwc3_gadget_init(struct dwc3 *dwc);
1622 void dwc3_gadget_exit(struct dwc3 *dwc);
1623 int dwc3_gadget_set_test_mode(struct dwc3 *dwc, int mode);
1624 int dwc3_gadget_get_link_state(struct dwc3 *dwc);
1625 int dwc3_gadget_set_link_state(struct dwc3 *dwc, enum dwc3_link_state state);
1628 int dwc3_send_gadget_generic_command(struct dwc3 *dwc, unsigned int cmd,
1630 void dwc3_gadget_clear_tx_fifos(struct dwc3 *dwc);
1631 void dwc3_remove_requests(struct dwc3 *dwc, struct dwc3_ep *dep, int status);
1633 static inline int dwc3_gadget_init(struct dwc3 *dwc) in dwc3_gadget_init() argument
1635 static inline void dwc3_gadget_exit(struct dwc3 *dwc) in dwc3_gadget_exit() argument
1637 static inline int dwc3_gadget_set_test_mode(struct dwc3 *dwc, int mode) in dwc3_gadget_set_test_mode() argument
1639 static inline int dwc3_gadget_get_link_state(struct dwc3 *dwc) in dwc3_gadget_get_link_state() argument
1641 static inline int dwc3_gadget_set_link_state(struct dwc3 *dwc, in dwc3_gadget_set_link_state() argument
1648 static inline int dwc3_send_gadget_generic_command(struct dwc3 *dwc, in dwc3_send_gadget_generic_command() argument
1651 static inline void dwc3_gadget_clear_tx_fifos(struct dwc3 *dwc) in dwc3_gadget_clear_tx_fifos() argument
1656 int dwc3_drd_init(struct dwc3 *dwc);
1657 void dwc3_drd_exit(struct dwc3 *dwc);
1658 void dwc3_otg_init(struct dwc3 *dwc);
1659 void dwc3_otg_exit(struct dwc3 *dwc);
1660 void dwc3_otg_update(struct dwc3 *dwc, bool ignore_idstatus);
1661 void dwc3_otg_host_init(struct dwc3 *dwc);
1663 static inline int dwc3_drd_init(struct dwc3 *dwc) in dwc3_drd_init() argument
1665 static inline void dwc3_drd_exit(struct dwc3 *dwc) in dwc3_drd_exit() argument
1667 static inline void dwc3_otg_init(struct dwc3 *dwc) in dwc3_otg_init() argument
1669 static inline void dwc3_otg_exit(struct dwc3 *dwc) in dwc3_otg_exit() argument
1671 static inline void dwc3_otg_update(struct dwc3 *dwc, bool ignore_idstatus) in dwc3_otg_update() argument
1673 static inline void dwc3_otg_host_init(struct dwc3 *dwc) in dwc3_otg_host_init() argument
1679 int dwc3_gadget_suspend(struct dwc3 *dwc);
1680 int dwc3_gadget_resume(struct dwc3 *dwc);
1682 static inline int dwc3_gadget_suspend(struct dwc3 *dwc) in dwc3_gadget_suspend() argument
1687 static inline int dwc3_gadget_resume(struct dwc3 *dwc) in dwc3_gadget_resume() argument
1695 int dwc3_ulpi_init(struct dwc3 *dwc);
1696 void dwc3_ulpi_exit(struct dwc3 *dwc);
1698 static inline int dwc3_ulpi_init(struct dwc3 *dwc) in dwc3_ulpi_init() argument
1700 static inline void dwc3_ulpi_exit(struct dwc3 *dwc) in dwc3_ulpi_exit() argument