Lines Matching full:dwc3
77 /* DWC3 registers memory space boundries */
688 struct dwc3 *dwc;
736 struct dwc3 *dwc;
929 * @status: internal dwc3 request status tracking
979 * struct dwc3 - representation of our controller
1071 * @sysdev_is_parent: true when dwc3 device has a parent driver
1079 * @do_fifo_resize: true when txfifo resizing is enabled for dwc3 endpoints
1142 struct dwc3 { struct
1370 #define work_to_dwc(w) (container_of((w), struct dwc3, drd_work)) argument
1521 * DWC3 Features to be used as Driver Data
1529 void dwc3_set_prtcap(struct dwc3 *dwc, u32 mode);
1530 void dwc3_set_mode(struct dwc3 *dwc, u32 mode);
1560 static inline u32 dwc3_mdwidth(struct dwc3 *dwc) in dwc3_mdwidth()
1571 bool dwc3_has_imod(struct dwc3 *dwc);
1573 int dwc3_event_buffers_setup(struct dwc3 *dwc);
1574 void dwc3_event_buffers_cleanup(struct dwc3 *dwc);
1576 int dwc3_core_soft_reset(struct dwc3 *dwc);
1577 void dwc3_enable_susphy(struct dwc3 *dwc, bool enable);
1580 int dwc3_host_init(struct dwc3 *dwc);
1581 void dwc3_host_exit(struct dwc3 *dwc);
1583 static inline int dwc3_host_init(struct dwc3 *dwc) in dwc3_host_init()
1585 static inline void dwc3_host_exit(struct dwc3 *dwc) in dwc3_host_exit()
1590 int dwc3_gadget_init(struct dwc3 *dwc);
1591 void dwc3_gadget_exit(struct dwc3 *dwc);
1592 int dwc3_gadget_set_test_mode(struct dwc3 *dwc, int mode);
1593 int dwc3_gadget_get_link_state(struct dwc3 *dwc);
1594 int dwc3_gadget_set_link_state(struct dwc3 *dwc, enum dwc3_link_state state);
1597 int dwc3_send_gadget_generic_command(struct dwc3 *dwc, unsigned int cmd,
1599 void dwc3_gadget_clear_tx_fifos(struct dwc3 *dwc);
1600 void dwc3_remove_requests(struct dwc3 *dwc, struct dwc3_ep *dep, int status);
1602 static inline int dwc3_gadget_init(struct dwc3 *dwc) in dwc3_gadget_init()
1604 static inline void dwc3_gadget_exit(struct dwc3 *dwc) in dwc3_gadget_exit()
1606 static inline int dwc3_gadget_set_test_mode(struct dwc3 *dwc, int mode) in dwc3_gadget_set_test_mode()
1608 static inline int dwc3_gadget_get_link_state(struct dwc3 *dwc) in dwc3_gadget_get_link_state()
1610 static inline int dwc3_gadget_set_link_state(struct dwc3 *dwc, in dwc3_gadget_set_link_state()
1617 static inline int dwc3_send_gadget_generic_command(struct dwc3 *dwc, in dwc3_send_gadget_generic_command()
1620 static inline void dwc3_gadget_clear_tx_fifos(struct dwc3 *dwc) in dwc3_gadget_clear_tx_fifos()
1625 int dwc3_drd_init(struct dwc3 *dwc);
1626 void dwc3_drd_exit(struct dwc3 *dwc);
1627 void dwc3_otg_init(struct dwc3 *dwc);
1628 void dwc3_otg_exit(struct dwc3 *dwc);
1629 void dwc3_otg_update(struct dwc3 *dwc, bool ignore_idstatus);
1630 void dwc3_otg_host_init(struct dwc3 *dwc);
1632 static inline int dwc3_drd_init(struct dwc3 *dwc) in dwc3_drd_init()
1634 static inline void dwc3_drd_exit(struct dwc3 *dwc) in dwc3_drd_exit()
1636 static inline void dwc3_otg_init(struct dwc3 *dwc) in dwc3_otg_init()
1638 static inline void dwc3_otg_exit(struct dwc3 *dwc) in dwc3_otg_exit()
1640 static inline void dwc3_otg_update(struct dwc3 *dwc, bool ignore_idstatus) in dwc3_otg_update()
1642 static inline void dwc3_otg_host_init(struct dwc3 *dwc) in dwc3_otg_host_init()
1648 int dwc3_gadget_suspend(struct dwc3 *dwc);
1649 int dwc3_gadget_resume(struct dwc3 *dwc);
1651 static inline int dwc3_gadget_suspend(struct dwc3 *dwc) in dwc3_gadget_suspend()
1656 static inline int dwc3_gadget_resume(struct dwc3 *dwc) in dwc3_gadget_resume()
1664 int dwc3_ulpi_init(struct dwc3 *dwc);
1665 void dwc3_ulpi_exit(struct dwc3 *dwc);
1667 static inline int dwc3_ulpi_init(struct dwc3 *dwc) in dwc3_ulpi_init()
1669 static inline void dwc3_ulpi_exit(struct dwc3 *dwc) in dwc3_ulpi_exit()