Lines Matching refs:drm_device
80 struct drm_device;
236 typedef int drm_ioctl_t(struct drm_device *dev, void *data,
395 int (*load) (struct drm_device *, unsigned long flags);
396 int (*firstopen) (struct drm_device *);
397 int (*open) (struct drm_device *, struct drm_file *);
398 void (*preclose) (struct drm_device *, struct drm_file *file_priv);
399 void (*postclose) (struct drm_device *, struct drm_file *);
400 void (*lastclose) (struct drm_device *);
401 int (*unload) (struct drm_device *);
402 int (*suspend) (struct drm_device *, pm_message_t state);
403 int (*resume) (struct drm_device *);
404 int (*dma_ioctl) (struct drm_device *dev, void *data, struct drm_file *file_priv);
405 int (*dma_quiescent) (struct drm_device *);
406 int (*context_dtor) (struct drm_device *dev, int context);
407 int (*set_busid)(struct drm_device *dev, struct drm_master *master);
426 u32 (*get_vblank_counter) (struct drm_device *dev, int crtc);
441 int (*enable_vblank) (struct drm_device *dev, int crtc);
452 void (*disable_vblank) (struct drm_device *dev, int crtc);
465 int (*device_is_agp) (struct drm_device *dev);
497 int (*get_scanout_position) (struct drm_device *dev, int crtc,
532 int (*get_vblank_timestamp) (struct drm_device *dev, int crtc,
540 void (*irq_preinstall) (struct drm_device *dev);
541 int (*irq_postinstall) (struct drm_device *dev);
542 void (*irq_uninstall) (struct drm_device *dev);
545 int (*master_create)(struct drm_device *dev, struct drm_master *master);
546 void (*master_destroy)(struct drm_device *dev, struct drm_master *master);
552 int (*master_set)(struct drm_device *dev, struct drm_file *file_priv,
554 void (*master_drop)(struct drm_device *dev, struct drm_file *file_priv,
572 int (*prime_handle_to_fd)(struct drm_device *dev, struct drm_file *file_priv,
575 int (*prime_fd_to_handle)(struct drm_device *dev, struct drm_file *file_priv,
578 struct dma_buf * (*gem_prime_export)(struct drm_device *dev,
581 struct drm_gem_object * (*gem_prime_import)(struct drm_device *dev,
590 struct drm_device *dev,
599 void (*vgaarb_irq)(struct drm_device *dev, bool state);
603 struct drm_device *dev,
606 struct drm_device *dev, uint32_t handle,
609 struct drm_device *dev,
667 struct drm_device *dev;
687 struct drm_device *dev; /* pointer to the drm_device */
706 struct drm_device { struct
844 static __inline__ int drm_core_check_feature(struct drm_device *dev, in drm_core_check_feature() argument
850 static inline void drm_device_set_unplugged(struct drm_device *dev) in drm_device_set_unplugged()
856 static inline int drm_device_is_unplugged(struct drm_device *dev) in drm_device_is_unplugged()
899 int drm_noop(struct drm_device *dev, void *data,
913 extern int drm_irq_install(struct drm_device *dev, int irq);
914 extern int drm_irq_uninstall(struct drm_device *dev);
916 extern int drm_vblank_init(struct drm_device *dev, int num_crtcs);
917 extern int drm_wait_vblank(struct drm_device *dev, void *data,
919 extern u32 drm_vblank_count(struct drm_device *dev, int crtc);
921 extern u32 drm_vblank_count_and_time(struct drm_device *dev, int crtc,
923 extern void drm_send_vblank_event(struct drm_device *dev, int crtc,
927 extern bool drm_handle_vblank(struct drm_device *dev, int crtc);
929 extern int drm_vblank_get(struct drm_device *dev, int crtc);
930 extern void drm_vblank_put(struct drm_device *dev, int crtc);
933 extern void drm_wait_one_vblank(struct drm_device *dev, int crtc);
935 extern void drm_vblank_off(struct drm_device *dev, int crtc);
936 extern void drm_vblank_on(struct drm_device *dev, int crtc);
940 extern void drm_vblank_cleanup(struct drm_device *dev);
942 extern int drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
964 extern void drm_vblank_pre_modeset(struct drm_device *dev, int crtc);
965 extern void drm_vblank_post_modeset(struct drm_device *dev, int crtc);
971 extern void drm_put_dev(struct drm_device *dev);
972 extern void drm_unplug_dev(struct drm_device *dev);
998 extern struct dma_buf *drm_gem_prime_export(struct drm_device *dev,
1000 extern int drm_gem_prime_handle_to_fd(struct drm_device *dev,
1003 extern struct drm_gem_object *drm_gem_prime_import(struct drm_device *dev,
1005 extern int drm_gem_prime_fd_to_handle(struct drm_device *dev,
1015 extern struct drm_dma_handle *drm_pci_alloc(struct drm_device *dev, size_t size,
1017 extern void drm_pci_free(struct drm_device *dev, struct drm_dma_handle * dmah);
1020 extern void drm_sysfs_hotplug_event(struct drm_device *dev);
1023 struct drm_device *drm_dev_alloc(struct drm_driver *driver,
1025 void drm_dev_ref(struct drm_device *dev);
1026 void drm_dev_unref(struct drm_device *dev);
1027 int drm_dev_register(struct drm_device *dev, unsigned long flags);
1028 void drm_dev_unregister(struct drm_device *dev);
1029 int drm_dev_set_unique(struct drm_device *dev, const char *fmt, ...);
1037 static __inline__ int drm_pci_device_is_agp(struct drm_device *dev) in drm_pci_device_is_agp()
1049 void drm_pci_agp_destroy(struct drm_device *dev);
1057 extern int drm_pci_set_busid(struct drm_device *dev, struct drm_master *master);
1066 static inline int drm_pci_set_busid(struct drm_device *dev, in drm_pci_set_busid()
1077 extern int drm_pcie_get_speed_cap_mask(struct drm_device *dev, u32 *speed_mask);
1081 extern int drm_platform_set_busid(struct drm_device *d, struct drm_master *m);