Lines Matching refs:dwc

666 	struct dwc3		*dwc;  member
714 struct dwc3 *dwc; member
1472 void dwc3_set_prtcap(struct dwc3 *dwc, u32 mode);
1473 void dwc3_set_mode(struct dwc3 *dwc, u32 mode);
1477 (dwc->ip == _ip##_IP)
1480 (DWC3_IP_IS(_ip) && dwc->revision == _ip##_REVISION_##_ver)
1483 (DWC3_IP_IS(_ip) && dwc->revision < _ip##_REVISION_##_ver)
1487 dwc->revision >= _ip##_REVISION_##_from && \
1489 dwc->revision <= _ip##_REVISION_##_to))
1493 dwc->version_type >= _ip##_VERSIONTYPE_##_from && \
1495 dwc->version_type <= _ip##_VERSIONTYPE_##_to))
1503 static inline u32 dwc3_mdwidth(struct dwc3 *dwc) in dwc3_mdwidth() argument
1507 mdwidth = DWC3_GHWPARAMS0_MDWIDTH(dwc->hwparams.hwparams0); in dwc3_mdwidth()
1509 mdwidth += DWC3_GHWPARAMS6_MDWIDTH(dwc->hwparams.hwparams6); in dwc3_mdwidth()
1514 bool dwc3_has_imod(struct dwc3 *dwc);
1516 int dwc3_event_buffers_setup(struct dwc3 *dwc);
1517 void dwc3_event_buffers_cleanup(struct dwc3 *dwc);
1520 int dwc3_host_init(struct dwc3 *dwc);
1521 void dwc3_host_exit(struct dwc3 *dwc);
1523 static inline int dwc3_host_init(struct dwc3 *dwc) in dwc3_host_init() argument
1525 static inline void dwc3_host_exit(struct dwc3 *dwc) in dwc3_host_exit() argument
1530 int dwc3_gadget_init(struct dwc3 *dwc);
1531 void dwc3_gadget_exit(struct dwc3 *dwc);
1532 int dwc3_gadget_set_test_mode(struct dwc3 *dwc, int mode);
1533 int dwc3_gadget_get_link_state(struct dwc3 *dwc);
1534 int dwc3_gadget_set_link_state(struct dwc3 *dwc, enum dwc3_link_state state);
1537 int dwc3_send_gadget_generic_command(struct dwc3 *dwc, unsigned int cmd,
1539 void dwc3_gadget_clear_tx_fifos(struct dwc3 *dwc);
1541 static inline int dwc3_gadget_init(struct dwc3 *dwc) in dwc3_gadget_init() argument
1543 static inline void dwc3_gadget_exit(struct dwc3 *dwc) in dwc3_gadget_exit() argument
1545 static inline int dwc3_gadget_set_test_mode(struct dwc3 *dwc, int mode) in dwc3_gadget_set_test_mode() argument
1547 static inline int dwc3_gadget_get_link_state(struct dwc3 *dwc) in dwc3_gadget_get_link_state() argument
1549 static inline int dwc3_gadget_set_link_state(struct dwc3 *dwc, in dwc3_gadget_set_link_state() argument
1556 static inline int dwc3_send_gadget_generic_command(struct dwc3 *dwc, in dwc3_send_gadget_generic_command() argument
1559 static inline void dwc3_gadget_clear_tx_fifos(struct dwc3 *dwc) in dwc3_gadget_clear_tx_fifos() argument
1564 int dwc3_drd_init(struct dwc3 *dwc);
1565 void dwc3_drd_exit(struct dwc3 *dwc);
1566 void dwc3_otg_init(struct dwc3 *dwc);
1567 void dwc3_otg_exit(struct dwc3 *dwc);
1568 void dwc3_otg_update(struct dwc3 *dwc, bool ignore_idstatus);
1569 void dwc3_otg_host_init(struct dwc3 *dwc);
1571 static inline int dwc3_drd_init(struct dwc3 *dwc) in dwc3_drd_init() argument
1573 static inline void dwc3_drd_exit(struct dwc3 *dwc) in dwc3_drd_exit() argument
1575 static inline void dwc3_otg_init(struct dwc3 *dwc) in dwc3_otg_init() argument
1577 static inline void dwc3_otg_exit(struct dwc3 *dwc) in dwc3_otg_exit() argument
1579 static inline void dwc3_otg_update(struct dwc3 *dwc, bool ignore_idstatus) in dwc3_otg_update() argument
1581 static inline void dwc3_otg_host_init(struct dwc3 *dwc) in dwc3_otg_host_init() argument
1587 int dwc3_gadget_suspend(struct dwc3 *dwc);
1588 int dwc3_gadget_resume(struct dwc3 *dwc);
1589 void dwc3_gadget_process_pending_events(struct dwc3 *dwc);
1591 static inline int dwc3_gadget_suspend(struct dwc3 *dwc) in dwc3_gadget_suspend() argument
1596 static inline int dwc3_gadget_resume(struct dwc3 *dwc) in dwc3_gadget_resume() argument
1601 static inline void dwc3_gadget_process_pending_events(struct dwc3 *dwc) in dwc3_gadget_process_pending_events() argument
1607 int dwc3_ulpi_init(struct dwc3 *dwc);
1608 void dwc3_ulpi_exit(struct dwc3 *dwc);
1610 static inline int dwc3_ulpi_init(struct dwc3 *dwc) in dwc3_ulpi_init() argument
1612 static inline void dwc3_ulpi_exit(struct dwc3 *dwc) in dwc3_ulpi_exit() argument