Lines Matching defs:bios
114 void *stbuf, *bios, *p, *q;
121 bios = MAP_FAILED;
125 bios = mmap(NULL, SMB_RANGE_LIMIT - SMB_RANGE_START + 1,
130 if (bios == MAP_FAILED) {
131 bios = mmap(NULL, SMB_RANGE_LIMIT - SMB_RANGE_START + 1,
135 if (bios == MAP_FAILED)
138 q = (void *)((uintptr_t)bios + SMB_RANGE_LIMIT - SMB_RANGE_START + 1);
141 for (p = bios; p < q; p = (void *)((uintptr_t)p + SMB_SCAN_STEP)) {
185 (void) munmap(bios, SMB_RANGE_LIMIT - SMB_RANGE_START + 1);
205 (void) munmap(bios, SMB_RANGE_LIMIT - SMB_RANGE_START + 1);
208 (void) munmap(bios, SMB_RANGE_LIMIT - SMB_RANGE_START + 1);
214 bios = mmap(NULL, smbe_stlen + pgoff,
217 if (bios == MAP_FAILED)
221 (void) munmap(bios, smbe_stlen + pgoff);
225 bcopy((char *)bios + pgoff, stbuf, smbe_stlen);
226 (void) munmap(bios, smbe_stlen + pgoff);