Lines Matching defs:drm_device
5 //! C header: [`include/drm/drm_device.h`](srctree/include/drm/drm_device.h)
59 dev: Opaque<bindings::drm_device>,
138 pub(crate) fn as_raw(&self) -> *mut bindings::drm_device {
145 unsafe fn from_drm_device(ptr: *const bindings::drm_device) -> *mut Self {
147 // `struct drm_device` embedded in `Self`.
154 unsafe fn into_drm_device(ptr: NonNull<Self>) -> *mut bindings::drm_device {
164 /// i.e. it must be ensured that the reference count of the C `struct drm_device` `ptr` points
171 pub unsafe fn from_raw<'a>(ptr: *const bindings::drm_device) -> &'a Self {
173 // `struct drm_device` embedded in `Self`.
180 extern "C" fn release(ptr: *mut bindings::drm_device) {
181 // SAFETY: `ptr` is a valid pointer to a `struct drm_device` and embedded in `Self`.
218 // SAFETY: `bindings::drm_device::dev` is valid as long as the DRM device itself is valid,
228 // by the synchronization in `struct drm_device`.