• Home
  • Raw
  • Download

Lines Matching refs:usb_dev

179 static int bcma_hcd_usb20_old_arm_init(struct bcma_hcd_device *usb_dev)  in bcma_hcd_usb20_old_arm_init()  argument
181 struct bcma_device *core = usb_dev->core; in bcma_hcd_usb20_old_arm_init()
286 struct bcma_hcd_device *usb_dev = bcma_get_drvdata(dev); in bcma_hci_platform_power_gpio() local
288 if (IS_ERR_OR_NULL(usb_dev->gpio_desc)) in bcma_hci_platform_power_gpio()
291 gpiod_set_value(usb_dev->gpio_desc, val); in bcma_hci_platform_power_gpio()
344 static int bcma_hcd_usb20_init(struct bcma_hcd_device *usb_dev) in bcma_hcd_usb20_init() argument
346 struct bcma_device *dev = usb_dev->core; in bcma_hcd_usb20_init()
363 usb_dev->ohci_dev = bcma_hcd_create_pdev(dev, "ohci-platform", in bcma_hcd_usb20_init()
366 if (IS_ERR(usb_dev->ohci_dev)) in bcma_hcd_usb20_init()
367 return PTR_ERR(usb_dev->ohci_dev); in bcma_hcd_usb20_init()
369 usb_dev->ehci_dev = bcma_hcd_create_pdev(dev, "ehci-platform", in bcma_hcd_usb20_init()
372 if (IS_ERR(usb_dev->ehci_dev)) { in bcma_hcd_usb20_init()
373 err = PTR_ERR(usb_dev->ehci_dev); in bcma_hcd_usb20_init()
380 platform_device_unregister(usb_dev->ohci_dev); in bcma_hcd_usb20_init()
399 struct bcma_hcd_device *usb_dev; in bcma_hcd_probe() local
403 usb_dev = devm_kzalloc(&core->dev, sizeof(struct bcma_hcd_device), in bcma_hcd_probe()
405 if (!usb_dev) in bcma_hcd_probe()
407 usb_dev->core = core; in bcma_hcd_probe()
410 usb_dev->gpio_desc = devm_gpiod_get(&core->dev, "vcc", in bcma_hcd_probe()
416 err = bcma_hcd_usb20_old_arm_init(usb_dev); in bcma_hcd_probe()
418 err = bcma_hcd_usb20_init(usb_dev); in bcma_hcd_probe()
423 err = bcma_hcd_usb20_ns_init(usb_dev); in bcma_hcd_probe()
426 err = bcma_hcd_usb30_init(usb_dev); in bcma_hcd_probe()
434 bcma_set_drvdata(core, usb_dev); in bcma_hcd_probe()
440 struct bcma_hcd_device *usb_dev = bcma_get_drvdata(dev); in bcma_hcd_remove() local
441 struct platform_device *ohci_dev = usb_dev->ohci_dev; in bcma_hcd_remove()
442 struct platform_device *ehci_dev = usb_dev->ehci_dev; in bcma_hcd_remove()