| /linux/rust/kernel/sync/ |
| H A D | aref.rs | 68 pub struct ARef<T: AlwaysRefCounted> { struct 77 unsafe impl<T: AlwaysRefCounted + Sync + Send> Send for ARef<T> {} implementation 84 unsafe impl<T: AlwaysRefCounted + Sync + Send> Sync for ARef<T> {} implementation 87 impl<T: AlwaysRefCounted> Unpin for ARef<T> {} implementation 89 impl<T: AlwaysRefCounted> ARef<T> { implementation 141 impl<T: AlwaysRefCounted> Clone for ARef<T> { implementation 149 impl<T: AlwaysRefCounted> Deref for ARef<T> { implementation 158 impl<T: AlwaysRefCounted> From<&T> for ARef<T> { implementation 166 impl<T: AlwaysRefCounted> Drop for ARef<T> { implementation 174 impl<T, U> PartialEq<ARef<U>> for ARef<T> implementation [all …]
|
| /linux/rust/kernel/mm/ |
| H A D | mmput_async.rs | 13 sync::aref::{ARef, AlwaysRefCounted}, 64 pub fn into_mmput_async(me: ARef<MmWithUser>) -> ARef<MmWithUserAsync> { in into_mmput_async() 66 unsafe { ARef::from_raw(ARef::into_raw(me).cast()) } in into_mmput_async()
|
| /linux/rust/kernel/fs/ |
| H A D | file.rs | 15 sync::aref::{ARef, AlwaysRefCounted}, 262 pub fn fget(fd: u32) -> Result<ARef<LocalFile>, BadFdError> { in fget() 271 Ok(unsafe { ARef::from_raw(ptr.cast()) }) in fget() 306 pub unsafe fn assume_no_fdget_pos(me: ARef<LocalFile>) -> ARef<File> { in assume_no_fdget_pos() 312 unsafe { ARef::from_raw(ARef::into_raw(me).cast()) } in assume_no_fdget_pos() 427 pub fn fd_install(self, file: ARef<File>) { in fd_install()
|
| /linux/rust/kernel/ |
| H A D | opp.rs | 19 sync::aref::{ARef, AlwaysRefCounted}, 34 dev: ARef<Device>, 176 dev: ARef<Device>, 182 fn new(dev: &ARef<Device>, mut data: Data) -> Result<Self> { in new() 245 pub fn add_opp(self, dev: &ARef<Device>) -> Result<Token> { in add_opp() 368 required_dev: Option<(ARef<Device>, u32)>, 419 pub fn set_required_dev(mut self, dev: ARef<Device>, index: u32) -> Result<Self> { in set_required_dev() 604 dev: ARef<Device>, 625 unsafe fn from_raw_table(ptr: *mut bindings::opp_table, dev: &ARef<Device>) -> Self { in from_raw_table() 661 pub fn from_of(dev: &ARef<Device>, index: i32) -> Result<Self> { in from_of() [all …]
|
| H A D | mm.rs | 16 sync::aref::{ARef, AlwaysRefCounted}, 141 pub fn mmget_not_zero(&self) -> Option<ARef<MmWithUser>> { in mmget_not_zero() 147 Some(unsafe { ARef::from_raw(NonNull::new_unchecked(self.as_raw().cast())) }) in mmget_not_zero()
|
| H A D | task.rs | 12 sync::aref::ARef, 236 pub fn get_pid_ns(&self) -> Option<ARef<PidNamespace>> { in get_pid_ns() 245 Some(unsafe { ARef::from_raw(ptr::NonNull::new_unchecked(ptr.cast::<PidNamespace>())) }) in get_pid_ns()
|
| H A D | device.rs | 11 sync::aref::ARef, 32 /// certain scope or as [`ARef<Device>`], owning a dedicated reference count. 101 /// In order to convert from a any [`Device<Ctx>`] to [`ARef<Device>`], bus devices can implement 163 /// `bindings::device::release` is valid to be called from any thread, hence `ARef<Device>` can be 183 pub unsafe fn get_device(ptr: *mut bindings::device) -> ARef<Self> { in get_device() 486 // return a reference instead of an `ARef<FwNode>` because `dev_fwnode()` in fwnode() 717 impl ::core::convert::From<&$device<$src>> for $crate::sync::aref::ARef<$device> { 726 /// `ARef<Device>`.
|
| H A D | devres.rs | 22 aref::ARef, 126 dev: ARef<Device>,
|
| H A D | scatterlist.rs | 41 sync::aref::ARef, 186 dev: ARef<Device>,
|
| H A D | dma.rs | 19 sync::aref::ARef, 596 dev: ARef<device::Device>, 1035 dev: ARef<device::Device>,
|
| H A D | i2c.rs | 20 ARef, 400 pub fn get(index: i32) -> Result<ARef<Self>> {
|
| H A D | types.rs | |
| /linux/rust/kernel/drm/ |
| H A D | device.rs | 17 ARef, 117 pub fn new(dev: &device::Device, data: impl PinInit<T::Data, Error>) -> Result<ARef<Self>> { in new() 164 Ok(unsafe { ARef::from_raw(raw_drm) }) in new() 263 T::Data: WorkItem<ID, Pointer = ARef<Device<T>>>, 266 type Pointer = ARef<Device<T>>; 268 fn run(ptr: ARef<Device<T>>) { in run()
|
| /linux/rust/kernel/drm/gem/ |
| H A D | shmem.rs | 22 sync::aref::ARef, 65 parent_resv_obj: Option<ARef<Object<T>>>, 113 ) -> Result<ARef<Self>> { in new() 133 let obj = unsafe { ARef::from_raw(NonNull::new_unchecked(new)) }; in new()
|
| H A D | mod.rs | 19 ARef, 184 fn lookup_handle<D, F>(file: &drm::File<F>, handle: u32) -> Result<ARef<Self>> in lookup_handle() 208 Ok(unsafe { ARef::from_raw(obj.into()) }) in lookup_handle() 268 pub fn new(dev: &drm::Device<T::Driver>, size: usize, args: T::Args) -> Result<ARef<Self>> { in new() 299 Ok(unsafe { ARef::from_raw(ptr) }) in new()
|
| /linux/samples/rust/ |
| H A D | rust_driver_usb.rs | 12 sync::aref::ARef, 17 _intf: ARef<usb::Interface>,
|
| H A D | rust_i2c_client.rs | 78 sync::aref::ARef, // 83 parent_dev: ARef<platform::Device>,
|
| H A D | rust_driver_pci.rs | 21 sync::aref::ARef, // 71 pdev: ARef<pci::Device>, in config_space()
|
| H A D | rust_dma.rs | 18 sync::aref::ARef, 23 pdev: ARef<pci::Device>,
|
| H A D | rust_driver_platform.rs | 79 sync::aref::ARef, // 83 pdev: ARef<platform::Device>,
|
| H A D | rust_debugfs.rs | 49 aref::ARef, 68 pdev: ARef<platform::Device>,
|
| /linux/rust/kernel/pci/ |
| H A D | irq.rs | 18 sync::aref::ARef, // 124 dev: ARef<Device>,
|
| H A D | io.rs | 18 sync::aref::ARef, // 150 pdev: ARef<Device>,
|
| /linux/drivers/android/binder/ |
| H A D | allocation.rs | 12 sync::{aref::ARef, Arc}, 172 file: ARef<File>, in info_add_fd() 567 file: ARef<File>, 583 file: ARef<File>,
|
| H A D | page_range.rs | 33 sync::{aref::ARef, Mutex, SpinLock}, 134 mm: ARef<Mm>, 277 mm: ARef::from(&**kernel::current!().mm().ok_or(ESRCH)?), in new()
|