Lines Matching refs:gr2d

19 struct gr2d {  struct
29 static inline struct gr2d *to_gr2d(struct tegra_drm_client *client) in to_gr2d() argument
31 return container_of(client, struct gr2d, client); in to_gr2d()
39 struct gr2d *gr2d = to_gr2d(drm); in gr2d_init() local
42 gr2d->channel = host1x_channel_request(client); in gr2d_init()
43 if (!gr2d->channel) in gr2d_init()
72 host1x_channel_put(gr2d->channel); in gr2d_init()
81 struct gr2d *gr2d = to_gr2d(drm); in gr2d_exit() local
90 host1x_channel_put(gr2d->channel); in gr2d_exit()
103 struct gr2d *gr2d = to_gr2d(client); in gr2d_open_channel() local
105 context->channel = host1x_channel_get(gr2d->channel); in gr2d_open_channel()
119 struct gr2d *gr2d = dev_get_drvdata(dev); in gr2d_is_addr_reg() local
133 if (test_bit(offset, gr2d->addr_regs)) in gr2d_is_addr_reg()
192 struct gr2d *gr2d; in gr2d_probe() local
196 gr2d = devm_kzalloc(dev, sizeof(*gr2d), GFP_KERNEL); in gr2d_probe()
197 if (!gr2d) in gr2d_probe()
200 gr2d->soc = of_device_get_match_data(dev); in gr2d_probe()
206 gr2d->clk = devm_clk_get(dev, NULL); in gr2d_probe()
207 if (IS_ERR(gr2d->clk)) { in gr2d_probe()
209 return PTR_ERR(gr2d->clk); in gr2d_probe()
212 err = clk_prepare_enable(gr2d->clk); in gr2d_probe()
218 INIT_LIST_HEAD(&gr2d->client.base.list); in gr2d_probe()
219 gr2d->client.base.ops = &gr2d_client_ops; in gr2d_probe()
220 gr2d->client.base.dev = dev; in gr2d_probe()
221 gr2d->client.base.class = HOST1X_CLASS_GR2D; in gr2d_probe()
222 gr2d->client.base.syncpts = syncpts; in gr2d_probe()
223 gr2d->client.base.num_syncpts = 1; in gr2d_probe()
225 INIT_LIST_HEAD(&gr2d->client.list); in gr2d_probe()
226 gr2d->client.version = gr2d->soc->version; in gr2d_probe()
227 gr2d->client.ops = &gr2d_ops; in gr2d_probe()
229 err = host1x_client_register(&gr2d->client.base); in gr2d_probe()
232 clk_disable_unprepare(gr2d->clk); in gr2d_probe()
238 set_bit(gr2d_addr_regs[i], gr2d->addr_regs); in gr2d_probe()
240 platform_set_drvdata(pdev, gr2d); in gr2d_probe()
247 struct gr2d *gr2d = platform_get_drvdata(pdev); in gr2d_remove() local
250 err = host1x_client_unregister(&gr2d->client.base); in gr2d_remove()
257 clk_disable_unprepare(gr2d->clk); in gr2d_remove()