Lines Matching refs:glue
266 struct sunxi_glue *glue = to_sunxi_glue(musb->controller); in sunxi_musb_init() local
272 setbits_le32(&glue->ccm->ahb_gate0, 1 << AHB_GATE_OFFSET_USB0); in sunxi_musb_init()
274 setbits_le32(&glue->ccm->ahb_reset0_cfg, 1 << AHB_GATE_OFFSET_USB0); in sunxi_musb_init()
320 struct sunxi_glue *glue = dev_get_priv(dev); in musb_usb_probe() local
321 struct musb_host_data *host = &glue->mdata; in musb_usb_probe()
329 glue->ccm = (struct sunxi_ccm_reg *)SUNXI_CCM_BASE; in musb_usb_probe()
330 if (IS_ERR(glue->ccm)) in musb_usb_probe()
331 return PTR_ERR(glue->ccm); in musb_usb_probe()
336 host->host = musb_init_controller(&musb_plat, &glue->dev, base); in musb_usb_probe()
344 ret = musb_register(&musb_plat, &glue->dev, base); in musb_usb_probe()
354 struct sunxi_glue *glue = dev_get_priv(dev); in musb_usb_remove() local
355 struct musb_host_data *host = &glue->mdata; in musb_usb_remove()
361 clrbits_le32(&glue->ccm->ahb_reset0_cfg, 1 << AHB_GATE_OFFSET_USB0); in musb_usb_remove()
363 clrbits_le32(&glue->ccm->ahb_gate0, 1 << AHB_GATE_OFFSET_USB0); in musb_usb_remove()