gr2d.c (728d90bdc9e480dc93913e59a0aa3c896c7aa697) | gr2d.c (caccddcfc4b4de75930df2e8f7fd0c66556b13ff) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (c) 2012-2013, NVIDIA Corporation. 4 */ 5 6#include <linux/clk.h> 7#include <linux/iommu.h> 8#include <linux/module.h> --- 26 unchanged lines hidden (view full) --- 35static int gr2d_init(struct host1x_client *client) 36{ 37 struct tegra_drm_client *drm = host1x_to_drm_client(client); 38 struct drm_device *dev = dev_get_drvdata(client->parent); 39 unsigned long flags = HOST1X_SYNCPT_HAS_BASE; 40 struct gr2d *gr2d = to_gr2d(drm); 41 int err; 42 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (c) 2012-2013, NVIDIA Corporation. 4 */ 5 6#include <linux/clk.h> 7#include <linux/iommu.h> 8#include <linux/module.h> --- 26 unchanged lines hidden (view full) --- 35static int gr2d_init(struct host1x_client *client) 36{ 37 struct tegra_drm_client *drm = host1x_to_drm_client(client); 38 struct drm_device *dev = dev_get_drvdata(client->parent); 39 unsigned long flags = HOST1X_SYNCPT_HAS_BASE; 40 struct gr2d *gr2d = to_gr2d(drm); 41 int err; 42 |
43 gr2d->channel = host1x_channel_request(client->dev); | 43 gr2d->channel = host1x_channel_request(client); |
44 if (!gr2d->channel) 45 return -ENOMEM; 46 47 client->syncpts[0] = host1x_syncpt_request(client, flags); 48 if (!client->syncpts[0]) { 49 err = -ENOMEM; 50 dev_err(client->dev, "failed to request syncpoint: %d\n", err); 51 goto put; --- 219 unchanged lines hidden --- | 44 if (!gr2d->channel) 45 return -ENOMEM; 46 47 client->syncpts[0] = host1x_syncpt_request(client, flags); 48 if (!client->syncpts[0]) { 49 err = -ENOMEM; 50 dev_err(client->dev, "failed to request syncpoint: %d\n", err); 51 goto put; --- 219 unchanged lines hidden --- |