Home
last modified time | relevance | path

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

12345678910

/NextBSD/contrib/jansson/test/suites/api/
HDtest_pack.c34 if(value->refcount != (size_t)-1) in run_tests()
42 if(value->refcount != (size_t)-1) in run_tests()
50 if(value->refcount != (size_t)-1) in run_tests()
58 if(value->refcount != (size_t)1) in run_tests()
66 if(value->refcount != (size_t)1) in run_tests()
74 if(value->refcount != (size_t)1) in run_tests()
82 if(value->refcount != (size_t)1) in run_tests()
90 if(value->refcount != (size_t)1) in run_tests()
98 if(value->refcount != (size_t)1) in run_tests()
106 if(value->refcount != (size_t)1) in run_tests()
[all …]
HDtest_copy.c54 if(value->refcount != 1 || copy->refcount != 1) in test_copy_simple()
70 if(value->refcount != 1 || copy->refcount != 1) in test_copy_simple()
86 if(value->refcount != 1 || copy->refcount != 1) in test_copy_simple()
134 if(value->refcount != 1 || copy->refcount != 1) in test_deep_copy_simple()
150 if(value->refcount != 1 || copy->refcount != 1) in test_deep_copy_simple()
166 if(value->refcount != 1 || copy->refcount != 1) in test_deep_copy_simple()
HDtest_simple.c199 if(value->refcount != (size_t)-1) in run_tests()
202 if(value->refcount != (size_t)-1) in run_tests()
205 if(value->refcount != (size_t)-1) in run_tests()
209 if(value->refcount != (size_t)-1) in run_tests()
212 if(value->refcount != (size_t)-1) in run_tests()
215 if(value->refcount != (size_t)-1) in run_tests()
219 if(value->refcount != (size_t)-1) in run_tests()
222 if(value->refcount != (size_t)-1) in run_tests()
225 if(value->refcount != (size_t)-1) in run_tests()
/NextBSD/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
HDzfeature.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 …]
/NextBSD/sys/cam/
HDcam_sim.c88 sim->refcount = 1; in cam_sim_alloc()
107 sim->refcount--; in cam_sim_free()
108 if (sim->refcount > 0) { in cam_sim_free()
113 KASSERT(sim->refcount == 0, ("sim->refcount == 0")); in cam_sim_free()
128 KASSERT(sim->refcount >= 1, ("sim->refcount >= 1")); in cam_sim_release()
129 sim->refcount--; in cam_sim_release()
130 if (sim->refcount == 0) in cam_sim_release()
144 KASSERT(sim->refcount >= 1, ("sim->refcount >= 1")); in cam_sim_hold()
145 sim->refcount++; in cam_sim_hold()
/NextBSD/sys/compat/linuxkpi/common/include/linux/
HDkref.h42 atomic_t refcount; member
49 refcount_init(&kref->refcount.counter, 1); in kref_init()
56 refcount_acquire(&kref->refcount.counter); in kref_get()
63 if (refcount_release(&kref->refcount.counter)) { in kref_put()
76 if (refcount_release(&kref->refcount.counter)) { in kref_sub()
88 return atomic_add_unless(&kref->refcount, 1, 0); in kref_get_unless_zero()
/NextBSD/contrib/subversion/subversion/libsvn_wc/
HDwc-metadata.sql103 refcount INTEGER NOT NULL, field
512 UPDATE pristine SET refcount = refcount + 1
520 UPDATE pristine SET refcount = refcount - 1
529 UPDATE pristine SET refcount = refcount + 1
531 UPDATE pristine SET refcount = refcount - 1
729 UPDATE pristine SET refcount =
809 UPDATE pristine SET refcount = refcount + 1
811 UPDATE pristine SET refcount = refcount - 1
819 UPDATE pristine SET refcount = refcount + 1
827 UPDATE pristine SET refcount = refcount - 1
/NextBSD/contrib/binutils/bfd/
HDelf-strtab.c36 unsigned int refcount; member
84 ret->refcount = 0; in elf_strtab_hash_newfunc()
158 entry->refcount++; in _bfd_elf_strtab_add()
186 ++tab->array[idx]->refcount; in _bfd_elf_strtab_addref()
196 BFD_ASSERT (tab->array[idx]->refcount > 0); in _bfd_elf_strtab_delref()
197 --tab->array[idx]->refcount; in _bfd_elf_strtab_delref()
206 tab->array[idx]->refcount = 0; in _bfd_elf_strtab_clear_all_refs()
225 BFD_ASSERT (entry->refcount > 0); in _bfd_elf_strtab_offset()
226 entry->refcount--; in _bfd_elf_strtab_offset()
243 BFD_ASSERT (tab->array[i]->refcount == 0); in _bfd_elf_strtab_emit()
[all …]
/NextBSD/sys/dev/drm2/
HDdrm_global.c42 int refcount; member
55 item->refcount = 0; in drm_global_init()
65 MPASS(item->refcount == 0); in drm_global_release()
77 if (item->refcount == 0) { in drm_global_item_ref()
91 ++item->refcount; in drm_global_item_ref()
108 MPASS(item->refcount != 0); in drm_global_item_unref()
110 if (--item->refcount == 0) { in drm_global_item_unref()
/NextBSD/sys/net/
HDif_epair.c135 u_int refcount; /* # of mbufs in flight. */ member
256 EPAIR_REFCOUNT_RELEASE(&sc->refcount); in epair_nh_sintr()
257 EPAIR_REFCOUNT_ASSERT((int)sc->refcount >= 1, in epair_nh_sintr()
259 __func__, ifp, sc->refcount)); in epair_nh_sintr()
260 DPRINTF("ifp=%p refcount=%u\n", ifp, sc->refcount); in epair_nh_sintr()
302 EPAIR_REFCOUNT_RELEASE(&sc->refcount); in epair_nh_drainedcpu()
303 EPAIR_REFCOUNT_ASSERT((int)sc->refcount >= 1, in epair_nh_drainedcpu()
305 __func__, ifp, sc->refcount)); in epair_nh_drainedcpu()
344 EPAIR_REFCOUNT_RELEASE(&sc->refcount); in epair_remove_ifp_from_draining()
345 EPAIR_REFCOUNT_ASSERT((int)sc->refcount >= 1, in epair_remove_ifp_from_draining()
[all …]
/NextBSD/contrib/apr-util/buckets/
HDapr_buckets_refcount.c28 r->refcount++; in apr_bucket_shared_split()
39 r->refcount++; in apr_bucket_shared_copy()
47 r->refcount--; in apr_bucket_shared_destroy()
48 return (r->refcount == 0); in apr_bucket_shared_destroy()
61 r->refcount = 1; in apr_bucket_shared_make()
/NextBSD/lib/libosxsupport/
HDsi_data.c49 l->refcount = 1; in si_list_add()
86 l->refcount = 1; in si_list_concat()
140 rc = OSAtomicIncrement32Barrier(&list->refcount); in si_list_retain()
154 rc = OSAtomicDecrement32Barrier(&list->refcount); in si_list_release()
176 rc = OSAtomicIncrement32Barrier(&item->refcount); in si_item_retain()
189 rc = OSAtomicDecrement32Barrier(&item->refcount); in si_item_release()
/NextBSD/crypto/heimdal/lib/krb5/
HDkeytab_memory.c42 int refcount; member
64 if (d->refcount < 1) in mkt_resolve()
66 "refcount < 1 %d", d->refcount); in mkt_resolve()
67 d->refcount++; in mkt_resolve()
90 d->refcount = 1; in mkt_resolve()
105 if (d->refcount < 1) in mkt_close()
109 if (--d->refcount > 0) { in mkt_close()
/NextBSD/contrib/wpa/src/l2_packet/
HDl2_packet_ndis.c54 int refcount; member
309 l2 = l2_ndisuio_global->l2[l2_ndisuio_global->refcount - 1]; in l2_packet_rx_event()
362 if (l2_ndisuio_global->refcount >= 2) { in l2_packet_init()
367 l2_ndisuio_global->refcount++; in l2_packet_init()
372 l2_ndisuio_global->l2[l2_ndisuio_global->refcount - 1] = l2; in l2_packet_init()
387 if (l2_ndisuio_global->refcount > 1) { in l2_packet_init()
471 l2_ndisuio_global->refcount--; in l2_packet_deinit()
472 l2_ndisuio_global->l2[l2_ndisuio_global->refcount] = NULL; in l2_packet_deinit()
473 if (l2_ndisuio_global->refcount) { in l2_packet_deinit()
/NextBSD/sys/dev/drm2/ttm/
HDttm_object.c69 u_int refcount; member
126 refcount_acquire(&tfile->refcount); in ttm_object_file_ref()
142 if (refcount_release(&tfile->refcount)) in ttm_object_file_unref()
163 refcount_init(&base->refcount, 1); in ttm_base_object_init()
220 if (refcount_release(&base->refcount)) in ttm_base_object_unref()
238 refcount_acquire(&base->refcount); in ttm_base_object_lookup()
303 refcount_acquire(&base->refcount); in ttm_ref_object_add()
401 refcount_init(&tfile->refcount, 1); in ttm_object_file_init()
/NextBSD/sys/dev/cxgb/ulp/iw_cxgb/
HDiw_cxgb_cm.h53 ep, atomic_load_acq_int(&((ep)->refcount))); \
54 if (refcount_release(&((ep)->refcount))) \
60 ep, atomic_load_acq_int(&((ep)->refcount))); \
61 refcount_acquire(&((ep)->refcount)); \
153 u_int refcount; member
/NextBSD/sys/ofed/drivers/infiniband/hw/mthca/
HDmthca_memfree.c59 int refcount; member
151 icm->refcount = 0; in mthca_alloc_icm()
230 ++table->icm[i]->refcount; in mthca_table_get()
250 ++table->icm[i]->refcount; in mthca_table_get()
269 if (--table->icm[i]->refcount == 0) { in mthca_table_put()
409 ++table->icm[i]->refcount; in mthca_alloc_icm_table()
478 if ((db_tab->page[i].refcount >= MTHCA_DB_REC_PER_PAGE) || in mthca_map_user_db()
485 if (db_tab->page[i].refcount) { in mthca_map_user_db()
486 ++db_tab->page[i].refcount; in mthca_map_user_db()
515 db_tab->page[i].refcount = 1; in mthca_map_user_db()
[all …]
/NextBSD/sys/ofed/drivers/infiniband/core/
HDmulticast.c77 atomic_t refcount; member
119 atomic_t refcount; member
134 atomic_t refcount; member
195 if (atomic_dec_and_test(&port->refcount)) in deref_port()
205 if (atomic_dec_and_test(&group->refcount)) { in release_group()
216 if (atomic_dec_and_test(&member->refcount)) in deref_member()
229 atomic_inc(&group->refcount); in queue_join()
425 atomic_inc(&member->refcount); in process_group_error()
469 atomic_inc(&member->refcount); in mcast_work_handler()
521 atomic_inc(&member->refcount); in process_join_error()
[all …]
/NextBSD/sys/dev/mlx5/mlx5_core/
HDmlx5_cq.c61 atomic_inc(&cq->refcount); in mlx5_cq_completion()
73 if (atomic_dec_and_test(&cq->refcount)) in mlx5_cq_completion()
86 atomic_inc(&cq->refcount); in mlx5_cq_event()
97 if (atomic_dec_and_test(&cq->refcount)) in mlx5_cq_event()
123 atomic_set(&cq->refcount, 1); in mlx5_core_create_cq()
197 if (atomic_dec_and_test(&cq->refcount)) in mlx5_core_destroy_cq()
/NextBSD/contrib/subversion/subversion/libsvn_diff/
HDlcs.c100 lcs->refcount--; in svn_diff__snake()
101 if (lcs->refcount) in svn_diff__snake()
128 previous_lcs->refcount++; in svn_diff__snake()
162 lcs->refcount = 1; in svn_diff__snake()
224 new_lcs->refcount = 1; in prepend_lcs()
266 lcs->refcount = 1; in svn_diff__lcs()
/NextBSD/lib/libc/nls/
HDmsgcat.c86 np->refcount = 0; \
107 int refcount; member
155 np->refcount++; in catopen()
343 np->refcount--; in catclose()
344 if (np->refcount == 0) { in catclose()
382 np->refcount++; in load_msgcat()
443 np->refcount = 1; in load_msgcat()
/NextBSD/contrib/subversion/subversion/libsvn_fs_base/bdb/
HDenv.c138 unsigned refcount; member
256 if (!bdb->refcount) in cleanup_env()
498 if (--bdb->refcount != 0) in svn_fs_bdb__close_internal()
527 SVN_ERR_ASSERT(bdb_baton->error_info->refcount > 0); in svn_fs_bdb__close()
537 if (0 == --bdb_baton->error_info->refcount && bdb->pool) in svn_fs_bdb__close()
651 bdb->refcount = 1; in svn_fs_bdb__open_internal()
655 ++bdb->refcount; in svn_fs_bdb__open_internal()
662 ++(*bdb_batonp)->error_info->refcount; in svn_fs_bdb__open_internal()
/NextBSD/lib/libc/db/mpool/
HDmpool.libtp133 bhp->refcount = 0;
149 buf_fids[i].refcount = 0;
333 bhp->refcount++;
336 buf_table + (bhp-bufhdr_table), bhp->refcount);
393 int close; /* should we dec refcount and possibly
407 invalidate = (buf_fids[fid].refcount == 1 && close);
418 buf_fids[fid].refcount--;
465 bhp->refcount++;
472 bhp->refcount--;
473 if ( bhp->refcount ) {
[all …]
/NextBSD/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/
HDrefcount.h31 #include_next <sys/refcount.h>
54 typedef struct refcount { struct
82 typedef struct refcount { argument
/NextBSD/sys/dev/firewire/
HDfwmem.c84 int refcount; member
284 fms->refcount++; in fwmem_open()
296 fms->refcount = 1; in fwmem_open()
299 printf("%s: refcount=%d\n", __func__, fms->refcount); in fwmem_open()
312 fms->refcount--; in fwmem_close()
315 printf("%s: refcount=%d\n", __func__, fms->refcount); in fwmem_close()
316 if (fms->refcount < 1) { in fwmem_close()

12345678910