job.c (06490bb99e1840ab2b6814af7356e8b4ab0e3ee6) job.c (326bbd79fd61716841585a52d5b68f48f4e6644e)
1/*
2 * Tegra host1x Job
3 *
4 * Copyright (c) 2010-2015, NVIDIA Corporation.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.

--- 82 unchanged lines hidden (view full) ---

91
92void host1x_job_put(struct host1x_job *job)
93{
94 kref_put(&job->ref, job_free);
95}
96EXPORT_SYMBOL(host1x_job_put);
97
98void host1x_job_add_gather(struct host1x_job *job, struct host1x_bo *bo,
1/*
2 * Tegra host1x Job
3 *
4 * Copyright (c) 2010-2015, NVIDIA Corporation.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.

--- 82 unchanged lines hidden (view full) ---

91
92void host1x_job_put(struct host1x_job *job)
93{
94 kref_put(&job->ref, job_free);
95}
96EXPORT_SYMBOL(host1x_job_put);
97
98void host1x_job_add_gather(struct host1x_job *job, struct host1x_bo *bo,
99 u32 words, u32 offset)
99 unsigned int words, unsigned int offset)
100{
100{
101 struct host1x_job_gather *cur_gather = &job->gathers[job->num_gathers];
101 struct host1x_job_gather *gather = &job->gathers[job->num_gathers];
102
102
103 cur_gather->words = words;
104 cur_gather->bo = bo;
105 cur_gather->offset = offset;
103 gather->words = words;
104 gather->bo = bo;
105 gather->offset = offset;
106
106 job->num_gathers++;
107}
108EXPORT_SYMBOL(host1x_job_add_gather);
109
110static unsigned int pin_job(struct host1x *host, struct host1x_job *job)
111{
112 unsigned int i;
113 int err;

--- 488 unchanged lines hidden ---
107 job->num_gathers++;
108}
109EXPORT_SYMBOL(host1x_job_add_gather);
110
111static unsigned int pin_job(struct host1x *host, struct host1x_job *job)
112{
113 unsigned int i;
114 int err;

--- 488 unchanged lines hidden ---