Lines Matching defs:ub
202 struct unrb *ub;
210 ub = up->ptr;
217 if (bit_test(ub->map, x))
219 KASSERT (w == ub->busy,
221 ub->busy, w, line));
368 struct unrb *ub, *ubf;
414 ub = (void *)us;
415 ub->busy = 0;
417 bit_nset(ub->map, 0, a);
418 ub->busy += a;
420 bit_nclear(ub->map, 0, a);
424 bit_nclear(ub->map, a, a + uf->len - 1);
426 bit_nset(ub->map, a, a + uf->len - 1);
427 ub->busy += uf->len;
429 uf->ptr = ub;
436 bit_set(ub->map, a);
437 ub->busy++;
439 bit_clear(ub->map, a);
444 uf->ptr = ub;
448 ub = us->ptr;
456 bit_nclear(ub->map, us->len, us->len + uf->len - 1);
461 bit_nset(ub->map, us->len, us->len + uf->len - 1);
462 ub->busy += uf->len;
470 bit_set(ub->map, us->len);
471 ub->busy++;
473 bit_clear(ub->map, us->len);
492 struct unrb *ub;
496 ub = up->ptr;
497 if (ub->busy == up->len) {
500 } else if (ub->busy == 0) {
564 struct unrb *ub;
597 ub = up->ptr;
598 KASSERT(ub->busy < up->len, ("UNR bitmap confusion"));
599 bit_ffc(ub->map, up->len, &y);
601 bit_set(ub->map, y);
602 ub->busy++;
626 struct unrb *ub;
683 ub = up->ptr;
684 if (bit_test(ub->map, i) == 0) {
685 bit_set(ub->map, i);
686 ub->busy++;
757 struct unrb *ub;
799 ub = up->ptr;
801 KASSERT(bit_test(ub->map, item) != 0,
803 bit_clear(ub->map, item);
805 ub->busy--;
890 struct unrb *ub;
898 ub = up->ptr;
899 printf("bitmap(%d) [", ub->busy);
901 if (bit_test(ub->map, x))