| /netbsd/src/external/cddl/osnet/dist/uts/common/fs/zfs/ |
| D | zfeature.c | 247 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/ |
| D | elf-strtab.c | 36 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 …]
|
| D | elf-ifunc.c | 121 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()
|
| D | elf32-vax.c | 638 if (h->got.refcount == -1) in elf_vax_check_relocs() 640 h->got.refcount = 1; in elf_vax_check_relocs() 645 h->got.refcount++; in elf_vax_check_relocs() 673 if (h->plt.refcount == -1) in elf_vax_check_relocs() 674 h->plt.refcount = 1; in elf_vax_check_relocs() 676 h->plt.refcount++; in elf_vax_check_relocs() 705 if (h->plt.refcount == -1) in elf_vax_check_relocs() 706 h->plt.refcount = 1; in elf_vax_check_relocs() 708 h->plt.refcount++; in elf_vax_check_relocs() 726 if (h->plt.refcount == -1) in elf_vax_check_relocs() [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/bfd/ |
| D | elf-strtab.c | 36 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 …]
|
| D | elf-ifunc.c | 121 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()
|
| D | elf32-vax.c | 619 if (h->got.refcount == -1) in elf_vax_check_relocs() 621 h->got.refcount = 1; in elf_vax_check_relocs() 626 h->got.refcount++; in elf_vax_check_relocs() 654 if (h->plt.refcount == -1) in elf_vax_check_relocs() 655 h->plt.refcount = 1; in elf_vax_check_relocs() 657 h->plt.refcount++; in elf_vax_check_relocs() 686 if (h->plt.refcount == -1) in elf_vax_check_relocs() 687 h->plt.refcount = 1; in elf_vax_check_relocs() 689 h->plt.refcount++; in elf_vax_check_relocs() 707 if (h->plt.refcount == -1) in elf_vax_check_relocs() [all …]
|
| /netbsd/src/sys/external/bsd/drm2/include/linux/ |
| D | refcount.h | 36 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/crypto/external/bsd/openssh/dist/ |
| D | sshbuf.c | 50 u_int refcount; /* Tracks self and number of child buffers */ member 61 buf->refcount < 1 || buf->refcount > SSHBUF_REFS_MAX || in sshbuf_check_sanity() 81 if (buf->off == 0 || buf->readonly || buf->refcount > 1) in sshbuf_maybe_pack() 102 ret->refcount = 1; in sshbuf_new() 121 ret->refcount = 1; in sshbuf_from() 140 child->parent->refcount++; in sshbuf_set_parent() 179 buf->refcount--; in sshbuf_free() 180 if (buf->refcount > 0) in sshbuf_free() 200 if (buf->readonly || buf->refcount > 1) { in sshbuf_reset() 239 return buf->refcount; in sshbuf_refcount() [all …]
|
| /netbsd/src/external/ibm-public/postfix/dist/src/global/ |
| D | mypwd.c | 143 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/crypto/external/bsd/heimdal/dist/lib/krb5/ |
| D | keytab_memory.c | 44 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/lib/libform/ |
| D | field_types.c | 99 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/dist/libgomp/ |
| D | oacc-mem.c | 411 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/bsd/wpa/dist/src/l2_packet/ |
| D | l2_packet_ndis.c | 54 int refcount; member 310 l2 = l2_ndisuio_global->l2[l2_ndisuio_global->refcount - 1]; in l2_packet_rx_event() 363 if (l2_ndisuio_global->refcount >= 2) { in l2_packet_init() 368 l2_ndisuio_global->refcount++; in l2_packet_init() 373 l2_ndisuio_global->l2[l2_ndisuio_global->refcount - 1] = l2; in l2_packet_init() 388 if (l2_ndisuio_global->refcount > 1) { in l2_packet_init() 472 l2_ndisuio_global->refcount--; in l2_packet_deinit() 473 l2_ndisuio_global->l2[l2_ndisuio_global->refcount] = NULL; in l2_packet_deinit() 474 if (l2_ndisuio_global->refcount) { in l2_packet_deinit()
|
| /netbsd/src/sys/external/bsd/drm2/dist/drm/ |
| D | drm_dp_aux_dev.c | 54 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()
|
| D | drm_mode_object.c | 65 kref_init(&obj->refcount); in __drm_mode_object_add() 161 if (!kref_get_unless_zero(&obj->refcount)) in __drm_mode_object_find() 202 DRM_DEBUG("OBJ ID: %d (%d)\n", obj->id, kref_read(&obj->refcount)); in drm_mode_object_put() 203 kref_put(&obj->refcount, obj->free_cb); in drm_mode_object_put() 219 DRM_DEBUG("OBJ ID: %d (%d)\n", obj->id, kref_read(&obj->refcount)); in drm_mode_object_get() 220 kref_get(&obj->refcount); in drm_mode_object_get()
|
| /netbsd/src/sys/external/bsd/drm2/dist/drm/vmwgfx/ |
| D | ttm_object.c | 81 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/usr.sbin/syslogd/ |
| D | syslogd.h | 196 " @ %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/ |
| D | drm_irq.c | 112 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/ |
| D | qmgr_entry.c | 328 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()
|
| D | qmgr_peer.c | 89 peer->refcount = 0; in qmgr_peer_create() 105 if (peer->refcount != 0) in qmgr_peer_free() 106 msg_panic("%s: refcount: %d", myname, peer->refcount); in qmgr_peer_free()
|
| /netbsd/src/sys/external/bsd/drm2/dist/include/drm/ |
| D | drm_syncobj.h | 45 struct kref refcount; member 80 kref_get(&obj->refcount); in drm_syncobj_get() 90 kref_put(&obj->refcount, drm_syncobj_free); in drm_syncobj_put()
|
| /netbsd/src/external/ibm-public/postfix/dist/src/util/ |
| D | dict.c | 288 int refcount; member 329 node->refcount = 0; in dict_register() 333 node->refcount++; in dict_register() 335 msg_info("%s: %s %d", myname, dict_name, node->refcount); in dict_register() 369 msg_info("%s: %s %d", myname, dict_name, node->refcount); in dict_unregister() 370 if (--(node->refcount) == 0) in dict_unregister()
|
| /netbsd/src/sys/external/bsd/drm2/linux/ |
| D | linux_dma_fence.c | 164 return kref_referenced_p(&fence->refcount); in dma_fence_referenced_p() 178 kref_init(&fence->refcount); in dma_fence_init() 211 KASSERT(kref_read(&fence->refcount) == 0 || in dma_fence_reset() 212 kref_read(&fence->refcount) == 1); in dma_fence_reset() 217 kref_init(&fence->refcount); in dma_fence_reset() 388 kref_get(&fence->refcount); in dma_fence_get() 406 if (!kref_get_unless_zero(&fence->refcount)) in dma_fence_get_rcu() 452 dma_fence_release(struct kref *refcount) in dma_fence_release() argument 454 struct dma_fence *fence = container_of(refcount, struct dma_fence, in dma_fence_release() 455 refcount); in dma_fence_release() [all …]
|
| /netbsd/src/external/ibm-public/postfix/dist/src/postscreen/ |
| D | postscreen_dnsbl.c | 158 int refcount; /* score reference count */ member 359 score->refcount -= 1; in psc_dnsbl_retrieve() 360 if (score->refcount < 1) { in psc_dnsbl_retrieve() 523 score->refcount += 1; in psc_dnsbl_request() 528 myname, client_addr, score->refcount, in psc_dnsbl_request() 544 score->refcount = 1; in psc_dnsbl_request()
|