Lines Matching refs:dev

72 	struct retu_dev *rdev = dev_get_drvdata(tu->pt_dev->dev.parent);  in check_vbus_state()
95 dev_info(&tu->pt_dev->dev, "USB cable connected\n"); in check_vbus_state()
110 dev_info(&tu->pt_dev->dev, "USB cable disconnected\n"); in check_vbus_state()
117 sysfs_notify(&tu->pt_dev->dev.kobj, NULL, "vbus_state"); in check_vbus_state()
123 struct retu_dev *rdev = dev_get_drvdata(tu->pt_dev->dev.parent); in tahvo_usb_become_host()
142 struct retu_dev *rdev = dev_get_drvdata(tu->pt_dev->dev.parent); in tahvo_usb_become_peripheral()
163 struct retu_dev *rdev = dev_get_drvdata(tu->pt_dev->dev.parent); in tahvo_usb_power_off()
174 static int tahvo_usb_set_suspend(struct usb_phy *dev, int suspend) in tahvo_usb_set_suspend() argument
176 struct tahvo_usb *tu = container_of(dev, struct tahvo_usb, phy); in tahvo_usb_set_suspend()
177 struct retu_dev *rdev = dev_get_drvdata(tu->pt_dev->dev.parent); in tahvo_usb_set_suspend()
180 dev_dbg(&tu->pt_dev->dev, "%s\n", __func__); in tahvo_usb_set_suspend()
320 struct retu_dev *rdev = dev_get_drvdata(pdev->dev.parent); in tahvo_usb_probe()
324 tu = devm_kzalloc(&pdev->dev, sizeof(*tu), GFP_KERNEL); in tahvo_usb_probe()
328 tu->phy.otg = devm_kzalloc(&pdev->dev, sizeof(*tu->phy.otg), in tahvo_usb_probe()
344 tu->ick = devm_clk_get(&pdev->dev, "usb_l4_ick"); in tahvo_usb_probe()
353 tu->extcon = devm_extcon_dev_allocate(&pdev->dev, tahvo_cable); in tahvo_usb_probe()
355 dev_err(&pdev->dev, "failed to allocate memory for extcon\n"); in tahvo_usb_probe()
360 ret = devm_extcon_dev_register(&pdev->dev, tu->extcon); in tahvo_usb_probe()
362 dev_err(&pdev->dev, "could not register extcon device: %d\n", in tahvo_usb_probe()
374 tu->phy.dev = &pdev->dev; in tahvo_usb_probe()
385 dev_err(&pdev->dev, "cannot register USB transceiver: %d\n", in tahvo_usb_probe()
390 dev_set_drvdata(&pdev->dev, tu); in tahvo_usb_probe()
399 dev_err(&pdev->dev, "could not register tahvo-vbus irq: %d\n", in tahvo_usb_probe()