Home
last modified time | relevance | path

Searched refs:d_size (Results 1 – 25 of 108) sorted by relevance

12345

/external/libnl/lib/
Ddata.c64 data->d_size = size; in nl_data_alloc()
97 return nl_data_alloc(src->d_data, src->d_size); in nl_data_clone()
114 data->d_data = realloc(data->d_data, data->d_size + size); in nl_data_append()
119 memcpy(data->d_data + data->d_size, buf, size); in nl_data_append()
121 memset(data->d_data + data->d_size, 0, size); in nl_data_append()
123 data->d_size += size; in nl_data_append()
155 return data->d_size > 0 ? data->d_data : NULL; in nl_data_get()
165 return data->d_size; in nl_data_get_size()
/external/elfutils/libelf/
Delf32_xlatetom.c60 && src->d_size % recsize != 0) in elfw2()
67 if (src->d_size > dest->d_size) in elfw2()
96 memmove (dest->d_buf, src->d_buf, src->d_size); in elfw2()
104 (*fctp) (dest->d_buf, src->d_buf, src->d_size, 0); in elfw2()
110 dest->d_size = src->d_size; in elfw2()
Delf32_xlatetof.c55 if (src->d_size % recsize != 0) in elfw2()
62 if (src->d_size > dest->d_size) in elfw2()
91 memmove (dest->d_buf, src->d_buf, src->d_size); in elfw2()
99 (*fctp) (dest->d_buf, src->d_buf, src->d_size, 1); in elfw2()
105 dest->d_size = src->d_size; in elfw2()
Dgelf_getnote.c61 if (unlikely (offset > data->d_size in gelf_getnote()
62 || data->d_size - offset < sizeof (GElf_Nhdr))) in gelf_getnote()
72 if (offset > data->d_size) in gelf_getnote()
84 if (offset > data->d_size) in gelf_getnote()
98 if (unlikely (offset > data->d_size in gelf_getnote()
99 || data->d_size - offset < descsz in gelf_getnote()
Delf32_updatefile.c281 void *p = malloc (scn->data_list.data.d.d_size); in __elfw2()
290 scn->data_list.data.d.d_size); in __elfw2()
321 assert (dl->data.d.d_size <= (shdr->sh_size in __elfw2()
344 && dl->data.d.d_size != 0 in __elfw2()
358 dl->data.d.d_size, 1); in __elfw2()
364 size_t size = dl->data.d.d_size; in __elfw2()
378 last_position += dl->data.d.d_size; in __elfw2()
380 else if (dl->data.d.d_size != 0) in __elfw2()
383 dl->data.d.d_size); in __elfw2()
384 last_position += dl->data.d.d_size; in __elfw2()
[all …]
Delf_compress.c88 && data->d_size <= hsize + 5 + 6) in __libelf_compress()
92 *orig_size = data->d_size; in __libelf_compress()
97 size_t block = (data->d_size / 8) + hsize; in __libelf_compress()
130 bool convert = ei_data != MY_ELFDATA && data->d_size > 0; in __libelf_compress()
135 cdata.d_buf = malloc (data->d_size); in __libelf_compress()
145 z.avail_in = cdata.d_size; in __libelf_compress()
153 *orig_size += data->d_size; in __libelf_compress()
300 size_t size_in = data->d_size - hsize; in __libelf_decompress_elf()
318 scn->rawdata.d.d_size = size; in __libelf_reset_rawdata()
/external/elfutils/libdwelf/
Ddwelf_elf_gnu_debuglink.c68 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()
Ddwelf_dwarf_gnu_debugaltlink.c46 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/libebl/
Deblobjnote.c83 .d_buf = (void *) desc, .d_size = addrs_size in ebl_object_note()
89 .d_buf = &addrs, .d_size = addrs_size in ebl_object_note()
166 .d_buf = (void *) desc, .d_size = descsz in ebl_object_note()
172 .d_buf = &addrs, .d_size = descsz in ebl_object_note()
331 .d_size = 8, in ebl_object_note()
338 .d_size = descsz, in ebl_object_note()
380 in.d_size = prop.pr_datasz; in ebl_object_note()
381 out.d_size = prop.pr_datasz; in ebl_object_note()
426 in.d_size = 4; in ebl_object_note()
427 out.d_size = 4; in ebl_object_note()
[all …]
/external/elfutils/src/
Dstrip.c570 if (offset > tdata->d_size in remove_debug_relocations()
571 || tdata->d_size - offset < size) in remove_debug_relocations()
591 .d_size = size, in remove_debug_relocations()
598 .d_size = size, in remove_debug_relocations()
696 shdr->sh_size = reldata->d_size = nrels * shdr->sh_entsize; in remove_debug_relocations()
1251 || shdr_info[cnt].data->d_size < sizeof (Elf32_Word)) in handle_elf()
1258 inner < shdr_info[cnt].data->d_size / sizeof (Elf32_Word); in handle_elf()
1336 && shdr_info[idx].data->d_size >= sizeof (Elf32_Word)); in handle_elf()
1390 in < shdr_info[cnt].data->d_size / sizeof (Elf32_Word); in handle_elf()
1446 inner < shdr_info[cnt].data->d_size / elsize; in handle_elf()
[all …]
Delfcmp.c433 while (off1 < data1->d_size in main()
440 if (off2 >= data2->d_size) in main()
510 if (off2 < data2->d_size) in main()
524 || (data1->d_buf != NULL || data1->d_size == 0)); in main()
526 || (data2->d_buf != NULL || data1->d_size == 0)); in main()
528 if (unlikely (data1->d_size != data2->d_size in main()
530 && data1->d_size != 0 in main()
532 data1->d_size) != 0))) in main()
536 && data1->d_size == data2->d_size in main()
845 if (data1->d_size != (2 + nbucket + nchain) * sizeof hash1[0] \ in hash_content_equivalent()
/external/elfutils/libdwfl/
Delf-from-memory.c118 .d_size = sizeof ehdr, in elf_from_remote_memory()
130 xlatefrom.d_size = sizeof (Elf32_Ehdr); in elf_from_remote_memory()
151 xlatefrom.d_size = sizeof (Elf64_Ehdr); in elf_from_remote_memory()
172 xlatefrom.d_size = phnum * phentsize; in elf_from_remote_memory()
216 xlateto.d_size = phdrsp_bytes; in elf_from_remote_memory()
344 xlatefrom.d_size = xlateto.d_size = sizeof ehdr.e32; in elf_from_remote_memory()
371 xlatefrom.d_size = xlateto.d_size = sizeof ehdr.e64; in elf_from_remote_memory()
Dlink_map.c203 if (unlikely (data->d_size < vaddr)) in integrated_memory_callback()
208 size_t avail = data->d_size - vaddr; in integrated_memory_callback()
606 const size_t n = data->d_size / entsize; in consider_executable()
794 .d_size = phnum * phent, in dwfl_link_map_report()
798 &in.d_size, phdr, phnum * phent, in dwfl_link_map_report()
849 in.d_size = phnum * phent; in dwfl_link_map_report()
850 in.d_buf = malloc (in.d_size); in dwfl_link_map_report()
858 ssize_t nread = pread_retry (fd, in.d_buf, in.d_size, off); in dwfl_link_map_report()
861 if (nread != (ssize_t) in.d_size) in dwfl_link_map_report()
890 .d_size = phnum * phent, in dwfl_link_map_report()
[all …]
/external/elfutils/tests/
Daddsections.c116 size_t new_shstrtab_size = (shstrtab_data->d_size in add_sections()
125 memcpy (new_shstrtab_buf, shstrtab_data->d_buf, shstrtab_data->d_size); in add_sections()
126 size_t extra_idx = shstrtab_data->d_size; in add_sections()
172 data->d_size = strlen ("extra") + 1; in add_sections()
192 shdr->sh_size = data->d_size; in add_sections()
219 new_shstrtab_data->d_size = new_shstrtab_size; in add_sections()
Delfputzdata.c103 if (d->d_size != orig_size) in main()
108 char *orig_buf = malloc (d->d_size); in main()
156 if (d->d_size != new_size) in main()
207 if (d->d_size != newer_size) in main()
Dfillfile.c54 data->d_size = size; in add_strtab_entry()
171 data->d_size = 5; in add_data_section()
187 if (data->d_size != 5 || memcmp (data->d_buf, buf, 5) != 0) in check_data()
190 for (size_t i = 0; i < data->d_size; i++) in check_data()
192 i < data->d_size - 1 ? "," : ""); in check_data()
314 if (data != NULL && data->d_buf != NULL && data->d_size == 0) in check_elf()
Dnewdata.c58 data->d_size = len; in add_section_data()
210 if (d == NULL || i * len >= d->d_off + d->d_size) in check_section_data()
221 ", d_size: %zd)\n", i, d->d_off, d->d_size); in check_section_data()
328 if (data->d_size != DATA_LEN) in check_elf()
330 printf ("Unexpected Elf_Data: %zd", data->d_size); in check_elf()
/external/elfutils/libdw/
Dlibdw_findcu.c72 size_t dbg1_size = dbg1_data->d_size; in __libdw_finddbg_cb()
76 size_t dbg2_size = dbg2_data->d_size; in __libdw_finddbg_cb()
143 if (unlikely (*offsetp > data->d_size)) in __libdw_intern_next_unit()
144 *offsetp = data->d_size; in __libdw_intern_next_unit()
269 + dbg->sectiondata[IDX_debug_info]->d_size)) in __libdw_findcu_addr()
277 + dbg->sectiondata[IDX_debug_types]->d_size)) in __libdw_findcu_addr()
299 Elf_Data fake_data = { .d_buf = addr, .d_size = 0 }; in __libdw_find_split_dbg_addr()
Dencoded-value.h63 while (end < (uint8_t *) data->d_buf + data->d_size) in encoded_value_size()
89 const unsigned char *endp = cache->data->d.d_buf + cache->data->d.d_size; in __libdw_cfi_read_address_inc()
157 const unsigned char *endp = cache->data->d.d_buf + cache->data->d.d_size; in read_encoded_value()
220 if (unlikely (cache->data->d.d_size < ptrsize in read_encoded_value()
221 || *result > (cache->data->d.d_size - ptrsize))) in read_encoded_value()
Ddwarf_formstring.c150 if (cu->offset_size > dbg->sectiondata[IDX_debug_str_offsets]->d_size) in dwarf_formstring()
158 if (str_off > (dbg->sectiondata[IDX_debug_str_offsets]->d_size in dwarf_formstring()
162 size_t max_idx = (dbg->sectiondata[IDX_debug_str_offsets]->d_size in dwarf_formstring()
174 if (off > dbg->sectiondata[IDX_debug_str]->d_size) in dwarf_formstring()
Ddwarf_getpubnames.c52 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()
159 >= dbg->sectiondata[IDX_debug_pubnames]->d_size))) in dwarf_getpubnames()
189 = startp + dbg->sectiondata[IDX_debug_pubnames]->d_size; in dwarf_getpubnames()
Ddwarf_formaddr.c53 if (cu->address_size > dbg->sectiondata[IDX_debug_addr]->d_size) in __libdw_addrx()
60 if (addr_off > (dbg->sectiondata[IDX_debug_addr]->d_size in __libdw_addrx()
65 if (idx > (dbg->sectiondata[IDX_debug_addr]->d_size in __libdw_addrx()
Ddwarf_getabbrev.c47 if (offset >= dbg->sectiondata[IDX_debug_abbrev]->d_size) in __libdw_getabbrev()
77 + dbg->sectiondata[IDX_debug_abbrev]->d_size); in __libdw_getabbrev()
171 if (offset >= data->d_size - abbrev_offset) in dwarf_getabbrev()
/external/elfutils/backends/
Dppc64_resolve_sym.c47 && *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/u-boot/fs/ubifs/
Drecovery.c1248 loff_t d_size; member
1262 loff_t d_size, int exists) in add_ino() argument
1282 e->d_size = d_size; in add_ino()
1396 if (new_size > e->d_size) in ubifs_recover_size_accum()
1397 e->d_size = new_size; in ubifs_recover_size_accum()
1407 e->d_size = new_size; in ubifs_recover_size_accum()
1438 if (i_size >= e->d_size) in fix_size_in_place()
1446 ino->size = cpu_to_le64(e->d_size); in fix_size_in_place()
1461 (unsigned long)e->inum, lnum, offs, i_size, e->d_size); in fix_size_in_place()
1466 (unsigned long)e->inum, e->i_size, e->d_size, err); in fix_size_in_place()
[all …]

12345