Home
last modified time | relevance | path

Searched refs:cast_from (Results 1 – 6 of 6) sorted by relevance

/linux/rust/kernel/drm/gem/
H A Dshmem.rs172 let this = unsafe { container_of!(Opaque::cast_from(base), Self, obj) }.cast_mut(); in free_callback()
381 let obj = Opaque::cast_from(container_of!(obj, bindings::drm_gem_shmem_object, base));
H A Dmod.rs169 unsafe { &*crate::container_of!(Opaque::cast_from(self_ptr), Object<T, Ctx>, obj) } in create_handle()
/linux/rust/kernel/
H A Ddevres.rs263 let node = Opaque::cast_from(node); in devres_node_release()
283 let node = Opaque::cast_from(node); in devres_node_free_node()
H A Dtypes.rs416 pub const fn cast_from(this: *const T) -> *const Self { in pin_init()
407 pub const fn cast_from(this: *const T) -> *const Self { cast_from() method
/linux/rust/kernel/drm/
H A Ddevice.rs293 unsafe { crate::container_of!(Opaque::cast_from(ptr), Self, dev) }.cast_mut() in raw_get_work()
/linux/rust/zerocopy/src/
H A Dlayout.rs757 pub(crate) use cast_from::CastFrom;
758 mod cast_from { module