Home
last modified time | relevance | path

Searched refs:from_ref (Results 1 – 18 of 18) sorted by relevance

/linux/rust/kernel/debugfs/
H A Dentry.rs75 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/kernel/
H A Dprint.rs117 core::ptr::from_ref(&args).cast::<c_void>(),
137 core::ptr::from_ref(&args).cast::<c_void>(),
H A Dkunit.rs27 core::ptr::from_ref(&args).cast::<c_void>(), in err()
47 core::ptr::from_ref(&args).cast::<c_void>(), in info()
H A Dseq_file.rs40 core::ptr::from_ref(&args).cast::<crate::ffi::c_void>(), in call_printf()
H A Ddevice.rs195 let ptr = core::ptr::from_ref(self); in as_bound()
473 core::ptr::from_ref(&msg).cast::<crate::ffi::c_void>(), in printk()
H A Dconfigfs.rs719 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 Dmodule_param.rs145 core::ptr::from_ref(self).cast_mut().cast() in as_void_ptr()
H A Di2c.rs29 from_ref,
457 from_ref(&self.0) in as_raw()
H A Ddevice_id.rs180 core::ptr::from_ref(self).cast() in as_ptr()
H A Ddevres.rs180 core::ptr::from_ref(self.data()).cast_mut().cast(), in new()
H A Duaccess.rs545 core::ptr::from_ref(value).cast::<c_void>(), in write()
H A Dbitmap.rs77 core::ptr::from_ref::<Bitmap>(self).cast::<usize>() in as_ptr()
H A Dio.rs613 unsafe { &*core::ptr::from_ref(raw).cast() } in from_raw()
H A Dstr.rs41 unsafe { &*(core::ptr::from_ref(bytes) as *const BStr) } in from_bytes()
/linux/security/keys/
H A Dkeyctl.c598 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 Dfile.rs376 unsafe { LocalFile::from_raw_file(core::ptr::from_ref(self).cast()) } in deref()
/linux/drivers/android/binder/
H A Dpage_range.rs290 let mm_lock = unsafe { &*ptr::from_ref(&self.mm_lock) }; in stable_trylock_mm()
340 (*vma.as_ptr()).vm_private_data = ptr::from_ref(self).cast_mut().cast::<c_void>() in register_with_vma()
/linux/tools/bpf/bpftool/
H A Dbtf.c629 static const char *btf_type_sort_name(const struct btf *btf, __u32 index, bool from_ref) in btf_type_sort_name() argument
638 if (!from_ref && !name_off && btf_vlen(t)) in btf_type_sort_name()