diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2012-06-15 07:45:44 +0300 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-06-18 18:52:43 -0700 |
commit | 20e1eb9daf61663383c245c8fa1939fe2ba588d6 (patch) | |
tree | 6f0a9ce0e8510593931e221df085f994eed34d45 /drivers/video | |
parent | 4624dd8bed05435978ae4381cbcfc0382726941c (diff) |
video: tegra: host: Remove unused functions
Remove unused functions in CDMA and debug. They were left unused
when debug dump started using sync queue instead of channel
registers for detecting current position.
Change-Id: Ib1f0bc8f702667d0453079e6d5f5d8ca08f8db09
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/109102
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-by: Ken Adams <kadams@nvidia.com>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/tegra/host/host1x/host1x_cdma.c | 14 | ||||
-rw-r--r-- | drivers/video/tegra/host/host1x/host1x_debug.c | 9 |
2 files changed, 0 insertions, 23 deletions
diff --git a/drivers/video/tegra/host/host1x/host1x_cdma.c b/drivers/video/tegra/host/host1x/host1x_cdma.c index 7a01cca3be4b..8017c71bdd14 100644 --- a/drivers/video/tegra/host/host1x/host1x_cdma.c +++ b/drivers/video/tegra/host/host1x/host1x_cdma.c @@ -368,20 +368,6 @@ static void cdma_stop(struct nvhost_cdma *cdma) } /** - * Retrieve the op pair at a slot offset from a DMA address - */ -void cdma_peek(struct nvhost_cdma *cdma, - u32 dmaget, int slot, u32 *out) -{ - u32 offset = dmaget - cdma->push_buffer.phys; - u32 *p = cdma->push_buffer.mapped; - - offset = ((offset + slot * 8) & (PUSH_BUFFER_SIZE - 1)) >> 2; - out[0] = p[offset]; - out[1] = p[offset + 1]; -} - -/** * Stops both channel's command processor and CDMA immediately. * Also, tears down the channel and resets corresponding module. */ diff --git a/drivers/video/tegra/host/host1x/host1x_debug.c b/drivers/video/tegra/host/host1x/host1x_debug.c index dc23ba6fb704..ff70acd23315 100644 --- a/drivers/video/tegra/host/host1x/host1x_debug.c +++ b/drivers/video/tegra/host/host1x/host1x_debug.c @@ -229,15 +229,6 @@ static void show_channel_gather(struct output *o, u32 addr, #endif } -u32 previous_oppair(struct nvhost_cdma *cdma, u32 cur) -{ - u32 pb = cdma->push_buffer.phys; - u32 prev = cur-8; - if (prev < pb) - prev += PUSH_BUFFER_SIZE; - return prev; -} - void show_channel_gathers(struct output *o, struct nvhost_cdma *cdma) { struct nvhost_job *job; |