Searched refs:from_raw_file (Results 1 – 2 of 2) sorted by relevance
283 pub unsafe fn from_raw_file<'a>(ptr: *const bindings::file) -> &'a LocalFile { in from_raw_file() method357 pub unsafe fn from_raw_file<'a>(ptr: *const bindings::file) -> &'a File { in from_raw_file() method376 unsafe { LocalFile::from_raw_file(core::ptr::from_ref(self).cast()) } in deref()
378 let file = unsafe { File::from_raw_file(file_ptr) }; in rust_binder_open()405 let file = unsafe { File::from_raw_file(file) }; in rust_binder_release()420 match Process::ioctl(f, unsafe { File::from_raw_file(file) }, cmd as _, arg as _) { in rust_binder_ioctl()437 match Process::mmap(f, unsafe { File::from_raw_file(file) }, area) { in rust_binder_mmap()452 let fileref = unsafe { File::from_raw_file(file) }; in rust_binder_poll()