job.c (cbecf716ca618fd44feda6bd9a64a8179d031fc5) | job.c (2aed4f5ab04af922a7cf1b616701845c9ed2473f) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Tegra host1x Job 4 * 5 * Copyright (c) 2010-2015, NVIDIA Corporation. 6 */ 7 8#include <linux/dma-mapping.h> --- 65 unchanged lines hidden (view full) --- 74 return job; 75} 76EXPORT_SYMBOL(host1x_job_get); 77 78static void job_free(struct kref *ref) 79{ 80 struct host1x_job *job = container_of(ref, struct host1x_job, ref); 81 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Tegra host1x Job 4 * 5 * Copyright (c) 2010-2015, NVIDIA Corporation. 6 */ 7 8#include <linux/dma-mapping.h> --- 65 unchanged lines hidden (view full) --- 74 return job; 75} 76EXPORT_SYMBOL(host1x_job_get); 77 78static void job_free(struct kref *ref) 79{ 80 struct host1x_job *job = container_of(ref, struct host1x_job, ref); 81 |
82 if (job->syncpt) 83 host1x_syncpt_put(job->syncpt); 84 |
|
82 kfree(job); 83} 84 85void host1x_job_put(struct host1x_job *job) 86{ 87 kref_put(&job->ref, job_free); 88} 89EXPORT_SYMBOL(host1x_job_put); --- 579 unchanged lines hidden (view full) --- 669} 670EXPORT_SYMBOL(host1x_job_unpin); 671 672/* 673 * Debug routine used to dump job entries 674 */ 675void host1x_job_dump(struct device *dev, struct host1x_job *job) 676{ | 85 kfree(job); 86} 87 88void host1x_job_put(struct host1x_job *job) 89{ 90 kref_put(&job->ref, job_free); 91} 92EXPORT_SYMBOL(host1x_job_put); --- 579 unchanged lines hidden (view full) --- 672} 673EXPORT_SYMBOL(host1x_job_unpin); 674 675/* 676 * Debug routine used to dump job entries 677 */ 678void host1x_job_dump(struct device *dev, struct host1x_job *job) 679{ |
677 dev_dbg(dev, " SYNCPT_ID %d\n", job->syncpt_id); | 680 dev_dbg(dev, " SYNCPT_ID %d\n", job->syncpt->id); |
678 dev_dbg(dev, " SYNCPT_VAL %d\n", job->syncpt_end); 679 dev_dbg(dev, " FIRST_GET 0x%x\n", job->first_get); 680 dev_dbg(dev, " TIMEOUT %d\n", job->timeout); 681 dev_dbg(dev, " NUM_SLOTS %d\n", job->num_slots); 682 dev_dbg(dev, " NUM_HANDLES %d\n", job->num_unpins); 683} | 681 dev_dbg(dev, " SYNCPT_VAL %d\n", job->syncpt_end); 682 dev_dbg(dev, " FIRST_GET 0x%x\n", job->first_get); 683 dev_dbg(dev, " TIMEOUT %d\n", job->timeout); 684 dev_dbg(dev, " NUM_SLOTS %d\n", job->num_slots); 685 dev_dbg(dev, " NUM_HANDLES %d\n", job->num_unpins); 686} |