Home
last modified time | relevance | path

Searched refs:ci_hdrc (Results 1 – 16 of 16) sorted by relevance

/drivers/usb/chipidea/
Dci.h100 struct ci_hdrc *ci;
132 int (*start)(struct ci_hdrc *);
133 void (*stop)(struct ci_hdrc *);
134 irqreturn_t (*irq)(struct ci_hdrc *);
207 struct ci_hdrc { struct
261 static inline struct ci_role_driver *ci_role(struct ci_hdrc *ci) in ci_role() argument
267 static inline int ci_role_start(struct ci_hdrc *ci, enum ci_role role) in ci_role_start()
283 static inline void ci_role_stop(struct ci_hdrc *ci) in ci_role_stop()
295 static inline enum usb_role ci_role_to_usb_role(struct ci_hdrc *ci) in ci_role_to_usb_role()
313 static inline u32 hw_read_id_reg(struct ci_hdrc *ci, u32 offset, u32 mask) in hw_read_id_reg()
[all …]
Dotg_fsm.c36 struct ci_hdrc *ci = dev_get_drvdata(dev); in a_bus_req_show()
51 struct ci_hdrc *ci = dev_get_drvdata(dev); in a_bus_req_store()
85 struct ci_hdrc *ci = dev_get_drvdata(dev); in a_bus_drop_show()
100 struct ci_hdrc *ci = dev_get_drvdata(dev); in a_bus_drop_store()
125 struct ci_hdrc *ci = dev_get_drvdata(dev); in b_bus_req_show()
140 struct ci_hdrc *ci = dev_get_drvdata(dev); in b_bus_req_store()
168 struct ci_hdrc *ci = dev_get_drvdata(dev); in a_clr_err_store()
219 static void ci_otg_add_timer(struct ci_hdrc *ci, enum otg_fsm_timer t) in ci_otg_add_timer()
246 static void ci_otg_del_timer(struct ci_hdrc *ci, enum otg_fsm_timer t) in ci_otg_del_timer()
284 static int a_wait_vrise_tmout(struct ci_hdrc *ci) in a_wait_vrise_tmout()
[all …]
Dotg_fsm.h66 int ci_hdrc_otg_fsm_init(struct ci_hdrc *ci);
67 int ci_otg_fsm_work(struct ci_hdrc *ci);
68 irqreturn_t ci_otg_fsm_irq(struct ci_hdrc *ci);
69 void ci_hdrc_otg_fsm_start(struct ci_hdrc *ci);
70 void ci_hdrc_otg_fsm_remove(struct ci_hdrc *ci);
74 static inline int ci_hdrc_otg_fsm_init(struct ci_hdrc *ci) in ci_hdrc_otg_fsm_init()
79 static inline int ci_otg_fsm_work(struct ci_hdrc *ci) in ci_otg_fsm_work()
84 static inline irqreturn_t ci_otg_fsm_irq(struct ci_hdrc *ci) in ci_otg_fsm_irq()
89 static inline void ci_hdrc_otg_fsm_start(struct ci_hdrc *ci) in ci_hdrc_otg_fsm_start()
94 static inline void ci_hdrc_otg_fsm_remove(struct ci_hdrc *ci) in ci_hdrc_otg_fsm_remove()
Dotg.h11 u32 hw_read_otgsc(struct ci_hdrc *ci, u32 mask);
12 void hw_write_otgsc(struct ci_hdrc *ci, u32 mask, u32 data);
13 int ci_hdrc_otg_init(struct ci_hdrc *ci);
14 void ci_hdrc_otg_destroy(struct ci_hdrc *ci);
15 enum ci_role ci_otg_role(struct ci_hdrc *ci);
16 void ci_handle_vbus_change(struct ci_hdrc *ci);
17 static inline void ci_otg_queue_work(struct ci_hdrc *ci) in ci_otg_queue_work()
Dotg.c28 u32 hw_read_otgsc(struct ci_hdrc *ci, u32 mask) in hw_read_otgsc()
81 void hw_write_otgsc(struct ci_hdrc *ci, u32 mask, u32 data) in hw_write_otgsc()
120 enum ci_role ci_otg_role(struct ci_hdrc *ci) in ci_otg_role()
129 void ci_handle_vbus_change(struct ci_hdrc *ci) in ci_handle_vbus_change()
148 static int hw_wait_vbus_lower_bsv(struct ci_hdrc *ci) in hw_wait_vbus_lower_bsv()
165 static void ci_handle_id_switch(struct ci_hdrc *ci) in ci_handle_id_switch()
198 struct ci_hdrc *ci = container_of(work, struct ci_hdrc, work); in ci_otg_work()
227 int ci_hdrc_otg_init(struct ci_hdrc *ci) in ci_hdrc_otg_init()
246 void ci_hdrc_otg_destroy(struct ci_hdrc *ci) in ci_hdrc_otg_destroy()
DMakefile2 obj-$(CONFIG_USB_CHIPIDEA) += ci_hdrc.o
4 ci_hdrc-y := core.o otg.o debug.o ulpi.o
5 ci_hdrc-$(CONFIG_USB_CHIPIDEA_UDC) += udc.o
6 ci_hdrc-$(CONFIG_USB_CHIPIDEA_HOST) += host.o
7 ci_hdrc-$(CONFIG_USB_OTG_FSM) += otg_fsm.o
Dudc.c63 static inline int ep_to_bit(struct ci_hdrc *ci, int n) in ep_to_bit()
79 static int hw_device_state(struct ci_hdrc *ci, u32 dma) in hw_device_state()
99 static int hw_ep_flush(struct ci_hdrc *ci, int num, int dir) in hw_ep_flush()
120 static int hw_ep_disable(struct ci_hdrc *ci, int num, int dir) in hw_ep_disable()
135 static int hw_ep_enable(struct ci_hdrc *ci, int num, int dir, int type) in hw_ep_enable()
169 static int hw_ep_get_halt(struct ci_hdrc *ci, int num, int dir) in hw_ep_get_halt()
184 static int hw_ep_prime(struct ci_hdrc *ci, int num, int dir, int is_ctrl) in hw_ep_prime()
214 static int hw_ep_set_halt(struct ci_hdrc *ci, int num, int dir, int value) in hw_ep_set_halt()
237 static int hw_port_is_high_speed(struct ci_hdrc *ci) in hw_port_is_high_speed()
250 static int hw_test_and_clear_complete(struct ci_hdrc *ci, int n) in hw_test_and_clear_complete()
[all …]
Dcore.c124 static void hw_alloc_regmap(struct ci_hdrc *ci, bool is_lpm) in hw_alloc_regmap()
142 static enum ci_revision ci_get_revision(struct ci_hdrc *ci) in ci_get_revision()
165 u32 hw_read_intr_enable(struct ci_hdrc *ci) in hw_read_intr_enable()
177 u32 hw_read_intr_status(struct ci_hdrc *ci) in hw_read_intr_status()
188 int hw_port_test_set(struct ci_hdrc *ci, u8 mode) in hw_port_test_set()
206 u8 hw_port_test_get(struct ci_hdrc *ci) in hw_port_test_get()
223 static void ci_hdrc_enter_lpm(struct ci_hdrc *ci, bool enable) in ci_hdrc_enter_lpm()
236 static int hw_device_init(struct ci_hdrc *ci, void __iomem *base) in hw_device_init()
287 void hw_phymode_configure(struct ci_hdrc *ci) in hw_phymode_configure()
336 static int _ci_usb_phy_init(struct ci_hdrc *ci) in _ci_usb_phy_init()
[all …]
Dulpi.c19 static int ci_ulpi_wait(struct ci_hdrc *ci, u32 mask) in ci_ulpi_wait()
35 struct ci_hdrc *ci = dev_get_drvdata(dev); in ci_ulpi_read()
53 struct ci_hdrc *ci = dev_get_drvdata(dev); in ci_ulpi_write()
66 int ci_ulpi_init(struct ci_hdrc *ci) in ci_ulpi_init()
86 void ci_ulpi_exit(struct ci_hdrc *ci) in ci_ulpi_exit()
94 int ci_ulpi_resume(struct ci_hdrc *ci) in ci_ulpi_resume()
Dhost.h7 int ci_hdrc_host_init(struct ci_hdrc *ci);
8 void ci_hdrc_host_destroy(struct ci_hdrc *ci);
13 static inline int ci_hdrc_host_init(struct ci_hdrc *ci) in ci_hdrc_host_init()
18 static inline void ci_hdrc_host_destroy(struct ci_hdrc *ci) in ci_hdrc_host_destroy()
Ddebug.c26 struct ci_hdrc *ci = s->private; in ci_device_show()
55 struct ci_hdrc *ci = s->private; in ci_port_test_show()
77 struct ci_hdrc *ci = s->private; in ci_port_test_write()
123 struct ci_hdrc *ci = s->private; in ci_qheads_show()
155 struct ci_hdrc *ci = s->private; in ci_requests_show()
189 struct ci_hdrc *ci = s->private; in ci_otg_show()
252 struct ci_hdrc *ci = s->private; in ci_role_show()
264 struct ci_hdrc *ci = s->private; in ci_role_write()
306 struct ci_hdrc *ci = s->private; in ci_registers_show()
343 void dbg_create_files(struct ci_hdrc *ci) in dbg_create_files()
[all …]
Dudc.h83 int ci_hdrc_gadget_init(struct ci_hdrc *ci);
84 void ci_hdrc_gadget_destroy(struct ci_hdrc *ci);
88 static inline int ci_hdrc_gadget_init(struct ci_hdrc *ci) in ci_hdrc_gadget_init()
93 static inline void ci_hdrc_gadget_destroy(struct ci_hdrc *ci) in ci_hdrc_gadget_destroy()
Dhost.c37 struct ci_hdrc *ci = dev_get_drvdata(dev); in ehci_ci_portpower()
74 struct ci_hdrc *ci = dev_get_drvdata(dev); in ehci_ci_reset()
102 static irqreturn_t host_irq(struct ci_hdrc *ci) in host_irq()
107 static int host_start(struct ci_hdrc *ci) in host_start()
194 static void host_stop(struct ci_hdrc *ci) in host_stop()
219 void ci_hdrc_host_destroy(struct ci_hdrc *ci) in ci_hdrc_host_destroy()
241 struct ci_hdrc *ci = dev_get_drvdata(dev); in ci_ehci_hub_control()
303 struct ci_hdrc *ci = dev_get_drvdata(dev); in ci_ehci_bus_suspend()
352 int ci_hdrc_host_init(struct ci_hdrc *ci) in ci_hdrc_host_init()
DKconfig16 When compiled dynamically, the module will be called ci_hdrc.ko.
Dci_hdrc_msm.c79 static int ci_hdrc_msm_notify_event(struct ci_hdrc *ci, unsigned event) in ci_hdrc_msm_notify_event()
Dci_hdrc_imx.c269 static int ci_hdrc_imx_notify_event(struct ci_hdrc *ci, unsigned int event) in ci_hdrc_imx_notify_event()