Home
last modified time | relevance | path

Searched refs:refcnt (Results 1 – 25 of 141) sorted by relevance

123456

/third_party/alsa-lib/src/
Ddlmisc.c285 unsigned int refcnt; member
326 c->refcnt++; in snd_dlobj_cache_get0()
353 c->refcnt = 1; in snd_dlobj_cache_get0()
395 c->refcnt++; in snd_dlobj_cache_get2()
405 unsigned int refcnt; in snd_dlobj_cache_put() local
414 refcnt = c->refcnt; in snd_dlobj_cache_put()
415 if (c->refcnt > 0) in snd_dlobj_cache_put()
416 c->refcnt--; in snd_dlobj_cache_put()
418 return refcnt == 1 ? 0 : -EINVAL; in snd_dlobj_cache_put()
433 if (c->refcnt) in snd_dlobj_cache_cleanup()
/third_party/mesa3d/src/util/
Du_debug_refcnt.c162 unsigned refcnt = p->count; in debug_reference_slowpath() local
177 if (refcnt <= 10) { in debug_reference_slowpath()
178 for (i = 1; i <= refcnt - change; ++i) { in debug_reference_slowpath()
188 change > 0 ? "AddRef" : "Release", refcnt); in debug_reference_slowpath()
192 if (!refcnt) { in debug_reference_slowpath()
/third_party/libdrm/etnaviv/
Detnaviv_device.c51 atomic_set(&dev->refcnt, 1); in etna_device_new()
77 atomic_inc(&dev->refcnt); in etna_device_ref()
96 if (!atomic_dec_and_test(&dev->refcnt)) in etna_device_del_locked()
104 if (!atomic_dec_and_test(&dev->refcnt)) in etna_device_del()
/third_party/libdrm/omap/
Domap_drm.c54 atomic_t refcnt; member
77 atomic_t refcnt; member
86 atomic_set(&dev->refcnt, 1); in omap_device_new_impl()
116 atomic_inc(&dev->refcnt); in omap_device_ref()
122 if (!atomic_dec_and_test(&dev->refcnt)) in omap_device_del()
183 atomic_set(&bo->refcnt, 1); in bo_from_handle()
257 atomic_inc(&bo->refcnt); in omap_bo_ref()
353 if (!atomic_dec_and_test(&bo->refcnt)) in omap_bo_del()
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet/
Dsctp_peeloff.c160 atomic_add_int(&stcb->asoc.refcnt, 1); in sctp_do_peeloff()
168 atomic_subtract_int(&stcb->asoc.refcnt, 1); in sctp_do_peeloff()
194 atomic_add_int(&stcb->asoc.refcnt, 1); in sctp_get_peeloff()
211 atomic_subtract_int(&stcb->asoc.refcnt, 1); in sctp_get_peeloff()
221 atomic_subtract_int(&stcb->asoc.refcnt, 1); in sctp_get_peeloff()
289 atomic_add_int(&stcb->asoc.refcnt, 1); in sctp_get_peeloff()
300 atomic_subtract_int(&stcb->asoc.refcnt, 1); in sctp_get_peeloff()
/third_party/mesa3d/src/etnaviv/drm/
Detnaviv_device.c65 p_atomic_set(&dev->refcnt, 1); in etna_device_new()
100 p_atomic_inc(&dev->refcnt); in etna_device_ref()
127 if (!p_atomic_dec_zero(&dev->refcnt)) in etna_device_del_locked()
135 if (!p_atomic_dec_zero(&dev->refcnt)) in etna_device_del()
Detnaviv_priv.h70 int refcnt; member
113 int refcnt; member
207 msg, bo, bo->va, bo->size, bo->flags, bo->refcnt, bo->handle, bo->name);
/third_party/libdrm/freedreno/
Dfreedreno_device.c80 atomic_set(&dev->refcnt, 1); in fd_device_new()
106 atomic_inc(&dev->refcnt); in fd_device_ref()
123 if (!atomic_dec_and_test(&dev->refcnt)) in fd_device_del_locked()
130 if (!atomic_dec_and_test(&dev->refcnt)) in fd_device_del()
Dfreedreno_pipe.c60 atomic_set(&pipe->refcnt, 1); in fd_pipe_new2()
76 atomic_inc(&pipe->refcnt); in fd_pipe_ref()
82 if (!atomic_dec_and_test(&pipe->refcnt)) in fd_pipe_del()
Dfreedreno_ringbuffer.c76 if (!atomic_dec_and_test(&ring->refcnt)) in fd_ringbuffer_del()
86 STATIC_ASSERT(sizeof(ring->refcnt) <= sizeof(ring->__pad)); in fd_ringbuffer_ref()
87 atomic_inc(&ring->refcnt); in fd_ringbuffer_ref()
/third_party/python/Lib/ctypes/test/
Dtest_internals.py23 refcnt = grc(i)
25 self.assertEqual(refcnt, grc(i))
30 refcnt = grc(s)
32 self.assertEqual(refcnt + 1, grc(s))
Dtest_python_api.py34 refcnt = grc(s)
36 self.assertEqual(grc(s), refcnt)
39 self.assertEqual(grc(s), refcnt)
/third_party/openssl/providers/implementations/keymgmt/
Dkdf_legacy_kmgmt.c46 kdfdata->refcnt = 1; in ossl_kdf_data_new()
58 CRYPTO_DOWN_REF(&kdfdata->refcnt, &ref, kdfdata->lock); in ossl_kdf_data_free()
80 CRYPTO_UP_REF(&kdfdata->refcnt, &ref, kdfdata->lock); in ossl_kdf_data_up_ref()
/third_party/openssl/crypto/evp/
Devp_local.h90 CRYPTO_REF_COUNT refcnt; /* Context reference count */ member
101 CRYPTO_REF_COUNT refcnt; member
141 CRYPTO_REF_COUNT refcnt; member
161 CRYPTO_REF_COUNT refcnt; member
196 CRYPTO_REF_COUNT refcnt; member
217 CRYPTO_REF_COUNT refcnt; member
Devp_rand.c29 CRYPTO_REF_COUNT refcnt; member
58 return CRYPTO_UP_REF(&rand->refcnt, &ref, rand->refcnt_lock); in evp_rand_up_ref()
69 CRYPTO_DOWN_REF(&rand->refcnt, &ref, rand->refcnt_lock); in evp_rand_free()
87 rand->refcnt = 1; in evp_rand_new()
327 return CRYPTO_UP_REF(&ctx->refcnt, &ref, ctx->refcnt_lock); in evp_rand_ctx_up_ref()
369 ctx->refcnt = 1; in EVP_RAND_CTX_new()
381 CRYPTO_DOWN_REF(&ctx->refcnt, &ref, ctx->refcnt_lock); in EVP_RAND_CTX_free()
/third_party/mesa3d/src/panfrost/lib/
Dpan_bo.c409 p_atomic_set(&bo->refcnt, 1); in panfrost_bo_create()
425 ASSERTED int count = p_atomic_inc_return(&bo->refcnt); in panfrost_bo_reference()
437 if (p_atomic_dec_return(&bo->refcnt)) in panfrost_bo_unreference()
447 if (p_atomic_read(&bo->refcnt) == 0) { in panfrost_bo_unreference()
496 p_atomic_set(&bo->refcnt, 1); in panfrost_bo_import()
508 if (p_atomic_read(&bo->refcnt) == 0) in panfrost_bo_import()
509 p_atomic_set(&bo->refcnt, 1); in panfrost_bo_import()
/third_party/mesa3d/src/freedreno/drm/
Dfreedreno_ringbuffer.c37 submit->refcnt = 1; in fd_submit_new()
45 if (!p_atomic_dec_zero(&submit->refcnt)) in fd_submit_del()
59 p_atomic_inc(&submit->refcnt); in fd_submit_ref()
Dfreedreno_device.c86 p_atomic_set(&dev->refcnt, 1); in fd_device_new()
138 p_atomic_inc(&dev->refcnt); in fd_device_ref()
184 if (!p_atomic_dec_zero(&dev->refcnt)) in fd_device_del_locked()
192 if (!p_atomic_dec_zero(&dev->refcnt)) in fd_device_del()
Dfreedreno_pipe.c58 p_atomic_set(&pipe->refcnt, 1); in fd_pipe_new2()
107 pipe->refcnt++; in fd_pipe_ref_locked()
123 if (!p_atomic_dec_zero(&pipe->refcnt)) in fd_pipe_del_locked()
/third_party/musl/src/thread/
Dsem_open.c25 int refcnt; member
60 cnt += semtab[i].refcnt; in sem_open()
153 semtab[slot].refcnt++; in sem_open()
173 if (--semtab[i].refcnt) { in sem_close()
/third_party/musl/porting/liteos_a/user/src/thread/
Dsem_open.c25 int refcnt; member
60 cnt += semtab[i].refcnt; in sem_open()
151 semtab[slot].refcnt++; in sem_open()
171 if (!--semtab[i].refcnt) { in sem_close()
/third_party/mesa3d/src/gallium/winsys/svga/drm/
Dvmw_shader.c49 src_ref = src ? &src->refcnt : NULL; in vmw_svga_winsys_shader_reference()
50 dst_ref = dst ? &dst->refcnt : NULL; in vmw_svga_winsys_shader_reference()
89 pipe_reference_init(&shader->refcnt, 1); in vmw_svga_shader_create()
/third_party/toybox/toys/other/
Dlsmod.c27 *refcnt = strtok(NULL, " "), *users = strtok(NULL, " "); in lsmod_main() local
32 xprintf("%-19s %8s %s %s\n", name, size, refcnt, users); in lsmod_main()
/third_party/mesa3d/src/gallium/drivers/lima/
Dlima_bo.h37 int refcnt; member
62 p_atomic_inc(&bo->refcnt); in lima_bo_reference()
/third_party/mesa3d/src/gallium/winsys/lima/drm/
Dlima_drm_winsys.c49 destroy = --screen->refcnt == 0; in lima_drm_screen_destroy()
81 lima_screen(pscreen)->refcnt++; in lima_drm_screen_create()

123456