Searched refs:KBox (Results 1 – 13 of 13) sorted by relevance
| /linux/samples/rust/ |
| H A D | rust_debugfs_scoped.rs | 78 let blob = KBox::pin_init(new_mutex!([0x42; SZ_4K]), GFP_KERNEL)?; in create_file_write() 80 let scope = KBox::pin_init( in create_file_write() 102 _data: Pin<KBox<Scope<ModuleData>>>, 109 devices: Mutex<KVec<Pin<KBox<Scope<DeviceData>>>>>, in init() 126 blob: Pin<KBox<Mutex<[u8; SZ_4K]>>>, in init_control() 141 _data: KBox::pin_init(init_control(&base_dir, dyn_dirs), GFP_KERNEL)?,
|
| /linux/rust/kernel/ |
| H A D | rbtree.rs | 559 unsafe { drop(KBox::from_raw(this)) }; 925 let node = unsafe { KBox::from_raw(this) }; in remove_current() 961 let node = unsafe { KBox::from_raw(this) }; in remove_neighbor() 1190 node: KBox<MaybeUninit<Node<K, V>>>, 1198 node: KBox::new_uninit(flags)?, 1215 let node = KBox::write( in into_node() 1232 node: KBox<Node<K, V>>, 1244 let node = KBox::into_inner(self.node); in to_key_value() 1268 node: KBox::drop_contents(self.node), 1319 let node = KBox in insert() [all...] |
| H A D | device.rs | 227 let data = KBox::pin_init(data, GFP_KERNEL)?; in set_drvdata() 242 pub(crate) unsafe fn drvdata_obtain<T: 'static>(&self) -> Option<Pin<KBox<T>>> { in drvdata_obtain() 257 Some(unsafe { Pin::<KBox<T>>::from_foreign(ptr.cast()) }) in drvdata_obtain() 293 unsafe { Pin::<KBox<T>>::borrow(ptr.cast()) } in drvdata_unchecked()
|
| H A D | auxiliary.rs | 276 let _ = unsafe { KBox::<Opaque<bindings::auxiliary_device>>::from_raw(adev.cast()) }; in release() 349 let boxed = KBox::new(Opaque::<bindings::auxiliary_device>::zeroed(), GFP_KERNEL)?; in new() 367 let _ = KBox::into_raw(boxed); in new()
|
| H A D | prelude.rs | 25 pub use crate::alloc::{flags::*, Box, KBox, KVBox, KVVec, KVec, VBox, VVec, Vec};
|
| H A D | alloc.rs | 11 pub use self::kbox::KBox;
|
| H A D | devres.rs | 298 /// Encapsulate `data` in a [`KBox`] and [`Drop::drop`] `data` once `dev` is unbound. in drop() 337 let data = KBox::pin_init(data, flags)?; in register_foreign()
|
| H A D | cpufreq.rs | 903 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()
|
| /linux/drivers/gpu/drm/nova/ |
| H A D | file.rs | 18 fn open(_dev: &NovaDevice) -> Result<Pin<KBox<Self>>> { in open() 19 Ok(KBox::new(Self, GFP_KERNEL)?.into()) in open()
|
| /linux/arch/arm64/boot/dts/freescale/ |
| H A D | fsl-ls1028a-kontron-kbox-a-230-ls.dts | 3 * Device Tree File for the Kontron KBox A-230-LS. 17 model = "Kontron KBox A-230-LS";
|
| /linux/drivers/gpu/nova-core/gsp/ |
| H A D | boot.rs | 142 let gsp_fw = KBox::pin_init(GspFirmware::new(dev, chipset, FIRMWARE_VERSION), GFP_KERNEL)?; in boot()
|
| /linux/rust/kernel/alloc/ |
| H A D | kvec.rs | 61 match $crate::alloc::KBox::new_uninit(GFP_KERNEL) { 62 Ok(b) => Ok($crate::alloc::KVec::from($crate::alloc::KBox::write(b, [$($x),+]))),
|
| H A D | kbox.rs | 118 pub type KBox<T> = Box<T, super::allocator::Kmalloc>; typedef
|