Lines Matching refs:drm_device

35 #include <drm/drm_device.h>
51 * See &drm_driver.driver_features, drm_device.driver_features and
173 * one &struct drm_device for each card present in this family. It contains lots
187 * proper and race-free way to set up a &struct drm_device.
195 int (*load) (struct drm_device *, unsigned long flags);
206 * one &struct drm_file (see &drm_file.is_master and &drm_device.master)
215 int (*open) (struct drm_device *, struct drm_file *);
225 * one &struct drm_file (see &drm_file.is_master and &drm_device.master)
229 void (*postclose) (struct drm_device *, struct drm_file *);
235 * currently no userspace client for the &struct drm_device.
257 void (*lastclose) (struct drm_device *);
268 * for the proper way to remove a &struct drm_device.
274 void (*unload) (struct drm_device *);
283 * &drm_device using drmm_add_action(), drmm_kmalloc() and related
286 void (*release) (struct drm_device *);
293 void (*master_set)(struct drm_device *dev, struct drm_file *file_priv,
300 void (*master_drop)(struct drm_device *dev, struct drm_file *file_priv);
316 struct drm_gem_object *(*gem_create_object)(struct drm_device *dev,
324 int (*prime_handle_to_fd)(struct drm_device *dev, struct drm_file *file_priv,
331 int (*prime_fd_to_handle)(struct drm_device *dev, struct drm_file *file_priv,
341 struct drm_gem_object * (*gem_prime_import)(struct drm_device *dev,
350 struct drm_device *dev,
376 struct drm_device *dev,
394 struct drm_device *dev, uint32_t handle,
421 * &drm_device.driver_features.
450 int (*firstopen) (struct drm_device *);
451 void (*preclose) (struct drm_device *, struct drm_file *file_priv);
452 int (*dma_ioctl) (struct drm_device *dev, void *data, struct drm_file *file_priv);
453 int (*dma_quiescent) (struct drm_device *);
454 int (*context_dtor) (struct drm_device *dev, int context);
456 void (*irq_preinstall)(struct drm_device *dev);
457 int (*irq_postinstall)(struct drm_device *dev);
458 void (*irq_uninstall)(struct drm_device *dev);
459 u32 (*get_vblank_counter)(struct drm_device *dev, unsigned int pipe);
460 int (*enable_vblank)(struct drm_device *dev, unsigned int pipe);
461 void (*disable_vblank)(struct drm_device *dev, unsigned int pipe);
471 * devm_drm_dev_alloc - Resource managed allocation of a &drm_device instance
474 * @type: the type of the struct which contains struct &drm_device
475 * @member: the name of the &drm_device within @type.
486 * It is recommended that drivers embed &struct drm_device into their own device
489 * Note that this manages the lifetime of the resulting &drm_device
500 struct drm_device *drm_dev_alloc(const struct drm_driver *driver,
502 int drm_dev_register(struct drm_device *dev, unsigned long flags);
503 void drm_dev_unregister(struct drm_device *dev);
505 void drm_dev_get(struct drm_device *dev);
506 void drm_dev_put(struct drm_device *dev);
507 void drm_put_dev(struct drm_device *dev);
508 bool drm_dev_enter(struct drm_device *dev, int *idx);
510 void drm_dev_unplug(struct drm_device *dev);
525 static inline bool drm_dev_is_unplugged(struct drm_device *dev)
543 * &drm_device.driver_features, and the various &enum drm_driver_feature flags.
548 static inline bool drm_core_check_all_features(const struct drm_device *dev,
562 * &drm_device.driver_features, and the various &enum drm_driver_feature flags.
566 static inline bool drm_core_check_feature(const struct drm_device *dev,
580 static inline bool drm_drv_uses_atomic_modeset(struct drm_device *dev)