Lines Matching refs:amt

215   bfd_size_type amt = sizeof (struct artdata);  in _bfd_generic_mkarchive()  local
217 abfd->tdata.aout_ar_data = (struct artdata *) bfd_zalloc (abfd, amt); in _bfd_generic_mkarchive()
795 bfd_size_type amt; in bfd_generic_archive_p() local
813 amt = sizeof (struct artdata); in bfd_generic_archive_p()
814 bfd_ardata (abfd) = (struct artdata *) bfd_zalloc (abfd, amt); in bfd_generic_archive_p()
897 bfd_size_type parsed_size, amt; in do_slurp_bsd_armap() local
934 amt = ardata->symdef_count * sizeof (carsym); in do_slurp_bsd_armap()
935 ardata->symdefs = (struct carsym *) bfd_alloc (abfd, amt); in do_slurp_bsd_armap()
1161 bfd_size_type amt; in bfd_slurp_bsd_armap_f2() local
1198 amt = mapdata->parsed_size; in bfd_slurp_bsd_armap_f2()
1201 raw_armap = (bfd_byte *) bfd_zalloc (abfd, amt); in bfd_slurp_bsd_armap_f2()
1205 if (bfd_bread (raw_armap, amt, abfd) != amt) in bfd_slurp_bsd_armap_f2()
1226 amt = ardata->symdef_count * BSD_SYMDEF_SIZE; in bfd_slurp_bsd_armap_f2()
1227 if (amt > left) in bfd_slurp_bsd_armap_f2()
1230 ardata->symdefs = (struct carsym *) bfd_alloc (abfd, amt); in bfd_slurp_bsd_armap_f2()
1269 bfd_size_type amt; in _bfd_slurp_extended_name_table() local
1293 amt = namedata->parsed_size; in _bfd_slurp_extended_name_table()
1294 if (amt + 1 == 0) in _bfd_slurp_extended_name_table()
1297 bfd_ardata (abfd)->extended_names_size = amt; in _bfd_slurp_extended_name_table()
1298 bfd_ardata (abfd)->extended_names = (char *) bfd_zalloc (abfd, amt + 1); in _bfd_slurp_extended_name_table()
1308 if (bfd_bread (bfd_ardata (abfd)->extended_names, amt, abfd) != amt) in _bfd_slurp_extended_name_table()
1881 bfd_size_type amt; in bfd_ar_hdr_from_filesystem() local
1909 amt = sizeof (struct ar_hdr) + sizeof (struct areltdata); in bfd_ar_hdr_from_filesystem()
1910 ared = (struct areltdata *) bfd_zmalloc (amt); in bfd_ar_hdr_from_filesystem()
2216 unsigned int amt = DEFAULT_BUFFERSIZE; in _bfd_write_archive_contents() local
2218 if (amt > remaining) in _bfd_write_archive_contents()
2219 amt = remaining; in _bfd_write_archive_contents()
2221 if (bfd_bread (buffer, amt, current) != amt) in _bfd_write_archive_contents()
2227 if (bfd_bwrite (buffer, amt, arch) != amt) in _bfd_write_archive_contents()
2229 remaining -= amt; in _bfd_write_archive_contents()
2280 bfd_size_type amt; in _bfd_compute_and_write_armap() local
2287 amt = orl_max * sizeof (struct orl); in _bfd_compute_and_write_armap()
2288 map = (struct orl *) bfd_malloc (amt); in _bfd_compute_and_write_armap()
2355 amt = orl_max * sizeof (struct orl); in _bfd_compute_and_write_armap()
2356 new_map = (struct orl *) bfd_realloc (map, amt); in _bfd_compute_and_write_armap()
2368 amt = sizeof (char *); in _bfd_compute_and_write_armap()
2369 map[orl_count].name = (char **) bfd_alloc (arch, amt); in _bfd_compute_and_write_armap()