Home
last modified time | relevance | path

Searched refs:KBox (Results 1 – 13 of 13) sorted by relevance

/linux/samples/rust/
H A Drust_debugfs_scoped.rs78 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 Drbtree.rs559 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 Ddevice.rs227 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 Dauxiliary.rs276 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 Dprelude.rs25 pub use crate::alloc::{flags::*, Box, KBox, KVBox, KVVec, KVec, VBox, VVec, Vec};
H A Dalloc.rs11 pub use self::kbox::KBox;
H A Ddevres.rs298 /// 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 Dcpufreq.rs903 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 Dfile.rs18 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 Dfsl-ls1028a-kontron-kbox-a-230-ls.dts3 * 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 Dboot.rs142 let gsp_fw = KBox::pin_init(GspFirmware::new(dev, chipset, FIRMWARE_VERSION), GFP_KERNEL)?; in boot()
/linux/rust/kernel/alloc/
H A Dkvec.rs61 match $crate::alloc::KBox::new_uninit(GFP_KERNEL) {
62 Ok(b) => Ok($crate::alloc::KVec::from($crate::alloc::KBox::write(b, [$($x),+]))),
H A Dkbox.rs118 pub type KBox<T> = Box<T, super::allocator::Kmalloc>; typedef