Lines Matching refs:drm_device
80 struct drm_device;
246 typedef int drm_ioctl_t(struct drm_device *dev, void *data,
412 int (*load) (struct drm_device *, unsigned long flags);
413 int (*firstopen) (struct drm_device *);
414 int (*open) (struct drm_device *, struct drm_file *);
415 void (*preclose) (struct drm_device *, struct drm_file *file_priv);
416 void (*postclose) (struct drm_device *, struct drm_file *);
417 void (*lastclose) (struct drm_device *);
418 int (*unload) (struct drm_device *);
419 int (*suspend) (struct drm_device *, pm_message_t state);
420 int (*resume) (struct drm_device *);
421 int (*dma_ioctl) (struct drm_device *dev, void *data, struct drm_file *file_priv);
422 int (*dma_quiescent) (struct drm_device *);
423 int (*context_dtor) (struct drm_device *dev, int context);
424 int (*set_busid)(struct drm_device *dev, struct drm_master *master);
443 u32 (*get_vblank_counter) (struct drm_device *dev, unsigned int pipe);
458 int (*enable_vblank) (struct drm_device *dev, unsigned int pipe);
469 void (*disable_vblank) (struct drm_device *dev, unsigned int pipe);
482 int (*device_is_agp) (struct drm_device *dev);
515 int (*get_scanout_position) (struct drm_device *dev, unsigned int pipe,
550 int (*get_vblank_timestamp) (struct drm_device *dev, unsigned int pipe,
558 void (*irq_preinstall) (struct drm_device *dev);
559 int (*irq_postinstall) (struct drm_device *dev);
560 void (*irq_uninstall) (struct drm_device *dev);
563 int (*master_create)(struct drm_device *dev, struct drm_master *master);
564 void (*master_destroy)(struct drm_device *dev, struct drm_master *master);
570 int (*master_set)(struct drm_device *dev, struct drm_file *file_priv,
572 void (*master_drop)(struct drm_device *dev, struct drm_file *file_priv,
590 int (*prime_handle_to_fd)(struct drm_device *dev, struct drm_file *file_priv,
593 int (*prime_fd_to_handle)(struct drm_device *dev, struct drm_file *file_priv,
596 struct dma_buf * (*gem_prime_export)(struct drm_device *dev,
599 struct drm_gem_object * (*gem_prime_import)(struct drm_device *dev,
608 struct drm_device *dev,
617 void (*vgaarb_irq)(struct drm_device *dev, bool state);
621 struct drm_device *dev,
624 struct drm_device *dev, uint32_t handle,
627 struct drm_device *dev,
685 struct drm_device *dev;
704 struct drm_device *dev; /* pointer to the drm_device */
729 struct drm_device { struct
867 static __inline__ int drm_core_check_feature(struct drm_device *dev, in drm_core_check_feature() argument
873 static inline void drm_device_set_unplugged(struct drm_device *dev) in drm_device_set_unplugged()
879 static inline int drm_device_is_unplugged(struct drm_device *dev) in drm_device_is_unplugged()
918 extern int drm_new_set_master(struct drm_device *dev, struct drm_file *fpriv);
924 int drm_noop(struct drm_device *dev, void *data,
926 int drm_invalid_op(struct drm_device *dev, void *data,
940 extern int drm_irq_install(struct drm_device *dev, int irq);
941 extern int drm_irq_uninstall(struct drm_device *dev);
943 extern int drm_vblank_init(struct drm_device *dev, unsigned int num_crtcs);
944 extern int drm_wait_vblank(struct drm_device *dev, void *data,
946 extern u32 drm_vblank_count(struct drm_device *dev, unsigned int pipe);
948 extern u32 drm_vblank_count_and_time(struct drm_device *dev, unsigned int pipe,
952 extern void drm_send_vblank_event(struct drm_device *dev, unsigned int pipe,
956 extern void drm_arm_vblank_event(struct drm_device *dev, unsigned int pipe,
960 extern bool drm_handle_vblank(struct drm_device *dev, unsigned int pipe);
962 extern int drm_vblank_get(struct drm_device *dev, unsigned int pipe);
963 extern void drm_vblank_put(struct drm_device *dev, unsigned int pipe);
966 extern void drm_wait_one_vblank(struct drm_device *dev, unsigned int pipe);
968 extern void drm_vblank_off(struct drm_device *dev, unsigned int pipe);
969 extern void drm_vblank_on(struct drm_device *dev, unsigned int pipe);
973 extern void drm_vblank_cleanup(struct drm_device *dev);
974 extern u32 drm_vblank_no_hw_counter(struct drm_device *dev, unsigned int pipe);
976 extern int drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
997 extern void drm_vblank_pre_modeset(struct drm_device *dev, unsigned int pipe);
998 extern void drm_vblank_post_modeset(struct drm_device *dev, unsigned int pipe);
1004 extern void drm_put_dev(struct drm_device *dev);
1005 extern void drm_unplug_dev(struct drm_device *dev);
1031 extern struct dma_buf *drm_gem_prime_export(struct drm_device *dev,
1033 extern int drm_gem_prime_handle_to_fd(struct drm_device *dev,
1036 extern struct drm_gem_object *drm_gem_prime_import(struct drm_device *dev,
1038 extern int drm_gem_prime_fd_to_handle(struct drm_device *dev,
1048 extern struct drm_dma_handle *drm_pci_alloc(struct drm_device *dev, size_t size,
1050 extern void drm_pci_free(struct drm_device *dev, struct drm_dma_handle * dmah);
1053 extern void drm_sysfs_hotplug_event(struct drm_device *dev);
1056 struct drm_device *drm_dev_alloc(struct drm_driver *driver,
1058 void drm_dev_ref(struct drm_device *dev);
1059 void drm_dev_unref(struct drm_device *dev);
1060 int drm_dev_register(struct drm_device *dev, unsigned long flags);
1061 void drm_dev_unregister(struct drm_device *dev);
1062 int drm_dev_set_unique(struct drm_device *dev, const char *fmt, ...);
1070 static __inline__ int drm_pci_device_is_agp(struct drm_device *dev) in drm_pci_device_is_agp()
1082 void drm_pci_agp_destroy(struct drm_device *dev);
1090 extern int drm_pci_set_busid(struct drm_device *dev, struct drm_master *master);
1099 static inline int drm_pci_set_busid(struct drm_device *dev, in drm_pci_set_busid()
1110 extern int drm_pcie_get_speed_cap_mask(struct drm_device *dev, u32 *speed_mask);
1114 extern int drm_platform_set_busid(struct drm_device *d, struct drm_master *m);