/openbmc/linux/drivers/usb/chipidea/ |
H A D | ci.h | 102 struct ci_hdrc *ci; 136 int (*start)(struct ci_hdrc *); 137 void (*stop)(struct ci_hdrc *); 138 void (*suspend)(struct ci_hdrc *ci); 140 irqreturn_t (*irq)(struct ci_hdrc *); 214 struct ci_hdrc { struct 472 int ci_ulpi_init(struct ci_hdrc *ci); 473 void ci_ulpi_exit(struct ci_hdrc *ci); 474 int ci_ulpi_resume(struct ci_hdrc *ci); 480 int hw_device_reset(struct ci_hdrc *ci); [all …]
|
H A D | otg_fsm.h | 66 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()
|
H A D | otg.h | 11 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 void ci_handle_id_switch(struct ci_hdrc *ci); 18 static inline void ci_otg_queue_work(struct ci_hdrc *ci) in ci_otg_queue_work()
|
H A D | otg_fsm.c | 36 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() 385 struct ci_hdrc *ci = container_of(t, struct ci_hdrc, otg_fsm_hrtimer); in ci_otg_hrtimer_func() 438 struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); in ci_otg_fsm_add_timer() 447 struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); in ci_otg_fsm_del_timer() 461 struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); in ci_otg_drv_vbus() 502 struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); in ci_otg_loc_conn() 544 struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); in ci_otg_start_pulse() 555 struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); in ci_otg_start_host() [all …]
|
H A D | Makefile | 5 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
|
H A D | otg.c | 29 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() 154 static int hw_wait_vbus_lower_bsv(struct ci_hdrc *ci) in hw_wait_vbus_lower_bsv() 171 void ci_handle_id_switch(struct ci_hdrc *ci) in ci_handle_id_switch() 214 struct ci_hdrc *ci = container_of(work, struct ci_hdrc, work); in ci_otg_work() 243 int ci_hdrc_otg_init(struct ci_hdrc *ci) in ci_hdrc_otg_init() 262 void ci_hdrc_otg_destroy(struct ci_hdrc *ci) in ci_hdrc_otg_destroy()
|
H A D | host.h | 7 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()
|
H A D | core.c | 141 u32 hw_read_intr_enable(struct ci_hdrc *ci) in hw_read_intr_enable() 153 u32 hw_read_intr_status(struct ci_hdrc *ci) in hw_read_intr_status() 183 u8 hw_port_test_get(struct ci_hdrc *ci) in hw_port_test_get() 269 void hw_phymode_configure(struct ci_hdrc *ci) in hw_phymode_configure() 480 int hw_device_reset(struct ci_hdrc *ci) in hw_device_reset() 521 struct ci_hdrc *ci = data; in ci_irq_handler() 579 static void ci_irq(struct ci_hdrc *ci) in ci_irq() 592 struct ci_hdrc *ci = cbl->ci; in ci_cable_notifier() 861 struct ci_hdrc *ci = container_of(work, struct ci_hdrc, power_lost_work); in ci_power_lost_work() 990 struct ci_hdrc *ci = dev_get_drvdata(dev); in role_show() [all …]
|
H A D | ulpi.c | 19 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()
|
H A D | udc.c | 836 struct ci_hdrc *ci = container_of(gadget, struct ci_hdrc, gadget); in _gadget_stop_activity() 1666 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_udc_get_frame() 1681 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_hdrc_gadget_connect() 1711 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_udc_vbus_session() 1742 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_udc_wakeup() 1767 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_udc_vbus_draw() 1776 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_udc_selfpowered() 1792 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_udc_pullup() 1820 struct ci_hdrc *ci = container_of(gadget, struct ci_hdrc, gadget); in ci_udc_match_ep() 1938 struct ci_hdrc *ci = container_of(gadget, struct ci_hdrc, gadget); in ci_udc_start() [all …]
|
H A D | udc.h | 81 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()
|
H A D | debug.c | 26 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_registers_show() 289 void dbg_create_files(struct ci_hdrc *ci) in dbg_create_files() 310 void dbg_remove_files(struct ci_hdrc *ci) in dbg_remove_files()
|
H A D | host.c | 42 struct ci_hdrc *ci = dev_get_drvdata(dev); in ehci_ci_portpower() 86 struct ci_hdrc *ci = dev_get_drvdata(dev); in ehci_ci_reset() 114 static irqreturn_t host_irq(struct ci_hdrc *ci) in host_irq() 119 static int host_start(struct ci_hdrc *ci) in host_start() 208 static void host_stop(struct ci_hdrc *ci) in host_stop() 233 void ci_hdrc_host_destroy(struct ci_hdrc *ci) in ci_hdrc_host_destroy() 257 struct ci_hdrc *ci = dev_get_drvdata(dev); in ci_ehci_hub_control() 333 struct ci_hdrc *ci = dev_get_drvdata(dev); in ci_ehci_bus_suspend() 456 static void ci_hdrc_host_suspend(struct ci_hdrc *ci) in ci_hdrc_host_suspend() 461 static void ci_hdrc_host_resume(struct ci_hdrc *ci, bool power_lost) in ci_hdrc_host_resume() [all …]
|
H A D | trace.h | 24 void ci_log(struct ci_hdrc *ci, const char *fmt, ...); 27 TP_PROTO(struct ci_hdrc *ci, struct va_format *vaf),
|
H A D | trace.c | 13 void ci_log(struct ci_hdrc *ci, const char *fmt, ...) in ci_log()
|
H A D | ci_hdrc_tegra.c | 153 static int tegra_usb_notify_event(struct ci_hdrc *ci, unsigned int event) in tegra_usb_notify_event() 235 static int tegra_ehci_hub_control(struct ci_hdrc *ci, u16 typeReq, u16 wValue, in tegra_ehci_hub_control() 260 static void tegra_usb_enter_lpm(struct ci_hdrc *ci, bool enable) in tegra_usb_enter_lpm()
|
H A D | ci_hdrc_npcm.c | 21 static int npcm_udc_notify_event(struct ci_hdrc *ci, unsigned event) in npcm_udc_notify_event()
|
H A D | Kconfig | 17 When compiled dynamically, the module will be called ci_hdrc.ko.
|
H A D | ci_hdrc_msm.c | 79 static int ci_hdrc_msm_notify_event(struct ci_hdrc *ci, unsigned event) in ci_hdrc_msm_notify_event()
|
/openbmc/linux/include/linux/usb/ |
H A D | chipidea.h | 12 struct ci_hdrc; 29 struct ci_hdrc *ci; 74 int (*notify_event) (struct ci_hdrc *ci, unsigned event); 96 int (*hub_control)(struct ci_hdrc *ci, u16 typeReq, u16 wValue, 99 void (*enter_lpm)(struct ci_hdrc *ci, bool enable);
|
/openbmc/linux/Documentation/usb/ |
H A D | chipidea.rst | 21 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 62 echo 1 > /sys/bus/platform/devices/ci_hdrc.0/inputs/a_bus_req 76 echo 0 > /sys/bus/platform/devices/ci_hdrc.0/inputs/a_bus_drop 77 echo 1 > /sys/bus/platform/devices/ci_hdrc.0/inputs/a_bus_req 83 echo 1 > /sys/bus/platform/devices/ci_hdrc.0/inputs/b_bus_req 89 echo 1 > /sys/bus/platform/devices/ci_hdrc.0/inputs/a_bus_drop 97 echo 1 > /sys/bus/platform/devices/ci_hdrc.0/inputs/b_bus_req [all …]
|
/openbmc/linux/arch/arm64/boot/dts/freescale/ |
H A D | imx8mm-var-som-symphony.dts | 175 * [ 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
|
H A D | imx8mm-nitrogen-r2.dts | 384 *[ 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
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-platform-chipidea-usb-otg | 1 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
|
H A D | sysfs-platform-chipidea-usb2 | 1 What: /sys/bus/platform/devices/ci_hdrc.0/role
|