Lines Matching full:dwc3
77 /* DWC3 registers memory space boundries */
688 struct dwc3 *dwc;
736 struct dwc3 *dwc;
933 * @status: internal dwc3 request status tracking
983 * struct dwc3 - representation of our controller
1075 * @sysdev_is_parent: true when dwc3 device has a parent driver
1083 * @do_fifo_resize: true when txfifo resizing is enabled for dwc3 endpoints
1146 struct dwc3 { struct
1374 #define work_to_dwc(w) (container_of((w), struct dwc3, drd_work)) argument
1525 * DWC3 Features to be used as Driver Data
1533 void dwc3_set_prtcap(struct dwc3 *dwc, u32 mode);
1534 void dwc3_set_mode(struct dwc3 *dwc, u32 mode);
1564 static inline u32 dwc3_mdwidth(struct dwc3 *dwc) in dwc3_mdwidth()
1575 bool dwc3_has_imod(struct dwc3 *dwc);
1577 int dwc3_event_buffers_setup(struct dwc3 *dwc);
1578 void dwc3_event_buffers_cleanup(struct dwc3 *dwc);
1580 int dwc3_core_soft_reset(struct dwc3 *dwc);
1581 void dwc3_enable_susphy(struct dwc3 *dwc, bool enable);
1584 int dwc3_host_init(struct dwc3 *dwc);
1585 void dwc3_host_exit(struct dwc3 *dwc);
1587 static inline int dwc3_host_init(struct dwc3 *dwc) in dwc3_host_init()
1589 static inline void dwc3_host_exit(struct dwc3 *dwc) in dwc3_host_exit()
1594 int dwc3_gadget_init(struct dwc3 *dwc);
1595 void dwc3_gadget_exit(struct dwc3 *dwc);
1596 int dwc3_gadget_set_test_mode(struct dwc3 *dwc, int mode);
1597 int dwc3_gadget_get_link_state(struct dwc3 *dwc);
1598 int dwc3_gadget_set_link_state(struct dwc3 *dwc, enum dwc3_link_state state);
1601 int dwc3_send_gadget_generic_command(struct dwc3 *dwc, unsigned int cmd,
1603 void dwc3_gadget_clear_tx_fifos(struct dwc3 *dwc);
1604 void dwc3_remove_requests(struct dwc3 *dwc, struct dwc3_ep *dep, int status);
1606 static inline int dwc3_gadget_init(struct dwc3 *dwc) in dwc3_gadget_init()
1608 static inline void dwc3_gadget_exit(struct dwc3 *dwc) in dwc3_gadget_exit()
1610 static inline int dwc3_gadget_set_test_mode(struct dwc3 *dwc, int mode) in dwc3_gadget_set_test_mode()
1612 static inline int dwc3_gadget_get_link_state(struct dwc3 *dwc) in dwc3_gadget_get_link_state()
1614 static inline int dwc3_gadget_set_link_state(struct dwc3 *dwc, in dwc3_gadget_set_link_state()
1621 static inline int dwc3_send_gadget_generic_command(struct dwc3 *dwc, in dwc3_send_gadget_generic_command()
1624 static inline void dwc3_gadget_clear_tx_fifos(struct dwc3 *dwc) in dwc3_gadget_clear_tx_fifos()
1629 int dwc3_drd_init(struct dwc3 *dwc);
1630 void dwc3_drd_exit(struct dwc3 *dwc);
1631 void dwc3_otg_init(struct dwc3 *dwc);
1632 void dwc3_otg_exit(struct dwc3 *dwc);
1633 void dwc3_otg_update(struct dwc3 *dwc, bool ignore_idstatus);
1634 void dwc3_otg_host_init(struct dwc3 *dwc);
1636 static inline int dwc3_drd_init(struct dwc3 *dwc) in dwc3_drd_init()
1638 static inline void dwc3_drd_exit(struct dwc3 *dwc) in dwc3_drd_exit()
1640 static inline void dwc3_otg_init(struct dwc3 *dwc) in dwc3_otg_init()
1642 static inline void dwc3_otg_exit(struct dwc3 *dwc) in dwc3_otg_exit()
1644 static inline void dwc3_otg_update(struct dwc3 *dwc, bool ignore_idstatus) in dwc3_otg_update()
1646 static inline void dwc3_otg_host_init(struct dwc3 *dwc) in dwc3_otg_host_init()
1652 int dwc3_gadget_suspend(struct dwc3 *dwc);
1653 int dwc3_gadget_resume(struct dwc3 *dwc);
1655 static inline int dwc3_gadget_suspend(struct dwc3 *dwc) in dwc3_gadget_suspend()
1660 static inline int dwc3_gadget_resume(struct dwc3 *dwc) in dwc3_gadget_resume()
1668 int dwc3_ulpi_init(struct dwc3 *dwc);
1669 void dwc3_ulpi_exit(struct dwc3 *dwc);
1671 static inline int dwc3_ulpi_init(struct dwc3 *dwc) in dwc3_ulpi_init()
1673 static inline void dwc3_ulpi_exit(struct dwc3 *dwc) in dwc3_ulpi_exit()