Searched refs:Zeroable (Results 1 – 10 of 10) sorted by relevance
/openbmc/qemu/rust/qemu-api/src/ |
H A D | zeroable.rs | 28 pub unsafe trait Zeroable: Default { interface 32 unsafe impl Zeroable for crate::bindings::Property__bindgen_ty_1 { 36 unsafe impl Zeroable for crate::bindings::Property { 44 defval: Zeroable::ZERO, 52 unsafe impl Zeroable for crate::bindings::VMStateDescription { 71 unsafe impl Zeroable for crate::bindings::MemoryRegionOps__bindgen_ty_1 { 80 unsafe impl Zeroable for crate::bindings::MemoryRegionOps__bindgen_ty_2 {
|
H A D | device_class.rs | 38 ..$crate::zeroable::Zeroable::ZERO 48 ..$crate::zeroable::Zeroable::ZERO 65 $crate::zeroable::Zeroable::ZERO,
|
/openbmc/qemu/rust/hw/char/pl011/src/ |
H A D | memory_ops.rs | 8 use qemu_api::{bindings::*, zeroable::Zeroable}; 18 valid: Zeroable::ZERO, 22 ..Zeroable::ZERO
|
H A D | device_class.rs | 10 vmstate_uint32, vmstate_uint32_array, vmstate_unused, zeroable::Zeroable, 32 ..Zeroable::ZERO 74 ..Zeroable::ZERO
|
/openbmc/linux/rust/macros/ |
H A D | zeroable.rs | 29 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 D | lib.rs | 350 #[proc_macro_derive(Zeroable)]
|
/openbmc/linux/rust/kernel/ |
H A D | init.rs | 1264 pub unsafe trait Zeroable {} interface 1270 pub fn zeroed<T: Zeroable>() -> impl Init<T> { in zeroed() 1283 $(unsafe impl$($($generics)*)? Zeroable for $t {})* 1311 {<T: ?Sized + Zeroable>} UnsafeCell<T>, 1339 {<const N: usize, T: Zeroable>} [T; N], {<T: Zeroable>} Wrapping<T>, 1346 unsafe impl<$first: Zeroable, $($t: Zeroable),*> Zeroable for ($first, $($t),*) {} impl
|
H A D | prelude.rs | 21 pub use macros::{module, pin_data, pinned_drop, vtable, Zeroable};
|
/openbmc/qemu/rust/qemu-api/tests/ |
H A D | tests.rs | 12 zeroable::Zeroable, 21 ..Zeroable::ZERO in test_device_decl_macros()
|
/openbmc/linux/rust/kernel/init/ |
H A D | macros.rs | 1050 @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>() {}
|