| /Linux-v4.19/include/linux/usb/ |
| D | hcd.h | 75 struct usb_hcd { struct 193 struct usb_hcd *shared_hcd; argument 194 struct usb_hcd *primary_hcd; argument 228 static inline struct usb_bus *hcd_to_bus(struct usb_hcd *hcd) in hcd_to_bus() argument 233 static inline struct usb_hcd *bus_to_hcd(struct usb_bus *bus) in bus_to_hcd() 235 return container_of(bus, struct usb_hcd, self); in bus_to_hcd() 252 irqreturn_t (*irq) (struct usb_hcd *hcd); 268 int (*reset) (struct usb_hcd *hcd); 269 int (*start) (struct usb_hcd *hcd); 275 int (*pci_suspend)(struct usb_hcd *hcd, bool do_wakeup); [all …]
|
| D | ehci-dbgp.h | 51 struct usb_hcd; 54 extern int xen_dbgp_reset_prep(struct usb_hcd *); 55 extern int xen_dbgp_external_startup(struct usb_hcd *); 57 static inline int xen_dbgp_reset_prep(struct usb_hcd *hcd) in xen_dbgp_reset_prep() 62 static inline int xen_dbgp_external_startup(struct usb_hcd *hcd) in xen_dbgp_external_startup() 70 extern int dbgp_external_startup(struct usb_hcd *); 71 extern int dbgp_reset_prep(struct usb_hcd *); 73 static inline int dbgp_reset_prep(struct usb_hcd *hcd) in dbgp_reset_prep() 78 static inline int dbgp_external_startup(struct usb_hcd *hcd) in dbgp_external_startup()
|
| /Linux-v4.19/drivers/usb/host/whci/ |
| D | hcd.c | 21 static int whc_reset(struct usb_hcd *usb_hcd) in whc_reset() argument 33 static int whc_start(struct usb_hcd *usb_hcd) in whc_start() argument 35 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in whc_start() 60 usb_hcd->uses_new_polling = 1; in whc_start() 61 set_bit(HCD_FLAG_POLL_RH, &usb_hcd->flags); in whc_start() 62 usb_hcd->state = HC_STATE_RUNNING; in whc_start() 77 static void whc_stop(struct usb_hcd *usb_hcd) in whc_stop() argument 79 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in whc_stop() 96 static int whc_get_frame_number(struct usb_hcd *usb_hcd) in whc_get_frame_number() argument 106 static int whc_urb_enqueue(struct usb_hcd *usb_hcd, struct urb *urb, in whc_urb_enqueue() argument [all …]
|
| /Linux-v4.19/drivers/usb/wusbcore/ |
| D | wusbhc.h | 234 struct usb_hcd usb_hcd; /* HAS TO BE 1st */ member 292 #define usb_hcd_to_wusbhc(u) container_of((u), struct wusbhc, usb_hcd) 322 struct usb_hcd *usb_hcd_get_by_usb_dev(struct usb_device *usb_dev) in usb_hcd_get_by_usb_dev() 324 struct usb_hcd *usb_hcd; in usb_hcd_get_by_usb_dev() local 325 usb_hcd = bus_to_hcd(usb_dev->bus); in usb_hcd_get_by_usb_dev() 326 return usb_get_hcd(usb_hcd); in usb_hcd_get_by_usb_dev() 336 return usb_get_hcd(&wusbhc->usb_hcd) ? wusbhc : NULL; in wusbhc_get() 352 struct usb_hcd *usb_hcd; in wusbhc_get_by_usb_dev() local 359 usb_hcd = usb_hcd_get_by_usb_dev(usb_dev); in wusbhc_get_by_usb_dev() 360 if (usb_hcd == NULL) in wusbhc_get_by_usb_dev() [all …]
|
| D | rh.c | 127 int wusbhc_rh_status_data(struct usb_hcd *usb_hcd, char *_buf) in wusbhc_rh_status_data() argument 129 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in wusbhc_rh_status_data() 346 int wusbhc_rh_control(struct usb_hcd *usb_hcd, u16 reqntype, u16 wValue, in wusbhc_rh_control() argument 350 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in wusbhc_rh_control() 381 "UNIMPLEMENTED\n", __func__, usb_hcd, wusbhc, reqntype, in wusbhc_rh_control() 390 int wusbhc_rh_start_port_reset(struct usb_hcd *usb_hcd, unsigned port_idx) in wusbhc_rh_start_port_reset() argument 392 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in wusbhc_rh_start_port_reset() 394 __func__, usb_hcd, wusbhc, port_idx); in wusbhc_rh_start_port_reset()
|
| /Linux-v4.19/drivers/usb/host/ |
| D | hwa-hc.c | 103 static int hwahc_op_reset(struct usb_hcd *usb_hcd) in hwahc_op_reset() argument 106 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in hwahc_op_reset() 130 static int hwahc_op_start(struct usb_hcd *usb_hcd) in hwahc_op_start() argument 134 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in hwahc_op_start() 146 usb_hcd->uses_new_polling = 1; in hwahc_op_start() 147 set_bit(HCD_FLAG_POLL_RH, &usb_hcd->flags); in hwahc_op_start() 148 usb_hcd->state = HC_STATE_RUNNING; in hwahc_op_start() 154 pm_runtime_get_noresume(&usb_hcd->self.root_hub->dev); in hwahc_op_start() 174 static void hwahc_op_stop(struct usb_hcd *usb_hcd) in hwahc_op_stop() argument 176 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in hwahc_op_stop() [all …]
|
| D | xhci-rcar.h | 16 void xhci_rcar_start(struct usb_hcd *hcd); 17 int xhci_rcar_init_quirk(struct usb_hcd *hcd); 18 int xhci_rcar_resume_quirk(struct usb_hcd *hcd); 20 static inline void xhci_rcar_start(struct usb_hcd *hcd) in xhci_rcar_start() 24 static inline int xhci_rcar_init_quirk(struct usb_hcd *hcd) in xhci_rcar_init_quirk() 29 static inline int xhci_rcar_resume_quirk(struct usb_hcd *hcd) in xhci_rcar_resume_quirk()
|
| D | ohci-pci.c | 35 static int broken_suspend(struct usb_hcd *hcd) in broken_suspend() 44 static int ohci_quirk_amd756(struct usb_hcd *hcd) in ohci_quirk_amd756() 59 static int ohci_quirk_opti(struct usb_hcd *hcd) in ohci_quirk_opti() 72 static int ohci_quirk_ns(struct usb_hcd *hcd) in ohci_quirk_ns() 94 static int ohci_quirk_zfmicro(struct usb_hcd *hcd) in ohci_quirk_zfmicro() 107 static int ohci_quirk_toshiba_scc(struct usb_hcd *hcd) in ohci_quirk_toshiba_scc() 140 static int ohci_quirk_nec(struct usb_hcd *hcd) in ohci_quirk_nec() 151 static int ohci_quirk_amd700(struct usb_hcd *hcd) in ohci_quirk_amd700() 168 static int ohci_quirk_qemu(struct usb_hcd *hcd) in ohci_quirk_qemu() 242 static int ohci_pci_reset (struct usb_hcd *hcd) in ohci_pci_reset() [all …]
|
| D | ohci-da8xx.c | 32 static int (*orig_ohci_hub_control)(struct usb_hcd *hcd, u16 typeReq, 34 static int (*orig_ohci_hub_status_data)(struct usb_hcd *hcd, char *buf); 37 struct usb_hcd *hcd; 50 static int ohci_da8xx_enable(struct usb_hcd *hcd) in ohci_da8xx_enable() 77 static void ohci_da8xx_disable(struct usb_hcd *hcd) in ohci_da8xx_disable() 86 static int ohci_da8xx_set_power(struct usb_hcd *hcd, int on) in ohci_da8xx_set_power() 119 static int ohci_da8xx_get_power(struct usb_hcd *hcd) in ohci_da8xx_get_power() 134 static int ohci_da8xx_get_oci(struct usb_hcd *hcd) in ohci_da8xx_get_oci() 158 static int ohci_da8xx_has_set_power(struct usb_hcd *hcd) in ohci_da8xx_has_set_power() 173 static int ohci_da8xx_has_oci(struct usb_hcd *hcd) in ohci_da8xx_has_oci() [all …]
|
| D | xhci-mtk.h | 109 struct usb_hcd *hcd; 133 static inline struct xhci_hcd_mtk *hcd_to_mtk(struct usb_hcd *hcd) in hcd_to_mtk() 141 int xhci_mtk_add_ep_quirk(struct usb_hcd *hcd, struct usb_device *udev, 143 void xhci_mtk_drop_ep_quirk(struct usb_hcd *hcd, struct usb_device *udev, 147 static inline int xhci_mtk_add_ep_quirk(struct usb_hcd *hcd, in xhci_mtk_add_ep_quirk() 153 static inline void xhci_mtk_drop_ep_quirk(struct usb_hcd *hcd, in xhci_mtk_drop_ep_quirk()
|
| D | max3421-hcd.c | 341 hcd_to_max3421(struct usb_hcd *hcd) in hcd_to_max3421() 346 static inline struct usb_hcd * 349 return container_of((void *) max3421_hcd, struct usb_hcd, hcd_priv); in max3421_to_hcd() 353 spi_rd8(struct usb_hcd *hcd, unsigned int reg) in spi_rd8() 379 spi_wr8(struct usb_hcd *hcd, unsigned int reg, u8 val) in spi_wr8() 403 spi_rd_buf(struct usb_hcd *hcd, unsigned int reg, void *buf, size_t len) in spi_rd_buf() 429 spi_wr_buf(struct usb_hcd *hcd, unsigned int reg, void *buf, size_t len) in spi_wr_buf() 469 max3421_set_speed(struct usb_hcd *hcd, struct usb_device *dev) in max3421_set_speed() 495 max3421_set_address(struct usb_hcd *hcd, struct usb_device *dev, int epnum, in max3421_set_address() 540 max3421_ctrl_setup(struct usb_hcd *hcd, struct urb *urb) in max3421_ctrl_setup() [all …]
|
| D | xhci-plat.c | 29 static int xhci_plat_setup(struct usb_hcd *hcd); 30 static int xhci_plat_start(struct usb_hcd *hcd); 38 static void xhci_priv_plat_start(struct usb_hcd *hcd) in xhci_priv_plat_start() 46 static int xhci_priv_init_quirk(struct usb_hcd *hcd) in xhci_priv_init_quirk() 56 static int xhci_priv_resume_quirk(struct usb_hcd *hcd) in xhci_priv_resume_quirk() 77 static int xhci_plat_setup(struct usb_hcd *hcd) in xhci_plat_setup() 89 static int xhci_plat_start(struct usb_hcd *hcd) in xhci_plat_start() 159 struct usb_hcd *hcd; in xhci_plat_probe() 358 struct usb_hcd *hcd = platform_get_drvdata(dev); in xhci_plat_remove() 383 struct usb_hcd *hcd = dev_get_drvdata(dev); in xhci_plat_suspend() [all …]
|
| D | xhci-mvebu.h | 11 struct usb_hcd; 14 int xhci_mvebu_mbus_init_quirk(struct usb_hcd *hcd); 16 static inline int xhci_mvebu_mbus_init_quirk(struct usb_hcd *hcd) in xhci_mvebu_mbus_init_quirk()
|
| D | xhci-plat.h | 15 void (*plat_start)(struct usb_hcd *); 16 int (*init_quirk)(struct usb_hcd *); 17 int (*resume_quirk)(struct usb_hcd *);
|
| D | ohci-sa1111.c | 44 static void dump_hci_status(struct usb_hcd *hcd, const char *label) 57 static int ohci_sa1111_reset(struct usb_hcd *hcd) in ohci_sa1111_reset() 65 static int ohci_sa1111_start(struct usb_hcd *hcd) in ohci_sa1111_start() 181 struct usb_hcd *hcd; in ohci_hcd_sa1111_probe() 241 struct usb_hcd *hcd = sa1111_get_drvdata(dev); in ohci_hcd_sa1111_remove() 254 struct usb_hcd *hcd = sa1111_get_drvdata(dev); in ohci_hcd_sa1111_shutdown()
|
| D | ohci-s3c2410.c | 55 static struct s3c2410_hcd_info *to_s3c2410_info(struct usb_hcd *hcd) in to_s3c2410_info() 60 static void s3c2410_start_hc(struct platform_device *dev, struct usb_hcd *hcd) in s3c2410_start_hc() 105 ohci_s3c2410_hub_status_data(struct usb_hcd *hcd, char *buf) in ohci_s3c2410_hub_status_data() 163 struct usb_hcd *hcd, in ohci_s3c2410_hub_control() 296 struct usb_hcd *hcd; in s3c2410_hcd_oc() 340 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_hcd_s3c2410_remove() 359 struct usb_hcd *hcd = NULL; in ohci_hcd_s3c2410_probe() 415 struct usb_hcd *hcd = dev_get_drvdata(dev); in ohci_hcd_s3c2410_drv_suspend() 431 struct usb_hcd *hcd = dev_get_drvdata(dev); in ohci_hcd_s3c2410_drv_resume()
|
| D | xhci-rcar.c | 87 static void xhci_rcar_start_gen2(struct usb_hcd *hcd) in xhci_rcar_start_gen2() 119 void xhci_rcar_start(struct usb_hcd *hcd) in xhci_rcar_start() 133 static int xhci_rcar_download_firmware(struct usb_hcd *hcd) in xhci_rcar_download_firmware() 210 static bool xhci_rcar_wait_for_pll_active(struct usb_hcd *hcd) in xhci_rcar_wait_for_pll_active() 227 int xhci_rcar_init_quirk(struct usb_hcd *hcd) in xhci_rcar_init_quirk() 252 int xhci_rcar_resume_quirk(struct usb_hcd *hcd) in xhci_rcar_resume_quirk()
|
| D | ehci-atmel.c | 68 struct usb_hcd *hcd = platform_get_drvdata(pdev); in atmel_start_ehci() 77 struct usb_hcd *hcd = platform_get_drvdata(pdev); in atmel_stop_ehci() 88 struct usb_hcd *hcd; in ehci_atmel_drv_probe() 175 struct usb_hcd *hcd = platform_get_drvdata(pdev); in ehci_atmel_drv_remove() 187 struct usb_hcd *hcd = dev_get_drvdata(dev); in ehci_atmel_drv_suspend() 201 struct usb_hcd *hcd = dev_get_drvdata(dev); in ehci_atmel_drv_resume()
|
| /Linux-v4.19/drivers/staging/greybus/ |
| D | usb.c | 38 static inline struct gb_usb_device *to_gb_usb_device(struct usb_hcd *hcd) in to_gb_usb_device() 43 static inline struct usb_hcd *gb_usb_device_to_hcd(struct gb_usb_device *dev) in gb_usb_device_to_hcd() 45 return container_of((void *)dev, struct usb_hcd, hcd_priv); in gb_usb_device_to_hcd() 48 static void hcd_stop(struct usb_hcd *hcd) in hcd_stop() 59 static int hcd_start(struct usb_hcd *hcd) in hcd_start() 78 static int urb_enqueue(struct usb_hcd *hcd, struct urb *urb, gfp_t mem_flags) in urb_enqueue() 83 static int urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) in urb_dequeue() 88 static int get_frame_number(struct usb_hcd *hcd) in get_frame_number() 93 static int hub_status_data(struct usb_hcd *hcd, char *buf) in hub_status_data() 98 static int hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, u16 wIndex, in hub_control() [all …]
|
| /Linux-v4.19/drivers/usb/core/ |
| D | hcd-pci.c | 42 typedef void (*companion_fn)(struct pci_dev *pdev, struct usb_hcd *hcd, 43 struct pci_dev *companion, struct usb_hcd *companion_hcd); 46 static void for_each_companion(struct pci_dev *pdev, struct usb_hcd *hcd, in for_each_companion() 50 struct usb_hcd *companion_hcd; in for_each_companion() 85 static void ehci_pre_add(struct pci_dev *pdev, struct usb_hcd *hcd, in ehci_pre_add() 86 struct pci_dev *companion, struct usb_hcd *companion_hcd) in ehci_pre_add() 102 static void ehci_post_add(struct pci_dev *pdev, struct usb_hcd *hcd, in ehci_post_add() 103 struct pci_dev *companion, struct usb_hcd *companion_hcd) in ehci_post_add() 123 static void non_ehci_add(struct pci_dev *pdev, struct usb_hcd *hcd, in non_ehci_add() 124 struct pci_dev *companion, struct usb_hcd *companion_hcd) in non_ehci_add() [all …]
|
| D | hcd.c | 435 rh_string(int id, struct usb_hcd const *hcd, u8 *data, unsigned len) in rh_string() 474 static int rh_call_control (struct usb_hcd *hcd, struct urb *urb) in rh_call_control() 749 void usb_hcd_poll_rh_status(struct usb_hcd *hcd) in usb_hcd_poll_rh_status() 795 struct usb_hcd *_hcd = from_timer(_hcd, t, rh_timer); in rh_timer_func() 802 static int rh_queue_status (struct usb_hcd *hcd, struct urb *urb) in rh_queue_status() 833 static int rh_urb_enqueue (struct usb_hcd *hcd, struct urb *urb) in rh_urb_enqueue() 847 static int usb_rh_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) in usb_rh_urb_dequeue() 884 struct usb_hcd *hcd; in authorized_default_show() 898 struct usb_hcd *hcd; in authorized_default_store() 927 struct usb_hcd *hcd = bus_to_hcd(usb_dev->bus); in interface_authorized_default_show() [all …]
|
| /Linux-v4.19/drivers/usb/c67x00/ |
| D | c67x00-hcd.h | 87 static inline struct c67x00_hcd *hcd_to_c67x00_hcd(struct usb_hcd *hcd) in hcd_to_c67x00_hcd() 92 static inline struct usb_hcd *c67x00_hcd_to_hcd(struct c67x00_hcd *c67x00) in c67x00_hcd_to_hcd() 94 return container_of((void *)c67x00, struct usb_hcd, hcd_priv); in c67x00_hcd_to_hcd() 107 int c67x00_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, gfp_t mem_flags); 108 int c67x00_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status); 109 void c67x00_endpoint_disable(struct usb_hcd *hcd,
|
| D | c67x00-hcd.c | 47 static int c67x00_hub_status_data(struct usb_hcd *hcd, char *buf) in c67x00_hub_status_data() 66 static int c67x00_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in c67x00_hub_control() 239 struct usb_hcd *hcd = c67x00_hcd_to_hcd(c67x00); in c67x00_hcd_irq() 266 static int c67x00_hcd_start(struct usb_hcd *hcd) in c67x00_hcd_start() 278 static void c67x00_hcd_stop(struct usb_hcd *hcd) in c67x00_hcd_stop() 283 static int c67x00_hcd_get_frame(struct usb_hcd *hcd) in c67x00_hcd_get_frame() 332 struct usb_hcd *hcd; in c67x00_hcd_probe() 394 struct usb_hcd *hcd = c67x00_hcd_to_hcd(c67x00); in c67x00_hcd_remove()
|
| /Linux-v4.19/drivers/usb/usbip/ |
| D | vhci.h | 149 static inline struct vhci_hcd *hcd_to_vhci_hcd(struct usb_hcd *hcd) in hcd_to_vhci_hcd() 154 static inline struct device *hcd_dev(struct usb_hcd *hcd) in hcd_dev() 159 static inline const char *hcd_name(struct usb_hcd *hcd) in hcd_name() 164 static inline struct usb_hcd *vhci_hcd_to_hcd(struct vhci_hcd *vhci_hcd) in vhci_hcd_to_hcd() 166 return container_of((void *) vhci_hcd, struct usb_hcd, hcd_priv); in vhci_hcd_to_hcd()
|
| /Linux-v4.19/drivers/usb/musb/ |
| D | musb_host.h | 55 extern struct musb *hcd_to_musb(struct usb_hcd *); 74 static inline struct musb *hcd_to_musb(struct usb_hcd *hcd) in hcd_to_musb() 110 struct usb_hcd; 112 extern int musb_hub_status_data(struct usb_hcd *hcd, char *buf); 113 extern int musb_hub_control(struct usb_hcd *hcd,
|