Searched defs:ref (Results 1 - 25 of 208) sorted by relevance

123456789

/freebsd-head/contrib/ntp/lib/isc/
H A Drefcount.c28 isc_refcount_init(isc_refcount_t *ref, unsigned int n) { argument
29 REQUIRE(ref != NULL);
31 ref->refs = n;
33 return (isc_mutex_init(&ref->lock));
/freebsd-head/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/
H A DDIERef.cpp12 void llvm::format_provider<DIERef>::format(const DIERef &ref, raw_ostream &OS, argument
14 if (ref.dwo_num())
15 OS << format_hex_no_prefix(*ref.dwo_num(), 8) << "/";
16 OS << (ref.section() == DIERef::DebugInfo ? "INFO" : "TYPE");
17 OS << "/" << format_hex_no_prefix(ref.die_offset(), 8);
H A DDWARFIndex.cpp22 llvm::StringRef name, DIERef ref, SymbolFileDWARF &dwarf,
25 DWARFDIE die = dwarf.GetDIE(ref);
27 ReportInvalidDIERef(ref, name);
74 bool DWARFIndex::DIERefCallbackImpl::operator()(DIERef ref) const {
75 if (DWARFDIE die = m_dwarf.GetDIE(ref))
77 m_index.ReportInvalidDIERef(ref, m_name);
81 void DWARFIndex::ReportInvalidDIERef(DIERef ref, llvm::StringRef name) const { argument
85 ref.die_offset(), name.str().c_str());
21 ProcessFunctionDIE( llvm::StringRef name, DIERef ref, SymbolFileDWARF &dwarf, const CompilerDeclContext &parent_decl_ctx, uint32_t name_type_mask, llvm::function_ref<bool(DWARFDIE die)> callback) argument
/freebsd-head/contrib/libarchive/libarchive/test/
H A Dtest_write_format_cpio_empty.c33 static char ref[] = variable
70 assertEqualMem(buff, ref, 87);
/freebsd-head/sys/dev/drm2/
H A Ddrm_global.c70 int drm_global_item_ref(struct drm_global_reference *ref) argument
73 struct drm_global_item *item = &glob[ref->global_type];
78 item->object = malloc(ref->size, M_DRM_GLOBAL,
85 ref->object = item->object;
86 ret = ref->init(ref);
92 ref->object = item->object;
103 void drm_global_item_unref(struct drm_global_reference *ref) argument
105 struct drm_global_item *item = &glob[ref->global_type];
109 MPASS(ref
[all...]
/freebsd-head/sys/compat/linuxkpi/common/include/linux/
H A Drefcount.h42 refcount_set(refcount_t *ref, unsigned int i) argument
44 atomic_set(&ref->value, i);
48 refcount_inc(refcount_t *ref) argument
50 atomic_inc(&ref->value);
54 refcount_inc_not_zero(refcount_t *ref) argument
56 return (atomic_inc_not_zero(&ref->value));
60 refcount_dec(refcount_t *ref) argument
62 atomic_dec(&ref->value);
66 refcount_read(refcount_t *ref) argument
68 return atomic_read(&ref
72 refcount_dec_and_lock_irqsave(refcount_t *ref, spinlock_t *lock, unsigned long *flags) argument
[all...]
/freebsd-head/contrib/apr/include/
H A Dapr_allocator.h46 * @note The next, ref and first_avail fields are available for use by the
51 * The ref and first_avail fields will be properly restored by
56 apr_memnode_t **ref; /**< reference to self */ member in struct:apr_memnode_t
/freebsd-head/contrib/ipfilter/lib/
H A Dsave_file.c15 int ref; member in struct:file_opts_s
40 ctx->ref = 1;
81 f->ref++;
106 file->ref--;
107 if (file->ref > 0)
/freebsd-head/contrib/atf/atf-c++/detail/
H A Dauto_array.hpp87 auto_array< T >::auto_array(auto_array_ref< T > ref) argument
89 m_ptr(ref.m_ptr)
148 auto_array< T >::operator=(auto_array_ref< T > ref) argument
151 if (m_ptr != ref.m_ptr) {
153 m_ptr = ref.m_ptr;
/freebsd-head/contrib/libucl/tests/
H A Dtest_generate.c44 ucl_object_t *obj, *cur, *ar, *ar1, *ref, *test_obj, *comments; local
140 ref = ucl_object_ref (cur);
304 ref->value.iv = 100500;
305 ucl_object_unref (ref);
/freebsd-head/contrib/unbound/util/data/
H A Dmsgreply.h207 * It could be more pure to define as array of size 0, ref[0].
208 * But ref[1] may be less confusing for compilers.
211 struct rrset_ref ref[1]; member in struct:reply_info
300 * Sorts the ref array.
358 * @param rep: what to copy, probably inside region, no ref[] array in it.
/freebsd-head/contrib/libedit/
H A Dhist.h50 void *ref; /* Argument for history fcns */ member in struct:el_history_t
56 ((((*(el)->el_history.fun) ((el)->el_history.ref, &(el)->el_history.ev, \
/freebsd-head/contrib/file/src/
H A Dcdf_time.c187 static const char *ref = "Sat Apr 23 01:30:00 1977"; local
194 if (strcmp(ref, p) != 0)
195 errx(1, "Error date %s != %s\n", ref, p);
/freebsd-head/contrib/llvm-project/lld/lib/ReaderWriter/MachO/
H A DShimPass.cpp52 for (const Reference *ref : *atom) {
54 if (!_archHandler.isNonCallBranch(*ref))
56 const Atom *target = ref->target();
62 updateBranchToUseShim(atomIsThumb, *daTarget, ref);
91 const Reference *ref) {
96 const_cast<Reference *>(ref)->setTarget(shim);
90 updateBranchToUseShim(bool thumbToArm, const DefinedAtom& target, const Reference *ref) argument
/freebsd-head/contrib/llvm-project/lldb/source/API/
H A DSBEnvironment.cpp132 Environment &SBEnvironment::ref() const { return *m_opaque_up; } function in class:SBEnvironment
H A DSBFileSpecList.cpp57 m_opaque_up->Append(sb_file.ref());
64 return m_opaque_up->AppendIfUnique(sb_file.ref());
79 return m_opaque_up->FindFileIndex(idx, sb_file.ref(), full);
103 const lldb_private::FileSpecList &SBFileSpecList::ref() const { function in class:SBFileSpecList
111 Stream &strm = description.ref();
H A DSBMemoryRegionInfo.cpp28 ref() = *lldb_object_ptr;
62 return ref() == rhs.ref();
70 return ref() != rhs.ref();
73 MemoryRegionInfo &SBMemoryRegionInfo::ref() { return *m_opaque_up; } function in class:SBMemoryRegionInfo
75 const MemoryRegionInfo &SBMemoryRegionInfo::ref() const { return *m_opaque_up; } function in class:SBMemoryRegionInfo
123 Stream &strm = description.ref();
H A DSBMemoryRegionInfoList.cpp67 MemoryRegionInfos &SBMemoryRegionInfoList::ref() { return m_opaque_up->Ref(); } function in class:SBMemoryRegionInfoList
69 const MemoryRegionInfos &SBMemoryRegionInfoList::ref() const { function in class:SBMemoryRegionInfoList
111 return m_opaque_up->GetMemoryRegionInfoAtIndex(idx, region_info.ref());
124 m_opaque_up->Append(sb_region.ref());
/freebsd-head/sys/dev/uart/
H A Duart_cpu_powerpc.c85 phandle_t ref; member in union:__anon1662
101 output = OF_instance_to_package(field.ref);
/freebsd-head/sys/xen/interface/io/
H A Dtpmif.h41 grant_ref_t ref; /* grant table access reference */ member in struct:tpmif_tx_request
/freebsd-head/contrib/llvm-project/lld/ELF/
H A DDWARF.cpp81 static uint64_t resolve(object::RelocationRef ref, uint64_t s, argument
83 return s + ref.getRawDataRefImpl().p;
/freebsd-head/sbin/hastd/
H A Dlzf.c116 const u8 *ref; local
151 ref = *hslot; *hslot = ip;
155 && ref < ip /* the next test will actually take care of this, but this is faster */
157 && (off = ip - ref - 1) < MAX_OFF
159 && ref > (const u8 *)in_data
161 && ref[0] == ip[0]
162 && ref[1] == ip[1]
163 && ref[2] == ip[2]
165 && *(const u16 *)ref == *(const u16 *)ip
166 && ref[
356 u8 *ref = op - ((ctrl & 0x1f) << 8) - 1; local
[all...]
/freebsd-head/usr.sbin/mfiutil/
H A Dmfi_volume.c68 mbox_store_ldref(uint8_t *mbox, union mfi_ld_ref *ref) argument
71 mbox[0] = ref->v.target_id;
72 mbox[1] = ref->v.reserved;
73 mbox[2] = ref->v.seq & 0xff;
74 mbox[3] = ref->v.seq >> 8;
/freebsd-head/sys/xen/
H A Dgntdev.h77 * - `refs[i].ref`, as the grant-ref for the grant to be mapped
159 uint32_t ref; member in struct:ioctl_gntdev_grant_ref
/freebsd-head/contrib/googletest/googlemock/test/
H A Dgmock-generated-function-mockers_test.cc615 int& ref = foo.AsStdFunction()(); local
616 EXPECT_EQ(1, ref);
618 EXPECT_EQ(2, ref);

Completed in 153 milliseconds

123456789