Lines Matching refs:dev
1560 udc->gadget.dev.of_node = udc->pdev->dev.of_node; in at91_start()
1585 static void at91udc_shutdown(struct platform_device *dev) in at91udc_shutdown() argument
1587 struct at91_udc *udc = platform_get_drvdata(dev); in at91udc_shutdown()
1592 pullup(platform_get_drvdata(dev), 0); in at91udc_shutdown()
1698 udc->matrix = syscon_regmap_lookup_by_phandle(udc->pdev->dev.of_node, in at91sam9261_udc_init()
1798 struct device *dev = &pdev->dev; in at91udc_probe() local
1804 udc = devm_kzalloc(dev, sizeof(*udc), GFP_KERNEL); in at91udc_probe()
1809 udc->gadget.dev.parent = dev; in at91udc_probe()
1810 at91udc_of_init(udc, pdev->dev.of_node); in at91udc_probe()
1818 udc->gadget.dev.init_name = "gadget"; in at91udc_probe()
1844 udc->iclk = devm_clk_get(dev, "pclk"); in at91udc_probe()
1848 udc->fclk = devm_clk_get(dev, "hclk"); in at91udc_probe()
1872 retval = devm_request_irq(dev, udc->udp_irq, at91_udc_irq, 0, in at91udc_probe()
1894 retval = devm_request_irq(dev, in at91udc_probe()
1907 retval = usb_add_gadget_udc(dev, &udc->gadget); in at91udc_probe()
1910 dev_set_drvdata(dev, udc); in at91udc_probe()
1911 device_init_wakeup(dev, 1); in at91udc_probe()
1942 device_init_wakeup(&pdev->dev, 0); in at91udc_remove()
1954 int wake = udc->driver && device_may_wakeup(&pdev->dev); in at91udc_suspend()