Home
last modified time | relevance | path

Searched refs:bim (Results 1 – 25 of 74) sorted by relevance

123

/netbsd/external/gpl3/binutils.old/dist/bfd/
H A Dbfdio.c530 bim->buffer = (bfd_byte *) bfd_realloc_or_free (bim->buffer, newsize); in memory_bwrite()
531 if (bim->buffer == NULL) in memory_bwrite()
533 bim->size = 0; in memory_bwrite()
536 if (newsize > bim->size) in memory_bwrite()
537 memset (bim->buffer + bim->size, 0, newsize - bim->size); in memory_bwrite()
578 bim->size = nwhere; in memory_bseek()
583 bim->buffer = (bfd_byte *) bfd_realloc_or_free (bim->buffer, newsize); in memory_bseek()
587 bim->size = 0; in memory_bseek()
609 if (bim->buffer != NULL) in memory_bclose()
610 free (bim->buffer); in memory_bclose()
[all …]
H A Dpeicode.h92 struct bfd_in_memory * bim; member
637 BFD_ASSERT (vars->data + size < vars->bim->buffer + vars->bim->size); in pe_ILF_make_a_section()
673 BFD_ASSERT (vars->data <= vars->bim->buffer + vars->bim->size); in pe_ILF_make_a_section()
829 vars.bim in pe_ILF_build_a_bfd()
831 if (vars.bim == NULL) in pe_ILF_build_a_bfd()
835 vars.bim->buffer = ptr; in pe_ILF_build_a_bfd()
836 vars.bim->size = ILF_DATA_SIZE; in pe_ILF_build_a_bfd()
1082 abfd->iostream = (void *) vars.bim; in pe_ILF_build_a_bfd()
1136 if (vars.bim->buffer != NULL) in pe_ILF_build_a_bfd()
1137 free (vars.bim->buffer); in pe_ILF_build_a_bfd()
[all …]
/netbsd/external/gpl3/gdb/dist/bfd/
H A Dbfdio.c591 bim->buffer = (bfd_byte *) bfd_realloc_or_free (bim->buffer, newsize); in memory_bwrite()
592 if (bim->buffer == NULL) in memory_bwrite()
594 bim->size = 0; in memory_bwrite()
597 if (newsize > bim->size) in memory_bwrite()
598 memset (bim->buffer + bim->size, 0, newsize - bim->size); in memory_bwrite()
639 bim->size = nwhere; in memory_bseek()
644 bim->buffer = (bfd_byte *) bfd_realloc_or_free (bim->buffer, newsize); in memory_bseek()
648 bim->size = 0; in memory_bseek()
656 abfd->where = bim->size; in memory_bseek()
670 free (bim->buffer); in memory_bclose()
[all …]
H A Dpeicode.h92 struct bfd_in_memory * bim; member
638 BFD_ASSERT (vars->data + size < vars->bim->buffer + vars->bim->size); in pe_ILF_make_a_section()
672 BFD_ASSERT (vars->data <= vars->bim->buffer + vars->bim->size); in pe_ILF_make_a_section()
829 vars.bim in pe_ILF_build_a_bfd()
830 = (struct bfd_in_memory *) bfd_malloc ((bfd_size_type) sizeof (*vars.bim)); in pe_ILF_build_a_bfd()
831 if (vars.bim == NULL) in pe_ILF_build_a_bfd()
835 vars.bim->buffer = ptr; in pe_ILF_build_a_bfd()
836 vars.bim->size = ILF_DATA_SIZE; in pe_ILF_build_a_bfd()
1076 abfd->iostream = (void *) vars.bim; in pe_ILF_build_a_bfd()
1130 free (vars.bim->buffer); in pe_ILF_build_a_bfd()
[all …]
/netbsd/external/gpl3/gdb.old/dist/bfd/
H A Dbfdio.c591 bim->buffer = (bfd_byte *) bfd_realloc_or_free (bim->buffer, newsize); in memory_bwrite()
592 if (bim->buffer == NULL) in memory_bwrite()
594 bim->size = 0; in memory_bwrite()
597 if (newsize > bim->size) in memory_bwrite()
598 memset (bim->buffer + bim->size, 0, newsize - bim->size); in memory_bwrite()
639 bim->size = nwhere; in memory_bseek()
644 bim->buffer = (bfd_byte *) bfd_realloc_or_free (bim->buffer, newsize); in memory_bseek()
648 bim->size = 0; in memory_bseek()
656 abfd->where = bim->size; in memory_bseek()
670 free (bim->buffer); in memory_bclose()
[all …]
H A Dpeicode.h92 struct bfd_in_memory * bim; member
638 BFD_ASSERT (vars->data + size < vars->bim->buffer + vars->bim->size); in pe_ILF_make_a_section()
672 BFD_ASSERT (vars->data <= vars->bim->buffer + vars->bim->size); in pe_ILF_make_a_section()
829 vars.bim in pe_ILF_build_a_bfd()
830 = (struct bfd_in_memory *) bfd_malloc ((bfd_size_type) sizeof (*vars.bim)); in pe_ILF_build_a_bfd()
831 if (vars.bim == NULL) in pe_ILF_build_a_bfd()
835 vars.bim->buffer = ptr; in pe_ILF_build_a_bfd()
836 vars.bim->size = ILF_DATA_SIZE; in pe_ILF_build_a_bfd()
1076 abfd->iostream = (void *) vars.bim; in pe_ILF_build_a_bfd()
1130 free (vars.bim->buffer); in pe_ILF_build_a_bfd()
[all …]
/netbsd/external/gpl3/binutils/dist/bfd/
H A Dbfdio.c618 bim->buffer = (bfd_byte *) bfd_realloc_or_free (bim->buffer, newsize); in memory_bwrite()
619 if (bim->buffer == NULL) in memory_bwrite()
621 bim->size = 0; in memory_bwrite()
624 if (newsize > bim->size) in memory_bwrite()
625 memset (bim->buffer + bim->size, 0, newsize - bim->size); in memory_bwrite()
666 bim->size = nwhere; in memory_bseek()
671 bim->buffer = (bfd_byte *) bfd_realloc_or_free (bim->buffer, newsize); in memory_bseek()
675 bim->size = 0; in memory_bseek()
683 abfd->where = bim->size; in memory_bseek()
697 free (bim->buffer); in memory_bclose()
[all …]
H A Dpeicode.h92 struct bfd_in_memory * bim; member
638 BFD_ASSERT (vars->data + size < vars->bim->buffer + vars->bim->size); in pe_ILF_make_a_section()
672 BFD_ASSERT (vars->data <= vars->bim->buffer + vars->bim->size); in pe_ILF_make_a_section()
839 vars.bim in pe_ILF_build_a_bfd()
840 = (struct bfd_in_memory *) bfd_malloc ((bfd_size_type) sizeof (*vars.bim)); in pe_ILF_build_a_bfd()
841 if (vars.bim == NULL) in pe_ILF_build_a_bfd()
845 vars.bim->buffer = ptr; in pe_ILF_build_a_bfd()
846 vars.bim->size = ILF_DATA_SIZE; in pe_ILF_build_a_bfd()
1086 abfd->iostream = (void *) vars.bim; in pe_ILF_build_a_bfd()
1140 free (vars.bim->buffer); in pe_ILF_build_a_bfd()
[all …]
/netbsd/sys/arch/x86/x86/
H A Dx86_machdep.c686 KASSERT(bim != NULL); in x86_parse_clusters()
687 KASSERT(bim->num > 0); in x86_parse_clusters()
692 bim->num); in x86_parse_clusters()
696 addr = bim->entry[x].addr; in x86_parse_clusters()
697 size = bim->entry[x].size; in x86_parse_clusters()
908 struct btinfo_memmap *bim; in init_x86_clusters() local
929 bim != NULL && bim->num > 0) in init_x86_clusters()
930 x86_parse_clusters(bim); in init_x86_clusters()
938 if (bim != NULL && bim->num > 0) in init_x86_clusters()
939 x86_parse_clusters(bim); in init_x86_clusters()
[all …]
H A Dmultiboot2.c463 struct btinfo_modulelist *bim; in mbi_modules() local
468 if (bim == NULL) in mbi_modules()
471 bim->num = module_count; in mbi_modules()
472 bim->endpa = end; in mbi_modules()
474 bie = (struct bi_modulelist_entry *)(bim + 1); in mbi_modules()
528 struct btinfo_memmap *bim; in mbi_mmap() local
545 if (bim == NULL) in mbi_mmap()
547 bim->num = 0; in mbi_mmap()
556 bie = &bim->entry[bim->num]; in mbi_mmap()
579 bim->num++; in mbi_mmap()
[all …]
H A Defi_machdep.c72 struct btinfo_memmap bim; member
521 if (efi_e820memmap.bim.common.type == BTINFO_MEMMAP) in efi_get_e820memmap()
522 return &efi_e820memmap.bim; in efi_get_e820memmap()
552 entry = &efi_e820memmap.bim.entry[n]; in efi_get_e820memmap()
565 entry = &efi_e820memmap.bim.entry[n]; in efi_get_e820memmap()
575 efi_e820memmap.bim.num = n; in efi_get_e820memmap()
576 efi_e820memmap.bim.common.len = in efi_get_e820memmap()
577 (intptr_t)&efi_e820memmap.bim.entry[n] - (intptr_t)&efi_e820memmap; in efi_get_e820memmap()
578 efi_e820memmap.bim.common.type = BTINFO_MEMMAP; in efi_get_e820memmap()
579 return &efi_e820memmap.bim; in efi_get_e820memmap()
/netbsd/sys/arch/i386/stand/lib/
H A Dexec_multiboot1.c126 struct bi_modulelist_entry *bim; in exec_multiboot1() local
147 bim = (struct bi_modulelist_entry *) in exec_multiboot1()
151 mbm[i].mmo_start = bim->base; in exec_multiboot1()
152 mbm[i].mmo_end = bim->base + bim->len; in exec_multiboot1()
153 mbm[i].mmo_string = (char *)vtophys(bim->path); in exec_multiboot1()
155 bim++; in exec_multiboot1()
/netbsd/external/gpl3/gcc.old/dist/libgcc/config/nds32/isr-library/
H A Dreset_4b.S75 lmw.bim $r1, [$sp], $r2, #0x0 /* Restore extra $r2 to keep
81 lmw.bim $r15, [$sp], $r15, #0xf
82 lmw.bim $r0, [$sp], $r10, #0x0
85 lmw.bim $r0, [$sp], $r27, #0xf
H A Dreset.S70 lmw.bim $r1, [$sp], $r2, #0x0 /* Restore extra $r2 to keep stack 8-byte alignment. */
75 lmw.bim $r15, [$sp], $r15, #0xf
76 lmw.bim $r0, [$sp], $r10, #0x0
79 lmw.bim $r0, [$sp], $r27, #0xf
H A Drestore_all.inc29 lmw.bim $r1, [$sp], $r2, #0x0 /* Restore IPC, IPSW. */
36 lmw.bim $r0, [$sp], $r10, #0x0 /* Restore all regs. */
37 lmw.bim $r15, [$sp], $r15, #0xf
39 lmw.bim $r0, [$sp], $r27, #0xf /* Restore all regs. */
H A Drestore_partial.inc30 lmw.bim $r1, [$sp], $r2, #0x0 /* Restore IPC, IPSW. */
37 lmw.bim $r0, [$sp], $r5, #0x0 /* Restore all regs. */
39 lmw.bim $r15, [$sp], $r15, #0x2
41 lmw.bim $r15, [$sp], $r27, #0x2 /* Restore all regs. */
H A Drestore_usr_regs.inc28 lmw.bim $r1, [$sp], $r4, #0x0
34 lmw.bim $r1, [$sp], $r2, #0x0
37 lmw.bim $r1, [$sp], $r4, #0x0
/netbsd/external/gpl3/gcc/dist/libgcc/config/nds32/isr-library/
H A Dreset_4b.S75 lmw.bim $r1, [$sp], $r2, #0x0 /* Restore extra $r2 to keep
81 lmw.bim $r15, [$sp], $r15, #0xf
82 lmw.bim $r0, [$sp], $r10, #0x0
85 lmw.bim $r0, [$sp], $r27, #0xf
H A Dreset.S70 lmw.bim $r1, [$sp], $r2, #0x0 /* Restore extra $r2 to keep stack 8-byte alignment. */
75 lmw.bim $r15, [$sp], $r15, #0xf
76 lmw.bim $r0, [$sp], $r10, #0x0
79 lmw.bim $r0, [$sp], $r27, #0xf
H A Drestore_all.inc29 lmw.bim $r1, [$sp], $r2, #0x0 /* Restore IPC, IPSW. */
36 lmw.bim $r0, [$sp], $r10, #0x0 /* Restore all regs. */
37 lmw.bim $r15, [$sp], $r15, #0xf
39 lmw.bim $r0, [$sp], $r27, #0xf /* Restore all regs. */
H A Drestore_partial.inc30 lmw.bim $r1, [$sp], $r2, #0x0 /* Restore IPC, IPSW. */
37 lmw.bim $r0, [$sp], $r5, #0x0 /* Restore all regs. */
39 lmw.bim $r15, [$sp], $r15, #0x2
41 lmw.bim $r15, [$sp], $r27, #0x2 /* Restore all regs. */
H A Drestore_usr_regs.inc28 lmw.bim $r1, [$sp], $r4, #0x0
34 lmw.bim $r1, [$sp], $r2, #0x0
37 lmw.bim $r1, [$sp], $r4, #0x0
/netbsd/sys/arch/x86/acpi/
H A Dacpi_machdep.c487 struct btinfo_memmap *bim; in acpi_md_mcfg_validate() local
494 bim = efi_get_e820memmap(); in acpi_md_mcfg_validate()
497 bim = lookup_bootinfo(BTINFO_MEMMAP); in acpi_md_mcfg_validate()
498 if (bim == NULL) in acpi_md_mcfg_validate()
503 for (i = 0; i < bim->num; i++) { in acpi_md_mcfg_validate()
504 mapaddr = bim->entry[i].addr; in acpi_md_mcfg_validate()
505 mapsize = bim->entry[i].size; in acpi_md_mcfg_validate()
506 type = bim->entry[i].type; in acpi_md_mcfg_validate()
/netbsd/sys/arch/cobalt/cobalt/
H A Dmachdep.c149 mach_init(int32_t memsize32, u_int bim, int32_t bip32) in mach_init() argument
202 if (bim == BOOTINFO_MAGIC) { in mach_init()
209 bim = (uintptr_t)bip; in mach_init()
212 bim = bi_magic->magic; in mach_init()
269 printf("%s: magic=%#x bip=%p\n", bi_msg, bim, bip); in mach_init()
/netbsd/sys/arch/mmeye/mmeye/
H A Dmachdep.c240 initSH3(void *pc, u_int bim, int32_t bip) /* XXX return address */ in initSH3() argument
252 if (bim == BOOTINFO_MAGIC) { in initSH3()
259 bim = (uintptr_t)bip; in initSH3()
262 bim = bi_magic->magic; in initSH3()
298 printf("%s: magic=%#x\n", bi_msg, bim); in initSH3()

123