aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorIra Snyder <iws@ovro.caltech.edu>2010-01-06 08:34:02 -0500
committerDan Williams <dan.j.williams@intel.com>2010-02-02 16:51:41 -0500
commit738f5f7e1ae876448cb7d9c82bea258b69386647 (patch)
tree61616b4be922b7e3461f26d0d4dc2f9e5b0ac8cc /drivers
parenta4f56d4b103d4e5d1a59a9118db0185a6bd1a83b (diff)
fsldma: rename dest to dst for uniformity
Most functions in the standard library use "dst" as a parameter, rather than "dest". This renames all use of "dest" to "dst" to match the usual convention. Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/dma/fsldma.c32
-rw-r--r--drivers/dma/fsldma.h2
2 files changed, 17 insertions, 17 deletions
diff --git a/drivers/dma/fsldma.c b/drivers/dma/fsldma.c
index 6795d96e3629..c2db7541c22b 100644
--- a/drivers/dma/fsldma.c
+++ b/drivers/dma/fsldma.c
@@ -90,14 +90,14 @@ static void set_desc_src(struct fsldma_chan *fsl_chan,
90 hw->src_addr = CPU_TO_DMA(fsl_chan, snoop_bits | src, 64); 90 hw->src_addr = CPU_TO_DMA(fsl_chan, snoop_bits | src, 64);
91} 91}
92 92
93static void set_desc_dest(struct fsldma_chan *fsl_chan, 93static void set_desc_dst(struct fsldma_chan *fsl_chan,
94 struct fsl_dma_ld_hw *hw, dma_addr_t dest) 94 struct fsl_dma_ld_hw *hw, dma_addr_t dst)
95{ 95{
96 u64 snoop_bits; 96 u64 snoop_bits;
97 97
98 snoop_bits = ((fsl_chan->feature & FSL_DMA_IP_MASK) == FSL_DMA_IP_85XX) 98 snoop_bits = ((fsl_chan->feature & FSL_DMA_IP_MASK) == FSL_DMA_IP_85XX)
99 ? ((u64)FSL_DMA_DATR_DWRITETYPE_SNOOP_WRITE << 32) : 0; 99 ? ((u64)FSL_DMA_DATR_DWRITETYPE_SNOOP_WRITE << 32) : 0;
100 hw->dst_addr = CPU_TO_DMA(fsl_chan, snoop_bits | dest, 64); 100 hw->dst_addr = CPU_TO_DMA(fsl_chan, snoop_bits | dst, 64);
101} 101}
102 102
103static void set_desc_next(struct fsldma_chan *fsl_chan, 103static void set_desc_next(struct fsldma_chan *fsl_chan,
@@ -253,7 +253,7 @@ static void fsl_chan_set_src_loop_size(struct fsldma_chan *fsl_chan, int size)
253} 253}
254 254
255/** 255/**
256 * fsl_chan_set_dest_loop_size - Set destination address hold transfer size 256 * fsl_chan_set_dst_loop_size - Set destination address hold transfer size
257 * @fsl_chan : Freescale DMA channel 257 * @fsl_chan : Freescale DMA channel
258 * @size : Address loop size, 0 for disable loop 258 * @size : Address loop size, 0 for disable loop
259 * 259 *
@@ -263,7 +263,7 @@ static void fsl_chan_set_src_loop_size(struct fsldma_chan *fsl_chan, int size)
263 * write data to TA, TA + 1, TA + 2, TA + 3, then loop back to TA, 263 * write data to TA, TA + 1, TA + 2, TA + 3, then loop back to TA,
264 * TA + 1 ... and so on. 264 * TA + 1 ... and so on.
265 */ 265 */
266static void fsl_chan_set_dest_loop_size(struct fsldma_chan *fsl_chan, int size) 266static void fsl_chan_set_dst_loop_size(struct fsldma_chan *fsl_chan, int size)
267{ 267{
268 u32 mode; 268 u32 mode;
269 269
@@ -486,7 +486,7 @@ fsl_dma_prep_interrupt(struct dma_chan *chan, unsigned long flags)
486} 486}
487 487
488static struct dma_async_tx_descriptor *fsl_dma_prep_memcpy( 488static struct dma_async_tx_descriptor *fsl_dma_prep_memcpy(
489 struct dma_chan *chan, dma_addr_t dma_dest, dma_addr_t dma_src, 489 struct dma_chan *chan, dma_addr_t dma_dst, dma_addr_t dma_src,
490 size_t len, unsigned long flags) 490 size_t len, unsigned long flags)
491{ 491{
492 struct fsldma_chan *fsl_chan; 492 struct fsldma_chan *fsl_chan;
@@ -519,7 +519,7 @@ static struct dma_async_tx_descriptor *fsl_dma_prep_memcpy(
519 519
520 set_desc_cnt(fsl_chan, &new->hw, copy); 520 set_desc_cnt(fsl_chan, &new->hw, copy);
521 set_desc_src(fsl_chan, &new->hw, dma_src); 521 set_desc_src(fsl_chan, &new->hw, dma_src);
522 set_desc_dest(fsl_chan, &new->hw, dma_dest); 522 set_desc_dst(fsl_chan, &new->hw, dma_dst);
523 523
524 if (!first) 524 if (!first)
525 first = new; 525 first = new;
@@ -532,7 +532,7 @@ static struct dma_async_tx_descriptor *fsl_dma_prep_memcpy(
532 prev = new; 532 prev = new;
533 len -= copy; 533 len -= copy;
534 dma_src += copy; 534 dma_src += copy;
535 dma_dest += copy; 535 dma_dst += copy;
536 536
537 /* Insert the link descriptor to the LD ring */ 537 /* Insert the link descriptor to the LD ring */
538 list_add_tail(&new->node, &first->tx_list); 538 list_add_tail(&new->node, &first->tx_list);
@@ -680,7 +680,7 @@ static struct dma_async_tx_descriptor *fsl_dma_prep_slave_sg(
680 /* Fill in the descriptor */ 680 /* Fill in the descriptor */
681 set_desc_cnt(fsl_chan, &new->hw, copy); 681 set_desc_cnt(fsl_chan, &new->hw, copy);
682 set_desc_src(fsl_chan, &new->hw, dma_src); 682 set_desc_src(fsl_chan, &new->hw, dma_src);
683 set_desc_dest(fsl_chan, &new->hw, dma_dst); 683 set_desc_dst(fsl_chan, &new->hw, dma_dst);
684 684
685 /* 685 /*
686 * If this is not the first descriptor, chain the 686 * If this is not the first descriptor, chain the
@@ -721,8 +721,8 @@ finished:
721 if (fsl_chan->set_src_loop_size) 721 if (fsl_chan->set_src_loop_size)
722 fsl_chan->set_src_loop_size(fsl_chan, slave->src_loop_size); 722 fsl_chan->set_src_loop_size(fsl_chan, slave->src_loop_size);
723 723
724 if (fsl_chan->set_dest_loop_size) 724 if (fsl_chan->set_dst_loop_size)
725 fsl_chan->set_dest_loop_size(fsl_chan, slave->dst_loop_size); 725 fsl_chan->set_dst_loop_size(fsl_chan, slave->dst_loop_size);
726 726
727 if (fsl_chan->toggle_ext_start) 727 if (fsl_chan->toggle_ext_start)
728 fsl_chan->toggle_ext_start(fsl_chan, slave->external_start); 728 fsl_chan->toggle_ext_start(fsl_chan, slave->external_start);
@@ -867,7 +867,7 @@ static void fsl_chan_ld_cleanup(struct fsldma_chan *fsl_chan)
867static void fsl_chan_xfer_ld_queue(struct fsldma_chan *fsl_chan) 867static void fsl_chan_xfer_ld_queue(struct fsldma_chan *fsl_chan)
868{ 868{
869 struct list_head *ld_node; 869 struct list_head *ld_node;
870 dma_addr_t next_dest_addr; 870 dma_addr_t next_dst_addr;
871 unsigned long flags; 871 unsigned long flags;
872 872
873 spin_lock_irqsave(&fsl_chan->desc_lock, flags); 873 spin_lock_irqsave(&fsl_chan->desc_lock, flags);
@@ -892,10 +892,10 @@ static void fsl_chan_xfer_ld_queue(struct fsldma_chan *fsl_chan)
892 892
893 if (ld_node != &fsl_chan->ld_queue) { 893 if (ld_node != &fsl_chan->ld_queue) {
894 /* Get the ld start address from ld_queue */ 894 /* Get the ld start address from ld_queue */
895 next_dest_addr = to_fsl_desc(ld_node)->async_tx.phys; 895 next_dst_addr = to_fsl_desc(ld_node)->async_tx.phys;
896 dev_dbg(fsl_chan->dev, "xfer LDs staring from 0x%llx\n", 896 dev_dbg(fsl_chan->dev, "xfer LDs staring from 0x%llx\n",
897 (unsigned long long)next_dest_addr); 897 (unsigned long long)next_dst_addr);
898 set_cdar(fsl_chan, next_dest_addr); 898 set_cdar(fsl_chan, next_dst_addr);
899 dma_start(fsl_chan); 899 dma_start(fsl_chan);
900 } else { 900 } else {
901 set_cdar(fsl_chan, 0); 901 set_cdar(fsl_chan, 0);
@@ -1130,7 +1130,7 @@ static int __devinit fsl_dma_chan_probe(struct fsldma_device *fdev,
1130 case FSL_DMA_IP_83XX: 1130 case FSL_DMA_IP_83XX:
1131 new_fsl_chan->toggle_ext_start = fsl_chan_toggle_ext_start; 1131 new_fsl_chan->toggle_ext_start = fsl_chan_toggle_ext_start;
1132 new_fsl_chan->set_src_loop_size = fsl_chan_set_src_loop_size; 1132 new_fsl_chan->set_src_loop_size = fsl_chan_set_src_loop_size;
1133 new_fsl_chan->set_dest_loop_size = fsl_chan_set_dest_loop_size; 1133 new_fsl_chan->set_dst_loop_size = fsl_chan_set_dst_loop_size;
1134 new_fsl_chan->set_request_count = fsl_chan_set_request_count; 1134 new_fsl_chan->set_request_count = fsl_chan_set_request_count;
1135 } 1135 }
1136 1136
diff --git a/drivers/dma/fsldma.h b/drivers/dma/fsldma.h
index f8c2baa6f41e..a67b8e3df0fa 100644
--- a/drivers/dma/fsldma.h
+++ b/drivers/dma/fsldma.h
@@ -143,7 +143,7 @@ struct fsldma_chan {
143 void (*toggle_ext_pause)(struct fsldma_chan *fsl_chan, int enable); 143 void (*toggle_ext_pause)(struct fsldma_chan *fsl_chan, int enable);
144 void (*toggle_ext_start)(struct fsldma_chan *fsl_chan, int enable); 144 void (*toggle_ext_start)(struct fsldma_chan *fsl_chan, int enable);
145 void (*set_src_loop_size)(struct fsldma_chan *fsl_chan, int size); 145 void (*set_src_loop_size)(struct fsldma_chan *fsl_chan, int size);
146 void (*set_dest_loop_size)(struct fsldma_chan *fsl_chan, int size); 146 void (*set_dst_loop_size)(struct fsldma_chan *fsl_chan, int size);
147 void (*set_request_count)(struct fsldma_chan *fsl_chan, int size); 147 void (*set_request_count)(struct fsldma_chan *fsl_chan, int size);
148}; 148};
149 149