Home
last modified time | relevance | path

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

123456

/freebsd-12.1/contrib/ntp/lib/isc/include/isc/
H A Drefcount.h103 isc_int32_t refs; member
141 int refs;
159 ++((rp)->refs); \
161 *_tmp = ((rp)->refs); \
170 ++((rp)->refs); \
172 *_tmp = ((rp)->refs); \
182 --((rp)->refs); \
184 *_tmp = ((rp)->refs); \
192 int refs;
211 _n = ++(rp)->refs; \
[all …]
/freebsd-12.1/sys/kern/
H A Dkern_module.c167 newmod->refs = 1; in module_register()
190 mod->refs++; in module_reference()
199 if (mod->refs <= 0) in module_release()
204 mod->refs--; in module_release()
205 if (mod->refs == 0) { in module_release()
365 int refs; member
386 refs = mod->refs; in sys_modstat()
406 if ((error = copyout(&refs, &stat->refs, sizeof(int))) != 0) in sys_modstat()
461 int refs; member
484 refs = mod->refs; in freebsd32_modstat()
[all …]
H A Dsubr_kobj.c174 cls->refs++; in kobj_class_compile_static()
243 if (cls->refs == 0) { in kobj_class_free()
267 cls->refs++; in kobj_init_common()
332 int refs; in kobj_delete() local
341 cls->refs--; in kobj_delete()
342 refs = cls->refs; in kobj_delete()
345 if (!refs) in kobj_delete()
/freebsd-12.1/contrib/gcc/
H A Dtree-ssa-loop-prefetch.c252 group->refs = NULL; in find_or_create_group()
312 for (ref = groups->refs; ref; ref = next_r) in release_mem_refs()
462 struct mem_ref_group *refs = NULL; in gather_memory_references() local
489 return refs; in gather_memory_references()
921 for (agp = refs; agp; agp = agp->next) in determine_unroll_factor()
922 for (ref = agp->refs; ref; ref = ref->next) in determine_unroll_factor()
958 struct mem_ref_group *refs; in loop_prefetch_arrays() local
964 refs = gather_memory_references (loop); in loop_prefetch_arrays()
967 prune_by_reuse (refs); in loop_prefetch_arrays()
969 if (!anything_to_prefetch_p (refs)) in loop_prefetch_arrays()
[all …]
/freebsd-12.1/sys/mips/broadcom/
H A Dbcm_mips.c94 sc->isrcs[ivec].refs = 0; in bcm_mips_register_isrcs()
134 cpuirq->refs = 0; in bcm_mips_init_cpuirq_unavail()
215 cpuirq->refs = 0; in bcm_mips_init_cpuirq()
246 if (cpuirq->refs != 0) { in bcm_mips_fini_cpuirq()
545 if (isrc->refs == UINT_MAX) in bcm_mips_retain_cpu_intr()
548 isrc->refs++; in bcm_mips_retain_cpu_intr()
626 cpuirq->refs++; in bcm_mips_retain_cpu_intr()
629 isrc->refs++; in bcm_mips_retain_cpu_intr()
658 isrc->refs--; in bcm_mips_release_cpu_intr()
661 if (isrc->refs > 0) in bcm_mips_release_cpu_intr()
[all …]
/freebsd-12.1/tools/tools/termcap/
H A Dtermcap.pl91 my %refs = ();
99 $refs{$ref} = $tcs;
111 $tca = $refs{$tca} if (defined $tca && defined $refs{$tca});
112 $tcb = $refs{$tcb} if (defined $tcb && defined $refs{$tca});
152 foreach my $ref (sort(keys(%refs))) {
153 next if ($refs{$ref} ne $tca);
/freebsd-12.1/sys/x86/iommu/
H A Dintel_ctx.c360 ctx->refs = 1; in dmar_ctx_alloc()
374 domain->refs++; in dmar_ctx_link()
391 domain->refs--; in dmar_ctx_unlink()
623 if (domain->refs > 1) { in dmar_unref_domain_locked()
624 domain->refs--; in dmar_unref_domain_locked()
647 KASSERT(ctx->refs >= 1, in dmar_free_ctx_locked()
654 if (ctx->refs > 1) { in dmar_free_ctx_locked()
655 ctx->refs--; in dmar_free_ctx_locked()
672 KASSERT(ctx->refs >= 1, in dmar_free_ctx_locked()
679 if (ctx->refs > 1) { in dmar_free_ctx_locked()
[all …]
/freebsd-12.1/sys/dev/usb/
H A Dusb_dev.c1089 f = refs.txfifo; in usb_ioctl()
1093 f = refs.rxfifo; in usb_ioctl()
1273 f = refs.txfifo; in usb_kqfilter()
1280 f = refs.rxfifo; in usb_kqfilter()
1323 f = refs.txfifo; in usb_poll()
1327 if (!refs.is_usbfs) { in usb_poll()
1362 f = refs.rxfifo; in usb_poll()
1426 f = refs.rxfifo; in usb_read()
1441 if (refs.is_usbfs) { in usb_read()
1546 f = refs.txfifo; in usb_write()
[all …]
/freebsd-12.1/sys/i386/i386/
H A Dbpf_jit_machdep.h90 u_int *refs; member
426 emitm(&stream, stream.refs[stream.bpf_pc + ins->jt] - \
427 stream.refs[stream.bpf_pc] + 5, 4); \
428 JMP(stream.refs[stream.bpf_pc + ins->jf] - \
429 stream.refs[stream.bpf_pc]); \
432 emitm(&stream, stream.refs[stream.bpf_pc + ins->jt] - \
433 stream.refs[stream.bpf_pc], 4); \
436 emitm(&stream, stream.refs[stream.bpf_pc + ins->jf] - \
437 stream.refs[stream.bpf_pc], 4); \
443 JMP(stream.refs[stream.bpf_pc + (off)] - \
[all …]
H A Dbpf_jit_machdep.c68 if (stream->refs != NULL) in emit_length()
69 (stream->refs)[stream->bpf_pc] += len; in emit_length()
188 stream.refs = malloc((nins + 1) * sizeof(u_int), M_BPFJIT, in bpf_jit_compile()
191 stream.refs = calloc(nins + 1, sizeof(u_int)); in bpf_jit_compile()
193 if (stream.refs == NULL) in bpf_jit_compile()
653 stream.refs[i] += stream.refs[i - 1]; in bpf_jit_compile()
669 free(stream.refs, M_BPFJIT); in bpf_jit_compile()
671 free(stream.refs); in bpf_jit_compile()
/freebsd-12.1/sys/amd64/amd64/
H A Dbpf_jit_machdep.h115 u_int *refs; member
481 emitm(&stream, stream.refs[stream.bpf_pc + ins->jt] - \
482 stream.refs[stream.bpf_pc] + 5, 4); \
483 JMP(stream.refs[stream.bpf_pc + ins->jf] - \
484 stream.refs[stream.bpf_pc]); \
487 emitm(&stream, stream.refs[stream.bpf_pc + ins->jt] - \
488 stream.refs[stream.bpf_pc], 4); \
491 emitm(&stream, stream.refs[stream.bpf_pc + ins->jf] - \
492 stream.refs[stream.bpf_pc], 4); \
498 JMP(stream.refs[stream.bpf_pc + (off)] - \
[all …]
H A Dbpf_jit_machdep.c68 if (stream->refs != NULL) in emit_length()
69 (stream->refs)[stream->bpf_pc] += len; in emit_length()
186 stream.refs = malloc((nins + 1) * sizeof(u_int), M_BPFJIT, in bpf_jit_compile()
189 stream.refs = calloc(nins + 1, sizeof(u_int)); in bpf_jit_compile()
191 if (stream.refs == NULL) in bpf_jit_compile()
623 stream.refs[i] += stream.refs[i - 1]; in bpf_jit_compile()
639 free(stream.refs, M_BPFJIT); in bpf_jit_compile()
641 free(stream.refs); in bpf_jit_compile()
/freebsd-12.1/contrib/ntp/lib/isc/
H A Dratelimiter.c41 int refs; member
71 rl->refs = 1; in isc_ratelimiter_create()
92 rl->refs++; in isc_ratelimiter_create()
256 REQUIRE(source->refs > 0); in isc_ratelimiter_attach()
257 source->refs++; in isc_ratelimiter_attach()
258 INSIST(source->refs > 0); in isc_ratelimiter_attach()
269 REQUIRE(rl->refs > 0); in isc_ratelimiter_detach()
270 rl->refs--; in isc_ratelimiter_detach()
271 if (rl->refs == 0) in isc_ratelimiter_detach()
H A Dhash.c337 unsigned int refs; in isc_hash_ctxdetach() local
342 isc_refcount_decrement(&hctx->refcnt, &refs); in isc_hash_ctxdetach()
343 if (refs == 0) in isc_hash_ctxdetach()
351 unsigned int refs; in isc_hash_destroy() local
355 isc_refcount_decrement(&hash->refcnt, &refs); in isc_hash_destroy()
356 INSIST(refs == 0); in isc_hash_destroy()
/freebsd-12.1/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_plist.c74 plist->refs = 1; in bhnd_nvram_plist_new()
98 BHND_NV_ASSERT(plist->refs >= 1, ("plist over-released")); in bhnd_nvram_plist_retain()
100 refcount_acquire(&plist->refs); in bhnd_nvram_plist_retain()
116 BHND_NV_ASSERT(plist->refs >= 1, ("plist over-released")); in bhnd_nvram_plist_release()
119 if (!refcount_release(&plist->refs)) in bhnd_nvram_plist_release()
788 prop->refs = 1; in bhnd_nvram_prop_new()
863 BHND_NV_ASSERT(prop->refs >= 1, ("prop over-released")); in bhnd_nvram_prop_retain()
865 refcount_acquire(&prop->refs); in bhnd_nvram_prop_retain()
879 BHND_NV_ASSERT(prop->refs >= 1, ("prop over-released")); in bhnd_nvram_prop_release()
882 if (!refcount_release(&prop->refs)) in bhnd_nvram_prop_release()
H A Dbhnd_nvram_plistvar.h47 volatile u_int refs; /**< refcount */ member
69 volatile u_int refs; /**< refcount */ member
/freebsd-12.1/contrib/binutils/ld/
H A Dldcref.c62 struct cref_ref *refs; member
140 ret->refs = NULL; in cref_hash_newfunc()
174 for (r = h->refs; r != NULL; r = r->next) in add_cref()
183 r->next = h->refs; in add_cref()
184 h->refs = r; in add_cref()
226 for (r = c->refs; r != NULL; r = r->next) in handle_asneeded_cref()
257 for (r = c->refs; r != NULL; r = r->next) in handle_asneeded_cref()
299 for (r = c->refs; r != NULL; r = r->next) in handle_asneeded_cref()
417 for (r = h->refs; r != NULL; r = r->next) in output_one_cref()
429 for (r = h->refs; r != NULL; r = r->next) in output_one_cref()
[all …]
/freebsd-12.1/sys/dev/mlx4/mlx4_core/
H A Dmlx4_port.c69 table->refs[i] = 0; in mlx4_init_mac_table()
83 table->refs[i] = 0; in mlx4_init_vlan_table()
118 if (table->refs[i] && in find_index()
157 if (!table->refs[i]) in mlx4_find_cached_mac()
265 ++table->refs[i]; in __mlx4_register_mac()
308 table->refs[free] = 1; in __mlx4_register_mac()
666 ++table->refs[i]; in __mlx4_register_vlan()
920 if (!t1->refs[i]) { in mlx4_unbond_mac_table()
925 if (!t2->refs[i]) { in mlx4_unbond_mac_table()
1027 if (!t1->refs[i]) { in mlx4_unbond_vlan_table()
[all …]
/freebsd-12.1/sbin/kldstat/
H A Dkldstat.c81 stat.id, stat.refs, POINTER_WIDTH, stat.address, buf, in printfile()
85 stat.id, stat.refs, POINTER_WIDTH, stat.address, stat.size, in printfile()
173 printf("%3d %4d %s (%d, %u, 0x%lx)\n", stat.id, stat.refs, stat.name, in main()
177 printf("%3d %4d %s\n", stat.id, stat.refs, stat.name); in main()
/freebsd-12.1/sys/dev/xen/grant_table/
H A Dgrant_table.c217 gnttab_end_foreign_access_references(u_int count, grant_ref_t *refs) in gnttab_end_foreign_access_references() argument
224 tail = *refs; in gnttab_end_foreign_access_references()
225 last_ref = refs + count; in gnttab_end_foreign_access_references()
226 while (refs != last_ref) { in gnttab_end_foreign_access_references()
228 if (gnttab_end_foreign_access_ref(*refs)) { in gnttab_end_foreign_access_references()
229 gnttab_entry(*refs) = head; in gnttab_end_foreign_access_references()
230 head = *refs; in gnttab_end_foreign_access_references()
240 refs++; in gnttab_end_foreign_access_references()
/freebsd-12.1/sys/compat/linuxkpi/common/include/linux/
H A Dcdev.h55 u_int refs; member
65 cdev->refs = 1; in cdev_init()
75 cdev->refs = 1; in cdev_alloc()
/freebsd-12.1/contrib/llvm/tools/clang/lib/ARCMigrate/
H A DTransforms.h208 void clearRefsIn(Stmt *S, ExprSet &refs);
210 void clearRefsIn(iterator begin, iterator end, ExprSet &refs) { in clearRefsIn() argument
212 clearRefsIn(*begin, refs); in clearRefsIn()
215 void collectRefs(ValueDecl *D, Stmt *S, ExprSet &refs);
H A DTransforms.cpp218 ReferenceClear(ExprSet &refs) : Refs(refs) { } in ReferenceClear() argument
227 ReferenceCollector(ValueDecl *D, ExprSet &refs) in ReferenceCollector() argument
228 : Dcl(D), Refs(refs) { } in ReferenceCollector()
300 void trans::clearRefsIn(Stmt *S, ExprSet &refs) { in clearRefsIn() argument
301 ReferenceClear(refs).TraverseStmt(S); in clearRefsIn()
304 void trans::collectRefs(ValueDecl *D, Stmt *S, ExprSet &refs) { in collectRefs() argument
305 ReferenceCollector(D, refs).TraverseStmt(S); in collectRefs()
/freebsd-12.1/tools/tools/git/
H A Dgit-svn-init78 ${GIT} config svn-remote.svn.fetch head:refs/remotes/upstream/trunk
92 fetch = head:refs/remotes/upstream/trunk
102 ${GIT} update-ref refs/remotes/upstream/trunk $svn_head_sha # git-svn really needs this branch
/freebsd-12.1/sys/dev/bhnd/bhndb/
H A Dbhndb_private.h164 LIST_HEAD(, bhndb_dw_rentry) refs; /**< references */
249 KASSERT(LIST_EMPTY(&dw_free->refs), in bhndb_dw_next_free()
264 bool is_free = LIST_EMPTY(&dwa->refs); in bhndb_dw_is_free()

123456