Lines Matching defs:bc

404 static inline void cache_read_lock(struct dm_buffer_cache *bc, sector_t block)  in cache_read_lock()
412 static inline void cache_read_unlock(struct dm_buffer_cache *bc, sector_t block) in cache_read_unlock()
420 static inline void cache_write_lock(struct dm_buffer_cache *bc, sector_t block) in cache_write_lock()
428 static inline void cache_write_unlock(struct dm_buffer_cache *bc, sector_t block) in cache_write_unlock()
528 static void cache_init(struct dm_buffer_cache *bc, unsigned int num_locks, bool no_sleep) in cache_init()
547 static void cache_destroy(struct dm_buffer_cache *bc) in cache_destroy()
563 static inline unsigned long cache_count(struct dm_buffer_cache *bc, int list_mode) in cache_count()
568 static inline unsigned long cache_total(struct dm_buffer_cache *bc) in cache_total()
605 static struct dm_buffer *cache_get(struct dm_buffer_cache *bc, sector_t block) in cache_get()
626 static bool cache_put(struct dm_buffer_cache *bc, struct dm_buffer *b) in cache_put()
670 static struct dm_buffer *__cache_evict(struct dm_buffer_cache *bc, int list_mode, in __cache_evict()
689 static struct dm_buffer *cache_evict(struct dm_buffer_cache *bc, int list_mode, in cache_evict()
707 static void cache_mark(struct dm_buffer_cache *bc, struct dm_buffer *b, int list_mode) in cache_mark()
724 static void __cache_mark_many(struct dm_buffer_cache *bc, int old_mode, int new_mode, in __cache_mark_many()
742 static void cache_mark_many(struct dm_buffer_cache *bc, int old_mode, int new_mode, in cache_mark_many()
770 static void __cache_iterate(struct dm_buffer_cache *bc, int list_mode, in __cache_iterate()
798 static void cache_iterate(struct dm_buffer_cache *bc, int list_mode, in cache_iterate()
841 static bool cache_insert(struct dm_buffer_cache *bc, struct dm_buffer *b) in cache_insert()
866 static bool cache_remove(struct dm_buffer_cache *bc, struct dm_buffer *b) in cache_remove()
912 static void __remove_range(struct dm_buffer_cache *bc, in __remove_range()
939 static void cache_remove_range(struct dm_buffer_cache *bc, in cache_remove_range()