• Home
  • Raw
  • Download

Lines Matching refs:glue

226 	struct sunxi_glue *glue = to_sunxi_glue(musb->controller);  in sunxi_musb_enable()  local
241 ret = sun4i_usb_phy_vbus_detect(&glue->phy); in sunxi_musb_enable()
247 ret = sun4i_usb_phy_id_detect(&glue->phy); in sunxi_musb_enable()
253 ret = generic_phy_power_on(&glue->phy); in sunxi_musb_enable()
268 struct sunxi_glue *glue = to_sunxi_glue(musb->controller); in sunxi_musb_disable() local
277 ret = generic_phy_power_off(&glue->phy); in sunxi_musb_disable()
292 struct sunxi_glue *glue = to_sunxi_glue(musb->controller); in sunxi_musb_init() local
297 ret = clk_enable(&glue->clk); in sunxi_musb_init()
303 if (reset_valid(&glue->rst)) { in sunxi_musb_init()
304 ret = reset_deassert(&glue->rst); in sunxi_musb_init()
311 ret = generic_phy_init(&glue->phy); in sunxi_musb_init()
335 if (reset_valid(&glue->rst)) in sunxi_musb_init()
336 reset_assert(&glue->rst); in sunxi_musb_init()
338 clk_disable(&glue->clk); in sunxi_musb_init()
344 struct sunxi_glue *glue = to_sunxi_glue(musb->controller); in sunxi_musb_exit() local
347 if (generic_phy_valid(&glue->phy)) { in sunxi_musb_exit()
348 ret = generic_phy_exit(&glue->phy); in sunxi_musb_exit()
355 if (reset_valid(&glue->rst)) in sunxi_musb_exit()
356 reset_assert(&glue->rst); in sunxi_musb_exit()
357 clk_disable(&glue->clk); in sunxi_musb_exit()
364 struct sunxi_glue *glue = to_sunxi_glue(musb->controller); in sunxi_musb_pre_root_reset_end() local
366 sun4i_usb_phy_set_squelch_detect(&glue->phy, false); in sunxi_musb_pre_root_reset_end()
371 struct sunxi_glue *glue = to_sunxi_glue(musb->controller); in sunxi_musb_post_root_reset_end() local
373 sun4i_usb_phy_set_squelch_detect(&glue->phy, true); in sunxi_musb_post_root_reset_end()
437 struct sunxi_glue *glue = dev_get_priv(dev); in musb_usb_probe() local
438 struct musb_host_data *host = &glue->mdata; in musb_usb_probe()
450 glue->cfg = (struct sunxi_musb_config *)dev_get_driver_data(dev); in musb_usb_probe()
451 if (!glue->cfg) in musb_usb_probe()
454 ret = clk_get_by_index(dev, 0, &glue->clk); in musb_usb_probe()
460 ret = reset_get_by_index(dev, 0, &glue->rst); in musb_usb_probe()
466 ret = generic_phy_get_by_name(dev, "usb", &glue->phy); in musb_usb_probe()
475 pdata.config = glue->cfg->config; in musb_usb_probe()
481 host->host = musb_init_controller(&pdata, &glue->dev, base); in musb_usb_probe()
490 host->host = musb_register(&pdata, &glue->dev, base); in musb_usb_probe()
502 struct sunxi_glue *glue = dev_get_priv(dev); in musb_usb_remove() local
503 struct musb_host_data *host = &glue->mdata; in musb_usb_remove()