Lines Matching refs:dwc
678 struct dwc3 *dwc; member
726 struct dwc3 *dwc; member
1499 void dwc3_set_prtcap(struct dwc3 *dwc, u32 mode);
1500 void dwc3_set_mode(struct dwc3 *dwc, u32 mode);
1504 (dwc->ip == _ip##_IP)
1507 (DWC3_IP_IS(_ip) && dwc->revision == _ip##_REVISION_##_ver)
1510 (DWC3_IP_IS(_ip) && dwc->revision < _ip##_REVISION_##_ver)
1514 dwc->revision >= _ip##_REVISION_##_from && \
1516 dwc->revision <= _ip##_REVISION_##_to))
1520 dwc->version_type >= _ip##_VERSIONTYPE_##_from && \
1522 dwc->version_type <= _ip##_VERSIONTYPE_##_to))
1530 static inline u32 dwc3_mdwidth(struct dwc3 *dwc) in dwc3_mdwidth() argument
1534 mdwidth = DWC3_GHWPARAMS0_MDWIDTH(dwc->hwparams.hwparams0); in dwc3_mdwidth()
1536 mdwidth += DWC3_GHWPARAMS6_MDWIDTH(dwc->hwparams.hwparams6); in dwc3_mdwidth()
1541 bool dwc3_has_imod(struct dwc3 *dwc);
1543 int dwc3_event_buffers_setup(struct dwc3 *dwc);
1544 void dwc3_event_buffers_cleanup(struct dwc3 *dwc);
1546 int dwc3_core_soft_reset(struct dwc3 *dwc);
1549 int dwc3_host_init(struct dwc3 *dwc);
1550 void dwc3_host_exit(struct dwc3 *dwc);
1552 static inline int dwc3_host_init(struct dwc3 *dwc) in dwc3_host_init() argument
1554 static inline void dwc3_host_exit(struct dwc3 *dwc) in dwc3_host_exit() argument
1559 int dwc3_gadget_init(struct dwc3 *dwc);
1560 void dwc3_gadget_exit(struct dwc3 *dwc);
1561 int dwc3_gadget_set_test_mode(struct dwc3 *dwc, int mode);
1562 int dwc3_gadget_get_link_state(struct dwc3 *dwc);
1563 int dwc3_gadget_set_link_state(struct dwc3 *dwc, enum dwc3_link_state state);
1566 int dwc3_send_gadget_generic_command(struct dwc3 *dwc, unsigned int cmd,
1568 void dwc3_gadget_clear_tx_fifos(struct dwc3 *dwc);
1569 void dwc3_remove_requests(struct dwc3 *dwc, struct dwc3_ep *dep, int status);
1571 static inline int dwc3_gadget_init(struct dwc3 *dwc) in dwc3_gadget_init() argument
1573 static inline void dwc3_gadget_exit(struct dwc3 *dwc) in dwc3_gadget_exit() argument
1575 static inline int dwc3_gadget_set_test_mode(struct dwc3 *dwc, int mode) in dwc3_gadget_set_test_mode() argument
1577 static inline int dwc3_gadget_get_link_state(struct dwc3 *dwc) in dwc3_gadget_get_link_state() argument
1579 static inline int dwc3_gadget_set_link_state(struct dwc3 *dwc, in dwc3_gadget_set_link_state() argument
1586 static inline int dwc3_send_gadget_generic_command(struct dwc3 *dwc, in dwc3_send_gadget_generic_command() argument
1589 static inline void dwc3_gadget_clear_tx_fifos(struct dwc3 *dwc) in dwc3_gadget_clear_tx_fifos() argument
1594 int dwc3_drd_init(struct dwc3 *dwc);
1595 void dwc3_drd_exit(struct dwc3 *dwc);
1596 void dwc3_otg_init(struct dwc3 *dwc);
1597 void dwc3_otg_exit(struct dwc3 *dwc);
1598 void dwc3_otg_update(struct dwc3 *dwc, bool ignore_idstatus);
1599 void dwc3_otg_host_init(struct dwc3 *dwc);
1601 static inline int dwc3_drd_init(struct dwc3 *dwc) in dwc3_drd_init() argument
1603 static inline void dwc3_drd_exit(struct dwc3 *dwc) in dwc3_drd_exit() argument
1605 static inline void dwc3_otg_init(struct dwc3 *dwc) in dwc3_otg_init() argument
1607 static inline void dwc3_otg_exit(struct dwc3 *dwc) in dwc3_otg_exit() argument
1609 static inline void dwc3_otg_update(struct dwc3 *dwc, bool ignore_idstatus) in dwc3_otg_update() argument
1611 static inline void dwc3_otg_host_init(struct dwc3 *dwc) in dwc3_otg_host_init() argument
1617 int dwc3_gadget_suspend(struct dwc3 *dwc);
1618 int dwc3_gadget_resume(struct dwc3 *dwc);
1619 void dwc3_gadget_process_pending_events(struct dwc3 *dwc);
1621 static inline int dwc3_gadget_suspend(struct dwc3 *dwc) in dwc3_gadget_suspend() argument
1626 static inline int dwc3_gadget_resume(struct dwc3 *dwc) in dwc3_gadget_resume() argument
1631 static inline void dwc3_gadget_process_pending_events(struct dwc3 *dwc) in dwc3_gadget_process_pending_events() argument
1637 int dwc3_ulpi_init(struct dwc3 *dwc);
1638 void dwc3_ulpi_exit(struct dwc3 *dwc);
1640 static inline int dwc3_ulpi_init(struct dwc3 *dwc) in dwc3_ulpi_init() argument
1642 static inline void dwc3_ulpi_exit(struct dwc3 *dwc) in dwc3_ulpi_exit() argument