Lines Matching defs:mode

9  * address mode emits a source address, and expects that the device will either
13 * devices will find single mode transfers useful. Dual address DMA mode
16 * is useful for 8 and 16 bit devices. This is the mode that is supported
56 #define DMA_MODE_SINGLE_BIT 0x08 /* single-address-mode */
58 /* I/O to memory, 8 bits, mode */
60 /* memory to I/O, 8 bits, mode */
62 /* I/O to memory, 16 bits, mode */
64 /* memory to I/O, 16 bits, mode */
66 /* I/O to memory, 32 bits, mode */
68 /* memory to I/O, 32 bits, mode */
70 /* I/O to memory, 8 bits, single-address-mode */
72 /* memory to I/O, 8 bits, single-address-mode */
74 /* I/O to memory, 16 bits, single-address-mode */
76 /* memory to I/O, 16 bits, single-address-mode */
78 /* I/O to memory, 32 bits, single-address-mode */
80 /* memory to I/O, 32 bits, single-address-mode */
85 /* Source static-address mode */
91 /* Destination static-address mode */
105 * do not include the SINGLE mode modifiers since the MCF5272 does not have a
106 * mode where the device is in control of its addressing.
109 /* I/O to memory, 8 bits, mode */
111 /* memory to I/O, 8 bits, mode */
113 /* I/O to memory, 16 bits, mode */
115 /* memory to I/O, 16 bits, mode */
117 /* I/O to memory, 32 bits, mode */
119 /* memory to I/O, 32 bits, mode */
169 /* set mode (above) for a specific DMA channel */
170 static __inline__ void set_dma_mode(unsigned int dmanr, char mode)
177 printk("set_dma_mode(dmanr=%d,mode=%d)\n", dmanr, mode);
191 /* single-address-mode */
192 ((mode & DMA_MODE_SINGLE_BIT) ? MCFDMA_DCR_SAA : 0) |
194 ((mode & DMA_MODE_WRITE_BIT) ? MCFDMA_DCR_S_RW : 0) |
196 ((mode & DMA_MODE_WRITE_BIT) ? MCFDMA_DCR_SINC : MCFDMA_DCR_DINC) |
198 ((mode & DMA_MODE_WORD_BIT) ? MCFDMA_DCR_SSIZE_WORD :
199 ((mode & DMA_MODE_LONG_BIT) ? MCFDMA_DCR_SSIZE_LONG :
201 ((mode & DMA_MODE_WORD_BIT) ? MCFDMA_DCR_DSIZE_WORD :
202 ((mode & DMA_MODE_LONG_BIT) ? MCFDMA_DCR_DSIZE_LONG :
248 * Should be called after the mode set call, and before set DMA address.
360 /* set mode (above) for a specific DMA channel */
361 static __inline__ void set_dma_mode(unsigned int dmanr, char mode)
368 printk("set_dma_mode(dmanr=%d,mode=%d)\n", dmanr, mode);
381 /* source static-address-mode */
382 ((mode & DMA_MODE_SRC_SA_BIT) ? MCFDMA_DMR_SRCM_SA : MCFDMA_DMR_SRCM_IA) |
383 /* dest static-address-mode */
384 ((mode & DMA_MODE_DES_SA_BIT) ? MCFDMA_DMR_DSTM_SA : MCFDMA_DMR_DSTM_IA) |
386 (((mode & DMA_MODE_SSIZE_MASK) >> DMA_MODE_SSIZE_OFF) << MCFDMA_DMR_DSTS_OFF) |
387 (((mode & DMA_MODE_SSIZE_MASK) >> DMA_MODE_SSIZE_OFF) << MCFDMA_DMR_SRCS_OFF);
432 * Should be called after the mode set call, and before set DMA address.