Home
last modified time | relevance | path

Searched refs:offset_of (Results 1 – 14 of 14) sorted by relevance

/linux/drivers/android/binder/
H A Dtransaction.rs55 use core::mem::offset_of;
58 debug_id: offset_of!(Transaction, debug_id),
59 code: offset_of!(Transaction, code),
60 flags: offset_of!(Transaction, flags),
61 from_thread: offset_of!(Transaction, from),
62 to_proc: offset_of!(Transaction, to),
63 target_node: offset_of!(Transaction, target_node),
H A Dnode.rs182 use mem::offset_of;
184 arc_offset: Arc::<Node>::DATA_OFFSET + offset_of!(DTRWrap<Node>, wrapped),
185 debug_id: offset_of!(Node, debug_id),
186 ptr: offset_of!(Node, ptr),
H A Dprocess.rs422 use core::mem::offset_of;
426 task: offset_of!(Process, task),
H A Dthread.rs719 core::mem::offset_of!(uapi::binder_fd_object, __bindgen_anon_1.fd); in translate_object()
/linux/rust/kernel/
H A Dauxiliary.rs33 mem::offset_of,
52 const DEVICE_DRIVER_OFFSET: usize = core::mem::offset_of!(Self::DriverType, driver); in register()
174 core::mem::offset_of!(bindings::auxiliary_device_id, driver_data);
370 const OFFSET: usize = offset_of!(bindings::auxiliary_device, dev); in new()
H A Dpci.rs27 mem::offset_of,
70 const DEVICE_DRIVER_OFFSET: usize = core::mem::offset_of!(Self::DriverType, driver);
241 const DRIVER_DATA_OFFSET: usize = core::mem::offset_of!(bindings::pci_device_id, driver_data);
480 const OFFSET: usize = offset_of!(bindings::pci_dev, dev); in inc_ref()
H A Dusb.rs28 offset_of,
45 const DEVICE_DRIVER_OFFSET: usize = core::mem::offset_of!(Self::DriverType, driver);
247 const DRIVER_DATA_OFFSET: usize = core::mem::offset_of!(bindings::usb_device_id, driver_info);
356 const OFFSET: usize = offset_of!(bindings::usb_interface, dev);
H A Di2c.rs28 mem::offset_of,
67 const DRIVER_DATA_OFFSET: usize = core::mem::offset_of!(bindings::i2c_device_id, driver_data);
92 const DEVICE_DRIVER_OFFSET: usize = core::mem::offset_of!(Self::DriverType, driver);
487 const OFFSET: usize = offset_of!(bindings::i2c_client, dev);
H A Dplatform.rs36 mem::offset_of,
54 const DEVICE_DRIVER_OFFSET: usize = core::mem::offset_of!(Self::DriverType, driver);
331 const OFFSET: usize = offset_of!(bindings::platform_device, dev);
H A Djump_label.rs56 off = const ::core::mem::offset_of!($keytyp, $field),
H A Dlib.rs218 let offset: usize = ::core::mem::offset_of!($Container, $($fields)*); in panic()
/linux/scripts/gdb/linux/
H A Dutils.py69 def offset_of(typeobj, field): function
76 offset_of(typeobj, member)).cast(typeobj)
/linux/rust/kernel/list/
H A Dimpl_list_item_mod.rs48 if false { let _: usize = ::core::mem::offset_of!(Self, $($field).*); }
51 // expression doesn't follow any pointers, as the `offset_of!` invocation above
/linux/rust/kernel/drm/
H A Ddevice.rs227 mem::offset_of!(Device<T, Normal>, dev),