• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/include/drm/

Lines Matching refs:drm_device

84 struct drm_device;
289 typedef int drm_ioctl_t(struct drm_device *dev, void *data,
511 * \sa drm_agp_init() and drm_device::agp.
618 struct drm_device *dev;
634 * Access is covered by the object_name_lock in the related drm_device
688 * a family of cards. There will one drm_device for each card present
692 int (*load) (struct drm_device *, unsigned long flags);
693 int (*firstopen) (struct drm_device *);
694 int (*open) (struct drm_device *, struct drm_file *);
695 void (*preclose) (struct drm_device *, struct drm_file *file_priv);
696 void (*postclose) (struct drm_device *, struct drm_file *);
697 void (*lastclose) (struct drm_device *);
698 int (*unload) (struct drm_device *);
699 int (*suspend) (struct drm_device *, pm_message_t state);
700 int (*resume) (struct drm_device *);
701 int (*dma_ioctl) (struct drm_device *dev, void *data, struct drm_file *file_priv);
702 void (*dma_ready) (struct drm_device *);
703 int (*dma_quiescent) (struct drm_device *);
704 int (*context_ctor) (struct drm_device *dev, int context);
705 int (*context_dtor) (struct drm_device *dev, int context);
706 int (*kernel_context_switch) (struct drm_device *dev, int old,
708 void (*kernel_context_switch_unlock) (struct drm_device *dev);
727 u32 (*get_vblank_counter) (struct drm_device *dev, int crtc);
742 int (*enable_vblank) (struct drm_device *dev, int crtc);
753 void (*disable_vblank) (struct drm_device *dev, int crtc);
766 int (*device_is_agp) (struct drm_device *dev);
771 void (*irq_preinstall) (struct drm_device *dev);
772 int (*irq_postinstall) (struct drm_device *dev);
773 void (*irq_uninstall) (struct drm_device *dev);
774 void (*reclaim_buffers) (struct drm_device *dev,
776 void (*reclaim_buffers_locked) (struct drm_device *dev,
778 void (*reclaim_buffers_idlelocked) (struct drm_device *dev,
781 resource_size_t (*get_reg_ofs) (struct drm_device *dev);
782 void (*set_version) (struct drm_device *dev,
786 int (*master_create)(struct drm_device *dev, struct drm_master *master);
787 void (*master_destroy)(struct drm_device *dev, struct drm_master *master);
793 int (*master_set)(struct drm_device *dev, struct drm_file *file_priv,
795 void (*master_drop)(struct drm_device *dev, struct drm_file *file_priv,
813 void (*vgaarb_irq)(struct drm_device *dev, bool state);
891 struct drm_device *dev;
913 struct drm_device {
920 spinlock_t count_lock; /**< For inuse, drm_device::open_count, drm_device::buf_use */
1073 static __inline__ int drm_core_check_feature(struct drm_device *dev,
1079 static inline int drm_dev_to_irq(struct drm_device *dev)
1087 static inline int drm_get_pci_domain(struct drm_device *dev)
1105 static inline int drm_core_has_AGP(struct drm_device *dev)
1114 static inline int drm_core_has_MTRR(struct drm_device *dev)
1162 extern int drm_lastclose(struct drm_device *dev);
1179 extern resource_size_t drm_core_get_reg_ofs(struct drm_device *dev);
1189 extern DRM_AGP_MEM *drm_alloc_agp(struct drm_device *dev, int pages, u32 type);
1192 extern DRM_AGP_MEM *drm_agp_bind_pages(struct drm_device *dev,
1200 extern int drm_irq_by_busid(struct drm_device *dev, void *data,
1202 extern int drm_getunique(struct drm_device *dev, void *data,
1204 extern int drm_setunique(struct drm_device *dev, void *data,
1206 extern int drm_getmap(struct drm_device *dev, void *data,
1208 extern int drm_getclient(struct drm_device *dev, void *data,
1210 extern int drm_getstats(struct drm_device *dev, void *data,
1212 extern int drm_setversion(struct drm_device *dev, void *data,
1214 extern int drm_noop(struct drm_device *dev, void *data,
1218 extern int drm_resctx(struct drm_device *dev, void *data,
1220 extern int drm_addctx(struct drm_device *dev, void *data,
1222 extern int drm_modctx(struct drm_device *dev, void *data,
1224 extern int drm_getctx(struct drm_device *dev, void *data,
1226 extern int drm_switchctx(struct drm_device *dev, void *data,
1228 extern int drm_newctx(struct drm_device *dev, void *data,
1230 extern int drm_rmctx(struct drm_device *dev, void *data,
1233 extern int drm_ctxbitmap_init(struct drm_device *dev);
1234 extern void drm_ctxbitmap_cleanup(struct drm_device *dev);
1235 extern void drm_ctxbitmap_free(struct drm_device *dev, int ctx_handle);
1237 extern int drm_setsareactx(struct drm_device *dev, void *data,
1239 extern int drm_getsareactx(struct drm_device *dev, void *data,
1243 extern int drm_adddraw(struct drm_device *dev, void *data,
1245 extern int drm_rmdraw(struct drm_device *dev, void *data,
1247 extern int drm_update_drawable_info(struct drm_device *dev, void *data,
1249 extern struct drm_drawable_info *drm_get_drawable_info(struct drm_device *dev,
1251 extern void drm_drawable_free_all(struct drm_device *dev);
1254 extern int drm_getmagic(struct drm_device *dev, void *data,
1256 extern int drm_authmagic(struct drm_device *dev, void *data,
1263 extern int drm_lock(struct drm_device *dev, void *data,
1265 extern int drm_unlock(struct drm_device *dev, void *data,
1277 extern int drm_i_have_hw_lock(struct drm_device *dev, struct drm_file *file_priv);
1280 extern int drm_addbufs_agp(struct drm_device *dev, struct drm_buf_desc * request);
1281 extern int drm_addbufs_pci(struct drm_device *dev, struct drm_buf_desc * request);
1282 extern int drm_addmap(struct drm_device *dev, resource_size_t offset,
1285 extern int drm_addmap_ioctl(struct drm_device *dev, void *data,
1287 extern int drm_rmmap(struct drm_device *dev, struct drm_local_map *map);
1288 extern int drm_rmmap_locked(struct drm_device *dev, struct drm_local_map *map);
1289 extern int drm_rmmap_ioctl(struct drm_device *dev, void *data,
1291 extern int drm_addbufs(struct drm_device *dev, void *data,
1293 extern int drm_infobufs(struct drm_device *dev, void *data,
1295 extern int drm_markbufs(struct drm_device *dev, void *data,
1297 extern int drm_freebufs(struct drm_device *dev, void *data,
1299 extern int drm_mapbufs(struct drm_device *dev, void *data,
1304 extern int drm_dma_setup(struct drm_device *dev);
1305 extern void drm_dma_takedown(struct drm_device *dev);
1306 extern void drm_free_buffer(struct drm_device *dev, struct drm_buf * buf);
1307 extern void drm_core_reclaim_buffers(struct drm_device *dev,
1311 extern int drm_control(struct drm_device *dev, void *data,
1314 extern int drm_irq_install(struct drm_device *dev);
1315 extern int drm_irq_uninstall(struct drm_device *dev);
1316 extern void drm_driver_irq_preinstall(struct drm_device *dev);
1317 extern void drm_driver_irq_postinstall(struct drm_device *dev);
1318 extern void drm_driver_irq_uninstall(struct drm_device *dev);
1320 extern int drm_vblank_init(struct drm_device *dev, int num_crtcs);
1321 extern int drm_wait_vblank(struct drm_device *dev, void *data,
1323 extern int drm_vblank_wait(struct drm_device *dev, unsigned int *vbl_seq);
1324 extern u32 drm_vblank_count(struct drm_device *dev, int crtc);
1325 extern void drm_handle_vblank(struct drm_device *dev, int crtc);
1326 extern int drm_vblank_get(struct drm_device *dev, int crtc);
1327 extern void drm_vblank_put(struct drm_device *dev, int crtc);
1328 extern void drm_vblank_off(struct drm_device *dev, int crtc);
1329 extern void drm_vblank_cleanup(struct drm_device *dev);
1331 extern void drm_vblank_pre_modeset(struct drm_device *dev, int crtc);
1332 extern void drm_vblank_post_modeset(struct drm_device *dev, int crtc);
1333 extern int drm_modeset_ctl(struct drm_device *dev, void *data,
1337 extern struct drm_agp_head *drm_agp_init(struct drm_device *dev);
1338 extern int drm_agp_acquire(struct drm_device *dev);
1339 extern int drm_agp_acquire_ioctl(struct drm_device *dev, void *data,
1341 extern int drm_agp_release(struct drm_device *dev);
1342 extern int drm_agp_release_ioctl(struct drm_device *dev, void *data,
1344 extern int drm_agp_enable(struct drm_device *dev, struct drm_agp_mode mode);
1345 extern int drm_agp_enable_ioctl(struct drm_device *dev, void *data,
1347 extern int drm_agp_info(struct drm_device *dev, struct drm_agp_info *info);
1348 extern int drm_agp_info_ioctl(struct drm_device *dev, void *data,
1350 extern int drm_agp_alloc(struct drm_device *dev, struct drm_agp_buffer *request);
1351 extern int drm_agp_alloc_ioctl(struct drm_device *dev, void *data,
1353 extern int drm_agp_free(struct drm_device *dev, struct drm_agp_buffer *request);
1354 extern int drm_agp_free_ioctl(struct drm_device *dev, void *data,
1356 extern int drm_agp_unbind(struct drm_device *dev, struct drm_agp_binding *request);
1357 extern int drm_agp_unbind_ioctl(struct drm_device *dev, void *data,
1359 extern int drm_agp_bind(struct drm_device *dev, struct drm_agp_binding *request);
1360 extern int drm_agp_bind_ioctl(struct drm_device *dev, void *data,
1366 extern void drm_agp_chipset_flush(struct drm_device *dev);
1369 extern int drm_setmaster_ioctl(struct drm_device *dev, void *data,
1371 extern int drm_dropmaster_ioctl(struct drm_device *dev, void *data,
1381 extern void drm_put_dev(struct drm_device *dev);
1391 extern struct drm_local_map *drm_getsarea(struct drm_device *dev);
1425 extern int drm_sg_alloc_ioctl(struct drm_device *dev, void *data,
1427 extern int drm_sg_alloc(struct drm_device *dev, struct drm_scatter_gather * request);
1428 extern int drm_sg_free(struct drm_device *dev, void *data,
1432 extern int drm_ati_pcigart_init(struct drm_device *dev,
1434 extern int drm_ati_pcigart_cleanup(struct drm_device *dev,
1437 extern drm_dma_handle_t *drm_pci_alloc(struct drm_device *dev, size_t size,
1439 extern void __drm_pci_free(struct drm_device *dev, drm_dma_handle_t * dmah);
1440 extern void drm_pci_free(struct drm_device *dev, drm_dma_handle_t * dmah);
1447 extern void drm_sysfs_hotplug_event(struct drm_device *dev);
1454 int drm_gem_init(struct drm_device *dev);
1455 void drm_gem_destroy(struct drm_device *dev);
1458 struct drm_gem_object *drm_gem_object_alloc(struct drm_device *dev,
1460 int drm_gem_object_init(struct drm_device *dev,
1486 struct drm_device *dev = obj->dev;
1542 struct drm_gem_object *drm_gem_object_lookup(struct drm_device *dev,
1545 int drm_gem_close_ioctl(struct drm_device *dev, void *data,
1547 int drm_gem_flink_ioctl(struct drm_device *dev, void *data,
1549 int drm_gem_open_ioctl(struct drm_device *dev, void *data,
1551 void drm_gem_open(struct drm_device *dev, struct drm_file *file_private);
1552 void drm_gem_release(struct drm_device *dev, struct drm_file *file_private);
1554 extern void drm_core_ioremap(struct drm_local_map *map, struct drm_device *dev);
1555 extern void drm_core_ioremap_wc(struct drm_local_map *map, struct drm_device *dev);
1556 extern void drm_core_ioremapfree(struct drm_local_map *map, struct drm_device *dev);
1558 static __inline__ struct drm_local_map *drm_core_findmap(struct drm_device *dev,
1568 static __inline__ int drm_device_is_agp(struct drm_device *dev)
1584 static __inline__ int drm_device_is_pcie(struct drm_device *dev)
1598 static inline void *drm_get_device(struct drm_device *dev)
1608 extern int drm_fill_in_dev(struct drm_device *dev,
1611 int drm_get_minor(struct drm_device *dev, struct drm_minor **minor, int type);