Lines Matching refs:drm_device

33 #include <drm/drm_device.h>
47 * See &drm_driver.driver_features, drm_device.driver_features and
157 * one &struct drm_device for each card present in this family. It contains lots
171 * proper and race-free way to set up a &struct drm_device.
179 int (*load) (struct drm_device *, unsigned long flags);
190 * one &struct drm_file (see &drm_file.is_master and &drm_device.master)
199 int (*open) (struct drm_device *, struct drm_file *);
209 * one &struct drm_file (see &drm_file.is_master and &drm_device.master)
213 void (*postclose) (struct drm_device *, struct drm_file *);
219 * currently no userspace client for the &struct drm_device.
241 void (*lastclose) (struct drm_device *);
252 * for the proper way to remove a &struct drm_device.
258 void (*unload) (struct drm_device *);
267 * &drm_device using drmm_add_action(), drmm_kmalloc() and related
270 void (*release) (struct drm_device *);
288 void (*irq_preinstall) (struct drm_device *dev);
297 int (*irq_postinstall) (struct drm_device *dev);
306 void (*irq_uninstall) (struct drm_device *dev);
313 void (*master_set)(struct drm_device *dev, struct drm_file *file_priv,
320 void (*master_drop)(struct drm_device *dev, struct drm_file *file_priv);
361 struct drm_gem_object *(*gem_create_object)(struct drm_device *dev,
372 int (*prime_handle_to_fd)(struct drm_device *dev, struct drm_file *file_priv,
383 int (*prime_fd_to_handle)(struct drm_device *dev, struct drm_file *file_priv,
400 struct drm_gem_object * (*gem_prime_import)(struct drm_device *dev,
432 struct drm_device *dev,
485 struct drm_device *dev,
503 struct drm_device *dev, uint32_t handle,
522 struct drm_device *dev,
550 * &drm_device.driver_features.
580 int (*firstopen) (struct drm_device *);
581 void (*preclose) (struct drm_device *, struct drm_file *file_priv);
582 int (*dma_ioctl) (struct drm_device *dev, void *data, struct drm_file *file_priv);
583 int (*dma_quiescent) (struct drm_device *);
584 int (*context_dtor) (struct drm_device *dev, int context);
585 u32 (*get_vblank_counter)(struct drm_device *dev, unsigned int pipe);
586 int (*enable_vblank)(struct drm_device *dev, unsigned int pipe);
587 void (*disable_vblank)(struct drm_device *dev, unsigned int pipe);
595 * devm_drm_dev_alloc - Resource managed allocation of a &drm_device instance
598 * @type: the type of the struct which contains struct &drm_device
599 * @member: the name of the &drm_device within @type.
610 * It is recommended that drivers embed &struct drm_device into their own device
613 * Note that this manages the lifetime of the resulting &drm_device
624 struct drm_device *drm_dev_alloc(struct drm_driver *driver,
626 int drm_dev_register(struct drm_device *dev, unsigned long flags);
627 void drm_dev_unregister(struct drm_device *dev);
629 void drm_dev_get(struct drm_device *dev);
630 void drm_dev_put(struct drm_device *dev);
631 void drm_put_dev(struct drm_device *dev);
632 bool drm_dev_enter(struct drm_device *dev, int *idx);
634 void drm_dev_unplug(struct drm_device *dev);
649 static inline bool drm_dev_is_unplugged(struct drm_device *dev)
667 * &drm_device.driver_features, and the various &enum drm_driver_feature flags.
672 static inline bool drm_core_check_all_features(const struct drm_device *dev,
686 * &drm_device.driver_features, and the various &enum drm_driver_feature flags.
690 static inline bool drm_core_check_feature(const struct drm_device *dev,
704 static inline bool drm_drv_uses_atomic_modeset(struct drm_device *dev)
711 int drm_dev_set_unique(struct drm_device *dev, const char *name);