Searched refs:container_of (Results 1 – 12 of 12) sorted by relevance
| /rust/kernel/ |
| A D | configfs.rs | 114 use crate::container_of; 220 unsafe fn container_of(group: *const bindings::config_group) -> *const Self; in container_of() method 231 unsafe fn container_of(group: *const bindings::config_group) -> *const Self { in container_of() method 237 unsafe { container_of!(opaque_ptr, Subsystem<Data>, subsystem) } in container_of() 289 unsafe fn container_of(group: *const bindings::config_group) -> *const Self { in container_of() method 293 unsafe { container_of!(opaque_ptr, Self, group) } in container_of() 316 unsafe { &(*Group::<Parent>::container_of(this)).data } in get_group_data() 320 unsafe { &(*Subsystem::container_of(this)).data } in get_group_data() 452 let r_group_ptr = unsafe { Group::<Data>::container_of(c_group_ptr) }; in release() 557 unsafe { container_of!(item, bindings::config_group, cg_item) }; in show() [all …]
|
| A D | rbtree.rs | 9 use crate::{alloc::Flags, bindings, container_of, error::Result, prelude::*}; 338 let node = unsafe { container_of!(curr, Node<K, V>, links) }; in raw_entry() 386 let this = unsafe { container_of!(node, Node<K, V>, links) }; in get() 433 let this = unsafe { container_of!(node, Node<K, V>, links) }; in cursor_lower_bound() 495 let this = unsafe { container_of!(next, Node<K, V>, links) }; in drop() 806 let this = unsafe { container_of!(neighbor, Node<K, V>, links) }; in remove_neighbor() 912 let this = unsafe { container_of!(node.as_ptr(), Node<K, V>, links) }; in to_key_value_raw() 1021 let cur = unsafe { container_of!(self.next, Node<K, V>, links) }; in next() 1208 unsafe { &(*container_of!(self.node_links, Node<K, V>, links)).value } in get() 1216 unsafe { &mut (*(container_of!(self.node_links, Node<K, V>, links))).value } in get_mut() [all …]
|
| A D | workqueue.rs | 190 container_of, 324 container_of!(work_ptr, bindings::delayed_work, work), in enqueue_delayed() 630 unsafe { $crate::container_of!(ptr, Self, $field) } 798 $crate::container_of!(ptr, $crate::bindings::delayed_work, work) 806 unsafe { $crate::container_of!(delayed_work, Self, $field) }
|
| A D | platform.rs | 8 acpi, bindings, container_of, 331 let pdev = unsafe { container_of!(dev.as_raw(), bindings::platform_device, dev) }; in try_from()
|
| A D | auxiliary.rs | 8 bindings, container_of, device, 234 let adev = unsafe { container_of!(dev, bindings::auxiliary_device, dev) }; in release()
|
| A D | pci.rs | 8 bindings, container_of, device, 494 let pdev = unsafe { container_of!(dev.as_raw(), bindings::pci_dev, dev) }; in try_from()
|
| A D | lib.rs | 248 macro_rules! container_of { macro
|
| /rust/kernel/list/ |
| A D | impl_list_item_mod.rs | 220 $crate::container_of!(me, Self, $($field).*) 245 $crate::container_of!(me, Self, $($field).*) 273 let container = $crate::container_of!( 322 let container = $crate::container_of!(
|
| /rust/kernel/drm/gem/ |
| A D | mod.rs | 130 unsafe { &*crate::container_of!(Opaque::cast_from(self_ptr), Object<T>, obj) } in from_raw() 275 let this = unsafe { crate::container_of!(ptr, Self, obj) }; in free_callback()
|
| /rust/kernel/sync/ |
| A D | arc.rs | 159 unsafe fn container_of(ptr: *const T) -> NonNull<ArcInner<T>> { in container_of() method 289 let ptr = unsafe { ArcInner::container_of(ptr) }; in from_raw() 614 let ptr = unsafe { ArcInner::container_of(ptr) }; in from_raw()
|
| /rust/kernel/drm/ |
| A D | device.rs | 140 unsafe { crate::container_of!(Opaque::cast_from(ptr), Self, dev) }.cast_mut() in from_drm_device()
|
| /rust/kernel/time/ |
| A D | hrtimer.rs | 624 unsafe { ::kernel::container_of!(ptr, $timer_type, $field) }
|
Completed in 32 milliseconds