/kernel/linux/linux-6.6/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); 139 void (*resume)(struct ci_hdrc *ci, bool power_lost); 140 irqreturn_t (*irq)(struct ci_hdrc *); 165 * struct ci_hdrc - chipidea device representation 214 struct ci_hdrc { struct 270 static inline struct ci_role_driver *ci_role(struct ci_hdrc *ci) in ci_role() 276 static inline int ci_role_start(struct ci_hdrc *c [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 *c [all...] |
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() 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 *c [all...] |
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.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() 151 static int hw_wait_vbus_lower_bsv(struct ci_hdrc *ci) in hw_wait_vbus_lower_bsv() 168 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 *c [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 | 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 | 100 static void hw_alloc_regmap(struct ci_hdrc *ci, bool is_lpm) in hw_alloc_regmap() 118 static enum ci_revision ci_get_revision(struct ci_hdrc *ci) in ci_get_revision() 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() 165 int hw_port_test_set(struct ci_hdrc *ci, u8 mode) in hw_port_test_set() 183 u8 hw_port_test_get(struct ci_hdrc *ci) in hw_port_test_get() 200 static void ci_hdrc_enter_lpm_common(struct ci_hdrc *ci, bool enable) in ci_hdrc_enter_lpm_common() 213 static void ci_hdrc_enter_lpm(struct ci_hdrc *ci, bool enable) in ci_hdrc_enter_lpm() 218 static int hw_device_init(struct ci_hdrc *ci, void __iomem *base) in hw_device_init() 269 void hw_phymode_configure(struct ci_hdrc *c [all...] |
H A D | udc.c | 52 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 *c [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.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()
|
/kernel/linux/linux-5.10/drivers/usb/chipidea/ |
H A D | ci.h | 101 struct ci_hdrc *ci; 133 int (*start)(struct ci_hdrc *); 134 void (*stop)(struct ci_hdrc *); 135 irqreturn_t (*irq)(struct ci_hdrc *); 160 * struct ci_hdrc - chipidea device representation 209 struct ci_hdrc { struct 264 static inline struct ci_role_driver *ci_role(struct ci_hdrc *ci) in ci_role() 270 static inline int ci_role_start(struct ci_hdrc *ci, enum ci_role role) in ci_role_start() 286 static inline void ci_role_stop(struct ci_hdrc *ci) in ci_role_stop() 298 static inline enum usb_role ci_role_to_usb_role(struct ci_hdrc *c [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 *c [all...] |
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() 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 *c [all...] |
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 static inline void ci_otg_queue_work(struct ci_hdrc *ci) in ci_otg_queue_work()
|
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() 150 static int hw_wait_vbus_lower_bsv(struct ci_hdrc *ci) in hw_wait_vbus_lower_bsv() 167 static void ci_handle_id_switch(struct ci_hdrc *ci) in ci_handle_id_switch() 210 struct ci_hdrc *ci = container_of(work, struct ci_hdrc, work); in ci_otg_work() 239 int ci_hdrc_otg_init(struct ci_hdrc *ci) in ci_hdrc_otg_init() 258 void ci_hdrc_otg_destroy(struct ci_hdrc *c [all...] |
H A 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
|
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 | udc.c | 63 static inline int ep_to_bit(struct ci_hdrc *ci, int n) in ep_to_bit() 80 static int hw_device_state(struct ci_hdrc *ci, u32 dma) in hw_device_state() 101 static int hw_ep_flush(struct ci_hdrc *ci, int num, int dir) in hw_ep_flush() 123 static int hw_ep_disable(struct ci_hdrc *ci, int num, int dir) in hw_ep_disable() 139 static int hw_ep_enable(struct ci_hdrc *ci, int num, int dir, int type) in hw_ep_enable() 174 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() 221 static int hw_ep_set_halt(struct ci_hdrc *ci, int num, int dir, int value) in hw_ep_set_halt() 245 static int hw_port_is_high_speed(struct ci_hdrc *ci) in hw_port_is_high_speed() 259 static int hw_test_and_clear_complete(struct ci_hdrc *c [all...] |
H A D | core.c | 98 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(struct ci_hdrc *ci, bool enable) in ci_hdrc_enter_lpm() 211 static int hw_device_init(struct ci_hdrc *ci, void __iomem *base) in hw_device_init() 262 void hw_phymode_configure(struct ci_hdrc *ci) in hw_phymode_configure() 311 static int _ci_usb_phy_init(struct ci_hdrc *c [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.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_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 *c [all...] |
/kernel/linux/linux-6.6/include/linux/usb/ |
H A D | chipidea.h | 12 struct ci_hdrc; 29 struct ci_hdrc *ci; 73 int (*notify_event) (struct ci_hdrc *ci, unsigned event); 95 int (*hub_control)(struct ci_hdrc *ci, u16 typeReq, u16 wValue, 98 void (*enter_lpm)(struct ci_hdrc *ci, bool enable);
|