Home
last modified time | relevance | path

Searched refs:smaplen (Results 1 – 3 of 3) sorted by relevance

/illumos-gate/usr/src/boot/i386/libi386/
H A Dbiossmap.c53 static u_int smaplen; variable
92 smaplen = n; in bios_getsmap()
94 if (smaplen > 0) { in bios_getsmap()
95 smapbase = malloc(smaplen * sizeof(*smapbase)); in bios_getsmap()
101 if (smaplen == x) { in bios_getsmap()
102 smapattr = malloc(smaplen * sizeof(*smapattr)); in bios_getsmap()
125 if (smapbase == NULL || smaplen == 0) in bios_addsmapdata()
127 size = smaplen * sizeof(*smapbase); in bios_addsmapdata()
130 size = smaplen * sizeof(*smapattr); in bios_addsmapdata()
142 if (smapbase == NULL || smaplen == 0) in command_smap()
[all …]
H A Di386_copy.c73 smap_find(struct bios_smap *smap, int smaplen, vm_offset_t addr, size_t size) in smap_find() argument
77 for (i = 0; i < smaplen; i++) { in smap_find()
109 size_t size, smaplen; in i386_loadaddr() local
147 smaplen = md->md_size / sizeof (struct bios_smap); in i386_loadaddr()
176 off = smap_find(smap, smaplen, off, size); in i386_loadaddr()
/illumos-gate/usr/src/boot/efi/loader/
H A Dmemmap.c38 static int smaplen; variable
137 smaplen = n; in efi_getsmap()
138 if (smaplen > 0) { in efi_getsmap()
139 smapbase = malloc(smaplen * sizeof (*smapbase)); in efi_getsmap()
160 if (smapbase == NULL || smaplen == 0) in efi_addsmapdata()
162 size = smaplen * sizeof (*smapbase); in efi_addsmapdata()
173 if (smapbase == NULL || smaplen == 0) in command_smap()
176 for (i = 0; i < smaplen; i++) in command_smap()