Home
last modified time | relevance | path

Searched refs:dmap (Results 1 – 11 of 11) sorted by relevance

/linux-2.4.37.9/drivers/sound/
Ddmabuf.c44 static long dmabuf_timeout(struct dma_buffparms *dmap) in dmabuf_timeout() argument
48 tmout = (dmap->fragment_size * HZ) / dmap->data_rate; in dmabuf_timeout()
57 static int sound_alloc_dmap(struct dma_buffparms *dmap) in sound_alloc_dmap() argument
64 dmap->mapping_flags &= ~DMA_MAP_MAPPED; in sound_alloc_dmap()
66 if (dmap->raw_buf != NULL) in sound_alloc_dmap()
70 dma_pagesize = (dmap->dma < 4) ? (64 * 1024) : (128 * 1024); in sound_alloc_dmap()
79 dmap->raw_buf = NULL; in sound_alloc_dmap()
80 dmap->buffsize = dma_buffsize; in sound_alloc_dmap()
81 if (dmap->buffsize > dma_pagesize) in sound_alloc_dmap()
82 dmap->buffsize = dma_pagesize; in sound_alloc_dmap()
[all …]
Daudio.c138 struct dma_buffparms *dmap = audio_devs[dev]->dmap_out; in sync_output() local
140 if (dmap->fragment_size <= 0) in sync_output()
142 dmap->flags |= DMA_POST; in sync_output()
146 if ((l = dmap->user_counter % dmap->fragment_size) > 0) in sync_output()
149 unsigned long offs = dmap->user_counter % dmap->bytes_in_use; in sync_output()
151 len = dmap->fragment_size - l; in sync_output()
152 memset(dmap->raw_buf + offs, dmap->neutral_byte, len); in sync_output()
160 p = dmap->qtail; in sync_output()
161 dmap->flags |= DMA_POST; in sync_output()
163 for (i = dmap->qlen + 1; i < dmap->nbufs; i++) in sync_output()
[all …]
Dsoundcard.c431 struct dma_buffparms *dmap = NULL; in sound_mmap() local
443 dmap = audio_devs[dev]->dmap_out; in sound_mmap()
445 dmap = audio_devs[dev]->dmap_in; in sound_mmap()
452 if (dmap == NULL) { in sound_mmap()
457 if (dmap->raw_buf == NULL) { in sound_mmap()
462 if (dmap->mapping_flags) { in sound_mmap()
474 if (size != dmap->bytes_in_use) { in sound_mmap()
475 printk(KERN_WARNING "Sound: mmap() size = %ld. Should be %d\n", size, dmap->bytes_in_use); in sound_mmap()
477 if (remap_page_range(vma->vm_start, virt_to_phys(dmap->raw_buf), in sound_mmap()
484 dmap->mapping_flags |= DMA_MAP_MAPPED; in sound_mmap()
[all …]
Dsound_calls.h22 int DMAbuf_activate_recording (int dev, struct dma_buffparms *dmap);
23 int DMAbuf_get_buffer_pointer (int dev, struct dma_buffparms *dmap, int direction);
24 void DMAbuf_launch_output(int dev, struct dma_buffparms *dmap);
41 void reorganize_buffers (int dev, struct dma_buffparms *dmap, int recording);
Dvidc.c291 struct dma_buffparms *dmap = audio_devs[dev]->dmap_out; in vidc_audio_output_block() local
295 dma_start = buf - (unsigned long)dmap->raw_buf_phys + (unsigned long)dmap->raw_buf; in vidc_audio_output_block()
Ddev_table.h380 extern int sound_map_buffer (int dev, struct dma_buffparms *dmap, buffmem_desc *info);
382 void sound_dma_intr (int dev, struct dma_buffparms *dmap, int chan);
Dnm256_audio.c1513 struct dma_buffparms *dmap = adev->dmap_out; in nm256_getDMAbuffer() local
1515 (char *)(physbuf - (unsigned long)dmap->raw_buf_phys in nm256_getDMAbuffer()
1516 + (unsigned long)dmap->raw_buf); in nm256_getDMAbuffer()
Dgus_wave.c2519 struct dma_buffparms *dmap = audio_devs[dev]->dmap_out; in gus_audio_output_block() local
2521 dmap->flags |= DMA_NODMA | DMA_NOTIMEOUT; in gus_audio_output_block()
2529 char *b = dmap->raw_buf + (buf - dmap->raw_buf_phys); in gus_audio_output_block()
/linux-2.4.37.9/fs/jfs/
Djfs_dmap.c105 static void dbAllocBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
114 static int dbAllocNext(struct bmap * bmp, struct dmap * dp, s64 blkno,
116 static int dbAllocNear(struct bmap * bmp, struct dmap * dp, s64 blkno,
119 static int dbAllocDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
121 static int dbAllocDmapLev(struct bmap * bmp, struct dmap * dp, int nblocks,
132 static void dbFreeBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
134 static int dbFreeDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
143 static int dbAllocDmapBU(struct bmap * bmp, struct dmap * dp, s64 blkno,
145 static int dbInitDmap(struct dmap * dp, s64 blkno, int nblocks);
146 static int dbInitDmapTree(struct dmap * dp);
[all …]
Djfs_dmap.h160 struct dmap { struct
/linux-2.4.37.9/drivers/net/
Dbmac.c194 dbdma_continue(volatile struct dbdma_regs *dmap) in dbdma_continue() argument
196 dbdma_st32((volatile unsigned long *)&dmap->control, in dbdma_continue()
202 dbdma_reset(volatile struct dbdma_regs *dmap) in dbdma_reset() argument
204 dbdma_st32((volatile unsigned long *)&dmap->control, in dbdma_reset()
207 while (dbdma_ld32((volatile unsigned long *)&dmap->status) & RUN) in dbdma_reset()