Searched refs:drm (Results 1 – 6 of 6) sorted by relevance
| /rust/kernel/drm/ |
| A D | driver.rs | 8 bindings, device, devres, drm, 88 pub trait AllocImpl: super::private::Sealed + drm::gem::IntoGEMObject { 106 type File: drm::file::DriverFile; 112 const IOCTLS: &'static [drm::ioctl::DrmIoctlDescriptor]; 118 pub struct Registration<T: Driver>(ARef<drm::Device<T>>); 122 fn new(drm: &drm::Device<T>, flags: usize) -> Result<Self> { in new() 126 Ok(Self(drm.into())) in new() 132 drm: &drm::Device<T>, in new_foreign_owned() 139 if drm.as_ref().as_raw() != dev.as_raw() { in new_foreign_owned() 143 let reg = Registration::<T>::new(drm, flags)?; in new_foreign_owned() [all …]
|
| A D | device.rs | 8 bindings, device, drm, 9 drm::driver::AllocImpl, 57 pub struct Device<T: drm::Driver> { 63 impl<T: drm::Driver> Device<T> { 66 open: Some(drm::File::<T::File>::open_callback), 89 driver_features: drm::driver::FEAT_GEM, 175 impl<T: drm::Driver> Deref for Device<T> { 185 unsafe impl<T: drm::Driver> AlwaysRefCounted for Device<T> { 197 impl<T: drm::Driver> AsRef<device::Device> for Device<T> { 206 unsafe impl<T: drm::Driver> Send for Device<T> {} [all …]
|
| A D | file.rs | 7 use crate::{bindings, drm, error::Result, prelude::*, types::Opaque}; 14 type Driver: drm::Driver; 17 fn open(device: &drm::Device<Self::Driver>) -> Result<Pin<KBox<Self>>>; in open() 64 let drm = unsafe { drm::Device::from_raw(raw_dev) }; in open_callback() 69 let inner = match T::open(drm) { in open_callback()
|
| A D | ioctl.rs | 103 const IOCTLS: &'static [$crate::drm::ioctl::DrmIoctlDescriptor] = { 119 $crate::drm::ioctl::internal::drm_ioctl_desc { 124 raw_dev: *mut $crate::drm::ioctl::internal::drm_device, 126 raw_file: *mut $crate::drm::ioctl::internal::drm_file, 137 let dev = $crate::drm::device::Device::from_raw(raw_dev); 145 let file = unsafe { $crate::drm::File::from_raw(raw_file) };
|
| /rust/kernel/drm/gem/ |
| A D | mod.rs | 9 bindings, drm, 10 drm::driver::{AllocImpl, AllocOps}, 25 _file: &drm::File<<<T as IntoGEMObject>::Driver as drm::Driver>::File>, in open() 33 _file: &drm::File<<<T as IntoGEMObject>::Driver as drm::Driver>::File>, in close() 41 type Driver: drm::Driver; 80 type Driver: drm::Driver; 89 drm::File::<<<U as IntoGEMObject>::Driver as drm::Driver>::File>::from_raw(raw_file) in open_callback() 109 drm::File::<<<U as IntoGEMObject>::Driver as drm::Driver>::File>::from_raw(raw_file) in close_callback() 146 file: &drm::File<<<Self as IntoGEMObject>::Driver as drm::Driver>::File>, in create_handle() 158 file: &drm::File<<<Self as IntoGEMObject>::Driver as drm::Driver>::File>, in lookup_handle() [all …]
|
| /rust/kernel/ |
| A D | lib.rs | 85 pub mod drm; module
|
Completed in 9 milliseconds