Home
last modified time | relevance | path

Searched refs:borrow_mut (Results 1 – 25 of 87) sorted by relevance

1234

/external/rust/crates/vmm_vhost/src/
Dbackend.rs310 self.borrow_mut().get_features() in get_features()
314 self.borrow_mut().set_features(features) in set_features()
318 self.borrow_mut().set_owner() in set_owner()
322 self.borrow_mut().reset_owner() in reset_owner()
326 self.borrow_mut().set_mem_table(regions) in set_mem_table()
330 self.borrow_mut().set_log_base(base, fd) in set_log_base()
334 self.borrow_mut().set_log_fd(fd) in set_log_fd()
338 self.borrow_mut().set_vring_num(queue_index, num) in set_vring_num()
342 self.borrow_mut().set_vring_addr(queue_index, config_data) in set_vring_addr()
346 self.borrow_mut().set_vring_base(queue_index, base) in set_vring_base()
[all …]
/external/rust/crates/tokio/src/task/
Dlocal.rs308 cx.tasks.borrow_mut().queue.push_back(task);
386 self.context.tasks.borrow_mut().queue.push_back(task); in spawn_local()
536 .or_else(|| self.context.tasks.borrow_mut().queue.pop_front()) in next_task()
540 .borrow_mut() in next_task()
594 let task = match self.context.tasks.borrow_mut().owned.pop_back() { in drop()
603 for task in self.context.tasks.borrow_mut().queue.drain(..) { in drop()
654 cx.tasks.borrow_mut().queue.push_back(task); in schedule()
672 cx.tasks.borrow_mut().owned.push_front(task); in bind()
688 unsafe { cx.tasks.borrow_mut().owned.remove(ptr) } in release()
/external/rust/crates/criterion/src/html/
Dmod.rs528 self.plotter.borrow_mut().wait(); in summarize()
655 self.plotter.borrow_mut().pdf(plot_ctx, plot_data); in generate_plots()
656 self.plotter.borrow_mut().pdf(plot_ctx_small, plot_data); in generate_plots()
658 self.plotter.borrow_mut().regression(plot_ctx, plot_data); in generate_plots()
660 .borrow_mut() in generate_plots()
664 .borrow_mut() in generate_plots()
667 .borrow_mut() in generate_plots()
672 .borrow_mut() in generate_plots()
694 self.plotter.borrow_mut().pdf(plot_ctx, comp_data); in generate_plots()
695 self.plotter.borrow_mut().pdf(plot_ctx_small, comp_data); in generate_plots()
[all …]
/external/rust/crates/serde_derive/src/internals/
Dctxt.rs34 .borrow_mut() in error_spanned_by()
43 self.errors.borrow_mut().as_mut().unwrap().push(err); in syn_error()
48 let errors = self.errors.borrow_mut().take().unwrap(); in check()
/external/crosvm/devices/src/virtio/gpu/
Dvirtio_gpu.rs182 let mut display = self.display.borrow_mut(); in import_event_device()
203 let mut display = self.display.borrow_mut(); in process_display()
217 let mut display = self.display.borrow_mut(); in set_scanout()
301 match self.display.borrow_mut().import_dmabuf( in import_to_display()
329 self.display.borrow_mut().flip_to(surface_id, import_id); in flush_resource_to_surface()
338 let mut display = self.display.borrow_mut(); in flush_resource_to_surface()
362 self.display.borrow_mut().release_surface(surface_id); in update_cursor()
377 self.cursor_surface_id = Some(self.display.borrow_mut().create_surface( in update_cursor()
386 .borrow_mut() in update_cursor()
392 .borrow_mut() in update_cursor()
[all …]
/external/rust/crates/tokio/src/runtime/
Dbasic_scheduler.rs227 .borrow_mut() in block_on()
235 .borrow_mut() in block_on()
261 let removed = context.tasks.borrow_mut().owned.remove(ptr); in block_on()
341 let task = match context.tasks.borrow_mut().owned.pop_back() { in drop()
350 for task in context.tasks.borrow_mut().queue.drain(..) { in drop()
419 cx.tasks.borrow_mut().owned.push_front(task); in bind()
430 unsafe { cx.tasks.borrow_mut().owned.remove(ptr) } in release()
445 cx.tasks.borrow_mut().queue.push_back(task); in schedule()
Dcontext.rs59 let old = ctx.borrow_mut().replace(new); in enter()
70 *ctx.borrow_mut() = self.0.take(); in drop()
/external/rust/crates/tokio/src/runtime/thread_pool/
Dworker.rs189 let mut cx_core = cx.core.borrow_mut(); in block_in_place()
236 let core = match cx.core.borrow_mut().take() { in block_in_place()
345 *self.core.borrow_mut() = Some(core); in run_task()
356 let mut core = match self.core.borrow_mut().take() { in run_task()
369 *self.core.borrow_mut() = Some(core); in run_task()
416 *self.core.borrow_mut() = Some(core); in park_timeout()
426 core = self.core.borrow_mut().take().expect("core missing"); in park_timeout()
628 .borrow_mut() in bind()
662 let mut maybe_core = cx.core.borrow_mut(); in release()
727 if let Some(core) = cx.core.borrow_mut().as_mut() { in schedule()
/external/crosvm/devices/src/virtio/vhost/user/
Dnet.rs95 if let Err(e) = self.handler.borrow_mut().ack_features(features) { in ack_features()
111 .borrow_mut() in read_config()
135 .borrow_mut() in activate()
178 if let Err(e) = self.handler.borrow_mut().reset(self.queue_sizes.len()) { in reset()
Dblock.rs97 if let Err(e) = self.handler.borrow_mut().ack_features(features) { in ack_features()
113 .borrow_mut() in read_config()
129 .borrow_mut() in activate()
173 if let Err(e) = self.handler.borrow_mut().reset(self.queue_sizes.len()) { in reset()
Dfs.rs98 if let Err(e) = self.handler.borrow_mut().ack_features(features) { in ack_features()
106 .borrow_mut() in read_config()
128 .borrow_mut() in activate()
172 if let Err(e) = self.handler.borrow_mut().reset(self.queue_sizes.len()) { in reset()
/external/rust/crates/lazycell/src/
Dlib.rs125 pub fn borrow_mut(&mut self) -> Option<&mut T> { in borrow_mut() method
166 self.borrow_mut().unwrap() in borrow_mut_with()
196 return Ok(self.borrow_mut().unwrap()); in try_borrow_mut_with()
202 Ok(self.borrow_mut().unwrap()) in try_borrow_mut_with()
401 assert!(lazycell.borrow_mut().is_none()); in test_borrow_mut()
404 assert_eq!(lazycell.borrow_mut(), Some(&mut 1)); in test_borrow_mut()
406 *lazycell.borrow_mut().unwrap() = 2; in test_borrow_mut()
407 assert_eq!(lazycell.borrow_mut(), Some(&mut 2)); in test_borrow_mut()
411 assert!(lazycell.borrow_mut().is_none()); in test_borrow_mut()
/external/rust/crates/regex-automata/src/nfa/
Dcompiler.rs272 self.states.borrow_mut().clear(); in clear()
310 let mut bstates = self.states.borrow_mut(); in finish()
311 let mut remap = self.remap.borrow_mut(); in finish()
313 let mut empties = self.empties.borrow_mut(); in finish()
662 let mut trie = self.trie_state.borrow_mut(); in c_unicode_class()
671 let mut utf8_state = self.utf8_state.borrow_mut(); in c_unicode_class()
683 let mut utf8_state = self.utf8_state.borrow_mut(); in c_unicode_class()
728 let mut cache = self.utf8_suffix.borrow_mut(); in c_unicode_class_reverse_with_suffix()
786 match self.states.borrow_mut()[from] { in patch()
808 self.states.borrow_mut().push(CState::Empty { next: 0 }); in add_empty()
[all …]
/external/rust/crates/rusqlite/src/
Dcache.rs114 self.0.borrow_mut().set_capacity(capacity) in set_capacity()
130 let mut cache = self.0.borrow_mut(); in get()
146 let mut cache = self.0.borrow_mut(); in cache_stmt()
159 let mut cache = self.0.borrow_mut(); in flush()
172 self.0.borrow_mut().clear(); in clear()
Dcollation.rs23 .borrow_mut() in create_collation()
32 self.db.borrow_mut().collation_needed(x_coll_needed) in collation_needed()
37 self.db.borrow_mut().remove_collation(collation_name) in remove_collation()
/external/rust/crates/itertools/src/
Drciter_impl.rs64 self.rciter.borrow_mut().next() in next()
81 self.rciter.borrow_mut().next_back() in next_back()
Dgroupbylazy.rs328 self.inner.borrow_mut().step(client) in step()
333 self.inner.borrow_mut().drop_group(client) in drop_group()
378 let inner = &mut *self.parent.inner.borrow_mut(); in next()
480 self.inner.borrow_mut().step(client) in step()
485 self.inner.borrow_mut().drop_group(client) in drop_group()
527 let inner = &mut *self.parent.inner.borrow_mut(); in next()
/external/rust/cxx/gen/build/src/
Dcfg.rs372 .borrow_mut() in deref()
384 CONST_DEREFS.with(|derefs| derefs.borrow_mut().remove(&self.handle())); in deref_mut()
403 CONST_DEREFS.with(|derefs| derefs.borrow_mut().remove(&self.handle())); in drop()
/external/rust/crates/regex/src/
Dpool.rs303 pool.get().value().borrow_mut().push('x'); in thread_owner_optimization()
309 v.borrow_mut().push('y'); in thread_owner_optimization()
316 v.borrow_mut().push('z'); in thread_owner_optimization()
/external/rust/crates/tokio/tests/support/
Dmock_pool.rs29 QUEUE.with(|cell| cell.borrow_mut().push_back(task)); in run()
62 .with(|cell| cell.borrow_mut().pop_front()) in run_one()
/external/rust/crates/textwrap/src/core/
Doptimal_fit.rs20 while self.line_numbers.borrow_mut().len() < i + 1 { in get()
23 self.line_numbers.borrow_mut().push(line_number); in get()
/external/rust/crates/regex-automata/src/
Dminimize.rs261 self.0.borrow_mut().push(id); in add()
269 self.0.borrow_mut().sort(); in canonicalize()
270 self.0.borrow_mut().dedup(); in canonicalize()
274 self.0.borrow_mut().clear(); in clear()
/external/rust/crates/clang-sys/src/
Dlink.rs227 LIBRARY.with(|l| *l.borrow_mut() = Some(library));
249 LIBRARY.with(|l| l.borrow_mut().clone())
256 LIBRARY.with(|l| mem::replace(&mut *l.borrow_mut(), library))
/external/rust/crates/futures-executor/src/
Dlocal_pool.rs292 let mut incoming = self.incoming.borrow_mut(); in poll_pool_once()
369 incoming.borrow_mut().push(future.into()); in spawn_obj()
388 incoming.borrow_mut().push(future); in spawn_local_obj()
/external/crosvm/devices/src/virtio/
Dballoon.rs181 interrupt.borrow_mut().signal_used_queue(queue.vector); in handle_queue()
241 interrupt.borrow_mut().signal_used_queue(queue.vector); in handle_stats_queue()
261 interrupt.borrow_mut().signal_config_changed(); in handle_command_tube()
279 let resample_evt = if let Some(resample_evt) = interrupt.borrow_mut().get_resample_evt() { in handle_irq_resample()
288 interrupt.borrow_mut().do_interrupt_resample(); in handle_irq_resample()

1234