Lines Matching refs:glue
62 struct omap2430_glue *glue = _glue;
64 if (!glue) {
68 glue->status = status;
70 if (!glue_to_musb(glue)) {
75 schedule_work(&glue->omap_musb_mailbox_work);
87 static void omap_musb_set_mailbox(struct omap2430_glue *glue)
89 struct musb *musb = glue_to_musb(glue);
98 switch (glue->status) {
121 omap_control_usb_set_mode(glue->control_otghs,
134 omap_control_usb_set_mode(glue->control_otghs, USB_MODE_DEVICE);
144 omap_control_usb_set_mode(glue->control_otghs,
159 struct omap2430_glue *glue = container_of(mailbox_work,
162 omap_musb_set_mailbox(glue);
251 struct omap2430_glue *glue = dev_get_drvdata(dev->parent);
253 if (glue->status == MUSB_UNKNOWN)
254 glue->status = MUSB_VBUS_OFF;
255 omap_musb_set_mailbox(glue);
261 struct omap2430_glue *glue = dev_get_drvdata(dev->parent);
263 if (glue->status != MUSB_UNKNOWN)
264 omap_control_usb_set_mode(glue->control_otghs,
271 struct omap2430_glue *glue = dev_get_drvdata(dev->parent);
277 cancel_work_sync(&glue->omap_musb_mailbox_work);
305 struct omap2430_glue *glue;
315 glue = devm_kzalloc(&pdev->dev, sizeof(*glue), GFP_KERNEL);
316 if (!glue)
329 glue->dev = &pdev->dev;
330 glue->musb = musb;
331 glue->status = MUSB_UNKNOWN;
332 glue->control_otghs = ERR_PTR(-ENODEV);
369 glue->control_otghs = &control_pdev->dev;
374 platform_set_drvdata(pdev, glue);
380 _glue = glue;
382 INIT_WORK(&glue->omap_musb_mailbox_work, omap_musb_mailbox_work);
415 pm_runtime_enable(glue->dev);
426 pm_runtime_disable(glue->dev);
437 struct omap2430_glue *glue = platform_get_drvdata(pdev);
439 platform_device_unregister(glue->musb);
440 pm_runtime_disable(glue->dev);
449 struct omap2430_glue *glue = dev_get_drvdata(dev);
450 struct musb *musb = glue_to_musb(glue);
468 struct omap2430_glue *glue = dev_get_drvdata(dev);
469 struct musb *musb = glue_to_musb(glue);