Lines Matching defs:bc

412 static inline void cache_read_lock(struct dm_buffer_cache *bc, sector_t block)  in cache_read_lock()
420 static inline void cache_read_unlock(struct dm_buffer_cache *bc, sector_t block) in cache_read_unlock()
428 static inline void cache_write_lock(struct dm_buffer_cache *bc, sector_t block) in cache_write_lock()
436 static inline void cache_write_unlock(struct dm_buffer_cache *bc, sector_t block) in cache_write_unlock()
536 static void cache_init(struct dm_buffer_cache *bc, unsigned int num_locks, bool no_sleep) in cache_init()
555 static void cache_destroy(struct dm_buffer_cache *bc) in cache_destroy()
571 static inline unsigned long cache_count(struct dm_buffer_cache *bc, int list_mode) in cache_count()
576 static inline unsigned long cache_total(struct dm_buffer_cache *bc) in cache_total()
613 static struct dm_buffer *cache_get(struct dm_buffer_cache *bc, sector_t block) in cache_get()
634 static bool cache_put(struct dm_buffer_cache *bc, struct dm_buffer *b) in cache_put()
678 static struct dm_buffer *__cache_evict(struct dm_buffer_cache *bc, int list_mode, in __cache_evict()
697 static struct dm_buffer *cache_evict(struct dm_buffer_cache *bc, int list_mode, in cache_evict()
715 static void cache_mark(struct dm_buffer_cache *bc, struct dm_buffer *b, int list_mode) in cache_mark()
732 static void __cache_mark_many(struct dm_buffer_cache *bc, int old_mode, int new_mode, in __cache_mark_many()
750 static void cache_mark_many(struct dm_buffer_cache *bc, int old_mode, int new_mode, in cache_mark_many()
778 static void __cache_iterate(struct dm_buffer_cache *bc, int list_mode, in __cache_iterate()
806 static void cache_iterate(struct dm_buffer_cache *bc, int list_mode, in cache_iterate()
849 static bool cache_insert(struct dm_buffer_cache *bc, struct dm_buffer *b) in cache_insert()
874 static bool cache_remove(struct dm_buffer_cache *bc, struct dm_buffer *b) in cache_remove()
920 static void __remove_range(struct dm_buffer_cache *bc, in __remove_range()
947 static void cache_remove_range(struct dm_buffer_cache *bc, in cache_remove_range()