Home
last modified time | relevance | path

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

/linux-5.19.10/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 *);
207 struct ci_hdrc { struct
260 static inline struct ci_role_driver *ci_role(struct ci_hdrc *ci) in ci_role() argument
266 static inline int ci_role_start(struct ci_hdrc *ci, enum ci_role role) in ci_role_start()
282 static inline void ci_role_stop(struct ci_hdrc *ci) in ci_role_stop()
294 static inline enum usb_role ci_role_to_usb_role(struct ci_hdrc *ci) in ci_role_to_usb_role()
322 static inline u32 hw_read_id_reg(struct ci_hdrc *ci, u32 offset, u32 mask) in hw_read_id_reg()
[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_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.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()
208 struct ci_hdrc *ci = container_of(work, struct ci_hdrc, work); in ci_otg_work()
237 int ci_hdrc_otg_init(struct ci_hdrc *ci) in ci_hdrc_otg_init()
256 void ci_hdrc_otg_destroy(struct ci_hdrc *ci) in ci_hdrc_otg_destroy()
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
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()
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 …]
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()
Dudc.c52 static int reprime_dtd(struct ci_hdrc *ci, struct ci_hw_ep *hwep,
66 static inline int ep_to_bit(struct ci_hdrc *ci, int n) in ep_to_bit()
83 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()
126 static int hw_ep_disable(struct ci_hdrc *ci, int num, int dir) in hw_ep_disable()
142 static int hw_ep_enable(struct ci_hdrc *ci, int num, int dir, int type) in hw_ep_enable()
177 static int hw_ep_get_halt(struct ci_hdrc *ci, int num, int dir) in hw_ep_get_halt()
193 static int hw_ep_prime(struct ci_hdrc *ci, int num, int dir, int is_ctrl) in hw_ep_prime()
224 static int hw_ep_set_halt(struct ci_hdrc *ci, int num, int dir, int value) in hw_ep_set_halt()
248 static int hw_port_is_high_speed(struct ci_hdrc *ci) in hw_port_is_high_speed()
[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()
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 …]
Dhost.c43 struct ci_hdrc *ci = dev_get_drvdata(dev); in ehci_ci_portpower()
80 struct ci_hdrc *ci = dev_get_drvdata(dev); in ehci_ci_reset()
108 static irqreturn_t host_irq(struct ci_hdrc *ci) in host_irq()
113 static int host_start(struct ci_hdrc *ci) in host_start()
201 static void host_stop(struct ci_hdrc *ci) in host_stop()
226 void ci_hdrc_host_destroy(struct ci_hdrc *ci) in ci_hdrc_host_destroy()
250 struct ci_hdrc *ci = dev_get_drvdata(dev); in ci_ehci_hub_control()
326 struct ci_hdrc *ci = dev_get_drvdata(dev); in ci_ehci_bus_suspend()
455 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),
Dtrace.c13 void ci_log(struct ci_hdrc *ci, const char *fmt, ...) in ci_log()
Dci_hdrc_tegra.c152 static int tegra_usb_notify_event(struct ci_hdrc *ci, unsigned int event) in tegra_usb_notify_event()
234 static int tegra_ehci_hub_control(struct ci_hdrc *ci, u16 typeReq, u16 wValue, in tegra_ehci_hub_control()
259 static void tegra_usb_enter_lpm(struct ci_hdrc *ci, bool enable) in tegra_usb_enter_lpm()
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.c279 static int ci_hdrc_imx_notify_event(struct ci_hdrc *ci, unsigned int event) in ci_hdrc_imx_notify_event()
/linux-5.19.10/Documentation/usb/
Dchipidea.rst21 cat /sys/kernel/debug/ci_hdrc.0/otg
22 cat /sys/kernel/debug/ci_hdrc.0/registers
47 echo 1 > /sys/bus/platform/devices/ci_hdrc.0/inputs/b_bus_req
55 echo 0 > /sys/bus/platform/devices/ci_hdrc.0/inputs/b_bus_req
61 echo 1 > /sys/bus/platform/devices/ci_hdrc.0/inputs/a_bus_req
75 echo 0 > /sys/bus/platform/devices/ci_hdrc.0/inputs/a_bus_drop
76 echo 1 > /sys/bus/platform/devices/ci_hdrc.0/inputs/a_bus_req
82 echo 1 > /sys/bus/platform/devices/ci_hdrc.0/inputs/b_bus_req
88 echo 1 > /sys/bus/platform/devices/ci_hdrc.0/inputs/a_bus_drop
96 echo 1 > /sys/bus/platform/devices/ci_hdrc.0/inputs/b_bus_req
[all …]
/linux-5.19.10/include/linux/usb/
Dchipidea.h12 struct ci_hdrc;
29 struct ci_hdrc *ci;
71 int (*notify_event) (struct ci_hdrc *ci, unsigned event);
93 int (*hub_control)(struct ci_hdrc *ci, u16 typeReq, u16 wValue,
96 void (*enter_lpm)(struct ci_hdrc *ci, bool enable);
/linux-5.19.10/arch/arm64/boot/dts/freescale/
Dimx8mm-var-som-symphony.dts175 * [ 1.943365] ci_hdrc ci_hdrc.1: EHCI Host Controller
176 * [ 1.948287] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1
177 * [ 1.971006] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
Dimx8mm-nitrogen-r2.dts384 *[ 1.655941] ci_hdrc ci_hdrc.1: EHCI Host Controller
385 *[ 1.660880] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2
386 *[ 1.681505] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
/linux-5.19.10/Documentation/ABI/testing/
Dsysfs-platform-chipidea-usb-otg1 What: /sys/bus/platform/devices/ci_hdrc.0/inputs/a_bus_req
18 What: /sys/bus/platform/devices/ci_hdrc.0/inputs/a_bus_drop
33 What: /sys/bus/platform/devices/ci_hdrc.0/inputs/b_bus_req
48 What: /sys/bus/platform/devices/ci_hdrc.0/inputs/a_clr_err
Dsysfs-platform-chipidea-usb21 What: /sys/bus/platform/devices/ci_hdrc.0/role