Commit d9c345d1 authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Vinod Koul

dmaengine: edma: Correct PaRAM access function names (_parm_ to _param_)

These inline functions are designed to modify parts of the PaRAM in eDMA.
Change the names accordingly.
Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent 34cf3011
...@@ -349,32 +349,32 @@ static inline void edma_shadow0_write_array(struct edma_cc *ecc, int offset, ...@@ -349,32 +349,32 @@ static inline void edma_shadow0_write_array(struct edma_cc *ecc, int offset,
edma_write(ecc, EDMA_SHADOW0 + offset + (i << 2), val); edma_write(ecc, EDMA_SHADOW0 + offset + (i << 2), val);
} }
static inline unsigned int edma_parm_read(struct edma_cc *ecc, int offset, static inline unsigned int edma_param_read(struct edma_cc *ecc, int offset,
int param_no) int param_no)
{ {
return edma_read(ecc, EDMA_PARM + offset + (param_no << 5)); return edma_read(ecc, EDMA_PARM + offset + (param_no << 5));
} }
static inline void edma_parm_write(struct edma_cc *ecc, int offset, static inline void edma_param_write(struct edma_cc *ecc, int offset,
int param_no, unsigned val) int param_no, unsigned val)
{ {
edma_write(ecc, EDMA_PARM + offset + (param_no << 5), val); edma_write(ecc, EDMA_PARM + offset + (param_no << 5), val);
} }
static inline void edma_parm_modify(struct edma_cc *ecc, int offset, static inline void edma_param_modify(struct edma_cc *ecc, int offset,
int param_no, unsigned and, unsigned or) int param_no, unsigned and, unsigned or)
{ {
edma_modify(ecc, EDMA_PARM + offset + (param_no << 5), and, or); edma_modify(ecc, EDMA_PARM + offset + (param_no << 5), and, or);
} }
static inline void edma_parm_and(struct edma_cc *ecc, int offset, int param_no, static inline void edma_param_and(struct edma_cc *ecc, int offset, int param_no,
unsigned and) unsigned and)
{ {
edma_and(ecc, EDMA_PARM + offset + (param_no << 5), and); edma_and(ecc, EDMA_PARM + offset + (param_no << 5), and);
} }
static inline void edma_parm_or(struct edma_cc *ecc, int offset, int param_no, static inline void edma_param_or(struct edma_cc *ecc, int offset, int param_no,
unsigned or) unsigned or)
{ {
edma_or(ecc, EDMA_PARM + offset + (param_no << 5), or); edma_or(ecc, EDMA_PARM + offset + (param_no << 5), or);
} }
...@@ -594,8 +594,8 @@ static void edma_link(struct edma_cc *ecc, unsigned from, unsigned to) ...@@ -594,8 +594,8 @@ static void edma_link(struct edma_cc *ecc, unsigned from, unsigned to)
if (from >= ecc->num_slots || to >= ecc->num_slots) if (from >= ecc->num_slots || to >= ecc->num_slots)
return; return;
edma_parm_modify(ecc, PARM_LINK_BCNTRLD, from, 0xffff0000, edma_param_modify(ecc, PARM_LINK_BCNTRLD, from, 0xffff0000,
PARM_OFFSET(to)); PARM_OFFSET(to));
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment