Home
last modified time | relevance | path

Searched refs:xhci (Results 1 - 25 of 62) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/usb/host/
H A Dxhci.c22 #include "xhci.h"
23 #include "xhci-trace.h"
24 #include "xhci-mtk.h"
25 #include "xhci-debugfs.h"
26 #include "xhci-dbgcap.h"
88 void xhci_quiesce(struct xhci_hcd *xhci) in xhci_quiesce() argument
95 halted = readl(&xhci->op_regs->status) & STS_HALT; in xhci_quiesce()
99 cmd = readl(&xhci->op_regs->command); in xhci_quiesce()
101 writel(cmd, &xhci->op_regs->command); in xhci_quiesce()
112 int xhci_halt(struct xhci_hcd *xhci) in xhci_halt() argument
132 xhci_start(struct xhci_hcd *xhci) xhci_start() argument
169 xhci_reset(struct xhci_hcd *xhci, u64 timeout_us) xhci_reset() argument
227 xhci_zero_64b_regs(struct xhci_hcd *xhci) xhci_zero_64b_regs() argument
301 xhci_setup_msi(struct xhci_hcd *xhci) xhci_setup_msi() argument
330 xhci_setup_msix(struct xhci_hcd *xhci) xhci_setup_msix() argument
373 xhci_cleanup_msix(struct xhci_hcd *xhci) xhci_cleanup_msix() argument
398 xhci_msix_sync_irqs(struct xhci_hcd *xhci) xhci_msix_sync_irqs() argument
413 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_try_enable_msi() local
473 xhci_cleanup_msix(struct xhci_hcd *xhci) xhci_cleanup_msix() argument
477 xhci_msix_sync_irqs(struct xhci_hcd *xhci) xhci_msix_sync_irqs() argument
485 struct xhci_hcd *xhci; compliance_mode_recovery() local
530 compliance_mode_recovery_timer_init(struct xhci_hcd *xhci) compliance_mode_recovery_timer_init() argument
570 xhci_all_ports_seen_u0(struct xhci_hcd *xhci) xhci_all_ports_seen_u0() argument
585 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_init() local
613 xhci_run_finished(struct xhci_hcd *xhci) xhci_run_finished() argument
647 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_run() local
725 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_stop() local
785 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_shutdown() local
823 xhci_save_registers(struct xhci_hcd *xhci) xhci_save_registers() argument
836 xhci_restore_registers(struct xhci_hcd *xhci) xhci_restore_registers() argument
849 xhci_set_cmd_ring_deq(struct xhci_hcd *xhci) xhci_set_cmd_ring_deq() argument
875 xhci_clear_command_ring(struct xhci_hcd *xhci) xhci_clear_command_ring() argument
922 xhci_disable_hub_port_wake(struct xhci_hcd *xhci, struct xhci_hub *rhub, bool do_wakeup) xhci_disable_hub_port_wake() argument
954 xhci_pending_portevent(struct xhci_hcd *xhci) xhci_pending_portevent() argument
995 xhci_suspend(struct xhci_hcd *xhci, bool do_wakeup) xhci_suspend() argument
1109 xhci_resume(struct xhci_hcd *xhci, bool hibernated) xhci_resume() argument
1386 struct xhci_hcd *xhci; xhci_check_args() local
1430 xhci_check_maxpacket(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, struct urb *urb, gfp_t mem_flags) xhci_check_maxpacket() argument
1506 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_urb_enqueue() local
1654 struct xhci_hcd *xhci; xhci_urb_dequeue() local
1784 struct xhci_hcd *xhci; xhci_drop_endpoint() local
1869 struct xhci_hcd *xhci; xhci_add_endpoint() local
1975 xhci_zero_in_ctx(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev) xhci_zero_in_ctx() argument
2009 xhci_configure_endpoint_result(struct xhci_hcd *xhci, struct usb_device *udev, u32 *cmd_status) xhci_configure_endpoint_result() argument
2059 xhci_evaluate_context_result(struct xhci_hcd *xhci, struct usb_device *udev, u32 *cmd_status) xhci_evaluate_context_result() argument
2109 xhci_count_num_new_endpoints(struct xhci_hcd *xhci, struct xhci_input_control_ctx *ctrl_ctx) xhci_count_num_new_endpoints() argument
2130 xhci_count_num_dropped_endpoints(struct xhci_hcd *xhci, struct xhci_input_control_ctx *ctrl_ctx) xhci_count_num_dropped_endpoints() argument
2156 xhci_reserve_host_resources(struct xhci_hcd *xhci, struct xhci_input_control_ctx *ctrl_ctx) xhci_reserve_host_resources() argument
2183 xhci_free_host_resources(struct xhci_hcd *xhci, struct xhci_input_control_ctx *ctrl_ctx) xhci_free_host_resources() argument
2202 xhci_finish_resource_reservation(struct xhci_hcd *xhci, struct xhci_input_control_ctx *ctrl_ctx) xhci_finish_resource_reservation() argument
2249 xhci_check_tt_bw_table(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int old_active_eps) xhci_check_tt_bw_table() argument
2279 xhci_check_ss_bw(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev) xhci_check_ss_bw() argument
2336 xhci_check_bw_table(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int old_active_eps) xhci_check_bw_table() argument
2539 xhci_drop_ep_from_interval_table(struct xhci_hcd *xhci, struct xhci_bw_info *ep_bw, struct xhci_interval_bw_table *bw_table, struct usb_device *udev, struct xhci_virt_ep *virt_ep, struct xhci_tt_bw_info *tt_info) xhci_drop_ep_from_interval_table() argument
2603 xhci_add_ep_to_interval_table(struct xhci_hcd *xhci, struct xhci_bw_info *ep_bw, struct xhci_interval_bw_table *bw_table, struct usb_device *udev, struct xhci_virt_ep *virt_ep, struct xhci_tt_bw_info *tt_info) xhci_add_ep_to_interval_table() argument
2677 xhci_update_tt_active_eps(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int old_active_eps) xhci_update_tt_active_eps() argument
2697 xhci_reserve_bandwidth(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, struct xhci_container_ctx *in_ctx) xhci_reserve_bandwidth() argument
2790 xhci_configure_endpoint(struct xhci_hcd *xhci, struct usb_device *udev, struct xhci_command *command, bool ctx_change, bool must_succeed) xhci_configure_endpoint() argument
2886 xhci_check_bw_drop_ep_streams(struct xhci_hcd *xhci, struct xhci_virt_device *vdev, int i) xhci_check_bw_drop_ep_streams() argument
2914 struct xhci_hcd *xhci; xhci_check_bandwidth() local
3010 struct xhci_hcd *xhci; xhci_reset_bandwidth() local
3032 xhci_setup_input_ctx_for_config_ep(struct xhci_hcd *xhci, struct xhci_container_ctx *in_ctx, struct xhci_container_ctx *out_ctx, struct xhci_input_control_ctx *ctrl_ctx, u32 add_flags, u32 drop_flags) xhci_setup_input_ctx_for_config_ep() argument
3044 xhci_setup_input_ctx_for_quirk(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, struct xhci_dequeue_state *deq_state) xhci_setup_input_ctx_for_quirk() argument
3083 xhci_cleanup_stalled_ring(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, unsigned int stream_id, struct xhci_td *td) xhci_cleanup_stalled_ring() argument
3125 struct xhci_hcd *xhci; xhci_endpoint_disable() local
3179 struct xhci_hcd *xhci; xhci_endpoint_reset() local
3307 xhci_check_streams_endpoint(struct xhci_hcd *xhci, struct usb_device *udev, struct usb_host_endpoint *ep, unsigned int slot_id) xhci_check_streams_endpoint() argument
3347 xhci_calculate_streams_entries(struct xhci_hcd *xhci, unsigned int *num_streams, unsigned int *num_stream_ctxs) xhci_calculate_streams_entries() argument
3373 xhci_calculate_streams_and_bitmask(struct xhci_hcd *xhci, struct usb_device *udev, struct usb_host_endpoint **eps, unsigned int num_eps, unsigned int *num_streams, u32 *changed_ep_bitmask) xhci_calculate_streams_and_bitmask() argument
3405 xhci_calculate_no_streams_bitmask(struct xhci_hcd *xhci, struct usb_device *udev, struct usb_host_endpoint **eps, unsigned int num_eps) xhci_calculate_no_streams_bitmask() argument
3467 struct xhci_hcd *xhci; xhci_alloc_streams() local
3634 struct xhci_hcd *xhci; xhci_free_streams() local
3721 xhci_free_device_endpoint_resources(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, bool drop_control_ep) xhci_free_device_endpoint_resources() argument
3766 struct xhci_hcd *xhci; xhci_discover_or_reset_device() local
3925 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_free_dev() local
3964 xhci_disable_slot(struct xhci_hcd *xhci, u32 slot_id) xhci_disable_slot() argument
4014 xhci_reserve_host_control_ep_resources(struct xhci_hcd *xhci) xhci_reserve_host_control_ep_resources() argument
4037 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_alloc_dev() local
4130 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_setup_device() local
4337 xhci_change_max_exit_latency(struct xhci_hcd *xhci, struct usb_device *udev, u16 max_exit_latency) xhci_change_max_exit_latency() argument
4403 xhci_calculate_hird_besl(struct xhci_hcd *xhci, struct usb_device *udev) xhci_calculate_hird_besl() argument
4462 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_set_usb2_hardware_lpm() local
4570 xhci_check_usb2_port_capability(struct xhci_hcd *xhci, int port, unsigned capability) xhci_check_usb2_port_capability() argument
4591 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_update_device() local
4713 xhci_calculate_u1_timeout(struct xhci_hcd *xhci, struct usb_device *udev, struct usb_endpoint_descriptor *desc) xhci_calculate_u1_timeout() argument
4777 xhci_calculate_u2_timeout(struct xhci_hcd *xhci, struct usb_device *udev, struct usb_endpoint_descriptor *desc) xhci_calculate_u2_timeout() argument
4808 xhci_call_host_update_timeout_for_endpoint(struct xhci_hcd *xhci, struct usb_device *udev, struct usb_endpoint_descriptor *desc, enum usb3_link_state state, u16 *timeout) xhci_call_host_update_timeout_for_endpoint() argument
4822 xhci_update_timeout_for_endpoint(struct xhci_hcd *xhci, struct usb_device *udev, struct usb_endpoint_descriptor *desc, enum usb3_link_state state, u16 *timeout) xhci_update_timeout_for_endpoint() argument
4847 xhci_update_timeout_for_interface(struct xhci_hcd *xhci, struct usb_device *udev, struct usb_host_interface *alt, enum usb3_link_state state, u16 *timeout) xhci_update_timeout_for_interface() argument
4888 xhci_check_tier_policy(struct xhci_hcd *xhci, struct usb_device *udev, enum usb3_link_state state) xhci_check_tier_policy() argument
4906 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_calculate_lpm_timeout() local
5019 struct xhci_hcd *xhci; xhci_enable_usb3_lpm_timeout() local
5058 struct xhci_hcd *xhci; xhci_disable_usb3_lpm_timeout() local
5103 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_update_hub_device() local
5204 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_get_frame() local
5211 struct xhci_hcd *xhci; xhci_gen_setup() local
5369 struct xhci_hcd *xhci; xhci_clear_tt_buffer_complete() local
[all...]
H A Dxhci-mem.c17 #include "xhci.h"
18 #include "xhci-trace.h"
19 #include "xhci-debugfs.h"
28 static struct xhci_segment *xhci_segment_alloc(struct xhci_hcd *xhci, in xhci_segment_alloc() argument
36 struct device *dev = xhci_to_hcd(xhci)->self.sysdev; in xhci_segment_alloc()
42 seg->trbs = dma_pool_zalloc(xhci->segment_pool, flags, &dma); in xhci_segment_alloc()
52 dma_pool_free(xhci->segment_pool, seg->trbs, dma); in xhci_segment_alloc()
68 static void xhci_segment_free(struct xhci_hcd *xhci, struct xhci_segment *seg) in xhci_segment_free() argument
71 dma_pool_free(xhci->segment_pool, seg->trbs, seg->dma); in xhci_segment_free()
78 static void xhci_free_segments_for_ring(struct xhci_hcd *xhci, in xhci_free_segments_for_ring() argument
126 xhci_link_rings(struct xhci_hcd *xhci, struct xhci_ring *ring, struct xhci_segment *first, struct xhci_segment *last, unsigned int num_segs) xhci_link_rings() argument
280 xhci_ring_free(struct xhci_hcd *xhci, struct xhci_ring *ring) xhci_ring_free() argument
321 xhci_alloc_segments_for_ring(struct xhci_hcd *xhci, struct xhci_segment **first, struct xhci_segment **last, unsigned int num_segs, unsigned int cycle_state, enum xhci_ring_type type, unsigned int max_packet, gfp_t flags) xhci_alloc_segments_for_ring() argument
371 xhci_ring_alloc(struct xhci_hcd *xhci, unsigned int num_segs, unsigned int cycle_state, enum xhci_ring_type type, unsigned int max_packet, gfp_t flags) xhci_ring_alloc() argument
411 xhci_free_endpoint_ring(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, unsigned int ep_index) xhci_free_endpoint_ring() argument
423 xhci_ring_expansion(struct xhci_hcd *xhci, struct xhci_ring *ring, unsigned int num_trbs, gfp_t flags) xhci_ring_expansion() argument
469 xhci_alloc_container_ctx(struct xhci_hcd *xhci, int type, gfp_t flags) xhci_alloc_container_ctx() argument
495 xhci_free_container_ctx(struct xhci_hcd *xhci, struct xhci_container_ctx *ctx) xhci_free_container_ctx() argument
513 xhci_get_slot_ctx(struct xhci_hcd *xhci, struct xhci_container_ctx *ctx) xhci_get_slot_ctx() argument
523 xhci_get_ep_ctx(struct xhci_hcd *xhci, struct xhci_container_ctx *ctx, unsigned int ep_index) xhci_get_ep_ctx() argument
539 xhci_free_stream_ctx(struct xhci_hcd *xhci, unsigned int num_stream_ctxs, struct xhci_stream_ctx *stream_ctx, dma_addr_t dma) xhci_free_stream_ctx() argument
567 xhci_alloc_stream_ctx(struct xhci_hcd *xhci, unsigned int num_stream_ctxs, dma_addr_t *dma, gfp_t mem_flags) xhci_alloc_stream_ctx() argument
621 xhci_alloc_stream_info(struct xhci_hcd *xhci, unsigned int num_stream_ctxs, unsigned int num_streams, unsigned int max_packet, gfp_t mem_flags) xhci_alloc_stream_info() argument
739 xhci_setup_streams_ep_input_ctx(struct xhci_hcd *xhci, struct xhci_ep_ctx *ep_ctx, struct xhci_stream_info *stream_info) xhci_setup_streams_ep_input_ctx() argument
776 xhci_free_stream_info(struct xhci_hcd *xhci, struct xhci_stream_info *stream_info) xhci_free_stream_info() argument
808 xhci_init_endpoint_timer(struct xhci_hcd *xhci, struct xhci_virt_ep *ep) xhci_init_endpoint_timer() argument
816 xhci_free_tt_info(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int slot_id) xhci_free_tt_info() argument
846 xhci_alloc_tt_info(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, struct usb_device *hdev, struct usb_tt *tt, gfp_t mem_flags) xhci_alloc_tt_info() argument
891 xhci_free_virt_device(struct xhci_hcd *xhci, int slot_id) xhci_free_virt_device() argument
954 xhci_free_virt_devices_depth_first(struct xhci_hcd *xhci, int slot_id) xhci_free_virt_devices_depth_first() argument
990 xhci_alloc_virt_device(struct xhci_hcd *xhci, int slot_id, struct usb_device *udev, gfp_t flags) xhci_alloc_virt_device() argument
1063 xhci_copy_ep0_dequeue_into_input_ctx(struct xhci_hcd *xhci, struct usb_device *udev) xhci_copy_ep0_dequeue_into_input_ctx() argument
1095 xhci_find_real_port_number(struct xhci_hcd *xhci, struct usb_device *udev) xhci_find_real_port_number() argument
1114 xhci_setup_addressable_virt_dev(struct xhci_hcd *xhci, struct usb_device *udev) xhci_setup_addressable_virt_dev() argument
1443 xhci_endpoint_init(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, struct usb_device *udev, struct usb_host_endpoint *ep, gfp_t mem_flags) xhci_endpoint_init() argument
1542 xhci_endpoint_zero(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, struct usb_host_endpoint *ep) xhci_endpoint_zero() argument
1571 xhci_update_bw_info(struct xhci_hcd *xhci, struct xhci_container_ctx *in_ctx, struct xhci_input_control_ctx *ctrl_ctx, struct xhci_virt_device *virt_dev) xhci_update_bw_info() argument
1629 xhci_endpoint_copy(struct xhci_hcd *xhci, struct xhci_container_ctx *in_ctx, struct xhci_container_ctx *out_ctx, unsigned int ep_index) xhci_endpoint_copy() argument
1655 xhci_slot_copy(struct xhci_hcd *xhci, struct xhci_container_ctx *in_ctx, struct xhci_container_ctx *out_ctx) xhci_slot_copy() argument
1672 scratchpad_alloc(struct xhci_hcd *xhci, gfp_t flags) scratchpad_alloc() argument
1736 scratchpad_free(struct xhci_hcd *xhci) scratchpad_free() argument
1760 xhci_alloc_command(struct xhci_hcd *xhci, bool allocate_completion, gfp_t mem_flags) xhci_alloc_command() argument
1786 xhci_alloc_command_with_ctx(struct xhci_hcd *xhci, bool allocate_completion, gfp_t mem_flags) xhci_alloc_command_with_ctx() argument
1810 xhci_free_command(struct xhci_hcd *xhci, struct xhci_command *command) xhci_free_command() argument
1819 xhci_alloc_erst(struct xhci_hcd *xhci, struct xhci_ring *evt_ring, struct xhci_erst *erst, gfp_t flags) xhci_alloc_erst() argument
1849 xhci_free_erst(struct xhci_hcd *xhci, struct xhci_erst *erst) xhci_free_erst() argument
1862 xhci_mem_cleanup(struct xhci_hcd *xhci) xhci_mem_cleanup() argument
1962 xhci_test_trb_in_td(struct xhci_hcd *xhci, struct xhci_segment *input_seg, union xhci_trb *start_trb, union xhci_trb *end_trb, dma_addr_t input_dma, struct xhci_segment *result_seg, char *test_name, int test_number) xhci_test_trb_in_td() argument
1999 xhci_check_trb_in_td_math(struct xhci_hcd *xhci) xhci_check_trb_in_td_math() argument
2120 xhci_set_hc_event_deq(struct xhci_hcd *xhci) xhci_set_hc_event_deq() argument
2144 xhci_add_in_port(struct xhci_hcd *xhci, unsigned int num_ports, __le32 __iomem *addr, int max_caps) xhci_add_in_port() argument
2286 xhci_create_rhub_port_array(struct xhci_hcd *xhci, struct xhci_hub *rhub, gfp_t flags) xhci_create_rhub_port_array() argument
2319 xhci_setup_port_arrays(struct xhci_hcd *xhci, gfp_t flags) xhci_setup_port_arrays() argument
2427 xhci_mem_init(struct xhci_hcd *xhci, gfp_t flags) xhci_mem_init() argument
[all...]
H A Dxhci-ring.c58 #include "xhci.h"
59 #include "xhci-trace.h"
60 #include "xhci-mtk.h"
139 static void next_trb(struct xhci_hcd *xhci, in next_trb() argument
156 void inc_deq(struct xhci_hcd *xhci, struct xhci_ring *ring) in inc_deq() argument
204 static void inc_enq(struct xhci_hcd *xhci, struct xhci_ring *ring, in inc_enq() argument
234 (xhci->quirks & XHCI_AMD_0x96_HOST)) && in inc_enq()
235 !xhci_link_trb_quirk(xhci)) { in inc_enq()
259 static inline int room_on_ring(struct xhci_hcd *xhci, struct xhci_ring *ring, in room_on_ring() argument
277 void xhci_ring_cmd_db(struct xhci_hcd *xhci) in xhci_ring_cmd_db() argument
291 xhci_mod_cmd_timer(struct xhci_hcd *xhci, unsigned long delay) xhci_mod_cmd_timer() argument
296 xhci_next_queued_cmd(struct xhci_hcd *xhci) xhci_next_queued_cmd() argument
307 xhci_handle_stopped_cmd_ring(struct xhci_hcd *xhci, struct xhci_command *cur_cmd) xhci_handle_stopped_cmd_ring() argument
343 xhci_abort_cmd_ring(struct xhci_hcd *xhci, unsigned long flags) xhci_abort_cmd_ring() argument
402 xhci_ring_ep_doorbell(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, unsigned int stream_id) xhci_ring_ep_doorbell() argument
430 ring_doorbell_for_active_rings(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index) ring_doorbell_for_active_rings() argument
455 xhci_ring_doorbell_for_active_rings(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index) xhci_ring_doorbell_for_active_rings() argument
462 xhci_get_virt_ep(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index) xhci_get_virt_ep() argument
486 xhci_triad_to_transfer_ring(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, unsigned int stream_id) xhci_triad_to_transfer_ring() argument
528 xhci_get_hw_deq(struct xhci_hcd *xhci, struct xhci_virt_device *vdev, unsigned int ep_index, unsigned int stream_id) xhci_get_hw_deq() argument
563 xhci_find_new_dequeue_state(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, unsigned int stream_id, struct xhci_td *cur_td, struct xhci_dequeue_state *state) xhci_find_new_dequeue_state() argument
690 td_to_noop(struct xhci_hcd *xhci, struct xhci_ring *ep_ring, struct xhci_td *td, bool flip_cycle) td_to_noop() argument
710 xhci_stop_watchdog_timer_in_irq(struct xhci_hcd *xhci, struct xhci_virt_ep *ep) xhci_stop_watchdog_timer_in_irq() argument
722 xhci_giveback_urb_in_irq(struct xhci_hcd *xhci, struct xhci_td *cur_td, int status) xhci_giveback_urb_in_irq() argument
742 xhci_unmap_td_bounce_buffer(struct xhci_hcd *xhci, struct xhci_ring *ring, struct xhci_td *td) xhci_unmap_td_bounce_buffer() argument
776 xhci_td_cleanup(struct xhci_hcd *xhci, struct xhci_td *td, struct xhci_ring *ep_ring, int status) xhci_td_cleanup() argument
822 xhci_reset_halted_ep(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, enum xhci_ep_reset_type reset_type) xhci_reset_halted_ep() argument
842 xhci_handle_halted_endpoint(struct xhci_hcd *xhci, struct xhci_virt_ep *ep, unsigned int stream_id, struct xhci_td *td, enum xhci_ep_reset_type reset_type) xhci_handle_halted_endpoint() argument
881 struct xhci_hcd *xhci; xhci_invalidate_cancelled_tds() local
933 xhci_handle_cmd_stop_ep(struct xhci_hcd *xhci, int slot_id, union xhci_trb *trb, struct xhci_event_cmd *event) xhci_handle_cmd_stop_ep() argument
1018 xhci_kill_ring_urbs(struct xhci_hcd *xhci, struct xhci_ring *ring) xhci_kill_ring_urbs() argument
1037 xhci_kill_endpoint_urbs(struct xhci_hcd *xhci, int slot_id, int ep_index) xhci_kill_endpoint_urbs() argument
1093 xhci_hc_died(struct xhci_hcd *xhci) xhci_hc_died() argument
1138 struct xhci_hcd *xhci = ep->xhci; xhci_stop_endpoint_command_watchdog() local
1173 update_ring_for_set_deq_completion(struct xhci_hcd *xhci, struct xhci_virt_device *dev, struct xhci_ring *ep_ring, unsigned int ep_index) update_ring_for_set_deq_completion() argument
1226 xhci_handle_cmd_set_deq(struct xhci_hcd *xhci, int slot_id, union xhci_trb *trb, u32 cmd_comp_code) xhci_handle_cmd_set_deq() argument
1323 xhci_handle_cmd_reset_ep(struct xhci_hcd *xhci, int slot_id, union xhci_trb *trb, u32 cmd_comp_code) xhci_handle_cmd_reset_ep() argument
1373 xhci_handle_cmd_enable_slot(struct xhci_hcd *xhci, int slot_id, struct xhci_command *command, u32 cmd_comp_code) xhci_handle_cmd_enable_slot() argument
1382 xhci_handle_cmd_disable_slot(struct xhci_hcd *xhci, int slot_id) xhci_handle_cmd_disable_slot() argument
1399 xhci_handle_cmd_config_ep(struct xhci_hcd *xhci, int slot_id, struct xhci_event_cmd *event, u32 cmd_comp_code) xhci_handle_cmd_config_ep() argument
1456 xhci_handle_cmd_addr_dev(struct xhci_hcd *xhci, int slot_id) xhci_handle_cmd_addr_dev() argument
1466 xhci_handle_cmd_reset_dev(struct xhci_hcd *xhci, int slot_id, struct xhci_event_cmd *event) xhci_handle_cmd_reset_dev() argument
1482 xhci_handle_cmd_nec_get_fw(struct xhci_hcd *xhci, struct xhci_event_cmd *event) xhci_handle_cmd_nec_get_fw() argument
1507 xhci_cleanup_command_queue(struct xhci_hcd *xhci) xhci_cleanup_command_queue() argument
1517 struct xhci_hcd *xhci; xhci_handle_command_timeout() local
1569 handle_cmd_completion(struct xhci_hcd *xhci, struct xhci_event_cmd *event) handle_cmd_completion() argument
1701 handle_vendor_event(struct xhci_hcd *xhci, union xhci_trb *event) handle_vendor_event() argument
1712 handle_device_notification(struct xhci_hcd *xhci, union xhci_trb *event) handle_device_notification() argument
1744 xhci_cavium_reset_phy_quirk(struct xhci_hcd *xhci) xhci_cavium_reset_phy_quirk() argument
1761 handle_port_status(struct xhci_hcd *xhci, union xhci_trb *event) handle_port_status() argument
1944 trb_in_td(struct xhci_hcd *xhci, struct xhci_segment *start_seg, union xhci_trb *start_trb, union xhci_trb *end_trb, dma_addr_t suspect_dma, bool debug) trb_in_td() argument
2005 xhci_clear_hub_tt_buffer(struct xhci_hcd *xhci, struct xhci_td *td, struct xhci_virt_ep *ep) xhci_clear_hub_tt_buffer() argument
2028 xhci_requires_manual_halt_cleanup(struct xhci_hcd *xhci, struct xhci_ep_ctx *ep_ctx, unsigned int trb_comp_code) xhci_requires_manual_halt_cleanup() argument
2048 xhci_is_vendor_info_code(struct xhci_hcd *xhci, unsigned int trb_comp_code) xhci_is_vendor_info_code() argument
2062 finish_td(struct xhci_hcd *xhci, struct xhci_virt_ep *ep, struct xhci_ring *ep_ring, struct xhci_td *td, u32 trb_comp_code) finish_td() argument
2109 sum_trb_lengths(struct xhci_hcd *xhci, struct xhci_ring *ring, union xhci_trb *stop_trb) sum_trb_lengths() argument
2126 process_ctrl_td(struct xhci_hcd *xhci, struct xhci_virt_ep *ep, struct xhci_ring *ep_ring, struct xhci_td *td, union xhci_trb *ep_trb, struct xhci_transfer_event *event) process_ctrl_td() argument
2222 process_isoc_td(struct xhci_hcd *xhci, struct xhci_virt_ep *ep, struct xhci_ring *ep_ring, struct xhci_td *td, union xhci_trb *ep_trb, struct xhci_transfer_event *event) process_isoc_td() argument
2323 skip_isoc_td(struct xhci_hcd *xhci, struct xhci_td *td, struct xhci_virt_ep *ep, int status) skip_isoc_td() argument
2352 process_bulk_intr_td(struct xhci_hcd *xhci, struct xhci_virt_ep *ep, struct xhci_ring *ep_ring, struct xhci_td *td, union xhci_trb *ep_trb, struct xhci_transfer_event *event) process_bulk_intr_td() argument
2429 handle_tx_event(struct xhci_hcd *xhci, struct xhci_transfer_event *event) handle_tx_event() argument
2849 xhci_handle_event(struct xhci_hcd *xhci) xhci_handle_event() argument
2924 xhci_update_erst_dequeue(struct xhci_hcd *xhci, union xhci_trb *event_ring_deq) xhci_update_erst_dequeue() argument
2962 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_irq() local
3054 queue_trb(struct xhci_hcd *xhci, struct xhci_ring *ring, bool more_trbs_coming, u32 field1, u32 field2, u32 field3, u32 field4) queue_trb() argument
3077 prepare_ring(struct xhci_hcd *xhci, struct xhci_ring *ep_ring, u32 ep_state, unsigned int num_trbs, gfp_t mem_flags) prepare_ring() argument
3155 prepare_transfer(struct xhci_hcd *xhci, struct xhci_virt_device *xdev, unsigned int ep_index, unsigned int stream_id, unsigned int num_trbs, struct urb *urb, unsigned int td_index, gfp_t mem_flags) prepare_transfer() argument
3261 giveback_first_trb(struct xhci_hcd *xhci, int slot_id, unsigned int ep_index, unsigned int stream_id, int start_cycle, struct xhci_generic_trb *start_trb) giveback_first_trb() argument
3277 check_interval(struct xhci_hcd *xhci, struct urb *urb, struct xhci_ep_ctx *ep_ctx) check_interval() argument
3313 xhci_queue_intr_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index) xhci_queue_intr_tx() argument
3344 xhci_td_remainder(struct xhci_hcd *xhci, int transferred, int trb_buff_len, unsigned int td_total_len, struct urb *urb, bool more_trbs_coming) xhci_td_remainder() argument
3371 xhci_align_td(struct xhci_hcd *xhci, struct urb *urb, u32 enqd_len, u32 *trb_buff_len, struct xhci_segment *seg) xhci_align_td() argument
3441 xhci_queue_bulk_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index) xhci_queue_bulk_tx() argument
3602 xhci_queue_ctrl_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index) xhci_queue_ctrl_tx() argument
3744 xhci_get_burst_count(struct xhci_hcd *xhci, struct urb *urb, unsigned int total_packet_count) xhci_get_burst_count() argument
3764 xhci_get_last_burst_packet_count(struct xhci_hcd *xhci, struct urb *urb, unsigned int total_packet_count) xhci_get_last_burst_packet_count() argument
3796 xhci_get_isoc_frame_id(struct xhci_hcd *xhci, struct urb *urb, int index) xhci_get_isoc_frame_id() argument
3881 trb_block_event_intr(struct xhci_hcd *xhci, int num_tds, int i) trb_block_event_intr() argument
3899 xhci_queue_isoc_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index) xhci_queue_isoc_tx() argument
4092 xhci_queue_isoc_tx_prepare(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index) xhci_queue_isoc_tx_prepare() argument
4177 queue_command(struct xhci_hcd *xhci, struct xhci_command *cmd, u32 field1, u32 field2, u32 field3, u32 field4, bool command_must_succeed) queue_command() argument
4219 xhci_queue_slot_control(struct xhci_hcd *xhci, struct xhci_command *cmd, u32 trb_type, u32 slot_id) xhci_queue_slot_control() argument
4227 xhci_queue_address_device(struct xhci_hcd *xhci, struct xhci_command *cmd, dma_addr_t in_ctx_ptr, u32 slot_id, enum xhci_setup_dev setup) xhci_queue_address_device() argument
4236 xhci_queue_vendor_command(struct xhci_hcd *xhci, struct xhci_command *cmd, u32 field1, u32 field2, u32 field3, u32 field4) xhci_queue_vendor_command() argument
4243 xhci_queue_reset_device(struct xhci_hcd *xhci, struct xhci_command *cmd, u32 slot_id) xhci_queue_reset_device() argument
4252 xhci_queue_configure_endpoint(struct xhci_hcd *xhci, struct xhci_command *cmd, dma_addr_t in_ctx_ptr, u32 slot_id, bool command_must_succeed) xhci_queue_configure_endpoint() argument
4263 xhci_queue_evaluate_context(struct xhci_hcd *xhci, struct xhci_command *cmd, dma_addr_t in_ctx_ptr, u32 slot_id, bool command_must_succeed) xhci_queue_evaluate_context() argument
4276 xhci_queue_stop_endpoint(struct xhci_hcd *xhci, struct xhci_command *cmd, int slot_id, unsigned int ep_index, int suspend) xhci_queue_stop_endpoint() argument
4289 xhci_queue_new_dequeue_state(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, struct xhci_dequeue_state *deq_state) xhci_queue_new_dequeue_state() argument
4353 xhci_queue_reset_ep(struct xhci_hcd *xhci, struct xhci_command *cmd, int slot_id, unsigned int ep_index, enum xhci_ep_reset_type reset_type) xhci_queue_reset_ep() argument
[all...]
H A Dxhci-pci.c17 #include "xhci.h"
18 #include "xhci-trace.h"
19 #include "xhci-pci.h"
89 static int xhci_pci_reinit(struct xhci_hcd *xhci, struct pci_dev *pdev) in xhci_pci_reinit() argument
99 xhci_dbg(xhci, "MWI active\n"); in xhci_pci_reinit()
101 xhci_dbg(xhci, "Finished xhci_pci_reinit\n"); in xhci_pci_reinit()
105 static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) in xhci_pci_quirks() argument
115 xhci->quirks |= driver_data->quirks; in xhci_pci_quirks()
124 xhci->quirks |= XHCI_RESET_EP_QUIRK; in xhci_pci_quirks()
125 xhci_dbg_trace(xhci, trace_xhci_dbg_quirk in xhci_pci_quirks()
371 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_find_lpm_incapable_ports() local
405 struct xhci_hcd *xhci; xhci_pci_setup() local
449 struct xhci_hcd *xhci; xhci_pci_probe() local
528 struct xhci_hcd *xhci; xhci_pci_remove() local
566 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_ssic_port_unused_quirk() local
601 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_pme_quirk() local
622 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_pci_suspend() local
651 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_pci_resume() local
690 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_pci_shutdown() local
[all...]
H A Dxhci-hub.c15 #include "xhci.h"
16 #include "xhci-trace.h"
55 static int xhci_create_usb3_bos_desc(struct xhci_hcd *xhci, char *buf, in xhci_create_usb3_bos_desc() argument
67 /* does xhci support USB 3.1 Enhanced SuperSpeed */ in xhci_create_usb3_bos_desc()
68 for (i = 0; i < xhci->num_port_caps; i++) { in xhci_create_usb3_bos_desc()
69 if (xhci->port_caps[i].maj_rev == 0x03 && in xhci_create_usb3_bos_desc()
70 xhci->port_caps[i].min_rev >= 0x01) { in xhci_create_usb3_bos_desc()
72 port_cap = &xhci->port_caps[i]; in xhci_create_usb3_bos_desc()
78 /* does xhci provide a PSI table for SSA speed attributes? */ in xhci_create_usb3_bos_desc()
99 temp = readl(&xhci in xhci_create_usb3_bos_desc()
169 xhci_common_hub_descriptor(struct xhci_hcd *xhci, struct usb_hub_descriptor *desc, int ports) xhci_common_hub_descriptor() argument
192 xhci_usb2_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci, struct usb_hub_descriptor *desc) xhci_usb2_hub_descriptor() argument
247 xhci_usb3_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci, struct usb_hub_descriptor *desc) xhci_usb3_hub_descriptor() argument
280 xhci_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci, struct usb_hub_descriptor *desc) xhci_hub_descriptor() argument
361 xhci_find_slot_id_by_port(struct usb_hcd *hcd, struct xhci_hcd *xhci, u16 port) xhci_find_slot_id_by_port() argument
389 xhci_stop_device(struct xhci_hcd *xhci, int slot_id, int suspend) xhci_stop_device() argument
462 xhci_ring_device(struct xhci_hcd *xhci, int slot_id) xhci_ring_device() argument
481 xhci_disable_port(struct usb_hcd *hcd, struct xhci_hcd *xhci, u16 wIndex, __le32 __iomem *addr, u32 port_status) xhci_disable_port() argument
504 xhci_clear_port_change_bit(struct xhci_hcd *xhci, u16 wValue, u16 wIndex, __le32 __iomem *addr, u32 port_status) xhci_clear_port_change_bit() argument
557 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_get_rhub() local
604 xhci_port_set_test_mode(struct xhci_hcd *xhci, u16 test_mode, u16 wIndex) xhci_port_set_test_mode() argument
663 xhci_exit_test_mode(struct xhci_hcd *xhci) xhci_exit_test_mode() argument
682 xhci_set_link_state(struct xhci_hcd *xhci, struct xhci_port *port, u32 link_state) xhci_set_link_state() argument
699 xhci_set_remote_wake_mask(struct xhci_hcd *xhci, struct xhci_port *port, u16 wake_mask) xhci_set_remote_wake_mask() argument
726 xhci_test_and_clear_bit(struct xhci_hcd *xhci, struct xhci_port *port, u32 port_bit) xhci_test_and_clear_bit() argument
740 xhci_hub_report_usb3_link_state(struct xhci_hcd *xhci, u32 *status, u32 status_reg) xhci_hub_report_usb3_link_state() argument
800 xhci_del_comp_mod_timer(struct xhci_hcd *xhci, u32 status, u16 wIndex) xhci_del_comp_mod_timer() argument
826 struct xhci_hcd *xhci; xhci_handle_usb2_port_link_resume() local
932 struct xhci_hcd *xhci; xhci_get_usb3_port_status() local
1095 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_hub_control() local
1540 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_hub_status_data() local
1611 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_bus_suspend() local
1769 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_bus_resume() local
[all...]
H A Dxhci-debugfs.c3 * xhci-debugfs.c - xHCI debugfs interface
13 #include "xhci.h"
14 #include "xhci-debugfs.h"
86 static struct xhci_regset *xhci_debugfs_alloc_regset(struct xhci_hcd *xhci) in xhci_debugfs_alloc_regset() argument
99 list_add_tail(&regset->list, &xhci->regset_list); in xhci_debugfs_alloc_regset()
114 static void xhci_debugfs_regset(struct xhci_hcd *xhci, u32 base, in xhci_debugfs_regset() argument
122 struct usb_hcd *hcd = xhci_to_hcd(xhci); in xhci_debugfs_regset()
124 rgs = xhci_debugfs_alloc_regset(xhci); in xhci_debugfs_regset()
141 static void xhci_debugfs_extcap_regset(struct xhci_hcd *xhci, int cap_id, in xhci_debugfs_extcap_regset() argument
148 void __iomem *base = &xhci in xhci_debugfs_extcap_regset()
261 struct xhci_hcd *xhci; xhci_slot_context_show() local
283 struct xhci_hcd *xhci; xhci_endpoint_context_show() local
368 struct xhci_hcd *xhci = hcd_to_xhci(port->rhub->hcd); xhci_port_write() local
406 xhci_debugfs_create_files(struct xhci_hcd *xhci, struct xhci_file_map *files, size_t nentries, void *data, struct dentry *parent, const struct file_operations *fops) xhci_debugfs_create_files() argument
418 xhci_debugfs_create_ring_dir(struct xhci_hcd *xhci, struct xhci_ring **ring, const char *name, struct dentry *parent) xhci_debugfs_create_ring_dir() argument
432 xhci_debugfs_create_context_files(struct xhci_hcd *xhci, struct dentry *parent, int slot_id) xhci_debugfs_create_context_files() argument
444 xhci_debugfs_create_endpoint(struct xhci_hcd *xhci, struct xhci_virt_device *dev, int ep_index) xhci_debugfs_create_endpoint() argument
471 xhci_debugfs_remove_endpoint(struct xhci_hcd *xhci, struct xhci_virt_device *dev, int ep_index) xhci_debugfs_remove_endpoint() argument
567 xhci_debugfs_create_stream_files(struct xhci_hcd *xhci, struct xhci_virt_device *dev, int ep_index) xhci_debugfs_create_stream_files() argument
592 xhci_debugfs_create_slot(struct xhci_hcd *xhci, int slot_id) xhci_debugfs_create_slot() argument
612 xhci_debugfs_remove_slot(struct xhci_hcd *xhci, int slot_id) xhci_debugfs_remove_slot() argument
632 xhci_debugfs_create_ports(struct xhci_hcd *xhci, struct dentry *parent) xhci_debugfs_create_ports() argument
653 xhci_debugfs_init(struct xhci_hcd *xhci) xhci_debugfs_init() argument
705 xhci_debugfs_exit(struct xhci_hcd *xhci) xhci_debugfs_exit() argument
[all...]
H A Dxhci-plat.c3 * xhci-plat.c - xHCI host controller driver platform Bus Glue.
23 #include "xhci.h"
24 #include "xhci-plat.h"
25 #include "xhci-mvebu.h"
26 #include "xhci-rcar.h"
87 static void xhci_plat_quirks(struct device *dev, struct xhci_hcd *xhci) in xhci_plat_quirks() argument
89 struct xhci_plat_priv *priv = xhci_to_priv(xhci); in xhci_plat_quirks()
96 xhci->quirks |= XHCI_PLAT | priv->quirks; in xhci_plat_quirks()
142 .compatible = "generic-xhci",
144 .compatible = "xhci
192 struct xhci_hcd *xhci; xhci_plat_probe() local
411 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_plat_remove() local
440 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_plat_suspend() local
468 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_plat_resume() local
509 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_plat_runtime_suspend() local
522 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_plat_runtime_resume() local
[all...]
H A DMakefile6 # tell define_trace.h where to find the xhci trace header
14 xhci-hcd-y := xhci.o xhci-mem.o xhci-ext-caps.o
15 xhci-hcd-y += xhci-ring.o xhci-hub.o xhci-dbg.o
16 xhci
[all...]
H A Dxhci-histb.c19 #include "xhci.h"
167 static void xhci_histb_quirks(struct device *dev, struct xhci_hcd *xhci) in xhci_histb_quirks() argument
174 xhci->quirks |= XHCI_PLAT; in xhci_histb_quirks()
203 struct xhci_hcd *xhci; in xhci_histb_probe() local
262 xhci = hcd_to_xhci(hcd); in xhci_histb_probe()
266 xhci->main_hcd = hcd; in xhci_histb_probe()
267 xhci->shared_hcd = usb_create_shared_hcd(driver, dev, dev_name(dev), in xhci_histb_probe()
269 if (!xhci->shared_hcd) { in xhci_histb_probe()
275 xhci->quirks |= XHCI_HW_LPM_DISABLE; in xhci_histb_probe()
278 xhci in xhci_histb_probe()
326 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_histb_remove() local
350 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_histb_suspend() local
365 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_histb_resume() local
[all...]
H A Dxhci-debugfs.h3 * xhci-debugfs.h - xHCI debugfs interface
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() argument
124 static inline void xhci_debugfs_exit(struct xhci_hcd *xhci) { } in xhci_debugfs_exit() argument
130 xhci_debugfs_create_endpoint(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int ep_index) xhci_debugfs_create_endpoint() argument
134 xhci_debugfs_remove_endpoint(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int ep_index) xhci_debugfs_remove_endpoint() argument
138 xhci_debugfs_create_stream_files(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int ep_index) xhci_debugfs_create_stream_files() argument
[all...]
/kernel/linux/linux-6.6/drivers/usb/host/
H A Dxhci.c22 #include "xhci.h"
23 #include "xhci-trace.h"
24 #include "xhci-debugfs.h"
25 #include "xhci-dbgcap.h"
87 void xhci_quiesce(struct xhci_hcd *xhci) in xhci_quiesce() argument
94 halted = readl(&xhci->op_regs->status) & STS_HALT; in xhci_quiesce()
98 cmd = readl(&xhci->op_regs->command); in xhci_quiesce()
100 writel(cmd, &xhci->op_regs->command); in xhci_quiesce()
111 int xhci_halt(struct xhci_hcd *xhci) in xhci_halt() argument
115 xhci_dbg_trace(xhci, trace_xhci_dbg_ini in xhci_halt()
134 xhci_start(struct xhci_hcd *xhci) xhci_start() argument
171 xhci_reset(struct xhci_hcd *xhci, u64 timeout_us) xhci_reset() argument
229 xhci_zero_64b_regs(struct xhci_hcd *xhci) xhci_zero_64b_regs() argument
327 struct xhci_hcd *xhci; compliance_mode_recovery() local
375 compliance_mode_recovery_timer_init(struct xhci_hcd *xhci) compliance_mode_recovery_timer_init() argument
415 xhci_all_ports_seen_u0(struct xhci_hcd *xhci) xhci_all_ports_seen_u0() argument
430 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_init() local
457 xhci_run_finished(struct xhci_hcd *xhci) xhci_run_finished() argument
510 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_run() local
574 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_stop() local
633 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_shutdown() local
669 xhci_save_registers(struct xhci_hcd *xhci) xhci_save_registers() argument
688 xhci_restore_registers(struct xhci_hcd *xhci) xhci_restore_registers() argument
703 xhci_set_cmd_ring_deq(struct xhci_hcd *xhci) xhci_set_cmd_ring_deq() argument
729 xhci_clear_command_ring(struct xhci_hcd *xhci) xhci_clear_command_ring() argument
776 xhci_disable_hub_port_wake(struct xhci_hcd *xhci, struct xhci_hub *rhub, bool do_wakeup) xhci_disable_hub_port_wake() argument
808 xhci_pending_portevent(struct xhci_hcd *xhci) xhci_pending_portevent() argument
849 xhci_suspend(struct xhci_hcd *xhci, bool do_wakeup) xhci_suspend() argument
963 xhci_resume(struct xhci_hcd *xhci, pm_message_t msg) xhci_resume() argument
1287 struct xhci_hcd *xhci; xhci_map_urb_for_dma() local
1303 struct xhci_hcd *xhci; xhci_unmap_urb_for_dma() local
1375 struct xhci_hcd *xhci; xhci_check_args() local
1419 xhci_check_maxpacket(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, struct urb *urb, gfp_t mem_flags) xhci_check_maxpacket() argument
1495 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_urb_enqueue() local
1641 struct xhci_hcd *xhci; xhci_urb_dequeue() local
1773 struct xhci_hcd *xhci; xhci_drop_endpoint() local
1856 struct xhci_hcd *xhci; xhci_add_endpoint() local
1954 xhci_zero_in_ctx(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev) xhci_zero_in_ctx() argument
1988 xhci_configure_endpoint_result(struct xhci_hcd *xhci, struct usb_device *udev, u32 *cmd_status) xhci_configure_endpoint_result() argument
2038 xhci_evaluate_context_result(struct xhci_hcd *xhci, struct usb_device *udev, u32 *cmd_status) xhci_evaluate_context_result() argument
2088 xhci_count_num_new_endpoints(struct xhci_hcd *xhci, struct xhci_input_control_ctx *ctrl_ctx) xhci_count_num_new_endpoints() argument
2109 xhci_count_num_dropped_endpoints(struct xhci_hcd *xhci, struct xhci_input_control_ctx *ctrl_ctx) xhci_count_num_dropped_endpoints() argument
2135 xhci_reserve_host_resources(struct xhci_hcd *xhci, struct xhci_input_control_ctx *ctrl_ctx) xhci_reserve_host_resources() argument
2162 xhci_free_host_resources(struct xhci_hcd *xhci, struct xhci_input_control_ctx *ctrl_ctx) xhci_free_host_resources() argument
2181 xhci_finish_resource_reservation(struct xhci_hcd *xhci, struct xhci_input_control_ctx *ctrl_ctx) xhci_finish_resource_reservation() argument
2227 xhci_check_tt_bw_table(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int old_active_eps) xhci_check_tt_bw_table() argument
2257 xhci_check_ss_bw(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev) xhci_check_ss_bw() argument
2314 xhci_check_bw_table(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int old_active_eps) xhci_check_bw_table() argument
2517 xhci_drop_ep_from_interval_table(struct xhci_hcd *xhci, struct xhci_bw_info *ep_bw, struct xhci_interval_bw_table *bw_table, struct usb_device *udev, struct xhci_virt_ep *virt_ep, struct xhci_tt_bw_info *tt_info) xhci_drop_ep_from_interval_table() argument
2578 xhci_add_ep_to_interval_table(struct xhci_hcd *xhci, struct xhci_bw_info *ep_bw, struct xhci_interval_bw_table *bw_table, struct usb_device *udev, struct xhci_virt_ep *virt_ep, struct xhci_tt_bw_info *tt_info) xhci_add_ep_to_interval_table() argument
2649 xhci_update_tt_active_eps(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int old_active_eps) xhci_update_tt_active_eps() argument
2669 xhci_reserve_bandwidth(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, struct xhci_container_ctx *in_ctx) xhci_reserve_bandwidth() argument
2762 xhci_configure_endpoint(struct xhci_hcd *xhci, struct usb_device *udev, struct xhci_command *command, bool ctx_change, bool must_succeed) xhci_configure_endpoint() argument
2858 xhci_check_bw_drop_ep_streams(struct xhci_hcd *xhci, struct xhci_virt_device *vdev, int i) xhci_check_bw_drop_ep_streams() argument
2886 struct xhci_hcd *xhci; xhci_check_bandwidth() local
2983 struct xhci_hcd *xhci; xhci_reset_bandwidth() local
3006 xhci_setup_input_ctx_for_config_ep(struct xhci_hcd *xhci, struct xhci_container_ctx *in_ctx, struct xhci_container_ctx *out_ctx, struct xhci_input_control_ctx *ctrl_ctx, u32 add_flags, u32 drop_flags) xhci_setup_input_ctx_for_config_ep() argument
3021 struct xhci_hcd *xhci; xhci_endpoint_disable() local
3073 struct xhci_hcd *xhci; xhci_endpoint_reset() local
3199 xhci_check_streams_endpoint(struct xhci_hcd *xhci, struct usb_device *udev, struct usb_host_endpoint *ep, unsigned int slot_id) xhci_check_streams_endpoint() argument
3239 xhci_calculate_streams_entries(struct xhci_hcd *xhci, unsigned int *num_streams, unsigned int *num_stream_ctxs) xhci_calculate_streams_entries() argument
3265 xhci_calculate_streams_and_bitmask(struct xhci_hcd *xhci, struct usb_device *udev, struct usb_host_endpoint **eps, unsigned int num_eps, unsigned int *num_streams, u32 *changed_ep_bitmask) xhci_calculate_streams_and_bitmask() argument
3297 xhci_calculate_no_streams_bitmask(struct xhci_hcd *xhci, struct usb_device *udev, struct usb_host_endpoint **eps, unsigned int num_eps) xhci_calculate_no_streams_bitmask() argument
3359 struct xhci_hcd *xhci; xhci_alloc_streams() local
3526 struct xhci_hcd *xhci; xhci_free_streams() local
3613 xhci_free_device_endpoint_resources(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, bool drop_control_ep) xhci_free_device_endpoint_resources() argument
3658 struct xhci_hcd *xhci; xhci_discover_or_reset_device() local
3817 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_free_dev() local
3854 xhci_disable_slot(struct xhci_hcd *xhci, u32 slot_id) xhci_disable_slot() argument
3904 xhci_reserve_host_control_ep_resources(struct xhci_hcd *xhci) xhci_reserve_host_control_ep_resources() argument
3927 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_alloc_dev() local
4021 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_setup_device() local
4226 xhci_change_max_exit_latency(struct xhci_hcd *xhci, struct usb_device *udev, u16 max_exit_latency) xhci_change_max_exit_latency() argument
4300 xhci_calculate_hird_besl(struct xhci_hcd *xhci, struct usb_device *udev) xhci_calculate_hird_besl() argument
4359 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_set_usb2_hardware_lpm() local
4455 xhci_check_usb2_port_capability(struct xhci_hcd *xhci, int port, unsigned capability) xhci_check_usb2_port_capability() argument
4476 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_update_device() local
4598 xhci_calculate_u1_timeout(struct xhci_hcd *xhci, struct usb_device *udev, struct usb_endpoint_descriptor *desc) xhci_calculate_u1_timeout() argument
4662 xhci_calculate_u2_timeout(struct xhci_hcd *xhci, struct usb_device *udev, struct usb_endpoint_descriptor *desc) xhci_calculate_u2_timeout() argument
4693 xhci_call_host_update_timeout_for_endpoint(struct xhci_hcd *xhci, struct usb_device *udev, struct usb_endpoint_descriptor *desc, enum usb3_link_state state, u16 *timeout) xhci_call_host_update_timeout_for_endpoint() argument
4707 xhci_update_timeout_for_endpoint(struct xhci_hcd *xhci, struct usb_device *udev, struct usb_endpoint_descriptor *desc, enum usb3_link_state state, u16 *timeout) xhci_update_timeout_for_endpoint() argument
4732 xhci_update_timeout_for_interface(struct xhci_hcd *xhci, struct usb_device *udev, struct usb_host_interface *alt, enum usb3_link_state state, u16 *timeout) xhci_update_timeout_for_interface() argument
4748 xhci_check_tier_policy(struct xhci_hcd *xhci, struct usb_device *udev, enum usb3_link_state state) xhci_check_tier_policy() argument
4780 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_calculate_lpm_timeout() local
4888 struct xhci_hcd *xhci; xhci_enable_usb3_lpm_timeout() local
4930 struct xhci_hcd *xhci; xhci_disable_usb3_lpm_timeout() local
4975 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_update_hub_device() local
5076 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_get_frame() local
5081 xhci_hcd_init_usb2_data(struct xhci_hcd *xhci, struct usb_hcd *hcd) xhci_hcd_init_usb2_data() argument
5094 xhci_hcd_init_usb3_data(struct xhci_hcd *xhci, struct usb_hcd *hcd) xhci_hcd_init_usb3_data() argument
5134 struct xhci_hcd *xhci; xhci_gen_setup() local
5255 struct xhci_hcd *xhci; xhci_clear_tt_buffer_complete() local
[all...]
H A Dxhci-ring.c58 #include "xhci.h"
59 #include "xhci-trace.h"
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() argument
158 void inc_deq(struct xhci_hcd *xhci, struct xhci_ring *ring) in inc_deq() argument
178 xhci_warn(xhci, "Missing link TRB at end of segment\n"); in inc_deq()
188 xhci_warn(xhci, "Ring is an endless link TRB loop\n"); in inc_deq()
214 static void inc_enq(struct xhci_hcd *xhci, struct xhci_ring *ring, in inc_enq() argument
224 xhci_err(xhci, "Tried to move enqueue past ring segment\n"); in inc_enq()
248 (xhci in inc_enq()
280 xhci_num_trbs_free(struct xhci_hcd *xhci, struct xhci_ring *ring) xhci_num_trbs_free() argument
316 xhci_ring_expansion_needed(struct xhci_hcd *xhci, struct xhci_ring *ring, unsigned int num_trbs) xhci_ring_expansion_needed() argument
355 xhci_ring_cmd_db(struct xhci_hcd *xhci) xhci_ring_cmd_db() argument
369 xhci_mod_cmd_timer(struct xhci_hcd *xhci, unsigned long delay) xhci_mod_cmd_timer() argument
374 xhci_next_queued_cmd(struct xhci_hcd *xhci) xhci_next_queued_cmd() argument
385 xhci_handle_stopped_cmd_ring(struct xhci_hcd *xhci, struct xhci_command *cur_cmd) xhci_handle_stopped_cmd_ring() argument
421 xhci_abort_cmd_ring(struct xhci_hcd *xhci, unsigned long flags) xhci_abort_cmd_ring() argument
480 xhci_ring_ep_doorbell(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, unsigned int stream_id) xhci_ring_ep_doorbell() argument
507 ring_doorbell_for_active_rings(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index) ring_doorbell_for_active_rings() argument
532 xhci_ring_doorbell_for_active_rings(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index) xhci_ring_doorbell_for_active_rings() argument
539 xhci_get_virt_ep(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index) xhci_get_virt_ep() argument
559 xhci_virt_ep_to_ring(struct xhci_hcd *xhci, struct xhci_virt_ep *ep, unsigned int stream_id) xhci_virt_ep_to_ring() argument
583 xhci_triad_to_transfer_ring(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, unsigned int stream_id) xhci_triad_to_transfer_ring() argument
603 xhci_get_hw_deq(struct xhci_hcd *xhci, struct xhci_virt_device *vdev, unsigned int ep_index, unsigned int stream_id) xhci_get_hw_deq() argument
620 xhci_move_dequeue_past_td(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, unsigned int stream_id, struct xhci_td *td) xhci_move_dequeue_past_td() argument
754 td_to_noop(struct xhci_hcd *xhci, struct xhci_ring *ep_ring, struct xhci_td *td, bool flip_cycle) td_to_noop() argument
778 xhci_giveback_urb_in_irq(struct xhci_hcd *xhci, struct xhci_td *cur_td, int status) xhci_giveback_urb_in_irq() argument
798 xhci_unmap_td_bounce_buffer(struct xhci_hcd *xhci, struct xhci_ring *ring, struct xhci_td *td) xhci_unmap_td_bounce_buffer() argument
832 xhci_td_cleanup(struct xhci_hcd *xhci, struct xhci_td *td, struct xhci_ring *ep_ring, int status) xhci_td_cleanup() argument
905 xhci_reset_halted_ep(struct xhci_hcd *xhci, unsigned int slot_id, unsigned int ep_index, enum xhci_ep_reset_type reset_type) xhci_reset_halted_ep() argument
929 xhci_handle_halted_endpoint(struct xhci_hcd *xhci, struct xhci_virt_ep *ep, struct xhci_td *td, enum xhci_ep_reset_type reset_type) xhci_handle_halted_endpoint() argument
981 struct xhci_hcd *xhci; xhci_invalidate_cancelled_tds() local
1090 xhci_handle_cmd_stop_ep(struct xhci_hcd *xhci, int slot_id, union xhci_trb *trb, u32 comp_code) xhci_handle_cmd_stop_ep() argument
1176 xhci_kill_ring_urbs(struct xhci_hcd *xhci, struct xhci_ring *ring) xhci_kill_ring_urbs() argument
1195 xhci_kill_endpoint_urbs(struct xhci_hcd *xhci, int slot_id, int ep_index) xhci_kill_endpoint_urbs() argument
1251 xhci_hc_died(struct xhci_hcd *xhci) xhci_hc_died() argument
1276 update_ring_for_set_deq_completion(struct xhci_hcd *xhci, struct xhci_virt_device *dev, struct xhci_ring *ep_ring, unsigned int ep_index) update_ring_for_set_deq_completion() argument
1320 xhci_handle_cmd_set_deq(struct xhci_hcd *xhci, int slot_id, union xhci_trb *trb, u32 cmd_comp_code) xhci_handle_cmd_set_deq() argument
1429 xhci_handle_cmd_reset_ep(struct xhci_hcd *xhci, int slot_id, union xhci_trb *trb, u32 cmd_comp_code) xhci_handle_cmd_reset_ep() argument
1463 xhci_handle_cmd_enable_slot(struct xhci_hcd *xhci, int slot_id, struct xhci_command *command, u32 cmd_comp_code) xhci_handle_cmd_enable_slot() argument
1472 xhci_handle_cmd_disable_slot(struct xhci_hcd *xhci, int slot_id) xhci_handle_cmd_disable_slot() argument
1489 xhci_handle_cmd_config_ep(struct xhci_hcd *xhci, int slot_id, u32 cmd_comp_code) xhci_handle_cmd_config_ep() argument
1523 xhci_handle_cmd_addr_dev(struct xhci_hcd *xhci, int slot_id) xhci_handle_cmd_addr_dev() argument
1535 xhci_handle_cmd_reset_dev(struct xhci_hcd *xhci, int slot_id) xhci_handle_cmd_reset_dev() argument
1552 xhci_handle_cmd_nec_get_fw(struct xhci_hcd *xhci, struct xhci_event_cmd *event) xhci_handle_cmd_nec_get_fw() argument
1577 xhci_cleanup_command_queue(struct xhci_hcd *xhci) xhci_cleanup_command_queue() argument
1587 struct xhci_hcd *xhci; xhci_handle_command_timeout() local
1663 handle_cmd_completion(struct xhci_hcd *xhci, struct xhci_event_cmd *event) handle_cmd_completion() argument
1800 handle_vendor_event(struct xhci_hcd *xhci, union xhci_trb *event, u32 trb_type) handle_vendor_event() argument
1808 handle_device_notification(struct xhci_hcd *xhci, union xhci_trb *event) handle_device_notification() argument
1840 xhci_cavium_reset_phy_quirk(struct xhci_hcd *xhci) xhci_cavium_reset_phy_quirk() argument
1857 handle_port_status(struct xhci_hcd *xhci, struct xhci_interrupter *ir, union xhci_trb *event) handle_port_status() argument
2042 trb_in_td(struct xhci_hcd *xhci, struct xhci_segment *start_seg, union xhci_trb *start_trb, union xhci_trb *end_trb, dma_addr_t suspect_dma, bool debug) trb_in_td() argument
2103 xhci_clear_hub_tt_buffer(struct xhci_hcd *xhci, struct xhci_td *td, struct xhci_virt_ep *ep) xhci_clear_hub_tt_buffer() argument
2126 xhci_requires_manual_halt_cleanup(struct xhci_hcd *xhci, struct xhci_ep_ctx *ep_ctx, unsigned int trb_comp_code) xhci_requires_manual_halt_cleanup() argument
2146 xhci_is_vendor_info_code(struct xhci_hcd *xhci, unsigned int trb_comp_code) xhci_is_vendor_info_code() argument
2160 finish_td(struct xhci_hcd *xhci, struct xhci_virt_ep *ep, struct xhci_ring *ep_ring, struct xhci_td *td, u32 trb_comp_code) finish_td() argument
2242 sum_trb_lengths(struct xhci_hcd *xhci, struct xhci_ring *ring, union xhci_trb *stop_trb) sum_trb_lengths() argument
2259 process_ctrl_td(struct xhci_hcd *xhci, struct xhci_virt_ep *ep, struct xhci_ring *ep_ring, struct xhci_td *td, union xhci_trb *ep_trb, struct xhci_transfer_event *event) process_ctrl_td() argument
2355 process_isoc_td(struct xhci_hcd *xhci, struct xhci_virt_ep *ep, struct xhci_ring *ep_ring, struct xhci_td *td, union xhci_trb *ep_trb, struct xhci_transfer_event *event) process_isoc_td() argument
2456 skip_isoc_td(struct xhci_hcd *xhci, struct xhci_td *td, struct xhci_virt_ep *ep, int status) skip_isoc_td() argument
2484 process_bulk_intr_td(struct xhci_hcd *xhci, struct xhci_virt_ep *ep, struct xhci_ring *ep_ring, struct xhci_td *td, union xhci_trb *ep_trb, struct xhci_transfer_event *event) process_bulk_intr_td() argument
2560 handle_tx_event(struct xhci_hcd *xhci, struct xhci_interrupter *ir, struct xhci_transfer_event *event) handle_tx_event() argument
2972 xhci_handle_event(struct xhci_hcd *xhci, struct xhci_interrupter *ir) xhci_handle_event() argument
3047 xhci_update_erst_dequeue(struct xhci_hcd *xhci, struct xhci_interrupter *ir, union xhci_trb *event_ring_deq, bool clear_ehb) xhci_update_erst_dequeue() argument
3088 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_irq() local
3192 queue_trb(struct xhci_hcd *xhci, struct xhci_ring *ring, bool more_trbs_coming, u32 field1, u32 field2, u32 field3, u32 field4) queue_trb() argument
3215 prepare_ring(struct xhci_hcd *xhci, struct xhci_ring *ep_ring, u32 ep_state, unsigned int num_trbs, gfp_t mem_flags) prepare_ring() argument
3304 prepare_transfer(struct xhci_hcd *xhci, struct xhci_virt_device *xdev, unsigned int ep_index, unsigned int stream_id, unsigned int num_trbs, struct urb *urb, unsigned int td_index, gfp_t mem_flags) prepare_transfer() argument
3411 giveback_first_trb(struct xhci_hcd *xhci, int slot_id, unsigned int ep_index, unsigned int stream_id, int start_cycle, struct xhci_generic_trb *start_trb) giveback_first_trb() argument
3427 check_interval(struct xhci_hcd *xhci, struct urb *urb, struct xhci_ep_ctx *ep_ctx) check_interval() argument
3463 xhci_queue_intr_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index) xhci_queue_intr_tx() argument
3494 xhci_td_remainder(struct xhci_hcd *xhci, int transferred, int trb_buff_len, unsigned int td_total_len, struct urb *urb, bool more_trbs_coming) xhci_td_remainder() argument
3521 xhci_align_td(struct xhci_hcd *xhci, struct urb *urb, u32 enqd_len, u32 *trb_buff_len, struct xhci_segment *seg) xhci_align_td() argument
3591 xhci_queue_bulk_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index) xhci_queue_bulk_tx() argument
3752 xhci_queue_ctrl_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index) xhci_queue_ctrl_tx() argument
3894 xhci_get_burst_count(struct xhci_hcd *xhci, struct urb *urb, unsigned int total_packet_count) xhci_get_burst_count() argument
3914 xhci_get_last_burst_packet_count(struct xhci_hcd *xhci, struct urb *urb, unsigned int total_packet_count) xhci_get_last_burst_packet_count() argument
3946 xhci_get_isoc_frame_id(struct xhci_hcd *xhci, struct urb *urb, int index) xhci_get_isoc_frame_id() argument
4031 trb_block_event_intr(struct xhci_hcd *xhci, int num_tds, int i) trb_block_event_intr() argument
4049 xhci_queue_isoc_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index) xhci_queue_isoc_tx() argument
4241 xhci_queue_isoc_tx_prepare(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb, int slot_id, unsigned int ep_index) xhci_queue_isoc_tx_prepare() argument
4325 queue_command(struct xhci_hcd *xhci, struct xhci_command *cmd, u32 field1, u32 field2, u32 field3, u32 field4, bool command_must_succeed) queue_command() argument
4367 xhci_queue_slot_control(struct xhci_hcd *xhci, struct xhci_command *cmd, u32 trb_type, u32 slot_id) xhci_queue_slot_control() argument
4375 xhci_queue_address_device(struct xhci_hcd *xhci, struct xhci_command *cmd, dma_addr_t in_ctx_ptr, u32 slot_id, enum xhci_setup_dev setup) xhci_queue_address_device() argument
4384 xhci_queue_vendor_command(struct xhci_hcd *xhci, struct xhci_command *cmd, u32 field1, u32 field2, u32 field3, u32 field4) xhci_queue_vendor_command() argument
4391 xhci_queue_reset_device(struct xhci_hcd *xhci, struct xhci_command *cmd, u32 slot_id) xhci_queue_reset_device() argument
4400 xhci_queue_configure_endpoint(struct xhci_hcd *xhci, struct xhci_command *cmd, dma_addr_t in_ctx_ptr, u32 slot_id, bool command_must_succeed) xhci_queue_configure_endpoint() argument
4411 xhci_queue_evaluate_context(struct xhci_hcd *xhci, struct xhci_command *cmd, dma_addr_t in_ctx_ptr, u32 slot_id, bool command_must_succeed) xhci_queue_evaluate_context() argument
4424 xhci_queue_stop_endpoint(struct xhci_hcd *xhci, struct xhci_command *cmd, int slot_id, unsigned int ep_index, int suspend) xhci_queue_stop_endpoint() argument
4436 xhci_queue_reset_ep(struct xhci_hcd *xhci, struct xhci_command *cmd, int slot_id, unsigned int ep_index, enum xhci_ep_reset_type reset_type) xhci_queue_reset_ep() argument
[all...]
H A Dxhci-pci.c18 #include "xhci.h"
19 #include "xhci-trace.h"
20 #include "xhci-pci.h"
92 static void xhci_msix_sync_irqs(struct xhci_hcd *xhci) in xhci_msix_sync_irqs() argument
94 struct usb_hcd *hcd = xhci_to_hcd(xhci); in xhci_msix_sync_irqs()
100 for (i = 0; i < xhci->msix_count; i++) in xhci_msix_sync_irqs()
106 static void xhci_cleanup_msix(struct xhci_hcd *xhci) in xhci_cleanup_msix() argument
108 struct usb_hcd *hcd = xhci_to_hcd(xhci); in xhci_cleanup_msix()
118 for (i = 0; i < xhci->msix_count; i++) in xhci_cleanup_msix()
119 free_irq(pci_irq_vector(pdev, i), xhci_to_hcd(xhci)); in xhci_cleanup_msix()
131 xhci_setup_msi(struct xhci_hcd *xhci) xhci_setup_msi() argument
160 xhci_setup_msix(struct xhci_hcd *xhci) xhci_setup_msix() argument
204 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_try_enable_msi() local
268 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_pci_stop() local
277 xhci_pci_reinit(struct xhci_hcd *xhci, struct pci_dev *pdev) xhci_pci_reinit() argument
293 xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) xhci_pci_quirks() argument
559 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_find_lpm_incapable_ports() local
593 struct xhci_hcd *xhci; xhci_pci_setup() local
637 struct xhci_hcd *xhci; xhci_pci_probe() local
716 struct xhci_hcd *xhci; xhci_pci_remove() local
747 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_ssic_port_unused_quirk() local
782 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_pme_quirk() local
803 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_pci_suspend() local
843 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_pci_resume() local
882 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_pci_poweroff_late() local
933 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_pci_shutdown() local
[all...]
H A Dxhci-mem.c18 #include "xhci.h"
19 #include "xhci-trace.h"
20 #include "xhci-debugfs.h"
29 static struct xhci_segment *xhci_segment_alloc(struct xhci_hcd *xhci, in xhci_segment_alloc() argument
37 struct device *dev = xhci_to_hcd(xhci)->self.sysdev; in xhci_segment_alloc()
43 seg->trbs = dma_pool_zalloc(xhci->segment_pool, flags, &dma); in xhci_segment_alloc()
53 dma_pool_free(xhci->segment_pool, seg->trbs, dma); in xhci_segment_alloc()
69 static void xhci_segment_free(struct xhci_hcd *xhci, struct xhci_segment *seg) in xhci_segment_free() argument
72 dma_pool_free(xhci->segment_pool, seg->trbs, seg->dma); in xhci_segment_free()
79 static void xhci_free_segments_for_ring(struct xhci_hcd *xhci, in xhci_free_segments_for_ring() argument
127 xhci_link_rings(struct xhci_hcd *xhci, struct xhci_ring *ring, struct xhci_segment *first, struct xhci_segment *last, unsigned int num_segs) xhci_link_rings() argument
280 xhci_ring_free(struct xhci_hcd *xhci, struct xhci_ring *ring) xhci_ring_free() argument
321 xhci_alloc_segments_for_ring(struct xhci_hcd *xhci, struct xhci_segment **first, struct xhci_segment **last, unsigned int num_segs, unsigned int cycle_state, enum xhci_ring_type type, unsigned int max_packet, gfp_t flags) xhci_alloc_segments_for_ring() argument
371 xhci_ring_alloc(struct xhci_hcd *xhci, unsigned int num_segs, unsigned int cycle_state, enum xhci_ring_type type, unsigned int max_packet, gfp_t flags) xhci_ring_alloc() argument
411 xhci_free_endpoint_ring(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, unsigned int ep_index) xhci_free_endpoint_ring() argument
423 xhci_ring_expansion(struct xhci_hcd *xhci, struct xhci_ring *ring, unsigned int num_new_segs, gfp_t flags) xhci_ring_expansion() argument
460 xhci_alloc_container_ctx(struct xhci_hcd *xhci, int type, gfp_t flags) xhci_alloc_container_ctx() argument
486 xhci_free_container_ctx(struct xhci_hcd *xhci, struct xhci_container_ctx *ctx) xhci_free_container_ctx() argument
504 xhci_get_slot_ctx(struct xhci_hcd *xhci, struct xhci_container_ctx *ctx) xhci_get_slot_ctx() argument
514 xhci_get_ep_ctx(struct xhci_hcd *xhci, struct xhci_container_ctx *ctx, unsigned int ep_index) xhci_get_ep_ctx() argument
530 xhci_free_stream_ctx(struct xhci_hcd *xhci, unsigned int num_stream_ctxs, struct xhci_stream_ctx *stream_ctx, dma_addr_t dma) xhci_free_stream_ctx() argument
555 xhci_alloc_stream_ctx(struct xhci_hcd *xhci, unsigned int num_stream_ctxs, dma_addr_t *dma, gfp_t mem_flags) xhci_alloc_stream_ctx() argument
589 xhci_alloc_stream_info(struct xhci_hcd *xhci, unsigned int num_stream_ctxs, unsigned int num_streams, unsigned int max_packet, gfp_t mem_flags) xhci_alloc_stream_info() argument
703 xhci_setup_streams_ep_input_ctx(struct xhci_hcd *xhci, struct xhci_ep_ctx *ep_ctx, struct xhci_stream_info *stream_info) xhci_setup_streams_ep_input_ctx() argument
740 xhci_free_stream_info(struct xhci_hcd *xhci, struct xhci_stream_info *stream_info) xhci_free_stream_info() argument
772 xhci_free_tt_info(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int slot_id) xhci_free_tt_info() argument
802 xhci_alloc_tt_info(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, struct usb_device *hdev, struct usb_tt *tt, gfp_t mem_flags) xhci_alloc_tt_info() argument
847 xhci_free_virt_device(struct xhci_hcd *xhci, int slot_id) xhci_free_virt_device() argument
910 xhci_free_virt_devices_depth_first(struct xhci_hcd *xhci, int slot_id) xhci_free_virt_devices_depth_first() argument
946 xhci_alloc_virt_device(struct xhci_hcd *xhci, int slot_id, struct usb_device *udev, gfp_t flags) xhci_alloc_virt_device() argument
1017 xhci_copy_ep0_dequeue_into_input_ctx(struct xhci_hcd *xhci, struct usb_device *udev) xhci_copy_ep0_dequeue_into_input_ctx() argument
1049 xhci_find_real_port_number(struct xhci_hcd *xhci, struct usb_device *udev) xhci_find_real_port_number() argument
1068 xhci_setup_addressable_virt_dev(struct xhci_hcd *xhci, struct usb_device *udev) xhci_setup_addressable_virt_dev() argument
1394 xhci_endpoint_init(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, struct usb_device *udev, struct usb_host_endpoint *ep, gfp_t mem_flags) xhci_endpoint_init() argument
1493 xhci_endpoint_zero(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, struct usb_host_endpoint *ep) xhci_endpoint_zero() argument
1522 xhci_update_bw_info(struct xhci_hcd *xhci, struct xhci_container_ctx *in_ctx, struct xhci_input_control_ctx *ctrl_ctx, struct xhci_virt_device *virt_dev) xhci_update_bw_info() argument
1580 xhci_endpoint_copy(struct xhci_hcd *xhci, struct xhci_container_ctx *in_ctx, struct xhci_container_ctx *out_ctx, unsigned int ep_index) xhci_endpoint_copy() argument
1606 xhci_slot_copy(struct xhci_hcd *xhci, struct xhci_container_ctx *in_ctx, struct xhci_container_ctx *out_ctx) xhci_slot_copy() argument
1623 scratchpad_alloc(struct xhci_hcd *xhci, gfp_t flags) scratchpad_alloc() argument
1686 scratchpad_free(struct xhci_hcd *xhci) scratchpad_free() argument
1710 xhci_alloc_command(struct xhci_hcd *xhci, bool allocate_completion, gfp_t mem_flags) xhci_alloc_command() argument
1736 xhci_alloc_command_with_ctx(struct xhci_hcd *xhci, bool allocate_completion, gfp_t mem_flags) xhci_alloc_command_with_ctx() argument
1760 xhci_free_command(struct xhci_hcd *xhci, struct xhci_command *command) xhci_free_command() argument
1769 xhci_alloc_erst(struct xhci_hcd *xhci, struct xhci_ring *evt_ring, struct xhci_erst *erst, gfp_t flags) xhci_alloc_erst() argument
1800 xhci_free_interrupter(struct xhci_hcd *xhci, struct xhci_interrupter *ir) xhci_free_interrupter() argument
1840 xhci_mem_cleanup(struct xhci_hcd *xhci) xhci_mem_cleanup() argument
1934 xhci_set_hc_event_deq(struct xhci_hcd *xhci, struct xhci_interrupter *ir) xhci_set_hc_event_deq() argument
1956 xhci_add_in_port(struct xhci_hcd *xhci, unsigned int num_ports, __le32 __iomem *addr, int max_caps) xhci_add_in_port() argument
2094 xhci_create_rhub_port_array(struct xhci_hcd *xhci, struct xhci_hub *rhub, gfp_t flags) xhci_create_rhub_port_array() argument
2127 xhci_setup_port_arrays(struct xhci_hcd *xhci, gfp_t flags) xhci_setup_port_arrays() argument
2237 xhci_alloc_interrupter(struct xhci_hcd *xhci, gfp_t flags) xhci_alloc_interrupter() argument
2267 xhci_add_interrupter(struct xhci_hcd *xhci, struct xhci_interrupter *ir, unsigned int intr_num) xhci_add_interrupter() argument
2298 xhci_mem_init(struct xhci_hcd *xhci, gfp_t flags) xhci_mem_init() argument
[all...]
H A Dxhci-hub.c16 #include "xhci.h"
17 #include "xhci-trace.h"
35 static int xhci_create_usb3x_bos_desc(struct xhci_hcd *xhci, char *buf, in xhci_create_usb3x_bos_desc() argument
60 for (i = 0; i < xhci->num_port_caps; i++) { in xhci_create_usb3x_bos_desc()
61 u8 major = xhci->port_caps[i].maj_rev; in xhci_create_usb3x_bos_desc()
62 u8 minor = xhci->port_caps[i].min_rev; in xhci_create_usb3x_bos_desc()
67 port_cap = &xhci->port_caps[i]; in xhci_create_usb3x_bos_desc()
111 reg = readl(&xhci->cap_regs->hcc_params); in xhci_create_usb3x_bos_desc()
115 if ((xhci->quirks & XHCI_LPM_SUPPORT)) { in xhci_create_usb3x_bos_desc()
116 reg = readl(&xhci in xhci_create_usb3x_bos_desc()
255 xhci_common_hub_descriptor(struct xhci_hcd *xhci, struct usb_hub_descriptor *desc, int ports) xhci_common_hub_descriptor() argument
278 xhci_usb2_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci, struct usb_hub_descriptor *desc) xhci_usb2_hub_descriptor() argument
333 xhci_usb3_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci, struct usb_hub_descriptor *desc) xhci_usb3_hub_descriptor() argument
366 xhci_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci, struct usb_hub_descriptor *desc) xhci_hub_descriptor() argument
460 xhci_find_slot_id_by_port(struct usb_hcd *hcd, struct xhci_hcd *xhci, u16 port) xhci_find_slot_id_by_port() argument
489 xhci_stop_device(struct xhci_hcd *xhci, int slot_id, int suspend) xhci_stop_device() argument
562 xhci_ring_device(struct xhci_hcd *xhci, int slot_id) xhci_ring_device() argument
581 xhci_disable_port(struct xhci_hcd *xhci, struct xhci_port *port) xhci_disable_port() argument
611 xhci_clear_port_change_bit(struct xhci_hcd *xhci, u16 wValue, u16 wIndex, __le32 __iomem *addr, u32 port_status) xhci_clear_port_change_bit() argument
664 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_get_rhub() local
709 xhci_port_set_test_mode(struct xhci_hcd *xhci, u16 test_mode, u16 wIndex) xhci_port_set_test_mode() argument
768 xhci_exit_test_mode(struct xhci_hcd *xhci) xhci_exit_test_mode() argument
787 xhci_set_link_state(struct xhci_hcd *xhci, struct xhci_port *port, u32 link_state) xhci_set_link_state() argument
804 xhci_set_remote_wake_mask(struct xhci_hcd *xhci, struct xhci_port *port, u16 wake_mask) xhci_set_remote_wake_mask() argument
831 xhci_test_and_clear_bit(struct xhci_hcd *xhci, struct xhci_port *port, u32 port_bit) xhci_test_and_clear_bit() argument
845 xhci_hub_report_usb3_link_state(struct xhci_hcd *xhci, u32 *status, u32 status_reg) xhci_hub_report_usb3_link_state() argument
905 xhci_del_comp_mod_timer(struct xhci_hcd *xhci, u32 status, u16 wIndex) xhci_del_comp_mod_timer() argument
931 struct xhci_hcd *xhci; xhci_handle_usb2_port_link_resume() local
1037 struct xhci_hcd *xhci; xhci_get_usb3_port_status() local
1200 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_hub_control() local
1645 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_hub_status_data() local
1717 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_bus_suspend() local
1876 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_bus_resume() local
[all...]
H A Dxhci-plat.c3 * xhci-plat.c - xHCI host controller driver platform Bus Glue.
24 #include "xhci.h"
25 #include "xhci-plat.h"
26 #include "xhci-mvebu.h"
77 static void xhci_plat_quirks(struct device *dev, struct xhci_hcd *xhci) in xhci_plat_quirks() argument
79 struct xhci_plat_priv *priv = xhci_to_priv(xhci); in xhci_plat_quirks()
81 xhci->quirks |= priv->quirks; in xhci_plat_quirks()
118 .compatible = "generic-xhci",
120 .compatible = "xhci-platform",
122 .compatible = "marvell,armada-375-xhci",
146 struct xhci_hcd *xhci; xhci_plat_probe() local
408 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_plat_remove() local
442 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_plat_suspend() local
470 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_plat_resume_common() local
521 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_plat_runtime_suspend() local
534 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_plat_runtime_resume() local
[all...]
H A DMakefile6 # tell define_trace.h where to find the xhci trace header
14 xhci-hcd-y := xhci.o xhci-mem.o xhci-ext-caps.o
15 xhci-hcd-y += xhci-ring.o xhci-hub.o xhci-dbg.o
16 xhci
[all...]
H A Dxhci-debugfs.c3 * xhci-debugfs.c - xHCI debugfs interface
13 #include "xhci.h"
14 #include "xhci-debugfs.h"
86 static struct xhci_regset *xhci_debugfs_alloc_regset(struct xhci_hcd *xhci) in xhci_debugfs_alloc_regset() argument
99 list_add_tail(&regset->list, &xhci->regset_list); in xhci_debugfs_alloc_regset()
114 static void xhci_debugfs_regset(struct xhci_hcd *xhci, u32 base, in xhci_debugfs_regset() argument
122 struct usb_hcd *hcd = xhci_to_hcd(xhci); in xhci_debugfs_regset()
124 rgs = xhci_debugfs_alloc_regset(xhci); in xhci_debugfs_regset()
141 static void xhci_debugfs_extcap_regset(struct xhci_hcd *xhci, int cap_id, in xhci_debugfs_extcap_regset() argument
148 void __iomem *base = &xhci in xhci_debugfs_extcap_regset()
261 struct xhci_hcd *xhci; xhci_slot_context_show() local
283 struct xhci_hcd *xhci; xhci_endpoint_context_show() local
368 struct xhci_hcd *xhci = hcd_to_xhci(port->rhub->hcd); xhci_port_write() local
406 xhci_debugfs_create_files(struct xhci_hcd *xhci, struct xhci_file_map *files, size_t nentries, void *data, struct dentry *parent, const struct file_operations *fops) xhci_debugfs_create_files() argument
418 xhci_debugfs_create_ring_dir(struct xhci_hcd *xhci, struct xhci_ring **ring, const char *name, struct dentry *parent) xhci_debugfs_create_ring_dir() argument
432 xhci_debugfs_create_context_files(struct xhci_hcd *xhci, struct dentry *parent, int slot_id) xhci_debugfs_create_context_files() argument
444 xhci_debugfs_create_endpoint(struct xhci_hcd *xhci, struct xhci_virt_device *dev, int ep_index) xhci_debugfs_create_endpoint() argument
471 xhci_debugfs_remove_endpoint(struct xhci_hcd *xhci, struct xhci_virt_device *dev, int ep_index) xhci_debugfs_remove_endpoint() argument
567 xhci_debugfs_create_stream_files(struct xhci_hcd *xhci, struct xhci_virt_device *dev, int ep_index) xhci_debugfs_create_stream_files() argument
592 xhci_debugfs_create_slot(struct xhci_hcd *xhci, int slot_id) xhci_debugfs_create_slot() argument
612 xhci_debugfs_remove_slot(struct xhci_hcd *xhci, int slot_id) xhci_debugfs_remove_slot() argument
632 xhci_debugfs_create_ports(struct xhci_hcd *xhci, struct dentry *parent) xhci_debugfs_create_ports() argument
653 xhci_debugfs_init(struct xhci_hcd *xhci) xhci_debugfs_init() argument
705 xhci_debugfs_exit(struct xhci_hcd *xhci) xhci_debugfs_exit() argument
[all...]
H A Dxhci-debugfs.h3 * xhci-debugfs.h - xHCI debugfs interface
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() argument
124 static inline void xhci_debugfs_exit(struct xhci_hcd *xhci) { } in xhci_debugfs_exit() argument
130 xhci_debugfs_create_endpoint(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int ep_index) xhci_debugfs_create_endpoint() argument
134 xhci_debugfs_remove_endpoint(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int ep_index) xhci_debugfs_remove_endpoint() argument
138 xhci_debugfs_create_stream_files(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int ep_index) xhci_debugfs_create_stream_files() argument
[all...]
H A Dxhci-histb.c19 #include "xhci.h"
193 struct xhci_hcd *xhci; in xhci_histb_probe() local
252 xhci = hcd_to_xhci(hcd); in xhci_histb_probe()
256 xhci->main_hcd = hcd; in xhci_histb_probe()
257 xhci->shared_hcd = usb_create_shared_hcd(driver, dev, dev_name(dev), in xhci_histb_probe()
259 if (!xhci->shared_hcd) { in xhci_histb_probe()
265 xhci->quirks |= XHCI_HW_LPM_DISABLE; in xhci_histb_probe()
268 xhci->quirks |= XHCI_LPM_SUPPORT; in xhci_histb_probe()
271 xhci->imod_interval = 40000; in xhci_histb_probe()
273 &xhci in xhci_histb_probe()
316 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_histb_remove() local
338 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_histb_suspend() local
353 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_histb_resume() local
[all...]
H A Dxhci.h21 /* Code sharing between pci-quirks and xhci hcd */
22 #include "xhci-ext-caps.h"
51 * @hcc_params2: HCCPARAMS2 Capability Parameters 2, xhci 1.1 only
61 __le32 hcc_params2; /* xhci 1.1 */
288 /* bit 8: U3 Entry Enabled, assert PLC when root port enters U3, xhci 1.1 */
290 /* bit 9: Configuration Information Enable, xhci 1.1 */
955 struct xhci_hcd *xhci; member
1031 * See xhci 1.1 section 4.8.3 for more details
1303 /* xhci 1.1 uses the TD_SIZE field for TBC if Extended TBC is enabled (ETE) */
1308 /* Total burst count field, Rsvdz on xhci 1.
1976 xhci_to_hcd(struct xhci_hcd *xhci) xhci_to_hcd() argument
1981 xhci_get_usb3_hcd(struct xhci_hcd *xhci) xhci_get_usb3_hcd() argument
1994 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_hcd_is_usb3() local
1999 xhci_has_one_roothub(struct xhci_hcd *xhci) xhci_has_one_roothub() argument
2025 xhci_read_64(const struct xhci_hcd *xhci, __le64 __iomem *regs) xhci_read_64() argument
2030 xhci_write_64(struct xhci_hcd *xhci, const u64 val, __le64 __iomem *regs) xhci_write_64() argument
2036 xhci_link_trb_quirk(struct xhci_hcd *xhci) xhci_link_trb_quirk() argument
2240 xhci_urb_to_transfer_ring(struct xhci_hcd *xhci, struct urb *urb) xhci_urb_to_transfer_ring() argument
[all...]
/kernel/linux/linux-5.10/drivers/usb/cdns3/
H A Dhost.c17 #include "../host/xhci.h"
18 #include "../host/xhci-plat.h"
33 struct platform_device *xhci; in __cdns3_host_init() local
39 xhci = platform_device_alloc("xhci-hcd", PLATFORM_DEVID_AUTO); in __cdns3_host_init()
40 if (!xhci) { in __cdns3_host_init()
45 xhci->dev.parent = cdns->dev; in __cdns3_host_init()
46 cdns->host_dev = xhci; in __cdns3_host_init()
48 ret = platform_device_add_resources(xhci, cdns->xhci_res, in __cdns3_host_init()
65 ret = platform_device_add_data(xhci, cdn in __cdns3_host_init()
92 struct xhci_hcd *xhci = hcd_to_xhci(hcd); xhci_cdns3_suspend_quirk() local
[all...]
/kernel/linux/linux-5.10/drivers/usb/dwc3/
H A Dhost.c48 struct platform_device *xhci; in dwc3_host_init() local
72 xhci = platform_device_alloc("xhci-hcd", PLATFORM_DEVID_AUTO); in dwc3_host_init()
73 if (!xhci) { in dwc3_host_init()
78 xhci->dev.parent = dwc->dev; in dwc3_host_init()
79 ACPI_COMPANION_SET(&xhci->dev, ACPI_COMPANION(dwc->dev)); in dwc3_host_init()
81 dwc->xhci = xhci; in dwc3_host_init()
83 ret = platform_device_add_resources(xhci, dwc->xhci_resources, in dwc3_host_init()
111 ret = platform_device_add_properties(xhci, prop in dwc3_host_init()
[all...]
/kernel/linux/linux-6.6/drivers/usb/cdns3/
H A Dhost.c18 #include "../host/xhci.h"
19 #include "../host/xhci-plat.h"
34 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_cdns3_plat_start() local
38 value = readl(&xhci->op_regs->command); in xhci_cdns3_plat_start()
40 writel(value, &xhci->op_regs->command); in xhci_cdns3_plat_start()
69 struct platform_device *xhci; in __cdns_host_init() local
75 xhci = platform_device_alloc("xhci-hcd", PLATFORM_DEVID_AUTO); in __cdns_host_init()
76 if (!xhci) { in __cdns_host_init()
81 xhci in __cdns_host_init()
[all...]
/kernel/linux/linux-6.6/drivers/usb/dwc3/
H A Dhost.c65 struct platform_device *xhci; in dwc3_host_init() local
73 xhci = platform_device_alloc("xhci-hcd", PLATFORM_DEVID_AUTO); in dwc3_host_init()
74 if (!xhci) { in dwc3_host_init()
79 xhci->dev.parent = dwc->dev; in dwc3_host_init()
81 dwc->xhci = xhci; in dwc3_host_init()
83 ret = platform_device_add_resources(xhci, dwc->xhci_resources, in dwc3_host_init()
92 props[prop_idx++] = PROPERTY_ENTRY_BOOL("xhci-sg-trb-cache-size-quirk"); in dwc3_host_init()
113 ret = device_create_managed_software_node(&xhci in dwc3_host_init()
[all...]

Completed in 27 milliseconds

123