Lines Matching refs:smaplen
53 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()
145 for (i = 0; i < smaplen; i++) in command_smap()
152 for (i = 0; i < smaplen; i++) in command_smap()