Home
last modified time | relevance | path

Searched refs:cache (Results 1 – 25 of 100) sorted by relevance

1234

/drivers/md/
Ddm-cache-target.c100 struct cache { struct
210 struct cache *cache; member
218 struct cache *cache; member
245 static void wake_worker(struct cache *cache) in wake_worker() argument
247 queue_work(cache->wq, &cache->worker); in wake_worker()
252 static struct dm_bio_prison_cell *alloc_prison_cell(struct cache *cache) in alloc_prison_cell() argument
255 return dm_bio_prison_alloc_cell(cache->prison, GFP_NOWAIT); in alloc_prison_cell()
258 static void free_prison_cell(struct cache *cache, struct dm_bio_prison_cell *cell) in free_prison_cell() argument
260 dm_bio_prison_free_cell(cache->prison, cell); in free_prison_cell()
263 static int prealloc_data_structs(struct cache *cache, struct prealloc *p) in prealloc_data_structs() argument
[all …]
DMakefile14 dm-cache-y += dm-cache-target.o dm-cache-metadata.o dm-cache-policy.o
15 dm-cache-mq-y += dm-cache-policy-mq.o
16 dm-cache-cleaner-y += dm-cache-policy-cleaner.o
53 obj-$(CONFIG_DM_CACHE) += dm-cache.o
54 obj-$(CONFIG_DM_CACHE_MQ) += dm-cache-mq.o
55 obj-$(CONFIG_DM_CACHE_CLEANER) += dm-cache-cleaner.o
/drivers/acpi/acpica/
Dutcache.c70 struct acpi_memory_list *cache; in acpi_os_create_cache() local
80 cache = acpi_os_allocate(sizeof(struct acpi_memory_list)); in acpi_os_create_cache()
81 if (!cache) { in acpi_os_create_cache()
87 ACPI_MEMSET(cache, 0, sizeof(struct acpi_memory_list)); in acpi_os_create_cache()
88 cache->list_name = cache_name; in acpi_os_create_cache()
89 cache->object_size = object_size; in acpi_os_create_cache()
90 cache->max_depth = max_depth; in acpi_os_create_cache()
92 *return_cache = cache; in acpi_os_create_cache()
108 acpi_status acpi_os_purge_cache(struct acpi_memory_list * cache) in acpi_os_purge_cache() argument
115 if (!cache) { in acpi_os_purge_cache()
[all …]
Duttrack.c96 struct acpi_memory_list *cache; in acpi_ut_create_list() local
98 cache = acpi_os_allocate(sizeof(struct acpi_memory_list)); in acpi_ut_create_list()
99 if (!cache) { in acpi_ut_create_list()
103 ACPI_MEMSET(cache, 0, sizeof(struct acpi_memory_list)); in acpi_ut_create_list()
105 cache->list_name = list_name; in acpi_ut_create_list()
106 cache->object_size = object_size; in acpi_ut_create_list()
108 *return_cache = cache; in acpi_ut_create_list()
/drivers/infiniband/core/
Dcache.c77 struct ib_gid_cache *cache; in ib_get_cached_gid() local
84 read_lock_irqsave(&device->cache.lock, flags); in ib_get_cached_gid()
86 cache = device->cache.gid_cache[port_num - start_port(device)]; in ib_get_cached_gid()
88 if (index < 0 || index >= cache->table_len) in ib_get_cached_gid()
91 *gid = cache->table[index]; in ib_get_cached_gid()
93 read_unlock_irqrestore(&device->cache.lock, flags); in ib_get_cached_gid()
104 struct ib_gid_cache *cache; in ib_find_cached_gid() local
113 read_lock_irqsave(&device->cache.lock, flags); in ib_find_cached_gid()
116 cache = device->cache.gid_cache[p]; in ib_find_cached_gid()
117 for (i = 0; i < cache->table_len; ++i) { in ib_find_cached_gid()
[all …]
/drivers/video/
Dsh_mobile_meram.c133 struct sh_mobile_meram_icb *cache; member
227 plane->cache = &priv->icbs[idx]; in meram_plane_alloc()
239 __set_bit(plane->cache->index, &priv->used_icb); in meram_plane_alloc()
255 __clear_bit(plane->cache->index, &priv->used_icb); in meram_plane_free()
269 struct sh_mobile_meram_fb_cache *cache, in meram_set_next_addr() argument
273 struct sh_mobile_meram_icb *icb = cache->planes[0].marker; in meram_set_next_addr()
280 meram_write_icb(priv->base, cache->planes[0].cache->index, target, in meram_set_next_addr()
282 meram_write_icb(priv->base, cache->planes[0].marker->index, target, in meram_set_next_addr()
283 base_addr_y + cache->planes[0].marker->cache_unit); in meram_set_next_addr()
285 if (cache->nplanes == 2) { in meram_set_next_addr()
[all …]
/drivers/base/regmap/
Dregcache-flat.c22 unsigned int *cache; in regcache_flat_init() local
24 map->cache = kzalloc(sizeof(unsigned int) * (map->max_register + 1), in regcache_flat_init()
26 if (!map->cache) in regcache_flat_init()
29 cache = map->cache; in regcache_flat_init()
32 cache[map->reg_defaults[i].reg] = map->reg_defaults[i].def; in regcache_flat_init()
39 kfree(map->cache); in regcache_flat_exit()
40 map->cache = NULL; in regcache_flat_exit()
48 unsigned int *cache = map->cache; in regcache_flat_read() local
50 *value = cache[reg]; in regcache_flat_read()
58 unsigned int *cache = map->cache; in regcache_flat_write() local
[all …]
Dregcache.c127 map->cache = NULL; in regcache_init()
472 u8 *cache = base; in regcache_set_val() local
473 cache[idx] = val; in regcache_set_val()
477 u16 *cache = base; in regcache_set_val() local
478 cache[idx] = val; in regcache_set_val()
482 u32 *cache = base; in regcache_set_val() local
483 cache[idx] = val; in regcache_set_val()
505 const u8 *cache = base; in regcache_get_val() local
506 return cache[idx]; in regcache_get_val()
509 const u16 *cache = base; in regcache_get_val() local
[all …]
Dregcache-rbtree.c66 struct regcache_rbtree_ctx *rbtree_ctx = map->cache; in regcache_rbtree_lookup()
137 struct regcache_rbtree_ctx *rbtree_ctx = map->cache; in rbtree_show()
206 map->cache = kmalloc(sizeof *rbtree_ctx, GFP_KERNEL); in regcache_rbtree_init()
207 if (!map->cache) in regcache_rbtree_init()
210 rbtree_ctx = map->cache; in regcache_rbtree_init()
238 rbtree_ctx = map->cache; in regcache_rbtree_exit()
253 kfree(map->cache); in regcache_rbtree_exit()
254 map->cache = NULL; in regcache_rbtree_exit()
318 rbtree_ctx = map->cache; in regcache_rbtree_write()
390 rbtree_ctx = map->cache; in regcache_rbtree_sync()
Dregcache-lzo.c142 map->cache = kzalloc(blkcount * sizeof *lzo_blocks, in regcache_lzo_init()
144 if (!map->cache) in regcache_lzo_init()
146 lzo_blocks = map->cache; in regcache_lzo_init()
209 lzo_blocks = map->cache; in regcache_lzo_exit()
230 map->cache = NULL; in regcache_lzo_exit()
248 lzo_blocks = map->cache; in regcache_lzo_read()
287 lzo_blocks = map->cache; in regcache_lzo_write()
342 lzo_blocks = map->cache; in regcache_lzo_sync()
/drivers/power/
Dbq27x00_battery.c106 struct bq27x00_reg_cache cache; member
413 struct bq27x00_reg_cache cache = {0, }; in bq27x00_update() local
417 cache.flags = bq27x00_read(di, BQ27x00_REG_FLAGS, !is_bq27500); in bq27x00_update()
418 if (cache.flags >= 0) { in bq27x00_update()
420 && (cache.flags & BQ27000_FLAG_CI)) { in bq27x00_update()
422 cache.capacity = -ENODATA; in bq27x00_update()
423 cache.energy = -ENODATA; in bq27x00_update()
424 cache.time_to_empty = -ENODATA; in bq27x00_update()
425 cache.time_to_empty_avg = -ENODATA; in bq27x00_update()
426 cache.time_to_full = -ENODATA; in bq27x00_update()
[all …]
/drivers/block/
Dps3vram.c83 struct ps3vram_cache cache; member
317 struct ps3vram_cache *cache = &priv->cache; in ps3vram_cache_evict() local
319 if (!(cache->tags[entry].flags & CACHE_PAGE_DIRTY)) in ps3vram_cache_evict()
323 cache->tags[entry].address); in ps3vram_cache_evict()
324 if (ps3vram_upload(dev, CACHE_OFFSET + entry * cache->page_size, in ps3vram_cache_evict()
325 cache->tags[entry].address, DMA_PAGE_SIZE, in ps3vram_cache_evict()
326 cache->page_size / DMA_PAGE_SIZE) < 0) { in ps3vram_cache_evict()
329 entry * cache->page_size, cache->tags[entry].address, in ps3vram_cache_evict()
330 cache->page_size); in ps3vram_cache_evict()
332 cache->tags[entry].flags &= ~CACHE_PAGE_DIRTY; in ps3vram_cache_evict()
[all …]
/drivers/acpi/apei/
Dghes.c518 struct ghes_estatus_cache *cache; in ghes_estatus_cached() local
524 cache = rcu_dereference(ghes_estatus_caches[i]); in ghes_estatus_cached()
525 if (cache == NULL) in ghes_estatus_cached()
527 if (len != cache->estatus_len) in ghes_estatus_cached()
529 cache_estatus = GHES_ESTATUS_FROM_CACHE(cache); in ghes_estatus_cached()
532 atomic_inc(&cache->count); in ghes_estatus_cached()
534 if (now - cache->time_in < GHES_ESTATUS_IN_CACHE_MAX_NSEC) in ghes_estatus_cached()
548 struct ghes_estatus_cache *cache; in ghes_estatus_cache_alloc() local
558 cache = (void *)gen_pool_alloc(ghes_estatus_pool, cache_len); in ghes_estatus_cache_alloc()
559 if (!cache) { in ghes_estatus_cache_alloc()
[all …]
/drivers/gpio/
Dgpio-mcp23s08.c59 u16 cache[11]; member
175 if ((n + reg) > sizeof mcp->cache) in mcp23s08_read_regs()
217 if ((n + reg) > sizeof mcp->cache) in mcp23s17_read_regs()
254 mcp->cache[MCP_IODIR] |= (1 << offset); in mcp23s08_direction_input()
255 status = mcp->ops->write(mcp, MCP_IODIR, mcp->cache[MCP_IODIR]); in mcp23s08_direction_input()
272 mcp->cache[MCP_GPIO] = status; in mcp23s08_get()
281 unsigned olat = mcp->cache[MCP_OLAT]; in __mcp23s08_set()
287 mcp->cache[MCP_OLAT] = olat; in __mcp23s08_set()
311 mcp->cache[MCP_IODIR] &= ~mask; in mcp23s08_direction_output()
312 status = mcp->ops->write(mcp, MCP_IODIR, mcp->cache[MCP_IODIR]); in mcp23s08_direction_output()
[all …]
/drivers/md/bcache/
Dalloc.c72 uint8_t bch_inc_gen(struct cache *ca, struct bucket *b) in bch_inc_gen()
90 struct cache *ca; in bch_rescale_priorities()
126 struct cache *ca;
136 struct cache *ca = d->ca; in discard_finish()
165 static void do_discard(struct cache *ca, long bucket) in do_discard()
198 bool bch_bucket_add_unused(struct cache *ca, struct bucket *b) in bch_bucket_add_unused()
217 static bool can_invalidate_bucket(struct cache *ca, struct bucket *b) in can_invalidate_bucket()
224 static void invalidate_one_bucket(struct cache *ca, struct bucket *b) in invalidate_one_bucket()
238 static void invalidate_buckets_lru(struct cache *ca) in invalidate_buckets_lru()
288 static void invalidate_buckets_fifo(struct cache *ca) in invalidate_buckets_fifo()
[all …]
Dbcache.h557 struct cache { struct
688 struct cache *cache[MAX_CACHES_PER_SET]; member
689 struct cache *cache_by_alloc[MAX_CACHES_PER_SET];
1014 static inline struct cache *PTR_CACHE(struct cache_set *c, in PTR_CACHE()
1018 return c->cache[PTR_DEV(k, ptr)]; in PTR_CACHE()
1101 for (iter = 0; ca = cs->cache[iter], iter < (cs)->sb.nr_in_set; iter++)
1126 struct cache *_c; \
1181 void bch_count_io_errors(struct cache *, int, const char *);
1193 uint8_t bch_inc_gen(struct cache *, struct bucket *);
1195 bool bch_bucket_add_unused(struct cache *, struct bucket *);
[all …]
/drivers/net/wireless/prism54/
Doid_mgt.c425 void *cache, *_data = data; in mgt_set_request() local
436 cache = priv->mib[n]; in mgt_set_request()
437 cache += (cache ? extra * dlen : 0); in mgt_set_request()
442 _data = cache; in mgt_set_request()
451 if (cache) in mgt_set_request()
463 } else if (!cache) in mgt_set_request()
466 if (cache) { in mgt_set_request()
468 memcpy(cache, _data, dlen); in mgt_set_request()
525 void *cache, *_res = NULL; in mgt_get_request() local
538 cache = priv->mib[n]; in mgt_get_request()
[all …]
/drivers/hwmon/
Dapplesmc.c142 struct applesmc_entry *cache; /* cached key entries */ member
329 struct applesmc_entry *cache = &smcreg.cache[index]; in applesmc_get_entry_by_index() local
334 if (cache->valid) in applesmc_get_entry_by_index()
335 return cache; in applesmc_get_entry_by_index()
339 if (cache->valid) in applesmc_get_entry_by_index()
349 memcpy(cache->key, key, 4); in applesmc_get_entry_by_index()
350 cache->len = info[0]; in applesmc_get_entry_by_index()
351 memcpy(cache->type, &info[1], 4); in applesmc_get_entry_by_index()
352 cache->flags = info[5]; in applesmc_get_entry_by_index()
353 cache->valid = 1; in applesmc_get_entry_by_index()
[all …]
/drivers/gpu/drm/shmobile/
Dshmob_drm_crtc.c262 if (scrtc->cache) { in shmob_drm_crtc_stop()
263 sh_mobile_meram_cache_free(sdev->meram, scrtc->cache); in shmob_drm_crtc_stop()
264 scrtc->cache = NULL; in shmob_drm_crtc_stop()
314 if (scrtc->cache) in shmob_drm_crtc_compute_base()
315 sh_mobile_meram_cache_update(sdev->meram, scrtc->cache, in shmob_drm_crtc_compute_base()
373 void *cache; in shmob_drm_crtc_mode_set() local
389 if (scrtc->cache) { in shmob_drm_crtc_mode_set()
390 sh_mobile_meram_cache_free(sdev->meram, scrtc->cache); in shmob_drm_crtc_mode_set()
391 scrtc->cache = NULL; in shmob_drm_crtc_mode_set()
394 cache = sh_mobile_meram_cache_alloc(sdev->meram, mdata, in shmob_drm_crtc_mode_set()
[all …]
/drivers/macintosh/
Dwindfarm_smu_sat.c41 u8 cache[16]; member
131 err = i2c_smbus_read_i2c_block_data(sat->i2c, 0x3f, 16, sat->cache); in wf_sat_read_cache()
140 DBG(" %.2x", sat->cache[i]); in wf_sat_read_cache()
165 val = ((sat->cache[i] << 8) + sat->cache[i+1]) << sens->shift; in wf_sat_sensor_get()
169 val = (val * ((sat->cache[i] << 8) + sat->cache[i+1])) >> 4; in wf_sat_sensor_get()
/drivers/usb/core/
Dquirks.c162 struct usb_interface_cache *cache; in usb_match_any_interface() local
165 cache = cfg->intf_cache[j]; in usb_match_any_interface()
166 if (cache->num_altsetting == 0) in usb_match_any_interface()
169 intf = &cache->altsetting[0]; in usb_match_any_interface()
/drivers/net/ethernet/dec/tulip/
Dde4x5.c837 } cache; member
1144 skb_queue_head_init(&lp->cache.queue); in de4x5_hw_init()
1145 lp->cache.gepc = GEP_INIT; in de4x5_hw_init()
1481 if (test_and_set_bit(0, (void *)&lp->cache.lock) && !lp->interrupt) in de4x5_queue_pkt()
1496 if (!skb_queue_empty(&lp->cache.queue) && !lp->interrupt) { in de4x5_queue_pkt()
1520 lp->cache.lock = 0; in de4x5_queue_pkt()
1587 if (!test_and_set_bit(0, (void *)&lp->cache.lock)) { in de4x5_interrupt()
1588 while (!skb_queue_empty(&lp->cache.queue) && !netif_queue_stopped(dev) && lp->tx_enable) { in de4x5_interrupt()
1591 lp->cache.lock = 0; in de4x5_interrupt()
3665 __skb_queue_purge(&lp->cache.queue); in de4x5_free_tx_buffs()
[all …]
Dde4x5.h929 if (!lp->useSROM) lp->cache.gep = 0;\
938 lp->cache.gep = (lp->fdx ? 0 : GEP_FDXD);\
939 gep_wr(lp->cache.gep, dev);\
958 if (!lp->useSROM) lp->cache.gep = 0;\
967 lp->cache.gep = (lp->fdx ? 0 : GEP_FDXD) | GEP_MODE;\
968 gep_wr(lp->cache.gep, dev);\
984 lp->cache.gep = (GEP_FDXD | GEP_MODE);\
985 gep_wr(lp->cache.gep, dev);\
/drivers/staging/usbip/userspace/
DINSTALL27 It can also use an optional file (typically called `config.cache'
28 and enabled with `--cache-file=config.cache' or simply `-C') that saves
31 cache files.
36 be considered for the next release. If you are using the cache, and at
37 some point `config.cache' contains results you don't want to keep, you
215 `--cache-file=FILE'
216 Enable the cache: use and save the results of the tests in FILE,
217 traditionally `config.cache'. FILE defaults to `/dev/null' to
220 `--config-cache'
222 Alias for `--cache-file=config.cache'.
/drivers/iommu/
Dtegra-smmu.c101 #define __SMMU_CACHE_CONFIG(mc, cache) (SMMU_CACHE_CONFIG_BASE + 4 * cache) argument
102 #define SMMU_CACHE_CONFIG(cache) __SMMU_CACHE_CONFIG(_MC, cache) argument
144 #define SMMU_STATS_CACHE_COUNT(mc, cache, hitmiss) \ argument
145 (SMMU_STATS_CACHE_COUNT_BASE + 8 * cache + 4 * hitmiss)
290 int cache; member
1002 offs = SMMU_CACHE_CONFIG(info->cache); in smmu_debugfs_stats_write()
1044 offs = SMMU_STATS_CACHE_COUNT(info->mc, info->cache, i); in smmu_debugfs_stats_show()
1100 struct dentry *cache; in smmu_debugfs_create() local
1107 info->cache = j; in smmu_debugfs_create()
1109 cache = debugfs_create_file(smmu_debugfs_cache[j], in smmu_debugfs_create()
[all …]

1234