Lines Matching refs:ca
768 #define bucket_bytes(ca) ((ca)->sb.bucket_size << 9) argument
769 #define block_bytes(ca) ((ca)->sb.block_size << 9) argument
791 #define prios_per_bucket(ca) \ argument
792 ((meta_bucket_bytes(&(ca)->sb) - sizeof(struct prio_set)) / \
795 #define prio_buckets(ca) \ argument
796 DIV_ROUND_UP((size_t) (ca)->sb.nbuckets, prios_per_bucket(ca))
891 #define for_each_bucket(b, ca) \ argument
892 for (b = (ca)->buckets + (ca)->sb.first_bucket; \
893 b < (ca)->buckets + (ca)->sb.nbuckets; b++)
932 struct cache *ca = c->cache; in wake_up_allocators() local
934 wake_up_process(ca->alloc_thread); in wake_up_allocators()
967 void bch_count_io_errors(struct cache *ca, blk_status_t error,
980 uint8_t bch_inc_gen(struct cache *ca, struct bucket *b);
983 bool bch_can_invalidate_bucket(struct cache *ca, struct bucket *b);
984 void __bch_invalidate_one_bucket(struct cache *ca, struct bucket *b);
986 void __bch_bucket_free(struct cache *ca, struct bucket *b);
989 long bch_bucket_alloc(struct cache *ca, unsigned int reserve, bool wait);
1002 int bch_prio_write(struct cache *ca, bool wait);
1043 int bch_cache_allocator_start(struct cache *ca);