/external/libnetfilter_conntrack/src/conntrack/ |
D | stack.c | 20 size_t elem_size; member 24 struct stack *stack_create(size_t elem_size, int max_elems) in stack_create() argument 32 s->data = calloc(elem_size * max_elems, 1); in stack_create() 37 s->elem_size = elem_size; in stack_create() 55 memcpy(s->data + (s->elem_size * s->num_elems), data, s->elem_size); in stack_push() 67 memcpy(data, s->data + (s->elem_size * s->num_elems), s->elem_size); in stack_pop()
|
/external/strace/ |
D | numa.c | 33 print_node(struct tcb *tcp, void *elem_buf, size_t elem_size, void *data) in print_node() argument 35 if (elem_size < sizeof(kernel_ulong_t)) { in print_node() 36 tprintf("%#0*x", (int) elem_size * 2 + 2, in print_node() 39 tprintf("%#0*" PRI_klx, (int) elem_size * 2 + 2, in print_node() 125 print_addr(struct tcb *tcp, void *elem_buf, size_t elem_size, void *data) in print_addr() argument 129 if (elem_size < sizeof(addr)) { in print_addr() 141 print_status(struct tcb *tcp, void *elem_buf, size_t elem_size, void *data) in print_status() argument 154 print_int(struct tcb *tcp, void *elem_buf, size_t elem_size, void *data) in print_int() argument
|
D | netlink_netlink_diag.c | 75 const size_t elem_size, in print_group() argument 78 if (elem_size < sizeof(kernel_ulong_t)) in print_group() 79 tprintf("%#0*x", (int) elem_size * 2 + 2, in print_group() 82 tprintf("%#0*" PRI_klx, (int) elem_size * 2 + 2, in print_group()
|
D | util.c | 1032 print_int32_array_member(struct tcb *tcp, void *elem_buf, size_t elem_size, in print_int32_array_member() argument 1041 print_uint32_array_member(struct tcb *tcp, void *elem_buf, size_t elem_size, in print_uint32_array_member() argument 1050 print_uint64_array_member(struct tcb *tcp, void *elem_buf, size_t elem_size, in print_uint64_array_member() argument 1094 const size_t elem_size, in print_array_ex() argument 1113 const size_t size = nmemb * elem_size; in print_array_ex() 1116 if (end_addr <= start_addr || size / elem_size != nmemb) { in print_array_ex() 1123 start_addr + elem_size * max_strlen : end_addr; in print_array_ex() 1128 for (cur = start_addr; cur < end_addr; cur += elem_size, idx++) { in print_array_ex() 1132 if (!tfetch_mem_func(tcp, cur, elem_size, elem_buf)) { in print_array_ex() 1170 if (!print_func(tcp, elem_buf, elem_size, opaque_data)) { in print_array_ex()
|
D | kexec.c | 42 print_seg(struct tcb *tcp, void *elem_buf, size_t elem_size, void *data) in print_seg() argument 47 if (elem_size < sizeof(seg_buf)) { in print_seg()
|
D | aio.c | 166 print_iocbp(struct tcb *tcp, void *elem_buf, size_t elem_size, void *data) in print_iocbp() argument 171 if (elem_size < sizeof(kernel_ulong_t)) { in print_iocbp() 203 print_io_event(struct tcb *tcp, void *elem_buf, size_t elem_size, void *data) in print_io_event() argument
|
/external/pdfium/third_party/libtiff/ |
D | 0008-HeapBufferOverflow-ChopUpSingleUncompressedStrip.patch | 9 - if (nmemb && elem_size && !_TIFFIfMultiplicationOverflow(nmemb, elem_size)) 10 + if (nmemb > 0 && elem_size > 0 && !_TIFFIfMultiplicationOverflow(nmemb, elem_size))
|
D | tif_aux.c | 64 tmsize_t nmemb, tmsize_t elem_size, const char* what) in _TIFFCheckRealloc() argument 67 tmsize_t bytes = nmemb * elem_size; in _TIFFCheckRealloc() 72 if (nmemb > 0 && elem_size > 0 && !_TIFFIfMultiplicationOverflow(nmemb, elem_size)) in _TIFFCheckRealloc() 79 what,(long) nmemb, (long) elem_size); in _TIFFCheckRealloc() 86 _TIFFCheckMalloc(TIFF* tif, tmsize_t nmemb, tmsize_t elem_size, const char* what) in _TIFFCheckMalloc() argument 88 return _TIFFCheckRealloc(tif, NULL, nmemb, elem_size, what); in _TIFFCheckMalloc()
|
D | 0006-HeapBufferOverflow-ChopUpSingleUncompressedStrip.patch | 24 - if (nmemb && elem_size && bytes / elem_size == nmemb) 25 + if (nmemb && elem_size && !_TIFFIfMultiplicationOverflow(nmemb, elem_size))
|
/external/protobuf/ruby/ext/google/protobuf_c/ |
D | repeated_field.c | 189 int elem_size = native_slot_size(self->field_type); in RepeatedField_reserve() local 199 self->elements = ALLOC_N(uint8_t, elem_size * self->capacity); in RepeatedField_reserve() 201 memcpy(self->elements, old_elems, self->size * elem_size); in RepeatedField_reserve() 334 size_t elem_size = native_slot_size(field_type); in RepeatedField_dup() local 337 for (int i = 0; i < self->size; i++, off += elem_size) { in RepeatedField_dup() 353 size_t elem_size = native_slot_size(field_type); in RepeatedField_deep_copy() local 356 for (int i = 0; i < self->size; i++, off += elem_size) { in RepeatedField_deep_copy() 377 size_t elem_size = native_slot_size(field_type); in RepeatedField_to_ary() local 380 for (int i = 0; i < self->size; i++, off += elem_size) { in RepeatedField_to_ary() 424 size_t elem_size = native_slot_size(field_type); in RepeatedField_eq() local [all …]
|
/external/compiler-rt/lib/asan/ |
D | asan_malloc_win.cc | 118 void *_recalloc(void *p, size_t n, size_t elem_size) { in _recalloc() argument 120 return calloc(n, elem_size); in _recalloc() 121 const size_t size = n * elem_size; in _recalloc() 122 if (elem_size != 0 && size / elem_size != n) in _recalloc()
|
/external/perfetto/src/traced/probes/ftrace/test/data/android_flounder_lte_LRX16F_3.10.40/events/nvmap/nvmap_ioctl_rw_handle/ |
D | format | 16 field:u32 elem_size; offset:48; size:4; signed:0; 19 …tride=%d, elem_size=%d, count=%d", REC->client, REC->h, REC->is_read, REC->offset, REC->addr, REC-…
|
/external/mesa3d/src/mesa/drivers/dri/radeon/ |
D | radeon_tile.c | 199 const unsigned elem_size = 16; /* sizeof(uint128_t) */ in micro_tile_1_x_1_128bit() local 205 memcpy(dst, src, width * elem_size); in micro_tile_1_x_1_128bit() 206 dst += dst_pitch * elem_size; in micro_tile_1_x_1_128bit() 207 src += src_pitch * elem_size; in micro_tile_1_x_1_128bit() 423 const unsigned elem_size = 16; /* sizeof(uint128_t) */ in micro_untile_1_x_1_128bit() local 429 memcpy(dst, src, width * elem_size); in micro_untile_1_x_1_128bit() 430 dst += dst_pitch * elem_size; in micro_untile_1_x_1_128bit() 431 src += src_pitch * elem_size; in micro_untile_1_x_1_128bit()
|
/external/mesa3d/src/mesa/drivers/dri/r200/ |
D | radeon_tile.c | 199 const unsigned elem_size = 16; /* sizeof(uint128_t) */ in micro_tile_1_x_1_128bit() local 205 memcpy(dst, src, width * elem_size); in micro_tile_1_x_1_128bit() 206 dst += dst_pitch * elem_size; in micro_tile_1_x_1_128bit() 207 src += src_pitch * elem_size; in micro_tile_1_x_1_128bit() 423 const unsigned elem_size = 16; /* sizeof(uint128_t) */ in micro_untile_1_x_1_128bit() local 429 memcpy(dst, src, width * elem_size); in micro_untile_1_x_1_128bit() 430 dst += dst_pitch * elem_size; in micro_untile_1_x_1_128bit() 431 src += src_pitch * elem_size; in micro_untile_1_x_1_128bit()
|
/external/e2fsprogs/lib/ext2fs/ |
D | alloc_tables.c | 40 int elem_size) in flexbg_offset() argument 48 size = rem_grp * elem_size; in flexbg_offset() 58 ext2fs_get_free_blocks2(fs, start_blk, start_blk + size, elem_size, in flexbg_offset() 73 if (ext2fs_get_free_blocks2(fs, start_blk, last_blk, elem_size, in flexbg_offset() 77 if (ext2fs_get_free_blocks2(fs, 0, last_blk, elem_size, bmap, in flexbg_offset()
|
/external/grpc-grpc/src/core/ext/transport/chttp2/transport/ |
D | hpack_encoder.cc | 189 size_t elem_size) { in prepare_space_for_new_elem() argument 191 GPR_ASSERT(elem_size < 65536); in prepare_space_for_new_elem() 193 if (elem_size > c->max_table_size) { in prepare_space_for_new_elem() 203 while (c->table_size + elem_size > c->max_table_size) { in prepare_space_for_new_elem() 208 static_cast<uint16_t>(elem_size); in prepare_space_for_new_elem() 209 c->table_size = static_cast<uint16_t>(c->table_size + elem_size); in prepare_space_for_new_elem() 217 size_t elem_size) {} in add_nothing() argument 305 size_t elem_size) { in add_elem() argument 306 uint32_t new_index = prepare_space_for_new_elem(c, elem_size); in add_elem() 311 size_t elem_size) { in add_key() argument [all …]
|
/external/flatbuffers/java/com/google/flatbuffers/ |
D | Table.java | 133 protected ByteBuffer __vector_as_bytebuffer(int vector_offset, int elem_size) { in __vector_as_bytebuffer() argument 139 bb.limit(vectorstart + __vector_len(o) * elem_size); in __vector_as_bytebuffer() 154 protected ByteBuffer __vector_in_bytebuffer(ByteBuffer bb, int vector_offset, int elem_size) { in __vector_in_bytebuffer() argument 159 bb.limit(vectorstart + __vector_len(o) * elem_size); in __vector_in_bytebuffer()
|
D | FlatBufferBuilder.java | 447 public void startVector(int elem_size, int num_elems, int alignment) { in startVector() argument 450 prep(SIZEOF_INT, elem_size * num_elems); in startVector() 451 prep(alignment, elem_size * num_elems); // Just in case alignment > int. in startVector() 481 public ByteBuffer createUnintializedVector(int elem_size, int num_elems, int alignment) { in createUnintializedVector() argument 482 int length = elem_size * num_elems; in createUnintializedVector() 483 startVector(elem_size, num_elems, alignment); in createUnintializedVector()
|
/external/u-boot/common/ |
D | malloc_simple.c | 54 void *calloc(size_t nmemb, size_t elem_size) in calloc() argument 56 size_t size = nmemb * elem_size; in calloc()
|
/external/tensorflow/tensorflow/contrib/training/python/training/ |
D | device_setter.py | 127 elem_size = output.dtype.size 136 return shape.num_elements() * elem_size
|
/external/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_context.c | 783 const void *elements, unsigned elem_size, in draw_set_indexes() argument 786 assert(elem_size == 0 || in draw_set_indexes() 787 elem_size == 1 || in draw_set_indexes() 788 elem_size == 2 || in draw_set_indexes() 789 elem_size == 4); in draw_set_indexes() 791 draw->pt.user.eltSizeIB = elem_size; in draw_set_indexes() 792 if (elem_size) in draw_set_indexes() 793 draw->pt.user.eltMax = elem_buffer_space / elem_size; in draw_set_indexes()
|
/external/flatbuffers/php/ |
D | Table.php | 102 protected function __vector_as_bytes($vector_offset, $elem_size=1) argument 109 … return substr($this->bb->_buffer, $this->__vector($o), $this->__vector_len($o) * $elem_size);
|
/external/flatbuffers/rust/flatbuffers/src/ |
D | builder.rs | 253 let elem_size = T::size(); in create_vector_direct() localVariable 254 self.align(items.len() * elem_size, T::alignment().max_of(SIZE_UOFFSET)); in create_vector_direct() 258 unsafe { from_raw_parts(ptr, items.len() * elem_size) } in create_vector_direct() 292 let elem_size = T::size(); in create_vector() localVariable 293 self.align(items.len() * elem_size, T::alignment().max_of(SIZE_UOFFSET)); in create_vector()
|
/external/mesa3d/src/vulkan/util/ |
D | vk_util.h | 120 __vk_outarray_next(struct __vk_outarray *a, size_t elem_size) in __vk_outarray_next() argument 130 p = a->data + (*a->filled_len) * elem_size; in __vk_outarray_next()
|
/external/mesa3d/src/egl/main/ |
D | eglarray.c | 181 _eglFlattenArray(_EGLArray *array, void *buffer, EGLint elem_size, EGLint size, in _eglFlattenArray() argument 199 (void *) ((char *) buffer + elem_size * i)); in _eglFlattenArray()
|