Home
last modified time | relevance | path

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

/drivers/usb/chipidea/
Dci.h88 struct ci_hdrc *ci;
108 int (*start)(struct ci_hdrc *);
109 void (*stop)(struct ci_hdrc *);
110 irqreturn_t (*irq)(struct ci_hdrc *);
172 struct ci_hdrc { struct
212 static inline struct ci_role_driver *ci_role(struct ci_hdrc *ci) in ci_role() argument
218 static inline int ci_role_start(struct ci_hdrc *ci, enum ci_role role) in ci_role_start()
234 static inline void ci_role_stop(struct ci_hdrc *ci) in ci_role_stop()
254 static inline u32 hw_read(struct ci_hdrc *ci, enum ci_hw_regs reg, u32 mask) in hw_read()
270 static inline void __hw_write(struct ci_hdrc *ci, u32 val, in __hw_write()
[all …]
Dotg_fsm.c34 (struct ci_hdrc *ci, void (*function)(void *, unsigned long), in otg_timer_initializer()
55 struct ci_hdrc *ci = dev_get_drvdata(dev); in get_a_bus_req()
70 struct ci_hdrc *ci = dev_get_drvdata(dev); in set_a_bus_req()
99 struct ci_hdrc *ci = dev_get_drvdata(dev); in get_a_bus_drop()
114 struct ci_hdrc *ci = dev_get_drvdata(dev); in set_a_bus_drop()
140 struct ci_hdrc *ci = dev_get_drvdata(dev); in get_b_bus_req()
155 struct ci_hdrc *ci = dev_get_drvdata(dev); in set_b_bus_req()
177 struct ci_hdrc *ci = dev_get_drvdata(dev); in set_a_clr_err()
209 static void ci_otg_add_timer(struct ci_hdrc *ci, enum ci_otg_fsm_timer_index t) in ci_otg_add_timer()
239 static void ci_otg_del_timer(struct ci_hdrc *ci, enum ci_otg_fsm_timer_index t) in ci_otg_del_timer()
[all …]
Dotg_fsm.h94 int ci_hdrc_otg_fsm_init(struct ci_hdrc *ci);
95 int ci_otg_fsm_work(struct ci_hdrc *ci);
96 irqreturn_t ci_otg_fsm_irq(struct ci_hdrc *ci);
97 void ci_hdrc_otg_fsm_start(struct ci_hdrc *ci);
98 void ci_hdrc_otg_fsm_remove(struct ci_hdrc *ci);
102 static inline int ci_hdrc_otg_fsm_init(struct ci_hdrc *ci) in ci_hdrc_otg_fsm_init()
107 static inline int ci_otg_fsm_work(struct ci_hdrc *ci) in ci_otg_fsm_work()
112 static inline irqreturn_t ci_otg_fsm_irq(struct ci_hdrc *ci) in ci_otg_fsm_irq()
117 static inline void ci_hdrc_otg_fsm_start(struct ci_hdrc *ci) in ci_hdrc_otg_fsm_start()
122 static inline void ci_hdrc_otg_fsm_remove(struct ci_hdrc *ci) in ci_hdrc_otg_fsm_remove()
Dotg.h14 u32 hw_read_otgsc(struct ci_hdrc *ci, u32 mask);
15 void hw_write_otgsc(struct ci_hdrc *ci, u32 mask, u32 data);
16 int ci_hdrc_otg_init(struct ci_hdrc *ci);
17 void ci_hdrc_otg_destroy(struct ci_hdrc *ci);
18 enum ci_role ci_otg_role(struct ci_hdrc *ci);
19 void ci_handle_vbus_change(struct ci_hdrc *ci);
20 static inline void ci_otg_queue_work(struct ci_hdrc *ci) in ci_otg_queue_work()
Dotg.c31 u32 hw_read_otgsc(struct ci_hdrc *ci, u32 mask) in hw_read_otgsc()
41 void hw_write_otgsc(struct ci_hdrc *ci, u32 mask, u32 data) in hw_write_otgsc()
50 enum ci_role ci_otg_role(struct ci_hdrc *ci) in ci_otg_role()
59 void ci_handle_vbus_change(struct ci_hdrc *ci) in ci_handle_vbus_change()
71 static void ci_handle_id_switch(struct ci_hdrc *ci) in ci_handle_id_switch()
92 struct ci_hdrc *ci = container_of(work, struct ci_hdrc, work); in ci_otg_work()
116 int ci_hdrc_otg_init(struct ci_hdrc *ci) in ci_hdrc_otg_init()
135 void ci_hdrc_otg_destroy(struct ci_hdrc *ci) in ci_hdrc_otg_destroy()
DMakefile3 obj-$(CONFIG_USB_CHIPIDEA) += ci_hdrc.o
5 ci_hdrc-y := core.o otg.o
6 ci_hdrc-$(CONFIG_USB_CHIPIDEA_UDC) += udc.o
7 ci_hdrc-$(CONFIG_USB_CHIPIDEA_HOST) += host.o
8 ci_hdrc-$(CONFIG_USB_CHIPIDEA_DEBUG) += debug.o
9 ci_hdrc-$(CONFIG_USB_OTG_FSM) += otg_fsm.o
Dudc.c66 static inline int ep_to_bit(struct ci_hdrc *ci, int n) in ep_to_bit()
82 static int hw_device_state(struct ci_hdrc *ci, u32 dma) in hw_device_state()
104 static int hw_ep_flush(struct ci_hdrc *ci, int num, int dir) in hw_ep_flush()
125 static int hw_ep_disable(struct ci_hdrc *ci, int num, int dir) in hw_ep_disable()
141 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()
190 static int hw_ep_prime(struct ci_hdrc *ci, int num, int dir, int is_ctrl) in hw_ep_prime()
217 static int hw_ep_set_halt(struct ci_hdrc *ci, int num, int dir, int value) in hw_ep_set_halt()
240 static int hw_port_is_high_speed(struct ci_hdrc *ci) in hw_port_is_high_speed()
253 static int hw_test_and_clear_complete(struct ci_hdrc *ci, int n) in hw_test_and_clear_complete()
[all …]
Ddebug.h17 int dbg_create_files(struct ci_hdrc *ci);
18 void dbg_remove_files(struct ci_hdrc *ci);
20 static inline int dbg_create_files(struct ci_hdrc *ci) in dbg_create_files()
25 static inline void dbg_remove_files(struct ci_hdrc *ci) in dbg_remove_files()
Dhost.h6 int ci_hdrc_host_init(struct ci_hdrc *ci);
7 void ci_hdrc_host_destroy(struct ci_hdrc *ci);
11 static inline int ci_hdrc_host_init(struct ci_hdrc *ci) in ci_hdrc_host_init()
16 static inline void ci_hdrc_host_destroy(struct ci_hdrc *ci) in ci_hdrc_host_destroy()
Dcore.c120 static int hw_alloc_regmap(struct ci_hdrc *ci, bool is_lpm) in hw_alloc_regmap()
146 u32 hw_read_intr_enable(struct ci_hdrc *ci) in hw_read_intr_enable()
158 u32 hw_read_intr_status(struct ci_hdrc *ci) in hw_read_intr_status()
169 int hw_port_test_set(struct ci_hdrc *ci, u8 mode) in hw_port_test_set()
187 u8 hw_port_test_get(struct ci_hdrc *ci) in hw_port_test_get()
193 static void ci_hdrc_enter_lpm(struct ci_hdrc *ci, bool enable) in ci_hdrc_enter_lpm()
212 static int hw_device_init(struct ci_hdrc *ci, void __iomem *base) in hw_device_init()
260 static void hw_phymode_configure(struct ci_hdrc *ci) in hw_phymode_configure()
307 static int ci_usb_phy_init(struct ci_hdrc *ci) in ci_usb_phy_init()
340 int hw_device_reset(struct ci_hdrc *ci, u32 mode) in hw_device_reset()
[all …]
Ddebug.c25 struct ci_hdrc *ci = s->private; in ci_device_show()
65 struct ci_hdrc *ci = s->private; in ci_port_test_show()
87 struct ci_hdrc *ci = s->private; in ci_port_test_write()
126 struct ci_hdrc *ci = s->private; in ci_qheads_show()
169 struct ci_hdrc *ci = s->private; in ci_requests_show()
217 struct ci_hdrc *ci = s->private; in ci_otg_show()
291 struct ci_hdrc *ci = s->private; in ci_role_show()
303 struct ci_hdrc *ci = s->private; in ci_role_write()
343 struct ci_hdrc *ci = s->private; in ci_registers_show()
391 int dbg_create_files(struct ci_hdrc *ci) in dbg_create_files()
[all …]
Dudc.h86 int ci_hdrc_gadget_init(struct ci_hdrc *ci);
87 void ci_hdrc_gadget_destroy(struct ci_hdrc *ci);
91 static inline int ci_hdrc_gadget_init(struct ci_hdrc *ci) in ci_hdrc_gadget_init()
96 static inline void ci_hdrc_gadget_destroy(struct ci_hdrc *ci) in ci_hdrc_gadget_destroy()
Dhost.c37 static irqreturn_t host_irq(struct ci_hdrc *ci) in host_irq()
42 static int host_start(struct ci_hdrc *ci) in host_start()
113 static void host_stop(struct ci_hdrc *ci) in host_stop()
126 void ci_hdrc_host_destroy(struct ci_hdrc *ci) in ci_hdrc_host_destroy()
132 int ci_hdrc_host_init(struct ci_hdrc *ci) in ci_hdrc_host_init()
Dci_hdrc_msm.c20 static void ci_hdrc_msm_notify_event(struct ci_hdrc *ci, unsigned event) in ci_hdrc_msm_notify_event()