From 20e1eb9daf61663383c245c8fa1939fe2ba588d6 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Fri, 15 Jun 2012 07:45:44 +0300 Subject: 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 Reviewed-on: http://git-master/r/109102 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Mayuresh Kulkarni Reviewed-by: Juha Tukkinen Reviewed-by: Ken Adams --- drivers/video/tegra/host/host1x/host1x_cdma.c | 14 -------------- drivers/video/tegra/host/host1x/host1x_debug.c | 9 --------- 2 files changed, 23 deletions(-) (limited to 'drivers/video/tegra') 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 @@ -367,20 +367,6 @@ static void cdma_stop(struct nvhost_cdma *cdma) mutex_unlock(&cdma->lock); } -/** - * 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; -- cgit v1.2.3