Lines Matching full:dwc
678 * @dwc: pointer to DWC controller
692 struct dwc3 *dwc; member
714 * @dwc: pointer to DWC controller
740 struct dwc3 *dwc; member
866 * @ctrl: DWC-F
1531 void dwc3_set_prtcap(struct dwc3 *dwc, u32 mode);
1532 void dwc3_set_mode(struct dwc3 *dwc, u32 mode);
1536 (dwc->ip == _ip##_IP)
1539 (DWC3_IP_IS(_ip) && dwc->revision == _ip##_REVISION_##_ver)
1542 (DWC3_IP_IS(_ip) && dwc->revision < _ip##_REVISION_##_ver)
1546 dwc->revision >= _ip##_REVISION_##_from && \
1548 dwc->revision <= _ip##_REVISION_##_to))
1552 dwc->version_type >= _ip##_VERSIONTYPE_##_from && \
1554 dwc->version_type <= _ip##_VERSIONTYPE_##_to))
1558 * @dwc: pointer to our context structure
1562 static inline u32 dwc3_mdwidth(struct dwc3 *dwc) in dwc3_mdwidth() argument
1566 mdwidth = DWC3_GHWPARAMS0_MDWIDTH(dwc->hwparams.hwparams0); in dwc3_mdwidth()
1568 mdwidth += DWC3_GHWPARAMS6_MDWIDTH(dwc->hwparams.hwparams6); in dwc3_mdwidth()
1573 bool dwc3_has_imod(struct dwc3 *dwc);
1575 int dwc3_event_buffers_setup(struct dwc3 *dwc);
1576 void dwc3_event_buffers_cleanup(struct dwc3 *dwc);
1578 int dwc3_core_soft_reset(struct dwc3 *dwc);
1581 int dwc3_host_init(struct dwc3 *dwc);
1582 void dwc3_host_exit(struct dwc3 *dwc);
1584 static inline int dwc3_host_init(struct dwc3 *dwc) in dwc3_host_init() argument
1586 static inline void dwc3_host_exit(struct dwc3 *dwc) in dwc3_host_exit() argument
1591 int dwc3_gadget_init(struct dwc3 *dwc);
1592 void dwc3_gadget_exit(struct dwc3 *dwc);
1593 int dwc3_gadget_set_test_mode(struct dwc3 *dwc, int mode);
1594 int dwc3_gadget_get_link_state(struct dwc3 *dwc);
1595 int dwc3_gadget_set_link_state(struct dwc3 *dwc, enum dwc3_link_state state);
1598 int dwc3_send_gadget_generic_command(struct dwc3 *dwc, unsigned int cmd,
1600 void dwc3_gadget_clear_tx_fifos(struct dwc3 *dwc);
1601 void dwc3_remove_requests(struct dwc3 *dwc, struct dwc3_ep *dep, int status);
1603 static inline int dwc3_gadget_init(struct dwc3 *dwc) in dwc3_gadget_init() argument
1605 static inline void dwc3_gadget_exit(struct dwc3 *dwc) in dwc3_gadget_exit() argument
1607 static inline int dwc3_gadget_set_test_mode(struct dwc3 *dwc, int mode) in dwc3_gadget_set_test_mode() argument
1609 static inline int dwc3_gadget_get_link_state(struct dwc3 *dwc) in dwc3_gadget_get_link_state() argument
1611 static inline int dwc3_gadget_set_link_state(struct dwc3 *dwc, in dwc3_gadget_set_link_state() argument
1618 static inline int dwc3_send_gadget_generic_command(struct dwc3 *dwc, in dwc3_send_gadget_generic_command() argument
1621 static inline void dwc3_gadget_clear_tx_fifos(struct dwc3 *dwc) in dwc3_gadget_clear_tx_fifos() argument
1626 int dwc3_drd_init(struct dwc3 *dwc);
1627 void dwc3_drd_exit(struct dwc3 *dwc);
1628 void dwc3_otg_init(struct dwc3 *dwc);
1629 void dwc3_otg_exit(struct dwc3 *dwc);
1630 void dwc3_otg_update(struct dwc3 *dwc, bool ignore_idstatus);
1631 void dwc3_otg_host_init(struct dwc3 *dwc);
1633 static inline int dwc3_drd_init(struct dwc3 *dwc) in dwc3_drd_init() argument
1635 static inline void dwc3_drd_exit(struct dwc3 *dwc) in dwc3_drd_exit() argument
1637 static inline void dwc3_otg_init(struct dwc3 *dwc) in dwc3_otg_init() argument
1639 static inline void dwc3_otg_exit(struct dwc3 *dwc) in dwc3_otg_exit() argument
1641 static inline void dwc3_otg_update(struct dwc3 *dwc, bool ignore_idstatus) in dwc3_otg_update() argument
1643 static inline void dwc3_otg_host_init(struct dwc3 *dwc) in dwc3_otg_host_init() argument
1649 int dwc3_gadget_suspend(struct dwc3 *dwc);
1650 int dwc3_gadget_resume(struct dwc3 *dwc);
1651 void dwc3_gadget_process_pending_events(struct dwc3 *dwc);
1653 static inline int dwc3_gadget_suspend(struct dwc3 *dwc) in dwc3_gadget_suspend() argument
1658 static inline int dwc3_gadget_resume(struct dwc3 *dwc) in dwc3_gadget_resume() argument
1663 static inline void dwc3_gadget_process_pending_events(struct dwc3 *dwc) in dwc3_gadget_process_pending_events() argument
1669 int dwc3_ulpi_init(struct dwc3 *dwc);
1670 void dwc3_ulpi_exit(struct dwc3 *dwc);
1672 static inline int dwc3_ulpi_init(struct dwc3 *dwc) in dwc3_ulpi_init() argument
1674 static inline void dwc3_ulpi_exit(struct dwc3 *dwc) in dwc3_ulpi_exit() argument