Lines Matching refs:ofdev
2339 static struct qe_udc *qe_udc_config(struct platform_device *ofdev) in qe_udc_config() argument
2342 struct device_node *np = ofdev->dev.of_node; in qe_udc_config()
2351 dev_err(&ofdev->dev, "malloc udc failed\n"); in qe_udc_config()
2355 udc->dev = &ofdev->dev; in qe_udc_config()
2476 static int qe_udc_probe(struct platform_device *ofdev) in qe_udc_probe() argument
2480 struct device_node *np = ofdev->dev.of_node; in qe_udc_probe()
2486 match = of_match_device(qe_udc_match, &ofdev->dev); in qe_udc_probe()
2495 udc = qe_udc_config(ofdev); in qe_udc_probe()
2497 dev_err(&ofdev->dev, "failed to initialize\n"); in qe_udc_probe()
2526 udc->gadget.dev.parent = &ofdev->dev; in qe_udc_probe()
2544 udc->nullbuf = devm_kzalloc(&ofdev->dev, 256, GFP_KERNEL); in qe_udc_probe()
2551 udc->statusbuf = devm_kzalloc(&ofdev->dev, 2, GFP_KERNEL); in qe_udc_probe()
2588 ret = usb_add_gadget_udc_release(&ofdev->dev, &udc->gadget, in qe_udc_probe()
2593 platform_set_drvdata(ofdev, udc); in qe_udc_probe()
2639 static int qe_udc_remove(struct platform_device *ofdev) in qe_udc_remove() argument
2641 struct qe_udc *udc = platform_get_drvdata(ofdev); in qe_udc_remove()