Lines Matching defs:T
26 pub struct File<T: DriverFile>(Opaque<bindings::drm_file>, PhantomData<T>);
28 impl<T: DriverFile> File<T> {
34 /// `raw_file` must be a valid pointer to an open `struct drm_file`, opened through `T::open`.
35 pub unsafe fn from_raw<'a>(ptr: *mut bindings::drm_file) -> &'a File<T> {
44 fn driver_priv(&self) -> *mut T {
50 pub fn inner(&self) -> Pin<&T> {
67 let file = unsafe { File::<T>::from_raw(raw_file) };
69 let inner = match T::open(drm) {
92 let file = unsafe { File::<T>::from_raw(raw_file) };
99 impl<T: DriverFile> super::private::Sealed for File<T> {}