Lines Matching defs:unit
276 vnd_spawn(int unit)
283 cf->cf_unit = unit;
306 int unit = vndunit(dev);
315 sc = device_lookup_private(&vnd_cd, unit);
317 sc = vnd_spawn(unit);
371 /* Prevent our unit from being unconfigured while open. */
392 int unit = vndunit(dev);
400 sc = device_lookup_private(&vnd_cd, unit);
441 int unit = vndunit(bp->b_dev);
443 device_lookup_private(&vnd_cd, unit);
515 printf("vndstrategy(%p): unit %d\n", bp, unit);
905 int unit = vndunit(dev);
913 sc = device_lookup_private(&vnd_cd, unit);
927 int unit = vndunit(dev);
935 sc = device_lookup_private(&vnd_cd, unit);
946 vnd_cget(struct lwp *l, int unit, int *un, struct vattr *va)
952 *un = unit;
1019 int unit = vndunit(dev);
1036 printf("vndioctl(0x%"PRIx64", 0x%lx, %p, 0x%x, %p): unit %d\n",
1037 dev, cmd, data, flag, l->l_proc, unit);
1039 vnd = device_lookup_private(&vnd_cd, unit);
1225 unit, vnd->sc_comp_stream.msg);
1392 switch (error = vnd_cget(l, unit, &vnu->vnu_unit, &va)) {
1415 switch (error = vnd_cget(l, unit, &vnu->vnu_unit, &va)) {
1437 switch (error = vnd_cget(l, unit, &vnu->vnu_unit, &va)) {
1728 int part, unit, omask;
1731 unit = vndunit(dev);
1732 sc = device_lookup_private(&vnd_cd, unit);
1892 int unit = vndunit(bp->b_dev);
1894 device_lookup_private(&vnd_cd, unit);
2009 prop_dictionary_set_uint64(geom, "sectors-per-unit",
2022 prop_dictionary_set_uint64(geom, "cylinders-per-unit",