/linux/drivers/usb/host/ |
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 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 886 struct ehci_hcd *ehci = hcd_to_ehci (hcd); ehci_urb_enqueue() local 924 struct ehci_hcd *ehci = hcd_to_ehci (hcd); ehci_urb_dequeue() local 975 struct ehci_hcd *ehci = hcd_to_ehci (hcd); ehci_endpoint_disable() local 1049 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_endpoint_reset() local 1088 struct ehci_hcd *ehci = hcd_to_ehci (hcd); ehci_get_frame() local 1098 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_remove_device() local 1110 ehci_zx_wakeup_clear(struct ehci_hcd * ehci) ehci_zx_wakeup_clear() argument 1135 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_suspend() local 1169 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_resume() local [all...] |
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-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 571 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 699 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-q.c | 6 /* this file is part of ehci-hcd.c */ 20 * an ongoing challenge. That's in "ehci-sched.c". 33 qtd_fill(struct ehci_hcd *ehci, struct ehci_qtd *qtd, dma_addr_t buf, in qtd_fill() argument 41 qtd->hw_buf[0] = cpu_to_hc32(ehci, (u32)addr); in qtd_fill() 42 qtd->hw_buf_hi[0] = cpu_to_hc32(ehci, (u32)(addr >> 32)); in qtd_fill() 53 qtd->hw_buf[i] = cpu_to_hc32(ehci, (u32)addr); in qtd_fill() 54 qtd->hw_buf_hi[i] = cpu_to_hc32(ehci, in qtd_fill() 67 qtd->hw_token = cpu_to_hc32(ehci, (count << 16) | token); in qtd_fill() 76 qh_update (struct ehci_hcd *ehci, struct ehci_qh *qh, struct ehci_qtd *qtd) in qh_update() argument 83 hw->hw_qtd_next = QTD_NEXT(ehci, qt in qh_update() 110 qh_refresh(struct ehci_hcd * ehci,struct ehci_qh * qh) qh_refresh() argument 140 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_clear_tt_buffer_complete() local 152 ehci_clear_tt_buffer(struct ehci_hcd * ehci,struct ehci_qh * qh,struct urb * urb,u32 token) ehci_clear_tt_buffer() argument 185 qtd_copy_status(struct ehci_hcd * ehci,struct urb * urb,size_t length,u32 token) qtd_copy_status() argument 248 ehci_urb_done(struct ehci_hcd * ehci,struct urb * urb,int status) ehci_urb_done() argument 286 qh_completions(struct ehci_hcd * ehci,struct ehci_qh * qh) qh_completions() argument 553 qtd_list_free(struct ehci_hcd * ehci,struct urb * urb,struct list_head * qtd_list) qtd_list_free() argument 573 qh_urb_transaction(struct ehci_hcd * ehci,struct urb * urb,struct list_head * head,gfp_t flags) qh_urb_transaction() argument 758 qh_make(struct ehci_hcd * ehci,struct urb * urb,gfp_t flags) qh_make() argument 950 enable_async(struct ehci_hcd * ehci) enable_async() argument 963 disable_async(struct ehci_hcd * ehci) disable_async() argument 978 qh_link_async(struct ehci_hcd * ehci,struct ehci_qh * qh) qh_link_async() argument 1018 qh_append_tds(struct ehci_hcd * ehci,struct urb * urb,struct list_head * qtd_list,int epnum,void ** ptr) qh_append_tds() argument 1100 submit_async(struct ehci_hcd * ehci,struct urb * urb,struct list_head * qtd_list,gfp_t mem_flags) submit_async() argument 1170 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_submit_single_step_set_feature() local 1254 single_unlink_async(struct ehci_hcd * ehci,struct ehci_qh * qh) single_unlink_async() argument 1273 start_iaa_cycle(struct ehci_hcd * ehci) start_iaa_cycle() argument 1294 end_iaa_cycle(struct ehci_hcd * ehci) end_iaa_cycle() argument 1308 end_unlink_async(struct ehci_hcd * ehci) end_unlink_async() argument 1421 unlink_empty_async(struct ehci_hcd * ehci) unlink_empty_async() argument 1454 unlink_empty_async_suspended(struct ehci_hcd * ehci) unlink_empty_async_suspended() argument 1470 start_unlink_async(struct ehci_hcd * ehci,struct ehci_qh * qh) start_unlink_async() argument 1482 scan_async(struct ehci_hcd * ehci) scan_async() 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 354 tt_available(struct ehci_hcd * ehci,struct ehci_per_sched * ps,struct ehci_tt * tt,unsigned frame,unsigned uframe) tt_available() argument 414 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 743 check_period(struct ehci_hcd * ehci,unsigned frame,unsigned uframe,unsigned uperiod,unsigned usecs) check_period() argument 769 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 905 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 1018 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 1179 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 1235 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 1365 itd_slot_ok(struct ehci_hcd * ehci,struct ehci_iso_stream * stream,unsigned uframe) itd_slot_ok() argument 1385 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 1472 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 1684 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 1742 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 1984 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 2034 sitd_urb_transaction(struct ehci_iso_stream * stream,struct ehci_hcd * ehci,struct urb * urb,gfp_t mem_flags) sitd_urb_transaction() argument 2102 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 2143 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-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 1053 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-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-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 426 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_fsl_mpc512x_drv_suspend() local 495 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_fsl_mpc512x_drv_resume() local 591 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_fsl_drv_resume() local 636 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 18 ehci = hcd_to_ehci(dev_get_drvdata(dev)); in companion_show() 19 nports = HCS_N_PORTS(ehci->hcs_params); in companion_show() 22 if (test_bit(index, &ehci->companion_ports)) in companion_show() 37 struct ehci_hcd *ehci; in companion_store() local 40 ehci = hcd_to_ehci(dev_get_drvdata(dev)); in companion_store() 48 if (portnum <= 0 || portnum > HCS_N_PORTS(ehci->hcs_params)) in companion_store() 52 set_bit(portnum, &ehci->companion_ports); in companion_store() 54 clear_bit(portnum, &ehci in companion_store() 68 struct ehci_hcd *ehci; uframe_periodic_max_show() local 79 struct ehci_hcd *ehci; uframe_periodic_max_store() local 143 create_sysfs_files(struct ehci_hcd * ehci) create_sysfs_files() argument 159 remove_sysfs_files(struct ehci_hcd * ehci) remove_sysfs_files() argument [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) argument 310 #define ACTIVE_BIT(ehci) cpu_to_hc32(ehci, QTD_STS_ACTIVE) argument 311 #define HALT_BIT(ehci) cpu_to_hc32(ehci, QTD_STS_HALT) argument 312 #define STATUS_BIT(ehci) cpu_to_hc3 argument 330 QTD_MASK(ehci) global() argument 338 Q_NEXT_TYPE(ehci,dma) global() argument 354 QH_NEXT(ehci,dma) global() argument 358 EHCI_LIST_END(ehci) global() argument 529 ITD_ACTIVE(ehci) global() argument 574 SITD_ACTIVE(ehci) global() argument 644 ehci_prepare_ports_for_controller_suspend(ehci,do_wakeup) global() argument 647 ehci_prepare_ports_for_controller_resume(ehci) global() argument 665 ehci_port_speed(struct ehci_hcd * ehci,unsigned int portsc) ehci_port_speed() argument 685 ehci_port_speed(ehci,portsc) global() argument 757 ehci_readl(const struct ehci_hcd * ehci,__u32 __iomem * regs) ehci_readl() argument 781 ehci_writel(const struct ehci_hcd * ehci,const unsigned int val,__u32 __iomem * regs) ehci_writel() argument 802 set_ohci_hcfs(struct ehci_hcd * ehci,int operational) set_ohci_hcfs() argument 816 set_ohci_hcfs(struct ehci_hcd * ehci,int operational) set_ohci_hcfs() argument 833 cpu_to_hc32(const struct ehci_hcd * ehci,const u32 x) cpu_to_hc32() argument 841 hc32_to_cpu(const struct ehci_hcd * ehci,const __hc32 x) hc32_to_cpu() argument 848 hc32_to_cpup(const struct ehci_hcd * ehci,const __hc32 * x) hc32_to_cpup() argument 858 cpu_to_hc32(const struct ehci_hcd * ehci,const u32 x) cpu_to_hc32() argument 864 hc32_to_cpu(const struct ehci_hcd * ehci,const __hc32 x) hc32_to_cpu() argument 869 hc32_to_cpup(const struct ehci_hcd * ehci,const __hc32 * x) hc32_to_cpup() argument 878 ehci_dbg(ehci,fmt,args...) global() argument 880 ehci_err(ehci,fmt,args...) global() argument 882 ehci_info(ehci,fmt,args...) global() argument 884 ehci_warn(ehci,fmt,args...) global() argument [all...] |
H A D | ehci-platform.c | 3 * Generic platform ehci driver 39 #include "ehci.h" 60 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_platform_reset() local 63 ehci->has_synopsys_hc_bug = pdata->has_synopsys_hc_bug; in ehci_platform_reset() 71 ehci->caps = hcd->regs + pdata->caps_offset; in ehci_platform_reset() 77 ehci->need_io_watchdog = 0; in ehci_platform_reset() 79 if (of_device_is_compatible(pdev->dev.of_node, "brcm,xgs-iproc-ehci")) in ehci_platform_reset() 80 ehci_writel(ehci, BCM_USB_FIFO_THRESHOLD, in ehci_platform_reset() 81 &ehci->regs->brcm_insnreg[1]); in ehci_platform_reset() 133 * @ehci 142 quirk_poll_check_port_status(struct ehci_hcd * ehci) quirk_poll_check_port_status() argument 164 quirk_poll_rebind_companion(struct ehci_hcd * ehci) quirk_poll_rebind_companion() argument 185 struct ehci_hcd *ehci = container_of((void *)priv, struct ehci_hcd, quirk_poll_work() local 203 struct ehci_hcd *ehci = container_of((void *)priv, struct ehci_hcd, quirk_poll_timer() local 243 struct ehci_hcd *ehci; ehci_platform_probe() local [all...] |
H A D | ehci-ppc-of.c | 10 * Based on "ehci-ppc-soc.c" by Stefan Roese <sr@denx.de> 98 struct ehci_hcd *ehci = NULL; in ehci_hcd_ppc_of_probe() local 135 ehci = hcd_to_ehci(hcd); in ehci_hcd_ppc_of_probe() 140 ehci->ohci_hcctrl_reg = in ehci_hcd_ppc_of_probe() 146 if (!ehci->ohci_hcctrl_reg) { in ehci_hcd_ppc_of_probe() 149 ehci->has_amcc_usb23 = 1; in ehci_hcd_ppc_of_probe() 155 ehci->big_endian_mmio = 1; in ehci_hcd_ppc_of_probe() 156 ehci->big_endian_desc = 1; in ehci_hcd_ppc_of_probe() 159 ehci->big_endian_mmio = 1; in ehci_hcd_ppc_of_probe() 161 ehci in ehci_hcd_ppc_of_probe() 190 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ehci_hcd_ppc_of_remove() local [all...] |
H A D | Makefile | 41 obj-$(CONFIG_USB_EHCI_HCD) += ehci-hcd.o 42 obj-$(CONFIG_USB_EHCI_PCI) += ehci-pci.o 43 obj-$(CONFIG_USB_EHCI_HCD_PLATFORM) += ehci-platform.o 44 obj-$(CONFIG_USB_EHCI_HCD_NPCM7XX) += ehci-npcm7xx.o 45 obj-$(CONFIG_USB_EHCI_HCD_OMAP) += ehci-omap.o 46 obj-$(CONFIG_USB_EHCI_HCD_ORION) += ehci-orion.o 47 obj-$(CONFIG_USB_EHCI_HCD_SPEAR) += ehci-spear.o 48 obj-$(CONFIG_USB_EHCI_HCD_STI) += ehci-st.o 49 obj-$(CONFIG_USB_EHCI_EXYNOS) += ehci-exynos.o 50 obj-$(CONFIG_USB_EHCI_HCD_AT91) += ehci [all...] |
H A D | ehci-grlib.c | 9 * Based on ehci-ppc-of.c which is: 11 * and in turn based on "ehci-ppc-soc.c" by Stefan Roese <sr@denx.de> 76 struct ehci_hcd *ehci = NULL; in ehci_hcd_grlib_probe() local 115 ehci = hcd_to_ehci(hcd); in ehci_hcd_grlib_probe() 117 ehci->caps = hcd->regs; in ehci_hcd_grlib_probe() 120 hc_capbase = ehci_readl(ehci, &ehci->caps->hc_capbase); in ehci_hcd_grlib_probe() 121 if (HC_VERSION(ehci, hc_capbase) != GRUSBHC_HCIVERSION) { in ehci_hcd_grlib_probe() 122 ehci->big_endian_mmio = 1; in ehci_hcd_grlib_probe() 123 ehci in ehci_hcd_grlib_probe() [all...] |
H A D | ehci-mv.c | 20 #include "ehci.h" 30 /* Which mode does this ehci running OTG/Host ? */ 70 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in mv_ehci_reset() local 75 dev_err(dev, "Can not find private ehci data\n"); in mv_ehci_reset() 86 status = ehci_readl(ehci, &ehci->regs->port_status[0]); in mv_ehci_reset() 88 ehci_writel(ehci, status, &ehci->regs->port_status[0]); in mv_ehci_reset() 90 ehci_writel(ehci, status, &ehci in mv_ehci_reset() 107 struct ehci_hcd *ehci; mv_ehci_probe() local [all...] |
H A D | ehci-xilinx-of.c | 9 * Based on "ehci-ppc-of.c" by Valentine Barshak <vbarshak@ru.mvista.com> 10 * and "ehci-ppc-soc.c" by Stefan Roese <sr@denx.de> 122 struct ehci_hcd *ehci; in ehci_hcd_xilinx_of_probe() local 159 ehci = hcd_to_ehci(hcd); in ehci_hcd_xilinx_of_probe() 164 ehci->big_endian_mmio = 1; in ehci_hcd_xilinx_of_probe() 165 ehci->big_endian_desc = 1; in ehci_hcd_xilinx_of_probe() 171 ehci_dbg(ehci, "USB host controller supports FS devices\n"); in ehci_hcd_xilinx_of_probe() 174 ehci_dbg(ehci, in ehci_hcd_xilinx_of_probe() 181 ehci->caps = hcd->regs + 0x100; in ehci_hcd_xilinx_of_probe() 226 .name = "xilinx-of-ehci", [all...] |
H A D | ehci-ps3.c | 12 static void ps3_ehci_setup_insnreg(struct ehci_hcd *ehci) in ps3_ehci_setup_insnreg() argument 31 writel_be(0x01000020, (void __iomem *)ehci->regs + in ps3_ehci_setup_insnreg() 36 writel_be(0x00000001, (void __iomem *)ehci->regs + in ps3_ehci_setup_insnreg() 43 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ps3_ehci_hc_reset() local 45 ehci->big_endian_mmio = 1; in ps3_ehci_hc_reset() 46 ehci->caps = hcd->regs; in ps3_ehci_hc_reset() 52 ps3_ehci_setup_insnreg(ehci); in ps3_ehci_hc_reset() 248 .core.name = "ps3-ehci-driver",
|
/linux/drivers/usb/chipidea/ |
H A D | host.c | 19 #include "../host/ehci.h" 40 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_ci_portpower() local 41 struct ehci_ci_priv *priv = (struct ehci_ci_priv *)ehci->priv; in ehci_ci_portpower() 45 int port = HCS_N_PORTS(ehci->hcs_params); in ehci_ci_portpower() 88 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_ci_reset() local 95 ehci->need_io_watchdog = 0; in ehci_ci_reset() 123 struct ehci_hcd *ehci; in host_start() local 149 ehci = hcd_to_ehci(hcd); in host_start() 150 ehci->caps = ci->hw_bank.cap; in host_start() 151 ehci in host_start() 250 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ci_ehci_hub_control() local 338 struct ehci_hcd *ehci = hcd_to_ehci(hcd); ci_ehci_bus_suspend() local [all...] |
H A D | ci_hdrc_tegra.c | 22 #include "../host/ehci.h" 77 .compatible = "nvidia,tegra20-ehci", 80 .compatible = "nvidia,tegra30-ehci", 108 dev_err(dev, "can't get ehci reset: %pe\n", rst); in tegra_usb_reset_controller() 156 struct ehci_hcd *ehci; in tegra_usb_notify_event() local 161 ehci = hcd_to_ehci(ci->hcd); in tegra_usb_notify_event() 162 ehci->has_tdi_phy_lpm = false; in tegra_usb_notify_event() 163 ehci_writel(ehci, usb->soc->txfifothresh << 16, in tegra_usb_notify_event() 164 &ehci->regs->txfill_tuning); in tegra_usb_notify_event() 172 static int tegra_usb_internal_port_reset(struct ehci_hcd *ehci, in tegra_usb_internal_port_reset() argument 240 struct ehci_hcd *ehci = hcd_to_ehci(ci->hcd); tegra_ehci_hub_control() local [all...] |
/linux/Documentation/devicetree/bindings/mfd/ |
H A D | omap-usb-host.txt | 18 "ehci-phy", 19 "ehci-tll", 20 "ehci-hsic", 67 See Documentation/devicetree/bindings/usb/generic-ehci.yaml and 87 usbhsehci: ehci@4a064c00 { 88 compatible = "ti,ehci-omap"; 96 port1-mode = "ehci-phy"; 97 port2-mode = "ehci-tll"; 98 port3-mode = "ehci-phy";
|
/linux/include/linux/usb/ |
H A D | ehci_def.h | 9 #include <linux/usb/ehci-dbgp.h> 22 #define HC_LENGTH(ehci, p) (0x00ff&((p) >> /* bits 7:0 / offset 00h */ \ argument 23 (ehci_big_endian_capbase(ehci) ? 24 : 0))) 24 #define HC_VERSION(ehci, p) (0xffff&((p) >> /* bits 31:16 / offset 02h */ \ argument 25 (ehci_big_endian_capbase(ehci) ? 0 : 16)))
|
/linux/Documentation/devicetree/bindings/mips/cavium/ |
H A D | uctl.txt | 34 ehci@16f0000000000 { 35 compatible = "cavium,octeon-6335-ehci","usb-ehci";
|
/linux/Documentation/devicetree/bindings/usb/ |
H A D | nvidia,tegra20-ehci.txt | 9 - compatible : For Tegra20, must contain "nvidia,tegra20-ehci". 10 For Tegra30, must contain "nvidia,tegra30-ehci". Otherwise, must contain 11 "nvidia,<chip>-ehci" plus at least one of the above, where <chip> is
|
H A D | atmel-usb.txt | 33 - compatible: Should be "atmel,at91sam9g45-ehci" for USB controllers 36 - interrupts: Should contain ehci interrupt 46 usb1: ehci@800000 { 47 compatible = "atmel,at91sam9g45-ehci", "usb-ehci";
|