Lines Matching refs:dev
210 pm_runtime_get_sync(&ch->mtu->pdev->dev); in sh_mtu2_enable()
211 dev_pm_syscore_device(&ch->mtu->pdev->dev, true); in sh_mtu2_enable()
216 dev_err(&ch->mtu->pdev->dev, "ch%u: cannot enable clock\n", in sh_mtu2_enable()
253 dev_pm_syscore_device(&ch->mtu->pdev->dev, false); in sh_mtu2_disable()
254 pm_runtime_put(&ch->mtu->pdev->dev); in sh_mtu2_disable()
292 dev_info(&ch->mtu->pdev->dev, "ch%u: used for periodic clock events\n", in sh_mtu2_clock_event_set_periodic()
300 dev_pm_genpd_suspend(&ced_to_sh_mtu2(ced)->mtu->pdev->dev); in sh_mtu2_clock_event_suspend()
305 dev_pm_genpd_resume(&ced_to_sh_mtu2(ced)->mtu->pdev->dev); in sh_mtu2_clock_event_resume()
322 dev_info(&ch->mtu->pdev->dev, "ch%u: used for clock events\n", in sh_mtu2_register_clockevent()
357 dev_name(&ch->mtu->pdev->dev), ch); in sh_mtu2_setup_channel()
359 dev_err(&ch->mtu->pdev->dev, "ch%u: failed to request irq %d\n", in sh_mtu2_setup_channel()
367 return sh_mtu2_register(ch, dev_name(&mtu->pdev->dev)); in sh_mtu2_setup_channel()
376 dev_err(&mtu->pdev->dev, "failed to get I/O memory\n"); in sh_mtu2_map_memory()
398 mtu->clk = clk_get(&mtu->pdev->dev, "fck"); in sh_mtu2_setup()
400 dev_err(&mtu->pdev->dev, "cannot get clock\n"); in sh_mtu2_setup()
411 dev_err(&mtu->pdev->dev, "failed to remap I/O memory\n"); in sh_mtu2_setup()
456 pm_runtime_set_active(&pdev->dev); in sh_mtu2_probe()
457 pm_runtime_enable(&pdev->dev); in sh_mtu2_probe()
461 dev_info(&pdev->dev, "kept as earlytimer\n"); in sh_mtu2_probe()
472 pm_runtime_idle(&pdev->dev); in sh_mtu2_probe()
480 pm_runtime_irq_safe(&pdev->dev); in sh_mtu2_probe()
482 pm_runtime_idle(&pdev->dev); in sh_mtu2_probe()