Searched refs:ehci (Results 1 - 25 of 68) sorted by relevance

123

/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/usb/early/
H A DMakefile5 obj-$(CONFIG_EARLY_PRINTK_DBGP) += ehci-dbgp.o
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/usb/early/
H A DMakefile5 obj-$(CONFIG_EARLY_PRINTK_DBGP) += ehci-dbgp.o
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/usb/host/
H A Dehci-lpm.c0 /* ehci-lpm.c EHCI HCD LPM support code
19 /* this file is part of ehci-hcd.c */
20 static int ehci_lpm_set_da(struct ehci_hcd *ehci, int dev_addr, int port_num) argument
24 ehci_dbg(ehci, "set dev address %d for port %d\n", dev_addr, port_num);
25 if (port_num > HCS_N_PORTS(ehci->hcs_params)) {
26 ehci_dbg(ehci, "invalid port number %d\n", port_num);
29 portsc = ehci_readl(ehci, &ehci->regs->port_status[port_num-1]);
32 ehci_writel(ehci, portsc, &ehci
40 ehci_lpm_check(struct ehci_hcd *ehci, int port) argument
[all...]
H A Dehci-hcd.c122 #include "ehci.h"
123 #include "ehci-dbg.c"
128 timer_action(struct ehci_hcd *ehci, enum ehci_timer_action action) argument
134 if (timer_pending(&ehci->watchdog)
136 & ehci->actions))
139 if (!test_and_set_bit(action, &ehci->actions)) {
144 if (!ehci->need_io_watchdog)
159 mod_timer(&ehci->watchdog, t + jiffies);
182 static int handshake (struct ehci_hcd *ehci, void __iomem *ptr, argument
188 result = ehci_readl(ehci, pt
201 ehci_halt(struct ehci_hcd *ehci) argument
218 handshake_on_error_set_halt(struct ehci_hcd *ehci, void __iomem *ptr, u32 mask, u32 done, int usec) argument
235 tdi_reset(struct ehci_hcd *ehci) argument
262 ehci_reset(struct ehci_hcd *ehci) argument
299 ehci_quiesce(struct ehci_hcd *ehci) argument
340 struct ehci_hcd *ehci = (struct ehci_hcd *) param; local
388 struct ehci_hcd *ehci = (struct ehci_hcd *) param; local
407 ehci_turn_off_all_ports(struct ehci_hcd *ehci) argument
420 ehci_silence_controller(struct ehci_hcd *ehci) argument
438 struct ehci_hcd *ehci = hcd_to_ehci(hcd); local
448 ehci_port_power(struct ehci_hcd *ehci, int is_on) argument
472 ehci_work(struct ehci_hcd *ehci) argument
503 struct ehci_hcd *ehci = hcd_to_ehci (hcd); local
549 struct ehci_hcd *ehci = hcd_to_ehci(hcd); local
668 struct ehci_hcd *ehci = hcd_to_ehci (hcd); local
754 struct ehci_hcd *ehci = hcd_to_ehci (hcd); local
897 struct ehci_hcd *ehci = hcd_to_ehci (hcd); local
929 unlink_async(struct ehci_hcd *ehci, struct ehci_qh *qh) argument
967 struct ehci_hcd *ehci = hcd_to_ehci (hcd); local
1038 struct ehci_hcd *ehci = hcd_to_ehci (hcd); local
1106 struct ehci_hcd *ehci = hcd_to_ehci(hcd); local
1146 struct ehci_hcd *ehci = hcd_to_ehci (hcd); local
[all...]
H A Dehci-mem.c19 /* this file is part of ehci-hcd.c */
38 static inline void ehci_qtd_init(struct ehci_hcd *ehci, struct ehci_qtd *qtd, argument
44 qtd->hw_next = EHCI_LIST_END(ehci);
45 qtd->hw_alt_next = EHCI_LIST_END(ehci);
49 static struct ehci_qtd *ehci_qtd_alloc (struct ehci_hcd *ehci, gfp_t flags) argument
54 qtd = dma_pool_alloc (ehci->qtd_pool, flags, &dma);
56 ehci_qtd_init(ehci, qtd, dma);
61 static inline void ehci_qtd_free (struct ehci_hcd *ehci, struct ehci_qtd *qtd) argument
63 dma_pool_free (ehci->qtd_pool, qtd, qtd->qtd_dma);
69 struct ehci_hcd *ehci local
82 ehci_qh_alloc(struct ehci_hcd *ehci, gfp_t flags) argument
137 ehci_mem_cleanup(struct ehci_hcd *ehci) argument
174 ehci_mem_init(struct ehci_hcd *ehci, gfp_t flags) argument
[all...]
H A Dehci-hub.c19 /* this file is part of ehci-hcd.c */
47 static void ehci_handover_companion_ports(struct ehci_hcd *ehci) argument
53 struct usb_hcd *hcd = ehci_to_hcd(ehci);
55 if (!ehci->owned_ports)
61 port = HCS_N_PORTS(ehci->hcs_params);
63 if (test_bit(port, &ehci->owned_ports)) {
64 reg = &ehci->regs->port_status[port];
65 status = ehci_readl(ehci, reg) & ~PORT_RWC_BITS;
69 clear_bit(port, &ehci->owned_ports);
70 else if (test_bit(port, &ehci
109 ehci_adjust_port_wakeup_flags(struct ehci_hcd *ehci, bool suspending, bool do_wakeup) argument
184 struct ehci_hcd *ehci = hcd_to_ehci (hcd); local
320 struct ehci_hcd *ehci = hcd_to_ehci (hcd); local
457 struct ehci_hcd *ehci; local
478 set_owner(struct ehci_hcd *ehci, int portnum, int new_owner) argument
518 struct ehci_hcd *ehci; local
541 create_companion_file(struct ehci_hcd *ehci) argument
551 remove_companion_file(struct ehci_hcd *ehci) argument
562 check_reset_complete( struct ehci_hcd *ehci, int index, u32 __iomem *status_reg, int port_status ) argument
611 struct ehci_hcd *ehci = hcd_to_ehci (hcd); local
681 ehci_hub_descriptor( struct ehci_hcd *ehci, struct usb_hub_descriptor *desc ) argument
718 struct ehci_hcd *ehci = hcd_to_ehci (hcd); local
1104 struct ehci_hcd *ehci = hcd_to_ehci(hcd); local
1113 struct ehci_hcd *ehci = hcd_to_ehci(hcd); local
[all...]
H A Dehci-pci.c28 static int ehci_pci_reinit(struct ehci_hcd *ehci, struct pci_dev *pdev) argument
39 ehci_dbg(ehci, "MWI active\n");
44 static int ehci_quirk_amd_hudson(struct ehci_hcd *ehci) argument
72 ehci_info(ehci, "QUIRK: Enable exception for AMD Hudson ASPM\n");
83 struct ehci_hcd *ehci = hcd_to_ehci(hcd); local
95 ehci->big_endian_mmio = 1;
97 ehci_warn(ehci,
104 ehci->caps = hcd->regs;
105 ehci->regs = hcd->regs +
106 HC_LENGTH(ehci_readl(ehci,
339 struct ehci_hcd *ehci = hcd_to_ehci(hcd); local
366 struct ehci_hcd *ehci = hcd_to_ehci(hcd); local
423 struct ehci_hcd *ehci = hcd_to_ehci(hcd); local
[all...]
H A Dehci-mips.c6 * Based on "ehci-au1xxx.c" by K.Boge <karsten.boge@amd.com>
73 struct ehci_hcd *ehci; local
105 ehci = hcd_to_ehci(hcd);
106 ehci->caps = hcd->regs + 0x100;
107 ehci->regs = hcd->regs + 0x100 + HC_LENGTH(readl(&ehci->caps->hc_capbase));
109 ehci->hcs_params = readl(&ehci->caps->hcs_params);
113 ehci->big_endian_desc = 1;
116 ehci
157 struct ehci_hcd *ehci = hcd_to_ehci(hcd); local
206 struct ehci_hcd *ehci = hcd_to_ehci(hcd); local
[all...]
H A Dehci-au1xxx.c74 struct ehci_hcd *ehci = hcd_to_ehci(hcd); local
77 ehci->need_io_watchdog = 0;
126 struct ehci_hcd *ehci; local
170 ehci = hcd_to_ehci(hcd);
171 ehci->caps = hcd->regs;
172 ehci->regs = hcd->regs + HC_LENGTH(readl(&ehci->caps->hc_capbase));
174 ehci->hcs_params = readl(&ehci->caps->hcs_params);
210 struct ehci_hcd *ehci local
243 struct ehci_hcd *ehci = hcd_to_ehci(hcd); local
[all...]
H A Dehci-q.c19 /* this file is part of ehci-hcd.c */
33 * an ongoing challenge. That's in "ehci-sched.c".
46 qtd_fill(struct ehci_hcd *ehci, struct ehci_qtd *qtd, dma_addr_t buf, argument
53 qtd->hw_buf[0] = cpu_to_hc32(ehci, (u32)addr);
54 qtd->hw_buf_hi[0] = cpu_to_hc32(ehci, (u32)(addr >> 32));
65 qtd->hw_buf[i] = cpu_to_hc32(ehci, (u32)addr);
66 qtd->hw_buf_hi[i] = cpu_to_hc32(ehci,
79 qtd->hw_token = cpu_to_hc32(ehci, (count << 16) | token);
88 qh_update (struct ehci_hcd *ehci, struct ehci_qh *qh, struct ehci_qtd *qtd) argument
95 hw->hw_qtd_next = QTD_NEXT(ehci, qt
124 qh_refresh(struct ehci_hcd *ehci, struct ehci_qh *qh) argument
149 struct ehci_hcd *ehci = hcd_to_ehci(hcd); local
161 ehci_clear_tt_buffer(struct ehci_hcd *ehci, struct ehci_qh *qh, struct urb *urb, u32 token) argument
193 qtd_copy_status( struct ehci_hcd *ehci, struct urb *urb, size_t length, u32 token ) argument
309 qh_completions(struct ehci_hcd *ehci, struct ehci_qh *qh) argument
590 qtd_list_free( struct ehci_hcd *ehci, struct urb *urb, struct list_head *qtd_list ) argument
610 qh_urb_transaction( struct ehci_hcd *ehci, struct urb *urb, struct list_head *head, gfp_t flags ) argument
794 qh_make( struct ehci_hcd *ehci, struct urb *urb, gfp_t flags ) argument
967 qh_link_async(struct ehci_hcd *ehci, struct ehci_qh *qh) argument
1020 qh_append_tds( struct ehci_hcd *ehci, struct urb *urb, struct list_head *qtd_list, int epnum, void **ptr ) argument
1102 submit_async( struct ehci_hcd *ehci, struct urb *urb, struct list_head *qtd_list, gfp_t mem_flags ) argument
1158 end_unlink_async(struct ehci_hcd *ehci) argument
1199 start_unlink_async(struct ehci_hcd *ehci, struct ehci_qh *qh) argument
1256 scan_async(struct ehci_hcd *ehci) argument
[all...]
H A Dehci-sched.c20 /* this file is part of ehci-hcd.c */
47 periodic_next_shadow(struct ehci_hcd *ehci, union ehci_shadow *periodic, argument
50 switch (hc32_to_cpu(ehci, tag)) {
64 shadow_next_periodic(struct ehci_hcd *ehci, union ehci_shadow *periodic, argument
67 switch (hc32_to_cpu(ehci, tag)) {
77 /* caller must hold ehci->lock */
78 static void periodic_unlink (struct ehci_hcd *ehci, unsigned frame, void *ptr) argument
80 union ehci_shadow *prev_p = &ehci->pshadow[frame];
81 __hc32 *hw_p = &ehci->periodic[frame];
86 prev_p = periodic_next_shadow(ehci, prev_
106 periodic_usecs(struct ehci_hcd *ehci, unsigned frame, unsigned uframe) argument
199 tt_start_uframe(struct ehci_hcd *ehci, __hc32 mask) argument
236 periodic_tt_usecs( struct ehci_hcd *ehci, struct usb_device *dev, unsigned frame, unsigned short tt_usecs[8] ) argument
308 tt_available( struct ehci_hcd *ehci, unsigned period, struct usb_device *dev, unsigned frame, unsigned uframe, u16 usecs ) argument
377 tt_no_collision( struct ehci_hcd *ehci, unsigned period, struct usb_device *dev, unsigned frame, u32 uf_mask ) argument
453 enable_periodic(struct ehci_hcd *ehci) argument
482 disable_periodic(struct ehci_hcd *ehci) argument
526 qh_link_periodic(struct ehci_hcd *ehci, struct ehci_qh *qh) argument
590 qh_unlink_periodic(struct ehci_hcd *ehci, struct ehci_qh *qh) argument
628 intr_deschedule(struct ehci_hcd *ehci, struct ehci_qh *qh) argument
678 check_period( struct ehci_hcd *ehci, unsigned frame, unsigned uframe, unsigned period, unsigned usecs ) argument
724 check_intr_schedule( struct ehci_hcd *ehci, unsigned frame, unsigned uframe, const struct ehci_qh *qh, __hc32 *c_maskp ) argument
792 qh_schedule(struct ehci_hcd *ehci, struct ehci_qh *qh) argument
858 intr_submit( struct ehci_hcd *ehci, struct urb *urb, struct list_head *qtd_list, gfp_t mem_flags ) argument
933 iso_stream_init( struct ehci_hcd *ehci, struct ehci_iso_stream *stream, struct usb_device *dev, int pipe, unsigned interval ) argument
1028 iso_stream_put(struct ehci_hcd *ehci, struct ehci_iso_stream *stream) argument
1082 iso_stream_find(struct ehci_hcd *ehci, struct urb *urb) argument
1142 itd_sched_init( struct ehci_hcd *ehci, struct ehci_iso_sched *iso_sched, struct ehci_iso_stream *stream, struct urb *urb ) argument
1197 itd_urb_transaction( struct ehci_iso_stream *stream, struct ehci_hcd *ehci, struct urb *urb, gfp_t mem_flags ) argument
1263 itd_slot_ok( struct ehci_hcd *ehci, u32 mod, u32 uframe, u8 usecs, u32 period ) argument
1285 sitd_slot_ok( struct ehci_hcd *ehci, u32 mod, struct ehci_iso_stream *stream, u32 uframe, struct ehci_iso_sched *sched, u32 period_uframes ) argument
1375 iso_stream_schedule( struct ehci_hcd *ehci, struct urb *urb, struct ehci_iso_stream *stream ) argument
1498 itd_init(struct ehci_hcd *ehci, struct ehci_iso_stream *stream, struct ehci_itd *itd) argument
1516 itd_patch( struct ehci_hcd *ehci, struct ehci_itd *itd, struct ehci_iso_sched *iso_sched, unsigned index, u16 uframe ) argument
1548 itd_link(struct ehci_hcd *ehci, unsigned frame, struct ehci_itd *itd) argument
1582 ehci_quirk_amd_L1(struct ehci_hcd *ehci, int disable) argument
1632 itd_link_urb( struct ehci_hcd *ehci, struct urb *urb, unsigned mod, struct ehci_iso_stream *stream ) argument
1719 itd_complete( struct ehci_hcd *ehci, struct ehci_itd *itd ) argument
1826 itd_submit(struct ehci_hcd *ehci, struct urb *urb, gfp_t mem_flags) argument
1894 sitd_sched_init( struct ehci_hcd *ehci, struct ehci_iso_sched *iso_sched, struct ehci_iso_stream *stream, struct urb *urb ) argument
1943 sitd_urb_transaction( struct ehci_iso_stream *stream, struct ehci_hcd *ehci, struct urb *urb, gfp_t mem_flags ) argument
2009 sitd_patch( struct ehci_hcd *ehci, struct ehci_iso_stream *stream, struct ehci_sitd *sitd, struct ehci_iso_sched *iso_sched, unsigned index ) argument
2038 sitd_link(struct ehci_hcd *ehci, unsigned frame, struct ehci_sitd *sitd) argument
2051 sitd_link_urb( struct ehci_hcd *ehci, struct urb *urb, unsigned mod, struct ehci_iso_stream *stream ) argument
2132 sitd_complete( struct ehci_hcd *ehci, struct ehci_sitd *sitd ) argument
2221 sitd_submit(struct ehci_hcd *ehci, struct urb *urb, gfp_t mem_flags) argument
2281 free_cached_lists(struct ehci_hcd *ehci) argument
2304 scan_periodic(struct ehci_hcd *ehci) argument
[all...]
H A Dehci-dbg.c19 /* this file is part of ehci-hcd.c */
21 #define ehci_dbg(ehci, fmt, args...) \
22 dev_dbg (ehci_to_hcd(ehci)->self.controller , fmt , ## args )
23 #define ehci_err(ehci, fmt, args...) \
24 dev_err (ehci_to_hcd(ehci)->self.controller , fmt , ## args )
25 #define ehci_info(ehci, fmt, args...) \
26 dev_info (ehci_to_hcd(ehci)->self.controller , fmt , ## args )
27 #define ehci_warn(ehci, fmt, args...) \
28 dev_warn (ehci_to_hcd(ehci)->self.controller , fmt , ## args )
35 # define ehci_vdbg(ehci, fm
44 dbg_hcs_params(struct ehci_hcd *ehci, char *label) argument
77 dbg_hcs_params(struct ehci_hcd *ehci, char *label) argument
87 dbg_hcc_params(struct ehci_hcd *ehci, char *label) argument
116 dbg_hcc_params(struct ehci_hcd *ehci, char *label) argument
123 dbg_qtd(const char *label, struct ehci_hcd *ehci, struct ehci_qtd *qtd) argument
139 dbg_qh(const char *label, struct ehci_hcd *ehci, struct ehci_qh *qh) argument
149 dbg_itd(const char *label, struct ehci_hcd *ehci, struct ehci_itd *itd) argument
180 dbg_sitd(const char *label, struct ehci_hcd *ehci, struct ehci_sitd *sitd) argument
301 dbg_qh(char *label, struct ehci_hcd *ehci, struct ehci_qh *qh) argument
411 token_mark(struct ehci_hcd *ehci, __hc32 token) argument
425 qh_lines( struct ehci_hcd *ehci, struct ehci_qh *qh, char **nextp, unsigned *sizep ) argument
519 struct ehci_hcd *ehci; local
556 struct ehci_hcd *ehci; local
700 struct ehci_hcd *ehci; local
978 struct ehci_hcd *ehci; local
1044 create_debug_files(struct ehci_hcd *ehci) argument
1074 remove_debug_files(struct ehci_hcd *ehci) argument
[all...]
H A Dehci.h168 static inline struct usb_hcd *ehci_to_hcd (struct ehci_hcd *ehci) argument
170 return container_of ((void *) ehci, struct usb_hcd, hcd_priv);
175 iaa_watchdog_start(struct ehci_hcd *ehci) argument
177 WARN_ON(timer_pending(&ehci->iaa_watchdog));
178 mod_timer(&ehci->iaa_watchdog,
182 static inline void iaa_watchdog_done(struct ehci_hcd *ehci) argument
184 del_timer(&ehci->iaa_watchdog);
194 timer_action_done (struct ehci_hcd *ehci, enum ehci_timer_action action) argument
196 clear_bit (action, &ehci->actions);
199 static void free_cached_lists(struct ehci_hcd *ehci);
336 struct ehci_hcd *ehci; member in struct:ehci_qh
559 ehci_port_speed(struct ehci_hcd *ehci, unsigned int portsc) argument
618 ehci_readl(const struct ehci_hcd *ehci, __u32 __iomem * regs) argument
630 ehci_writel(const struct ehci_hcd *ehci, const unsigned int val, __u32 __iomem *regs) argument
648 set_ohci_hcfs(struct ehci_hcd *ehci, int operational) argument
662 set_ohci_hcfs(struct ehci_hcd *ehci, int operational) argument
679 cpu_to_hc32(const struct ehci_hcd *ehci, const u32 x) argument
687 hc32_to_cpu(const struct ehci_hcd *ehci, const __hc32 x) argument
694 hc32_to_cpup(const struct ehci_hcd *ehci, const __hc32 *x) argument
704 cpu_to_hc32(const struct ehci_hcd *ehci, const u32 x) argument
710 hc32_to_cpu(const struct ehci_hcd *ehci, const __hc32 x) argument
715 hc32_to_cpup(const struct ehci_hcd *ehci, const __hc32 *x) argument
[all...]
H A Dehci-ppc-of.c9 * Based on "ehci-ppc-soc.c" by Stefan Roese <sr@denx.de>
23 struct ehci_hcd *ehci = hcd_to_ehci(hcd); local
26 retval = ehci_halt(ehci);
34 ehci->sbrn = 0x20;
35 return ehci_reset(ehci);
113 struct ehci_hcd *ehci = NULL; local
156 ehci = hcd_to_ehci(hcd);
161 ehci->ohci_hcctrl_reg = ioremap(res.start +
165 if (!ehci->ohci_hcctrl_reg) {
168 ehci
218 struct ehci_hcd *ehci = hcd_to_ehci(hcd); local
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/usb/host/
H A Dehci-lpm.c0 /* ehci-lpm.c EHCI HCD LPM support code
19 /* this file is part of ehci-hcd.c */
20 static int ehci_lpm_set_da(struct ehci_hcd *ehci, int dev_addr, int port_num) argument
24 ehci_dbg(ehci, "set dev address %d for port %d\n", dev_addr, port_num);
25 if (port_num > HCS_N_PORTS(ehci->hcs_params)) {
26 ehci_dbg(ehci, "invalid port number %d\n", port_num);
29 portsc = ehci_readl(ehci, &ehci->regs->port_status[port_num-1]);
32 ehci_writel(ehci, portsc, &ehci
40 ehci_lpm_check(struct ehci_hcd *ehci, int port) argument
[all...]
H A Dehci-hcd.c122 #include "ehci.h"
123 #include "ehci-dbg.c"
128 timer_action(struct ehci_hcd *ehci, enum ehci_timer_action action) argument
134 if (timer_pending(&ehci->watchdog)
136 & ehci->actions))
139 if (!test_and_set_bit(action, &ehci->actions)) {
144 if (!ehci->need_io_watchdog)
159 mod_timer(&ehci->watchdog, t + jiffies);
182 static int handshake (struct ehci_hcd *ehci, void __iomem *ptr, argument
188 result = ehci_readl(ehci, pt
201 ehci_halt(struct ehci_hcd *ehci) argument
218 handshake_on_error_set_halt(struct ehci_hcd *ehci, void __iomem *ptr, u32 mask, u32 done, int usec) argument
235 tdi_reset(struct ehci_hcd *ehci) argument
262 ehci_reset(struct ehci_hcd *ehci) argument
299 ehci_quiesce(struct ehci_hcd *ehci) argument
340 struct ehci_hcd *ehci = (struct ehci_hcd *) param; local
388 struct ehci_hcd *ehci = (struct ehci_hcd *) param; local
407 ehci_turn_off_all_ports(struct ehci_hcd *ehci) argument
420 ehci_silence_controller(struct ehci_hcd *ehci) argument
438 struct ehci_hcd *ehci = hcd_to_ehci(hcd); local
448 ehci_port_power(struct ehci_hcd *ehci, int is_on) argument
472 ehci_work(struct ehci_hcd *ehci) argument
503 struct ehci_hcd *ehci = hcd_to_ehci (hcd); local
549 struct ehci_hcd *ehci = hcd_to_ehci(hcd); local
668 struct ehci_hcd *ehci = hcd_to_ehci (hcd); local
754 struct ehci_hcd *ehci = hcd_to_ehci (hcd); local
897 struct ehci_hcd *ehci = hcd_to_ehci (hcd); local
929 unlink_async(struct ehci_hcd *ehci, struct ehci_qh *qh) argument
967 struct ehci_hcd *ehci = hcd_to_ehci (hcd); local
1038 struct ehci_hcd *ehci = hcd_to_ehci (hcd); local
1106 struct ehci_hcd *ehci = hcd_to_ehci(hcd); local
1146 struct ehci_hcd *ehci = hcd_to_ehci (hcd); local
[all...]
H A Dehci-mem.c19 /* this file is part of ehci-hcd.c */
38 static inline void ehci_qtd_init(struct ehci_hcd *ehci, struct ehci_qtd *qtd, argument
44 qtd->hw_next = EHCI_LIST_END(ehci);
45 qtd->hw_alt_next = EHCI_LIST_END(ehci);
49 static struct ehci_qtd *ehci_qtd_alloc (struct ehci_hcd *ehci, gfp_t flags) argument
54 qtd = dma_pool_alloc (ehci->qtd_pool, flags, &dma);
56 ehci_qtd_init(ehci, qtd, dma);
61 static inline void ehci_qtd_free (struct ehci_hcd *ehci, struct ehci_qtd *qtd) argument
63 dma_pool_free (ehci->qtd_pool, qtd, qtd->qtd_dma);
69 struct ehci_hcd *ehci local
82 ehci_qh_alloc(struct ehci_hcd *ehci, gfp_t flags) argument
137 ehci_mem_cleanup(struct ehci_hcd *ehci) argument
174 ehci_mem_init(struct ehci_hcd *ehci, gfp_t flags) argument
[all...]
H A Dehci-hub.c19 /* this file is part of ehci-hcd.c */
47 static void ehci_handover_companion_ports(struct ehci_hcd *ehci) argument
53 struct usb_hcd *hcd = ehci_to_hcd(ehci);
55 if (!ehci->owned_ports)
61 port = HCS_N_PORTS(ehci->hcs_params);
63 if (test_bit(port, &ehci->owned_ports)) {
64 reg = &ehci->regs->port_status[port];
65 status = ehci_readl(ehci, reg) & ~PORT_RWC_BITS;
69 clear_bit(port, &ehci->owned_ports);
70 else if (test_bit(port, &ehci
109 ehci_adjust_port_wakeup_flags(struct ehci_hcd *ehci, bool suspending, bool do_wakeup) argument
184 struct ehci_hcd *ehci = hcd_to_ehci (hcd); local
320 struct ehci_hcd *ehci = hcd_to_ehci (hcd); local
457 struct ehci_hcd *ehci; local
478 set_owner(struct ehci_hcd *ehci, int portnum, int new_owner) argument
518 struct ehci_hcd *ehci; local
541 create_companion_file(struct ehci_hcd *ehci) argument
551 remove_companion_file(struct ehci_hcd *ehci) argument
562 check_reset_complete( struct ehci_hcd *ehci, int index, u32 __iomem *status_reg, int port_status ) argument
611 struct ehci_hcd *ehci = hcd_to_ehci (hcd); local
681 ehci_hub_descriptor( struct ehci_hcd *ehci, struct usb_hub_descriptor *desc ) argument
718 struct ehci_hcd *ehci = hcd_to_ehci (hcd); local
1104 struct ehci_hcd *ehci = hcd_to_ehci(hcd); local
1113 struct ehci_hcd *ehci = hcd_to_ehci(hcd); local
[all...]
H A Dehci-pci.c28 static int ehci_pci_reinit(struct ehci_hcd *ehci, struct pci_dev *pdev) argument
39 ehci_dbg(ehci, "MWI active\n");
44 static int ehci_quirk_amd_hudson(struct ehci_hcd *ehci) argument
72 ehci_info(ehci, "QUIRK: Enable exception for AMD Hudson ASPM\n");
83 struct ehci_hcd *ehci = hcd_to_ehci(hcd); local
95 ehci->big_endian_mmio = 1;
97 ehci_warn(ehci,
104 ehci->caps = hcd->regs;
105 ehci->regs = hcd->regs +
106 HC_LENGTH(ehci_readl(ehci,
339 struct ehci_hcd *ehci = hcd_to_ehci(hcd); local
366 struct ehci_hcd *ehci = hcd_to_ehci(hcd); local
423 struct ehci_hcd *ehci = hcd_to_ehci(hcd); local
[all...]
H A Dehci-mips.c6 * Based on "ehci-au1xxx.c" by K.Boge <karsten.boge@amd.com>
73 struct ehci_hcd *ehci; local
105 ehci = hcd_to_ehci(hcd);
106 ehci->caps = hcd->regs + 0x100;
107 ehci->regs = hcd->regs + 0x100 + HC_LENGTH(readl(&ehci->caps->hc_capbase));
109 ehci->hcs_params = readl(&ehci->caps->hcs_params);
113 ehci->big_endian_desc = 1;
116 ehci
157 struct ehci_hcd *ehci = hcd_to_ehci(hcd); local
206 struct ehci_hcd *ehci = hcd_to_ehci(hcd); local
[all...]
H A Dehci-au1xxx.c74 struct ehci_hcd *ehci = hcd_to_ehci(hcd); local
77 ehci->need_io_watchdog = 0;
126 struct ehci_hcd *ehci; local
170 ehci = hcd_to_ehci(hcd);
171 ehci->caps = hcd->regs;
172 ehci->regs = hcd->regs + HC_LENGTH(readl(&ehci->caps->hc_capbase));
174 ehci->hcs_params = readl(&ehci->caps->hcs_params);
210 struct ehci_hcd *ehci local
243 struct ehci_hcd *ehci = hcd_to_ehci(hcd); local
[all...]
H A Dehci-q.c19 /* this file is part of ehci-hcd.c */
33 * an ongoing challenge. That's in "ehci-sched.c".
46 qtd_fill(struct ehci_hcd *ehci, struct ehci_qtd *qtd, dma_addr_t buf, argument
53 qtd->hw_buf[0] = cpu_to_hc32(ehci, (u32)addr);
54 qtd->hw_buf_hi[0] = cpu_to_hc32(ehci, (u32)(addr >> 32));
65 qtd->hw_buf[i] = cpu_to_hc32(ehci, (u32)addr);
66 qtd->hw_buf_hi[i] = cpu_to_hc32(ehci,
79 qtd->hw_token = cpu_to_hc32(ehci, (count << 16) | token);
88 qh_update (struct ehci_hcd *ehci, struct ehci_qh *qh, struct ehci_qtd *qtd) argument
95 hw->hw_qtd_next = QTD_NEXT(ehci, qt
124 qh_refresh(struct ehci_hcd *ehci, struct ehci_qh *qh) argument
149 struct ehci_hcd *ehci = hcd_to_ehci(hcd); local
161 ehci_clear_tt_buffer(struct ehci_hcd *ehci, struct ehci_qh *qh, struct urb *urb, u32 token) argument
193 qtd_copy_status( struct ehci_hcd *ehci, struct urb *urb, size_t length, u32 token ) argument
309 qh_completions(struct ehci_hcd *ehci, struct ehci_qh *qh) argument
590 qtd_list_free( struct ehci_hcd *ehci, struct urb *urb, struct list_head *qtd_list ) argument
610 qh_urb_transaction( struct ehci_hcd *ehci, struct urb *urb, struct list_head *head, gfp_t flags ) argument
794 qh_make( struct ehci_hcd *ehci, struct urb *urb, gfp_t flags ) argument
967 qh_link_async(struct ehci_hcd *ehci, struct ehci_qh *qh) argument
1020 qh_append_tds( struct ehci_hcd *ehci, struct urb *urb, struct list_head *qtd_list, int epnum, void **ptr ) argument
1102 submit_async( struct ehci_hcd *ehci, struct urb *urb, struct list_head *qtd_list, gfp_t mem_flags ) argument
1158 end_unlink_async(struct ehci_hcd *ehci) argument
1199 start_unlink_async(struct ehci_hcd *ehci, struct ehci_qh *qh) argument
1256 scan_async(struct ehci_hcd *ehci) argument
[all...]
H A Dehci-sched.c20 /* this file is part of ehci-hcd.c */
47 periodic_next_shadow(struct ehci_hcd *ehci, union ehci_shadow *periodic, argument
50 switch (hc32_to_cpu(ehci, tag)) {
64 shadow_next_periodic(struct ehci_hcd *ehci, union ehci_shadow *periodic, argument
67 switch (hc32_to_cpu(ehci, tag)) {
77 /* caller must hold ehci->lock */
78 static void periodic_unlink (struct ehci_hcd *ehci, unsigned frame, void *ptr) argument
80 union ehci_shadow *prev_p = &ehci->pshadow[frame];
81 __hc32 *hw_p = &ehci->periodic[frame];
86 prev_p = periodic_next_shadow(ehci, prev_
106 periodic_usecs(struct ehci_hcd *ehci, unsigned frame, unsigned uframe) argument
199 tt_start_uframe(struct ehci_hcd *ehci, __hc32 mask) argument
236 periodic_tt_usecs( struct ehci_hcd *ehci, struct usb_device *dev, unsigned frame, unsigned short tt_usecs[8] ) argument
308 tt_available( struct ehci_hcd *ehci, unsigned period, struct usb_device *dev, unsigned frame, unsigned uframe, u16 usecs ) argument
377 tt_no_collision( struct ehci_hcd *ehci, unsigned period, struct usb_device *dev, unsigned frame, u32 uf_mask ) argument
453 enable_periodic(struct ehci_hcd *ehci) argument
482 disable_periodic(struct ehci_hcd *ehci) argument
526 qh_link_periodic(struct ehci_hcd *ehci, struct ehci_qh *qh) argument
590 qh_unlink_periodic(struct ehci_hcd *ehci, struct ehci_qh *qh) argument
628 intr_deschedule(struct ehci_hcd *ehci, struct ehci_qh *qh) argument
678 check_period( struct ehci_hcd *ehci, unsigned frame, unsigned uframe, unsigned period, unsigned usecs ) argument
724 check_intr_schedule( struct ehci_hcd *ehci, unsigned frame, unsigned uframe, const struct ehci_qh *qh, __hc32 *c_maskp ) argument
792 qh_schedule(struct ehci_hcd *ehci, struct ehci_qh *qh) argument
858 intr_submit( struct ehci_hcd *ehci, struct urb *urb, struct list_head *qtd_list, gfp_t mem_flags ) argument
933 iso_stream_init( struct ehci_hcd *ehci, struct ehci_iso_stream *stream, struct usb_device *dev, int pipe, unsigned interval ) argument
1028 iso_stream_put(struct ehci_hcd *ehci, struct ehci_iso_stream *stream) argument
1082 iso_stream_find(struct ehci_hcd *ehci, struct urb *urb) argument
1142 itd_sched_init( struct ehci_hcd *ehci, struct ehci_iso_sched *iso_sched, struct ehci_iso_stream *stream, struct urb *urb ) argument
1197 itd_urb_transaction( struct ehci_iso_stream *stream, struct ehci_hcd *ehci, struct urb *urb, gfp_t mem_flags ) argument
1263 itd_slot_ok( struct ehci_hcd *ehci, u32 mod, u32 uframe, u8 usecs, u32 period ) argument
1285 sitd_slot_ok( struct ehci_hcd *ehci, u32 mod, struct ehci_iso_stream *stream, u32 uframe, struct ehci_iso_sched *sched, u32 period_uframes ) argument
1375 iso_stream_schedule( struct ehci_hcd *ehci, struct urb *urb, struct ehci_iso_stream *stream ) argument
1498 itd_init(struct ehci_hcd *ehci, struct ehci_iso_stream *stream, struct ehci_itd *itd) argument
1516 itd_patch( struct ehci_hcd *ehci, struct ehci_itd *itd, struct ehci_iso_sched *iso_sched, unsigned index, u16 uframe ) argument
1548 itd_link(struct ehci_hcd *ehci, unsigned frame, struct ehci_itd *itd) argument
1582 ehci_quirk_amd_L1(struct ehci_hcd *ehci, int disable) argument
1632 itd_link_urb( struct ehci_hcd *ehci, struct urb *urb, unsigned mod, struct ehci_iso_stream *stream ) argument
1719 itd_complete( struct ehci_hcd *ehci, struct ehci_itd *itd ) argument
1826 itd_submit(struct ehci_hcd *ehci, struct urb *urb, gfp_t mem_flags) argument
1894 sitd_sched_init( struct ehci_hcd *ehci, struct ehci_iso_sched *iso_sched, struct ehci_iso_stream *stream, struct urb *urb ) argument
1943 sitd_urb_transaction( struct ehci_iso_stream *stream, struct ehci_hcd *ehci, struct urb *urb, gfp_t mem_flags ) argument
2009 sitd_patch( struct ehci_hcd *ehci, struct ehci_iso_stream *stream, struct ehci_sitd *sitd, struct ehci_iso_sched *iso_sched, unsigned index ) argument
2038 sitd_link(struct ehci_hcd *ehci, unsigned frame, struct ehci_sitd *sitd) argument
2051 sitd_link_urb( struct ehci_hcd *ehci, struct urb *urb, unsigned mod, struct ehci_iso_stream *stream ) argument
2132 sitd_complete( struct ehci_hcd *ehci, struct ehci_sitd *sitd ) argument
2221 sitd_submit(struct ehci_hcd *ehci, struct urb *urb, gfp_t mem_flags) argument
2281 free_cached_lists(struct ehci_hcd *ehci) argument
2304 scan_periodic(struct ehci_hcd *ehci) argument
[all...]
H A Dehci-dbg.c19 /* this file is part of ehci-hcd.c */
21 #define ehci_dbg(ehci, fmt, args...) \
22 dev_dbg (ehci_to_hcd(ehci)->self.controller , fmt , ## args )
23 #define ehci_err(ehci, fmt, args...) \
24 dev_err (ehci_to_hcd(ehci)->self.controller , fmt , ## args )
25 #define ehci_info(ehci, fmt, args...) \
26 dev_info (ehci_to_hcd(ehci)->self.controller , fmt , ## args )
27 #define ehci_warn(ehci, fmt, args...) \
28 dev_warn (ehci_to_hcd(ehci)->self.controller , fmt , ## args )
35 # define ehci_vdbg(ehci, fm
44 dbg_hcs_params(struct ehci_hcd *ehci, char *label) argument
77 dbg_hcs_params(struct ehci_hcd *ehci, char *label) argument
87 dbg_hcc_params(struct ehci_hcd *ehci, char *label) argument
116 dbg_hcc_params(struct ehci_hcd *ehci, char *label) argument
123 dbg_qtd(const char *label, struct ehci_hcd *ehci, struct ehci_qtd *qtd) argument
139 dbg_qh(const char *label, struct ehci_hcd *ehci, struct ehci_qh *qh) argument
149 dbg_itd(const char *label, struct ehci_hcd *ehci, struct ehci_itd *itd) argument
180 dbg_sitd(const char *label, struct ehci_hcd *ehci, struct ehci_sitd *sitd) argument
301 dbg_qh(char *label, struct ehci_hcd *ehci, struct ehci_qh *qh) argument
411 token_mark(struct ehci_hcd *ehci, __hc32 token) argument
425 qh_lines( struct ehci_hcd *ehci, struct ehci_qh *qh, char **nextp, unsigned *sizep ) argument
519 struct ehci_hcd *ehci; local
556 struct ehci_hcd *ehci; local
700 struct ehci_hcd *ehci; local
978 struct ehci_hcd *ehci; local
1044 create_debug_files(struct ehci_hcd *ehci) argument
1074 remove_debug_files(struct ehci_hcd *ehci) argument
[all...]
H A Dehci.h168 static inline struct usb_hcd *ehci_to_hcd (struct ehci_hcd *ehci) argument
170 return container_of ((void *) ehci, struct usb_hcd, hcd_priv);
175 iaa_watchdog_start(struct ehci_hcd *ehci) argument
177 WARN_ON(timer_pending(&ehci->iaa_watchdog));
178 mod_timer(&ehci->iaa_watchdog,
182 static inline void iaa_watchdog_done(struct ehci_hcd *ehci) argument
184 del_timer(&ehci->iaa_watchdog);
194 timer_action_done (struct ehci_hcd *ehci, enum ehci_timer_action action) argument
196 clear_bit (action, &ehci->actions);
199 static void free_cached_lists(struct ehci_hcd *ehci);
336 struct ehci_hcd *ehci; member in struct:ehci_qh
559 ehci_port_speed(struct ehci_hcd *ehci, unsigned int portsc) argument
618 ehci_readl(const struct ehci_hcd *ehci, __u32 __iomem * regs) argument
630 ehci_writel(const struct ehci_hcd *ehci, const unsigned int val, __u32 __iomem *regs) argument
648 set_ohci_hcfs(struct ehci_hcd *ehci, int operational) argument
662 set_ohci_hcfs(struct ehci_hcd *ehci, int operational) argument
679 cpu_to_hc32(const struct ehci_hcd *ehci, const u32 x) argument
687 hc32_to_cpu(const struct ehci_hcd *ehci, const __hc32 x) argument
694 hc32_to_cpup(const struct ehci_hcd *ehci, const __hc32 *x) argument
704 cpu_to_hc32(const struct ehci_hcd *ehci, const u32 x) argument
710 hc32_to_cpu(const struct ehci_hcd *ehci, const __hc32 x) argument
715 hc32_to_cpup(const struct ehci_hcd *ehci, const __hc32 *x) argument
[all...]

Completed in 129 milliseconds

123