Home
last modified time | relevance | path

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

/linux/rust/proc-macro2/
H A Drcvec.rs85 pub(crate) fn as_mut(&mut self) -> RcVecMut<T> { in as_mut() method
107 pub(crate) fn as_mut(&mut self) -> RcVecMut<T> { in as_mut() method
H A Dfallback.rs265 push_token_from_proc_macro(stream.as_mut(), tree); in from()
297 .for_each(|token| push_token_from_proc_macro(vec.as_mut(), token)); in extend()
/linux/rust/pin-init/src/
H A D__internal.rs223 slot.as_mut().init(crate::init!(Foo { in stack_init_reuse()
230 slot.as_mut().init(crate::init!(Foo { in stack_init_reuse()
/linux/rust/kernel/list/
H A Darc.rs222 unsafe { T::on_create_list_arc_from_unique(unique.as_mut()) }; in from()
258 unsafe { <T as ListArcSafe<ID>>::on_create_list_arc_from_unique(unique.as_mut()) }; in pair_from_pin_unique()
260 unsafe { <T as ListArcSafe<ID2>>::on_create_list_arc_from_unique(unique.as_mut()) }; in pair_from_pin_unique()
/linux/drivers/gpu/nova-core/
H A Dgsp.rs92 &mut obj.0.as_mut()[size_of::<u64>()..][..RM_LOG_BUFFER_NUM_PAGES * size_of::<u64>()] in new()
/linux/rust/kernel/
H A Dtypes.rs254 &mut self.0.as_mut().unwrap().0 in deref_mut()
H A Ddma.rs556 unsafe { self.0.as_mut() } in deref_mut()
653 pub unsafe fn as_mut(&self) -> &mut T { in as_mut() method
H A Dmaple_tree.rs297 unsafe { self.as_mut().free_all_entries() }; in drop()
H A Dopp.rs778 if let Some(mask) = self.cpus.as_mut() { in set_sharing_cpus()
/linux/rust/kernel/sync/lock/
H A Dglobal.rs170 pub fn as_mut<'a>(&'a self, _guard: &'a mut GlobalGuard<B>) -> &'a mut T { in as_mut()
241 /// let my_counter = self.my_counter.as_mut(guard);
168 pub fn as_mut<'a>(&'a self, _guard: &'a mut GlobalGuard<B>) -> &'a mut T { as_mut() method
/linux/rust/syn/
H A Dpunctuated.rs136 last: self.last.as_mut().map(Box::as_mut).into_iter(), in iter_mut()
155 last: self.last.as_mut().map(Box::as_mut).into_iter(), in pairs_mut()
H A Dexpr.rs2274 *prev.else_branch.as_mut().unwrap().1 = Expr::If(expr); in parse()
/linux/rust/kernel/sync/
H A Dlock.rs269 /// let mut data: Pin<&mut Data> = data.as_mut(); in as_mut() method
272 pub fn as_mut(&mut self) -> Pin<&mut T> { in as_mut()
/linux/rust/kernel/alloc/
H A Dkbox.rs562 unsafe { self.0.as_mut() } in borrow_mut()
/linux/drivers/android/binder/
H A Dtransaction.rs106 txn_security_ctx_off.as_mut(), in new()
H A Dallocation.rs193 let file_list = match self.allocation_info.as_mut() { in translate_fds()
H A Dthread.rs1088 if let Some(sg_state) = sg_state.as_mut() { in copy_transaction_data()
1095 if let Some((off_out, secctx)) = secctx.as_mut() { in copy_transaction_data()
H A Dprocess.rs1021 let mapping = inner.mapping.as_mut().ok_or_else(BinderError::new_dead)?; in buffer_alloc()
1066 let mapping = inner.mapping.as_mut()?; in buffer_get()