/kernel/linux/linux-5.10/drivers/usb/host/ |
H A D | ehci-timer.c | 6 /* This file is part of ehci-hcd.c */ 11 static void ehci_set_command_bit(struct ehci_hcd *ehci, u32 bit) in ehci_set_command_bit() argument 13 ehci->command |= bit; in ehci_set_command_bit() 14 ehci_writel(ehci, ehci->command, &ehci->regs->command); in ehci_set_command_bit() 17 ehci_readl(ehci, &ehci->regs->command); in ehci_set_command_bit() 21 static void ehci_clear_command_bit(struct ehci_hcd *ehci, u32 bit) in ehci_clear_command_bit() argument 23 ehci in ehci_clear_command_bit() 76 ehci_enable_event(struct ehci_hcd *ehci, unsigned event, bool resched) ehci_enable_event() argument 95 ehci_poll_ASS(struct ehci_hcd *ehci) ehci_poll_ASS() argument 134 ehci_disable_ASE(struct ehci_hcd *ehci) ehci_disable_ASE() argument 141 ehci_poll_PSS(struct ehci_hcd *ehci) ehci_poll_PSS() argument 180 ehci_disable_PSE(struct ehci_hcd *ehci) ehci_disable_PSE() argument 187 ehci_handle_controller_death(struct ehci_hcd *ehci) ehci_handle_controller_death() argument 211 ehci_handle_start_intr_unlinks(struct ehci_hcd *ehci) ehci_handle_start_intr_unlinks() argument 243 ehci_handle_intr_unlinks(struct ehci_hcd *ehci) ehci_handle_intr_unlinks() argument 276 start_free_itds(struct ehci_hcd *ehci) start_free_itds() argument 290 end_free_itds(struct ehci_hcd *ehci) end_free_itds() argument 320 ehci_iaa_watchdog(struct ehci_hcd *ehci) ehci_iaa_watchdog() argument 360 turn_on_io_watchdog(struct ehci_hcd *ehci) turn_on_io_watchdog() argument 400 struct ehci_hcd *ehci = container_of(t, struct ehci_hcd, hrtimer); ehci_hrtimer_func() local [all...] |
H A D | ehci-hcd.c | 97 #include "ehci.h" 110 static unsigned ehci_moschip_read_frame_index(struct ehci_hcd *ehci) in ehci_moschip_read_frame_index() argument 114 uf = ehci_readl(ehci, &ehci->regs->frame_index); in ehci_moschip_read_frame_index() 116 uf = ehci_readl(ehci, &ehci->regs->frame_index); in ehci_moschip_read_frame_index() 120 static inline unsigned ehci_read_frame_index(struct ehci_hcd *ehci) in ehci_read_frame_index() argument 122 if (ehci->frame_index_bug) in ehci_read_frame_index() 123 return ehci_moschip_read_frame_index(ehci); in ehci_read_frame_index() 124 return ehci_readl(ehci, in ehci_read_frame_index() 148 ehci_handshake(struct ehci_hcd *ehci, void __iomem *ptr, u32 mask, u32 done, int usec) ehci_handshake() argument 168 tdi_in_host_mode(struct ehci_hcd *ehci) tdi_in_host_mode() argument 180 ehci_halt(struct ehci_hcd *ehci) ehci_halt() argument 211 tdi_reset(struct ehci_hcd *ehci) tdi_reset() argument 230 ehci_reset(struct ehci_hcd *ehci) ehci_reset() argument 272 ehci_quiesce(struct ehci_hcd *ehci) ehci_quiesce() argument 318 ehci_turn_off_all_ports(struct ehci_hcd *ehci) ehci_turn_off_all_ports() argument 335 ehci_silence_controller(struct ehci_hcd *ehci) ehci_silence_controller() argument 357 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_shutdown() local 385 ehci_work(struct ehci_hcd *ehci) ehci_work() argument 421 struct ehci_hcd *ehci = hcd_to_ehci (hcd); ehci_stop() local 455 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_init() local 574 struct ehci_hcd *ehci = hcd_to_ehci (hcd); ehci_run() local 680 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_setup() local 714 struct ehci_hcd *ehci = hcd_to_ehci (hcd); ehci_irq() local 889 struct ehci_hcd *ehci = hcd_to_ehci (hcd); ehci_urb_enqueue() local 927 struct ehci_hcd *ehci = hcd_to_ehci (hcd); ehci_urb_dequeue() local 978 struct ehci_hcd *ehci = hcd_to_ehci (hcd); ehci_endpoint_disable() local 1052 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_endpoint_reset() local 1091 struct ehci_hcd *ehci = hcd_to_ehci (hcd); ehci_get_frame() local 1101 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_remove_device() local 1118 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_suspend() local 1152 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_resume() local [all...] |
H A D | ehci-hub.c | 6 /* this file is part of ehci-hcd.c */ 22 static void unlink_empty_async_suspended(struct ehci_hcd *ehci); 33 static void ehci_handover_companion_ports(struct ehci_hcd *ehci) in ehci_handover_companion_ports() argument 39 struct usb_hcd *hcd = ehci_to_hcd(ehci); in ehci_handover_companion_ports() 41 if (!ehci->owned_ports) in ehci_handover_companion_ports() 55 port = HCS_N_PORTS(ehci->hcs_params); in ehci_handover_companion_ports() 57 if (test_bit(port, &ehci->owned_ports)) { in ehci_handover_companion_ports() 58 reg = &ehci->regs->port_status[port]; in ehci_handover_companion_ports() 59 status = ehci_readl(ehci, reg) & ~PORT_RWC_BITS; in ehci_handover_companion_ports() 61 ehci_port_power(ehci, por in ehci_handover_companion_ports() 125 ehci_port_change(struct ehci_hcd *ehci) ehci_port_change() argument 146 ehci_adjust_port_wakeup_flags(struct ehci_hcd *ehci, bool suspending, bool do_wakeup) ehci_adjust_port_wakeup_flags() argument 215 struct ehci_hcd *ehci = hcd_to_ehci (hcd); ehci_bus_suspend() local 378 struct ehci_hcd *ehci = hcd_to_ehci (hcd); ehci_bus_resume() local 519 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_get_resuming_ports() local 537 set_owner(struct ehci_hcd *ehci, int portnum, int new_owner) set_owner() argument 570 check_reset_complete( struct ehci_hcd *ehci, int index, u32 __iomem *status_reg, int port_status ) check_reset_complete() argument 620 struct ehci_hcd *ehci = hcd_to_ehci (hcd); ehci_hub_status_data() local 697 ehci_hub_descriptor( struct ehci_hcd *ehci, struct usb_hub_descriptor *desc ) ehci_hub_descriptor() argument 806 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehset_single_step_set_feature() local 878 struct ehci_hcd *ehci = hcd_to_ehci (hcd); ehci_hub_control() local 1319 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_relinquish_port() local 1328 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_port_handed_over() local 1337 ehci_port_power(struct ehci_hcd *ehci, int portnum, bool enable) ehci_port_power() argument [all...] |
H A D | ehci-mem.c | 6 /* this file is part of ehci-hcd.c */ 25 static inline void ehci_qtd_init(struct ehci_hcd *ehci, struct ehci_qtd *qtd, in ehci_qtd_init() argument 30 qtd->hw_token = cpu_to_hc32(ehci, QTD_STS_HALT); in ehci_qtd_init() 31 qtd->hw_next = EHCI_LIST_END(ehci); in ehci_qtd_init() 32 qtd->hw_alt_next = EHCI_LIST_END(ehci); in ehci_qtd_init() 36 static struct ehci_qtd *ehci_qtd_alloc (struct ehci_hcd *ehci, gfp_t flags) in ehci_qtd_alloc() argument 41 qtd = dma_pool_alloc (ehci->qtd_pool, flags, &dma); in ehci_qtd_alloc() 43 ehci_qtd_init(ehci, qtd, dma); in ehci_qtd_alloc() 48 static inline void ehci_qtd_free (struct ehci_hcd *ehci, struct ehci_qtd *qtd) in ehci_qtd_free() argument 50 dma_pool_free (ehci in ehci_qtd_free() 54 qh_destroy(struct ehci_hcd *ehci, struct ehci_qh *qh) qh_destroy() argument 67 ehci_qh_alloc(struct ehci_hcd *ehci, gfp_t flags) ehci_qh_alloc() argument 107 ehci_mem_cleanup(struct ehci_hcd *ehci) ehci_mem_cleanup() argument 139 ehci_mem_init(struct ehci_hcd *ehci, gfp_t flags) ehci_mem_init() argument [all...] |
H A D | ehci-sched.c | 7 /* this file is part of ehci-hcd.c */ 32 periodic_next_shadow(struct ehci_hcd *ehci, union ehci_shadow *periodic, in periodic_next_shadow() argument 35 switch (hc32_to_cpu(ehci, tag)) { in periodic_next_shadow() 49 shadow_next_periodic(struct ehci_hcd *ehci, union ehci_shadow *periodic, in shadow_next_periodic() argument 52 switch (hc32_to_cpu(ehci, tag)) { in shadow_next_periodic() 62 /* caller must hold ehci->lock */ 63 static void periodic_unlink(struct ehci_hcd *ehci, unsigned frame, void *ptr) in periodic_unlink() argument 65 union ehci_shadow *prev_p = &ehci->pshadow[frame]; in periodic_unlink() 66 __hc32 *hw_p = &ehci->periodic[frame]; in periodic_unlink() 71 prev_p = periodic_next_shadow(ehci, prev_ in periodic_unlink() 137 struct ehci_hcd *ehci = find_tt() local 194 bandwidth_dbg(struct ehci_hcd *ehci, int sign, char *type, struct ehci_per_sched *ps) bandwidth_dbg() argument 206 reserve_release_intr_bandwidth(struct ehci_hcd *ehci, struct ehci_qh *qh, int sign) reserve_release_intr_bandwidth() argument 347 tt_available( struct ehci_hcd *ehci, struct ehci_per_sched *ps, struct ehci_tt *tt, unsigned frame, unsigned uframe ) tt_available() argument 407 tt_no_collision( struct ehci_hcd *ehci, unsigned period, struct usb_device *dev, unsigned frame, u32 uf_mask ) tt_no_collision() argument 484 enable_periodic(struct ehci_hcd *ehci) enable_periodic() argument 497 disable_periodic(struct ehci_hcd *ehci) disable_periodic() argument 514 qh_link_periodic(struct ehci_hcd *ehci, struct ehci_qh *qh) qh_link_periodic() argument 581 qh_unlink_periodic(struct ehci_hcd *ehci, struct ehci_qh *qh) qh_unlink_periodic() argument 628 cancel_unlink_wait_intr(struct ehci_hcd *ehci, struct ehci_qh *qh) cancel_unlink_wait_intr() argument 642 start_unlink_intr(struct ehci_hcd *ehci, struct ehci_qh *qh) start_unlink_intr() argument 681 start_unlink_intr_wait(struct ehci_hcd *ehci, struct ehci_qh *qh) start_unlink_intr_wait() argument 697 end_unlink_intr(struct ehci_hcd *ehci, struct ehci_qh *qh) end_unlink_intr() argument 735 check_period( struct ehci_hcd *ehci, unsigned frame, unsigned uframe, unsigned uperiod, unsigned usecs ) check_period() argument 761 check_intr_schedule( struct ehci_hcd *ehci, unsigned frame, unsigned uframe, struct ehci_qh *qh, unsigned *c_maskp, struct ehci_tt *tt ) check_intr_schedule() argument 829 qh_schedule(struct ehci_hcd *ehci, struct ehci_qh *qh) qh_schedule() argument 897 intr_submit( struct ehci_hcd *ehci, struct urb *urb, struct list_head *qtd_list, gfp_t mem_flags ) intr_submit() argument 962 scan_intr(struct ehci_hcd *ehci) scan_intr() argument 1010 iso_stream_init( struct ehci_hcd *ehci, struct ehci_iso_stream *stream, struct urb *urb ) iso_stream_init() argument 1119 iso_stream_find(struct ehci_hcd *ehci, struct urb *urb) iso_stream_find() argument 1173 itd_sched_init( struct ehci_hcd *ehci, struct ehci_iso_sched *iso_sched, struct ehci_iso_stream *stream, struct urb *urb ) itd_sched_init() argument 1228 itd_urb_transaction( struct ehci_iso_stream *stream, struct ehci_hcd *ehci, struct urb *urb, gfp_t mem_flags ) itd_urb_transaction() argument 1296 reserve_release_iso_bandwidth(struct ehci_hcd *ehci, struct ehci_iso_stream *stream, int sign) reserve_release_iso_bandwidth() argument 1353 itd_slot_ok( struct ehci_hcd *ehci, struct ehci_iso_stream *stream, unsigned uframe ) itd_slot_ok() argument 1373 sitd_slot_ok( struct ehci_hcd *ehci, struct ehci_iso_stream *stream, unsigned uframe, struct ehci_iso_sched *sched, struct ehci_tt *tt ) sitd_slot_ok() argument 1460 iso_stream_schedule( struct ehci_hcd *ehci, struct urb *urb, struct ehci_iso_stream *stream ) iso_stream_schedule() argument 1654 itd_init(struct ehci_hcd *ehci, struct ehci_iso_stream *stream, struct ehci_itd *itd) itd_init() argument 1672 itd_patch( struct ehci_hcd *ehci, struct ehci_itd *itd, struct ehci_iso_sched *iso_sched, unsigned index, u16 uframe ) itd_patch() argument 1704 itd_link(struct ehci_hcd *ehci, unsigned frame, struct ehci_itd *itd) itd_link() argument 1730 itd_link_urb( struct ehci_hcd *ehci, struct urb *urb, unsigned mod, struct ehci_iso_stream *stream ) itd_link_urb() argument 1810 itd_complete(struct ehci_hcd *ehci, struct ehci_itd *itd) itd_complete() argument 1903 itd_submit(struct ehci_hcd *ehci, struct urb *urb, gfp_t mem_flags) itd_submit() argument 1972 sitd_sched_init( struct ehci_hcd *ehci, struct ehci_iso_sched *iso_sched, struct ehci_iso_stream *stream, struct urb *urb ) sitd_sched_init() argument 2021 sitd_urb_transaction( struct ehci_iso_stream *stream, struct ehci_hcd *ehci, struct urb *urb, gfp_t mem_flags ) sitd_urb_transaction() argument 2090 sitd_patch( struct ehci_hcd *ehci, struct ehci_iso_stream *stream, struct ehci_sitd *sitd, struct ehci_iso_sched *iso_sched, unsigned index ) sitd_patch() argument 2119 sitd_link(struct ehci_hcd *ehci, unsigned frame, struct ehci_sitd *sitd) sitd_link() argument 2131 sitd_link_urb( struct ehci_hcd *ehci, struct urb *urb, unsigned mod, struct ehci_iso_stream *stream ) sitd_link_urb() argument 2204 sitd_complete(struct ehci_hcd *ehci, struct ehci_sitd *sitd) sitd_complete() argument 2282 sitd_submit(struct ehci_hcd *ehci, struct urb *urb, gfp_t mem_flags) sitd_submit() argument 2343 scan_isoc(struct ehci_hcd *ehci) scan_isoc() argument [all...] |
H A D | ehci-q.c | 6 /* this file is part of ehci-hcd.c */ 20 * an ongoing challenge. That's in "ehci-sched.c". 37 qtd_fill(struct ehci_hcd *ehci, struct ehci_qtd *qtd, dma_addr_t buf, in qtd_fill() argument 44 qtd->hw_buf[0] = cpu_to_hc32(ehci, (u32)addr); in qtd_fill() 45 qtd->hw_buf_hi[0] = cpu_to_hc32(ehci, (u32)(addr >> 32)); in qtd_fill() 56 qtd->hw_buf[i] = cpu_to_hc32(ehci, (u32)addr); in qtd_fill() 57 qtd->hw_buf_hi[i] = cpu_to_hc32(ehci, in qtd_fill() 70 qtd->hw_token = cpu_to_hc32(ehci, (count << 16) | token); in qtd_fill() 79 qh_update (struct ehci_hcd *ehci, struct ehci_qh *qh, struct ehci_qtd *qtd) in qh_update() argument 86 hw->hw_qtd_next = QTD_NEXT(ehci, qt in qh_update() 113 qh_refresh(struct ehci_hcd *ehci, struct ehci_qh *qh) qh_refresh() argument 143 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_clear_tt_buffer_complete() local 155 ehci_clear_tt_buffer(struct ehci_hcd *ehci, struct ehci_qh *qh, struct urb *urb, u32 token) ehci_clear_tt_buffer() argument 187 qtd_copy_status( struct ehci_hcd *ehci, struct urb *urb, size_t length, u32 token ) qtd_copy_status() argument 251 ehci_urb_done(struct ehci_hcd *ehci, struct urb *urb, int status) ehci_urb_done() argument 289 qh_completions(struct ehci_hcd *ehci, struct ehci_qh *qh) qh_completions() argument 555 qtd_list_free( struct ehci_hcd *ehci, struct urb *urb, struct list_head *qtd_list ) qtd_list_free() argument 575 qh_urb_transaction( struct ehci_hcd *ehci, struct urb *urb, struct list_head *head, gfp_t flags ) qh_urb_transaction() argument 760 qh_make( struct ehci_hcd *ehci, struct urb *urb, gfp_t flags ) qh_make() argument 953 enable_async(struct ehci_hcd *ehci) enable_async() argument 966 disable_async(struct ehci_hcd *ehci) disable_async() argument 981 qh_link_async(struct ehci_hcd *ehci, struct ehci_qh *qh) qh_link_async() argument 1020 qh_append_tds( struct ehci_hcd *ehci, struct urb *urb, struct list_head *qtd_list, int epnum, void **ptr ) qh_append_tds() argument 1102 submit_async( struct ehci_hcd *ehci, struct urb *urb, struct list_head *qtd_list, gfp_t mem_flags ) submit_async() argument 1173 struct ehci_hcd *ehci = hcd_to_ehci(hcd); submit_single_step_set_feature() local 1257 single_unlink_async(struct ehci_hcd *ehci, struct ehci_qh *qh) single_unlink_async() argument 1276 start_iaa_cycle(struct ehci_hcd *ehci) start_iaa_cycle() argument 1297 end_iaa_cycle(struct ehci_hcd *ehci) end_iaa_cycle() argument 1311 end_unlink_async(struct ehci_hcd *ehci) end_unlink_async() argument 1424 unlink_empty_async(struct ehci_hcd *ehci) unlink_empty_async() argument 1457 unlink_empty_async_suspended(struct ehci_hcd *ehci) unlink_empty_async_suspended() argument 1473 start_unlink_async(struct ehci_hcd *ehci, struct ehci_qh *qh) start_unlink_async() argument 1485 scan_async(struct ehci_hcd *ehci) scan_async() argument [all...] |
H A D | ehci-dbg.c | 6 /* this file is part of ehci-hcd.c */ 15 static void dbg_hcs_params(struct ehci_hcd *ehci, char *label) in dbg_hcs_params() argument 17 u32 params = ehci_readl(ehci, &ehci->caps->hcs_params); in dbg_hcs_params() 19 ehci_dbg(ehci, in dbg_hcs_params() 37 byte = readb(&ehci->caps->portroute[(i >> 1)]); in dbg_hcs_params() 42 ehci_dbg(ehci, "%s portroute %s\n", label, buf); in dbg_hcs_params() 51 static void dbg_hcc_params(struct ehci_hcd *ehci, char *label) in dbg_hcc_params() argument 53 u32 params = ehci_readl(ehci, &ehci in dbg_hcc_params() 80 dbg_qtd(const char *label, struct ehci_hcd *ehci, struct ehci_qtd *qtd) dbg_qtd() argument 96 dbg_qh(const char *label, struct ehci_hcd *ehci, struct ehci_qh *qh) dbg_qh() argument 106 dbg_itd(const char *label, struct ehci_hcd *ehci, struct ehci_itd *itd) dbg_itd() argument 137 dbg_sitd(const char *label, struct ehci_hcd *ehci, struct ehci_sitd *sitd) dbg_sitd() argument 261 dbg_status(struct ehci_hcd *ehci, const char *label, u32 status) dbg_status() argument 270 dbg_cmd(struct ehci_hcd *ehci, const char *label, u32 command) dbg_cmd() argument 279 dbg_port(struct ehci_hcd *ehci, const char *label, int port, u32 status) dbg_port() argument 356 token_mark(struct ehci_hcd *ehci, __hc32 token) token_mark() argument 370 qh_lines(struct ehci_hcd *ehci, struct ehci_qh *qh, char **nextp, unsigned *sizep) qh_lines() argument 473 struct ehci_hcd *ehci; fill_async_buffer() local 512 struct ehci_hcd *ehci; fill_bandwidth_buffer() local 593 output_buf_tds_dir(char *buf, struct ehci_hcd *ehci, struct ehci_qh_hw *hw, struct ehci_qh *qh, unsigned size) output_buf_tds_dir() argument 624 struct ehci_hcd *ehci; fill_periodic_buffer() local 740 rh_state_string(struct ehci_hcd *ehci) rh_state_string() argument 758 struct ehci_hcd *ehci; fill_registers_buffer() local 1026 create_debug_files(struct ehci_hcd *ehci) create_debug_files() argument 1042 remove_debug_files(struct ehci_hcd *ehci) remove_debug_files() argument 1049 dbg_hcs_params(struct ehci_hcd *ehci, char *label) dbg_hcs_params() argument 1050 dbg_hcc_params(struct ehci_hcd *ehci, char *label) dbg_hcc_params() argument 1052 dbg_qh(const char *label, struct ehci_hcd *ehci, struct ehci_qh *qh) dbg_qh() argument 1071 dbg_status(struct ehci_hcd *ehci, const char *label, u32 status) dbg_status() argument 1073 dbg_cmd(struct ehci_hcd *ehci, const char *label, u32 command) dbg_cmd() argument 1075 dbg_port(struct ehci_hcd *ehci, const char *label, int port, u32 status) dbg_port() argument [all...] |
H A D | ehci-fsl.c | 28 #include "ehci.h" 29 #include "ehci-fsl.h" 32 #define DRV_NAME "fsl-ehci" 153 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in fsl_ehci_drv_probe() local 156 dev_dbg(&pdev->dev, "hcd=0x%p ehci=0x%p, phy=0x%p\n", in fsl_ehci_drv_probe() 157 hcd, ehci, hcd->usb_phy); in fsl_ehci_drv_probe() 161 &ehci_to_hcd(ehci)->self); in fsl_ehci_drv_probe() 202 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_fsl_setup_phy() local 212 portsc = ehci_readl(ehci, &ehci in ehci_fsl_setup_phy() 301 ehci_fsl_usb_setup(struct ehci_hcd *ehci) ehci_fsl_usb_setup() argument 366 ehci_fsl_reinit(struct ehci_hcd *ehci) ehci_fsl_reinit() argument 377 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_fsl_setup() local 420 struct ehci_hcd ehci; global() member 434 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_fsl_mpc512x_drv_suspend() local 503 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_fsl_mpc512x_drv_resume() local 577 struct ehci_hcd *ehci = hcd_to_ehci(hcd); hcd_to_ehci_fsl() local 606 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_fsl_drv_resume() local 651 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_start_port_reset() local [all...] |
H A D | ehci-sysfs.c | 6 /* this file is part of ehci-hcd.c */ 14 struct ehci_hcd *ehci; in companion_show() local 19 ehci = hcd_to_ehci(dev_get_drvdata(dev)); in companion_show() 20 nports = HCS_N_PORTS(ehci->hcs_params); in companion_show() 23 if (test_bit(index, &ehci->companion_ports)) { in companion_show() 41 struct ehci_hcd *ehci; in companion_store() local 44 ehci = hcd_to_ehci(dev_get_drvdata(dev)); in companion_store() 52 if (portnum <= 0 || portnum > HCS_N_PORTS(ehci->hcs_params)) in companion_store() 56 set_bit(portnum, &ehci->companion_ports); in companion_store() 58 clear_bit(portnum, &ehci in companion_store() 72 struct ehci_hcd *ehci; uframe_periodic_max_show() local 85 struct ehci_hcd *ehci; uframe_periodic_max_store() local 149 create_sysfs_files(struct ehci_hcd *ehci) create_sysfs_files() argument 165 remove_sysfs_files(struct ehci_hcd *ehci) remove_sysfs_files() argument [all...] |
H A D | ehci-pci.c | 14 #include "ehci.h" 19 static const char hcd_name[] = "ehci-pci"; 63 static int ehci_pci_reinit(struct ehci_hcd *ehci, struct pci_dev *pdev) in ehci_pci_reinit() argument 74 ehci_dbg(ehci, "MWI active\n"); in ehci_pci_reinit() 82 ehci_writel(ehci, INTEL_QUARK_X1000_EHCI_MAX_THRESHOLD, in ehci_pci_reinit() 83 ehci->regs->intel_quark_x1000_insnreg01); in ehci_pci_reinit() 92 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_pci_setup() local 97 ehci->caps = hcd->regs; in ehci_pci_setup() 113 ehci->big_endian_mmio = 1; in ehci_pci_setup() 115 ehci_warn(ehci, in ehci_pci_setup() 355 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_pci_resume() local [all...] |
H A D | ehci.h | 92 * ehci-timer.c) in parallel with this list. 267 static inline struct usb_hcd *ehci_to_hcd(struct ehci_hcd *ehci) in ehci_to_hcd() argument 269 return container_of((void *) ehci, struct usb_hcd, hcd_priv); in ehci_to_hcd() 278 #define QTD_NEXT(ehci, dma) cpu_to_hc32(ehci, (u32)dma) 307 #define ACTIVE_BIT(ehci) cpu_to_hc32(ehci, QTD_STS_ACTIVE) 308 #define HALT_BIT(ehci) cpu_to_hc32(ehci, QTD_STS_HALT) 309 #define STATUS_BIT(ehci) cpu_to_hc3 656 ehci_port_speed(struct ehci_hcd *ehci, unsigned int portsc) ehci_port_speed() argument 739 ehci_readl(const struct ehci_hcd *ehci, __u32 __iomem *regs) ehci_readl() argument 763 ehci_writel(const struct ehci_hcd *ehci, const unsigned int val, __u32 __iomem *regs) ehci_writel() argument 784 set_ohci_hcfs(struct ehci_hcd *ehci, int operational) set_ohci_hcfs() argument 798 set_ohci_hcfs(struct ehci_hcd *ehci, int operational) set_ohci_hcfs() argument 815 cpu_to_hc32(const struct ehci_hcd *ehci, const u32 x) cpu_to_hc32() argument 823 hc32_to_cpu(const struct ehci_hcd *ehci, const __hc32 x) hc32_to_cpu() argument 830 hc32_to_cpup(const struct ehci_hcd *ehci, const __hc32 *x) hc32_to_cpup() argument 840 cpu_to_hc32(const struct ehci_hcd *ehci, const u32 x) cpu_to_hc32() argument 846 hc32_to_cpu(const struct ehci_hcd *ehci, const __hc32 x) hc32_to_cpu() argument 851 hc32_to_cpup(const struct ehci_hcd *ehci, const __hc32 *x) hc32_to_cpup() argument [all...] |
H A D | ehci-brcm.c | 15 #include "ehci.h" 27 static inline void ehci_brcm_wait_for_sof(struct ehci_hcd *ehci, u32 delay) in ehci_brcm_wait_for_sof() argument 29 u32 frame_idx = ehci_readl(ehci, &ehci->regs->frame_index); in ehci_brcm_wait_for_sof() 34 res = readl_relaxed_poll_timeout(&ehci->regs->frame_index, val, in ehci_brcm_wait_for_sof() 37 ehci_err(ehci, "Error waiting for SOF\n"); in ehci_brcm_wait_for_sof() 60 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_brcm_hub_control() local 61 int ports = HCS_N_PORTS(ehci->hcs_params); in ehci_brcm_hub_control() 66 status_reg = &ehci->regs->port_status[(wIndex & 0xff) - 1]; in ehci_brcm_hub_control() 74 ehci in ehci_brcm_hub_control() 95 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_brcm_reset() local 216 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_brcm_resume() local [all...] |
H A D | ehci-tegra.c | 29 #include "ehci.h" 36 #define DRV_NAME "tegra-ehci" 104 struct ehci_hcd *ehci, in tegra_ehci_internal_port_reset() 114 spin_lock_irqsave(&ehci->lock, flags); in tegra_ehci_internal_port_reset() 115 saved_usbintr = ehci_readl(ehci, &ehci->regs->intr_enable); in tegra_ehci_internal_port_reset() 117 ehci_writel(ehci, 0, &ehci->regs->intr_enable); in tegra_ehci_internal_port_reset() 118 spin_unlock_irqrestore(&ehci->lock, flags); in tegra_ehci_internal_port_reset() 125 temp = ehci_readl(ehci, portsc_re in tegra_ehci_internal_port_reset() 103 tegra_ehci_internal_port_reset( struct ehci_hcd *ehci, u32 __iomem *portsc_reg ) tegra_ehci_internal_port_reset() argument 177 struct ehci_hcd *ehci = hcd_to_ehci(hcd); tegra_ehci_hub_control() local 387 struct ehci_hcd *ehci; tegra_ehci_probe() local 544 struct ehci_hcd *ehci = hcd_to_ehci(hcd); tegra_ehci_reset() local [all...] |
/kernel/linux/linux-6.6/drivers/usb/host/ |
H A D | ehci-timer.c | 6 /* This file is part of ehci-hcd.c */ 11 static void ehci_set_command_bit(struct ehci_hcd *ehci, u32 bit) in ehci_set_command_bit() argument 13 ehci->command |= bit; in ehci_set_command_bit() 14 ehci_writel(ehci, ehci->command, &ehci->regs->command); in ehci_set_command_bit() 17 ehci_readl(ehci, &ehci->regs->command); in ehci_set_command_bit() 21 static void ehci_clear_command_bit(struct ehci_hcd *ehci, u32 bit) in ehci_clear_command_bit() argument 23 ehci in ehci_clear_command_bit() 76 ehci_enable_event(struct ehci_hcd *ehci, unsigned event, bool resched) ehci_enable_event() argument 95 ehci_poll_ASS(struct ehci_hcd *ehci) ehci_poll_ASS() argument 134 ehci_disable_ASE(struct ehci_hcd *ehci) ehci_disable_ASE() argument 141 ehci_poll_PSS(struct ehci_hcd *ehci) ehci_poll_PSS() argument 180 ehci_disable_PSE(struct ehci_hcd *ehci) ehci_disable_PSE() argument 187 ehci_handle_controller_death(struct ehci_hcd *ehci) ehci_handle_controller_death() argument 211 ehci_handle_start_intr_unlinks(struct ehci_hcd *ehci) ehci_handle_start_intr_unlinks() argument 243 ehci_handle_intr_unlinks(struct ehci_hcd *ehci) ehci_handle_intr_unlinks() argument 276 start_free_itds(struct ehci_hcd *ehci) start_free_itds() argument 290 end_free_itds(struct ehci_hcd *ehci) end_free_itds() argument 320 ehci_iaa_watchdog(struct ehci_hcd *ehci) ehci_iaa_watchdog() argument 360 turn_on_io_watchdog(struct ehci_hcd *ehci) turn_on_io_watchdog() argument 400 struct ehci_hcd *ehci = container_of(t, struct ehci_hcd, hrtimer); ehci_hrtimer_func() local [all...] |
H A D | ehci-hcd.c | 98 #include "ehci.h" 111 static unsigned ehci_moschip_read_frame_index(struct ehci_hcd *ehci) in ehci_moschip_read_frame_index() argument 115 uf = ehci_readl(ehci, &ehci->regs->frame_index); in ehci_moschip_read_frame_index() 117 uf = ehci_readl(ehci, &ehci->regs->frame_index); in ehci_moschip_read_frame_index() 121 static inline unsigned ehci_read_frame_index(struct ehci_hcd *ehci) in ehci_read_frame_index() argument 123 if (ehci->frame_index_bug) in ehci_read_frame_index() 124 return ehci_moschip_read_frame_index(ehci); in ehci_read_frame_index() 125 return ehci_readl(ehci, in ehci_read_frame_index() 149 ehci_handshake(struct ehci_hcd *ehci, void __iomem *ptr, u32 mask, u32 done, int usec) ehci_handshake() argument 169 tdi_in_host_mode(struct ehci_hcd *ehci) tdi_in_host_mode() argument 181 ehci_halt(struct ehci_hcd *ehci) ehci_halt() argument 212 tdi_reset(struct ehci_hcd *ehci) tdi_reset() argument 231 ehci_reset(struct ehci_hcd *ehci) ehci_reset() argument 273 ehci_quiesce(struct ehci_hcd *ehci) ehci_quiesce() argument 319 ehci_turn_off_all_ports(struct ehci_hcd *ehci) ehci_turn_off_all_ports() argument 336 ehci_silence_controller(struct ehci_hcd *ehci) ehci_silence_controller() argument 358 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_shutdown() local 386 ehci_work(struct ehci_hcd *ehci) ehci_work() argument 422 struct ehci_hcd *ehci = hcd_to_ehci (hcd); ehci_stop() local 456 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_init() local 575 struct ehci_hcd *ehci = hcd_to_ehci (hcd); ehci_run() local 681 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_setup() local 715 struct ehci_hcd *ehci = hcd_to_ehci (hcd); ehci_irq() local 887 struct ehci_hcd *ehci = hcd_to_ehci (hcd); ehci_urb_enqueue() local 925 struct ehci_hcd *ehci = hcd_to_ehci (hcd); ehci_urb_dequeue() local 976 struct ehci_hcd *ehci = hcd_to_ehci (hcd); ehci_endpoint_disable() local 1050 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_endpoint_reset() local 1089 struct ehci_hcd *ehci = hcd_to_ehci (hcd); ehci_get_frame() local 1099 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_remove_device() local 1111 ehci_zx_wakeup_clear(struct ehci_hcd *ehci) ehci_zx_wakeup_clear() argument 1136 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_suspend() local 1170 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_resume() local [all...] |
H A D | ehci-hub.c | 6 /* this file is part of ehci-hcd.c */ 22 static void unlink_empty_async_suspended(struct ehci_hcd *ehci); 33 static void ehci_handover_companion_ports(struct ehci_hcd *ehci) in ehci_handover_companion_ports() argument 39 struct usb_hcd *hcd = ehci_to_hcd(ehci); in ehci_handover_companion_ports() 41 if (!ehci->owned_ports) in ehci_handover_companion_ports() 55 port = HCS_N_PORTS(ehci->hcs_params); in ehci_handover_companion_ports() 57 if (test_bit(port, &ehci->owned_ports)) { in ehci_handover_companion_ports() 58 reg = &ehci->regs->port_status[port]; in ehci_handover_companion_ports() 59 status = ehci_readl(ehci, reg) & ~PORT_RWC_BITS; in ehci_handover_companion_ports() 61 ehci_port_power(ehci, por in ehci_handover_companion_ports() 125 ehci_port_change(struct ehci_hcd *ehci) ehci_port_change() argument 146 ehci_adjust_port_wakeup_flags(struct ehci_hcd *ehci, bool suspending, bool do_wakeup) ehci_adjust_port_wakeup_flags() argument 215 struct ehci_hcd *ehci = hcd_to_ehci (hcd); ehci_bus_suspend() local 378 struct ehci_hcd *ehci = hcd_to_ehci (hcd); ehci_bus_resume() local 519 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_get_resuming_ports() local 537 set_owner(struct ehci_hcd *ehci, int portnum, int new_owner) set_owner() argument 570 check_reset_complete( struct ehci_hcd *ehci, int index, u32 __iomem *status_reg, int port_status ) check_reset_complete() argument 620 struct ehci_hcd *ehci = hcd_to_ehci (hcd); ehci_hub_status_data() local 698 ehci_hub_descriptor( struct ehci_hcd *ehci, struct usb_hub_descriptor *desc ) ehci_hub_descriptor() argument 740 struct ehci_hcd *ehci = hcd_to_ehci (hcd); ehci_hub_control() local 1189 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_relinquish_port() local 1198 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_port_handed_over() local 1207 ehci_port_power(struct ehci_hcd *ehci, int portnum, bool enable) ehci_port_power() argument [all...] |
H A D | ehci-mem.c | 6 /* this file is part of ehci-hcd.c */ 25 static inline void ehci_qtd_init(struct ehci_hcd *ehci, struct ehci_qtd *qtd, in ehci_qtd_init() argument 30 qtd->hw_token = cpu_to_hc32(ehci, QTD_STS_HALT); in ehci_qtd_init() 31 qtd->hw_next = EHCI_LIST_END(ehci); in ehci_qtd_init() 32 qtd->hw_alt_next = EHCI_LIST_END(ehci); in ehci_qtd_init() 36 static struct ehci_qtd *ehci_qtd_alloc (struct ehci_hcd *ehci, gfp_t flags) in ehci_qtd_alloc() argument 41 qtd = dma_pool_alloc (ehci->qtd_pool, flags, &dma); in ehci_qtd_alloc() 43 ehci_qtd_init(ehci, qtd, dma); in ehci_qtd_alloc() 48 static inline void ehci_qtd_free (struct ehci_hcd *ehci, struct ehci_qtd *qtd) in ehci_qtd_free() argument 50 dma_pool_free (ehci in ehci_qtd_free() 54 qh_destroy(struct ehci_hcd *ehci, struct ehci_qh *qh) qh_destroy() argument 67 ehci_qh_alloc(struct ehci_hcd *ehci, gfp_t flags) ehci_qh_alloc() argument 106 ehci_mem_cleanup(struct ehci_hcd *ehci) ehci_mem_cleanup() argument 138 ehci_mem_init(struct ehci_hcd *ehci, gfp_t flags) ehci_mem_init() argument [all...] |
H A D | ehci-sched.c | 7 /* this file is part of ehci-hcd.c */ 32 periodic_next_shadow(struct ehci_hcd *ehci, union ehci_shadow *periodic, in periodic_next_shadow() argument 35 switch (hc32_to_cpu(ehci, tag)) { in periodic_next_shadow() 49 shadow_next_periodic(struct ehci_hcd *ehci, union ehci_shadow *periodic, in shadow_next_periodic() argument 52 switch (hc32_to_cpu(ehci, tag)) { in shadow_next_periodic() 62 /* caller must hold ehci->lock */ 63 static void periodic_unlink(struct ehci_hcd *ehci, unsigned frame, void *ptr) in periodic_unlink() argument 65 union ehci_shadow *prev_p = &ehci->pshadow[frame]; in periodic_unlink() 66 __hc32 *hw_p = &ehci->periodic[frame]; in periodic_unlink() 71 prev_p = periodic_next_shadow(ehci, prev_ in periodic_unlink() 137 struct ehci_hcd *ehci = find_tt() local 194 bandwidth_dbg(struct ehci_hcd *ehci, int sign, char *type, struct ehci_per_sched *ps) bandwidth_dbg() argument 206 reserve_release_intr_bandwidth(struct ehci_hcd *ehci, struct ehci_qh *qh, int sign) reserve_release_intr_bandwidth() argument 353 tt_available( struct ehci_hcd *ehci, struct ehci_per_sched *ps, struct ehci_tt *tt, unsigned frame, unsigned uframe ) tt_available() argument 413 tt_no_collision( struct ehci_hcd *ehci, unsigned period, struct usb_device *dev, unsigned frame, u32 uf_mask ) tt_no_collision() argument 490 enable_periodic(struct ehci_hcd *ehci) enable_periodic() argument 504 disable_periodic(struct ehci_hcd *ehci) disable_periodic() argument 521 qh_link_periodic(struct ehci_hcd *ehci, struct ehci_qh *qh) qh_link_periodic() argument 588 qh_unlink_periodic(struct ehci_hcd *ehci, struct ehci_qh *qh) qh_unlink_periodic() argument 635 cancel_unlink_wait_intr(struct ehci_hcd *ehci, struct ehci_qh *qh) cancel_unlink_wait_intr() argument 649 start_unlink_intr(struct ehci_hcd *ehci, struct ehci_qh *qh) start_unlink_intr() argument 688 start_unlink_intr_wait(struct ehci_hcd *ehci, struct ehci_qh *qh) start_unlink_intr_wait() argument 704 end_unlink_intr(struct ehci_hcd *ehci, struct ehci_qh *qh) end_unlink_intr() argument 742 check_period( struct ehci_hcd *ehci, unsigned frame, unsigned uframe, unsigned uperiod, unsigned usecs ) check_period() argument 768 check_intr_schedule( struct ehci_hcd *ehci, unsigned frame, unsigned uframe, struct ehci_qh *qh, unsigned *c_maskp, struct ehci_tt *tt ) check_intr_schedule() argument 836 qh_schedule(struct ehci_hcd *ehci, struct ehci_qh *qh) qh_schedule() argument 904 intr_submit( struct ehci_hcd *ehci, struct urb *urb, struct list_head *qtd_list, gfp_t mem_flags ) intr_submit() argument 969 scan_intr(struct ehci_hcd *ehci) scan_intr() argument 1017 iso_stream_init( struct ehci_hcd *ehci, struct ehci_iso_stream *stream, struct urb *urb ) iso_stream_init() argument 1126 iso_stream_find(struct ehci_hcd *ehci, struct urb *urb) iso_stream_find() argument 1178 itd_sched_init( struct ehci_hcd *ehci, struct ehci_iso_sched *iso_sched, struct ehci_iso_stream *stream, struct urb *urb ) itd_sched_init() argument 1233 itd_urb_transaction( struct ehci_iso_stream *stream, struct ehci_hcd *ehci, struct urb *urb, gfp_t mem_flags ) itd_urb_transaction() argument 1301 reserve_release_iso_bandwidth(struct ehci_hcd *ehci, struct ehci_iso_stream *stream, int sign) reserve_release_iso_bandwidth() argument 1364 itd_slot_ok( struct ehci_hcd *ehci, struct ehci_iso_stream *stream, unsigned uframe ) itd_slot_ok() argument 1384 sitd_slot_ok( struct ehci_hcd *ehci, struct ehci_iso_stream *stream, unsigned uframe, struct ehci_iso_sched *sched, struct ehci_tt *tt ) sitd_slot_ok() argument 1471 iso_stream_schedule( struct ehci_hcd *ehci, struct urb *urb, struct ehci_iso_stream *stream ) iso_stream_schedule() argument 1665 itd_init(struct ehci_hcd *ehci, struct ehci_iso_stream *stream, struct ehci_itd *itd) itd_init() argument 1683 itd_patch( struct ehci_hcd *ehci, struct ehci_itd *itd, struct ehci_iso_sched *iso_sched, unsigned index, u16 uframe ) itd_patch() argument 1715 itd_link(struct ehci_hcd *ehci, unsigned frame, struct ehci_itd *itd) itd_link() argument 1741 itd_link_urb( struct ehci_hcd *ehci, struct urb *urb, unsigned mod, struct ehci_iso_stream *stream ) itd_link_urb() argument 1821 itd_complete(struct ehci_hcd *ehci, struct ehci_itd *itd) itd_complete() argument 1914 itd_submit(struct ehci_hcd *ehci, struct urb *urb, gfp_t mem_flags) itd_submit() argument 1983 sitd_sched_init( struct ehci_hcd *ehci, struct ehci_iso_sched *iso_sched, struct ehci_iso_stream *stream, struct urb *urb ) sitd_sched_init() argument 2032 sitd_urb_transaction( struct ehci_iso_stream *stream, struct ehci_hcd *ehci, struct urb *urb, gfp_t mem_flags ) sitd_urb_transaction() argument 2101 sitd_patch( struct ehci_hcd *ehci, struct ehci_iso_stream *stream, struct ehci_sitd *sitd, struct ehci_iso_sched *iso_sched, unsigned index ) sitd_patch() argument 2130 sitd_link(struct ehci_hcd *ehci, unsigned frame, struct ehci_sitd *sitd) sitd_link() argument 2142 sitd_link_urb( struct ehci_hcd *ehci, struct urb *urb, unsigned mod, struct ehci_iso_stream *stream ) sitd_link_urb() argument 2215 sitd_complete(struct ehci_hcd *ehci, struct ehci_sitd *sitd) sitd_complete() argument 2293 sitd_submit(struct ehci_hcd *ehci, struct urb *urb, gfp_t mem_flags) sitd_submit() argument 2354 scan_isoc(struct ehci_hcd *ehci) scan_isoc() argument [all...] |
H A D | ehci-q.c | 6 /* this file is part of ehci-hcd.c */ 20 * an ongoing challenge. That's in "ehci-sched.c". 37 qtd_fill(struct ehci_hcd *ehci, struct ehci_qtd *qtd, dma_addr_t buf, in qtd_fill() argument 45 qtd->hw_buf[0] = cpu_to_hc32(ehci, (u32)addr); in qtd_fill() 46 qtd->hw_buf_hi[0] = cpu_to_hc32(ehci, (u32)(addr >> 32)); in qtd_fill() 57 qtd->hw_buf[i] = cpu_to_hc32(ehci, (u32)addr); in qtd_fill() 58 qtd->hw_buf_hi[i] = cpu_to_hc32(ehci, in qtd_fill() 71 qtd->hw_token = cpu_to_hc32(ehci, (count << 16) | token); in qtd_fill() 80 qh_update (struct ehci_hcd *ehci, struct ehci_qh *qh, struct ehci_qtd *qtd) in qh_update() argument 87 hw->hw_qtd_next = QTD_NEXT(ehci, qt in qh_update() 114 qh_refresh(struct ehci_hcd *ehci, struct ehci_qh *qh) qh_refresh() argument 144 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_clear_tt_buffer_complete() local 156 ehci_clear_tt_buffer(struct ehci_hcd *ehci, struct ehci_qh *qh, struct urb *urb, u32 token) ehci_clear_tt_buffer() argument 188 qtd_copy_status( struct ehci_hcd *ehci, struct urb *urb, size_t length, u32 token ) qtd_copy_status() argument 252 ehci_urb_done(struct ehci_hcd *ehci, struct urb *urb, int status) ehci_urb_done() argument 290 qh_completions(struct ehci_hcd *ehci, struct ehci_qh *qh) qh_completions() argument 556 qtd_list_free( struct ehci_hcd *ehci, struct urb *urb, struct list_head *qtd_list ) qtd_list_free() argument 576 qh_urb_transaction( struct ehci_hcd *ehci, struct urb *urb, struct list_head *head, gfp_t flags ) qh_urb_transaction() argument 761 qh_make( struct ehci_hcd *ehci, struct urb *urb, gfp_t flags ) qh_make() argument 954 enable_async(struct ehci_hcd *ehci) enable_async() argument 967 disable_async(struct ehci_hcd *ehci) disable_async() argument 982 qh_link_async(struct ehci_hcd *ehci, struct ehci_qh *qh) qh_link_async() argument 1021 qh_append_tds( struct ehci_hcd *ehci, struct urb *urb, struct list_head *qtd_list, int epnum, void **ptr ) qh_append_tds() argument 1103 submit_async( struct ehci_hcd *ehci, struct urb *urb, struct list_head *qtd_list, gfp_t mem_flags ) submit_async() argument 1174 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_submit_single_step_set_feature() local 1258 single_unlink_async(struct ehci_hcd *ehci, struct ehci_qh *qh) single_unlink_async() argument 1277 start_iaa_cycle(struct ehci_hcd *ehci) start_iaa_cycle() argument 1298 end_iaa_cycle(struct ehci_hcd *ehci) end_iaa_cycle() argument 1312 end_unlink_async(struct ehci_hcd *ehci) end_unlink_async() argument 1425 unlink_empty_async(struct ehci_hcd *ehci) unlink_empty_async() argument 1458 unlink_empty_async_suspended(struct ehci_hcd *ehci) unlink_empty_async_suspended() argument 1474 start_unlink_async(struct ehci_hcd *ehci, struct ehci_qh *qh) start_unlink_async() argument 1486 scan_async(struct ehci_hcd *ehci) scan_async() argument [all...] |
H A D | ehci-dbg.c | 6 /* this file is part of ehci-hcd.c */ 15 static void dbg_hcs_params(struct ehci_hcd *ehci, char *label) in dbg_hcs_params() argument 17 u32 params = ehci_readl(ehci, &ehci->caps->hcs_params); in dbg_hcs_params() 19 ehci_dbg(ehci, in dbg_hcs_params() 37 byte = readb(&ehci->caps->portroute[(i >> 1)]); in dbg_hcs_params() 42 ehci_dbg(ehci, "%s portroute %s\n", label, buf); in dbg_hcs_params() 51 static void dbg_hcc_params(struct ehci_hcd *ehci, char *label) in dbg_hcc_params() argument 53 u32 params = ehci_readl(ehci, &ehci in dbg_hcc_params() 80 dbg_qtd(const char *label, struct ehci_hcd *ehci, struct ehci_qtd *qtd) dbg_qtd() argument 96 dbg_qh(const char *label, struct ehci_hcd *ehci, struct ehci_qh *qh) dbg_qh() argument 106 dbg_itd(const char *label, struct ehci_hcd *ehci, struct ehci_itd *itd) dbg_itd() argument 137 dbg_sitd(const char *label, struct ehci_hcd *ehci, struct ehci_sitd *sitd) dbg_sitd() argument 261 dbg_status(struct ehci_hcd *ehci, const char *label, u32 status) dbg_status() argument 270 dbg_cmd(struct ehci_hcd *ehci, const char *label, u32 command) dbg_cmd() argument 279 dbg_port(struct ehci_hcd *ehci, const char *label, int port, u32 status) dbg_port() argument 356 token_mark(struct ehci_hcd *ehci, __hc32 token) token_mark() argument 370 qh_lines(struct ehci_hcd *ehci, struct ehci_qh *qh, char **nextp, unsigned *sizep) qh_lines() argument 473 struct ehci_hcd *ehci; fill_async_buffer() local 512 struct ehci_hcd *ehci; fill_bandwidth_buffer() local 593 output_buf_tds_dir(char *buf, struct ehci_hcd *ehci, struct ehci_qh_hw *hw, struct ehci_qh *qh, unsigned size) output_buf_tds_dir() argument 624 struct ehci_hcd *ehci; fill_periodic_buffer() local 740 rh_state_string(struct ehci_hcd *ehci) rh_state_string() argument 758 struct ehci_hcd *ehci; fill_registers_buffer() local 1026 create_debug_files(struct ehci_hcd *ehci) create_debug_files() argument 1042 remove_debug_files(struct ehci_hcd *ehci) remove_debug_files() argument 1049 dbg_hcs_params(struct ehci_hcd *ehci, char *label) dbg_hcs_params() argument 1050 dbg_hcc_params(struct ehci_hcd *ehci, char *label) dbg_hcc_params() argument 1052 dbg_qh(const char *label, struct ehci_hcd *ehci, struct ehci_qh *qh) dbg_qh() argument 1071 dbg_status(struct ehci_hcd *ehci, const char *label, u32 status) dbg_status() argument 1073 dbg_cmd(struct ehci_hcd *ehci, const char *label, u32 command) dbg_cmd() argument 1075 dbg_port(struct ehci_hcd *ehci, const char *label, int port, u32 status) dbg_port() argument [all...] |
H A D | ehci-fsl.c | 28 #include "ehci.h" 29 #include "ehci-fsl.h" 32 #define DRV_NAME "fsl-ehci" 147 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in fsl_ehci_drv_probe() local 150 dev_dbg(&pdev->dev, "hcd=0x%p ehci=0x%p, phy=0x%p\n", in fsl_ehci_drv_probe() 151 hcd, ehci, hcd->usb_phy); in fsl_ehci_drv_probe() 155 &ehci_to_hcd(ehci)->self); in fsl_ehci_drv_probe() 196 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_fsl_setup_phy() local 206 portsc = ehci_readl(ehci, &ehci in ehci_fsl_setup_phy() 295 ehci_fsl_usb_setup(struct ehci_hcd *ehci) ehci_fsl_usb_setup() argument 360 ehci_fsl_reinit(struct ehci_hcd *ehci) ehci_fsl_reinit() argument 371 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_fsl_setup() local 414 struct ehci_hcd ehci; global() member 428 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_fsl_mpc512x_drv_suspend() local 497 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_fsl_mpc512x_drv_resume() local 571 struct ehci_hcd *ehci = hcd_to_ehci(hcd); hcd_to_ehci_fsl() local 600 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_fsl_drv_resume() local 645 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_start_port_reset() local [all...] |
H A D | ehci-sysfs.c | 6 /* this file is part of ehci-hcd.c */ 14 struct ehci_hcd *ehci; in companion_show() local 19 ehci = hcd_to_ehci(dev_get_drvdata(dev)); in companion_show() 20 nports = HCS_N_PORTS(ehci->hcs_params); in companion_show() 23 if (test_bit(index, &ehci->companion_ports)) { in companion_show() 41 struct ehci_hcd *ehci; in companion_store() local 44 ehci = hcd_to_ehci(dev_get_drvdata(dev)); in companion_store() 52 if (portnum <= 0 || portnum > HCS_N_PORTS(ehci->hcs_params)) in companion_store() 56 set_bit(portnum, &ehci->companion_ports); in companion_store() 58 clear_bit(portnum, &ehci in companion_store() 72 struct ehci_hcd *ehci; uframe_periodic_max_show() local 85 struct ehci_hcd *ehci; uframe_periodic_max_store() local 149 create_sysfs_files(struct ehci_hcd *ehci) create_sysfs_files() argument 165 remove_sysfs_files(struct ehci_hcd *ehci) remove_sysfs_files() argument [all...] |
H A D | ehci-pci.c | 14 #include "ehci.h" 19 static const char hcd_name[] = "ehci-pci"; 63 static int ehci_pci_reinit(struct ehci_hcd *ehci, struct pci_dev *pdev) in ehci_pci_reinit() argument 74 ehci_dbg(ehci, "MWI active\n"); in ehci_pci_reinit() 82 ehci_writel(ehci, INTEL_QUARK_X1000_EHCI_MAX_THRESHOLD, in ehci_pci_reinit() 83 ehci->regs->intel_quark_x1000_insnreg01); in ehci_pci_reinit() 92 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_pci_setup() local 97 ehci->caps = hcd->regs; in ehci_pci_setup() 113 ehci->big_endian_mmio = 1; in ehci_pci_setup() 115 ehci_warn(ehci, in ehci_pci_setup() 359 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_pci_resume() local [all...] |
H A D | ehci.h | 92 * ehci-timer.c) in parallel with this list. 270 static inline struct usb_hcd *ehci_to_hcd(struct ehci_hcd *ehci) in ehci_to_hcd() argument 272 return container_of((void *) ehci, struct usb_hcd, hcd_priv); in ehci_to_hcd() 281 #define QTD_NEXT(ehci, dma) cpu_to_hc32(ehci, (u32)dma) 310 #define ACTIVE_BIT(ehci) cpu_to_hc32(ehci, QTD_STS_ACTIVE) 311 #define HALT_BIT(ehci) cpu_to_hc32(ehci, QTD_STS_HALT) 312 #define STATUS_BIT(ehci) cpu_to_hc3 659 ehci_port_speed(struct ehci_hcd *ehci, unsigned int portsc) ehci_port_speed() argument 751 ehci_readl(const struct ehci_hcd *ehci, __u32 __iomem *regs) ehci_readl() argument 775 ehci_writel(const struct ehci_hcd *ehci, const unsigned int val, __u32 __iomem *regs) ehci_writel() argument 796 set_ohci_hcfs(struct ehci_hcd *ehci, int operational) set_ohci_hcfs() argument 810 set_ohci_hcfs(struct ehci_hcd *ehci, int operational) set_ohci_hcfs() argument 827 cpu_to_hc32(const struct ehci_hcd *ehci, const u32 x) cpu_to_hc32() argument 835 hc32_to_cpu(const struct ehci_hcd *ehci, const __hc32 x) hc32_to_cpu() argument 842 hc32_to_cpup(const struct ehci_hcd *ehci, const __hc32 *x) hc32_to_cpup() argument 852 cpu_to_hc32(const struct ehci_hcd *ehci, const u32 x) cpu_to_hc32() argument 858 hc32_to_cpu(const struct ehci_hcd *ehci, const __hc32 x) hc32_to_cpu() argument 863 hc32_to_cpup(const struct ehci_hcd *ehci, const __hc32 *x) hc32_to_cpup() argument [all...] |
H A D | ehci-brcm.c | 15 #include "ehci.h" 27 static inline void ehci_brcm_wait_for_sof(struct ehci_hcd *ehci, u32 delay) in ehci_brcm_wait_for_sof() argument 29 u32 frame_idx = ehci_readl(ehci, &ehci->regs->frame_index); in ehci_brcm_wait_for_sof() 34 res = readl_relaxed_poll_timeout(&ehci->regs->frame_index, val, in ehci_brcm_wait_for_sof() 37 ehci_err(ehci, "Error waiting for SOF\n"); in ehci_brcm_wait_for_sof() 60 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_brcm_hub_control() local 61 int ports = HCS_N_PORTS(ehci->hcs_params); in ehci_brcm_hub_control() 70 status_reg = &ehci->regs->port_status[temp]; in ehci_brcm_hub_control() 78 ehci in ehci_brcm_hub_control() 99 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_brcm_reset() local 218 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_brcm_resume() local [all...] |