Lines Matching refs:from_cblock

999 	if (!test_and_set_bit(from_cblock(infer_cblock(mq, e)), mq->cache_hit_bits)) {  in requeue()
1107 clear_bitset(mq->cache_hit_bits, from_cblock(mq->cache_size)); in end_cache_period()
1127 return from_cblock(mq->cache_size) * p / 100u; in percent_to_target()
1153 nr_free = from_cblock(mq->cache_size) - mq->cache_alloc.nr_allocated; in free_target_met()
1463 from_cblock(work->cblock)); in __complete_background_work()
1519 struct entry *e = get_entry(&mq->cache_alloc, from_cblock(cblock)); in __smq_set_clear_dirty()
1552 return hash_32(from_cblock(cblock), 9) & (NR_CACHE_LEVELS - 1); in random_level()
1562 e = alloc_particular_entry(&mq->cache_alloc, from_cblock(cblock)); in smq_load_mapping()
1580 struct entry *e = get_entry(&mq->cache_alloc, from_cblock(cblock)); in smq_invalidate_mapping()
1595 struct entry *e = get_entry(&mq->cache_alloc, from_cblock(cblock)); in smq_get_hint()
1737 calc_hotspot_params(origin_size, cache_block_size, from_cblock(cache_size), in __smq_create()
1742 if (space_init(&mq->es, total_sentinels + mq->nr_hotspot_blocks + from_cblock(cache_size))) { in __smq_create()
1760 total_sentinels + mq->nr_hotspot_blocks + from_cblock(cache_size)); in __smq_create()
1769 if (from_cblock(cache_size)) { in __smq_create()
1770 mq->cache_hit_bits = alloc_bitset(from_cblock(cache_size)); in __smq_create()
1775 clear_bitset(mq->cache_hit_bits, from_cblock(mq->cache_size)); in __smq_create()
1785 from_cblock(mq->cache_size) / mq->cache_blocks_per_hotspot_block); in __smq_create()
1793 if (h_init(&mq->table, &mq->es, from_cblock(cache_size))) in __smq_create()