/arch/arm/kernel/ |
D | dma.c | 39 int __init isa_dma_add(unsigned int chan, dma_t *dma) in isa_dma_add() argument 41 if (!dma->d_ops) in isa_dma_add() 44 sg_init_table(&dma->buf, 1); in isa_dma_add() 48 dma_chan[chan] = dma; in isa_dma_add() 59 dma_t *dma = dma_channel(chan); in request_dma() local 62 if (!dma) in request_dma() 65 if (xchg(&dma->lock, 1) != 0) in request_dma() 68 dma->device_id = device_id; in request_dma() 69 dma->active = 0; in request_dma() 70 dma->invalid = 1; in request_dma() [all …]
|
D | dma-isa.c | 47 static int isa_get_dma_residue(unsigned int chan, dma_t *dma) in isa_get_dma_residue() argument 58 static void isa_enable_dma(unsigned int chan, dma_t *dma) in isa_enable_dma() argument 60 if (dma->invalid) { in isa_enable_dma() 65 mode = (chan & 3) | dma->dma_mode; in isa_enable_dma() 66 switch (dma->dma_mode & DMA_MODE_MASK) { in isa_enable_dma() 84 if (!dma->sg) { in isa_enable_dma() 89 dma->sg = &dma->buf; in isa_enable_dma() 90 dma->sgcount = 1; in isa_enable_dma() 91 dma->buf.length = dma->count; in isa_enable_dma() 92 dma->buf.dma_address = dma_map_single(NULL, in isa_enable_dma() [all …]
|
/arch/arm/mach-rpc/ |
D | dma.c | 29 struct dma_struct dma; member 60 if (idma->dma.sg) { in iomd_get_next_sg() 78 if (idma->dma.sgcount > 1) { in iomd_get_next_sg() 79 idma->dma.sg = sg_next(idma->dma.sg); in iomd_get_next_sg() 80 idma->dma_addr = idma->dma.sg->dma_address; in iomd_get_next_sg() 81 idma->dma_len = idma->dma.sg->length; in iomd_get_next_sg() 82 idma->dma.sgcount--; in iomd_get_next_sg() 84 idma->dma.sg = NULL; in iomd_get_next_sg() 139 static int iomd_request_dma(unsigned int chan, dma_t *dma) in iomd_request_dma() argument 141 struct iomd_dma *idma = container_of(dma, struct iomd_dma, dma); in iomd_request_dma() [all …]
|
/arch/frv/kernel/ |
D | dma.c | 177 int dma, ret; in frv_dma_open() local 184 for (dma = FRV_DMA_NCHANS - 1; dma >= 0; dma--) { in frv_dma_open() 185 channel = &frv_dma_channels[dma]; in frv_dma_open() 187 if (!test_bit(dma, &dmamask)) in frv_dma_open() 193 if (!frv_dma_channels[dma].flags) in frv_dma_open() 205 channel = &frv_dma_channels[dma]; in frv_dma_open() 227 ret = dma; in frv_dma_open() 239 void frv_dma_close(int dma) in frv_dma_close() argument 241 struct frv_dma_channel *channel = &frv_dma_channels[dma]; in frv_dma_close() 247 frv_dma_stop(dma); in frv_dma_close() [all …]
|
/arch/cris/include/arch-v32/arch/hwregs/ |
D | dma.h | 76 do { reg_dma_rw_cfg e = REG_RD( dma, inst, rw_cfg );\ 78 REG_WR( dma, inst, rw_cfg, e); } while( 0 ) 82 do { reg_dma_rw_cfg r = REG_RD( dma, inst, rw_cfg );\ 84 REG_WR( dma, inst, rw_cfg, r); } while( 0 ) 88 do { reg_dma_rw_cfg s = REG_RD( dma, inst, rw_cfg );\ 90 REG_WR( dma, inst, rw_cfg, s); } while( 0 ) 94 do { reg_dma_rw_cfg c = REG_RD( dma, inst, rw_cfg );\ 96 REG_WR( dma, inst, rw_cfg, c); } while( 0 ) 101 do { __x = REG_RD(dma, inst, rw_stream_cmd); } while (__x.busy); \ 103 REG_WR(dma, inst, rw_stream_cmd, __x); \ [all …]
|
/arch/powerpc/boot/dts/fsl/ |
D | elo3-dma-0.dtsi | 35 dma0: dma@100300 { 38 compatible = "fsl,elo3-dma"; 42 dma-channel@0 { 43 compatible = "fsl,eloplus-dma-channel"; 47 dma-channel@80 { 48 compatible = "fsl,eloplus-dma-channel"; 52 dma-channel@100 { 53 compatible = "fsl,eloplus-dma-channel"; 57 dma-channel@180 { 58 compatible = "fsl,eloplus-dma-channel"; [all …]
|
D | elo3-dma-2.dtsi | 35 dma2: dma@102300 { 38 compatible = "fsl,elo3-dma"; 42 dma-channel@0 { 43 compatible = "fsl,eloplus-dma-channel"; 47 dma-channel@80 { 48 compatible = "fsl,eloplus-dma-channel"; 52 dma-channel@100 { 53 compatible = "fsl,eloplus-dma-channel"; 57 dma-channel@180 { 58 compatible = "fsl,eloplus-dma-channel"; [all …]
|
D | elo3-dma-1.dtsi | 35 dma1: dma@101300 { 38 compatible = "fsl,elo3-dma"; 42 dma-channel@0 { 43 compatible = "fsl,eloplus-dma-channel"; 47 dma-channel@80 { 48 compatible = "fsl,eloplus-dma-channel"; 52 dma-channel@100 { 53 compatible = "fsl,eloplus-dma-channel"; 57 dma-channel@180 { 58 compatible = "fsl,eloplus-dma-channel"; [all …]
|
D | qoriq-dma-0.dtsi | 35 dma0: dma@100300 { 38 compatible = "fsl,eloplus-dma"; 42 dma-channel@0 { 43 compatible = "fsl,eloplus-dma-channel"; 48 dma-channel@80 { 49 compatible = "fsl,eloplus-dma-channel"; 54 dma-channel@100 { 55 compatible = "fsl,eloplus-dma-channel"; 60 dma-channel@180 { 61 compatible = "fsl,eloplus-dma-channel";
|
D | qoriq-dma-1.dtsi | 35 dma1: dma@101300 { 38 compatible = "fsl,eloplus-dma"; 42 dma-channel@0 { 43 compatible = "fsl,eloplus-dma-channel"; 48 dma-channel@80 { 49 compatible = "fsl,eloplus-dma-channel"; 54 dma-channel@100 { 55 compatible = "fsl,eloplus-dma-channel"; 60 dma-channel@180 { 61 compatible = "fsl,eloplus-dma-channel";
|
D | pq3-dma-0.dtsi | 35 dma@21300 { 38 compatible = "fsl,eloplus-dma"; 42 dma-channel@0 { 43 compatible = "fsl,eloplus-dma-channel"; 48 dma-channel@80 { 49 compatible = "fsl,eloplus-dma-channel"; 54 dma-channel@100 { 55 compatible = "fsl,eloplus-dma-channel"; 60 dma-channel@180 { 61 compatible = "fsl,eloplus-dma-channel";
|
D | pq3-dma-1.dtsi | 35 dma@c300 { 38 compatible = "fsl,eloplus-dma"; 42 dma-channel@0 { 43 compatible = "fsl,eloplus-dma-channel"; 48 dma-channel@80 { 49 compatible = "fsl,eloplus-dma-channel"; 54 dma-channel@100 { 55 compatible = "fsl,eloplus-dma-channel"; 60 dma-channel@180 { 61 compatible = "fsl,eloplus-dma-channel";
|
/arch/frv/include/asm/ |
D | dma.h | 46 extern void frv_dma_close(int dma); 48 extern void frv_dma_config(int dma, unsigned long ccfr, unsigned long cctr, unsigned long apr); 50 extern void frv_dma_start(int dma, 54 extern void frv_dma_restart_circular(int dma, unsigned long six); 56 extern void frv_dma_stop(int dma); 58 extern int is_frv_dma_interrupting(int dma); 60 extern void frv_dma_dump(int dma); 62 extern void frv_dma_status_clear(int dma);
|
/arch/sh/drivers/dma/ |
D | Makefile | 5 obj-$(CONFIG_SH_DMA_API) += dma-sh.o dma-api.o dma-sysfs.o 6 obj-$(CONFIG_PVR2_DMA) += dma-pvr2.o 7 obj-$(CONFIG_G2_DMA) += dma-g2.o
|
/arch/arm/mach-footbridge/ |
D | dma.c | 24 static int fb_dma_request(unsigned int chan, dma_t *dma) 29 static void fb_dma_enable(unsigned int chan, dma_t *dma) 33 static void fb_dma_disable(unsigned int chan, dma_t *dma) 48 dma[_DC21285_DMA(0)].d_ops = &fb_dma_ops; in fb_dma_init() 49 dma[_DC21285_DMA(1)].d_ops = &fb_dma_ops; in fb_dma_init()
|
/arch/m68k/include/asm/ |
D | dvma.h | 131 #define DMA_ISBROKEN(dma) ((dma)->revision == dvmarev1) argument 132 #define DMA_ISESC1(dma) ((dma)->revision == dvmaesc1) argument 214 #define DMA_IRQ_ENTRY(dma, dregs) do { \ argument 215 if(DMA_ISBROKEN(dma)) DMA_INTSOFF(dregs); \ 218 #define DMA_IRQ_EXIT(dma, dregs) do { \ argument 219 if(DMA_ISBROKEN(dma)) DMA_INTSON(dregs); \ 223 #define DMA_RESET(dma) do { \ argument 224 struct sparc_dma_registers *regs = dma->regs; \ 233 if(dma->revision>dvmarev1) regs->cond_reg |= DMA_3CLKS; \ 234 dma->running = 0; \
|
/arch/arm/boot/dts/ |
D | ste-dbx5x0.dtsi | 437 dmas = <&dma 38 0 0x2>, /* Logical - DevToMem */ 438 <&dma 38 0 0x0>, /* Logical - MemToDev */ 439 <&dma 37 0 0x2>, /* Logical - DevToMem */ 440 <&dma 37 0 0x0>, /* Logical - MemToDev */ 441 <&dma 36 0 0x2>, /* Logical - DevToMem */ 442 <&dma 36 0 0x0>, /* Logical - MemToDev */ 443 <&dma 19 0 0x2>, /* Logical - DevToMem */ 444 <&dma 19 0 0x0>, /* Logical - MemToDev */ 445 <&dma 18 0 0x2>, /* Logical - DevToMem */ 446 <&dma 18 0 0x0>, /* Logical - MemToDev */ [all …]
|
D | pxa3xx.dtsi | 9 pdma: dma-controller@40000000 { 13 #dma-channels = <32>; 14 #dma-cells = <2>; 15 #dma-requests = <100>; 35 dma-names = "data"; 65 dma-names = "rx", "tx"; 76 dma-names = "rx", "tx"; 87 dma-names = "rx", "tx";
|
D | omap2.dtsi | 64 dma-names = "tx", "rx"; 81 sdma: dma-controller@48056000 { 83 ti,hwmods = "dma"; 89 #dma-cells = <1>; 90 dma-channels = <32>; 91 dma-requests = <64>; 102 dma-names = "tx", "rx"; 113 dma-names = "tx", "rx"; 123 dma-names = "tx0", "rx0", "tx1", "rx1", 133 dma-names = "tx0", "rx0", "tx1", "rx1"; [all …]
|
/arch/powerpc/boot/dts/ |
D | mpc8610_hpcd.dts | 281 fsl,playback-dma = <&dma00>; 282 fsl,capture-dma = <&dma01>; 298 dma@21300 { 301 compatible = "fsl,mpc8610-dma", "fsl,eloplus-dma"; 307 dma00: dma-channel@0 { 308 compatible = "fsl,mpc8610-dma-channel", 309 "fsl,ssi-dma-channel"; 315 dma01: dma-channel@1 { 316 compatible = "fsl,mpc8610-dma-channel", 317 "fsl,ssi-dma-channel"; [all …]
|
D | mpc8349emitxgp.dts | 102 dma@82a8 { 105 compatible = "fsl,mpc8349-dma", "fsl,elo-dma"; 111 dma-channel@0 { 112 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel"; 118 dma-channel@80 { 119 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel"; 125 dma-channel@100 { 126 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel"; 132 dma-channel@180 { 133 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
|
D | stx_gp3_8560.dts | 98 dma@21300 { 101 compatible = "fsl,mpc8560-dma", "fsl,eloplus-dma"; 105 dma-channel@0 { 106 compatible = "fsl,mpc8560-dma-channel", 107 "fsl,eloplus-dma-channel"; 113 dma-channel@80 { 114 compatible = "fsl,mpc8560-dma-channel", 115 "fsl,eloplus-dma-channel"; 121 dma-channel@100 { 122 compatible = "fsl,mpc8560-dma-channel", [all …]
|
/arch/arm/mach-davinci/ |
D | sram.c | 26 void *sram_alloc(size_t len, dma_addr_t *dma) in sram_alloc() argument 30 if (dma) in sram_alloc() 31 *dma = 0; in sram_alloc() 32 if (!sram_pool || (dma && !dma_base)) in sram_alloc() 35 return gen_pool_dma_alloc(sram_pool, len, dma); in sram_alloc()
|
/arch/tile/kernel/ |
D | process.c | 286 static void save_tile_dma_state(struct tile_dma_state *dma) in save_tile_dma_state() argument 307 dma->src = __insn_mfspr(SPR_DMA_SRC_ADDR); in save_tile_dma_state() 308 dma->src_chunk = __insn_mfspr(SPR_DMA_SRC_CHUNK_ADDR); in save_tile_dma_state() 309 dma->dest = __insn_mfspr(SPR_DMA_DST_ADDR); in save_tile_dma_state() 310 dma->dest_chunk = __insn_mfspr(SPR_DMA_DST_CHUNK_ADDR); in save_tile_dma_state() 311 dma->strides = __insn_mfspr(SPR_DMA_STRIDE); in save_tile_dma_state() 312 dma->chunk_size = __insn_mfspr(SPR_DMA_CHUNK_SIZE); in save_tile_dma_state() 313 dma->byte = __insn_mfspr(SPR_DMA_BYTE); in save_tile_dma_state() 314 dma->status = (state & SPR_DMA_STATUS__RUNNING_MASK) | in save_tile_dma_state() 321 const struct tile_dma_state *dma = &t->tile_dma_state; in restore_tile_dma_state() local [all …]
|
/arch/powerpc/platforms/chrp/ |
D | pci.c | 213 const unsigned int *dma; in chrp_find_bridges() local 290 dma = of_get_property(dev, "system-dma-base", in chrp_find_bridges() 292 if (dma && len >= sizeof(*dma)) { in chrp_find_bridges() 293 dma = (unsigned int *) in chrp_find_bridges() 294 (((unsigned long)dma) + in chrp_find_bridges() 295 len - sizeof(*dma)); in chrp_find_bridges() 296 pci_dram_offset = *dma; in chrp_find_bridges() 309 dma = of_get_property(dev, "ibm,dma-ranges", &len); in chrp_find_bridges() 310 if (index == 0 && dma != NULL && len >= 6 * sizeof(*dma)) { in chrp_find_bridges() 311 pci_dram_offset = dma[2] - dma[3]; in chrp_find_bridges()
|