Lines Matching defs:bc
411 static inline void cache_read_lock(struct dm_buffer_cache *bc, sector_t block) in cache_read_lock()
419 static inline void cache_read_unlock(struct dm_buffer_cache *bc, sector_t block) in cache_read_unlock()
427 static inline void cache_write_lock(struct dm_buffer_cache *bc, sector_t block) in cache_write_lock()
435 static inline void cache_write_unlock(struct dm_buffer_cache *bc, sector_t block) in cache_write_unlock()
538 static void cache_init(struct dm_buffer_cache *bc, unsigned int num_locks, bool no_sleep) in cache_init()
557 static void cache_destroy(struct dm_buffer_cache *bc) in cache_destroy()
573 static inline unsigned long cache_count(struct dm_buffer_cache *bc, int list_mode) in cache_count()
578 static inline unsigned long cache_total(struct dm_buffer_cache *bc) in cache_total()
615 static struct dm_buffer *cache_get(struct dm_buffer_cache *bc, sector_t block) in cache_get()
636 static bool cache_put(struct dm_buffer_cache *bc, struct dm_buffer *b) in cache_put()
680 static struct dm_buffer *__cache_evict(struct dm_buffer_cache *bc, int list_mode, in __cache_evict()
699 static struct dm_buffer *cache_evict(struct dm_buffer_cache *bc, int list_mode, in cache_evict()
717 static void cache_mark(struct dm_buffer_cache *bc, struct dm_buffer *b, int list_mode) in cache_mark()
734 static void __cache_mark_many(struct dm_buffer_cache *bc, int old_mode, int new_mode, in __cache_mark_many()
752 static void cache_mark_many(struct dm_buffer_cache *bc, int old_mode, int new_mode, in cache_mark_many()
780 static void __cache_iterate(struct dm_buffer_cache *bc, int list_mode, in __cache_iterate()
808 static void cache_iterate(struct dm_buffer_cache *bc, int list_mode, in cache_iterate()
851 static bool cache_insert(struct dm_buffer_cache *bc, struct dm_buffer *b) in cache_insert()
876 static bool cache_remove(struct dm_buffer_cache *bc, struct dm_buffer *b) in cache_remove()
922 static void __remove_range(struct dm_buffer_cache *bc, in __remove_range()
949 static void cache_remove_range(struct dm_buffer_cache *bc, in cache_remove_range()