• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/dev/drm2/

Lines Matching defs:drm_device

120 struct drm_device;
288 typedef int drm_ioctl_t(struct drm_device *dev, void *data,
482 * \sa drm_agp_init() and drm_device::agp.
592 struct drm_device *dev;
609 * Access is covered by the object_name_lock in the related drm_device
686 int (*get_irq)(struct drm_device *dev);
687 void (*free_irq)(struct drm_device *dev);
688 const char *(*get_name)(struct drm_device *dev);
689 int (*set_busid)(struct drm_device *dev, struct drm_master *master);
690 int (*set_unique)(struct drm_device *dev, struct drm_master *master,
692 int (*irq_by_busid)(struct drm_device *dev, struct drm_irq_busid *p);
694 int (*agp_init)(struct drm_device *dev);
700 * a family of cards. There will one drm_device for each card present
704 int (*load) (struct drm_device *, unsigned long flags);
705 int (*firstopen) (struct drm_device *);
706 int (*open) (struct drm_device *, struct drm_file *);
707 void (*preclose) (struct drm_device *, struct drm_file *file_priv);
708 void (*postclose) (struct drm_device *, struct drm_file *);
709 void (*lastclose) (struct drm_device *);
710 int (*unload) (struct drm_device *);
711 int (*suspend) (struct drm_device *, pm_message_t state);
712 int (*resume) (struct drm_device *);
713 int (*dma_ioctl) (struct drm_device *dev, void *data, struct drm_file *file_priv);
714 int (*dma_quiescent) (struct drm_device *);
715 int (*context_dtor) (struct drm_device *dev, int context);
734 u32 (*get_vblank_counter) (struct drm_device *dev, int crtc);
749 int (*enable_vblank) (struct drm_device *dev, int crtc);
760 void (*disable_vblank) (struct drm_device *dev, int crtc);
773 int (*device_is_agp) (struct drm_device *dev);
799 int (*get_scanout_position) (struct drm_device *dev, int crtc,
832 int (*get_vblank_timestamp) (struct drm_device *dev, int crtc,
840 void (*irq_preinstall) (struct drm_device *dev);
841 int (*irq_postinstall) (struct drm_device *dev);
842 void (*irq_uninstall) (struct drm_device *dev);
843 void (*set_version) (struct drm_device *dev,
847 int (*master_create)(struct drm_device *dev, struct drm_master *master);
848 void (*master_destroy)(struct drm_device *dev, struct drm_master *master);
854 int (*master_set)(struct drm_device *dev, struct drm_file *file_priv,
856 void (*master_drop)(struct drm_device *dev, struct drm_file *file_priv,
873 int (*prime_handle_to_fd)(struct drm_device *dev, struct drm_file *file_priv,
876 int (*prime_fd_to_handle)(struct drm_device *dev, struct drm_file *file_priv,
879 struct dma_buf * (*gem_prime_export)(struct drm_device *dev,
882 struct drm_gem_object * (*gem_prime_import)(struct drm_device *dev,
888 struct drm_device *dev,
891 struct drm_device *dev, uint32_t handle,
894 struct drm_device *dev,
900 int (*sysctl_init)(struct drm_device *dev,
902 void (*sysctl_cleanup)(struct drm_device *dev);
937 struct drm_device *dev;
972 struct drm_device {
977 struct mtx count_lock; /**< For inuse, drm_device::open_count, drm_device::buf_use */
1138 static __inline__ int drm_core_check_feature(struct drm_device *dev,
1144 static inline int drm_dev_to_irq(struct drm_device *dev)
1151 static inline int drm_core_has_AGP(struct drm_device *dev)
1160 static inline int drm_core_has_MTRR(struct drm_device *dev)
1194 extern int drm_lastclose(struct drm_device *dev);
1210 extern int drm_irq_by_busid(struct drm_device *dev, void *data,
1212 extern int drm_getunique(struct drm_device *dev, void *data,
1214 extern int drm_setunique(struct drm_device *dev, void *data,
1216 extern int drm_getmap(struct drm_device *dev, void *data,
1218 extern int drm_getclient(struct drm_device *dev, void *data,
1220 extern int drm_getstats(struct drm_device *dev, void *data,
1222 extern int drm_getcap(struct drm_device *dev, void *data,
1224 extern int drm_setversion(struct drm_device *dev, void *data,
1226 extern int drm_noop(struct drm_device *dev, void *data,
1230 extern int drm_resctx(struct drm_device *dev, void *data,
1232 extern int drm_addctx(struct drm_device *dev, void *data,
1234 extern int drm_modctx(struct drm_device *dev, void *data,
1236 extern int drm_getctx(struct drm_device *dev, void *data,
1238 extern int drm_switchctx(struct drm_device *dev, void *data,
1240 extern int drm_newctx(struct drm_device *dev, void *data,
1242 extern int drm_rmctx(struct drm_device *dev, void *data,
1245 extern int drm_ctxbitmap_init(struct drm_device *dev);
1246 extern void drm_ctxbitmap_cleanup(struct drm_device *dev);
1247 extern void drm_ctxbitmap_free(struct drm_device *dev, int ctx_handle);
1249 extern int drm_setsareactx(struct drm_device *dev, void *data,
1251 extern int drm_getsareactx(struct drm_device *dev, void *data,
1255 extern int drm_getmagic(struct drm_device *dev, void *data,
1257 extern int drm_authmagic(struct drm_device *dev, void *data,
1266 extern int drm_lock(struct drm_device *dev, void *data,
1268 extern int drm_unlock(struct drm_device *dev, void *data,
1279 extern int drm_i_have_hw_lock(struct drm_device *dev, struct drm_file *file_priv);
1282 extern int drm_addbufs_agp(struct drm_device *dev, struct drm_buf_desc * request);
1283 extern int drm_addbufs_pci(struct drm_device *dev, struct drm_buf_desc * request);
1284 extern int drm_addmap(struct drm_device *dev, resource_size_t offset,
1287 extern int drm_addmap_ioctl(struct drm_device *dev, void *data,
1289 extern int drm_rmmap(struct drm_device *dev, struct drm_local_map *map);
1290 extern int drm_rmmap_locked(struct drm_device *dev, struct drm_local_map *map);
1291 extern int drm_rmmap_ioctl(struct drm_device *dev, void *data,
1293 extern int drm_addbufs(struct drm_device *dev, void *data,
1295 extern int drm_infobufs(struct drm_device *dev, void *data,
1297 extern int drm_markbufs(struct drm_device *dev, void *data,
1299 extern int drm_freebufs(struct drm_device *dev, void *data,
1301 extern int drm_mapbufs(struct drm_device *dev, void *data,
1306 extern int drm_dma_setup(struct drm_device *dev);
1307 extern void drm_dma_takedown(struct drm_device *dev);
1308 extern void drm_free_buffer(struct drm_device *dev, struct drm_buf * buf);
1309 extern void drm_core_reclaim_buffers(struct drm_device *dev,
1313 extern int drm_control(struct drm_device *dev, void *data,
1315 extern int drm_irq_install(struct drm_device *dev);
1316 extern int drm_irq_uninstall(struct drm_device *dev);
1318 extern int drm_vblank_init(struct drm_device *dev, int num_crtcs);
1319 extern int drm_wait_vblank(struct drm_device *dev, void *data,
1321 extern int drm_vblank_wait(struct drm_device *dev, unsigned int *vbl_seq);
1322 extern u32 drm_vblank_count(struct drm_device *dev, int crtc);
1323 extern u32 drm_vblank_count_and_time(struct drm_device *dev, int crtc,
1325 extern void drm_send_vblank_event(struct drm_device *dev, int crtc,
1327 extern bool drm_handle_vblank(struct drm_device *dev, int crtc);
1328 extern int drm_vblank_get(struct drm_device *dev, int crtc);
1329 extern void drm_vblank_put(struct drm_device *dev, int crtc);
1330 extern void drm_vblank_off(struct drm_device *dev, int crtc);
1331 extern void drm_vblank_cleanup(struct drm_device *dev);
1332 extern u32 drm_get_last_vbltimestamp(struct drm_device *dev, int crtc,
1334 extern int drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
1347 drm_mode_create_from_cmdline_mode(struct drm_device *dev,
1351 extern void drm_vblank_pre_modeset(struct drm_device *dev, int crtc);
1352 extern void drm_vblank_post_modeset(struct drm_device *dev, int crtc);
1353 extern int drm_modeset_ctl(struct drm_device *dev, void *data,
1358 extern int drm_setmaster_ioctl(struct drm_device *dev, void *data,
1360 extern int drm_dropmaster_ioctl(struct drm_device *dev, void *data,
1366 extern void drm_put_dev(struct drm_device *dev);
1368 extern void drm_unplug_dev(struct drm_device *dev);
1376 extern struct drm_local_map *drm_getsarea(struct drm_device *dev);
1380 extern int drm_gem_prime_handle_to_fd(struct drm_device *dev,
1383 extern int drm_gem_prime_fd_to_handle(struct drm_device *dev,
1386 extern int drm_prime_handle_to_fd_ioctl(struct drm_device *dev, void *data,
1388 extern int drm_prime_fd_to_handle_ioctl(struct drm_device *dev, void *data,
1403 int drm_prime_add_dma_buf(struct drm_device *dev, struct drm_gem_object *obj);
1404 int drm_prime_lookup_obj(struct drm_device *dev, struct dma_buf *buf,
1410 extern int drm_sg_alloc_ioctl(struct drm_device *dev, void *data,
1412 extern int drm_sg_alloc(struct drm_device *dev, struct drm_scatter_gather * request);
1413 extern int drm_sg_free(struct drm_device *dev, void *data,
1417 extern int drm_ati_pcigart_init(struct drm_device *dev,
1419 extern int drm_ati_pcigart_cleanup(struct drm_device *dev,
1422 extern drm_dma_handle_t *drm_pci_alloc(struct drm_device *dev, size_t size,
1424 extern void __drm_pci_free(struct drm_device *dev, drm_dma_handle_t * dmah);
1425 extern void drm_pci_free(struct drm_device *dev, drm_dma_handle_t * dmah);
1428 int drm_gem_init(struct drm_device *dev);
1429 void drm_gem_destroy(struct drm_device *dev);
1432 struct drm_gem_object *drm_gem_object_alloc(struct drm_device *dev,
1434 int drm_gem_object_init(struct drm_device *dev,
1436 int drm_gem_private_object_init(struct drm_device *dev,
1439 int drm_gem_mmap_single(struct drm_device *dev, vm_ooffset_t *offset,
1467 struct drm_device *dev = obj->dev;
1527 struct drm_gem_object *drm_gem_object_lookup(struct drm_device *dev,
1530 int drm_gem_close_ioctl(struct drm_device *dev, void *data,
1532 int drm_gem_flink_ioctl(struct drm_device *dev, void *data,
1534 int drm_gem_open_ioctl(struct drm_device *dev, void *data,
1536 void drm_gem_open(struct drm_device *dev, struct drm_file *file_private);
1537 void drm_gem_release(struct drm_device *dev, struct drm_file *file_private);
1539 extern void drm_core_ioremap(struct drm_local_map *map, struct drm_device *dev);
1540 extern void drm_core_ioremap_wc(struct drm_local_map *map, struct drm_device *dev);
1541 extern void drm_core_ioremapfree(struct drm_local_map *map, struct drm_device *dev);
1543 static __inline__ struct drm_local_map *drm_core_findmap(struct drm_device *dev,
1559 extern int drm_fill_in_dev(struct drm_device *dev,
1561 extern void drm_cancel_fill_in_dev(struct drm_device *dev);
1562 int drm_get_minor(struct drm_device *dev, struct drm_minor **minor, int type);
1566 int drm_pci_device_is_agp(struct drm_device *dev);
1567 int drm_pci_device_is_pcie(struct drm_device *dev);
1569 extern int drm_get_pci_dev(device_t kdev, struct drm_device *dev,
1576 extern int drm_pcie_get_speed_cap_mask(struct drm_device *dev, u32 *speed_mask);
1581 int drm_get_platform_dev(device_t kdev, struct drm_device *dev,
1749 int drm_add_busid_modesetting(struct drm_device *dev,
1753 unsigned long drm_get_resource_start(struct drm_device *dev,
1755 unsigned long drm_get_resource_len(struct drm_device *dev,
1760 void drm_driver_irq_preinstall(struct drm_device *dev);
1761 void drm_driver_irq_postinstall(struct drm_device *dev);
1762 void drm_driver_irq_uninstall(struct drm_device *dev);
1765 extern int drm_sysctl_init(struct drm_device *dev);
1766 extern int drm_sysctl_cleanup(struct drm_device *dev);
1768 int drm_version(struct drm_device *dev, void *data,
1772 int drm_pci_set_busid(struct drm_device *dev, struct drm_master *master);
1773 int drm_pci_set_unique(struct drm_device *dev, struct drm_master *master,
1775 int drm_pci_agp_init(struct drm_device *dev);
1776 int drm_pci_enable_msi(struct drm_device *dev);
1777 void drm_pci_disable_msi(struct drm_device *dev);
1790 extern DRM_AGP_MEM *drm_agp_bind_pages(struct drm_device *dev,
1799 extern struct drm_agp_head *drm_agp_init(struct drm_device *dev);
1800 extern int drm_agp_acquire(struct drm_device *dev);
1801 extern int drm_agp_acquire_ioctl(struct drm_device *dev, void *data,
1803 extern int drm_agp_release(struct drm_device *dev);
1804 extern int drm_agp_release_ioctl(struct drm_device *dev, void *data,
1806 extern int drm_agp_enable(struct drm_device *dev, struct drm_agp_mode mode);
1807 extern int drm_agp_enable_ioctl(struct drm_device *dev, void *data,
1809 extern int drm_agp_info(struct drm_device *dev, struct drm_agp_info *info);
1810 extern int drm_agp_info_ioctl(struct drm_device *dev, void *data,
1812 extern int drm_agp_alloc(struct drm_device *dev, struct drm_agp_buffer *request);
1813 extern int drm_agp_alloc_ioctl(struct drm_device *dev, void *data,
1815 extern int drm_agp_free(struct drm_device *dev, struct drm_agp_buffer *request);
1816 extern int drm_agp_free_ioctl(struct drm_device *dev, void *data,
1818 extern int drm_agp_unbind(struct drm_device *dev, struct drm_agp_binding *request);
1819 extern int drm_agp_unbind_ioctl(struct drm_device *dev, void *data,
1821 extern int drm_agp_bind(struct drm_device *dev, struct drm_agp_binding *request);
1822 extern int drm_agp_bind_ioctl(struct drm_device *dev, void *data,
1841 static inline struct agp_memory *drm_agp_bind_pages(struct drm_device *dev,
1850 static inline struct drm_agp_head *drm_agp_init(struct drm_device *dev)
1855 static inline void drm_agp_clear(struct drm_device *dev)
1859 static inline int drm_agp_acquire(struct drm_device *dev)
1864 static inline int drm_agp_acquire_ioctl(struct drm_device *dev, void *data,
1870 static inline int drm_agp_release(struct drm_device *dev)
1875 static inline int drm_agp_release_ioctl(struct drm_device *dev, void *data,
1881 static inline int drm_agp_enable(struct drm_device *dev,
1887 static inline int drm_agp_enable_ioctl(struct drm_device *dev, void *data,
1893 static inline int drm_agp_info(struct drm_device *dev,
1899 static inline int drm_agp_info_ioctl(struct drm_device *dev, void *data,
1905 static inline int drm_agp_alloc(struct drm_device *dev,
1911 static inline int drm_agp_alloc_ioctl(struct drm_device *dev, void *data,
1917 static inline int drm_agp_free(struct drm_device *dev,
1923 static inline int drm_agp_free_ioctl(struct drm_device *dev, void *data,
1929 static inline int drm_agp_unbind(struct drm_device *dev,
1935 static inline int drm_agp_unbind_ioctl(struct drm_device *dev, void *data,
1941 static inline int drm_agp_bind(struct drm_device *dev,
1947 static inline int drm_agp_bind_ioctl(struct drm_device *dev, void *data,