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