aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Kaehlcke <mka@chromium.org>2017-06-15 19:55:57 -0400
committerVinod Koul <vinod.koul@intel.com>2017-06-17 08:47:46 -0400
commitd43674ecc002b49926f216cb414cff2d230ca3fb (patch)
treec8e39babaf36508c15d4213700ec08c5818cd4ff
parent4d6d74e22096543cb3b35e717cf1b9aea3655f37 (diff)
dmaengine: pl330: Delete unused functions
The functions _queue_empty(), _emit_ADDH(), _emit_NOP(), _emit_STZ() and _emit_WFE() are not used. Delete them. Signed-off-by: Matthias Kaehlcke <mka@chromium.org> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r--drivers/dma/pl330.c67
1 files changed, 0 insertions, 67 deletions
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
index a9451a14ad07..311ee107e5bf 100644
--- a/drivers/dma/pl330.c
+++ b/drivers/dma/pl330.c
@@ -541,11 +541,6 @@ struct _xfer_spec {
541 struct dma_pl330_desc *desc; 541 struct dma_pl330_desc *desc;
542}; 542};
543 543
544static inline bool _queue_empty(struct pl330_thread *thrd)
545{
546 return thrd->req[0].desc == NULL && thrd->req[1].desc == NULL;
547}
548
549static inline bool _queue_full(struct pl330_thread *thrd) 544static inline bool _queue_full(struct pl330_thread *thrd)
550{ 545{
551 return thrd->req[0].desc != NULL && thrd->req[1].desc != NULL; 546 return thrd->req[0].desc != NULL && thrd->req[1].desc != NULL;
@@ -567,23 +562,6 @@ static inline u32 get_revision(u32 periph_id)
567 return (periph_id >> PERIPH_REV_SHIFT) & PERIPH_REV_MASK; 562 return (periph_id >> PERIPH_REV_SHIFT) & PERIPH_REV_MASK;
568} 563}
569 564
570static inline u32 _emit_ADDH(unsigned dry_run, u8 buf[],
571 enum pl330_dst da, u16 val)
572{
573 if (dry_run)
574 return SZ_DMAADDH;
575
576 buf[0] = CMD_DMAADDH;
577 buf[0] |= (da << 1);
578 buf[1] = val;
579 buf[2] = val >> 8;
580
581 PL330_DBGCMD_DUMP(SZ_DMAADDH, "\tDMAADDH %s %u\n",
582 da == 1 ? "DA" : "SA", val);
583
584 return SZ_DMAADDH;
585}
586
587static inline u32 _emit_END(unsigned dry_run, u8 buf[]) 565static inline u32 _emit_END(unsigned dry_run, u8 buf[])
588{ 566{
589 if (dry_run) 567 if (dry_run)
@@ -741,18 +719,6 @@ static inline u32 _emit_MOV(unsigned dry_run, u8 buf[],
741 return SZ_DMAMOV; 719 return SZ_DMAMOV;
742} 720}
743 721
744static inline u32 _emit_NOP(unsigned dry_run, u8 buf[])
745{
746 if (dry_run)
747 return SZ_DMANOP;
748
749 buf[0] = CMD_DMANOP;
750
751 PL330_DBGCMD_DUMP(SZ_DMANOP, "\tDMANOP\n");
752
753 return SZ_DMANOP;
754}
755
756static inline u32 _emit_RMB(unsigned dry_run, u8 buf[]) 722static inline u32 _emit_RMB(unsigned dry_run, u8 buf[])
757{ 723{
758 if (dry_run) 724 if (dry_run)
@@ -820,39 +786,6 @@ static inline u32 _emit_STP(unsigned dry_run, u8 buf[],
820 return SZ_DMASTP; 786 return SZ_DMASTP;
821} 787}
822 788
823static inline u32 _emit_STZ(unsigned dry_run, u8 buf[])
824{
825 if (dry_run)
826 return SZ_DMASTZ;
827
828 buf[0] = CMD_DMASTZ;
829
830 PL330_DBGCMD_DUMP(SZ_DMASTZ, "\tDMASTZ\n");
831
832 return SZ_DMASTZ;
833}
834
835static inline u32 _emit_WFE(unsigned dry_run, u8 buf[], u8 ev,
836 unsigned invalidate)
837{
838 if (dry_run)
839 return SZ_DMAWFE;
840
841 buf[0] = CMD_DMAWFE;
842
843 ev &= 0x1f;
844 ev <<= 3;
845 buf[1] = ev;
846
847 if (invalidate)
848 buf[1] |= (1 << 1);
849
850 PL330_DBGCMD_DUMP(SZ_DMAWFE, "\tDMAWFE %u%s\n",
851 ev >> 3, invalidate ? ", I" : "");
852
853 return SZ_DMAWFE;
854}
855
856static inline u32 _emit_WFP(unsigned dry_run, u8 buf[], 789static inline u32 _emit_WFP(unsigned dry_run, u8 buf[],
857 enum pl330_cond cond, u8 peri) 790 enum pl330_cond cond, u8 peri)
858{ 791{