Searched refs:as_ptr (Results 1 – 20 of 20) sorted by relevance
| /linux/rust/kernel/ |
| A D | page.rs | 75 pub fn as_ptr(&self) -> *mut bindings::page { in as_ptr() method 76 self.page.as_ptr() in as_ptr() 97 let mapped_addr = unsafe { bindings::kmap_local_page(self.as_ptr()) }; in with_page_mapped() 248 unsafe { bindings::__free_pages(self.page.as_ptr(), 0) }; in drop()
|
| A D | print.rs | 107 format_string.as_ptr() as _, 108 module_name.as_ptr(), 128 format_strings::CONT.as_ptr() as _, in call_printk_cont()
|
| A D | kunit.rs | 21 c"\x013%pA".as_ptr() as _, in err() 37 c"\x016%pA".as_ptr() as _, in info()
|
| A D | rbtree.rs | 448 let best_key = unsafe { &(*best.as_ptr()).key }; in cursor_lower_bound() 463 let links = unsafe { addr_of_mut!((*best.as_ptr()).links) }; in cursor_lower_bound() 765 let this = unsafe { container_of!(self.current.as_ptr(), Node<K, V>, links) }.cast_mut(); in remove_current() 804 let neighbor = neighbor.as_ptr(); in remove_neighbor() 879 Direction::Prev => bindings::rb_prev(self.current.as_ptr()), in get_neighbor_raw() 880 Direction::Next => bindings::rb_next(self.current.as_ptr()), in get_neighbor_raw() 913 let this = unsafe { container_of!(node.as_ptr(), Node<K, V>, links) }.cast_mut(); in to_key_value_raw()
|
| A D | device.rs | 87 unsafe { bindings::put_device(obj.cast().as_ptr()) } in dec_ref()
|
| A D | sync.rs | 35 pub(crate) fn as_ptr(&self) -> *mut bindings::lock_class_key { in as_ptr() method
|
| A D | firmware.rs | 86 self.0.as_ptr() in as_raw()
|
| A D | task.rs | 175 unsafe { bindings::put_task_struct(obj.cast().as_ptr()) } in dec_ref()
|
| A D | lib.rs | 105 pub const fn as_ptr(&self) -> *mut bindings::module { in as_ptr() method
|
| A D | str.rs | 252 self.0.as_ptr() as _ in as_char_ptr() 717 s.as_bytes().as_ptr(), in write_str() 820 let ptr = unsafe { bindings::memchr(buf.as_ptr().cast(), 0, (f.bytes_written() - 1) as _) }; in try_from_fmt()
|
| A D | uaccess.rs | 337 let data_ptr = data.as_ptr().cast::<c_void>(); in write_slice()
|
| A D | types.rs | 126 core::ptr::NonNull::dangling().as_ptr() in into_foreign()
|
| A D | workqueue.rs | 384 key.as_ptr(), in new()
|
| /linux/rust/kernel/sync/ |
| A D | arc.rs | 234 let ptr = self.ptr.as_ptr(); in into_raw() 270 core::ptr::eq(this.ptr.as_ptr(), other.ptr.as_ptr()) in ptr_eq() 340 ManuallyDrop::new(self).ptr.as_ptr() as _ in into_foreign() 405 unsafe { drop(Box::from_raw(self.ptr.as_ptr())) }; in drop()
|
| A D | condvar.rs | 111 bindings::__init_waitqueue_head(slot, name.as_char_ptr(), key.as_ptr()) in new()
|
| A D | lock.rs | 116 B::init(slot, name.as_char_ptr(), key.as_ptr()) in new()
|
| /linux/rust/kernel/block/mq/ |
| A D | request.rs | 240 let wrapper_ptr = unsafe { Self::wrapper_ptr(obj.as_ptr()).as_ptr() }; in dec_ref()
|
| A D | gen_disk.rs | 111 static_lock_class!().as_ptr(), in build()
|
| A D | operations.rs | 189 unsafe { RequestDataWrapper::refcount_ptr(pdu.as_ptr()).write(AtomicU64::new(0)) }; in init_request_callback()
|
| /linux/rust/kernel/alloc/ |
| A D | box_ext.rs | 56 core::ptr::NonNull::<_>::dangling().as_ptr() in new_uninit()
|
Completed in 34 milliseconds