Searched refs:KBox (Results 1 – 14 of 14) sorted by relevance
| /rust/kernel/drm/ |
| A D | file.rs | 17 fn open(device: &drm::Device<Self::Driver>) -> Result<Pin<KBox<Self>>>; in open() 78 let driver_priv = KBox::into_raw(unsafe { Pin::into_inner_unchecked(inner) }); in open_callback() 95 let _ = unsafe { KBox::from_raw(file.driver_priv()) }; in postclose_callback()
|
| /rust/kernel/ |
| A D | rbtree.rs | 505 unsafe { drop(KBox::from_raw(this)) }; in drop() 772 let node = unsafe { KBox::from_raw(this) }; in remove_current() 1037 node: KBox<MaybeUninit<Node<K, V>>>, 1045 node: KBox::new_uninit(flags)?, in new() 1062 let node = KBox::write( in into_node() 1079 node: KBox<Node<K, V>>, 1091 let node = KBox::into_inner(self.node); in to_key_value() 1115 node: KBox::drop_contents(self.node), in into_reservation() 1166 let node = KBox::into_raw(node.node); in insert() 1246 let node = KBox::into_inner(rb_node.node); in remove() [all …]
|
| A D | auxiliary.rs | 88 drop(unsafe { adev.as_ref().drvdata_obtain::<Pin<KBox<T>>>() }); in remove_callback() 187 fn probe(dev: &Device<device::Core>, id_info: &Self::IdInfo) -> Result<Pin<KBox<Self>>>; in probe() 238 let _ = unsafe { KBox::<Opaque<bindings::auxiliary_device>>::from_raw(adev.cast()) }; in release() 299 let boxed = KBox::new(Opaque::<bindings::auxiliary_device>::zeroed(), GFP_KERNEL)?; in new() 316 let _ = KBox::into_raw(boxed); in new()
|
| A D | workqueue.rs | 344 self.enqueue(KBox::pin_init(init, flags).map_err(|_| AllocError)?); in try_spawn() 367 type Pointer = Pin<KBox<Self>>; 369 fn run(mut this: Pin<KBox<Self>>) { in run() 885 unsafe impl<T, const ID: u64> WorkItemPointer<ID> for Pin<KBox<T>> 896 let boxed = unsafe { KBox::from_raw(ptr) }; in run() 905 unsafe impl<T, const ID: u64> RawWorkItem<ID> for Pin<KBox<T>> 919 let ptr = KBox::into_raw(boxed); in __enqueue() 937 unsafe impl<T, const ID: u64> RawDelayedWorkItem<ID> for Pin<KBox<T>>
|
| A D | prelude.rs | 22 pub use crate::alloc::{flags::*, Box, KBox, KVBox, KVVec, KVec, VBox, VVec, Vec};
|
| A D | platform.rs | 93 let data = unsafe { pdev.as_ref().drvdata_obtain::<Pin<KBox<T>>>() }; in remove_callback() 193 -> Result<Pin<KBox<Self>>>; in probe()
|
| A D | alloc.rs | 18 pub use self::kbox::KBox;
|
| A D | pci.rs | 93 let data = unsafe { pdev.as_ref().drvdata_obtain::<Pin<KBox<T>>>() }; in remove_callback() 245 fn probe(dev: &Device<device::Core>, id_info: &Self::IdInfo) -> Result<Pin<KBox<Self>>>; in probe()
|
| A D | devres.rs | 357 let data = KBox::pin_init(data, flags)?; in register()
|
| A D | cpufreq.rs | 904 pub struct Registration<T: Driver>(KBox<UnsafeCell<bindings::cpufreq_driver>>, PhantomData<T>); 1039 let mut drv = KBox::new(UnsafeCell::new(Self::VTABLE), GFP_KERNEL)?; in new()
|
| /rust/kernel/drm/gem/ |
| A D | mod.rs | 233 let obj: Pin<KBox<Self>> = KBox::pin_init( in new() 251 let ptr = KBox::into_raw(unsafe { Pin::into_inner_unchecked(obj) }); in new() 284 let _ = unsafe { KBox::from_raw(this) }; in free_callback()
|
| /rust/kernel/sync/ |
| A D | arc.rs | 20 alloc::{AllocError, Flags, KBox}, 237 let inner = KBox::new(value, flags)?; in new() 238 let inner = KBox::leak(inner).into(); in new() 489 unsafe { drop(KBox::from_raw(self.ptr.as_ptr())) }; in drop() 776 let inner = KBox::try_init::<AllocError>( in new_uninit() 787 inner: unsafe { Arc::from_inner(KBox::leak(inner).into()) }, in new_uninit()
|
| /rust/kernel/alloc/ |
| A D | kvec.rs | 58 match $crate::alloc::KBox::new_uninit(GFP_KERNEL) { 59 Ok(b) => Ok($crate::alloc::KVec::from($crate::alloc::KBox::write(b, [$($x),+]))),
|
| A D | kbox.rs | 117 pub type KBox<T> = Box<T, super::allocator::Kmalloc>; typedef
|
Completed in 32 milliseconds