/linux/drivers/usb/core/ |
H A D | hcd.c | 38 #include <linux/usb/hcd.h> 51 * HCD-specific behaviors/bugs. 60 * tracking overhead. The HCD code should only block on spinlocks or on 65 * and includes mostly a "HCDI" (HCD Interface) along with some APIs used 405 * @hcd: the host controller for this root hub 416 rh_string(int id, struct usb_hcd const *hcd, u8 *data, unsigned len) in rh_string() argument 433 s = hcd->self.bus_name; in rh_string() 437 s = hcd->product_desc; in rh_string() 442 init_utsname()->release, hcd->driver->description); in rh_string() 455 static int rh_call_control (struct usb_hcd *hcd, struc argument 725 usb_hcd_poll_rh_status(struct usb_hcd * hcd) usb_hcd_poll_rh_status() argument 785 rh_queue_status(struct usb_hcd * hcd,struct urb * urb) rh_queue_status() argument 816 rh_urb_enqueue(struct usb_hcd * hcd,struct urb * urb) rh_urb_enqueue() argument 830 usb_rh_urb_dequeue(struct usb_hcd * hcd,struct urb * urb,int status) usb_rh_urb_dequeue() argument 955 register_root_hub(struct usb_hcd * hcd) register_root_hub() argument 1130 usb_hcd_link_urb_to_ep(struct usb_hcd * hcd,struct urb * urb) usb_hcd_link_urb_to_ep() argument 1188 usb_hcd_check_unlink_urb(struct usb_hcd * hcd,struct urb * urb,int status) usb_hcd_check_unlink_urb() argument 1221 usb_hcd_unlink_urb_from_ep(struct usb_hcd * hcd,struct urb * urb) usb_hcd_unlink_urb_from_ep() argument 1309 usb_hcd_unmap_urb_setup_for_dma(struct usb_hcd * hcd,struct urb * urb) usb_hcd_unmap_urb_setup_for_dma() argument 1329 unmap_urb_for_dma(struct usb_hcd * hcd,struct urb * urb) unmap_urb_for_dma() argument 1337 usb_hcd_unmap_urb_for_dma(struct usb_hcd * hcd,struct urb * urb) usb_hcd_unmap_urb_for_dma() argument 1381 map_urb_for_dma(struct usb_hcd * hcd,struct urb * urb,gfp_t mem_flags) map_urb_for_dma() argument 1390 usb_hcd_map_urb_for_dma(struct usb_hcd * hcd,struct urb * urb,gfp_t mem_flags) usb_hcd_map_urb_for_dma() argument 1522 struct usb_hcd *hcd = bus_to_hcd(urb->dev->bus); usb_hcd_submit_urb() local 1579 unlink1(struct usb_hcd * hcd,struct urb * urb,int status) unlink1() argument 1603 struct usb_hcd *hcd; usb_hcd_unlink_urb() local 1636 struct usb_hcd *hcd = bus_to_hcd(urb->dev->bus); __usb_hcd_giveback_urb() local 1737 usb_hcd_giveback_urb(struct usb_hcd * hcd,struct urb * urb,int status) usb_hcd_giveback_urb() argument 1779 struct usb_hcd *hcd; usb_hcd_flush_endpoint() local 1863 struct usb_hcd *hcd; usb_hcd_alloc_bandwidth() local 1980 struct usb_hcd *hcd; usb_hcd_disable_endpoint() local 1999 struct usb_hcd *hcd = bus_to_hcd(udev->bus); usb_hcd_reset_endpoint() local 2033 struct usb_hcd *hcd; usb_alloc_streams() local 2083 struct usb_hcd *hcd; usb_free_streams() local 2124 struct usb_hcd *hcd = bus_to_hcd(udev->bus); usb_hcd_get_frame_number() local 2153 struct usb_hcd *hcd = bus_to_hcd(udev->bus); request_single_step_set_feature_urb() local 2183 ehset_single_step_set_feature(struct usb_hcd * hcd,int port) ehset_single_step_set_feature() argument 2260 struct usb_hcd *hcd = bus_to_hcd(rhdev->bus); hcd_bus_suspend() local 2313 struct usb_hcd *hcd = bus_to_hcd(rhdev->bus); hcd_bus_resume() local 2383 struct usb_hcd *hcd = container_of(work, struct usb_hcd, wakeup_work); hcd_resume_work() local 2398 usb_hcd_resume_root_hub(struct usb_hcd * hcd) usb_hcd_resume_root_hub() argument 2433 struct usb_hcd *hcd; usb_bus_start_enum() local 2469 struct usb_hcd *hcd = __hcd; usb_hcd_irq() local 2488 struct usb_hcd *hcd = container_of(work, struct usb_hcd, died_work); hcd_died_work() local 2508 usb_hc_died(struct usb_hcd * hcd) usb_hc_died() argument 2564 struct usb_hcd *hcd; __usb_create_hcd() local 2679 struct usb_hcd *hcd = container_of (kref, struct usb_hcd, kref); hcd_release() local 2695 usb_get_hcd(struct usb_hcd * hcd) usb_get_hcd() argument 2703 usb_put_hcd(struct usb_hcd * hcd) usb_put_hcd() argument 2710 usb_hcd_is_primary_hcd(struct usb_hcd * hcd) usb_hcd_is_primary_hcd() argument 2718 usb_hcd_find_raw_port_number(struct usb_hcd * hcd,int port1) usb_hcd_find_raw_port_number() argument 2726 usb_hcd_request_irqs(struct usb_hcd * hcd,unsigned int irqnum,unsigned long irqflags) usb_hcd_request_irqs() argument 2763 usb_put_invalidate_rhdev(struct usb_hcd * hcd) usb_put_invalidate_rhdev() argument 2780 usb_stop_hcd(struct usb_hcd * hcd) usb_stop_hcd() argument 2804 usb_add_hcd(struct usb_hcd * hcd,unsigned int irqnum,unsigned long irqflags) usb_add_hcd() argument 3030 usb_remove_hcd(struct usb_hcd * hcd) usb_remove_hcd() argument 3100 struct usb_hcd *hcd = platform_get_drvdata(dev); usb_hcd_platform_shutdown() local 3110 usb_hcd_setup_local_mem(struct usb_hcd * hcd,phys_addr_t phys_addr,dma_addr_t dma,size_t size) usb_hcd_setup_local_mem() argument [all...] |
H A D | hcd-pci.c | 10 #include <linux/usb/hcd.h> 41 typedef void (*companion_fn)(struct pci_dev *pdev, struct usb_hcd *hcd, 45 static void for_each_companion(struct pci_dev *pdev, struct usb_hcd *hcd, in for_each_companion() argument 74 fn(pdev, hcd, companion, companion_hcd); in for_each_companion() 84 static void ehci_pre_add(struct pci_dev *pdev, struct usb_hcd *hcd, in ehci_pre_add() argument 101 static void ehci_post_add(struct pci_dev *pdev, struct usb_hcd *hcd, in ehci_post_add() argument 110 companion_hcd->self.hs_companion = &hcd->self; in ehci_post_add() 122 static void non_ehci_add(struct pci_dev *pdev, struct usb_hcd *hcd, in non_ehci_add() argument 128 hcd->self.hs_companion = &companion_hcd->self; in non_ehci_add() 133 static void ehci_remove(struct pci_dev *pdev, struct usb_hcd *hcd, in ehci_remove() argument 143 ehci_wait_for_companions(struct pci_dev * pdev,struct usb_hcd * hcd,struct pci_dev * companion,struct usb_hcd * companion_hcd) ehci_wait_for_companions() argument 174 struct usb_hcd *hcd; usb_hcd_pci_probe() local 313 struct usb_hcd *hcd; usb_hcd_pci_remove() local 361 struct usb_hcd *hcd; usb_hcd_pci_shutdown() local 402 struct usb_hcd *hcd = dev_get_drvdata(dev); check_root_hub_suspended() local 421 struct usb_hcd *hcd = pci_get_drvdata(pci_dev); suspend_common() local 484 struct usb_hcd *hcd = pci_get_drvdata(pci_dev); resume_common() local 537 struct usb_hcd *hcd = pci_get_drvdata(pci_dev); hcd_pci_suspend_noirq() local 576 struct usb_hcd *hcd = pci_get_drvdata(pci_dev); hcd_pci_poweroff_late() local [all...] |
H A D | buffer.c | 3 * DMA memory management for framework level HCD code (hc_driver) 21 #include <linux/usb/hcd.h> 53 * @hcd: the bus whose buffer pools are to be initialized 65 int hcd_buffer_create(struct usb_hcd *hcd) in hcd_buffer_create() argument 70 if (hcd->localmem_pool || !hcd_uses_dma(hcd)) in hcd_buffer_create() 78 hcd->pool[i] = dma_pool_create(name, hcd->self.sysdev, in hcd_buffer_create() 80 if (!hcd->pool[i]) { in hcd_buffer_create() 81 hcd_buffer_destroy(hcd); in hcd_buffer_create() 97 hcd_buffer_destroy(struct usb_hcd * hcd) hcd_buffer_destroy() argument 122 struct usb_hcd *hcd = bus_to_hcd(bus); hcd_buffer_alloc() local 151 struct usb_hcd *hcd = bus_to_hcd(bus); hcd_buffer_free() local 176 hcd_buffer_alloc_pages(struct usb_hcd * hcd,size_t size,gfp_t mem_flags,dma_addr_t * dma) hcd_buffer_alloc_pages() argument 197 hcd_buffer_free_pages(struct usb_hcd * hcd,size_t size,void * addr,dma_addr_t dma) hcd_buffer_free_pages() argument [all...] |
/linux/drivers/usb/isp1760/ |
H A D | isp1760-hcd.c | 23 #include <linux/usb/hcd.h> 34 #include "isp1760-hcd.h" 41 typedef void (packet_enqueue)(struct usb_hcd *hcd, struct isp1760_qh *qh, 44 static inline struct isp1760_hcd *hcd_to_priv(struct usb_hcd *hcd) in hcd_to_priv() argument 46 return *(struct isp1760_hcd **)hcd->hcd_priv; in hcd_to_priv() 150 /* the rest is HCD-private */ 200 static u32 isp1760_hcd_read(struct usb_hcd *hcd, u32 field) in isp1760_hcd_read() argument 202 struct isp1760_hcd *priv = hcd_to_priv(hcd); in isp1760_hcd_read() 225 static void isp1760_hcd_write(struct usb_hcd *hcd, u32 field, u32 val) in isp1760_hcd_write() argument 227 struct isp1760_hcd *priv = hcd_to_priv(hcd); in isp1760_hcd_write() 235 isp1760_hcd_set(struct usb_hcd * hcd,u32 field) isp1760_hcd_set() argument 240 isp1760_hcd_clear(struct usb_hcd * hcd,u32 field) isp1760_hcd_clear() argument 245 isp1760_hcd_set_and_wait(struct usb_hcd * hcd,u32 field,u32 timeout_us) isp1760_hcd_set_and_wait() argument 257 isp1760_hcd_set_and_wait_swap(struct usb_hcd * hcd,u32 field,u32 timeout_us) isp1760_hcd_set_and_wait_swap() argument 269 isp1760_hcd_clear_and_wait(struct usb_hcd * hcd,u32 field,u32 timeout_us) isp1760_hcd_clear_and_wait() argument 281 isp1760_hcd_is_set(struct usb_hcd * hcd,u32 field) isp1760_hcd_is_set() argument 286 isp1760_hcd_ppc_is_set(struct usb_hcd * hcd) isp1760_hcd_ppc_is_set() argument 296 isp1760_hcd_n_ports(struct usb_hcd * hcd) isp1760_hcd_n_ports() argument 366 isp1760_mem_read(struct usb_hcd * hcd,u32 src_offset,void * dst,u32 bytes) isp1760_mem_read() argument 382 isp1763_mem_read(struct usb_hcd * hcd,u16 srcaddr,u16 * dstptr,u32 bytes) isp1763_mem_read() argument 405 mem_read(struct usb_hcd * hcd,u32 src_offset,__u32 * dst,u32 bytes) mem_read() argument 451 isp1763_mem_write(struct usb_hcd * hcd,u16 dstaddr,u16 * src,u32 bytes) isp1763_mem_write() argument 478 mem_write(struct usb_hcd * hcd,u32 dst_offset,__u32 * src,u32 bytes) mem_write() argument 493 isp1760_ptd_read(struct usb_hcd * hcd,u32 ptd_offset,u32 slot,struct ptd * ptd) isp1760_ptd_read() argument 506 isp1763_ptd_read(struct usb_hcd * hcd,u32 ptd_offset,u32 slot,struct ptd * ptd) isp1763_ptd_read() argument 524 ptd_read(struct usb_hcd * hcd,u32 ptd_offset,u32 slot,struct ptd * ptd) ptd_read() argument 535 isp1763_ptd_write(struct usb_hcd * hcd,u32 ptd_offset,u32 slot,struct ptd * cpu_ptd) isp1763_ptd_write() argument 570 ptd_write(struct usb_hcd * hcd,u32 ptd_offset,u32 slot,struct ptd * ptd) ptd_write() argument 603 alloc_mem(struct usb_hcd * hcd,struct isp1760_qtd * qtd) alloc_mem() argument 624 free_mem(struct usb_hcd * hcd,struct isp1760_qtd * qtd) free_mem() argument 649 ehci_reset(struct usb_hcd * hcd) ehci_reset() argument 682 priv_init(struct usb_hcd * hcd) priv_init() argument 718 isp1760_hc_setup(struct usb_hcd * hcd) isp1760_hc_setup() argument 950 isp1760_urb_done(struct usb_hcd * hcd,struct urb * urb) isp1760_urb_done() argument 1000 start_bus_transfer(struct usb_hcd * hcd,u32 ptd_offset,int slot,struct isp1760_slotinfo * slots,struct isp1760_qtd * qtd,struct isp1760_qh * qh,struct ptd * ptd) start_bus_transfer() argument 1053 collect_qtds(struct usb_hcd * hcd,struct isp1760_qh * qh,struct list_head * urb_list) collect_qtds() argument 1116 enqueue_qtds(struct usb_hcd * hcd,struct isp1760_qh * qh) enqueue_qtds() argument 1196 schedule_ptds(struct usb_hcd * hcd) schedule_ptds() argument 1265 check_int_transfer(struct usb_hcd * hcd,struct ptd * ptd,struct urb * urb) check_int_transfer() argument 1312 check_atl_transfer(struct usb_hcd * hcd,struct ptd * ptd,struct urb * urb) check_atl_transfer() argument 1352 handle_done_ptds(struct usb_hcd * hcd) handle_done_ptds() argument 1490 isp1760_irq(struct usb_hcd * hcd) isp1760_irq() argument 1555 struct usb_hcd *hcd = errata2_timer_hcd; errata2_function() local 1583 isp1763_run(struct usb_hcd * hcd) isp1763_run() argument 1658 isp1760_run(struct usb_hcd * hcd) isp1760_run() argument 1770 packetize_urb(struct usb_hcd * hcd,struct urb * urb,struct list_head * head,gfp_t flags) packetize_urb() argument 1878 isp1760_urb_enqueue(struct usb_hcd * hcd,struct urb * urb,gfp_t mem_flags) isp1760_urb_enqueue() argument 1964 kill_transfer(struct usb_hcd * hcd,struct urb * urb,struct isp1760_qh * qh) kill_transfer() argument 2000 dequeue_urb_from_qtd(struct usb_hcd * hcd,struct isp1760_qh * qh,struct isp1760_qtd * qtd) dequeue_urb_from_qtd() argument 2031 isp1760_urb_dequeue(struct usb_hcd * hcd,struct urb * urb,int status) isp1760_urb_dequeue() argument 2066 isp1760_endpoint_disable(struct usb_hcd * hcd,struct usb_host_endpoint * ep) isp1760_endpoint_disable() argument 2098 isp1760_hub_status_data(struct usb_hcd * hcd,char * buf) isp1760_hub_status_data() argument 2172 check_reset_complete(struct usb_hcd * hcd,int index) check_reset_complete() argument 2193 isp1760_hub_control(struct usb_hcd * hcd,u16 typeReq,u16 wValue,u16 wIndex,char * buf,u16 wLength) isp1760_hub_control() argument 2448 isp1760_get_frame(struct usb_hcd * hcd) isp1760_get_frame() argument 2457 isp1760_stop(struct usb_hcd * hcd) isp1760_stop() argument 2476 isp1760_shutdown(struct usb_hcd * hcd) isp1760_shutdown() argument 2485 isp1760_clear_tt_buffer_complete(struct usb_hcd * hcd,struct usb_host_endpoint * ep) isp1760_clear_tt_buffer_complete() argument 2564 struct usb_hcd *hcd; isp1760_hcd_register() local [all...] |
/linux/drivers/usb/host/ |
H A D | ohci-da8xx.c | 3 * OHCI HCD (Host Controller Driver) for USB. 24 #include <linux/usb/hcd.h> 34 static int (*orig_ohci_hub_control)(struct usb_hcd *hcd, u16 typeReq, 36 static int (*orig_ohci_hub_status_data)(struct usb_hcd *hcd, char *buf); 39 struct usb_hcd *hcd; member 47 #define to_da8xx_ohci(hcd) (struct da8xx_ohci_hcd *)(hcd_to_ohci(hcd)->priv) argument 52 static int ohci_da8xx_enable(struct usb_hcd *hcd) in ohci_da8xx_enable() argument 54 struct da8xx_ohci_hcd *da8xx_ohci = to_da8xx_ohci(hcd); in ohci_da8xx_enable() 79 static void ohci_da8xx_disable(struct usb_hcd *hcd) in ohci_da8xx_disable() argument 88 ohci_da8xx_set_power(struct usb_hcd * hcd,int on) ohci_da8xx_set_power() argument 114 ohci_da8xx_get_power(struct usb_hcd * hcd) ohci_da8xx_get_power() argument 124 ohci_da8xx_get_oci(struct usb_hcd * hcd) ohci_da8xx_get_oci() argument 146 ohci_da8xx_has_set_power(struct usb_hcd * hcd) ohci_da8xx_has_set_power() argument 156 ohci_da8xx_has_oci(struct usb_hcd * hcd) ohci_da8xx_has_oci() argument 169 ohci_da8xx_has_potpgt(struct usb_hcd * hcd) ohci_da8xx_has_potpgt() argument 210 ohci_da8xx_register_notify(struct usb_hcd * hcd) ohci_da8xx_register_notify() argument 228 ohci_da8xx_reset(struct usb_hcd * hcd) ohci_da8xx_reset() argument 281 ohci_da8xx_hub_status_data(struct usb_hcd * hcd,char * buf) ohci_da8xx_hub_status_data() argument 301 ohci_da8xx_hub_control(struct usb_hcd * hcd,u16 typeReq,u16 wValue,u16 wIndex,char * buf,u16 wLength) ohci_da8xx_hub_control() argument 379 struct usb_hcd *hcd; ohci_da8xx_probe() local 474 struct usb_hcd *hcd = platform_get_drvdata(pdev); ohci_da8xx_remove() local 484 struct usb_hcd *hcd = platform_get_drvdata(pdev); ohci_da8xx_suspend() local 506 struct usb_hcd *hcd = platform_get_drvdata(dev); ohci_da8xx_resume() local [all...] |
H A D | ohci-ps3.c | 12 static int ps3_ohci_hc_reset(struct usb_hcd *hcd) in ps3_ohci_hc_reset() argument 14 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ps3_ohci_hc_reset() 21 static int ps3_ohci_hc_start(struct usb_hcd *hcd) in ps3_ohci_hc_start() argument 24 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ps3_ohci_hc_start() 36 dev_err(hcd->self.controller, "can't start %s\n", in ps3_ohci_hc_start() 37 hcd->self.bus_name); in ps3_ohci_hc_start() 38 ohci_stop(hcd); in ps3_ohci_hc_start() 70 struct usb_hcd *hcd; in ps3_ohci_probe() local 122 hcd = usb_create_hcd(&ps3_ohci_hc_driver, &dev->core, dev_name(&dev->core)); in ps3_ohci_probe() 124 if (!hcd) { in ps3_ohci_probe() 190 struct usb_hcd *hcd = ps3_system_bus_get_drvdata(dev); ps3_ohci_remove() local [all...] |
H A D | ehci-fsl.c | 21 #include <linux/usb/hcd.h> 50 struct usb_hcd *hcd; in fsl_ehci_drv_probe() local 83 hcd = __usb_create_hcd(&fsl_ehci_hc_driver, pdev->dev.parent, in fsl_ehci_drv_probe() 85 if (!hcd) { in fsl_ehci_drv_probe() 90 hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); in fsl_ehci_drv_probe() 91 if (IS_ERR(hcd->regs)) { in fsl_ehci_drv_probe() 92 retval = PTR_ERR(hcd->regs); in fsl_ehci_drv_probe() 96 hcd->rsrc_start = res->start; in fsl_ehci_drv_probe() 97 hcd->rsrc_len = resource_size(res); in fsl_ehci_drv_probe() 99 pdata->regs = hcd in fsl_ehci_drv_probe() 180 usb_phy_clk_valid(struct usb_hcd * hcd) usb_phy_clk_valid() argument 191 ehci_fsl_setup_phy(struct usb_hcd * hcd,enum fsl_usb2_phy_modes phy_mode,unsigned int port_offset) ehci_fsl_setup_phy() argument 297 struct usb_hcd *hcd = ehci_to_hcd(ehci); ehci_fsl_usb_setup() local 369 ehci_fsl_setup(struct usb_hcd * hcd) ehci_fsl_setup() argument 425 struct usb_hcd *hcd = dev_get_drvdata(dev); ehci_fsl_mpc512x_drv_suspend() local 494 struct usb_hcd *hcd = dev_get_drvdata(dev); ehci_fsl_mpc512x_drv_resume() local 569 struct usb_hcd *hcd = dev_get_drvdata(dev); ehci_fsl_drv_suspend() local 589 struct usb_hcd *hcd = dev_get_drvdata(dev); ehci_fsl_drv_resume() local 616 struct usb_hcd *hcd = dev_get_drvdata(dev); ehci_fsl_drv_restore() local 634 ehci_start_port_reset(struct usb_hcd * hcd,unsigned port) ehci_start_port_reset() argument 680 struct usb_hcd *hcd = platform_get_drvdata(pdev); fsl_ehci_drv_remove() local [all...] |
H A D | ehci-sh.c | 14 struct usb_hcd *hcd; member 17 static int ehci_sh_reset(struct usb_hcd *hcd) in ehci_sh_reset() argument 19 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_sh_reset() 21 ehci->caps = hcd->regs; in ehci_sh_reset() 23 return ehci_setup(hcd); in ehci_sh_reset() 78 struct usb_hcd *hcd; in ehci_hcd_sh_probe() local 90 /* initialize hcd */ in ehci_hcd_sh_probe() 91 hcd = usb_create_hcd(&ehci_sh_hc_driver, &pdev->dev, in ehci_hcd_sh_probe() 93 if (!hcd) { in ehci_hcd_sh_probe() 98 hcd in ehci_hcd_sh_probe() 157 struct usb_hcd *hcd = priv->hcd; ehci_hcd_sh_remove() local 169 struct usb_hcd *hcd = priv->hcd; ehci_hcd_sh_shutdown() local [all...] |
H A D | max3421-hcd.c | 18 * For USB HCD implementation. 63 #include <linux/usb/hcd.h> 66 #include <linux/platform_data/max3421-hcd.h> 132 * SPI-thread without acquiring the HCD lock: 329 hcd_to_max3421(struct usb_hcd *hcd) in hcd_to_max3421() argument 331 return (struct max3421_hcd *) hcd->hcd_priv; in hcd_to_max3421() 341 spi_rd8(struct usb_hcd *hcd, unsigned int reg) in spi_rd8() argument 343 struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd); in spi_rd8() 344 struct spi_device *spi = to_spi_device(hcd->self.controller); in spi_rd8() 367 spi_wr8(struct usb_hcd *hcd, unsigne argument 391 spi_rd_buf(struct usb_hcd * hcd,unsigned int reg,void * buf,size_t len) spi_rd_buf() argument 417 spi_wr_buf(struct usb_hcd * hcd,unsigned int reg,void * buf,size_t len) spi_wr_buf() argument 457 max3421_set_speed(struct usb_hcd * hcd,struct usb_device * dev) max3421_set_speed() argument 483 max3421_set_address(struct usb_hcd * hcd,struct usb_device * dev,int epnum) max3421_set_address() argument 505 max3421_ctrl_setup(struct usb_hcd * hcd,struct urb * urb) max3421_ctrl_setup() argument 512 max3421_transfer_in(struct usb_hcd * hcd,struct urb * urb) max3421_transfer_in() argument 523 max3421_transfer_out(struct usb_hcd * hcd,struct urb * urb,int fast_retransmit) max3421_transfer_out() argument 569 max3421_next_transfer(struct usb_hcd * hcd,int fast_retransmit) max3421_next_transfer() argument 629 max3421_select_and_start_urb(struct usb_hcd * hcd) max3421_select_and_start_urb() argument 764 max3421_check_unlink(struct usb_hcd * hcd) max3421_check_unlink() argument 804 max3421_slow_retransmit(struct usb_hcd * hcd) max3421_slow_retransmit() argument 819 max3421_recv_data_available(struct usb_hcd * hcd) max3421_recv_data_available() argument 850 max3421_handle_error(struct usb_hcd * hcd,u8 hrsl) max3421_handle_error() argument 939 max3421_transfer_in_done(struct usb_hcd * hcd,struct urb * urb) max3421_transfer_in_done() argument 983 max3421_transfer_out_done(struct usb_hcd * hcd,struct urb * urb) max3421_transfer_out_done() argument 1010 max3421_host_transfer_done(struct usb_hcd * hcd) max3421_host_transfer_done() argument 1076 max3421_detect_conn(struct usb_hcd * hcd) max3421_detect_conn() argument 1135 struct usb_hcd *hcd = dev_id; max3421_irq_handler() local 1149 dump_eps(struct usb_hcd * hcd) dump_eps() argument 1190 max3421_handle_irqs(struct usb_hcd * hcd) max3421_handle_irqs() argument 1283 max3421_reset_hcd(struct usb_hcd * hcd) max3421_reset_hcd() argument 1336 max3421_urb_done(struct usb_hcd * hcd) max3421_urb_done() argument 1373 struct usb_hcd *hcd = dev_id; max3421_spi_thread() local 1452 max3421_reset_port(struct usb_hcd * hcd) max3421_reset_port() argument 1465 max3421_reset(struct usb_hcd * hcd) max3421_reset() argument 1478 max3421_start(struct usb_hcd * hcd) max3421_start() argument 1494 max3421_stop(struct usb_hcd * hcd) max3421_stop() argument 1499 max3421_urb_enqueue(struct usb_hcd * hcd,struct urb * urb,gfp_t mem_flags) max3421_urb_enqueue() argument 1551 max3421_urb_dequeue(struct usb_hcd * hcd,struct urb * urb,int status) max3421_urb_dequeue() argument 1573 max3421_endpoint_disable(struct usb_hcd * hcd,struct usb_host_endpoint * ep) max3421_endpoint_disable() argument 1594 max3421_get_frame_number(struct usb_hcd * hcd) max3421_get_frame_number() argument 1605 max3421_hub_status_data(struct usb_hcd * hcd,char * buf) max3421_hub_status_data() argument 1650 max3421_gpout_set_value(struct usb_hcd * hcd,u8 pin_number,u8 value) max3421_gpout_set_value() argument 1671 max3421_hub_control(struct usb_hcd * hcd,u16 type_req,u16 value,u16 index,char * buf,u16 length) max3421_hub_control() argument 1769 max3421_bus_suspend(struct usb_hcd * hcd) max3421_bus_suspend() argument 1775 max3421_bus_resume(struct usb_hcd * hcd) max3421_bus_resume() argument 1825 struct usb_hcd *hcd = NULL; max3421_probe() local 1930 struct usb_hcd *hcd; max3421_remove() local [all...] |
H A D | ohci-omap.c | 3 * OHCI HCD (Host Controller Driver) for USB. 35 #include <linux/usb/hcd.h> 72 struct usb_hcd *hcd = ohci_to_hcd(ohci); in start_hnp() local 73 const unsigned port = hcd->self.otg_port - 1; in start_hnp() 77 otg_start_hnp(hcd->usb_phy->otg); in start_hnp() 80 hcd->usb_phy->otg->state = OTG_STATE_A_SUSPEND; in start_hnp() 90 static int ohci_omap_reset(struct usb_hcd *hcd) in ohci_omap_reset() argument 92 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_omap_reset() 93 struct omap_usb_config *config = dev_get_platdata(hcd->self.controller); in ohci_omap_reset() 94 struct ohci_omap_priv *priv = hcd_to_ohci_omap_priv(hcd); in ohci_omap_reset() 199 struct usb_hcd *hcd = 0; ohci_hcd_omap_probe() local 326 struct usb_hcd *hcd = platform_get_drvdata(pdev); ohci_hcd_omap_remove() local 351 struct usb_hcd *hcd = platform_get_drvdata(pdev); ohci_omap_suspend() local 371 struct usb_hcd *hcd = platform_get_drvdata(dev); ohci_omap_resume() local [all...] |
H A D | xhci-plat.c | 30 static int xhci_plat_setup(struct usb_hcd *hcd); 31 static int xhci_plat_start(struct usb_hcd *hcd); 39 static void xhci_priv_plat_start(struct usb_hcd *hcd) in xhci_priv_plat_start() argument 41 struct xhci_plat_priv *priv = hcd_to_xhci_priv(hcd); in xhci_priv_plat_start() 44 priv->plat_start(hcd); in xhci_priv_plat_start() 47 static int xhci_priv_init_quirk(struct usb_hcd *hcd) in xhci_priv_init_quirk() argument 49 struct xhci_plat_priv *priv = hcd_to_xhci_priv(hcd); in xhci_priv_init_quirk() 54 return priv->init_quirk(hcd); in xhci_priv_init_quirk() 57 static int xhci_priv_suspend_quirk(struct usb_hcd *hcd) in xhci_priv_suspend_quirk() argument 59 struct xhci_plat_priv *priv = hcd_to_xhci_priv(hcd); in xhci_priv_suspend_quirk() 67 xhci_priv_resume_quirk(struct usb_hcd * hcd) xhci_priv_resume_quirk() argument 85 xhci_plat_setup(struct usb_hcd * hcd) xhci_plat_setup() argument 97 xhci_plat_start(struct usb_hcd * hcd) xhci_plat_start() argument 151 struct usb_hcd *hcd, *usb3_hcd; xhci_plat_probe() local 425 struct usb_hcd *hcd = platform_get_drvdata(dev); xhci_plat_remove() local 459 struct usb_hcd *hcd = dev_get_drvdata(dev); xhci_plat_suspend() local 487 struct usb_hcd *hcd = dev_get_drvdata(dev); xhci_plat_resume_common() local 539 struct usb_hcd *hcd = dev_get_drvdata(dev); xhci_plat_runtime_suspend() local 552 struct usb_hcd *hcd = dev_get_drvdata(dev); xhci_plat_runtime_resume() local [all...] |
H A D | Makefile | 9 fhci-y := fhci-hcd.o fhci-hub.o fhci-q.o 14 xhci-hcd-y := xhci.o xhci-mem.o xhci-ext-caps.o 15 xhci-hcd-y += xhci-ring.o xhci-hub.o xhci-dbg.o 16 xhci-hcd-y += xhci-trace.o 19 xhci-hcd-y += xhci-dbgcap.o xhci-dbgtty.o 22 xhci-mtk-hcd-y := xhci-mtk.o xhci-mtk-sch.o 24 xhci-plat-hcd-y := xhci-plat.o 26 xhci-plat-hcd-y += xhci-mvebu.o 29 xhci-hcd-y += xhci-debugfs.o 32 xhci-rcar-hcd [all...] |
H A D | ehci-ps3.c | 40 static int ps3_ehci_hc_reset(struct usb_hcd *hcd) in ps3_ehci_hc_reset() argument 43 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ps3_ehci_hc_reset() 46 ehci->caps = hcd->regs; in ps3_ehci_hc_reset() 48 result = ehci_setup(hcd); in ps3_ehci_hc_reset() 87 struct usb_hcd *hcd; in ps3_ehci_probe() local 138 hcd = usb_create_hcd(&ps3_ehci_hc_driver, &dev->core, dev_name(&dev->core)); in ps3_ehci_probe() 140 if (!hcd) { in ps3_ehci_probe() 147 hcd->rsrc_start = dev->m_region->lpar_addr; in ps3_ehci_probe() 148 hcd->rsrc_len = dev->m_region->len; in ps3_ehci_probe() 150 if (!request_mem_region(hcd in ps3_ehci_probe() 206 struct usb_hcd *hcd = ps3_system_bus_get_drvdata(dev); ps3_ehci_remove() local [all...] |
H A D | ohci-sm501.c | 3 * OHCI HCD (Host Controller Driver) for USB. 22 static int ohci_sm501_init(struct usb_hcd *hcd) in ohci_sm501_init() argument 24 return ohci_init(hcd_to_ohci(hcd)); in ohci_sm501_init() 27 static int ohci_sm501_start(struct usb_hcd *hcd) in ohci_sm501_start() argument 29 struct device *dev = hcd->self.controller; in ohci_sm501_start() 32 ret = ohci_run(hcd_to_ohci(hcd)); in ohci_sm501_start() 34 dev_err(dev, "can't start %s", hcd->self.bus_name); in ohci_sm501_start() 35 ohci_stop(hcd); in ohci_sm501_start() 94 struct usb_hcd *hcd = NULL; in ohci_hcd_sm501_drv_probe() local 121 hcd in ohci_hcd_sm501_drv_probe() 190 struct usb_hcd *hcd = platform_get_drvdata(pdev); ohci_hcd_sm501_drv_remove() local 212 struct usb_hcd *hcd = platform_get_drvdata(pdev); ohci_sm501_suspend() local 232 struct usb_hcd *hcd = platform_get_drvdata(pdev); ohci_sm501_resume() local [all...] |
H A D | ohci-spear.c | 3 * OHCI HCD (Host Controller Driver) for USB. 20 #include <linux/usb/hcd.h> 30 #define to_spear_ohci(hcd) (struct spear_ohci *)(hcd_to_ohci(hcd)->priv) argument 37 struct usb_hcd *hcd = NULL; in spear_ohci_hcd_drv_probe() local 65 hcd = usb_create_hcd(driver, &pdev->dev, dev_name(&pdev->dev)); in spear_ohci_hcd_drv_probe() 66 if (!hcd) { in spear_ohci_hcd_drv_probe() 71 hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); in spear_ohci_hcd_drv_probe() 72 if (IS_ERR(hcd->regs)) { in spear_ohci_hcd_drv_probe() 73 retval = PTR_ERR(hcd in spear_ohci_hcd_drv_probe() 102 struct usb_hcd *hcd = platform_get_drvdata(pdev); spear_ohci_hcd_drv_remove() local 115 struct usb_hcd *hcd = platform_get_drvdata(pdev); spear_ohci_hcd_drv_suspend() local 136 struct usb_hcd *hcd = platform_get_drvdata(dev); spear_ohci_hcd_drv_resume() local [all...] |
H A D | ohci-exynos.c | 18 #include <linux/usb/hcd.h> 26 #define to_exynos_ohci(hcd) (struct exynos_ohci_hcd *)(hcd_to_ohci(hcd)->priv) argument 81 struct usb_hcd *hcd = dev_get_drvdata(dev); in exynos_ohci_phy_enable() local 82 struct exynos_ohci_hcd *exynos_ohci = to_exynos_ohci(hcd); in exynos_ohci_phy_enable() 97 struct usb_hcd *hcd = dev_get_drvdata(dev); in exynos_ohci_phy_disable() local 98 struct exynos_ohci_hcd *exynos_ohci = to_exynos_ohci(hcd); in exynos_ohci_phy_disable() 108 struct usb_hcd *hcd; in exynos_ohci_probe() local 122 hcd = usb_create_hcd(&exynos_ohci_hc_driver, in exynos_ohci_probe() 124 if (!hcd) { in exynos_ohci_probe() 191 struct usb_hcd *hcd = platform_get_drvdata(pdev); exynos_ohci_remove() local 205 struct usb_hcd *hcd = platform_get_drvdata(pdev); exynos_ohci_shutdown() local 213 struct usb_hcd *hcd = dev_get_drvdata(dev); exynos_ohci_suspend() local 230 struct usb_hcd *hcd = dev_get_drvdata(dev); exynos_ohci_resume() local [all...] |
H A D | ehci-spear.c | 3 * Driver for EHCI HCD on SPEAr SOC 21 #include <linux/usb/hcd.h> 31 #define to_spear_ehci(hcd) (struct spear_ehci *)(hcd_to_ehci(hcd)->priv) argument 37 struct usb_hcd *hcd = dev_get_drvdata(dev); in ehci_spear_drv_suspend() local 40 return ehci_suspend(hcd, do_wakeup); in ehci_spear_drv_suspend() 45 struct usb_hcd *hcd = dev_get_drvdata(dev); in ehci_spear_drv_resume() local 47 ehci_resume(hcd, false); in ehci_spear_drv_resume() 56 struct usb_hcd *hcd ; in spear_ehci_hcd_drv_probe() local 88 hcd in spear_ehci_hcd_drv_probe() 130 struct usb_hcd *hcd = platform_get_drvdata(pdev); spear_ehci_hcd_drv_remove() local [all...] |
H A D | ehci-xilinx-of.c | 3 * EHCI HCD (Host Controller Driver) for USB. 24 * @hcd: Pointer to the usb_hcd device to which the host controller bound 38 static int ehci_xilinx_port_handed_over(struct usb_hcd *hcd, int portnum) in ehci_xilinx_port_handed_over() argument 40 dev_warn(hcd->self.controller, "port %d cannot be enabled\n", portnum); in ehci_xilinx_port_handed_over() 41 if (hcd->has_tt) { in ehci_xilinx_port_handed_over() 42 dev_warn(hcd->self.controller, in ehci_xilinx_port_handed_over() 45 dev_warn(hcd->self.controller, in ehci_xilinx_port_handed_over() 48 dev_warn(hcd->self.controller, in ehci_xilinx_port_handed_over() 50 dev_warn(hcd->self.controller, in ehci_xilinx_port_handed_over() 52 dev_warn(hcd in ehci_xilinx_port_handed_over() 121 struct usb_hcd *hcd; ehci_hcd_xilinx_of_probe() local 206 struct usb_hcd *hcd = platform_get_drvdata(op); ehci_hcd_xilinx_of_remove() local [all...] |
H A D | ohci-s3c2410.c | 3 * OHCI HCD (Host Controller Driver) for USB. 30 #include <linux/usb/hcd.h> 37 /* clock device associated with the hcd */ 53 static struct s3c2410_hcd_info *to_s3c2410_info(struct usb_hcd *hcd) in to_s3c2410_info() argument 55 return dev_get_platdata(hcd->self.controller); in to_s3c2410_info() 58 static void s3c2410_start_hc(struct platform_device *dev, struct usb_hcd *hcd) in s3c2410_start_hc() argument 70 info->hcd = hcd; in s3c2410_start_hc() 86 info->hcd = NULL; in s3c2410_stop_hc() 103 ohci_s3c2410_hub_status_data(struct usb_hcd *hcd, cha argument 161 ohci_s3c2410_hub_control(struct usb_hcd * hcd,u16 typeReq,u16 wValue,u16 wIndex,char * buf,u16 wLength) ohci_s3c2410_hub_control() argument 335 struct usb_hcd *hcd = platform_get_drvdata(dev); ohci_hcd_s3c2410_remove() local 354 struct usb_hcd *hcd = NULL; ohci_hcd_s3c2410_probe() local 416 struct usb_hcd *hcd = dev_get_drvdata(dev); ohci_hcd_s3c2410_drv_suspend() local 432 struct usb_hcd *hcd = dev_get_drvdata(dev); ohci_hcd_s3c2410_drv_resume() local [all...] |
H A D | ehci-exynos.c | 20 #include <linux/usb/hcd.h> 46 #define to_exynos_ehci(hcd) (struct exynos_ehci_hcd *)(hcd_to_ehci(hcd)->priv) argument 92 struct usb_hcd *hcd = dev_get_drvdata(dev); in exynos_ehci_phy_enable() local 93 struct exynos_ehci_hcd *exynos_ehci = to_exynos_ehci(hcd); in exynos_ehci_phy_enable() 108 struct usb_hcd *hcd = dev_get_drvdata(dev); in exynos_ehci_phy_disable() local 109 struct exynos_ehci_hcd *exynos_ehci = to_exynos_ehci(hcd); in exynos_ehci_phy_disable() 130 struct usb_hcd *hcd; in exynos_ehci_probe() local 147 hcd = usb_create_hcd(&exynos_ehci_hc_driver, in exynos_ehci_probe() 149 if (!hcd) { in exynos_ehci_probe() 223 struct usb_hcd *hcd = platform_get_drvdata(pdev); exynos_ehci_remove() local 237 struct usb_hcd *hcd = dev_get_drvdata(dev); exynos_ehci_suspend() local 256 struct usb_hcd *hcd = dev_get_drvdata(dev); exynos_ehci_resume() local [all...] |
H A D | ohci-sa1111.c | 3 * OHCI HCD (Host Controller Driver) for USB. 44 static void dump_hci_status(struct usb_hcd *hcd, const char *label) 46 unsigned long status = readl_relaxed(hcd->regs + USB_STATUS); 57 static int ohci_sa1111_reset(struct usb_hcd *hcd) in ohci_sa1111_reset() argument 59 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_sa1111_reset() 65 static int ohci_sa1111_start(struct usb_hcd *hcd) in ohci_sa1111_start() argument 67 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_sa1111_start() 73 ohci_stop(hcd); in ohci_sa1111_start() 174 * then invokes the start() method for the HCD associated with it. 178 struct usb_hcd *hcd; in ohci_hcd_sa1111_probe() local 263 struct usb_hcd *hcd = sa1111_get_drvdata(dev); ohci_hcd_sa1111_remove() local 274 struct usb_hcd *hcd = sa1111_get_drvdata(dev); ohci_hcd_sa1111_shutdown() local [all...] |
H A D | ehci-npcm7xx.c | 3 * Nuvoton NPCM7xx driver for EHCI HCD 21 #include <linux/usb/hcd.h> 31 struct usb_hcd *hcd = dev_get_drvdata(dev); in ehci_npcm7xx_drv_suspend() local 34 return ehci_suspend(hcd, do_wakeup); in ehci_npcm7xx_drv_suspend() 39 struct usb_hcd *hcd = dev_get_drvdata(dev); in ehci_npcm7xx_drv_resume() local 41 ehci_resume(hcd, false); in ehci_npcm7xx_drv_resume() 50 struct usb_hcd *hcd; in npcm7xx_ehci_hcd_drv_probe() local 76 hcd = usb_create_hcd(driver, &pdev->dev, dev_name(&pdev->dev)); in npcm7xx_ehci_hcd_drv_probe() 77 if (!hcd) { in npcm7xx_ehci_hcd_drv_probe() 82 hcd in npcm7xx_ehci_hcd_drv_probe() 110 struct usb_hcd *hcd = platform_get_drvdata(pdev); npcm7xx_ehci_hcd_drv_remove() local [all...] |
H A D | ehci-mv.c | 18 #include <linux/usb/hcd.h> 66 static int mv_ehci_reset(struct usb_hcd *hcd) in mv_ehci_reset() argument 68 struct device *dev = hcd->self.controller; in mv_ehci_reset() 69 struct ehci_hcd_mv *ehci_mv = hcd_to_ehci_hcd_mv(hcd); in mv_ehci_reset() 70 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in mv_ehci_reset() 79 hcd->has_tt = 1; in mv_ehci_reset() 81 retval = ehci_setup(hcd); in mv_ehci_reset() 106 struct usb_hcd *hcd; in mv_ehci_probe() local 117 hcd = usb_create_hcd(&ehci_platform_hc_driver, &pdev->dev, dev_name(&pdev->dev)); in mv_ehci_probe() 118 if (!hcd) in mv_ehci_probe() 239 struct usb_hcd *hcd = platform_get_drvdata(pdev); mv_ehci_remove() local 266 struct usb_hcd *hcd = platform_get_drvdata(pdev); mv_ehci_shutdown() local [all...] |
H A D | uhci-grlib.c | 3 * UHCI HCD (Host Controller Driver) for GRLIB GRUSBHC 7 * This file is based on UHCI PCI HCD: 27 static int uhci_grlib_init(struct usb_hcd *hcd) in uhci_grlib_init() argument 29 struct uhci_hcd *uhci = hcd_to_uhci(hcd); in uhci_grlib_init() 45 uhci->rh_numports = uhci_count_ports(hcd); in uhci_grlib_init() 94 struct usb_hcd *hcd; in uhci_hcd_grlib_probe() local 111 hcd = usb_create_hcd(&uhci_grlib_hc_driver, &op->dev, in uhci_hcd_grlib_probe() 113 if (!hcd) in uhci_hcd_grlib_probe() 116 hcd->rsrc_start = res.start; in uhci_hcd_grlib_probe() 117 hcd in uhci_hcd_grlib_probe() 153 struct usb_hcd *hcd = platform_get_drvdata(op); uhci_hcd_grlib_remove() local 172 struct usb_hcd *hcd = platform_get_drvdata(op); uhci_hcd_grlib_shutdown() local [all...] |
/linux/drivers/usb/chipidea/ |
H A D | host.c | 13 #include <linux/usb/hcd.h> 26 static int (*orig_bus_suspend)(struct usb_hcd *hcd); 38 static int ehci_ci_portpower(struct usb_hcd *hcd, int portnum, bool enable) in ehci_ci_portpower() argument 40 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_ci_portpower() 42 struct device *dev = hcd->self.controller; in ehci_ci_portpower() 84 static int ehci_ci_reset(struct usb_hcd *hcd) in ehci_ci_reset() argument 86 struct device *dev = hcd->self.controller; in ehci_ci_reset() 88 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_ci_reset() 91 ret = ehci_setup(hcd); in ehci_ci_reset() 117 return usb_hcd_irq(ci->irq, ci->hcd); in host_irq() 122 struct usb_hcd *hcd; host_start() local 211 struct usb_hcd *hcd = ci->hcd; host_stop() local 242 ci_ehci_hub_control(struct usb_hcd * hcd,u16 typeReq,u16 wValue,u16 wIndex,char * buf,u16 wLength) ci_ehci_hub_control() argument 336 ci_ehci_bus_suspend(struct usb_hcd * hcd) ci_ehci_bus_suspend() argument 440 ci_hdrc_map_urb_for_dma(struct usb_hcd * hcd,struct urb * urb,gfp_t mem_flags) ci_hdrc_map_urb_for_dma() argument 456 ci_hdrc_unmap_urb_for_dma(struct usb_hcd * hcd,struct urb * urb) ci_hdrc_unmap_urb_for_dma() argument [all...] |