| /external/crosvm/sys_util/src/ |
| D | mmap.rs | 144 pub fn new_protection(size: usize, prot: Protection) -> Result<MemoryMapping> { in new_protection() 167 pub fn from_fd_offset(fd: &dyn AsRawFd, size: usize, offset: usize) -> Result<MemoryMapping> { in from_fd_offset() 180 size: usize, in from_fd_offset_protection() 181 offset: usize, in from_fd_offset_protection() 206 size: usize, in new_protection_fixed() 231 size: usize, in from_fd_offset_protection_fixed() 232 offset: usize, in from_fd_offset_protection_fixed() 248 size: usize, in try_mmap() 251 fd: Option<(&AsRawFd, usize)>, in try_mmap() argument 300 pub fn size(&self) -> usize { in size() [all …]
|
| D | sock_ctrl_msg.rs | 106 fn raw_sendmsg<D: IntoIovec>(fd: RawFd, out_data: D, out_fds: &[RawFd]) -> Result<usize> { in raw_sendmsg() 158 fn raw_recvmsg(fd: RawFd, in_data: &mut [u8], in_fds: &mut [RawFd]) -> Result<(usize, usize)> { in raw_recvmsg() argument 233 fn send_with_fd<D: IntoIovec>(&self, buf: D, fd: RawFd) -> Result<usize> { in send_with_fd() 245 fn send_with_fds<D: IntoIovec>(&self, buf: D, fd: &[RawFd]) -> Result<usize> { in send_with_fds() 256 fn recv_with_fd(&self, buf: &mut [u8]) -> Result<(usize, Option<File>)> { in recv_with_fd() 282 fn recv_with_fds(&self, buf: &mut [u8], fds: &mut [RawFd]) -> Result<(usize, usize)> { in recv_with_fds() argument 314 fn size(&self) -> usize; in size() 326 fn size(&self) -> usize { in size() 338 fn size(&self) -> usize { in size()
|
| D | file_traits.rs | 48 fn read_volatile(&mut self, slice: VolatileSlice) -> Result<usize>; in read_volatile() 67 fn write_volatile(&mut self, slice: VolatileSlice) -> Result<usize>; in write_volatile() 86 fn read_volatile(&mut self, slice: VolatileSlice) -> Result<usize> { in read_volatile() 103 fn write_volatile(&mut self, slice: VolatileSlice) -> Result<usize> { in write_volatile()
|
| /external/jemalloc/src/ |
| D | valgrind.c | 9 valgrind_make_mem_noaccess(void *ptr, size_t usize) in valgrind_make_mem_noaccess() 16 valgrind_make_mem_undefined(void *ptr, size_t usize) in valgrind_make_mem_undefined() 23 valgrind_make_mem_defined(void *ptr, size_t usize) in valgrind_make_mem_defined() 30 valgrind_freelike_block(void *ptr, size_t usize) in valgrind_freelike_block()
|
| D | huge.c | 43 huge_malloc(tsdn_t *tsdn, arena_t *arena, size_t usize, bool zero) in huge_malloc() 52 huge_palloc(tsdn_t *tsdn, arena_t *arena, size_t usize, size_t alignment, in huge_palloc() 133 huge_dalloc_junk(void *ptr, size_t usize) in huge_dalloc_junk() 155 size_t usize, usize_next; in huge_ralloc_no_move_similar() local 216 size_t usize) in huge_ralloc_no_move_shrink() 270 size_t usize, bool zero) { in huge_ralloc_no_move_expand() 369 huge_ralloc_move_helper(tsdn_t *tsdn, arena_t *arena, size_t usize, in huge_ralloc_move_helper() 380 size_t usize, size_t alignment, bool zero, tcache_t *tcache) in huge_ralloc()
|
| D | jemalloc.c | 1537 ialloc_prof_sample(tsd_t *tsd, size_t usize, szind_t ind, bool zero, 1557 ialloc_prof(tsd_t *tsd, size_t usize, szind_t ind, bool zero, bool slow_path) 1583 ialloc_body(size_t size, bool zero, tsdn_t **tsdn, size_t *usize, 1615 ialloc_post_check(void *ret, tsdn_t *tsdn, size_t usize, const char *func, 1663 imemalign_prof_sample(tsd_t *tsd, size_t alignment, size_t usize, 1683 imemalign_prof(tsd_t *tsd, size_t alignment, size_t usize) 1708 size_t usize; local 1840 irealloc_prof_sample(tsd_t *tsd, void *old_ptr, size_t old_usize, size_t usize, 1859 irealloc_prof(tsd_t *tsd, void *old_ptr, size_t old_usize, size_t usize) 1885 size_t usize; local [all …]
|
| /external/crosvm/msg_socket/src/ |
| D | msg_on_socket.rs | 99 unsafe fn read_from_buffer(buffer: &[u8], fds: &[RawFd]) -> MsgResult<(Self, usize)>; in read_from_buffer() argument 101 fn write_to_buffer(&self, buffer: &mut [u8], fds: &mut [RawFd]) -> MsgResult<usize>; in write_to_buffer() 108 unsafe fn read_from_buffer(buffer: &[u8], fds: &[RawFd]) -> MsgResult<(Self, usize)> { in read_from_buffer() argument 112 fn write_to_buffer(&self, buffer: &mut [u8], fds: &mut [RawFd]) -> MsgResult<usize> { in write_to_buffer() 125 unsafe fn read_from_buffer(_buffer: &[u8], fds: &[RawFd]) -> MsgResult<(Self, usize)> { in read_from_buffer() argument 131 fn write_to_buffer(&self, _buffer: &mut [u8], fds: &mut [RawFd]) -> MsgResult<usize> { in write_to_buffer() 149 unsafe fn read_from_buffer(buffer: &[u8], fds: &[RawFd]) -> MsgResult<(Self, usize)> { in read_from_buffer() argument 160 fn write_to_buffer(&self, buffer: &mut [u8], fds: &mut [RawFd]) -> MsgResult<usize> { in write_to_buffer() 183 unsafe fn read_from_buffer(_buffer: &[u8], _fds: &[RawFd]) -> MsgResult<(Self, usize)> { in read_from_buffer() argument 187 fn write_to_buffer(&self, _buffer: &mut [u8], _fds: &mut [RawFd]) -> MsgResult<usize> { in write_to_buffer() [all …]
|
| /external/jemalloc/include/jemalloc/internal/ |
| D | valgrind.h | 16 #define JEMALLOC_VALGRIND_MAKE_MEM_NOACCESS(ptr, usize) do { \ argument 20 #define JEMALLOC_VALGRIND_MAKE_MEM_UNDEFINED(ptr, usize) do { \ argument 24 #define JEMALLOC_VALGRIND_MAKE_MEM_DEFINED(ptr, usize) do { \ argument 33 #define JEMALLOC_VALGRIND_MALLOC(cond, tsdn, ptr, usize, zero) do { \ argument 51 #define JEMALLOC_VALGRIND_REALLOC(moved, tsdn, ptr, usize, ptr_null, \ argument 97 #define JEMALLOC_VALGRIND_MAKE_MEM_NOACCESS(ptr, usize) do {} while (0) argument 98 #define JEMALLOC_VALGRIND_MAKE_MEM_UNDEFINED(ptr, usize) do {} while (0) argument 99 #define JEMALLOC_VALGRIND_MAKE_MEM_DEFINED(ptr, usize) do {} while (0) argument 100 #define JEMALLOC_VALGRIND_MALLOC(cond, tsdn, ptr, usize, zero) do {} while (0) argument 101 #define JEMALLOC_VALGRIND_REALLOC(maybe_moved, tsdn, ptr, usize, \ argument
|
| /external/adhd/audio_streams/src/ |
| D | audio_streams.rs | 53 num_channels: usize, in new_playback_stream() 54 frame_rate: usize, in new_playback_stream() 55 buffer_size: usize, in new_playback_stream() 63 num_channels: usize, in new_capture_stream() 64 frame_rate: usize, in new_capture_stream() 65 buffer_size: usize, in new_capture_stream() 108 fn trigger(&mut self, nframes: usize); in trigger() 146 frame_size: usize, in new() 168 pub fn frame_capacity(&self) -> usize { in frame_capacity() 173 pub fn copy_cb<F: FnOnce(&mut [u8])>(&mut self, size: usize, cb: F) { in copy_cb() [all …]
|
| D | capture.rs | 69 frame_size: usize, in new() 91 pub fn frame_capacity(&self) -> usize { in frame_capacity() 96 pub fn copy_cb<F: FnOnce(&[u8])>(&mut self, size: usize, cb: F) { in copy_cb() 104 fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> { in read() 131 pub fn new(num_channels: usize, frame_rate: usize, buffer_size: usize) -> Self { in new() 188 fn trigger(&mut self, nwritten: usize) { in trigger()
|
| /external/rust/crates/proc-macro2/tests/ |
| D | test.rs | 101 fn token_count(p: &str) -> usize { in literal_suffix() 171 fn check_spans(p: &str, mut lines: &[(usize, usize, usize, usize)]) { in span_test() argument 176 fn check_spans_internal(ts: TokenStream, lines: &mut &[(usize, usize, usize, usize)]) { in span_test() argument
|
| /external/crosvm/devices/src/pci/ |
| D | pci_root.rs | 77 bus: usize, in config_space_read() 78 device: usize, in config_space_read() 79 _function: usize, in config_space_read() 80 register: usize, in config_space_read() 101 bus: usize, in config_space_write() 102 device: usize, in config_space_write() 103 _function: usize, in config_space_write() 104 register: usize, in config_space_write() 285 fn parse_config_address(config_address: u32) -> (usize, usize, usize, usize) { in parse_config_address()
|
| /external/crosvm/devices/src/virtio/input/ |
| D | event_source.rs | 60 fn receive_events(&mut self) -> Result<usize>; in receive_events() 62 fn available_events_count(&self) -> usize; in available_events_count() 86 fn read(&mut self, buf: &mut [u8]) -> std::io::Result<usize> { in read() 110 ) -> std::io::Result<usize> { in write() 142 fn receive_events<F: Fn(&input_event) -> bool>(&mut self, event_filter: F) -> Result<usize> { in receive_events() 191 fn available_events(&self) -> usize { in available_events() 224 fn read(&mut self, buf: &mut [u8]) -> std::io::Result<usize> { in read() 233 fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> { in write() 260 fn receive_events(&mut self) -> Result<usize> { in receive_events() 264 fn available_events_count(&self) -> usize { in available_events_count() [all …]
|
| /external/jemalloc_new/include/jemalloc/internal/ |
| D | prof_inlines_b.h | 48 prof_tctx_set(tsdn_t *tsdn, const void *ptr, size_t usize, in prof_tctx_set() 65 prof_sample_accum_update(tsd_t *tsd, size_t usize, bool update, in prof_sample_accum_update() 102 prof_alloc_prep(tsd_t *tsd, size_t usize, bool prof_active, bool update) { in prof_alloc_prep() 122 prof_malloc(tsdn_t *tsdn, const void *ptr, size_t usize, alloc_ctx_t *alloc_ctx, in prof_malloc() 137 prof_realloc(tsd_t *tsd, const void *ptr, size_t usize, prof_tctx_t *tctx, in prof_realloc() 195 prof_free(tsd_t *tsd, const void *ptr, size_t usize, alloc_ctx_t *alloc_ctx) { in prof_free()
|
| D | sz.h | 119 size_t usize = (psz + delta_mask) & ~delta_mask; in sz_psz2u() local 194 size_t usize = grp_size + mod_size; in sz_index2size_compute() local 231 size_t usize = (size + delta_mask) & ~delta_mask; in sz_s2u_compute() local 263 size_t usize; in sz_sa2u() local
|
| /external/adhd/cras/client/libcras/src/ |
| D | cras_shm.rs | 141 fn buffer_len_from_offset(&self, offset: usize) -> io::Result<usize> { in buffer_len_from_offset() 184 pub fn get_write_offset_and_len(&self) -> io::Result<(usize, usize)> { in get_write_offset_and_len() argument 197 pub fn get_read_buffer_offset(&self) -> io::Result<usize> { in get_read_buffer_offset() 210 fn get_buffer_offset(&self, idx: usize) -> io::Result<usize> { in get_buffer_offset() 225 pub fn get_frame_size(&self) -> usize { in get_frame_size() 230 fn get_used_size(&self) -> usize { in get_used_size() 270 fn check_rw_offset(&self, idx: usize, offset: u32) -> io::Result<()> { in check_rw_offset() 295 fn set_write_offset(&mut self, idx: usize, offset: u32) -> io::Result<()> { in set_write_offset() 312 fn set_read_offset(&mut self, idx: usize, offset: u32) -> io::Result<()> { in set_read_offset() 325 fn check_buffer_offset(&self, idx: usize, offset: usize) -> io::Result<()> { in check_buffer_offset() [all …]
|
| D | libcras.rs | 276 rate: usize, in create_stream() 277 channel_num: usize, in create_stream() 362 num_channels: usize, in new_playback_stream() 363 frame_rate: usize, in new_playback_stream() 364 buffer_size: usize, in new_playback_stream() 383 num_channels: usize, in new_capture_stream() 384 frame_rate: usize, in new_capture_stream() 385 buffer_size: usize, in new_capture_stream()
|
| /external/rust/crates/syn/1.0.7/src/ |
| D | punctuated.rs | 70 pub fn len(&self) -> usize { in len() 220 pub fn insert(&mut self, index: usize, value: T) in insert() 464 fn size_hint(&self) -> (usize, Option<usize>) { in size_hint() 479 fn len(&self) -> usize { in len() 514 fn size_hint(&self) -> (usize, Option<usize>) { in size_hint() 529 fn len(&self) -> usize { in len() 555 fn size_hint(&self) -> (usize, Option<usize>) { in size_hint() 570 fn len(&self) -> usize { in len() 592 fn size_hint(&self) -> (usize, Option<usize>) { in size_hint() 604 fn len(&self) -> usize { in len() [all …]
|
| /external/flatbuffers/rust/flatbuffers/src/ |
| D | builder.rs | 120 pub fn collapse(self) -> (Vec<u8>, usize) { in collapse() argument 164 pub fn num_written_vtables(&self) -> usize { in num_written_vtables() 204 pub fn start_vector<T: Push>(&mut self, num_items: usize) { in start_vector() 354 fn used_space(&self) -> usize { in used_space() 560 fn align(&mut self, len: usize, alignment: PushAlignment) { in align() 567 fn track_min_align(&mut self, alignment: usize) { in track_min_align() 580 fn make_space(&mut self, want: usize) -> usize { in make_space() 587 fn ensure_capacity(&mut self, want: usize) -> usize { in ensure_capacity() 600 fn unused_ready_space(&self) -> usize { in unused_ready_space() 628 fn get_vtable_byte_len(field_locs: &[FieldLoc]) -> usize { in get_vtable_byte_len() [all …]
|
| D | vtable.rs | 42 pub fn num_fields(&self) -> usize { in num_fields() 45 pub fn num_bytes(&self) -> usize { in num_bytes() 48 pub fn object_inline_num_bytes(&self) -> usize { in object_inline_num_bytes()
|
| /external/jemalloc/test/unit/ |
| D | junk.c | 41 arena_dalloc_junk_large_intercept(void *ptr, size_t usize) in arena_dalloc_junk_large_intercept() 56 huge_dalloc_junk_intercept(void *ptr, size_t usize) in huge_dalloc_junk_intercept() 171 arena_ralloc_junk_large_intercept(void *ptr, size_t old_usize, size_t usize) in arena_ralloc_junk_large_intercept() 203 arena_redzone_corruption_replacement(void *ptr, size_t usize, bool after, in arena_redzone_corruption_replacement()
|
| /external/jemalloc_new/src/ |
| D | large.c | 14 large_malloc(tsdn_t *tsdn, arena_t *arena, size_t usize, bool zero) { in large_malloc() 21 large_palloc(tsdn_t *tsdn, arena_t *arena, size_t usize, size_t alignment, in large_palloc() 104 large_ralloc_no_move_shrink(tsdn_t *tsdn, extent_t *extent, size_t usize) { in large_ralloc_no_move_shrink() 139 large_ralloc_no_move_expand(tsdn_t *tsdn, extent_t *extent, size_t usize, in large_ralloc_no_move_expand() 272 large_ralloc_move_helper(tsdn_t *tsdn, arena_t *arena, size_t usize, in large_ralloc_move_helper() 281 large_ralloc(tsdn_t *tsdn, arena_t *arena, extent_t *extent, size_t usize, in large_ralloc()
|
| /external/crosvm/x86_64/src/ |
| D | fdt.rs | 37 fdt_max_size: usize, in create_fdt() 41 ) -> Result<usize, Error> { in create_fdt()
|
| /external/crosvm/qcow/src/ |
| D | vec_cache.rs | 60 pub fn len(&self) -> usize { in len() 112 pub fn iter_mut(&mut self) -> IterMut<usize, T> { in iter_mut() 117 pub fn insert<F>(&mut self, index: usize, block: T, write_callback: F) -> io::Result<()> in insert()
|
| /external/crosvm/devices/src/ |
| D | ioapic.rs | 60 fn encode_selector_from_irq(irq: usize, is_high_bits: bool) -> u8 { in encode_selector_from_irq() 66 fn decode_irq_from_selector(selector: u8) -> (usize, bool) { in decode_irq_from_selector() 188 pub fn service_irq(&mut self, irq: usize, level: bool) -> bool { in service_irq() 316 fn set_up(trigger: TriggerMode) -> (Ioapic, usize) { in set_up() argument 322 fn set_up_with_irq(irq: usize, trigger: TriggerMode) -> Ioapic { in set_up_with_irq() 355 fn write_entry(ioapic: &mut Ioapic, irq: usize, entry: RedirectionTableEntry) { in write_entry() 368 fn set_up_redirection_table_entry(ioapic: &mut Ioapic, irq: usize, trigger_mode: TriggerMode) { in set_up_redirection_table_entry() 378 fn set_mask(ioapic: &mut Ioapic, irq: usize, mask: bool) { in set_mask()
|