Lines Matching refs:r
514 static int bitmap_set_region(const struct region *r, in bitmap_set_region() argument
519 if (r->end >= nbits) in bitmap_set_region()
522 for (start = r->start; start <= r->end; start += r->group_len) in bitmap_set_region()
523 bitmap_set(bitmap, start, min(r->end - start + 1, r->off)); in bitmap_set_region()
528 static int bitmap_check_region(const struct region *r) in bitmap_check_region() argument
530 if (r->start > r->end || r->group_len == 0 || r->off > r->group_len) in bitmap_check_region()
578 static const char *bitmap_parse_region(const char *str, struct region *r) in bitmap_parse_region() argument
580 str = bitmap_getnum(str, &r->start); in bitmap_parse_region()
590 str = bitmap_getnum(str + 1, &r->end); in bitmap_parse_region()
600 str = bitmap_getnum(str + 1, &r->off); in bitmap_parse_region()
607 return bitmap_getnum(str + 1, &r->group_len); in bitmap_parse_region()
610 r->end = r->start; in bitmap_parse_region()
612 r->off = r->end + 1; in bitmap_parse_region()
613 r->group_len = r->end + 1; in bitmap_parse_region()
644 struct region r; in bitmap_parselist() local
654 buf = bitmap_parse_region(buf, &r); in bitmap_parselist()
658 ret = bitmap_check_region(&r); in bitmap_parselist()
662 ret = bitmap_set_region(&r, maskp, nmaskbits); in bitmap_parselist()