Lines Matching refs:dwc
662 struct dwc3 *dwc; member
710 struct dwc3 *dwc; member
1463 void dwc3_set_prtcap(struct dwc3 *dwc, u32 mode);
1464 void dwc3_set_mode(struct dwc3 *dwc, u32 mode);
1468 (dwc->ip == _ip##_IP)
1471 (DWC3_IP_IS(_ip) && dwc->revision == _ip##_REVISION_##_ver)
1474 (DWC3_IP_IS(_ip) && dwc->revision < _ip##_REVISION_##_ver)
1478 dwc->revision >= _ip##_REVISION_##_from && \
1480 dwc->revision <= _ip##_REVISION_##_to))
1484 dwc->version_type >= _ip##_VERSIONTYPE_##_from && \
1486 dwc->version_type <= _ip##_VERSIONTYPE_##_to))
1494 static inline u32 dwc3_mdwidth(struct dwc3 *dwc) in dwc3_mdwidth() argument
1498 mdwidth = DWC3_GHWPARAMS0_MDWIDTH(dwc->hwparams.hwparams0); in dwc3_mdwidth()
1500 mdwidth += DWC3_GHWPARAMS6_MDWIDTH(dwc->hwparams.hwparams6); in dwc3_mdwidth()
1505 bool dwc3_has_imod(struct dwc3 *dwc);
1507 int dwc3_event_buffers_setup(struct dwc3 *dwc);
1508 void dwc3_event_buffers_cleanup(struct dwc3 *dwc);
1511 int dwc3_host_init(struct dwc3 *dwc);
1512 void dwc3_host_exit(struct dwc3 *dwc);
1514 static inline int dwc3_host_init(struct dwc3 *dwc) in dwc3_host_init() argument
1516 static inline void dwc3_host_exit(struct dwc3 *dwc) in dwc3_host_exit() argument
1521 int dwc3_gadget_init(struct dwc3 *dwc);
1522 void dwc3_gadget_exit(struct dwc3 *dwc);
1523 int dwc3_gadget_set_test_mode(struct dwc3 *dwc, int mode);
1524 int dwc3_gadget_get_link_state(struct dwc3 *dwc);
1525 int dwc3_gadget_set_link_state(struct dwc3 *dwc, enum dwc3_link_state state);
1528 int dwc3_send_gadget_generic_command(struct dwc3 *dwc, unsigned int cmd,
1530 void dwc3_gadget_clear_tx_fifos(struct dwc3 *dwc);
1532 static inline int dwc3_gadget_init(struct dwc3 *dwc) in dwc3_gadget_init() argument
1534 static inline void dwc3_gadget_exit(struct dwc3 *dwc) in dwc3_gadget_exit() argument
1536 static inline int dwc3_gadget_set_test_mode(struct dwc3 *dwc, int mode) in dwc3_gadget_set_test_mode() argument
1538 static inline int dwc3_gadget_get_link_state(struct dwc3 *dwc) in dwc3_gadget_get_link_state() argument
1540 static inline int dwc3_gadget_set_link_state(struct dwc3 *dwc, in dwc3_gadget_set_link_state() argument
1547 static inline int dwc3_send_gadget_generic_command(struct dwc3 *dwc, in dwc3_send_gadget_generic_command() argument
1550 static inline void dwc3_gadget_clear_tx_fifos(struct dwc3 *dwc) in dwc3_gadget_clear_tx_fifos() argument
1555 int dwc3_drd_init(struct dwc3 *dwc);
1556 void dwc3_drd_exit(struct dwc3 *dwc);
1557 void dwc3_otg_init(struct dwc3 *dwc);
1558 void dwc3_otg_exit(struct dwc3 *dwc);
1559 void dwc3_otg_update(struct dwc3 *dwc, bool ignore_idstatus);
1560 void dwc3_otg_host_init(struct dwc3 *dwc);
1562 static inline int dwc3_drd_init(struct dwc3 *dwc) in dwc3_drd_init() argument
1564 static inline void dwc3_drd_exit(struct dwc3 *dwc) in dwc3_drd_exit() argument
1566 static inline void dwc3_otg_init(struct dwc3 *dwc) in dwc3_otg_init() argument
1568 static inline void dwc3_otg_exit(struct dwc3 *dwc) in dwc3_otg_exit() argument
1570 static inline void dwc3_otg_update(struct dwc3 *dwc, bool ignore_idstatus) in dwc3_otg_update() argument
1572 static inline void dwc3_otg_host_init(struct dwc3 *dwc) in dwc3_otg_host_init() argument
1578 int dwc3_gadget_suspend(struct dwc3 *dwc);
1579 int dwc3_gadget_resume(struct dwc3 *dwc);
1580 void dwc3_gadget_process_pending_events(struct dwc3 *dwc);
1582 static inline int dwc3_gadget_suspend(struct dwc3 *dwc) in dwc3_gadget_suspend() argument
1587 static inline int dwc3_gadget_resume(struct dwc3 *dwc) in dwc3_gadget_resume() argument
1592 static inline void dwc3_gadget_process_pending_events(struct dwc3 *dwc) in dwc3_gadget_process_pending_events() argument
1598 int dwc3_ulpi_init(struct dwc3 *dwc);
1599 void dwc3_ulpi_exit(struct dwc3 *dwc);
1601 static inline int dwc3_ulpi_init(struct dwc3 *dwc) in dwc3_ulpi_init() argument
1603 static inline void dwc3_ulpi_exit(struct dwc3 *dwc) in dwc3_ulpi_exit() argument