Searched refs:refcount (Results 326 - 350 of 761) sorted by relevance

<<11121314151617181920>>

/linux-master/fs/overlayfs/
H A Dreaddir.c33 long refcount; member in struct:ovl_dir_cache
246 WARN_ON(cache->refcount <= 0);
247 cache->refcount--;
248 if (!cache->refcount) {
408 WARN_ON(!cache->refcount);
409 cache->refcount++;
418 cache->refcount = 1;
/linux-master/drivers/staging/fieldbus/anybuss/
H A Dhost.c268 struct kref refcount; member in struct:ab_task
289 kref_init(&t->refcount);
297 static void __ab_task_destroy(struct kref *refcount) argument
299 struct ab_task *t = container_of(refcount, struct ab_task, refcount);
307 kref_put(&t->refcount, __ab_task_destroy);
312 kref_get(&t->refcount);
/linux-master/net/ipv4/
H A Dcipso_ipv4.c253 refcount_inc(&entry->lsm_data->refcount);
321 refcount_inc(&secattr->cache->refcount);
364 if (iter->doi == doi && refcount_read(&iter->refcount))
418 refcount_set(&doi_def->refcount, 1);
560 if (!refcount_inc_not_zero(&doi_def->refcount))
581 if (!refcount_dec_and_test(&doi_def->refcount))
611 if (refcount_read(&iter_doi->refcount) > 0) {
/linux-master/drivers/infiniband/hw/mthca/
H A Dmthca_cq.c243 ++cq->refcount;
259 if (!--cq->refcount)
820 cq->refcount = 1;
894 c = cq->refcount;
930 --cq->refcount;
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/steering/
H A Ddr_matcher.c997 refcount_inc(&tbl->refcount);
1006 refcount_set(&matcher->refcount, 1);
1026 refcount_dec(&tbl->refcount);
1095 if (WARN_ON_ONCE(refcount_read(&matcher->refcount) > 1))
1102 refcount_dec(&matcher->tbl->refcount);
/linux-master/sound/soc/qcom/qdsp6/
H A Dq6apm.c51 kref_get(&graph->refcount);
87 kref_init(&graph->refcount);
135 graph = container_of(ref, struct audioreach_graph, refcount);
647 kref_put(&ar_graph->refcount, q6apm_put_audioreach_graph);
657 kref_put(&ar_graph->refcount, q6apm_put_audioreach_graph);
/linux-master/drivers/infiniband/sw/rdmavt/
H A Dmr.c82 percpu_ref_exit(&mr->refcount);
88 refcount);
110 if (percpu_ref_init(&mr->refcount, &__rvt_mregion_complete,
234 percpu_ref_kill(&mr->refcount);
457 "%s timeout mr %p pd %p lkey %x refcount %ld\n",
459 atomic_long_read(&mr->refcount.data->count));
/linux-master/sound/soc/stm/
H A Dstm32_i2s.c227 * @refcount: keep count of opened streams on I2S
252 int refcount; member in struct:stm32_i2s_data
850 i2s->refcount++;
856 if (STM32_I2S_IS_MASTER(i2s) && i2s->refcount == 1)
884 i2s->refcount--;
885 if (i2s->refcount) {
/linux-master/drivers/acpi/
H A Dosl.c83 unsigned long refcount; member in union:acpi_ioremap::__anon69
258 map->track.refcount++;
343 map->track.refcount++;
366 map->track.refcount = 1;
395 if (--map->track.refcount)
/linux-master/drivers/gpu/drm/panfrost/
H A Dpanfrost_mmu.c428 kref_get(&mapping->refcount);
557 refcount);
580 kref_put(&mmu->refcount, panfrost_mmu_release_ctx);
585 kref_get(&mmu->refcount);
650 kref_init(&mmu->refcount);
/linux-master/fs/smb/client/
H A Dmisc.c108 kref_put(&iface->refcount, release_iface);
631 * Bump the handle refcount now while we hold the
1015 kref_init(&ctx->refcount);
1020 cifs_aio_ctx_release(struct kref *refcount) argument
1022 struct cifs_aio_ctx *ctx = container_of(refcount,
1023 struct cifs_aio_ctx, refcount);
/linux-master/drivers/gpu/drm/mediatek/
H A Dmtk_dpi.c85 int refcount; member in struct:mtk_dpi
466 if (WARN_ON(dpi->refcount == 0))
469 if (--dpi->refcount != 0)
481 if (++dpi->refcount != 1)
501 dpi->refcount--;
/linux-master/drivers/gpu/drm/
H A Ddrm_gem.c160 kref_init(&obj->refcount);
289 /* Release driver's reference and decrement refcount. */
977 container_of(kref, struct drm_gem_object, refcount);
1126 if (!kref_get_unless_zero(&obj->refcount))
1152 drm_printf_indent(p, indent, "refcount=%u\n",
1153 kref_read(&obj->refcount));
1468 if (!kref_get_unless_zero(&obj->refcount))
/linux-master/kernel/
H A Dkcov.c25 #include <linux/refcount.h>
54 refcount_t refcount; member in struct:kcov
422 refcount_inc(&kcov->refcount);
427 if (refcount_dec_and_test(&kcov->refcount)) {
517 refcount_set(&kcov->refcount, 1);
/linux-master/drivers/perf/
H A Dalibaba_uncore_drw_pmu.c30 #include <linux/refcount.h>
90 refcount_t refcount; member in struct:ali_drw_pmu_irq
430 && refcount_inc_not_zero(&irq->refcount))
442 refcount_set(&irq->refcount, 1);
511 if (!refcount_dec_and_test(&irq->refcount)) {
/linux-master/net/batman-adv/
H A Dtranslation-table.c150 if (!kref_get_unless_zero(&tt->refcount))
221 common.refcount);
239 kref_put(&tt_local_entry->common.refcount,
253 common.refcount);
392 refcount);
409 kref_put(&orig_entry->refcount, batadv_tt_orig_list_entry_release);
693 kref_init(&tt_local->common.refcount);
705 kref_get(&tt_local->common.refcount);
1411 if (!kref_get_unless_zero(&tmp_orig_entry->refcount))
1510 kref_get(&orig_node->refcount);
[all...]
H A Dsend.c184 /* batadv_find_router() increases neigh_nodes refcount if found. */
524 kref_get(&if_incoming->refcount);
527 kref_get(&if_outgoing->refcount);
936 if (!kref_get_unless_zero(&hard_iface->refcount))
H A Ddistributed-arp-table.c117 dat_entry = container_of(ref, struct batadv_dat_entry, refcount);
132 kref_put(&dat_entry->refcount, batadv_dat_entry_release);
348 if (!kref_get_unless_zero(&dat_entry->refcount))
393 kref_init(&dat_entry->refcount);
395 kref_get(&dat_entry->refcount);
594 if (!kref_get_unless_zero(&orig_node->refcount))
/linux-master/ipc/
H A Dutil.c220 * (i.e.: set new->deleted, reduce refcount, call_rcu())
284 /* 1) Initialize the refcount so that ipc_rcu_putref works */
285 refcount_set(&new->refcount, 1);
530 return refcount_inc_not_zero(&ptr->refcount);
536 if (!refcount_dec_and_test(&ptr->refcount))
/linux-master/drivers/gpu/drm/etnaviv/
H A Detnaviv_gem_submit.c50 kref_init(&submit->refcount);
96 * Take a refcount on the object. The file table lock
97 * prevents the object_idr's refcount on this being dropped.
362 container_of(kref, struct etnaviv_gem_submit, refcount);
409 kref_put(&submit->refcount, submit_cleanup);
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Drx_res.c149 unsigned int refcount; local
151 refcount = mlx5e_rss_refcnt_read(rss);
153 "Failed to destroy RSS context %d, refcount = %u, err = %d\n",
154 i, refcount, err);
/linux-master/arch/x86/kernel/cpu/sgx/
H A Dmain.c318 if (kref_get_unless_zero(&encl_page->encl->refcount) != 0)
353 kref_put(&encl_page->encl->refcount, sgx_encl_release);
372 kref_put(&encl_page->encl->refcount, sgx_encl_release);
/linux-master/drivers/infiniband/hw/qib/
H A Dqib_user_sdma.c62 int refcount; member in struct:qib_user_sdma_rb_node
226 sdma_rb_node->refcount++;
233 sdma_rb_node->refcount = 1;
1109 pq->sdma_rb_node->refcount--;
1110 if (pq->sdma_rb_node->refcount == 0) {
1339 if (pq->sdma_rb_node->refcount > 1) {
/linux-master/drivers/infiniband/core/
H A Duverbs_main.c211 if (refcount_dec_and_test(&file->device->refcount))
903 if (!refcount_inc_not_zero(&dev->refcount))
967 if (refcount_dec_and_test(&dev->refcount))
1136 refcount_set(&uverbs_dev->refcount, 1);
1178 if (refcount_dec_and_test(&uverbs_dev->refcount))
1241 if (refcount_dec_and_test(&uverbs_dev->refcount))
/linux-master/net/tls/
H A Dtls_device.c76 /* Safe, because this is the destroy flow, refcount is 0, so
80 !refcount_read(&ctx->refcount));
95 if (unlikely(!refcount_dec_and_test(&ctx->refcount))) {
102 /* Safe, because this is the destroy flow, refcount is 0, so
106 !refcount_read(&ctx->refcount));
1025 refcount_set(&ctx->refcount, 1);
1311 !refcount_inc_not_zero(&ctx->refcount))
1362 if (refcount_dec_and_test(&ctx->refcount)) {

Completed in 337 milliseconds

<<11121314151617181920>>