Home
last modified time | relevance | path

Searched refs:zeroed (Results 1 – 25 of 56) sorted by relevance

123

/linux/rust/kernel/
H A Dusb.rs137 ..unsafe { MaybeUninit::zeroed().assume_init() } in from_id()
150 ..unsafe { MaybeUninit::zeroed().assume_init() } in from_device_ver()
162 ..unsafe { MaybeUninit::zeroed().assume_init() } in from_device_info()
174 ..unsafe { MaybeUninit::zeroed().assume_init() } in from_interface_info()
187 ..unsafe { MaybeUninit::zeroed().assume_init() } in from_device_interface_class()
200 ..unsafe { MaybeUninit::zeroed().assume_init() } in from_device_interface_protocol()
213 ..unsafe { MaybeUninit::zeroed().assume_init() } in from_device_interface_number()
234 ..unsafe { MaybeUninit::zeroed().assume_init() } in from_device_and_interface_info()
H A Dbitfield.rs652 let mut val = TestU64::zeroed(); in test_basic_access()
684 let mut val = TestU16::zeroed(); in test_basic_access()
704 let mut val = TestU8::zeroed(); in test_basic_access()
727 let mut val = TestU16::zeroed(); in test_infallible_conversion()
749 let mut val = TestU64::zeroed(); in test_fallible_conversion()
768 let mut val = TestU16::zeroed(); in test_overlapping_fields()
779 let mut val = TestU8::zeroed() in test_overlapping_fields()
820 let val = TestU64::zeroed().try_with_field_51_16(0x123456).unwrap(); in test_try_with()
823 let err = TestU64::zeroed().try_with_field_51_16(u64::MAX); in test_try_with()
826 let val = TestU64::zeroed() in test_try_with()
H A Dtypes.rs357 /// Creates a new zeroed opaque value.
358 pub const fn zeroed() -> Self {
360 value: UnsafeCell::new(MaybeUninit::zeroed()),
349 pub const fn zeroed() -> Self { zeroed() method
H A Dauxiliary.rs144 let mut id: bindings::auxiliary_device_id = pin_init::zeroed(); in new()
362 // `KBox::new(Opaque::<bindings::auxiliary_device>::zeroed(), GFP_KERNEL)`. in new()
490 let boxed: KBox<Opaque<bindings::auxiliary_device>> = KBox::zeroed(GFP_KERNEL)?;
H A Ddevice_id.rs136 sentinel: MaybeUninit::zeroed(),
154 sentinel: MaybeUninit::zeroed(),
H A Di2c.rs48 let mut i2c: bindings::i2c_device_id = pin_init::zeroed(); in new()
443 let mut i2c_board_info: bindings::i2c_board_info = pin_init::zeroed(); in new()
H A Ddma.rs67 /// such as [`Coherent::zeroed`].
84 /// such as [`Coherent::zeroed`].
103 /// such as [`Coherent::zeroed`]. in dma_set_mask_and_coherent()
122 /// such as [`Coherent::zeroed`].
393 /// let mut dmem: CoherentBox<u64> = CoherentBox::zeroed(dev, GFP_KERNEL)?;
539 pub fn zeroed(dev: &device::Device<Bound>, gfp_flags: kernel::alloc::Flags) -> Result<Self> {
736 pub fn zeroed(dev: &device::Device<Bound>, gfp_flags: kernel::alloc::Flags) -> Result<Self> { in alloc_with_attrs()
764 /// Same as [`Coherent::zeroed`], but instead of a zero-initialization the memory is initialized in zeroed_with_attrs()
822 /// Allocates a zeroed region of type `T` of coherent memory. in alloc_slice_with_attrs()
531 pub fn zeroed(dev: &device::Device<Bound>, gfp_flags: kernel::alloc::Flags) -> Result<Self> { zeroed() method
774 pub fn zeroed(dev: &device::Device<Bound>, gfp_flags: kernel::alloc::Flags) -> Result<Self> { zeroed() method
H A Dscatterlist.rs273 let sgt = Opaque::zeroed(); in new()
/linux/rust/kernel/debugfs/
H A Dfile_ops.rs138 ..pin_init::zeroed()
190 ..pin_init::zeroed()
245 ..pin_init::zeroed()
297 ..pin_init::zeroed()
351 ..pin_init::zeroed()
376 ..pin_init::zeroed()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtest_struct_ops_module.c113 skel->struct_ops.testmod_zeroed->zeroed = 0; in test_struct_ops_not_zeroed()
131 skel->struct_ops.testmod_zeroed->zeroed = 0xdeadbeef; in test_struct_ops_not_zeroed()
/linux/rust/pin-init/src/
H A Dlib.rs1536 /// let val: Self = unsafe { core::mem::zeroed() };
1539 /// Create a new zeroed `Self`.
1553 /// [`core::mem::zeroed()`] or using `MaybeUninit<T>::zeroed().assume_init()`. in init_zeroed()
1555 /// As const traits are not yet stable, [`pin_init::zeroed()`] can be used instead in init_zeroed()
1569 /// let point: Point = Zeroable::zeroed();
1574 fn zeroed() -> Self
1578 zeroed() in zeroed()
1582 /// Create an initializer for a zeroed `T`.
1600 /// [`core::mem::zeroed()`] o
1513 fn zeroed() -> Self zeroed() method
1577 pub const fn zeroed<T: Zeroable>() -> T { zeroed() function
[all...]
H A Dmacros.rs
/linux/tools/testing/selftests/bpf/progs/
H A Dstruct_ops_module.c63 int zeroed; member
/linux/Documentation/userspace-api/media/v4l/
H A Dpixfmt-v4l2-mplane.rst48 - Reserved for future extensions. Should be zeroed by drivers and
119 - Reserved for future extensions. Should be zeroed by drivers and
H A Dvidioc-enum-framesizes.rst163 - Reserved space for future use. Must be zeroed by drivers and
/linux/rust/kernel/block/mq/
H A Dtag_set.rs41 let tag_set: bindings::blk_mq_tag_set = pin_init::zeroed(); in new()
/linux/arch/arm/nwfpe/
H A DChangeLog63 structures, and that recycled ones may not have init_flag zeroed.
64 I couldn't even find anything that guarantees it is zeroed when
/linux/Documentation/driver-api/usb/
H A Dusb3-debug-port.rst76 [ 1815.999595] usb 4-3: LPM exit latency is zeroed, disabling LPM.
144 [ 79.475003] usb 2-2.1: LPM exit latency is zeroed, disabling LPM.
/linux/Documentation/driver-api/serial/
H A Dserial-iso7816.rst54 /* Reserved fields as to be zeroed */
/linux/net/core/
H A Dgro.c504 BUILD_BUG_ON(sizeof_field(struct napi_gro_cb, zeroed) != sizeof(u32)); in dev_gro_receive()
505 BUILD_BUG_ON(!IS_ALIGNED(offsetof(struct napi_gro_cb, zeroed), in dev_gro_receive()
507 *(u32 *)&NAPI_GRO_CB(skb)->zeroed = 0; in dev_gro_receive()
/linux/Documentation/userspace-api/
H A Dfutex2.rst43 the upper bits are zeroed. ``uintptr_t`` does the tricky and it works for
/linux/arch/sh/
H A DKconfig.debug82 can already be guaranteed to ber zeroed on boot, say Y.
/linux/rust/kernel/drm/gem/
H A Dmod.rs391 let mut fops: bindings::file_operations = pin_init::zeroed();
/linux/Documentation/admin-guide/device-mapper/
H A Dwritecache.rst9 When the device is constructed, the first sector should be zeroed or the
/linux/Documentation/ABI/testing/
H A Dsysfs-fs-ext4104 The maximum number of kilobytes which will be zeroed

123