/external/libnl/lib/ |
D | data.c | 52 data->d_size = size; in nl_data_alloc() 85 return nl_data_alloc(src->d_data, src->d_size); in nl_data_clone() 105 data->d_data = realloc(data->d_data, data->d_size + size); in nl_data_append() 110 memcpy(data->d_data + data->d_size, buf, size); in nl_data_append() 112 memset(data->d_data + data->d_size, 0, size); in nl_data_append() 114 data->d_size += size; in nl_data_append() 146 return data->d_size > 0 ? data->d_data : NULL; in nl_data_get() 156 return data->d_size; in nl_data_get_size()
|
/external/elfutils/src/libelf/ |
D | elf32_xlatetof.c | 61 if (src->d_size % recsize != 0) 68 if (src->d_size > dest->d_size) 97 memmove (dest->d_buf, src->d_buf, src->d_size); 113 (*fctp) (dest->d_buf, src->d_buf, src->d_size, 1); 119 dest->d_size = src->d_size;
|
D | elf32_xlatetom.c | 66 && src->d_size % recsize != 0) 73 if (src->d_size > dest->d_size) 102 memmove (dest->d_buf, src->d_buf, src->d_size); 118 (*fctp) (dest->d_buf, src->d_buf, src->d_size, 0); 124 dest->d_size = src->d_size;
|
D | gelf_getnote.c | 65 if (unlikely (offset > data->d_size 66 || data->d_size - offset < sizeof (GElf_Nhdr))) 80 if (unlikely (offset > data->d_size 81 || data->d_size - offset < namesz 88 if (unlikely (offset > data->d_size 89 || data->d_size - offset < descsz
|
D | elf32_updatefile.c | 262 void *p = malloc (scn->data_list.data.d.d_size); in __elfw2() 270 scn->data_list.data.d.d_size); in __elfw2() 322 assert (dl->data.d.d_size <= (shdr->sh_size in __elfw2() 356 dl->data.d.d_size, 1); in __elfw2() 358 last_position += dl->data.d.d_size; in __elfw2() 363 dl->data.d.d_size); in __elfw2() 368 last_position += dl->data.d.d_size; in __elfw2() 370 assert (scn_start + dl->data.d.d_off + dl->data.d.d_size in __elfw2() 714 if (dl->data.d.d_size > MAX_TMPBUF) in __elfw2() 716 buf = malloc (dl->data.d.d_size); in __elfw2() [all …]
|
D | gelf_getauxv.c | 74 if (unlikely ((ndx + 1) * sizeof (Elf32_auxv_t) > data_scn->d.d_size)) 94 if (unlikely ((ndx + 1) * sizeof (GElf_auxv_t) > data_scn->d.d_size))
|
D | gelf_update_auxv.c | 82 if (unlikely ((ndx + 1) * sizeof (Elf32_auxv_t) > data_scn->d.d_size)) 96 if (unlikely ((ndx + 1) * sizeof (Elf64_auxv_t) > data_scn->d.d_size))
|
/external/elfutils/src/libdwelf/ |
D | dwelf_elf_gnu_debuglink.c | 68 if (rawdata->d_size <= sizeof *crc in dwelf_elf_gnu_debuglink() 69 || memchr (rawdata->d_buf, '\0', rawdata->d_size - sizeof *crc) == NULL) in dwelf_elf_gnu_debuglink() 76 .d_size = sizeof *crc, in dwelf_elf_gnu_debuglink() 82 .d_buf = rawdata->d_buf + rawdata->d_size - sizeof *crc, in dwelf_elf_gnu_debuglink() 83 .d_size = sizeof *crc, in dwelf_elf_gnu_debuglink()
|
D | dwelf_dwarf_gnu_debugaltlink.c | 46 const void *ptr = memchr (data->d_buf, '\0', data->d_size); in dwelf_dwarf_gnu_debugaltlink() 52 size_t build_id_len = data->d_size - (ptr - data->d_buf + 1); in dwelf_dwarf_gnu_debugaltlink()
|
/external/elfutils/src/libdw/ |
D | dwarf_begin_elf.c | 131 if (data != NULL && data->d_size != 0) in check_section() 149 if (data != NULL && data->d_size != 0) in check_section() 154 if (unlikely (data->d_size < 4 + 8) in check_section() 175 zdata->d_size = size; in check_section() 182 .avail_in = data->d_size - 4 - 8, in check_section() 184 .avail_out = zdata->d_size in check_section() 189 z.next_out = zdata->d_buf + (zdata->d_size - z.avail_out); in check_section() 256 + result->sectiondata[IDX_debug_loc]->d_size); in valid_p() 295 for (cnt = 1; cnt * sizeof (Elf32_Word) <= data->d_size; ++cnt) in scngrp_read()
|
D | dwarf_getpubnames.c | 52 unsigned char *endp = readp + dbg->sectiondata[IDX_debug_pubnames]->d_size; in get_offsets() 91 size_t max_size = dbg->sectiondata[IDX_debug_pubnames]->d_size; in get_offsets() 160 >= dbg->sectiondata[IDX_debug_pubnames]->d_size))) 190 = startp + dbg->sectiondata[IDX_debug_pubnames]->d_size;
|
D | dwarf_getstring.c | 48 || offset >= dbg->sectiondata[IDX_debug_str]->d_size) 58 dbg->sectiondata[IDX_debug_str]->d_size - offset);
|
/external/elfutils/src/libdwfl/ |
D | elf-from-memory.c | 112 .d_size = sizeof ehdr, in elf_from_remote_memory() 124 xlatefrom.d_size = sizeof (Elf32_Ehdr); in elf_from_remote_memory() 140 xlatefrom.d_size = sizeof (Elf64_Ehdr); in elf_from_remote_memory() 160 xlatefrom.d_size = phnum * phentsize; in elf_from_remote_memory() 194 xlateto.d_size = sizeof phdrs; in elf_from_remote_memory() 317 xlatefrom.d_size = xlateto.d_size = sizeof ehdr.e32; in elf_from_remote_memory() 344 xlatefrom.d_size = xlateto.d_size = sizeof ehdr.e64; in elf_from_remote_memory()
|
D | link_map.c | 200 if (unlikely (data->d_size < vaddr)) in integrated_memory_callback() 205 size_t avail = data->d_size - vaddr; in integrated_memory_callback() 604 const size_t n = data->d_size / entsize; in consider_executable() 788 .d_size = phnum * phent, in dwfl_link_map_report() 792 &in.d_size, phdr, phnum * phent, in dwfl_link_map_report() 837 assert (in.d_size == phnum * phent); in dwfl_link_map_report() 838 in.d_buf = malloc (in.d_size); in dwfl_link_map_report() 846 ssize_t nread = pread_retry (fd, in.d_buf, in.d_size, off); in dwfl_link_map_report() 849 if (nread != (ssize_t) in.d_size) in dwfl_link_map_report() 869 .d_size = phnum * phent, in dwfl_link_map_report() [all …]
|
D | dwfl_segment_report_module.c | 347 .d_size = sizeof ehdr, in dwfl_segment_report_module() 356 xlatefrom.d_size = sizeof (Elf32_Ehdr); in dwfl_segment_report_module() 369 xlatefrom.d_size = sizeof (Elf64_Ehdr); in dwfl_segment_report_module() 393 xlatefrom.d_size = phnum * phentsize; in dwfl_segment_report_module() 398 start + phoff, xlatefrom.d_size)) in dwfl_segment_report_module() 410 xlateto.d_size = sizeof phdrs; in dwfl_segment_report_module() 460 xlatefrom.d_size = filesz; in dwfl_segment_report_module() 462 xlateto.d_size = filesz; in dwfl_segment_report_module() 751 xlatefrom.d_size = dyn_filesz; in dwfl_segment_report_module() 753 xlateto.d_size = sizeof dyn; in dwfl_segment_report_module()
|
D | dwfl_module_getdwarf.c | 297 .d_size = sizeof ehdr, in find_prelink_address_sync() 302 src.d_size = gelf_fsize (mod->main.elf, ELF_T_EHDR, 1, EV_CURRENT); in find_prelink_address_sync() 334 || unlikely (undodata->d_size != (src.d_size in find_prelink_address_sync() 365 src.d_buf += src.d_size; in find_prelink_address_sync() 367 src.d_size = phnum * phentsize; in find_prelink_address_sync() 377 dst.d_size = sizeof phdr; in find_prelink_address_sync() 404 src.d_buf += src.d_size; in find_prelink_address_sync() 406 src.d_size = gelf_fsize (mod->main.elf, ELF_T_SHDR, shnum - 1, EV_CURRENT); in find_prelink_address_sync() 414 dst.d_size = sizeof shdr; in find_prelink_address_sync() 687 size_t n = data->d_size / gelf_fsize (mod->main.elf, in find_dynsym() [all …]
|
D | relocate.c | 213 if (unlikely (sym->st_name >= symtab->symstrdata->d_size)) in resolve_symbol() 247 if (unlikely (sym->st_name >= m->symstrdata->d_size)) in resolve_symbol() 415 if (offset > tdata->d_size || tdata->d_size - offset < size) in relocate_section() 425 .d_size = size, in relocate_section() 432 .d_size = size, in relocate_section() 611 shdr->sh_size = reldata->d_size = nrels * sh_entsize; in relocate_section()
|
/external/elfutils/src/src/ |
D | strip.c | 651 inner < shdr_info[cnt].data->d_size / sizeof (Elf32_Word); in handle_elf() 769 in < shdr_info[cnt].data->d_size / sizeof (Elf32_Word); in handle_elf() 821 inner < shdr_info[cnt].data->d_size / elsize; in handle_elf() 976 debugdata->d_buf = memcpy (xmalloc (debugdata->d_size), in handle_elf() 977 debugdata->d_buf, debugdata->d_size); in handle_elf() 1077 shdr_info[cnt].shdr.sh_size = shdr_info[cnt].data->d_size in handle_elf() 1079 debuglink_buf = xcalloc (1, shdr_info[cnt].data->d_size); in handle_elf() 1089 debuglink_crc_data.d_size = 4; in handle_elf() 1133 shdr_info[cnt].shdr.sh_size = shstrtab_data->d_size; in handle_elf() 1160 inner < shdr_info[cnt].data->d_size / sizeof (Elf32_Word); in handle_elf() [all …]
|
D | elfcmp.c | 413 while (off1 < data1->d_size in main() 419 if (off2 >= data2->d_size) in main() 488 if (off2 < data2->d_size) in main() 502 || (data1->d_buf != NULL || data1->d_size == 0)); in main() 504 || (data2->d_buf != NULL || data1->d_size == 0)); in main() 506 if (unlikely (data1->d_size != data2->d_size in main() 509 data1->d_size) != 0))) in main() 513 && data1->d_size == data2->d_size in main() 834 if (data1->d_size != (2 + nbucket + nchain) * sizeof hash1[0] \ in hash_content_equivalent()
|
D | i386_ld.c | 207 data->d_size = (1 + statep->nplt) * PLT_ENTRY_SIZE; in elf_i386_initialize_plt() 208 data->d_buf = xcalloc (1, data->d_size); in elf_i386_initialize_plt() 231 data->d_size = size; in elf_i386_initialize_pltrel() 251 data->d_size = size; in elf_i386_initialize_got() 276 data->d_size = size; in elf_i386_initialize_gotplt() 426 assert (pltdata->d_size >= PLT_ENTRY_SIZE); in elf_i386_finalize_plt() 460 assert ((3 + pltidx) * sizeof (Elf32_Word) <= data->d_size); in elf_i386_finalize_plt() 486 assert (pltdata->d_size >= (1 + pltidx) * PLT_ENTRY_SIZE); in elf_i386_finalize_plt() 503 assert (pltidx * sizeof (Elf32_Rel) <= reldata->d_size); in elf_i386_finalize_plt()
|
/external/opencv/cxcore/src/ |
D | cxmatmul.cpp | 131 CvSize a_size, CvSize d_size, \ 134 int i, j, k, n = a_size.width, m = d_size.width, drows = d_size.height; \ 175 b_buf = (arrtype*)cvStackAlloc(d_size.width*sizeof(b_buf[0]) ); \ 176 for( j = 0; j < d_size.width; j++ ) \ 186 for( j = 0; j <= d_size.width - 2; j += 2, c_data += 2*c_step1 )\ 202 for( ; j < d_size.width; j++, c_data += c_step1 ) \ 229 for( j = 0; j < d_size.width; j++, b_data += b_step, \ 253 else if( d_size.width*sizeof(d_data[0]) <= 1600 ) \ 376 CvSize a_size, CvSize d_size, int flags ) \ 378 int i, j, k, n = a_size.width, m = d_size.width; \ [all …]
|
/external/elfutils/src/backends/ |
D | ppc64_resolve_sym.c | 47 && *addr + sizeof (Elf64_Addr) <= ebl->fd_addr + ebl->fd_data->d_size) in ppc64_resolve_sym_value() 55 opd_out.d_size = opd_in.d_size = sizeof (Elf64_Addr); in ppc64_resolve_sym_value()
|
/external/elfutils/src/libebl/ |
D | eblobjnote.c | 80 .d_buf = (void *) desc, .d_size = addrs_size 86 .d_buf = &addrs, .d_size = addrs_size 165 .d_size = descsz, 173 .d_size = descsz,
|
/external/elfutils/src/libasm/ |
D | asm_end.c | 123 newdata->d_size = content->len; in binary_end() 172 data->d_size = gelf_fsize (ctx->out.elf, ELF_T_SYM, in binary_end() 174 symtab = malloc (data->d_size); in binary_end() 248 xndxdata->d_size = elf32_fsize (ELF_T_WORD, in binary_end() 251 xshndx = xndxdata->d_buf = calloc (1, xndxdata->d_size); in binary_end() 337 data->d_size = elf32_fsize (ELF_T_WORD, runp->nmembers + 1, in binary_end() 339 grpdata = data->d_buf = malloc (data->d_size); in binary_end()
|
/external/elfutils/src/tests/ |
D | update4.c | 148 data->d_size = 5; in main() 184 data->d_size = 5; in main() 220 data->d_size = 5; in main() 257 data->d_size = 100; in main()
|