Home
last modified time | relevance | path

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

/drivers/usb/chipidea/
Dci.h101 struct ci_hdrc *ci;
133 int (*start)(struct ci_hdrc *);
134 void (*stop)(struct ci_hdrc *);
135 irqreturn_t (*irq)(struct ci_hdrc *);
208 struct ci_hdrc { struct
262 static inline struct ci_role_driver *ci_role(struct ci_hdrc *ci) in ci_role() argument
268 static inline int ci_role_start(struct ci_hdrc *ci, enum ci_role role) in ci_role_start()
284 static inline void ci_role_stop(struct ci_hdrc *ci) in ci_role_stop()
296 static inline enum usb_role ci_role_to_usb_role(struct ci_hdrc *ci) in ci_role_to_usb_role()
324 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()
286 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.c29 u32 hw_read_otgsc(struct ci_hdrc *ci, u32 mask) in hw_read_otgsc()
83 void hw_write_otgsc(struct ci_hdrc *ci, u32 mask, u32 data) in hw_write_otgsc()
122 enum ci_role ci_otg_role(struct ci_hdrc *ci) in ci_otg_role()
131 void ci_handle_vbus_change(struct ci_hdrc *ci) in ci_handle_vbus_change()
151 static int hw_wait_vbus_lower_bsv(struct ci_hdrc *ci) in hw_wait_vbus_lower_bsv()
168 static void ci_handle_id_switch(struct ci_hdrc *ci) in ci_handle_id_switch()
211 struct ci_hdrc *ci = container_of(work, struct ci_hdrc, work); in ci_otg_work()
240 int ci_hdrc_otg_init(struct ci_hdrc *ci) in ci_hdrc_otg_init()
259 void ci_hdrc_otg_destroy(struct ci_hdrc *ci) in ci_hdrc_otg_destroy()
Dcore.c98 static void hw_alloc_regmap(struct ci_hdrc *ci, bool is_lpm) in hw_alloc_regmap()
116 static enum ci_revision ci_get_revision(struct ci_hdrc *ci) in ci_get_revision()
139 u32 hw_read_intr_enable(struct ci_hdrc *ci) in hw_read_intr_enable()
151 u32 hw_read_intr_status(struct ci_hdrc *ci) in hw_read_intr_status()
163 int hw_port_test_set(struct ci_hdrc *ci, u8 mode) in hw_port_test_set()
181 u8 hw_port_test_get(struct ci_hdrc *ci) in hw_port_test_get()
198 static void ci_hdrc_enter_lpm_common(struct ci_hdrc *ci, bool enable) in ci_hdrc_enter_lpm_common()
211 static void ci_hdrc_enter_lpm(struct ci_hdrc *ci, bool enable) in ci_hdrc_enter_lpm()
216 static int hw_device_init(struct ci_hdrc *ci, void __iomem *base) in hw_device_init()
267 void hw_phymode_configure(struct ci_hdrc *ci) in hw_phymode_configure()
[all …]
Dudc.c64 static inline int ep_to_bit(struct ci_hdrc *ci, int n) in ep_to_bit()
81 static int hw_device_state(struct ci_hdrc *ci, u32 dma) in hw_device_state()
102 static int hw_ep_flush(struct ci_hdrc *ci, int num, int dir) in hw_ep_flush()
124 static int hw_ep_disable(struct ci_hdrc *ci, int num, int dir) in hw_ep_disable()
140 static int hw_ep_enable(struct ci_hdrc *ci, int num, int dir, int type) in hw_ep_enable()
175 static int hw_ep_get_halt(struct ci_hdrc *ci, int num, int dir) in hw_ep_get_halt()
191 static int hw_ep_prime(struct ci_hdrc *ci, int num, int dir, int is_ctrl) in hw_ep_prime()
222 static int hw_ep_set_halt(struct ci_hdrc *ci, int num, int dir, int value) in hw_ep_set_halt()
246 static int hw_port_is_high_speed(struct ci_hdrc *ci) in hw_port_is_high_speed()
260 static int hw_test_and_clear_complete(struct ci_hdrc *ci, int n) in hw_test_and_clear_complete()
[all …]
DMakefile5 obj-$(CONFIG_USB_CHIPIDEA) += ci_hdrc.o
7 ci_hdrc-y := core.o otg.o debug.o ulpi.o
8 ci_hdrc-$(CONFIG_USB_CHIPIDEA_UDC) += udc.o trace.o
9 ci_hdrc-$(CONFIG_USB_CHIPIDEA_HOST) += host.o
10 ci_hdrc-$(CONFIG_USB_OTG_FSM) += otg_fsm.o
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.h81 int ci_hdrc_gadget_init(struct ci_hdrc *ci);
82 void ci_hdrc_gadget_destroy(struct ci_hdrc *ci);
86 static inline int ci_hdrc_gadget_init(struct ci_hdrc *ci) in ci_hdrc_gadget_init()
91 static inline void ci_hdrc_gadget_destroy(struct ci_hdrc *ci) in ci_hdrc_gadget_destroy()
Dhost.c42 struct ci_hdrc *ci = dev_get_drvdata(dev); in ehci_ci_portpower()
79 struct ci_hdrc *ci = dev_get_drvdata(dev); in ehci_ci_reset()
107 static irqreturn_t host_irq(struct ci_hdrc *ci) in host_irq()
112 static int host_start(struct ci_hdrc *ci) in host_start()
200 static void host_stop(struct ci_hdrc *ci) in host_stop()
225 void ci_hdrc_host_destroy(struct ci_hdrc *ci) in ci_hdrc_host_destroy()
249 struct ci_hdrc *ci = dev_get_drvdata(dev); in ci_ehci_hub_control()
325 struct ci_hdrc *ci = dev_get_drvdata(dev); in ci_ehci_bus_suspend()
447 int ci_hdrc_host_init(struct ci_hdrc *ci) in ci_hdrc_host_init()
Dtrace.h24 void ci_log(struct ci_hdrc *ci, const char *fmt, ...);
27 TP_PROTO(struct ci_hdrc *ci, struct va_format *vaf),
Dci_hdrc_tegra.c149 static int tegra_usb_notify_event(struct ci_hdrc *ci, unsigned int event) in tegra_usb_notify_event()
231 static int tegra_ehci_hub_control(struct ci_hdrc *ci, u16 typeReq, u16 wValue, in tegra_ehci_hub_control()
256 static void tegra_usb_enter_lpm(struct ci_hdrc *ci, bool enable) in tegra_usb_enter_lpm()
Dtrace.c13 void ci_log(struct ci_hdrc *ci, const char *fmt, ...) in ci_log()
DKconfig17 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.c286 static int ci_hdrc_imx_notify_event(struct ci_hdrc *ci, unsigned int event) in ci_hdrc_imx_notify_event()