Home
last modified time | relevance | path

Searched refs:Zeroable (Results 1 – 14 of 14) sorted by relevance

/openbmc/qemu/rust/hw/char/pl011/src/
H A Ddevice_class.rs16 zeroable::Zeroable,
35 ..Zeroable::ZERO
69 ..Zeroable::ZERO
84 ..Zeroable::ZERO
/openbmc/linux/rust/macros/
H A Dzeroable.rs29 new_impl_generics.extend(quote! { : ::kernel::init::Zeroable }); in derive()
43 new_impl_generics.extend(quote! { ::kernel::init::Zeroable + }); in derive()
61 new_impl_generics.extend(quote! { : ::kernel::init::Zeroable }); in derive()
H A Dlib.rs350 #[proc_macro_derive(Zeroable)]
/openbmc/linux/rust/kernel/
H A Dinit.rs1264 pub unsafe trait Zeroable {} trait
1270 pub fn zeroed<T: Zeroable>() -> impl Init<T> { in zeroed()
1283 $(unsafe impl$($($generics)*)? Zeroable for $t {})*
1311 {<T: ?Sized + Zeroable>} UnsafeCell<T>,
1336 {<const N: usize, T: Zeroable>} [T; N], {<T: Zeroable>} Wrapping<T>,
1343 unsafe impl<$first: Zeroable, $($t: Zeroable),*> Zeroable for ($first, $($t),*) {} impl
H A Dprelude.rs21 pub use macros::{module, pin_data, pinned_drop, vtable, Zeroable};
/openbmc/qemu/rust/qemu-api/src/
H A Dvmstate.rs32 bindings::VMStateFlags, callbacks::FnCall, prelude::*, qom::Owned, zeroable::Zeroable,
376 ..Zeroable::ZERO
433 ..$crate::zeroable::Zeroable::ZERO
461 ..$crate::zeroable::Zeroable::ZERO
495 ..$crate::zeroable::Zeroable::ZERO
510 ..$crate::zeroable::Zeroable::ZERO
559 ..$crate::zeroable::Zeroable::ZERO
H A Dzeroable.rs28 pub unsafe trait Zeroable: Default { trait
86 unsafe impl $crate::zeroable::Zeroable for $type {
H A Dmemory.rs20 zeroable::Zeroable,
204 ..Zeroable::ZERO
H A Dqdev.rs198 ..$crate::zeroable::Zeroable::ZERO
209 ..$crate::zeroable::Zeroable::ZERO
219 ..$crate::zeroable::Zeroable::ZERO
/openbmc/qemu/rust/hw/timer/hpet/src/
H A Dfw_cfg.rs7 use qemu_api::{cell::bql_locked, impl_zeroable, zeroable::Zeroable};
35 ..Zeroable::ZERO
/openbmc/qemu/rust/qemu-api/tests/
H A Dvmstate_tests.rs17 zeroable::Zeroable,
50 ..Zeroable::ZERO
174 ..Zeroable::ZERO
322 ..Zeroable::ZERO
434 ..Zeroable::ZERO
H A Dtests.rs17 zeroable::Zeroable,
26 ..Zeroable::ZERO
/openbmc/linux/rust/kernel/init/
H A Dmacros.rs1050 @munch_fields(..Zeroable::zeroed()),
1126 fn assert_zeroable<T: $crate::init::Zeroable>(_: *mut T) {}
1169 @munch_fields($(..Zeroable::zeroed())? $(,)?),
1273 @munch_fields(..Zeroable::zeroed() $(,)?),
1370 unsafe impl<$($impl_generics)*> $crate::init::Zeroable for $name<$($ty_generics)*>
1375 fn assert_zeroable<T: ?::core::marker::Sized + $crate::init::Zeroable>() {}
/openbmc/qemu/docs/devel/
H A Drust.rst92 ``Zeroable`` trait can be implemented without ``MaybeUninit::zeroed()``,