Home
last modified time | relevance | path

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

12345

/freebsd/sys/kern/
H A Dkern_module.c50 int refs; /* reference count */ member
164 newmod->refs = 1; in module_register()
186 MOD_DPF(REFS, ("module_reference: before, refs=%d\n", mod->refs)); in module_reference()
187 mod->refs++; in module_reference()
196 if (mod->refs <= 0) in module_release()
199 MOD_DPF(REFS, ("module_release: before, refs=%d\n", mod->refs)); in module_release()
201 mod->refs--; in module_release()
202 if (mod->refs == 0) { in module_release()
362 int refs; member
369 int refs; member
[all …]
H A Dsubr_kobj.c172 cls->refs++; in kobj_class_compile_static()
241 if (cls->refs == 0) { in kobj_class_free()
265 cls->refs++; in kobj_init_common()
330 int refs; in kobj_delete() local
339 cls->refs--; in kobj_delete()
340 refs = cls->refs; in kobj_delete()
343 if (!refs) in kobj_delete()
/freebsd/tools/tools/termcap/
H A Dtermcap.pl90 my %refs = ();
98 $refs{$ref} = $tcs;
110 $tca = $refs{$tca} if (defined $tca && defined $refs{$tca});
111 $tcb = $refs{$tcb} if (defined $tcb && defined $refs{$tca});
151 foreach my $ref (sort(keys(%refs))) {
152 next if ($refs{$ref} ne $tca);
/freebsd/sys/x86/iommu/
H A Damd_ctx.c161 KASSERT(domain->refs == 0, in amdiommu_domain_destroy()
162 ("destroying dom %p with refs %d", domain, domain->refs)); in amdiommu_domain_destroy()
284 ctx->context.refs = 1; in amdiommu_ctx_alloc()
295 KASSERT(domain->refs >= domain->ctx_cnt, in amdiommu_ctx_link()
296 ("dom %p ref underflow %d %d", domain, domain->refs, in amdiommu_ctx_link()
298 domain->refs++; in amdiommu_ctx_link()
310 KASSERT(domain->refs > 0, in amdiommu_ctx_unlink()
311 ("domain %p ctx dtr refs %d", domain, domain->refs)); in amdiommu_ctx_unlink()
312 KASSERT(domain->ctx_cnt >= domain->refs, in amdiommu_ctx_unlink()
314 domain->refs, domain->ctx_cnt)); in amdiommu_ctx_unlink()
[all …]
H A Dintel_ctx.c278 domain->refs++; /* XXXKIB prevent free */ in domain_init_rmrr()
432 ctx->context.refs = 1; in dmar_ctx_alloc()
443 KASSERT(domain->refs >= domain->ctx_cnt, in dmar_ctx_link()
444 ("dom %p ref underflow %d %d", domain, domain->refs, in dmar_ctx_link()
446 domain->refs++; in dmar_ctx_link()
458 KASSERT(domain->refs > 0, in dmar_ctx_unlink()
459 ("domain %p ctx dtr refs %d", domain, domain->refs)); in dmar_ctx_unlink()
460 KASSERT(domain->ctx_cnt >= domain->refs, in dmar_ctx_unlink()
462 domain->refs, domain->ctx_cnt)); in dmar_ctx_unlink()
463 domain->refs--; in dmar_ctx_unlink()
[all …]
/freebsd/contrib/unifdef/scripts/
H A Dgit.config6 fetch = :refs/remotes/git-svn
9 fetch = +refs/heads/*:refs/remotes/github/*
10 fetch = +refs/pull/*/head:refs/remotes/github/pull/*
/freebsd/sys/dev/usb/
H A Dusb_dev.c873 struct usb_cdev_refdata refs; in usb_open() local
889 err = usb_ref_device(cpd, &refs, 1); in usb_open()
898 err = usb_fifo_create(cpd, &refs); in usb_open()
902 usb_unref_device(cpd, &refs); in usb_open()
907 err = usb_fifo_open(cpd, refs.rxfifo, fflags); in usb_open()
910 usb_unref_device(cpd, &refs); in usb_open()
916 err = usb_fifo_open(cpd, refs.txfifo, fflags); in usb_open()
920 usb_fifo_close(refs.rxfifo, fflags); in usb_open()
922 usb_unref_device(cpd, &refs); in usb_open()
927 usb_unref_device(cpd, &refs); in usb_open()
[all …]
/freebsd/sys/contrib/device-tree/scripts/
H A Dcronjob28 if ! git show-ref --quiet --verify refs/tags/v${LATEST_VERSION} ; then
31 if ! git show-ref --quiet --verify refs/tags/v${LATEST_VERSION}-dts ; then
38 REF=$(git show-ref --verify refs/heads/${branch})
89 REF=$(git show-ref --verify refs/heads/${TESTBRANCH})
112 git update-ref refs/tests/${DATE} ${TESTBRANCH}
119 REF=$(git show-ref --verify refs/heads/${branch})
H A Dfilter.sh14 LAST=$(git show-ref -s refs/heads/$UPSTREAM_MASTER||true)
28 rm -f .git/refs/original/refs/heads/${UPSTREAM_REWRITTEN}
37 --prune-empty --state-branch refs/heads/filter-state \
/freebsd/sys/i386/i386/
H A Dbpf_jit_machdep.h88 u_int *refs; member
424 emitm(&stream, stream.refs[stream.bpf_pc + ins->jt] - \
425 stream.refs[stream.bpf_pc] + 5, 4); \
426 JMP(stream.refs[stream.bpf_pc + ins->jf] - \
427 stream.refs[stream.bpf_pc]); \
430 emitm(&stream, stream.refs[stream.bpf_pc + ins->jt] - \
431 stream.refs[stream.bpf_pc], 4); \
434 emitm(&stream, stream.refs[stream.bpf_pc + ins->jf] - \
435 stream.refs[stream.bpf_pc], 4); \
441 JMP(stream.refs[stream.bpf_pc + (off)] - \
[all …]
H A Dbpf_jit_machdep.c66 if (stream->refs != NULL) in emit_length()
67 (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()
651 stream.refs[i] += stream.refs[i - 1]; in bpf_jit_compile()
667 free(stream.refs, M_BPFJIT); in bpf_jit_compile()
669 free(stream.refs); in bpf_jit_compile()
/freebsd/sys/amd64/amd64/
H A Dbpf_jit_machdep.h113 u_int *refs; member
479 emitm(&stream, stream.refs[stream.bpf_pc + ins->jt] - \
480 stream.refs[stream.bpf_pc] + 5, 4); \
481 JMP(stream.refs[stream.bpf_pc + ins->jf] - \
482 stream.refs[stream.bpf_pc]); \
485 emitm(&stream, stream.refs[stream.bpf_pc + ins->jt] - \
486 stream.refs[stream.bpf_pc], 4); \
489 emitm(&stream, stream.refs[stream.bpf_pc + ins->jf] - \
490 stream.refs[stream.bpf_pc], 4); \
496 JMP(stream.refs[stream.bpf_pc + (off)] - \
[all …]
H A Dbpf_jit_machdep.c66 if (stream->refs != NULL) in emit_length()
67 (stream->refs)[stream->bpf_pc] += len; in emit_length()
184 stream.refs = malloc((nins + 1) * sizeof(u_int), M_BPFJIT, in bpf_jit_compile()
187 stream.refs = calloc(nins + 1, sizeof(u_int)); in bpf_jit_compile()
189 if (stream.refs == NULL) in bpf_jit_compile()
621 stream.refs[i] += stream.refs[i - 1]; in bpf_jit_compile()
637 free(stream.refs, M_BPFJIT); in bpf_jit_compile()
639 free(stream.refs); in bpf_jit_compile()
/freebsd/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_plist.c71 plist->refs = 1; in bhnd_nvram_plist_new()
95 BHND_NV_ASSERT(plist->refs >= 1, ("plist over-released")); in bhnd_nvram_plist_retain()
97 refcount_acquire(&plist->refs); in bhnd_nvram_plist_retain()
113 BHND_NV_ASSERT(plist->refs >= 1, ("plist over-released")); in bhnd_nvram_plist_release()
116 if (!refcount_release(&plist->refs)) in bhnd_nvram_plist_release()
785 prop->refs = 1; in bhnd_nvram_prop_new()
860 BHND_NV_ASSERT(prop->refs >= 1, ("prop over-released")); in bhnd_nvram_prop_retain()
862 refcount_acquire(&prop->refs); in bhnd_nvram_prop_retain()
876 BHND_NV_ASSERT(prop->refs >= 1, ("prop over-released")); in bhnd_nvram_prop_release()
879 if (!refcount_release(&prop->refs)) in bhnd_nvram_prop_release()
H A Dbhnd_nvram_plistvar.h46 volatile u_int refs; /**< refcount */ member
68 volatile u_int refs; /**< refcount */ member
/freebsd/sbin/kldstat/
H A Dkldstat.c83 stat.id, stat.refs, PTR_WIDTH, stat.address, in printfile()
87 stat.id, stat.refs, PTR_WIDTH, stat.address, in printfile()
172 stat.id, stat.refs, stat.name, in main()
177 printf("%3d %4d %s\n", stat.id, stat.refs, in main()
/freebsd/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()
232 dup_table->refs[index_at_port]) { in __mlx4_register_mac()
242 if (!table->refs[index_at_dup_port] || in __mlx4_register_mac()
251 if (!table->refs[i]) { in __mlx4_register_mac()
255 if (!dup_table->refs[i]) in __mlx4_register_mac()
265 ++table->refs[i]; in __mlx4_register_mac()
308 table->refs[free] = 1; in __mlx4_register_mac()
[all …]
/freebsd/sys/dev/xen/grant_table/
H A Dgrant_table.c208 gnttab_end_foreign_access_references(u_int count, grant_ref_t *refs) in gnttab_end_foreign_access_references() argument
215 tail = *refs; in gnttab_end_foreign_access_references()
216 last_ref = refs + count; in gnttab_end_foreign_access_references()
217 while (refs != last_ref) { in gnttab_end_foreign_access_references()
218 if (gnttab_end_foreign_access_ref(*refs)) { in gnttab_end_foreign_access_references()
219 gnttab_entry(*refs) = head; in gnttab_end_foreign_access_references()
220 head = *refs; in gnttab_end_foreign_access_references()
230 refs++; in gnttab_end_foreign_access_references()
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransforms.h207 void clearRefsIn(Stmt *S, ExprSet &refs);
209 void clearRefsIn(iterator begin, iterator end, ExprSet &refs) { in clearRefsIn() argument
211 clearRefsIn(*begin, refs); in clearRefsIn()
214 void collectRefs(ValueDecl *D, Stmt *S, ExprSet &refs);
H A DTransforms.cpp217 ReferenceClear(ExprSet &refs) : Refs(refs) { } in ReferenceClear() argument
226 ReferenceCollector(ValueDecl *D, ExprSet &refs) in ReferenceCollector() argument
227 : 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/sys/dev/bhnd/bhndb/
H A Dbhndb_private.h162 LIST_HEAD(, bhndb_dw_rentry) refs; /**< references */
247 KASSERT(LIST_EMPTY(&dw_free->refs), in bhndb_dw_next_free()
262 bool is_free = LIST_EMPTY(&dwa->refs); in bhndb_dw_is_free()
/freebsd/sys/dev/nvmf/controller/
H A Dnvmft_var.h29 u_int refs; member
169 refcount_acquire(&np->refs); in nvmft_port_ref()
175 if (refcount_release(&np->refs)) in nvmft_port_rele()
/freebsd/contrib/netbsd-tests/ipf/expected/
H A Dp217 # 'anonymous' table refs 2
20 # 'anonymous' table refs 2
/freebsd/contrib/openpam/misc/
H A Dgendoc.pl418 my @refs = ();
421 push(@refs, "$page $sect");
424 while ($_ = shift(@refs)) {
426 (@refs ? " ,\n" : "\n");
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dcdev.h54 u_int refs; member
66 cdev->refs = 1; in cdev_init()

12345