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()
2465 static int qe_udc_probe(struct platform_device *ofdev) in qe_udc_probe() argument
2469 struct device_node *np = ofdev->dev.of_node; in qe_udc_probe()
2475 match = of_match_device(qe_udc_match, &ofdev->dev); in qe_udc_probe()
2484 udc = qe_udc_config(ofdev); in qe_udc_probe()
2486 dev_err(&ofdev->dev, "failed to initialize\n"); in qe_udc_probe()
2515 udc->gadget.dev.parent = &ofdev->dev; in qe_udc_probe()
2533 udc->nullbuf = devm_kzalloc(&ofdev->dev, 256, GFP_KERNEL); in qe_udc_probe()
2540 udc->statusbuf = devm_kzalloc(&ofdev->dev, 2, GFP_KERNEL); in qe_udc_probe()
2577 ret = usb_add_gadget_udc_release(&ofdev->dev, &udc->gadget, in qe_udc_probe()
2582 platform_set_drvdata(ofdev, udc); in qe_udc_probe()
2628 static int qe_udc_remove(struct platform_device *ofdev) in qe_udc_remove() argument
2630 struct qe_udc *udc = platform_get_drvdata(ofdev); in qe_udc_remove()