Lines Matching defs:range
2868 * We're already in a discard range, just extend it.
2874 * Emit the old range and start a new one.
3178 * Defines a range of cblocks, begin to (end - 1) are in the range. end is
3187 * A cache block range can take two forms:
3225 DMERR("%s: invalid cblock range '%s'", cache_device_name(cache), str);
3229 static int validate_cblock_range(struct cache *cache, struct cblock_range *range)
3231 uint64_t b = from_cblock(range->begin);
3232 uint64_t e = from_cblock(range->end);
3236 DMERR("%s: begin cblock out of range: %llu >= %llu",
3242 DMERR("%s: end cblock out of range: %llu > %llu",
3248 DMERR("%s: invalid cblock range: %llu >= %llu",
3261 static int request_invalidation(struct cache *cache, struct cblock_range *range)
3271 while (range->begin != range->end) {
3272 r = invalidate_cblock(cache, range->begin);
3276 range->begin = cblock_succ(range->begin);
3288 struct cblock_range range;
3297 r = parse_cblock_range(cache, cblock_ranges[i], &range);
3301 r = validate_cblock_range(cache, &range);
3308 r = request_invalidation(cache, &range);