/kernel/linux/linux-5.10/drivers/usb/host/ |
H A D | xhci-debugfs.h | 107 void xhci_debugfs_init(struct xhci_hcd *xhci); 108 void xhci_debugfs_exit(struct xhci_hcd *xhci); 111 void xhci_debugfs_create_slot(struct xhci_hcd *xhci, int slot_id); 112 void xhci_debugfs_remove_slot(struct xhci_hcd *xhci, int slot_id); 113 void xhci_debugfs_create_endpoint(struct xhci_hcd *xhci, 116 void xhci_debugfs_remove_endpoint(struct xhci_hcd *xhci, 119 void xhci_debugfs_create_stream_files(struct xhci_hcd *xhci, 123 static inline void xhci_debugfs_init(struct xhci_hcd *xhci) { } in xhci_debugfs_init() 124 static inline void xhci_debugfs_exit(struct xhci_hcd *xhci) { } in xhci_debugfs_exit() 127 static inline void xhci_debugfs_create_slot(struct xhci_hcd * in xhci_debugfs_remove_root() [all...] |
H A D | xhci.h | 954 struct xhci_hcd *xhci; 1747 /* There is one xhci_hcd structure per controller */ 1748 struct xhci_hcd { struct 1949 static inline struct xhci_hcd *hcd_to_xhci(struct usb_hcd *hcd) in hcd_to_xhci() 1958 return (struct xhci_hcd *) (primary_hcd->hcd_priv); in hcd_to_xhci() 1961 static inline struct usb_hcd *xhci_to_hcd(struct xhci_hcd *xhci) in xhci_to_hcd() 1986 static inline u64 xhci_read_64(const struct xhci_hcd *xhci, in xhci_read_64() 1991 static inline void xhci_write_64(struct xhci_hcd *xhci, in xhci_write_64() 1997 static inline int xhci_link_trb_quirk(struct xhci_hcd *xhci) in xhci_link_trb_quirk() 2003 char *xhci_get_slot_state(struct xhci_hcd *xhc [all...] |
H A D | xhci-dbgcap.h | 123 struct xhci_hcd *xhci; 197 int xhci_dbc_init(struct xhci_hcd *xhci); 198 void xhci_dbc_exit(struct xhci_hcd *xhci); 199 int xhci_dbc_tty_probe(struct xhci_hcd *xhci); 207 int xhci_dbc_suspend(struct xhci_hcd *xhci); 208 int xhci_dbc_resume(struct xhci_hcd *xhci); 211 static inline int xhci_dbc_init(struct xhci_hcd *xhci) in xhci_dbc_init() 216 static inline void xhci_dbc_exit(struct xhci_hcd *xhci) in xhci_dbc_exit() 220 static inline int xhci_dbc_suspend(struct xhci_hcd *xhci) in xhci_dbc_suspend() 225 static inline int xhci_dbc_resume(struct xhci_hcd *xhc [all...] |
H A D | xhci-ring.c | 139 static void next_trb(struct xhci_hcd *xhci, in next_trb() 156 void inc_deq(struct xhci_hcd *xhci, struct xhci_ring *ring) in inc_deq() 204 static void inc_enq(struct xhci_hcd *xhci, struct xhci_ring *ring, in inc_enq() 259 static inline int room_on_ring(struct xhci_hcd *xhci, struct xhci_ring *ring, in room_on_ring() 277 void xhci_ring_cmd_db(struct xhci_hcd *xhci) in xhci_ring_cmd_db() 291 static bool xhci_mod_cmd_timer(struct xhci_hcd *xhci, unsigned long delay) in xhci_mod_cmd_timer() 296 static struct xhci_command *xhci_next_queued_cmd(struct xhci_hcd *xhci) in xhci_next_queued_cmd() 307 static void xhci_handle_stopped_cmd_ring(struct xhci_hcd *xhci, in xhci_handle_stopped_cmd_ring() 343 static int xhci_abort_cmd_ring(struct xhci_hcd *xhci, unsigned long flags) in xhci_abort_cmd_ring() 402 void xhci_ring_ep_doorbell(struct xhci_hcd *xhc [all...] |
H A D | xhci-debugfs.c | 86 static struct xhci_regset *xhci_debugfs_alloc_regset(struct xhci_hcd *xhci) in xhci_debugfs_alloc_regset() 114 static void xhci_debugfs_regset(struct xhci_hcd *xhci, u32 base, in xhci_debugfs_regset() 141 static void xhci_debugfs_extcap_regset(struct xhci_hcd *xhci, int cap_id, in xhci_debugfs_extcap_regset() 261 struct xhci_hcd *xhci; in xhci_slot_context_show() 283 struct xhci_hcd *xhci; in xhci_endpoint_context_show() 368 struct xhci_hcd *xhci = hcd_to_xhci(port->rhub->hcd); in xhci_port_write() 406 static void xhci_debugfs_create_files(struct xhci_hcd *xhci, in xhci_debugfs_create_files() 418 static struct dentry *xhci_debugfs_create_ring_dir(struct xhci_hcd *xhci, in xhci_debugfs_create_ring_dir() 432 static void xhci_debugfs_create_context_files(struct xhci_hcd *xhci, in xhci_debugfs_create_context_files() 444 void xhci_debugfs_create_endpoint(struct xhci_hcd *xhc [all...] |
H A D | xhci.c | 88 void xhci_quiesce(struct xhci_hcd *xhci) in xhci_quiesce() 112 int xhci_halt(struct xhci_hcd *xhci) in xhci_halt() 132 int xhci_start(struct xhci_hcd *xhci) in xhci_start() 169 int xhci_reset(struct xhci_hcd *xhci, u64 timeout_us) in xhci_reset() 227 static void xhci_zero_64b_regs(struct xhci_hcd *xhci) in xhci_zero_64b_regs() 301 static int xhci_setup_msi(struct xhci_hcd *xhci) in xhci_setup_msi() 317 0, "xhci_hcd", xhci_to_hcd(xhci)); in xhci_setup_msi() 330 static int xhci_setup_msix(struct xhci_hcd *xhci) in xhci_setup_msix() 356 "xhci_hcd", xhci_to_hcd(xhci)); in xhci_setup_msix() 373 static void xhci_cleanup_msix(struct xhci_hcd *xhc [all...] |
H A D | xhci-mem.c | 28 static struct xhci_segment *xhci_segment_alloc(struct xhci_hcd *xhci, in xhci_segment_alloc() 68 static void xhci_segment_free(struct xhci_hcd *xhci, struct xhci_segment *seg) in xhci_segment_free() 78 static void xhci_free_segments_for_ring(struct xhci_hcd *xhci, in xhci_free_segments_for_ring() 126 static void xhci_link_rings(struct xhci_hcd *xhci, struct xhci_ring *ring, in xhci_link_rings() 280 void xhci_ring_free(struct xhci_hcd *xhci, struct xhci_ring *ring) in xhci_ring_free() 321 static int xhci_alloc_segments_for_ring(struct xhci_hcd *xhci, in xhci_alloc_segments_for_ring() 371 struct xhci_ring *xhci_ring_alloc(struct xhci_hcd *xhci, in xhci_ring_alloc() 411 void xhci_free_endpoint_ring(struct xhci_hcd *xhci, in xhci_free_endpoint_ring() 423 int xhci_ring_expansion(struct xhci_hcd *xhci, struct xhci_ring *ring, in xhci_ring_expansion() 469 struct xhci_container_ctx *xhci_alloc_container_ctx(struct xhci_hcd *xhc [all...] |
H A D | xhci-pci.c | 75 static const char hcd_name[] = "xhci_hcd"; 89 static int xhci_pci_reinit(struct xhci_hcd *xhci, struct pci_dev *pdev) in xhci_pci_reinit() 105 static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) in xhci_pci_quirks() 371 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_find_lpm_incapable_ports() 405 struct xhci_hcd *xhci; in xhci_pci_setup() 449 struct xhci_hcd *xhci; in xhci_pci_probe() 528 struct xhci_hcd *xhci; in xhci_pci_remove() 566 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_ssic_port_unused_quirk() 601 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_pme_quirk() 622 struct xhci_hcd *xhc in xhci_pci_suspend() [all...] |
H A D | xhci-dbg.c | 13 char *xhci_get_slot_state(struct xhci_hcd *xhci, in xhci_get_slot_state() 22 void xhci_dbg_trace(struct xhci_hcd *xhci, void (*trace)(struct va_format *), in xhci_dbg_trace()
|
H A D | xhci-hub.c | 55 static int xhci_create_usb3_bos_desc(struct xhci_hcd *xhci, char *buf, in xhci_create_usb3_bos_desc() 169 static void xhci_common_hub_descriptor(struct xhci_hcd *xhci, in xhci_common_hub_descriptor() 192 static void xhci_usb2_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci, in xhci_usb2_hub_descriptor() 247 static void xhci_usb3_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci, in xhci_usb3_hub_descriptor() 280 static void xhci_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci, in xhci_hub_descriptor() 361 int xhci_find_slot_id_by_port(struct usb_hcd *hcd, struct xhci_hcd *xhci, in xhci_find_slot_id_by_port() 389 static int xhci_stop_device(struct xhci_hcd *xhci, int slot_id, int suspend) in xhci_stop_device() 462 void xhci_ring_device(struct xhci_hcd *xhci, int slot_id) in xhci_ring_device() 481 static void xhci_disable_port(struct usb_hcd *hcd, struct xhci_hcd *xhci, in xhci_disable_port() 504 static void xhci_clear_port_change_bit(struct xhci_hcd *xhc [all...] |
H A D | xhci-histb.c | 167 static void xhci_histb_quirks(struct device *dev, struct xhci_hcd *xhci) in xhci_histb_quirks() 203 struct xhci_hcd *xhci; in xhci_histb_probe() 326 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_histb_remove() 350 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_histb_suspend() 365 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_histb_resume()
|
H A D | xhci-plat.c | 87 static void xhci_plat_quirks(struct device *dev, struct xhci_hcd *xhci) in xhci_plat_quirks() 192 struct xhci_hcd *xhci; in xhci_plat_probe() 411 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_plat_remove() 440 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_plat_suspend() 468 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_plat_resume() 509 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_plat_runtime_suspend() 522 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_plat_runtime_resume()
|
H A D | xhci-ext-caps.c | 28 static int xhci_create_intel_xhci_sw_pdev(struct xhci_hcd *xhci, u32 cap_offset) in xhci_create_intel_xhci_sw_pdev() 83 int xhci_ext_cap_init(struct xhci_hcd *xhci) in xhci_ext_cap_init()
|
/kernel/linux/linux-6.6/drivers/usb/host/ |
H A D | xhci-debugfs.h | 107 void xhci_debugfs_init(struct xhci_hcd *xhci); 108 void xhci_debugfs_exit(struct xhci_hcd *xhci); 111 void xhci_debugfs_create_slot(struct xhci_hcd *xhci, int slot_id); 112 void xhci_debugfs_remove_slot(struct xhci_hcd *xhci, int slot_id); 113 void xhci_debugfs_create_endpoint(struct xhci_hcd *xhci, 116 void xhci_debugfs_remove_endpoint(struct xhci_hcd *xhci, 119 void xhci_debugfs_create_stream_files(struct xhci_hcd *xhci, 123 static inline void xhci_debugfs_init(struct xhci_hcd *xhci) { } in xhci_debugfs_init() 124 static inline void xhci_debugfs_exit(struct xhci_hcd *xhci) { } in xhci_debugfs_exit() 127 static inline void xhci_debugfs_create_slot(struct xhci_hcd * in xhci_debugfs_remove_root() [all...] |
H A D | xhci.h | 955 struct xhci_hcd *xhci; 1760 /* There is one xhci_hcd structure per controller */ 1761 struct xhci_hcd { struct 1964 static inline struct xhci_hcd *hcd_to_xhci(struct usb_hcd *hcd) in hcd_to_xhci() 1973 return (struct xhci_hcd *) (primary_hcd->hcd_priv); in hcd_to_xhci() 1976 static inline struct usb_hcd *xhci_to_hcd(struct xhci_hcd *xhci) in xhci_to_hcd() 1981 static inline struct usb_hcd *xhci_get_usb3_hcd(struct xhci_hcd *xhci) in xhci_get_usb3_hcd() 1994 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_hcd_is_usb3() 1999 static inline bool xhci_has_one_roothub(struct xhci_hcd *xhci) in xhci_has_one_roothub() 2025 static inline u64 xhci_read_64(const struct xhci_hcd *xhc [all...] |
H A D | xhci-dbgcap.h | 124 struct xhci_hcd *xhci; 202 int xhci_create_dbc_dev(struct xhci_hcd *xhci); 203 void xhci_remove_dbc_dev(struct xhci_hcd *xhci); 208 int xhci_dbc_tty_probe(struct device *dev, void __iomem *res, struct xhci_hcd *xhci); 219 int xhci_dbc_suspend(struct xhci_hcd *xhci); 220 int xhci_dbc_resume(struct xhci_hcd *xhci); 223 static inline int xhci_create_dbc_dev(struct xhci_hcd *xhci) in xhci_create_dbc_dev() 228 static inline void xhci_remove_dbc_dev(struct xhci_hcd *xhci) in xhci_remove_dbc_dev() 238 static inline int xhci_dbc_suspend(struct xhci_hcd *xhci) in xhci_dbc_suspend() 243 static inline int xhci_dbc_resume(struct xhci_hcd *xhc [all...] |
H A D | xhci-ring.c | 61 static int queue_command(struct xhci_hcd *xhci, struct xhci_command *cmd, 142 static void next_trb(struct xhci_hcd *xhci, in next_trb() 158 void inc_deq(struct xhci_hcd *xhci, struct xhci_ring *ring) in inc_deq() 214 static void inc_enq(struct xhci_hcd *xhci, struct xhci_ring *ring, in inc_enq() 280 static unsigned int xhci_num_trbs_free(struct xhci_hcd *xhci, struct xhci_ring *ring) in xhci_num_trbs_free() 316 static unsigned int xhci_ring_expansion_needed(struct xhci_hcd *xhci, struct xhci_ring *ring, in xhci_ring_expansion_needed() 355 void xhci_ring_cmd_db(struct xhci_hcd *xhci) in xhci_ring_cmd_db() 369 static bool xhci_mod_cmd_timer(struct xhci_hcd *xhci, unsigned long delay) in xhci_mod_cmd_timer() 374 static struct xhci_command *xhci_next_queued_cmd(struct xhci_hcd *xhci) in xhci_next_queued_cmd() 385 static void xhci_handle_stopped_cmd_ring(struct xhci_hcd *xhc [all...] |
H A D | xhci-debugfs.c | 86 static struct xhci_regset *xhci_debugfs_alloc_regset(struct xhci_hcd *xhci) in xhci_debugfs_alloc_regset() 114 static void xhci_debugfs_regset(struct xhci_hcd *xhci, u32 base, in xhci_debugfs_regset() 141 static void xhci_debugfs_extcap_regset(struct xhci_hcd *xhci, int cap_id, in xhci_debugfs_extcap_regset() 261 struct xhci_hcd *xhci; in xhci_slot_context_show() 283 struct xhci_hcd *xhci; in xhci_endpoint_context_show() 368 struct xhci_hcd *xhci = hcd_to_xhci(port->rhub->hcd); in xhci_port_write() 406 static void xhci_debugfs_create_files(struct xhci_hcd *xhci, in xhci_debugfs_create_files() 418 static struct dentry *xhci_debugfs_create_ring_dir(struct xhci_hcd *xhci, in xhci_debugfs_create_ring_dir() 432 static void xhci_debugfs_create_context_files(struct xhci_hcd *xhci, in xhci_debugfs_create_context_files() 444 void xhci_debugfs_create_endpoint(struct xhci_hcd *xhc [all...] |
H A D | xhci-pci.c | 77 static const char hcd_name[] = "xhci_hcd"; 92 static void xhci_msix_sync_irqs(struct xhci_hcd *xhci) in xhci_msix_sync_irqs() 106 static void xhci_cleanup_msix(struct xhci_hcd *xhci) in xhci_cleanup_msix() 131 static int xhci_setup_msi(struct xhci_hcd *xhci) in xhci_setup_msi() 147 0, "xhci_hcd", xhci_to_hcd(xhci)); in xhci_setup_msi() 160 static int xhci_setup_msix(struct xhci_hcd *xhci) in xhci_setup_msix() 186 "xhci_hcd", xhci_to_hcd(xhci)); in xhci_setup_msix() 204 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_try_enable_msi() 268 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_pci_stop() 277 static int xhci_pci_reinit(struct xhci_hcd *xhc [all...] |
H A D | xhci-mem.c | 29 static struct xhci_segment *xhci_segment_alloc(struct xhci_hcd *xhci, in xhci_segment_alloc() 69 static void xhci_segment_free(struct xhci_hcd *xhci, struct xhci_segment *seg) in xhci_segment_free() 79 static void xhci_free_segments_for_ring(struct xhci_hcd *xhci, in xhci_free_segments_for_ring() 127 static void xhci_link_rings(struct xhci_hcd *xhci, struct xhci_ring *ring, in xhci_link_rings() 280 void xhci_ring_free(struct xhci_hcd *xhci, struct xhci_ring *ring) in xhci_ring_free() 321 static int xhci_alloc_segments_for_ring(struct xhci_hcd *xhci, in xhci_alloc_segments_for_ring() 371 struct xhci_ring *xhci_ring_alloc(struct xhci_hcd *xhci, in xhci_ring_alloc() 411 void xhci_free_endpoint_ring(struct xhci_hcd *xhci, in xhci_free_endpoint_ring() 423 int xhci_ring_expansion(struct xhci_hcd *xhci, struct xhci_ring *ring, in xhci_ring_expansion() 460 struct xhci_container_ctx *xhci_alloc_container_ctx(struct xhci_hcd *xhc [all...] |
H A D | xhci.c | 87 void xhci_quiesce(struct xhci_hcd *xhci) in xhci_quiesce() 111 int xhci_halt(struct xhci_hcd *xhci) in xhci_halt() 134 int xhci_start(struct xhci_hcd *xhci) in xhci_start() 171 int xhci_reset(struct xhci_hcd *xhci, u64 timeout_us) in xhci_reset() 229 static void xhci_zero_64b_regs(struct xhci_hcd *xhci) in xhci_zero_64b_regs() 327 struct xhci_hcd *xhci; in compliance_mode_recovery() 375 static void compliance_mode_recovery_timer_init(struct xhci_hcd *xhci) in compliance_mode_recovery_timer_init() 415 static int xhci_all_ports_seen_u0(struct xhci_hcd *xhci) in xhci_all_ports_seen_u0() 430 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_init() 457 static int xhci_run_finished(struct xhci_hcd *xhc [all...] |
H A D | xhci-dbg.c | 13 char *xhci_get_slot_state(struct xhci_hcd *xhci, in xhci_get_slot_state() 22 void xhci_dbg_trace(struct xhci_hcd *xhci, void (*trace)(struct va_format *), in xhci_dbg_trace()
|
H A D | xhci-hub.c | 35 static int xhci_create_usb3x_bos_desc(struct xhci_hcd *xhci, char *buf, in xhci_create_usb3x_bos_desc() 255 static void xhci_common_hub_descriptor(struct xhci_hcd *xhci, in xhci_common_hub_descriptor() 278 static void xhci_usb2_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci, in xhci_usb2_hub_descriptor() 333 static void xhci_usb3_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci, in xhci_usb3_hub_descriptor() 366 static void xhci_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci, in xhci_hub_descriptor() 460 int xhci_find_slot_id_by_port(struct usb_hcd *hcd, struct xhci_hcd *xhci, in xhci_find_slot_id_by_port() 489 static int xhci_stop_device(struct xhci_hcd *xhci, int slot_id, int suspend) in xhci_stop_device() 562 void xhci_ring_device(struct xhci_hcd *xhci, int slot_id) in xhci_ring_device() 581 static void xhci_disable_port(struct xhci_hcd *xhci, struct xhci_port *port) in xhci_disable_port() 611 static void xhci_clear_port_change_bit(struct xhci_hcd *xhc [all...] |
H A D | xhci-plat.c | 77 static void xhci_plat_quirks(struct device *dev, struct xhci_hcd *xhci) in xhci_plat_quirks() 146 struct xhci_hcd *xhci; in xhci_plat_probe() 408 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_plat_remove() 442 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_plat_suspend() 470 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_plat_resume_common() 521 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_plat_runtime_suspend() 534 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_plat_runtime_resume()
|
H A D | xhci-dbgcap.c | 923 struct xhci_hcd *xhci; in dbc_show() 958 struct xhci_hcd *xhci; in dbc_store() 979 struct xhci_hcd *xhci; in dbc_idVendor_show() 992 struct xhci_hcd *xhci; in dbc_idVendor_store() 1019 struct xhci_hcd *xhci; in dbc_idProduct_show() 1032 struct xhci_hcd *xhci; in dbc_idProduct_store() 1058 struct xhci_hcd *xhci; in dbc_bcdDevice_show() 1071 struct xhci_hcd *xhci; in dbc_bcdDevice_store() 1098 struct xhci_hcd *xhci; in dbc_bInterfaceProtocol_show() 1111 struct xhci_hcd *xhc in dbc_bInterfaceProtocol_store() [all...] |