Home
last modified time | relevance | path

Searched refs:cache_lock (Results 1 - 25 of 40) sorted by relevance

12

/kernel/linux/linux-5.10/fs/nfsd/
H A Dnfscache.c35 spinlock_t cache_lock; member
140 spin_lock(&b->cache_lock); in nfsd_reply_cache_free()
142 spin_unlock(&b->cache_lock); in nfsd_reply_cache_free()
182 spin_lock_init(&nn->drc_hashtbl[i].cache_lock); in nfsd_reply_cache_init()
264 spin_lock(&b->cache_lock); in prune_cache_entries()
266 spin_unlock(&b->cache_lock); in prune_cache_entries()
336 * Must be called with cache_lock held. Returns the found entry or
388 * a suitable one isn't there, then drop the cache_lock and allocate a
424 spin_lock(&b->cache_lock); in nfsd_cache_lookup()
443 spin_unlock(&b->cache_lock); in nfsd_cache_lookup()
[all...]
/kernel/linux/linux-6.6/fs/nfsd/
H A Dnfscache.c35 spinlock_t cache_lock; member
161 spin_lock(&b->cache_lock); in nfsd_reply_cache_free()
163 spin_unlock(&b->cache_lock); in nfsd_reply_cache_free()
226 spin_lock_init(&nn->drc_hashtbl[i].cache_lock); in nfsd_reply_cache_init()
290 lockdep_assert_held(&b->cache_lock); in nfsd_prune_bucket_locked()
358 spin_lock(&b->cache_lock); in nfsd_reply_cache_scan()
360 spin_unlock(&b->cache_lock); in nfsd_reply_cache_scan()
438 * Must be called with cache_lock held. Returns the found entry or
493 * a suitable one isn't there, then drop the cache_lock and allocate a
531 spin_lock(&b->cache_lock); in nfsd_cache_lookup()
[all...]
/kernel/linux/linux-5.10/arch/csky/mm/
H A Dcachev2.c38 static DEFINE_SPINLOCK(cache_lock);
52 spin_lock_irqsave(&cache_lock, flags); in local_icache_inv_range()
57 spin_unlock_irqrestore(&cache_lock, flags); in local_icache_inv_range()
H A Dcachev1.c23 static DEFINE_SPINLOCK(cache_lock);
65 spin_lock_irqsave(&cache_lock, flags); in cache_op_range()
75 spin_unlock_irqrestore(&cache_lock, flags); in cache_op_range()
/kernel/linux/linux-6.6/arch/csky/mm/
H A Dcachev2.c38 static DEFINE_SPINLOCK(cache_lock);
52 spin_lock_irqsave(&cache_lock, flags); in local_icache_inv_range()
57 spin_unlock_irqrestore(&cache_lock, flags); in local_icache_inv_range()
H A Dcachev1.c23 static DEFINE_SPINLOCK(cache_lock);
65 spin_lock_irqsave(&cache_lock, flags); in cache_op_range()
75 spin_unlock_irqrestore(&cache_lock, flags); in cache_op_range()
/kernel/linux/linux-5.10/arch/powerpc/oprofile/cell/
H A Dspu_task_sync.c33 static DEFINE_SPINLOCK(cache_lock);
154 * cache_lock if needed prior to invoking this function.
194 /* We won't bother getting cache_lock here since in prepare_cached_spu_info()
228 spin_lock_irqsave(&cache_lock, flags); in prepare_cached_spu_info()
242 spin_unlock_irqrestore(&cache_lock, flags); in prepare_cached_spu_info()
253 * cache_lock prior to calling this function.
431 spin_lock_irqsave(&cache_lock, flags); in spu_active_notify()
433 spin_unlock_irqrestore(&cache_lock, flags); in spu_active_notify()
563 /* We need to obtain the cache_lock here because it's in spu_sync_buffer()
568 spin_lock_irqsave(&cache_lock, flag in spu_sync_buffer()
[all...]
/kernel/linux/linux-5.10/drivers/base/regmap/
H A Dregmap-debugfs.c114 mutex_lock(&map->cache_lock); in regmap_debugfs_get_dump_start()
136 mutex_unlock(&map->cache_lock); in regmap_debugfs_get_dump_start()
169 mutex_unlock(&map->cache_lock); in regmap_debugfs_get_dump_start()
176 mutex_unlock(&map->cache_lock); in regmap_debugfs_get_dump_start()
201 mutex_lock(&map->cache_lock); in regmap_next_readable_reg()
210 mutex_unlock(&map->cache_lock); in regmap_next_readable_reg()
400 mutex_lock(&map->cache_lock); in regmap_reg_ranges_read_file()
412 mutex_unlock(&map->cache_lock); in regmap_reg_ranges_read_file()
579 mutex_init(&map->cache_lock); in regmap_debugfs_init()
659 mutex_lock(&map->cache_lock); in regmap_debugfs_exit()
[all...]
/kernel/linux/linux-6.6/drivers/base/regmap/
H A Dregmap-debugfs.c114 mutex_lock(&map->cache_lock); in regmap_debugfs_get_dump_start()
136 mutex_unlock(&map->cache_lock); in regmap_debugfs_get_dump_start()
169 mutex_unlock(&map->cache_lock); in regmap_debugfs_get_dump_start()
176 mutex_unlock(&map->cache_lock); in regmap_debugfs_get_dump_start()
201 mutex_lock(&map->cache_lock); in regmap_next_readable_reg()
210 mutex_unlock(&map->cache_lock); in regmap_next_readable_reg()
400 mutex_lock(&map->cache_lock); in regmap_reg_ranges_read_file()
412 mutex_unlock(&map->cache_lock); in regmap_reg_ranges_read_file()
579 mutex_init(&map->cache_lock); in regmap_debugfs_init()
670 mutex_lock(&map->cache_lock); in regmap_debugfs_exit()
[all...]
/kernel/linux/linux-5.10/arch/c6x/platforms/
H A Dcache.c123 static DEFINE_SPINLOCK(cache_lock);
142 spin_lock_irqsave(&cache_lock, flags); in cache_block_operation()
148 spin_unlock_irqrestore(&cache_lock, flags); in cache_block_operation()
167 spin_unlock_irqrestore(&cache_lock, flags); in cache_block_operation()
187 spin_lock_irqsave(&cache_lock, flags); in cache_block_operation_nowait()
199 spin_unlock_irqrestore(&cache_lock, flags); in cache_block_operation_nowait()
/kernel/linux/linux-5.10/drivers/soc/qcom/
H A Drpmh.c125 spin_lock_irqsave(&ctrlr->cache_lock, flags); in cache_rpm_request()
160 spin_unlock_irqrestore(&ctrlr->cache_lock, flags); in cache_rpm_request()
291 spin_lock_irqsave(&ctrlr->cache_lock, flags); in cache_batch()
294 spin_unlock_irqrestore(&ctrlr->cache_lock, flags); in cache_batch()
454 if (!spin_trylock(&ctrlr->cache_lock)) in rpmh_flush()
489 spin_unlock(&ctrlr->cache_lock); in rpmh_flush()
506 spin_lock_irqsave(&ctrlr->cache_lock, flags); in rpmh_invalidate()
511 spin_unlock_irqrestore(&ctrlr->cache_lock, flags); in rpmh_invalidate()
H A Drpmh-internal.h78 * @cache_lock: synchronize access to the cache data
84 spinlock_t cache_lock; member
109 * cache_lock.
/kernel/linux/linux-6.6/drivers/soc/qcom/
H A Drpmh.c119 spin_lock_irqsave(&ctrlr->cache_lock, flags); in cache_rpm_request()
154 spin_unlock_irqrestore(&ctrlr->cache_lock, flags); in cache_rpm_request()
279 spin_lock_irqsave(&ctrlr->cache_lock, flags); in cache_batch()
282 spin_unlock_irqrestore(&ctrlr->cache_lock, flags); in cache_batch()
442 if (!spin_trylock(&ctrlr->cache_lock)) in rpmh_flush()
479 spin_unlock(&ctrlr->cache_lock); in rpmh_flush()
496 spin_lock_irqsave(&ctrlr->cache_lock, flags); in rpmh_invalidate()
501 spin_unlock_irqrestore(&ctrlr->cache_lock, flags); in rpmh_invalidate()
H A Drpmh-internal.h76 * @cache_lock: synchronize access to the cache data
82 spinlock_t cache_lock; member
114 * cache_lock.
/kernel/linux/linux-5.10/drivers/infiniband/core/
H A Dcache.c1057 read_lock_irqsave(&device->cache_lock, flags); in ib_get_cached_pkey()
1066 read_unlock_irqrestore(&device->cache_lock, flags); in ib_get_cached_pkey()
1081 read_lock_irqsave(&device->cache_lock, flags); in ib_get_cached_subnet_prefix()
1083 read_unlock_irqrestore(&device->cache_lock, flags); in ib_get_cached_subnet_prefix()
1103 read_lock_irqsave(&device->cache_lock, flags); in ib_find_cached_pkey()
1129 read_unlock_irqrestore(&device->cache_lock, flags); in ib_find_cached_pkey()
1148 read_lock_irqsave(&device->cache_lock, flags); in ib_find_exact_cached_pkey()
1166 read_unlock_irqrestore(&device->cache_lock, flags); in ib_find_exact_cached_pkey()
1182 read_lock_irqsave(&device->cache_lock, flags); in ib_get_cached_lmc()
1184 read_unlock_irqrestore(&device->cache_lock, flag in ib_get_cached_lmc()
[all...]
/kernel/linux/linux-6.6/drivers/infiniband/core/
H A Dcache.c1063 read_lock_irqsave(&device->cache_lock, flags); in ib_get_cached_pkey()
1072 read_unlock_irqrestore(&device->cache_lock, flags); in ib_get_cached_pkey()
1083 read_lock_irqsave(&device->cache_lock, flags); in ib_get_cached_subnet_prefix()
1085 read_unlock_irqrestore(&device->cache_lock, flags); in ib_get_cached_subnet_prefix()
1101 read_lock_irqsave(&device->cache_lock, flags); in ib_find_cached_pkey()
1128 read_unlock_irqrestore(&device->cache_lock, flags); in ib_find_cached_pkey()
1145 read_lock_irqsave(&device->cache_lock, flags); in ib_find_exact_cached_pkey()
1163 read_unlock_irqrestore(&device->cache_lock, flags); in ib_find_exact_cached_pkey()
1177 read_lock_irqsave(&device->cache_lock, flags); in ib_get_cached_lmc()
1179 read_unlock_irqrestore(&device->cache_lock, flag in ib_get_cached_lmc()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gvt/
H A Dkvmgt.c126 struct mutex cache_lock; member
358 mutex_lock(&vdev->cache_lock); in gvt_cache_destroy()
361 mutex_unlock(&vdev->cache_lock); in gvt_cache_destroy()
367 mutex_unlock(&vdev->cache_lock); in gvt_cache_destroy()
378 mutex_init(&vdev->cache_lock); in gvt_cache_init()
758 mutex_lock(&vdev->cache_lock); in intel_vgpu_iommu_notifier()
768 mutex_unlock(&vdev->cache_lock); in intel_vgpu_iommu_notifier()
1963 mutex_lock(&vdev->cache_lock); in kvmgt_dma_map_guest_page()
1991 mutex_unlock(&vdev->cache_lock); in kvmgt_dma_map_guest_page()
1997 mutex_unlock(&vdev->cache_lock); in kvmgt_dma_map_guest_page()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/bpf/
H A Dcmsg.c209 spin_lock(&nfp_map->cache_lock); in nfp_bpf_ctrl_op_cache_get()
257 spin_unlock(&nfp_map->cache_lock); in nfp_bpf_ctrl_op_cache_get()
275 spin_lock(&nfp_map->cache_lock); in nfp_bpf_ctrl_op_cache_put()
285 spin_unlock(&nfp_map->cache_lock); in nfp_bpf_ctrl_op_cache_put()
/kernel/linux/linux-6.6/drivers/net/ethernet/netronome/nfp/bpf/
H A Dcmsg.c209 spin_lock(&nfp_map->cache_lock); in nfp_bpf_ctrl_op_cache_get()
257 spin_unlock(&nfp_map->cache_lock); in nfp_bpf_ctrl_op_cache_get()
275 spin_lock(&nfp_map->cache_lock); in nfp_bpf_ctrl_op_cache_put()
285 spin_unlock(&nfp_map->cache_lock); in nfp_bpf_ctrl_op_cache_put()
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gvt/
H A Dkvmgt.c310 mutex_lock(&vgpu->cache_lock); in gvt_cache_destroy()
313 mutex_unlock(&vgpu->cache_lock); in gvt_cache_destroy()
319 mutex_unlock(&vgpu->cache_lock); in gvt_cache_destroy()
328 mutex_init(&vgpu->cache_lock); in gvt_cache_init()
620 mutex_lock(&vgpu->cache_lock); in intel_vgpu_dma_unmap()
630 mutex_unlock(&vgpu->cache_lock); in intel_vgpu_dma_unmap()
1638 mutex_lock(&vgpu->cache_lock); in intel_gvt_dma_map_guest_page()
1666 mutex_unlock(&vgpu->cache_lock); in intel_gvt_dma_map_guest_page()
1672 mutex_unlock(&vgpu->cache_lock); in intel_gvt_dma_map_guest_page()
1684 mutex_lock(&vgpu->cache_lock); in intel_gvt_dma_pin_guest_page()
[all...]
/kernel/linux/linux-5.10/net/sunrpc/
H A Dauth.c275 spinlock_t *cache_lock; in rpcauth_unhash_cred() local
280 cache_lock = &cred->cr_auth->au_credcache->lock; in rpcauth_unhash_cred()
281 spin_lock(cache_lock); in rpcauth_unhash_cred()
283 spin_unlock(cache_lock); in rpcauth_unhash_cred()
/kernel/linux/linux-5.10/security/selinux/ss/
H A Dsidtab.c52 spin_lock_init(&s->cache_lock); in sidtab_init()
563 spin_lock_irqsave(&s->cache_lock, flags); in sidtab_sid2str_put()
566 lockdep_is_held(&s->cache_lock)); in sidtab_sid2str_put()
594 spin_unlock_irqrestore(&s->cache_lock, flags); in sidtab_sid2str_put()
H A Dsidtab.h96 spinlock_t cache_lock; member
/kernel/linux/linux-6.6/net/sunrpc/
H A Dauth.c272 spinlock_t *cache_lock; in rpcauth_unhash_cred() local
277 cache_lock = &cred->cr_auth->au_credcache->lock; in rpcauth_unhash_cred()
278 spin_lock(cache_lock); in rpcauth_unhash_cred()
280 spin_unlock(cache_lock); in rpcauth_unhash_cred()
/kernel/linux/linux-6.6/security/selinux/ss/
H A Dsidtab.c53 spin_lock_init(&s->cache_lock); in sidtab_init()
568 spin_lock_irqsave(&s->cache_lock, flags); in sidtab_sid2str_put()
571 lockdep_is_held(&s->cache_lock)); in sidtab_sid2str_put()
599 spin_unlock_irqrestore(&s->cache_lock, flags); in sidtab_sid2str_put()

Completed in 24 milliseconds

12