@@ -222,7 +222,7 @@ struct atdma_sg {
222
222
* @vd: pointer to the virtual dma descriptor.
223
223
* @atchan: pointer to the atmel dma channel.
224
224
* @total_len: total transaction byte count
225
- * @sg_len : number of sg entries.
225
+ * @sglen : number of sg entries.
226
226
* @sg: array of sgs.
227
227
*/
228
228
struct at_desc {
@@ -245,7 +245,7 @@ struct at_desc {
245
245
/*-- Channels --------------------------------------------------------*/
246
246
247
247
/**
248
- * atc_status - information bits stored in channel status flag
248
+ * enum atc_status - information bits stored in channel status flag
249
249
*
250
250
* Manipulated with atomic operations.
251
251
*/
@@ -328,8 +328,7 @@ static inline u8 convert_buswidth(enum dma_slave_buswidth addr_width)
328
328
/**
329
329
* struct at_dma - internal representation of an Atmel HDMA Controller
330
330
* @dma_device: dmaengine dma_device object members
331
- * @atdma_devtype: identifier of DMA controller compatibility
332
- * @ch_regs: memory mapped register base
331
+ * @regs: memory mapped register base
333
332
* @clk: dma controller clock
334
333
* @save_imr: interrupt mask register that is saved on suspend/resume cycle
335
334
* @all_chan_mask: all channels availlable in a mask
@@ -626,6 +625,9 @@ static inline u32 atc_calc_bytes_left(u32 current_len, u32 ctrla)
626
625
627
626
/**
628
627
* atc_get_llis_residue - Get residue for a hardware linked list transfer
628
+ * @atchan: pointer to an atmel hdmac channel.
629
+ * @desc: pointer to the descriptor for which the residue is calculated.
630
+ * @residue: residue to be set to dma_tx_state.
629
631
*
630
632
* Calculate the residue by removing the length of the Linked List Item (LLI)
631
633
* already transferred from the total length. To get the current LLI we can use
@@ -661,10 +663,8 @@ static inline u32 atc_calc_bytes_left(u32 current_len, u32 ctrla)
661
663
* two DSCR values are different, we read again the CTRLA then the DSCR till two
662
664
* consecutive read values from DSCR are equal or till the maximum trials is
663
665
* reach. This algorithm is very unlikely not to find a stable value for DSCR.
664
- * @atchan: pointer to an atmel hdmac channel.
665
- * @desc: pointer to the descriptor for which the residue is calculated.
666
- * @residue: residue to be set to dma_tx_state.
667
- * Returns 0 on success, -errno otherwise.
666
+ *
667
+ * Returns: %0 on success, -errno otherwise.
668
668
*/
669
669
static int atc_get_llis_residue (struct at_dma_chan * atchan ,
670
670
struct at_desc * desc , u32 * residue )
@@ -731,7 +731,8 @@ static int atc_get_llis_residue(struct at_dma_chan *atchan,
731
731
* @chan: DMA channel
732
732
* @cookie: transaction identifier to check status of
733
733
* @residue: residue to be updated.
734
- * Return 0 on success, -errono otherwise.
734
+ *
735
+ * Return: %0 on success, -errno otherwise.
735
736
*/
736
737
static int atc_get_residue (struct dma_chan * chan , dma_cookie_t cookie ,
737
738
u32 * residue )
@@ -1710,7 +1711,7 @@ static void atc_issue_pending(struct dma_chan *chan)
1710
1711
* atc_alloc_chan_resources - allocate resources for DMA channel
1711
1712
* @chan: allocate descriptor resources for this channel
1712
1713
*
1713
- * return - the number of allocated descriptors
1714
+ * Return: the number of allocated descriptors
1714
1715
*/
1715
1716
static int atc_alloc_chan_resources (struct dma_chan * chan )
1716
1717
{
0 commit comments