static int power_off_host(struct platform_device *dev) { struct nvhost_master *host = nvhost_get_private_data(dev); nvhost_syncpt_save(&host->syncpt); return 0; }
static int __exit nvhost_remove(struct platform_device *dev) { struct nvhost_master *host = nvhost_get_private_data(dev); nvhost_intr_deinit(&host->intr); nvhost_syncpt_deinit(&host->syncpt); nvhost_free_resources(host); return 0; }
static int nvhost_suspend(struct platform_device *dev, pm_message_t state) { struct nvhost_master *host = nvhost_get_private_data(dev); int ret = 0; ret = nvhost_module_suspend(host->dev); dev_info(&dev->dev, "suspend status: %d\n", ret); return ret; }
static int clock_off_host(struct platform_device *dev) { struct nvhost_master *host = nvhost_get_private_data(dev); nvhost_intr_stop(&host->intr); return 0; }
static void clock_on_host(struct platform_device *dev) { struct nvhost_device_data *pdata = platform_get_drvdata(dev); struct nvhost_master *host = nvhost_get_private_data(dev); nvhost_intr_start(&host->intr, clk_get_rate(pdata->clk[0])); }
static void power_on_host(struct platform_device *dev) { struct nvhost_master *host = nvhost_get_private_data(dev); nvhost_syncpt_reset(&host->syncpt); }
static inline struct vic03 *get_vic03(struct platform_device *dev) { return (struct vic03 *)nvhost_get_private_data(dev); }
static inline struct flcn *get_flcn(struct platform_device *dev) { return (struct flcn *)nvhost_get_private_data(dev); }