Searched refs:smaplen (Results 1 – 3 of 3) sorted by relevance
53 static u_int smaplen; variable92 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 …]
73 smap_find(struct bios_smap *smap, int smaplen, vm_offset_t addr, size_t size) in smap_find() argument77 for (i = 0; i < smaplen; i++) { in smap_find()109 size_t size, smaplen; in i386_loadaddr() local147 smaplen = md->md_size / sizeof (struct bios_smap); in i386_loadaddr()176 off = smap_find(smap, smaplen, off, size); in i386_loadaddr()
38 static int smaplen; variable137 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()