Lines Matching refs:drm_device

118 struct drm_device;
286 typedef int drm_ioctl_t(struct drm_device *dev, void *data,
590 struct drm_device *dev;
684 int (*get_irq)(struct drm_device *dev);
685 void (*free_irq)(struct drm_device *dev);
686 const char *(*get_name)(struct drm_device *dev);
687 int (*set_busid)(struct drm_device *dev, struct drm_master *master);
688 int (*set_unique)(struct drm_device *dev, struct drm_master *master,
690 int (*irq_by_busid)(struct drm_device *dev, struct drm_irq_busid *p);
692 int (*agp_init)(struct drm_device *dev);
702 int (*load) (struct drm_device *, unsigned long flags);
703 int (*firstopen) (struct drm_device *);
704 int (*open) (struct drm_device *, struct drm_file *);
705 void (*preclose) (struct drm_device *, struct drm_file *file_priv);
706 void (*postclose) (struct drm_device *, struct drm_file *);
707 void (*lastclose) (struct drm_device *);
708 int (*unload) (struct drm_device *);
709 int (*suspend) (struct drm_device *, pm_message_t state);
710 int (*resume) (struct drm_device *);
711 int (*dma_ioctl) (struct drm_device *dev, void *data, struct drm_file *file_priv);
712 int (*dma_quiescent) (struct drm_device *);
713 int (*context_dtor) (struct drm_device *dev, int context);
732 u32 (*get_vblank_counter) (struct drm_device *dev, int crtc);
747 int (*enable_vblank) (struct drm_device *dev, int crtc);
758 void (*disable_vblank) (struct drm_device *dev, int crtc);
771 int (*device_is_agp) (struct drm_device *dev);
797 int (*get_scanout_position) (struct drm_device *dev, int crtc,
830 int (*get_vblank_timestamp) (struct drm_device *dev, int crtc,
838 void (*irq_preinstall) (struct drm_device *dev);
839 int (*irq_postinstall) (struct drm_device *dev);
840 void (*irq_uninstall) (struct drm_device *dev);
841 void (*set_version) (struct drm_device *dev,
845 int (*master_create)(struct drm_device *dev, struct drm_master *master);
846 void (*master_destroy)(struct drm_device *dev, struct drm_master *master);
852 int (*master_set)(struct drm_device *dev, struct drm_file *file_priv,
854 void (*master_drop)(struct drm_device *dev, struct drm_file *file_priv,
871 int (*prime_handle_to_fd)(struct drm_device *dev, struct drm_file *file_priv,
874 int (*prime_fd_to_handle)(struct drm_device *dev, struct drm_file *file_priv,
877 struct dma_buf * (*gem_prime_export)(struct drm_device *dev,
880 struct drm_gem_object * (*gem_prime_import)(struct drm_device *dev,
886 struct drm_device *dev,
889 struct drm_device *dev, uint32_t handle,
892 struct drm_device *dev,
898 int (*sysctl_init)(struct drm_device *dev,
900 void (*sysctl_cleanup)(struct drm_device *dev);
935 struct drm_device *dev;
970 struct drm_device { struct
1136 static __inline__ int drm_core_check_feature(struct drm_device *dev, in drm_core_check_feature() argument
1142 static inline int drm_dev_to_irq(struct drm_device *dev) in drm_dev_to_irq()
1149 static inline int drm_core_has_AGP(struct drm_device *dev) in drm_core_has_AGP()
1158 static inline int drm_core_has_MTRR(struct drm_device *dev) in drm_core_has_MTRR()
1192 extern int drm_lastclose(struct drm_device *dev);
1208 extern int drm_irq_by_busid(struct drm_device *dev, void *data,
1210 extern int drm_getunique(struct drm_device *dev, void *data,
1212 extern int drm_setunique(struct drm_device *dev, void *data,
1214 extern int drm_getmap(struct drm_device *dev, void *data,
1216 extern int drm_getclient(struct drm_device *dev, void *data,
1218 extern int drm_getstats(struct drm_device *dev, void *data,
1220 extern int drm_getcap(struct drm_device *dev, void *data,
1222 extern int drm_setversion(struct drm_device *dev, void *data,
1224 extern int drm_noop(struct drm_device *dev, void *data,
1228 extern int drm_resctx(struct drm_device *dev, void *data,
1230 extern int drm_addctx(struct drm_device *dev, void *data,
1232 extern int drm_modctx(struct drm_device *dev, void *data,
1234 extern int drm_getctx(struct drm_device *dev, void *data,
1236 extern int drm_switchctx(struct drm_device *dev, void *data,
1238 extern int drm_newctx(struct drm_device *dev, void *data,
1240 extern int drm_rmctx(struct drm_device *dev, void *data,
1243 extern int drm_ctxbitmap_init(struct drm_device *dev);
1244 extern void drm_ctxbitmap_cleanup(struct drm_device *dev);
1245 extern void drm_ctxbitmap_free(struct drm_device *dev, int ctx_handle);
1247 extern int drm_setsareactx(struct drm_device *dev, void *data,
1249 extern int drm_getsareactx(struct drm_device *dev, void *data,
1253 extern int drm_getmagic(struct drm_device *dev, void *data,
1255 extern int drm_authmagic(struct drm_device *dev, void *data,
1264 extern int drm_lock(struct drm_device *dev, void *data,
1266 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,
1313 extern int drm_irq_install(struct drm_device *dev);
1314 extern int drm_irq_uninstall(struct drm_device *dev);
1316 extern int drm_vblank_init(struct drm_device *dev, int num_crtcs);
1317 extern int drm_wait_vblank(struct drm_device *dev, void *data,
1319 extern int drm_vblank_wait(struct drm_device *dev, unsigned int *vbl_seq);
1320 extern u32 drm_vblank_count(struct drm_device *dev, int crtc);
1321 extern u32 drm_vblank_count_and_time(struct drm_device *dev, int crtc,
1323 extern void drm_send_vblank_event(struct drm_device *dev, int crtc,
1325 extern bool 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);
1330 extern u32 drm_get_last_vbltimestamp(struct drm_device *dev, int crtc,
1332 extern int drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
1345 drm_mode_create_from_cmdline_mode(struct drm_device *dev,
1349 extern void drm_vblank_pre_modeset(struct drm_device *dev, int crtc);
1350 extern void drm_vblank_post_modeset(struct drm_device *dev, int crtc);
1351 extern int drm_modeset_ctl(struct drm_device *dev, void *data,
1356 extern int drm_setmaster_ioctl(struct drm_device *dev, void *data,
1358 extern int drm_dropmaster_ioctl(struct drm_device *dev, void *data,
1364 extern void drm_put_dev(struct drm_device *dev);
1366 extern void drm_unplug_dev(struct drm_device *dev);
1374 extern struct drm_local_map *drm_getsarea(struct drm_device *dev);
1378 extern int drm_gem_prime_handle_to_fd(struct drm_device *dev,
1381 extern int drm_gem_prime_fd_to_handle(struct drm_device *dev,
1384 extern int drm_prime_handle_to_fd_ioctl(struct drm_device *dev, void *data,
1386 extern int drm_prime_fd_to_handle_ioctl(struct drm_device *dev, void *data,
1401 int drm_prime_add_dma_buf(struct drm_device *dev, struct drm_gem_object *obj);
1402 int drm_prime_lookup_obj(struct drm_device *dev, struct dma_buf *buf,
1408 extern int drm_sg_alloc_ioctl(struct drm_device *dev, void *data,
1410 extern int drm_sg_alloc(struct drm_device *dev, struct drm_scatter_gather * request);
1411 extern int drm_sg_free(struct drm_device *dev, void *data,
1415 extern int drm_ati_pcigart_init(struct drm_device *dev,
1417 extern int drm_ati_pcigart_cleanup(struct drm_device *dev,
1420 extern drm_dma_handle_t *drm_pci_alloc(struct drm_device *dev, size_t size,
1422 extern void __drm_pci_free(struct drm_device *dev, drm_dma_handle_t * dmah);
1423 extern void drm_pci_free(struct drm_device *dev, drm_dma_handle_t * dmah);
1426 int drm_gem_init(struct drm_device *dev);
1427 void drm_gem_destroy(struct drm_device *dev);
1430 struct drm_gem_object *drm_gem_object_alloc(struct drm_device *dev,
1432 int drm_gem_object_init(struct drm_device *dev,
1434 int drm_gem_private_object_init(struct drm_device *dev,
1437 int drm_gem_mmap_single(struct drm_device *dev, vm_ooffset_t *offset,
1465 struct drm_device *dev = obj->dev; in drm_gem_object_unreference_unlocked()
1525 struct drm_gem_object *drm_gem_object_lookup(struct drm_device *dev,
1528 int drm_gem_close_ioctl(struct drm_device *dev, void *data,
1530 int drm_gem_flink_ioctl(struct drm_device *dev, void *data,
1532 int drm_gem_open_ioctl(struct drm_device *dev, void *data,
1534 void drm_gem_open(struct drm_device *dev, struct drm_file *file_private);
1535 void drm_gem_release(struct drm_device *dev, struct drm_file *file_private);
1537 extern void drm_core_ioremap(struct drm_local_map *map, struct drm_device *dev);
1538 extern void drm_core_ioremap_wc(struct drm_local_map *map, struct drm_device *dev);
1539 extern void drm_core_ioremapfree(struct drm_local_map *map, struct drm_device *dev);
1541 static __inline__ struct drm_local_map *drm_core_findmap(struct drm_device *dev, in drm_core_findmap()
1557 extern int drm_fill_in_dev(struct drm_device *dev,
1559 extern void drm_cancel_fill_in_dev(struct drm_device *dev);
1560 int drm_get_minor(struct drm_device *dev, struct drm_minor **minor, int type);
1564 int drm_pci_device_is_agp(struct drm_device *dev);
1565 int drm_pci_device_is_pcie(struct drm_device *dev);
1567 extern int drm_get_pci_dev(device_t kdev, struct drm_device *dev,
1574 extern int drm_pcie_get_speed_cap_mask(struct drm_device *dev, u32 *speed_mask);
1579 int drm_get_platform_dev(device_t kdev, struct drm_device *dev,
1747 int drm_add_busid_modesetting(struct drm_device *dev,
1751 unsigned long drm_get_resource_start(struct drm_device *dev,
1753 unsigned long drm_get_resource_len(struct drm_device *dev,
1758 void drm_driver_irq_preinstall(struct drm_device *dev);
1759 void drm_driver_irq_postinstall(struct drm_device *dev);
1760 void drm_driver_irq_uninstall(struct drm_device *dev);
1763 extern int drm_sysctl_init(struct drm_device *dev);
1764 extern int drm_sysctl_cleanup(struct drm_device *dev);
1766 int drm_version(struct drm_device *dev, void *data,
1770 int drm_pci_set_busid(struct drm_device *dev, struct drm_master *master);
1771 int drm_pci_set_unique(struct drm_device *dev, struct drm_master *master,
1773 int drm_pci_agp_init(struct drm_device *dev);
1774 int drm_pci_enable_msi(struct drm_device *dev);
1775 void drm_pci_disable_msi(struct drm_device *dev);
1788 extern DRM_AGP_MEM *drm_agp_bind_pages(struct drm_device *dev,
1797 extern struct drm_agp_head *drm_agp_init(struct drm_device *dev);
1798 extern int drm_agp_acquire(struct drm_device *dev);
1799 extern int drm_agp_acquire_ioctl(struct drm_device *dev, void *data,
1801 extern int drm_agp_release(struct drm_device *dev);
1802 extern int drm_agp_release_ioctl(struct drm_device *dev, void *data,
1804 extern int drm_agp_enable(struct drm_device *dev, struct drm_agp_mode mode);
1805 extern int drm_agp_enable_ioctl(struct drm_device *dev, void *data,
1807 extern int drm_agp_info(struct drm_device *dev, struct drm_agp_info *info);
1808 extern int drm_agp_info_ioctl(struct drm_device *dev, void *data,
1810 extern int drm_agp_alloc(struct drm_device *dev, struct drm_agp_buffer *request);
1811 extern int drm_agp_alloc_ioctl(struct drm_device *dev, void *data,
1813 extern int drm_agp_free(struct drm_device *dev, struct drm_agp_buffer *request);
1814 extern int drm_agp_free_ioctl(struct drm_device *dev, void *data,
1816 extern int drm_agp_unbind(struct drm_device *dev, struct drm_agp_binding *request);
1817 extern int drm_agp_unbind_ioctl(struct drm_device *dev, void *data,
1819 extern int drm_agp_bind(struct drm_device *dev, struct drm_agp_binding *request);
1820 extern int drm_agp_bind_ioctl(struct drm_device *dev, void *data,
1839 static inline struct agp_memory *drm_agp_bind_pages(struct drm_device *dev, in drm_agp_bind_pages()
1848 static inline struct drm_agp_head *drm_agp_init(struct drm_device *dev) in drm_agp_init()
1853 static inline void drm_agp_clear(struct drm_device *dev) in drm_agp_clear()
1857 static inline int drm_agp_acquire(struct drm_device *dev) in drm_agp_acquire()
1862 static inline int drm_agp_acquire_ioctl(struct drm_device *dev, void *data, in drm_agp_acquire_ioctl()
1868 static inline int drm_agp_release(struct drm_device *dev) in drm_agp_release()
1873 static inline int drm_agp_release_ioctl(struct drm_device *dev, void *data, in drm_agp_release_ioctl()
1879 static inline int drm_agp_enable(struct drm_device *dev, in drm_agp_enable()
1885 static inline int drm_agp_enable_ioctl(struct drm_device *dev, void *data, in drm_agp_enable_ioctl()
1891 static inline int drm_agp_info(struct drm_device *dev, in drm_agp_info()
1897 static inline int drm_agp_info_ioctl(struct drm_device *dev, void *data, in drm_agp_info_ioctl()
1903 static inline int drm_agp_alloc(struct drm_device *dev, in drm_agp_alloc()
1909 static inline int drm_agp_alloc_ioctl(struct drm_device *dev, void *data, in drm_agp_alloc_ioctl()
1915 static inline int drm_agp_free(struct drm_device *dev, in drm_agp_free()
1921 static inline int drm_agp_free_ioctl(struct drm_device *dev, void *data, in drm_agp_free_ioctl()
1927 static inline int drm_agp_unbind(struct drm_device *dev, in drm_agp_unbind()
1933 static inline int drm_agp_unbind_ioctl(struct drm_device *dev, void *data, in drm_agp_unbind_ioctl()
1939 static inline int drm_agp_bind(struct drm_device *dev, in drm_agp_bind()
1945 static inline int drm_agp_bind_ioctl(struct drm_device *dev, void *data, in drm_agp_bind_ioctl()