/Linux-v4.19/drivers/usb/chipidea/ |
D | ci.h | 99 struct ci_hdrc *ci; 131 int (*start)(struct ci_hdrc *); 132 void (*stop)(struct ci_hdrc *); 133 irqreturn_t (*irq)(struct ci_hdrc *); 206 struct ci_hdrc { struct 259 static inline struct ci_role_driver *ci_role(struct ci_hdrc *ci) in ci_role() argument 265 static inline int ci_role_start(struct ci_hdrc *ci, enum ci_role role) in ci_role_start() 281 static inline void ci_role_stop(struct ci_hdrc *ci) in ci_role_stop() 301 static inline u32 hw_read_id_reg(struct ci_hdrc *ci, u32 offset, u32 mask) in hw_read_id_reg() 313 static inline void hw_write_id_reg(struct ci_hdrc *ci, u32 offset, in hw_write_id_reg() [all …]
|
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()
|
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() 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 …]
|
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 static inline void ci_otg_queue_work(struct ci_hdrc *ci) in ci_otg_queue_work()
|
D | otg.c | 28 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() 224 int ci_hdrc_otg_init(struct ci_hdrc *ci) in ci_hdrc_otg_init() 243 void ci_hdrc_otg_destroy(struct ci_hdrc *ci) in ci_hdrc_otg_destroy()
|
D | Makefile | 2 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
|
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()
|
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()
|
D | udc.c | 62 static inline int ep_to_bit(struct ci_hdrc *ci, int n) in ep_to_bit() 78 static int hw_device_state(struct ci_hdrc *ci, u32 dma) in hw_device_state() 98 static int hw_ep_flush(struct ci_hdrc *ci, int num, int dir) in hw_ep_flush() 119 static int hw_ep_disable(struct ci_hdrc *ci, int num, int dir) in hw_ep_disable() 134 static int hw_ep_enable(struct ci_hdrc *ci, int num, int dir, int type) in hw_ep_enable() 168 static int hw_ep_get_halt(struct ci_hdrc *ci, int num, int dir) in hw_ep_get_halt() 183 static int hw_ep_prime(struct ci_hdrc *ci, int num, int dir, int is_ctrl) in hw_ep_prime() 213 static int hw_ep_set_halt(struct ci_hdrc *ci, int num, int dir, int value) in hw_ep_set_halt() 236 static int hw_port_is_high_speed(struct ci_hdrc *ci) in hw_port_is_high_speed() 249 static int hw_test_and_clear_complete(struct ci_hdrc *ci, int n) in hw_test_and_clear_complete() [all …]
|
D | core.c | 123 static void hw_alloc_regmap(struct ci_hdrc *ci, bool is_lpm) in hw_alloc_regmap() 141 static enum ci_revision ci_get_revision(struct ci_hdrc *ci) in ci_get_revision() 164 u32 hw_read_intr_enable(struct ci_hdrc *ci) in hw_read_intr_enable() 176 u32 hw_read_intr_status(struct ci_hdrc *ci) in hw_read_intr_status() 187 int hw_port_test_set(struct ci_hdrc *ci, u8 mode) in hw_port_test_set() 205 u8 hw_port_test_get(struct ci_hdrc *ci) in hw_port_test_get() 222 static void ci_hdrc_enter_lpm(struct ci_hdrc *ci, bool enable) in ci_hdrc_enter_lpm() 235 static int hw_device_init(struct ci_hdrc *ci, void __iomem *base) in hw_device_init() 286 void hw_phymode_configure(struct ci_hdrc *ci) in hw_phymode_configure() 335 static int _ci_usb_phy_init(struct ci_hdrc *ci) in _ci_usb_phy_init() [all …]
|
D | udc.h | 83 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()
|
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_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 …]
|
D | host.c | 35 struct ci_hdrc *ci = dev_get_drvdata(dev); in ehci_ci_portpower() 71 struct ci_hdrc *ci = dev_get_drvdata(dev); in ehci_ci_reset() 99 static irqreturn_t host_irq(struct ci_hdrc *ci) in host_irq() 104 static int host_start(struct ci_hdrc *ci) in host_start() 182 static void host_stop(struct ci_hdrc *ci) in host_stop() 203 void ci_hdrc_host_destroy(struct ci_hdrc *ci) in ci_hdrc_host_destroy() 250 int ci_hdrc_host_init(struct ci_hdrc *ci) in ci_hdrc_host_init()
|
D | Kconfig | 13 When compiled dynamically, the module will be called ci_hdrc.ko.
|
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()
|
/Linux-v4.19/Documentation/usb/ |
D | chipidea.txt | 12 cat /sys/kernel/debug/ci_hdrc.0/otg 13 cat /sys/kernel/debug/ci_hdrc.0/registers 30 echo 1 > /sys/bus/platform/devices/ci_hdrc.0/inputs/b_bus_req 36 echo 0 > /sys/bus/platform/devices/ci_hdrc.0/inputs/b_bus_req 41 echo 1 > /sys/bus/platform/devices/ci_hdrc.0/inputs/a_bus_req 53 echo 0 > /sys/bus/platform/devices/ci_hdrc.0/inputs/a_bus_drop 54 echo 1 > /sys/bus/platform/devices/ci_hdrc.0/inputs/a_bus_req 58 echo 1 > /sys/bus/platform/devices/ci_hdrc.0/inputs/b_bus_req 62 echo 1 > /sys/bus/platform/devices/ci_hdrc.0/inputs/a_bus_drop 68 echo 1 > /sys/bus/platform/devices/ci_hdrc.0/inputs/b_bus_req [all …]
|
/Linux-v4.19/include/linux/usb/ |
D | chipidea.h | 12 struct ci_hdrc; 29 struct ci_hdrc *ci; 66 int (*notify_event) (struct ci_hdrc *ci, unsigned event);
|
/Linux-v4.19/Documentation/ABI/testing/ |
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
|
D | sysfs-platform-chipidea-usb2 | 1 What: /sys/bus/platform/devices/ci_hdrc.0/role
|