| /linux/rust/kernel/debugfs/ |
| H A D | entry.rs | 75 core::ptr::from_ref(data) as *mut c_void, in dynamic_file() 128 core::ptr::from_ref(data) as *mut c_void, in file()
|
| /linux/rust/zerocopy/src/pointer/ |
| H A D | inner.rs | 131 pub fn from_ref(ptr: &'a T) -> Self { in from_ref() method 639 let ptr = PtrInner::from_ref(dst); in test_meta() 661 let ptr = PtrInner::from_ref(dst); in test_split_at() 713 let ptr = PtrInner::from_ref(dst); in test_trailing_slice()
|
| H A D | ptr.rs | 178 pub fn from_ref(ptr: &'a T) -> Self { in from_ref() function 179 let inner = PtrInner::from_ref(ptr); in from_ref() 1413 if let Ok((slf, remaining)) = Ptr::from_ref(bytes) in test() 1439 if let Ok(slf) = Ptr::from_ref(bytes) in test() 1512 let ptr = Ptr::from_ref(&bytes[..]); in test_try_cast_into_explicit_count() 1559 let ptr = Ptr::from_ref(&bytes[..]); in test_try_cast_into_no_leftover_restores_original_slice()
|
| /linux/rust/kernel/ |
| H A D | print.rs | 117 core::ptr::from_ref(&args).cast::<c_void>(), 137 core::ptr::from_ref(&args).cast::<c_void>(),
|
| H A D | seq_file.rs | 40 core::ptr::from_ref(&args).cast::<crate::ffi::c_void>(), in call_printf()
|
| H A D | kunit.rs | 27 core::ptr::from_ref(&args).cast::<c_void>(), in err() 47 core::ptr::from_ref(&args).cast::<c_void>(), in info()
|
| H A D | device.rs | 192 let ptr = core::ptr::from_ref(self); in as_bound() 400 core::ptr::from_ref(&msg).cast::<crate::ffi::c_void>(), in printk()
|
| H A D | configfs.rs | 719 unsafe { (&mut *self.0.get())[I] = core::ptr::from_ref(attribute).cast_mut().cast() }; in add() 759 ct_attrs: core::ptr::from_ref(attributes).cast_mut().cast(), 776 ct_attrs: core::ptr::from_ref(attributes).cast_mut().cast(),
|
| H A D | module_param.rs | 166 core::ptr::from_ref(self).cast_mut().cast()
|
| H A D | device_id.rs | 63 core::ptr::from_ref(self) 81 core::ptr::from_ref(self) 175 core::ptr::from_ref(self).cast()
|
| H A D | i2c.rs | 30 from_ref, 458 from_ref(&self.0) in as_raw()
|
| H A D | uaccess.rs | 616 core::ptr::from_ref(value).cast::<c_void>(), in write()
|
| H A D | bitmap.rs | 77 core::ptr::from_ref::<Bitmap>(self).cast::<usize>() in as_ptr()
|
| H A D | str.rs | 54 unsafe { &*(core::ptr::from_ref(bytes) as *const BStr) }
|
| /linux/rust/zerocopy/src/ |
| H A D | ref.rs | 314 Ptr::from_ref(source.deref()).try_cast_into_no_leftover::<T, BecauseImmutable>(None) in from_bytes() 367 let remainder = match Ptr::from_ref(source.deref()) in from_prefix() 432 let remainder = match Ptr::from_ref(source.deref()) in from_suffix() 633 let ptr = Ptr::from_ref(b); in into_ref() 649 let ptr = Ptr::from_ref(b.into_byte_slice()) in into_ref() 815 let ptr = Ptr::from_ref(b); in deref() 830 let ptr = Ptr::from_ref(b) in deref()
|
| H A D | wrappers.rs | 203 let inner = Ptr::from_ref(self).transmute(); in try_deref() 412 Ptr::from_ref(self).transmute().bikeshed_recall_aligned().as_ref() in deref() 721 let ro = Ptr::from_ref(t).transmute::<_, _, (_, _)>(); in from()
|
| H A D | lib.rs | 1883 match Ptr::from_ref(source).try_cast_into_no_leftover::<Self, BecauseImmutable>(None) { in try_ref_from_bytes() 2526 match Ptr::from_ref(source).try_cast_into_no_leftover::<Self, BecauseImmutable>(Some(count)) in try_ref_from_bytes_with_elems() 3303 match Ptr::from_ref(source).try_cast_into::<T, BecauseImmutable>(cast_type, meta) { in try_ref_from_prefix_suffix() 4160 match Ptr::from_ref(source).try_cast_into_no_leftover::<_, BecauseImmutable>(None) { in ref_from_bytes() 4716 let source = Ptr::from_ref(source); in ref_from_bytes_with_elems() 5480 let (slf, prefix_suffix) = Ptr::from_ref(source) in ref_from_prefix_suffix()
|
| H A D | split_at.rs | 308 let source = Ptr::from_ref(self.source); in into_ptr()
|
| H A D | impls.rs | 1796 let c = Ptr::from_ref(&*val); in test_impls()
|
| /linux/security/keys/ |
| H A D | keyctl.c | 598 key_ref_t key_ref, from_ref, to_ref; in keyctl_keyring_move() local 608 from_ref = lookup_user_key(from_ringid, 0, KEY_NEED_WRITE); in keyctl_keyring_move() 609 if (IS_ERR(from_ref)) { in keyctl_keyring_move() 610 ret = PTR_ERR(from_ref); in keyctl_keyring_move() 620 ret = key_move(key_ref_to_ptr(key_ref), key_ref_to_ptr(from_ref), in keyctl_keyring_move() 625 key_ref_put(from_ref); in keyctl_keyring_move()
|
| /linux/rust/kernel/fs/ |
| H A D | file.rs | 376 unsafe { LocalFile::from_raw_file(core::ptr::from_ref(self).cast()) } in deref()
|
| /linux/rust/zerocopy/src/util/ |
| H A D | mod.rs | 346 let dst = Ptr::from_ref(src).transmute(); in transmute_ref() 511 if meta <= Ptr::from_ref(t).len() { in new_in_bounds()
|
| H A D | macro_util.rs | 537 let ptr = Ptr::from_ref(&mu_dst); in try_transmute() 597 let ptr = Ptr::from_ref(self.0); in try_transmute_ref() 878 let ptr = Ptr::from_ref(self.0) in transmute_ref()
|
| /linux/tools/bpf/bpftool/ |
| H A D | btf.c | 624 static const char *btf_type_sort_name(const struct btf *btf, __u32 index, bool from_ref) in btf_type_sort_name() argument 633 if (!from_ref && !name_off && btf_vlen(t)) in btf_type_sort_name()
|