Home
last modified time | relevance | path

Searched refs:refcount (Results 1 – 25 of 402) sorted by relevance

12345678910>>...17

/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/display/dc/core/
H A Damdgpu_dc_surface.c122 kref_init(&plane_state->refcount); in dc_create_plane_state()
187 kref_get(&plane_state->refcount); in dc_plane_state_retain()
192 struct dc_plane_state *plane_state = container_of(kref, struct dc_plane_state, refcount); in dc_plane_state_free()
199 kref_put(&plane_state->refcount, dc_plane_state_free); in dc_plane_state_release()
204 kref_get(&gamma->refcount); in dc_gamma_retain()
209 struct dc_gamma *gamma = container_of(kref, struct dc_gamma, refcount); in dc_gamma_free()
215 kref_put(&(*gamma)->refcount, dc_gamma_free); in dc_gamma_release()
226 kref_init(&gamma->refcount); in dc_create_gamma()
235 kref_get(&tf->refcount); in dc_transfer_func_retain()
240 struct dc_transfer_func *tf = container_of(kref, struct dc_transfer_func, refcount); in dc_transfer_func_free()
[all …]
H A Damdgpu_dc_sink.c77 kref_get(&sink->refcount); in dc_sink_retain()
82 struct dc_sink *sink = container_of(kref, struct dc_sink, refcount); in dc_sink_free()
89 kref_put(&sink->refcount, dc_sink_free); in dc_sink_release()
102 kref_init(&sink->refcount); in dc_sink_create()
/netbsd-src/external/gpl3/binutils.old/dist/bfd/
H A Delf-strtab.c36 unsigned int refcount; member
85 ret->refcount = 0; in elf_strtab_hash_newfunc()
160 entry->refcount++; in _bfd_elf_strtab_add()
189 ++tab->array[idx]->refcount; in _bfd_elf_strtab_addref()
199 BFD_ASSERT (tab->array[idx]->refcount > 0); in _bfd_elf_strtab_delref()
200 --tab->array[idx]->refcount; in _bfd_elf_strtab_delref()
206 return tab->array[idx]->refcount; in _bfd_elf_strtab_refcount()
215 tab->array[idx]->refcount = 0; in _bfd_elf_strtab_clear_all_refs()
223 unsigned int refcount[1]; member
232 size = sizeof (*save) + (tab->size - 1) * sizeof (save->refcount[0]); in _bfd_elf_strtab_save()
[all …]
H A Delf-ifunc.c121 bool use_plt = !avoid_plt || h->plt.refcount > 0; in _bfd_elf_allocate_ifunc_dyn_relocs()
181 if (h->plt.refcount <= 0 && h->got.refcount <= 0) in _bfd_elf_allocate_ifunc_dyn_relocs()
193 if (h->plt.refcount > 0 in _bfd_elf_allocate_ifunc_dyn_relocs()
194 || h->got.refcount > 0) in _bfd_elf_allocate_ifunc_dyn_relocs()
301 && (h->got.refcount <= 0 in _bfd_elf_allocate_ifunc_dyn_relocs()
320 if (h->got.refcount <= 0) in _bfd_elf_allocate_ifunc_dyn_relocs()
/netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/
H A Dzfeature.c247 uint64_t refcount; in feature_get_refcount_from_disk() local
259 feature->fi_guid, sizeof (uint64_t), 1, &refcount); in feature_get_refcount_from_disk()
266 *res = refcount; in feature_get_refcount_from_disk()
296 feature_sync(spa_t *spa, zfeature_info_t *feature, uint64_t refcount, in feature_sync() argument
304 sizeof (uint64_t), 1, &refcount, tx)); in feature_sync()
318 atomic_swap_64(refcount_cache, refcount)); in feature_sync()
320 *refcount_cache = refcount; in feature_sync()
324 if (refcount == 0) in feature_sync()
382 uint64_t refcount; in feature_do_action() local
394 VERIFY3U(feature_get_refcount(spa, feature, &refcount), !=, ENOTSUP); in feature_do_action()
[all …]
/netbsd-src/external/gpl3/binutils/dist/bfd/
H A Delf-strtab.c36 unsigned int refcount; member
85 ret->refcount = 0; in elf_strtab_hash_newfunc()
161 entry->refcount++; in _bfd_elf_strtab_add()
190 ++tab->array[idx]->refcount; in _bfd_elf_strtab_addref()
200 BFD_ASSERT (tab->array[idx]->refcount > 0); in _bfd_elf_strtab_delref()
201 --tab->array[idx]->refcount; in _bfd_elf_strtab_delref()
207 return tab->array[idx]->refcount; in _bfd_elf_strtab_refcount()
216 tab->array[idx]->refcount = 0; in _bfd_elf_strtab_clear_all_refs()
224 unsigned int refcount[1]; member
233 size = sizeof (*save) + (tab->size - 1) * sizeof (save->refcount[0]); in _bfd_elf_strtab_save()
[all …]
H A Delf-ifunc.c121 bool use_plt = !avoid_plt || h->plt.refcount > 0; in _bfd_elf_allocate_ifunc_dyn_relocs()
181 if (h->plt.refcount <= 0 && h->got.refcount <= 0) in _bfd_elf_allocate_ifunc_dyn_relocs()
193 if (h->plt.refcount > 0 in _bfd_elf_allocate_ifunc_dyn_relocs()
194 || h->got.refcount > 0) in _bfd_elf_allocate_ifunc_dyn_relocs()
301 && (h->got.refcount <= 0 in _bfd_elf_allocate_ifunc_dyn_relocs()
320 if (h->got.refcount <= 0) in _bfd_elf_allocate_ifunc_dyn_relocs()
/netbsd-src/sys/external/bsd/drm2/include/linux/
H A Drefcount.h36 typedef struct refcount refcount_t;
38 struct refcount { struct
43 refcount_set(struct refcount *rc, int n) in refcount_set() argument
49 refcount_inc(struct refcount *rc) in refcount_inc()
55 refcount_inc_not_zero(struct refcount *rc) in refcount_inc_not_zero()
70 refcount_dec_and_test(struct refcount *rc) in refcount_dec_and_test()
84 refcount_dec_and_lock_irqsave(struct refcount *rc, struct spinlock *lock, in refcount_dec_and_lock_irqsave()
92 refcount_dec_and_mutex_lock(struct refcount *rc, struct mutex *lock) in refcount_dec_and_mutex_lock()
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/rt/
H A Dehalloc.d62 t.refcount() = 1; in _d_newThrowable()
88 auto refcount = t.refcount(); in nothrow() local
89 if (refcount == 0) in nothrow()
92 if (refcount == 1) in nothrow()
95 t.refcount() = --refcount; in nothrow()
96 if (refcount > 1) in nothrow()
/netbsd-src/external/ibm-public/postfix/dist/src/global/
H A Dmypwd.c143 mypwd->refcount = 0; in mypwenter()
194 mypwd->refcount++; in mypwuid_err()
225 mypwd->refcount += 2; in mypwuid_err()
258 mypwd->refcount++; in mypwnam_err()
288 mypwd->refcount += 2; in mypwnam_err()
296 if (mypwd->refcount < 1) in mypwfree()
297 msg_panic("mypwfree: refcount %d", mypwd->refcount); in mypwfree()
302 if (--mypwd->refcount == 0) { in mypwfree()
351 mypwd[i]->refcount, mypwcache_name->used, mypwcache_uid->used); in main()
360 mypwd[i]->pw_name, mypwd[i]->pw_uid, mypwd[i]->refcount, in main()
/netbsd-src/external/gpl3/gcc/dist/libphobos/testsuite/libphobos.exceptions/
H A Drefcounted.d30 assert(e.refcount == 2); in main()
42 assert(e.refcount == 2); // "Owned by e" + 1 in main()
54 assert(e.refcount == 2); // "Owned by e" + 1 in main()
86 assert(first.refcount == 2); in main()
87 assert(second.refcount == 3); in main()
88 assert(third.refcount == 3); in main()
/netbsd-src/external/mpl/bind/dist/tests/isc/
H A Dradix_test.c56 isc_refcount_destroy(&prefix.refcount); in ISC_RUN_TEST_IMPL()
66 isc_refcount_destroy(&prefix.refcount); in ISC_RUN_TEST_IMPL()
76 isc_refcount_destroy(&prefix.refcount); in ISC_RUN_TEST_IMPL()
104 isc_refcount_destroy(&prefix.refcount); in ISC_RUN_TEST_IMPL()
114 isc_refcount_destroy(&prefix.refcount); in ISC_RUN_TEST_IMPL()
125 isc_refcount_destroy(&prefix.refcount); in ISC_RUN_TEST_IMPL()
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/krb5/
H A Dkeytab_memory.c44 int refcount; member
66 if (d->refcount < 1) in mkt_resolve()
68 "refcount < 1 %d", d->refcount); in mkt_resolve()
69 d->refcount++; in mkt_resolve()
88 d->refcount = 1; in mkt_resolve()
103 if (d->refcount < 1) in mkt_close()
107 if (--d->refcount > 0) { in mkt_close()
/netbsd-src/external/mpl/dhcp/bind/dist/lib/dns/
H A Diptable.c39 isc_refcount_init(&tab->refcount, 1); in dns_iptable_create()
77 isc_refcount_destroy(&pfx.refcount); in dns_iptable_addprefix()
100 isc_refcount_destroy(&pfx.refcount); in dns_iptable_addprefix()
149 isc_refcount_increment(&source->refcount); in dns_iptable_attach()
159 if (isc_refcount_decrement(&tab->refcount) == 1) { in dns_iptable_detach()
160 isc_refcount_destroy(&tab->refcount); in dns_iptable_detach()
/netbsd-src/external/mpl/bind/dist/lib/dns/
H A Diptable.c63 isc_refcount_destroy(&pfx.refcount); in dns_iptable_addprefix()
86 isc_refcount_destroy(&pfx.refcount); in dns_iptable_addprefix()
/netbsd-src/lib/libform/
H A Dfield_types.c99 new->refcount = 0; in _formi_create_fieldtype()
194 if (fieldtype->refcount > 0) in free_fieldtype()
202 fieldtype->link->next->refcount--; in free_fieldtype()
203 fieldtype->link->prev->refcount--; in free_fieldtype()
270 type1->refcount++; in link_fieldtype()
271 type2->refcount++; in link_fieldtype()
/netbsd-src/external/gpl3/gcc.old/dist/libgomp/
H A Doacc-mem.c411 assert (n->refcount == 1); in acc_map_data()
414 n->refcount = REFCOUNT_INFINITY; in acc_map_data()
463 else if (n->refcount != REFCOUNT_INFINITY) in acc_unmap_data()
473 if (tgt->refcount == REFCOUNT_INFINITY) in acc_unmap_data()
481 assert (tgt->refcount == 1); in acc_unmap_data()
521 assert (n->refcount != REFCOUNT_LINK); in goacc_map_var_existing()
522 if (n->refcount != REFCOUNT_INFINITY) in goacc_map_var_existing()
523 n->refcount++; in goacc_map_var_existing()
580 assert (n->refcount == 1); in goacc_enter_datum()
684 assert (n->refcount != REFCOUNT_LINK);
[all …]
/netbsd-src/external/gpl3/gcc/dist/libgomp/
H A Doacc-mem.c411 assert (n->refcount == 1); in acc_map_data()
414 n->refcount = REFCOUNT_INFINITY; in acc_map_data()
463 else if (n->refcount != REFCOUNT_INFINITY) in acc_unmap_data()
473 if (tgt->refcount == REFCOUNT_INFINITY) in acc_unmap_data()
481 assert (tgt->refcount == 1); in acc_unmap_data()
521 assert (n->refcount != REFCOUNT_LINK); in goacc_map_var_existing()
522 if (n->refcount != REFCOUNT_INFINITY) in goacc_map_var_existing()
523 n->refcount++; in goacc_map_var_existing()
580 assert (n->refcount == 1); in goacc_enter_datum()
684 assert (n->refcount != REFCOUNT_LINK);
[all …]
/netbsd-src/sys/external/bsd/drm2/dist/drm/
H A Ddrm_dp_aux_dev.c54 struct kref refcount; member
71 if (!kref_get_unless_zero(&aux_dev->refcount)) in drm_dp_aux_dev_get_by_minor()
88 kref_init(&aux_dev->refcount); in alloc_drm_dp_aux_dev()
107 container_of(ref, struct drm_dp_aux_dev, refcount); in release_drm_dp_aux_dev()
123 kref_put(&aux_dev->refcount, release_drm_dp_aux_dev); in name_show()
243 kref_put(&aux_dev->refcount, release_drm_dp_aux_dev); in auxdev_release()
301 kref_put(&aux_dev->refcount, release_drm_dp_aux_dev); in drm_dp_aux_unregister_devnode()
/netbsd-src/external/mit/libcbor/dist/src/cbor/
H A Dcommon.c75 item->refcount++; in cbor_incref()
81 assert(item->refcount > 0); in cbor_decref()
82 if (--item->refcount == 0) { in cbor_decref()
155 size_t cbor_refcount(const cbor_item_t *item) { return item->refcount; } in cbor_refcount()
158 item->refcount--; in cbor_move()
/netbsd-src/sys/external/bsd/drm2/dist/drm/vmwgfx/
H A Dttm_object.c81 struct kref refcount; member
143 kref_get(&tfile->refcount); in ttm_object_file_ref()
150 container_of(kref, struct ttm_object_file, refcount); in ttm_object_file_destroy()
161 kref_put(&tfile->refcount, ttm_object_file_destroy); in ttm_object_file_unref()
181 kref_init(&base->refcount); in ttm_base_object_init()
208 container_of(kref, struct ttm_base_object, refcount); in ttm_release_base()
232 kref_put(&base->refcount, ttm_release_base); in ttm_base_object_unref()
283 if (!kref_get_unless_zero(&base->refcount)) in ttm_base_object_lookup()
299 if (base && !kref_get_unless_zero(&base->refcount)) in ttm_base_object_lookup_for_ref()
409 kref_get(&base->refcount); in ttm_ref_object_add()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/regex/internal/
H A Dir.d992 size_t refcount; member
1019 big.refcount = 1; in this()
1033 big.refcount++; in this()
1065 big.refcount++; in opAssign()
1081 big.refcount++; in opAssign()
1094 if (isBig && big.refcount != 1) // copy on write in mutate()
1098 newbig.refcount = 1; in mutate()
1117 if (--big.refcount == 0) in abandonRef()
1159 assert(a.big.refcount == 2);
1165 assert(c.big.refcount == 1);
[all …]
/netbsd-src/usr.sbin/syslogd/
H A Dsyslogd.h196 " @ %p: %zu --> %zu\n", (x), (x)->refcount, \
197 (x)->refcount + 1), (x)->refcount++, (x))\
200 " @ %p: %zu --> %zu\n", (x), (x)->refcount, \
201 (x)->refcount - 1), buf_msg_free(x), NULL) \
277 size_t refcount; member
/netbsd-src/sys/external/bsd/drm/dist/bsd-core/
H A Ddrm_irq.c112 if (atomic_read(&dev->vblank[i].refcount) == 0 && in vblank_disable_fn()
171 atomic_set(&dev->vblank[i].refcount, 0); in drm_vblank_init()
342 atomic_add_acq_int(&dev->vblank[crtc].refcount, 1); in drm_vblank_get()
343 DRM_DEBUG("vblank refcount = %d\n", dev->vblank[crtc].refcount); in drm_vblank_get()
344 if (dev->vblank[crtc].refcount == 1 && in drm_vblank_get()
348 atomic_dec(&dev->vblank[crtc].refcount); in drm_vblank_get()
365 atomic_subtract_acq_int(&dev->vblank[crtc].refcount, 1); in drm_vblank_put()
366 DRM_DEBUG("vblank refcount = %d\n", dev->vblank[crtc].refcount); in drm_vblank_put()
367 if (dev->vblank[crtc].refcount == 0) in drm_vblank_put()
/netbsd-src/external/ibm-public/postfix/dist/src/qmgr/
H A Dqmgr_entry.c328 peer->refcount--; in qmgr_entry_done()
329 if (peer->refcount == 0) in qmgr_entry_done()
355 message->refcount--; in qmgr_entry_done()
356 if (message->refcount == 0) in qmgr_entry_done()
380 message->refcount++; in qmgr_entry_create()
383 peer->refcount++; in qmgr_entry_create()

12345678910>>...17