| /linux/drivers/md/ |
| H A D | dm-cache-target.c | 297 struct cache { struct 307 struct dm_cache_metadata *cmd; argument 322 struct dm_dev *cache_dev; argument 331 * Size of the cache device in blocks. argument 333 dm_cblock_t cache_size; argument 338 spinlock_t invalidation_lock; 339 struct list_head invalidation_requests; 341 sector_t migration_threshold; 342 wait_queue_head_t migration_wait; 343 atomic_t nr_allocated_migrations; [all …]
|
| /linux/fs/cachefiles/ |
| H A D | daemon.c | 92 struct cachefiles_cache *cache; in cachefiles_daemon_open() local 137 void cachefiles_flush_reqs(struct cachefiles_cache *cache) in cachefiles_flush_reqs() 171 void cachefiles_put_unbind_pincount(struct cachefiles_cache *cache) in cachefiles_put_unbind_pincount() 180 void cachefiles_get_unbind_pincount(struct cachefiles_cache *cache) in cachefiles_get_unbind_pincount() 190 struct cachefiles_cache *cache = file->private_data; in cachefiles_daemon_release() local 211 static ssize_t cachefiles_do_daemon_read(struct cachefiles_cache *cache, in cachefiles_do_daemon_read() 262 struct cachefiles_cache *cache = file->private_data; in cachefiles_daemon_read() local 284 struct cachefiles_cache *cache = file->private_data; in cachefiles_daemon_write() local 360 struct cachefiles_cache *cache = file->private_data; in cachefiles_daemon_poll() local 394 static int cachefiles_daemon_range_error(struct cachefiles_cache *cache, in cachefiles_daemon_range_error() [all …]
|
| H A D | cache.c | 17 int cachefiles_add_cache(struct cachefiles_cache *cache) in cachefiles_add_cache() 185 int cachefiles_has_space(struct cachefiles_cache *cache, in cachefiles_has_space() 288 static void cachefiles_withdraw_objects(struct cachefiles_cache *cache) in cachefiles_withdraw_objects() 318 static void cachefiles_withdraw_fscache_volumes(struct cachefiles_cache *cache) in cachefiles_withdraw_fscache_volumes() 350 static void cachefiles_withdraw_volumes(struct cachefiles_cache *cache) in cachefiles_withdraw_volumes() 385 static void cachefiles_sync_cache(struct cachefiles_cache *cache) in cachefiles_sync_cache() 409 void cachefiles_withdraw_cache(struct cachefiles_cache *cache) in cachefiles_withdraw_cache()
|
| H A D | namei.c | 69 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_unmark_inode_in_use() local 84 struct dentry *cachefiles_get_directory(struct cachefiles_cache *cache, in cachefiles_get_directory() 231 static int cachefiles_unlink(struct cachefiles_cache *cache, in cachefiles_unlink() 267 int cachefiles_bury_object(struct cachefiles_cache *cache, in cachefiles_bury_object() 445 struct cachefiles_cache *cache = volume->cache; in cachefiles_create_tmpfile() local 549 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_open_file() local 672 bool cachefiles_commit_tmpfile(struct cachefiles_cache *cache, in cachefiles_commit_tmpfile() 744 static struct dentry *cachefiles_lookup_for_cull(struct cachefiles_cache *cache, in cachefiles_lookup_for_cull() 789 int cachefiles_cull(struct cachefiles_cache *cache, struct dentry *dir, in cachefiles_cull() 847 int cachefiles_check_in_use(struct cachefiles_cache *cache, struct dentry *dir, in cachefiles_check_in_use()
|
| H A D | interface.c | 84 struct fscache_cache *cache; in cachefiles_put_object() local 180 struct cachefiles_cache *cache = cookie->volume->cache->cache_priv; in cachefiles_lookup_cookie() local 235 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_shorten_object() local 282 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_resize_cookie() local 309 struct cachefiles_cache *cache) in cachefiles_commit_object() 328 struct cachefiles_cache *cache) in cachefiles_clean_up_object() 363 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_withdraw_cookie() local
|
| /linux/arch/powerpc/kernel/ |
| H A D | cacheinfo.c | 43 struct cache *cache; member 117 struct cache { struct 118 struct device_node *ofnode; /* OF node for this cache, may be cpu */ argument 119 struct cpumask shared_cpu_map; /* online CPUs using this cache */ argument 120 int type; /* split cache disambiguation */ argument 122 int group_id; /* id of the group of threads that share this cache */ argument 123 struct list_head list; /* global list of cache objects */ argument 124 struct cache *next_local; /* next cache of >= level */ argument 139 static const char *cache_type_string(const struct cache *cache) in cache_type_string() 144 static void cache_init(struct cache *cache, int type, int level, in cache_init() [all …]
|
| /linux/drivers/md/dm-pcache/ |
| H A D | cache.c | 11 static inline struct pcache_cache_info *get_cache_info_addr(struct pcache_cache *cache) in get_cache_info_addr() 16 static void cache_info_write(struct pcache_cache *cache) in cache_info_write() 31 static int cache_info_init(struct pcache_cache *cache, struct pcache_cache_options *opts) in cache_info_init() 70 int pcache_cache_set_gc_percent(struct pcache_cache *cache, u8 percent) in pcache_cache_set_gc_percent() 84 void cache_pos_encode(struct pcache_cache *cache, in cache_pos_encode() 102 int cache_pos_decode(struct pcache_cache *cache, in cache_pos_decode() 126 static inline void cache_info_set_seg_id(struct pcache_cache *cache, u32 seg_id) in cache_info_set_seg_id() 133 struct pcache_cache *cache = &pcache->cache; in cache_init() local 174 static void cache_exit(struct pcache_cache *cache) in cache_exit() 180 static void cache_info_init_default(struct pcache_cache *cache) in cache_info_init_default() [all …]
|
| H A D | cache_req.c | 8 static int cache_data_head_init(struct pcache_cache *cache) in cache_data_head_init() 36 static int cache_data_alloc(struct pcache_cache *cache, struct pcache_cache_key *key) in cache_data_alloc() 90 static int cache_copy_from_req_bio(struct pcache_cache *cache, struct pcache_cache_key *key, in cache_copy_from_req_bio() 101 static int cache_copy_to_req_bio(struct pcache_cache *cache, struct pcache_request *pcache_req, in cache_copy_to_req_bio() 137 struct pcache_cache *cache = backing_req->backing_dev->cache; in miss_read_end_req() local 202 static void submit_cache_miss_req(struct pcache_cache *cache, struct pcache_backing_dev_req *backin… in submit_cache_miss_req() 228 static struct pcache_backing_dev_req *cache_miss_req_alloc(struct pcache_cache *cache, in cache_miss_req_alloc() 259 static void cache_miss_req_init(struct pcache_cache *cache, in cache_miss_req_init() 290 struct pcache_cache *cache = ctx->cache_tree->cache; in get_pre_alloc_req() local 331 struct pcache_cache *cache = ctx->cache_tree->cache; in read_before() local [all …]
|
| H A D | cache_writeback.c | 10 static void writeback_ctx_end(struct pcache_cache *cache, int ret) in writeback_ctx_end() 33 struct pcache_cache *cache = backing_req->priv_data; in writeback_end_req() local 40 static inline bool is_cache_clean(struct pcache_cache *cache, struct pcache_cache_pos *dirty_tail) in is_cache_clean() 77 void cache_writeback_exit(struct pcache_cache *cache) in cache_writeback_exit() 84 int cache_writeback_init(struct pcache_cache *cache) in cache_writeback_init() 102 static void cache_key_writeback(struct pcache_cache *cache, struct pcache_cache_key *key) in cache_key_writeback() 141 static void cache_wb_tree_writeback(struct pcache_cache *cache, u32 advance) in cache_wb_tree_writeback() 168 static int cache_kset_insert_tree(struct pcache_cache *cache, struct pcache_cache_kset_onmedia *kse… in cache_kset_insert_tree() 199 static void last_kset_writeback(struct pcache_cache *cache, in last_kset_writeback() 218 struct pcache_cache *cache = container_of(work, struct pcache_cache, writeback_work.work); in cache_writeback_fn() local
|
| H A D | cache_key.c | 71 static void cache_key_encode(struct pcache_cache *cache, in cache_key_encode() 88 int cache_key_decode(struct pcache_cache *cache, in cache_key_decode() 114 static void append_last_kset(struct pcache_cache *cache, u32 next_seg) in append_last_kset() 128 int cache_kset_close(struct pcache_cache *cache, struct pcache_cache_kset *kset) in cache_kset_close() 195 int cache_key_append(struct pcache_cache *cache, struct pcache_cache_key *key, bool force_close) in cache_key_append() 577 struct pcache_cache *cache = cache_tree->cache; in cache_key_insert() local 647 struct pcache_cache *cache = container_of(work, struct pcache_cache, clean_work); in clean_fn() local 697 struct pcache_cache *cache = kset->cache; in kset_flush_fn() local 713 static int kset_replay(struct pcache_cache *cache, struct pcache_cache_kset_onmedia *kset_onmedia) in kset_replay() 751 int cache_replay(struct pcache_cache *cache) in cache_replay() [all …]
|
| /linux/fs/netfs/ |
| H A D | fscache_cache.c | 26 struct fscache_cache *cache; in fscache_alloc_cache() local 44 static bool fscache_get_cache_maybe(struct fscache_cache *cache, in fscache_get_cache_maybe() 61 struct fscache_cache *candidate, *cache, *unnamed = NULL; in fscache_lookup_cache() local 151 struct fscache_cache *cache; in fscache_acquire_cache() local 179 void fscache_put_cache(struct fscache_cache *cache, in fscache_put_cache() 209 void fscache_relinquish_cache(struct fscache_cache *cache) in fscache_relinquish_cache() 234 int fscache_add_cache(struct fscache_cache *cache, in fscache_add_cache() 289 bool fscache_begin_cache_access(struct fscache_cache *cache, enum fscache_access_trace why) in fscache_begin_cache_access() 315 void fscache_end_cache_access(struct fscache_cache *cache, enum fscache_access_trace why) in fscache_end_cache_access() 337 void fscache_io_error(struct fscache_cache *cache) in fscache_io_error() [all …]
|
| /linux/fs/ |
| H A D | mbcache.c | 50 static inline struct hlist_bl_head *mb_cache_entry_head(struct mb_cache *cache, in mb_cache_entry_head() 74 int mb_cache_entry_create(struct mb_cache *cache, gfp_t mask, u32 key, in mb_cache_entry_create() 127 void __mb_cache_entry_free(struct mb_cache *cache, struct mb_cache_entry *entry) in __mb_cache_entry_free() 152 static struct mb_cache_entry *__entry_find(struct mb_cache *cache, in __entry_find() 192 struct mb_cache_entry *mb_cache_entry_find_first(struct mb_cache *cache, in mb_cache_entry_find_first() 209 struct mb_cache_entry *mb_cache_entry_find_next(struct mb_cache *cache, in mb_cache_entry_find_next() 222 struct mb_cache_entry *mb_cache_entry_get(struct mb_cache *cache, u32 key, in mb_cache_entry_get() 254 struct mb_cache_entry *mb_cache_entry_delete_or_get(struct mb_cache *cache, in mb_cache_entry_delete_or_get() 286 void mb_cache_entry_touch(struct mb_cache *cache, in mb_cache_entry_touch() 296 struct mb_cache *cache = shrink->private_data; in mb_cache_count() local [all …]
|
| /linux/scripts/gendwarfksyms/ |
| H A D | dwarf.c | 38 static void process_linebreak(struct die *cache, int n) in process_linebreak() 147 static bool is_kabi_definition(struct die *cache, Dwarf_Die *die) in is_kabi_definition() 163 static void process(struct die *cache, const char *s) in process() 183 static void process_fmt(struct die *cache, const char *fmt, ...) in process_fmt() 197 static void update_fqn(struct die *cache, Dwarf_Die *die) in update_fqn() 210 static void process_fqn(struct die *cache, Dwarf_Die *die) in process_fqn() 266 int process_die_container(struct state *state, struct die *cache, in process_die_container() 300 static void process_type_attr(struct state *state, struct die *cache, in process_type_attr() 314 static void process_list_comma(struct state *state, struct die *cache) in process_list_comma() 325 static void __process_list_type(struct state *state, struct die *cache, in __process_list_type() [all …]
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_guc_buf.c | 16 static struct xe_guc *cache_to_guc(struct xe_guc_buf_cache *cache) in cache_to_guc() 21 static struct xe_gt *cache_to_gt(struct xe_guc_buf_cache *cache) in cache_to_gt() 35 int xe_guc_buf_cache_init(struct xe_guc_buf_cache *cache) in xe_guc_buf_cache_init() 57 u32 xe_guc_buf_cache_dwords(struct xe_guc_buf_cache *cache) in xe_guc_buf_cache_dwords() 72 struct xe_guc_buf xe_guc_buf_reserve(struct xe_guc_buf_cache *cache, u32 dwords) in xe_guc_buf_reserve() 94 struct xe_guc_buf xe_guc_buf_from_data(struct xe_guc_buf_cache *cache, in xe_guc_buf_from_data() 160 u64 xe_guc_cache_gpu_addr_from_ptr(struct xe_guc_buf_cache *cache, const void *ptr, u32 size) in xe_guc_cache_gpu_addr_from_ptr()
|
| /linux/drivers/gpu/drm/xe/tests/ |
| H A D | xe_guc_buf_kunit.c | 83 struct xe_guc_buf_cache *cache = test->priv; in test_smallest() local 97 struct xe_guc_buf_cache *cache = test->priv; in test_largest() local 111 struct xe_guc_buf_cache *cache = test->priv; in test_granular() local 131 struct xe_guc_buf_cache *cache = test->priv; in test_unique() local 157 struct xe_guc_buf_cache *cache = test->priv; in test_overlap() local 191 struct xe_guc_buf_cache *cache = test->priv; in test_reusable() local 210 struct xe_guc_buf_cache *cache = test->priv; in test_too_big() local 220 struct xe_guc_buf_cache *cache = test->priv; in test_flush() local 250 struct xe_guc_buf_cache *cache = test->priv; in test_lookup() local 276 struct xe_guc_buf_cache *cache = test->priv; in test_data() local [all …]
|
| /linux/fs/nfs/ |
| H A D | nfs42xattr.c | 64 struct nfs4_xattr_cache *cache; member 106 nfs4_xattr_hash_init(struct nfs4_xattr_cache *cache) in nfs4_xattr_hash_init() 270 struct nfs4_xattr_cache *cache; in nfs4_xattr_free_cache_cb() local 290 struct nfs4_xattr_cache *cache; in nfs4_xattr_alloc_cache() local 309 nfs4_xattr_set_listcache(struct nfs4_xattr_cache *cache, in nfs4_xattr_set_listcache() 384 nfs4_xattr_discard_cache(struct nfs4_xattr_cache *cache) in nfs4_xattr_discard_cache() 429 struct nfs4_xattr_cache *cache, *oldcache, *newcache; in nfs4_xattr_get_cache() local 504 nfs4_xattr_hash_bucket(struct nfs4_xattr_cache *cache, const char *name) in nfs4_xattr_hash_bucket() 526 nfs4_xattr_hash_add(struct nfs4_xattr_cache *cache, in nfs4_xattr_hash_add() 564 nfs4_xattr_hash_remove(struct nfs4_xattr_cache *cache, const char *name) in nfs4_xattr_hash_remove() [all …]
|
| /linux/drivers/infiniband/hw/hfi1/ |
| H A D | platform.c | 196 u8 *cache = ppd->qsfp_info.cache; in qual_power() local 225 u8 *cache = ppd->qsfp_info.cache; in qual_bitrate() local 251 u8 *cache = ppd->qsfp_info.cache; in set_qsfp_high_power() local 288 u8 *cache = ppd->qsfp_info.cache; in apply_rx_cdr() local 339 u8 *cache = ppd->qsfp_info.cache; in apply_tx_cdr() local 388 u8 *cache = ppd->qsfp_info.cache; in apply_cdr_settings() local 401 u8 *cache = ppd->qsfp_info.cache; in apply_tx_eq_auto() local 414 u8 *cache = ppd->qsfp_info.cache; in apply_tx_eq_prog() local 459 u8 rx_eq, *cache = ppd->qsfp_info.cache; in apply_rx_eq_emp() local 503 u8 *cache = ppd->qsfp_info.cache; in apply_eq_settings() local [all …]
|
| /linux/fs/btrfs/tests/ |
| H A D | free-space-tests.c | 20 static int test_extents(struct btrfs_block_group *cache) in test_extents() 90 static int test_bitmaps(struct btrfs_block_group *cache, u32 sectorsize) in test_bitmaps() 158 static int test_bitmaps_and_extents(struct btrfs_block_group *cache, in test_bitmaps_and_extents() 333 check_num_extents_and_bitmaps(const struct btrfs_block_group *cache, in check_num_extents_and_bitmaps() 353 static int check_cache_empty(struct btrfs_block_group *cache) in check_cache_empty() 395 test_steal_space_from_bitmap_to_extent(struct btrfs_block_group *cache, in test_steal_space_from_bitmap_to_extent() 833 static int test_bytes_index(struct btrfs_block_group *cache, u32 sectorsize) in test_bytes_index() 1008 struct btrfs_block_group *cache; in btrfs_test_free_space_cache() local
|
| H A D | free-space-tree-tests.c | 22 struct btrfs_block_group *cache, in __check_free_space_extents() 109 struct btrfs_block_group *cache, in check_free_space_extents() 152 struct btrfs_block_group *cache, in test_empty_block_group() 166 struct btrfs_block_group *cache, in test_remove_all() 186 struct btrfs_block_group *cache, in test_remove_beginning() 209 struct btrfs_block_group *cache, in test_remove_end() 232 struct btrfs_block_group *cache, in test_remove_middle() 256 struct btrfs_block_group *cache, in test_merge_left() 292 struct btrfs_block_group *cache, in test_merge_right() 329 struct btrfs_block_group *cache, in test_merge_both() [all …]
|
| /linux/scripts/gdb/linux/ |
| H A D | slab.py | 46 def for_each_object(cache, addr, slab_objects): argument 54 def get_info_end(cache): argument 60 def get_orig_size(cache, obj): argument 70 def get_track(cache, object_pointer, alloc): argument 85 def __obj_to_index(cache, addr, obj): argument 99 def freelist_ptr_decode(cache, ptr, ptr_addr): argument 105 def get_freepointer(cache, obj): argument 117 def add_location(loc_track, cache, track, orig_size): argument 155 def __fill_map(obj_map, cache, slab): argument 164 def process_slab(loc_track, slab_list, alloc, cache): argument
|
| /linux/drivers/acpi/acpica/ |
| H A D | utcache.c | 36 struct acpi_memory_list *cache; in acpi_os_create_cache() local 74 acpi_status acpi_os_purge_cache(struct acpi_memory_list *cache) in acpi_os_purge_cache() 120 acpi_status acpi_os_delete_cache(struct acpi_memory_list *cache) in acpi_os_delete_cache() 153 acpi_status acpi_os_release_object(struct acpi_memory_list *cache, void *object) in acpi_os_release_object() 208 void *acpi_os_acquire_object(struct acpi_memory_list *cache) in acpi_os_acquire_object()
|
| /linux/mm/kasan/ |
| H A D | common.c | 165 void __kasan_unpoison_new_object(struct kmem_cache *cache, void *object) in __kasan_unpoison_new_object() 170 void __kasan_poison_new_object(struct kmem_cache *cache, void *object) in __kasan_poison_new_object() 186 static inline u8 assign_tag(struct kmem_cache *cache, in assign_tag() 207 void * __must_check __kasan_init_slab_obj(struct kmem_cache *cache, in __kasan_init_slab_obj() 221 static bool check_slab_allocation(struct kmem_cache *cache, void *object, in check_slab_allocation() 241 static inline void poison_slab_object(struct kmem_cache *cache, void *object, in poison_slab_object() 255 bool __kasan_slab_pre_free(struct kmem_cache *cache, void *object, in __kasan_slab_pre_free() 263 bool __kasan_slab_free(struct kmem_cache *cache, void *object, bool init, in __kasan_slab_free() 331 static inline void unpoison_slab_object(struct kmem_cache *cache, void *object, in unpoison_slab_object() 345 void * __must_check __kasan_slab_alloc(struct kmem_cache *cache, in __kasan_slab_alloc() [all …]
|
| H A D | generic.c | 215 void kasan_cache_shrink(struct kmem_cache *cache) in kasan_cache_shrink() 220 void kasan_cache_shutdown(struct kmem_cache *cache) in kasan_cache_shutdown() 364 void kasan_cache_create(struct kmem_cache *cache, unsigned int *size, in kasan_cache_create() 467 struct kasan_alloc_meta *kasan_get_alloc_meta(struct kmem_cache *cache, in kasan_get_alloc_meta() 475 struct kasan_free_meta *kasan_get_free_meta(struct kmem_cache *cache, in kasan_get_free_meta() 484 void kasan_init_object_meta(struct kmem_cache *cache, const void *object) in kasan_init_object_meta() 520 size_t kasan_metadata_size(struct kmem_cache *cache, bool in_object) in kasan_metadata_size() 545 struct kmem_cache *cache; in kasan_record_aux_stack() local 562 void kasan_save_alloc_info(struct kmem_cache *cache, void *object, gfp_t flags) in kasan_save_alloc_info() 576 void __kasan_save_free_info(struct kmem_cache *cache, void *object) in __kasan_save_free_info()
|
| /linux/fs/btrfs/ |
| H A D | lru_cache.c | 15 void btrfs_lru_cache_init(struct btrfs_lru_cache *cache, unsigned int max_size) in btrfs_lru_cache_init() 45 struct btrfs_lru_cache_entry *btrfs_lru_cache_lookup(struct btrfs_lru_cache *cache, in btrfs_lru_cache_lookup() 70 void btrfs_lru_cache_remove(struct btrfs_lru_cache *cache, in btrfs_lru_cache_remove() 106 int btrfs_lru_cache_store(struct btrfs_lru_cache *cache, in btrfs_lru_cache_store() 156 void btrfs_lru_cache_clear(struct btrfs_lru_cache *cache) in btrfs_lru_cache_clear()
|
| /linux/io_uring/ |
| H A D | alloc_cache.h | 19 static inline bool io_alloc_cache_put(struct io_alloc_cache *cache, in io_alloc_cache_put() 31 static inline void *io_alloc_cache_get(struct io_alloc_cache *cache) in io_alloc_cache_get() 52 static inline void *io_cache_alloc(struct io_alloc_cache *cache, gfp_t gfp) in io_cache_alloc() 62 static inline void io_cache_free(struct io_alloc_cache *cache, void *obj) in io_cache_free()
|