Lines Matching refs:unit
212 int unit; in bd_get_bdinfo() local
218 unit = 0; in bd_get_bdinfo()
220 if (unit == dev->d_unit) in bd_get_bdinfo()
222 unit++; in bd_get_bdinfo()
235 int i, unit; in bd_bios2unit() local
239 unit = 0; in bd_bios2unit()
242 DPRINTF("bd unit %d is BIOS device 0x%x", unit, in bd_bios2unit()
244 return (unit); in bd_bios2unit()
246 unit++; in bd_bios2unit()
257 int unit; in bd_unit2bios() local
263 unit = 0; in bd_unit2bios()
265 if (unit == dev->dd.d_unit) in bd_unit2bios()
267 unit++; in bd_unit2bios()
305 int unit, numfd; in fd_init() local
309 for (unit = 0; unit < numfd; unit++) { in fd_init()
315 bd->bd_unit = unit; in fd_init()
324 printf("BIOS drive %c: is %s%d\n", ('A' + unit), in fd_init()
325 biosfd.dv_name, unit); in fd_init()
329 bcache_add_dev(unit); in fd_init()
336 int base, unit; in bd_init() local
340 for (unit = 0; unit < *(unsigned char *)PTOV(BIOS_NUMDRIVES); unit++) { in bd_init()
346 bd->bd_unit = base + unit; in bd_init()
351 printf("BIOS drive %c: is %s%d\n", ('C' + unit), in bd_init()
352 bioshd.dv_name, unit); in bd_init()
355 bcache_add_dev(unit); in bd_init()
468 bd_check_extensions(int unit) in bd_check_extensions() argument
471 if (unit < 0x80) in bd_check_extensions()
478 v86.edx = unit; in bd_check_extensions()
494 bd_reset_disk(int unit) in bd_reset_disk() argument
500 v86.edx = unit; in bd_reset_disk()
1307 int i, unit, slice, partition; in bd_getdev() local
1347 unit = biosdev & 0x7f; in bd_getdev()
1360 unit = 0; /* XXX */ in bd_getdev()
1368 unit = i; in bd_getdev()
1371 rootdev = MAKEBOOTDEV(major, slice, unit, partition); in bd_getdev()