Home
last modified time | relevance | path

Searched refs:DRM (Results 1 – 25 of 56) sorted by relevance

123

/linux-2.4.37.9/drivers/char/drm/
Ddrm_memory.h45 static spinlock_t DRM(mem_lock) = SPIN_LOCK_UNLOCKED;
46 static unsigned long DRM(ram_available) = 0; /* In pages */
47 static unsigned long DRM(ram_used) = 0;
48 static drm_mem_stats_t DRM(mem_stats)[] = {
73 void DRM(mem_init)(void) in DRM() function
78 for (mem = DRM(mem_stats); mem->name; ++mem) { in DRM()
87 DRM(ram_available) = si.totalram; in DRM()
88 DRM(ram_used) = 0; in DRM()
93 static int DRM(_mem_info)(char *buf, char **start, off_t offset, in DRM() function
113 DRM(ram_available) << (PAGE_SHIFT - 10)); in DRM()
[all …]
Ddrm_stub.h39 } *DRM(stub_list);
41 static struct proc_dir_entry *DRM(stub_root);
47 } DRM(stub_info);
49 static int DRM(stub_open)(struct inode *inode, struct file *filp) in DRM() function
56 if (!DRM(stub_list) || !DRM(stub_list)[minor].fops) return -ENODEV; in DRM()
58 filp->f_op = fops_get(DRM(stub_list)[minor].fops); in DRM()
68 static struct file_operations DRM(stub_fops) = {
70 .open = DRM(stub_open)
73 static int DRM(stub_getminor)(const char *name, struct file_operations *fops, in DRM() function
78 if (!DRM(stub_list)) { in DRM()
[all …]
DdrmP.h275 DRM(mem_stats)[area].name , ##arg)
281 if ( DRM(flags) & DRM_FLAG_DEBUG ) \
302 (map)->handle = DRM(ioremap)((map)->offset, (map)->size, (dev) )
305 (map)->handle = DRM(ioremap_nocache)((map)->offset, (map)->size, (dev) )
310 DRM(ioremapfree)( (map)->handle, (map)->size, (dev) ); \
701 extern int DRM(flags);
702 extern void DRM(parse_options)( char *s );
703 extern int DRM(cpu_valid)( void );
706 extern int DRM(version)(struct inode *inode, struct file *filp,
708 extern int DRM(open)(struct inode *inode, struct file *filp);
[all …]
Ddrm_drv.h117 static struct file_operations DRM(fops) = { \
119 .open = DRM(open), \
120 .flush = DRM(flush), \
121 .release = DRM(release), \
122 .ioctl = DRM(ioctl), \
123 .mmap = DRM(mmap), \
124 .read = DRM(read), \
125 .fasync = DRM(fasync), \
126 .poll = DRM(poll), \
136 #define DRM_OPTIONS_FUNC DRM(options)
[all …]
Ddrm_context.h44 void DRM(ctxbitmap_free)( drm_device_t *dev, int ctx_handle ) in DRM() function
62 int DRM(ctxbitmap_next)( drm_device_t *dev ) in DRM() function
78 ctx_sareas = DRM(realloc)(dev->context_sareas, in DRM()
93 dev->context_sareas = DRM(alloc)( in DRM()
112 int DRM(ctxbitmap_init)( drm_device_t *dev ) in DRM() function
118 dev->ctx_bitmap = (unsigned long *) DRM(alloc)( PAGE_SIZE, in DRM()
130 temp = DRM(ctxbitmap_next)( dev ); in DRM()
137 void DRM(ctxbitmap_cleanup)( drm_device_t *dev ) in DRM() function
140 if( dev->context_sareas ) DRM(free)( dev->context_sareas, in DRM()
144 DRM(free)( (void *)dev->ctx_bitmap, PAGE_SIZE, DRM_MEM_CTXBITMAP ); in DRM()
[all …]
Ddrm_vm.h34 struct vm_operations_struct DRM(vm_ops) = {
35 nopage: DRM(vm_nopage),
36 open: DRM(vm_open),
37 close: DRM(vm_close),
40 struct vm_operations_struct DRM(vm_shm_ops) = {
41 nopage: DRM(vm_shm_nopage),
42 open: DRM(vm_open),
43 close: DRM(vm_shm_close),
46 struct vm_operations_struct DRM(vm_dma_ops) = {
47 nopage: DRM(vm_dma_nopage),
[all …]
Ddrm_agpsupport.h42 int DRM(agp_info)(struct inode *inode, struct file *filp, in DRM() function
69 int DRM(agp_acquire)(struct inode *inode, struct file *filp, in DRM() function
88 int DRM(agp_release)(struct inode *inode, struct file *filp, in DRM() function
102 void DRM(agp_do_release)(void) in DRM() function
107 int DRM(agp_enable)(struct inode *inode, struct file *filp, in DRM() function
127 int DRM(agp_alloc)(struct inode *inode, struct file *filp, in DRM() function
141 if (!(entry = DRM(alloc)(sizeof(*entry), DRM_MEM_AGPLISTS))) in DRM()
149 if (!(memory = DRM(alloc_agp)(pages, type))) { in DRM()
150 DRM(free)(entry, sizeof(*entry), DRM_MEM_AGPLISTS); in DRM()
169 DRM(free_agp)(memory, pages); in DRM()
[all …]
Ddrm_proc.h38 static int DRM(name_info)(char *buf, char **start, off_t offset,
40 static int DRM(vm_info)(char *buf, char **start, off_t offset,
42 static int DRM(clients_info)(char *buf, char **start, off_t offset,
44 static int DRM(queues_info)(char *buf, char **start, off_t offset,
46 static int DRM(bufs_info)(char *buf, char **start, off_t offset,
49 static int DRM(vma_info)(char *buf, char **start, off_t offset,
53 static int DRM(histo_info)(char *buf, char **start, off_t offset,
60 } DRM(proc_list)[] = {
61 { "name", DRM(name_info) },
62 { "mem", DRM(mem_info) },
[all …]
Ddrm_dma.h54 int DRM(dma_setup)( drm_device_t *dev ) in DRM() function
58 dev->dma = DRM(alloc)( sizeof(*dev->dma), DRM_MEM_DRIVER ); in DRM()
70 void DRM(dma_takedown)(drm_device_t *dev) in DRM() function
86 DRM(free_pages)(dma->bufs[i].seglist[j], in DRM()
90 DRM(free)(dma->bufs[i].seglist, in DRM()
98 DRM(free)(dma->bufs[i].buflist[j].dev_private, in DRM()
103 DRM(free)(dma->bufs[i].buflist, in DRM()
108 DRM(freelist_destroy)(&dma->bufs[i].freelist); in DRM()
114 DRM(free)(dma->buflist, in DRM()
120 DRM(free)(dma->pagelist, in DRM()
[all …]
Ddrm_scatter.h36 void DRM(sg_cleanup)( drm_sg_mem_t *entry ) in DRM() function
49 DRM(free)( entry->busaddr, in DRM()
52 DRM(free)( entry->pagelist, in DRM()
55 DRM(free)( entry, in DRM()
60 int DRM(sg_alloc)( struct inode *inode, struct file *filp, in DRM() function
79 entry = DRM(alloc)( sizeof(*entry), DRM_MEM_SGLISTS ); in DRM()
89 entry->pagelist = DRM(alloc)( pages * sizeof(*entry->pagelist), in DRM()
92 DRM(free)( entry, sizeof(*entry), DRM_MEM_SGLISTS ); in DRM()
98 entry->busaddr = DRM(alloc)( pages * sizeof(*entry->busaddr), in DRM()
101 DRM(free)( entry->pagelist, in DRM()
[all …]
Ddrm_lock.h34 int DRM(block)(struct inode *inode, struct file *filp, unsigned int cmd, in DRM() function
41 int DRM(unblock)(struct inode *inode, struct file *filp, unsigned int cmd, in DRM() function
48 int DRM(lock_take)(__volatile__ unsigned int *lock, unsigned int context) in DRM() function
76 int DRM(lock_transfer)(drm_device_t *dev, in DRM() function
90 int DRM(lock_free)(drm_device_t *dev, in DRM() function
113 static int DRM(flush_queue)(drm_device_t *dev, int context) in DRM() function
146 static int DRM(flush_unblock_queue)(drm_device_t *dev, int context) in DRM() function
163 int DRM(flush_block_and_flush)(drm_device_t *dev, int context, in DRM() function
172 ret = DRM(flush_queue)(dev, DRM_KERNEL_CONTEXT); in DRM()
173 if (!ret) ret = DRM(flush_queue)(dev, context); in DRM()
[all …]
Ddrm_auth.h34 static int DRM(hash_magic)(drm_magic_t magic) in DRM() function
39 static drm_file_t *DRM(find_file)(drm_device_t *dev, drm_magic_t magic) in DRM() function
43 int hash = DRM(hash_magic)(magic); in DRM()
56 int DRM(add_magic)(drm_device_t *dev, drm_file_t *priv, drm_magic_t magic) in DRM() function
63 hash = DRM(hash_magic)(magic); in DRM()
64 entry = DRM(alloc)(sizeof(*entry), DRM_MEM_MAGIC); in DRM()
84 int DRM(remove_magic)(drm_device_t *dev, drm_magic_t magic) in DRM() function
91 hash = DRM(hash_magic)(magic); in DRM()
111 DRM(free)(pt, sizeof(*pt), DRM_MEM_MAGIC); in DRM()
116 int DRM(getmagic)(struct inode *inode, struct file *filp, in DRM() function
[all …]
Ddrm_bufs.h57 int DRM(order)( unsigned long size ) in DRM() function
70 int DRM(addmap)( struct inode *inode, struct file *filp, in DRM() function
80 map = DRM(alloc)( sizeof(*map), DRM_MEM_MAPS ); in DRM()
85 DRM(free)( map, sizeof(*map), DRM_MEM_MAPS ); in DRM()
94 DRM(free)( map, sizeof(*map), DRM_MEM_MAPS ); in DRM()
100 DRM(free)( map, sizeof(*map), DRM_MEM_MAPS ); in DRM()
112 DRM(free)( map, sizeof(*map), DRM_MEM_MAPS ); in DRM()
126 map->handle = DRM(ioremap)( map->offset, map->size, dev ); in DRM()
132 map->size, DRM(order)( map->size ), map->handle ); in DRM()
134 DRM(free)( map, sizeof(*map), DRM_MEM_MAPS ); in DRM()
[all …]
Ddrm_init.h35 int DRM(flags) = DRM_FLAG_DEBUG;
37 int DRM(flags) = 0;
43 static void DRM(parse_option)(char *s) in DRM() function
53 DRM(flags) |= DRM_FLAG_NOCTX; in DRM()
58 DRM(flags) |= DRM_FLAG_DEBUG; in DRM()
88 void DRM(parse_options)(char *s) in DRM() function
99 DRM(parse_option)(h); /* parse */ in DRM()
106 int DRM(cpu_valid)(void) in DRM() function
Ddrm_lists.h36 int DRM(waitlist_create)(drm_waitlist_t *bl, int count) in DRM() function
40 bl->bufs = DRM(alloc)((bl->count + 2) * sizeof(*bl->bufs), in DRM()
54 int DRM(waitlist_destroy)(drm_waitlist_t *bl) in DRM() function
57 if (bl->bufs) DRM(free)(bl->bufs, in DRM()
68 int DRM(waitlist_put)(drm_waitlist_t *bl, drm_buf_t *buf) in DRM() function
92 drm_buf_t *DRM(waitlist_get)(drm_waitlist_t *bl) in DRM() function
114 int DRM(freelist_create)(drm_freelist_t *bl, int count) in DRM() function
127 int DRM(freelist_destroy)(drm_freelist_t *bl) in DRM() function
134 int DRM(freelist_put)(drm_device_t *dev, drm_freelist_t *bl, drm_buf_t *buf) in DRM() function
150 DRM(histogram_compute)(dev, buf); in DRM()
[all …]
Dati_pcigart.h51 static unsigned long DRM(ati_alloc_pcigart_table)( void ) in DRM() function
74 static void DRM(ati_free_pcigart_table)( unsigned long address ) in DRM() function
90 int DRM(ati_pcigart_init)( drm_device_t *dev, in DRM() function
105 address = DRM(ati_alloc_pcigart_table)(); in DRM()
121 DRM(ati_free_pcigart_table)( address ); in DRM()
141 DRM(ati_pcigart_cleanup)( dev, address, bus_address ); in DRM()
168 int DRM(ati_pcigart_cleanup)( drm_device_t *dev, in DRM() function
198 DRM(ati_free_pcigart_table)( addr ); in DRM()
Dffb_drv.c30 static struct file_operations DRM(fops) = { \
32 open: DRM(open), \
33 flush: DRM(flush), \
34 release: DRM(release), \
35 ioctl: DRM(ioctl), \
36 mmap: DRM(mmap), \
37 read: DRM(read), \
38 fasync: DRM(fasync), \
39 poll: DRM(poll), \
353 for (i = 0; i < DRM(numdevs); i++) { in ffb_presetup()
[all …]
DREADME.drm10 The DRM supports the Direct Rendering Infrastructure (DRI) in four major
13 1. The DRM provides synchronized access to the graphics hardware via
16 2. The DRM enforces the DRI security policy for access to the graphics
20 3. The DRM provides a generic DMA engine, complete with multiple
24 4. The DRM is extensible via the use of small device-specific modules
25 that rely extensively on the API exported by the DRM module.
Ddrm_fops.h38 int DRM(open_helper)(struct inode *inode, struct file *filp, drm_device_t *dev) in DRM() function
44 if (!DRM(cpu_valid)()) return -EINVAL; in DRM()
48 priv = DRM(alloc)(sizeof(*priv), DRM_MEM_FILES); in DRM()
92 int DRM(flush)(struct file *filp) in DRM() function
102 int DRM(fasync)(int fd, struct file *filp, int on) in DRM() function
119 ssize_t DRM(read)(struct file *filp, char *buf, size_t count, loff_t *off) in DRM() function
174 int DRM(write_string)(drm_device_t *dev, const char *s) in DRM() function
210 unsigned int DRM(poll)(struct file *filp, struct poll_table_struct *wait) in DRM() function
Ddrm_ioctl.h34 int DRM(irq_busid)(struct inode *inode, struct file *filp, in DRM() function
64 int DRM(getunique)(struct inode *inode, struct file *filp, in DRM() function
83 int DRM(setunique)(struct inode *inode, struct file *filp, in DRM() function
97 dev->unique = DRM(alloc)(u.unique_len + 1, DRM_MEM_DRIVER); in DRM()
104 dev->devname = DRM(alloc)(strlen(dev->name) + strlen(dev->unique) + 2, in DRM()
107 DRM(free)(dev->devname, sizeof(*dev->devname), DRM_MEM_DRIVER); in DRM()
160 int DRM(getmap)( struct inode *inode, struct file *filp, in DRM() function
206 int DRM(getclient)( struct inode *inode, struct file *filp, in DRM() function
239 int DRM(getstats)( struct inode *inode, struct file *filp, in DRM() function
Dradeon_irq.c58 void DRM(dma_service)(int irq, void *arg, struct pt_regs *reg) in DRM() function
79 DRM(vbl_send_signals)(dev); in DRM()
143 int DRM(vblank_wait)(drm_device_t *dev, unsigned int *sequence) in DRM() function
227 void DRM(driver_irq_preinstall)( drm_device_t *dev ) { in DRM() function
238 void DRM(driver_irq_postinstall)( drm_device_t *dev ) { in DRM() function
251 void DRM(driver_irq_uninstall)( drm_device_t *dev ) { in DRM() function
Dgamma.h35 #define DRM(x) gamma_##x macro
56 #define IOCTL_TABLE_NAME DRM(ioctls)
57 #define IOCTL_FUNC_NAME DRM(ioctl)
Ddrm_drawable.h34 int DRM(adddraw)(struct inode *inode, struct file *filp, in DRM() function
46 int DRM(rmdraw)(struct inode *inode, struct file *filp, in DRM() function
Dtdfx_drv.c66 static drm_pci_list_t DRM(idlist)[] = {
75 #define DRIVER_CARD_LIST DRM(idlist)
/linux-2.4.37.9/drivers/char/drm-4.0/
DREADME.drm10 The DRM supports the Direct Rendering Infrastructure (DRI) in four major
13 1. The DRM provides synchronized access to the graphics hardware via
16 2. The DRM enforces the DRI security policy for access to the graphics
20 3. The DRM provides a generic DMA engine, complete with multiple
24 4. The DRM is extensible via the use of small device-specific modules
25 that rely extensively on the API exported by the DRM module.

123