/third_party/alsa-lib/src/ |
D | dlmisc.c | 285 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/ |
D | u_debug_refcnt.c | 162 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/ |
D | etnaviv_device.c | 51 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/ |
D | omap_drm.c | 54 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/ |
D | sctp_peeloff.c | 160 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/ |
D | etnaviv_device.c | 65 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()
|
D | etnaviv_priv.h | 70 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/ |
D | freedreno_device.c | 80 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()
|
D | freedreno_pipe.c | 60 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()
|
D | freedreno_ringbuffer.c | 76 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/ |
D | test_internals.py | 23 refcnt = grc(i) 25 self.assertEqual(refcnt, grc(i)) 30 refcnt = grc(s) 32 self.assertEqual(refcnt + 1, grc(s))
|
D | test_python_api.py | 34 refcnt = grc(s) 36 self.assertEqual(grc(s), refcnt) 39 self.assertEqual(grc(s), refcnt)
|
/third_party/openssl/providers/implementations/keymgmt/ |
D | kdf_legacy_kmgmt.c | 46 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/ |
D | evp_local.h | 90 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
|
D | evp_rand.c | 29 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/ |
D | pan_bo.c | 409 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/ |
D | freedreno_ringbuffer.c | 37 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()
|
D | freedreno_device.c | 86 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()
|
D | freedreno_pipe.c | 58 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/ |
D | sem_open.c | 25 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/ |
D | sem_open.c | 25 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/ |
D | vmw_shader.c | 49 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/ |
D | lsmod.c | 27 *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/ |
D | lima_bo.h | 37 int refcnt; member 62 p_atomic_inc(&bo->refcnt); in lima_bo_reference()
|
/third_party/mesa3d/src/gallium/winsys/lima/drm/ |
D | lima_drm_winsys.c | 49 destroy = --screen->refcnt == 0; in lima_drm_screen_destroy() 81 lima_screen(pscreen)->refcnt++; in lima_drm_screen_create()
|