Home
last modified time | relevance | path

Searched full:mapping (Results 1 – 25 of 3049) sorted by relevance

12345678910>>...122

/freebsd-src/contrib/processor-trace/libipt/src/
H A Dpt_section_file.c38 static int fmap_init(struct pt_sec_file_mapping *mapping) in fmap_init() argument
40 if (!mapping) in fmap_init()
43 memset(mapping, 0, sizeof(*mapping)); in fmap_init()
49 errcode = mtx_init(&mapping->lock, mtx_plain); in fmap_init()
58 static void fmap_fini(struct pt_sec_file_mapping *mapping) in fmap_fini() argument
60 if (!mapping) in fmap_fini()
63 fclose(mapping->file); in fmap_fini()
67 mtx_destroy(&mapping->lock); in fmap_fini()
72 static int fmap_lock(struct pt_sec_file_mapping *mapping) in fmap_lock() argument
74 if (!mapping) in fmap_lock()
[all …]
/freebsd-src/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/
H A DTypeDeserializer.h32 Mapping(Reader) {} in MappingInfo()
36 TypeRecordMapping Mapping; member
45 if (auto EC = I.Mapping.visitTypeBegin(CVT)) in deserializeAs()
47 if (auto EC = I.Mapping.visitKnownRecord(CVT, Record)) in deserializeAs()
49 if (auto EC = I.Mapping.visitTypeEnd(CVT)) in deserializeAs()
68 assert(!Mapping && "Already in a type mapping!"); in visitTypeBegin()
69 Mapping = std::make_unique<MappingInfo>(Record.content()); in visitTypeBegin()
70 return Mapping->Mapping.visitTypeBegin(Record); in visitTypeBegin()
78 assert(Mapping && "Not in a type mapping!"); in visitTypeEnd()
79 auto EC = Mapping->Mapping.visitTypeEnd(Record); in visitTypeEnd()
[all …]
H A DSymbolDeserializer.h28 Mapping(Reader, Container) {} in MappingInfo()
32 SymbolRecordMapping Mapping; member
64 assert(!Mapping && "Already in a symbol mapping!"); in visitSymbolBegin()
65 Mapping = std::make_unique<MappingInfo>(Record.content(), Container); in visitSymbolBegin()
66 return Mapping->Mapping.visitSymbolBegin(Record); in visitSymbolBegin()
69 assert(Mapping && "Not in a symbol mapping!"); in visitSymbolEnd()
70 auto EC = Mapping->Mapping.visitSymbolEnd(Record); in visitSymbolEnd()
71 Mapping.reset(); in visitSymbolEnd()
86 Delegate ? Delegate->getRecordOffset(Mapping->Reader) : 0; in visitKnownRecordImpl()
87 if (auto EC = Mapping->Mapping.visitKnownRecord(CVR, Record)) in visitKnownRecordImpl()
[all …]
/freebsd-src/contrib/llvm-project/clang/include/clang/Basic/
H A DDarwinSDKInfo.h47 /// Returns the os-environment mapping pair that's used to represent the
48 /// macOS -> Mac Catalyst version mapping.
54 /// Returns the os-environment mapping pair that's used to represent the
55 /// Mac Catalyst -> macOS version mapping.
61 /// Returns the os-environment mapping pair that's used to represent the
62 /// iOS -> watchOS version mapping.
68 /// Returns the os-environment mapping pair that's used to represent the
69 /// iOS -> tvOS version mapping.
81 /// Represents a version mapping that maps from a version of one target to a
91 llvm::DenseMap<VersionTuple, VersionTuple> Mapping) in RelatedTargetVersionMapping() argument
117 llvm::DenseMap<VersionTuple, VersionTuple> Mapping; global() variable
144 auto Mapping = VersionMappings.find(Kind.Value); getVersionMapping() local
[all...]
/freebsd-src/contrib/processor-trace/libipt/src/posix/
H A Dpt_section_posix.c101 struct pt_sec_posix_mapping *mapping; in pt_sec_posix_map() local
139 mapping = malloc(sizeof(*mapping)); in pt_sec_posix_map()
140 if (!mapping) { in pt_sec_posix_map()
145 mapping->base = base; in pt_sec_posix_map()
146 mapping->size = size; in pt_sec_posix_map()
147 mapping->begin = base + adjustment; in pt_sec_posix_map()
148 mapping->end = base + size; in pt_sec_posix_map()
150 section->mapping = mapping; in pt_sec_posix_map()
187 * We still want to return the error so we release our mapping. in pt_sec_posix_map_success()
214 if (section->mapping) in pt_section_map()
[all …]
/freebsd-src/sys/compat/linuxkpi/common/include/linux/
H A Dio-mapping.h51 io_mapping_init_wc(struct io_mapping *mapping, resource_size_t base, in io_mapping_init_wc() argument
55 mapping->base = base; in io_mapping_init_wc()
56 mapping->size = size; in io_mapping_init_wc()
58 mapping->mem = ioremap_wc(base, size); in io_mapping_init_wc()
59 mapping->attr = VM_MEMATTR_WRITE_COMBINING; in io_mapping_init_wc()
61 mapping->mem = ioremap_nocache(base, size); in io_mapping_init_wc()
62 mapping->attr = VM_MEMATTR_UNCACHEABLE; in io_mapping_init_wc()
64 return (mapping); in io_mapping_init_wc()
68 io_mapping_fini(struct io_mapping *mapping) in io_mapping_fini() argument
71 iounmap(mapping->mem); in io_mapping_fini()
[all …]
/freebsd-src/contrib/processor-trace/libipt/src/windows/
H A Dpt_section_windows.c127 struct pt_sec_windows_mapping *mapping; in pt_sec_windows_map() local
168 mapping = malloc(sizeof(*mapping)); in pt_sec_windows_map()
169 if (!mapping) { in pt_sec_windows_map()
174 mapping->fd = fd; in pt_sec_windows_map()
175 mapping->mh = mh; in pt_sec_windows_map()
176 mapping->base = base; in pt_sec_windows_map()
177 mapping->begin = base + adjustment; in pt_sec_windows_map()
178 mapping->end = base + size; in pt_sec_windows_map()
180 section->mapping = mapping; in pt_sec_windows_map()
220 * We still want to return the error so we release our mapping. in pt_sec_windows_map_success()
[all …]
/freebsd-src/share/man/man9/
H A Dpmap_enter.945 function creates a mapping in the physical map
53 Any previous mapping at the virtual address
68 The mapping should be marked as wired.
70 This function may not sleep during creation of the mapping.
71 If the mapping cannot be created without sleeping, an appropriate
76 flag is not specified, this function must create the requested mapping
79 In order to create the requested mapping, this function may destroy
80 any non-wired mapping in any pmap.
84 parameter specifies the page size that should be used by the mapping.
92 function destroys or updates a managed mapping, including an existing
[all …]
H A Dbus_dma.980 .Nd Bus and Machine Independent DMA Mapping Interface
205 A mapping structure
207 represents a mapping of a memory region for DMA.
209 the mapping structure tracks any I/O MMU entries used by a request.
211 the mapping tracks the bounce pages used.
214 a mapping must be bound to a memory region by calling one of the
217 These functions configure the mapping which can include programming entries
223 When a mapping is no longer needed,
224 the mapping must be unloaded via
231 If a mapping uses bounce pages,
[all …]
H A Dvm_map_find.951 creates a mapping of
64 when creating the mapping, if and only if a free region is found.
76 it specifies an upper bound on the mapping.
77 The mapping will only succeed if a free region can be found that resides
94 The mapping will only succeed if there is a free region of the requested
98 The mapping will succeed as long as there is a free region.
100 The mapping will succeed as long as there is a free region that begins on
107 then the mapping will require a free region that aligns relative to the
110 The mapping will succeed as long as there is a free region.
119 The mapping will succeed as long as there is a free region that aligns on
[all …]
H A Dbus_map_resource.951 These functions create or destroy a mapping of a previously activated
67 A set of optional properties to apply when creating a mapping.
70 to request a mapping of the entire resource with the default properties.
72 The resource mapping to create or destroy.
84 members that can be used for CPU access to the mapping.
87 member which contains the virtual address of the mapping if one exists.
96 a pointer to a mapping object can be passed as the first argument to
103 .Ss Optional Mapping Properties
108 can be used to specify optional properties of a mapping.
115 By default a mapping is created for the entire resource.
[all …]
/freebsd-src/contrib/llvm-project/libcxx/include/
H A Dmdspan27 // [mdspan.layout], layout mapping
93 class layout_left::mapping {
102 constexpr mapping() noexcept = default;
103 constexpr mapping(const mapping&) noexcept = default;
104 constexpr mapping(const extents_type&) noexcept;
107 mapping(const mapping<OtherExtents>&) noexcept;
110 mapping(const layout_right::mapping<OtherExtent
[all...]
/freebsd-src/contrib/llvm-project/libcxx/include/__mdspan/
H A Dlayout_right.h44 class layout_right::mapping {
47 "layout_right::mapping template argument must be a specialization of extents.");
70 "layout_right::mapping product of static extents must be representable as index_type.");
74 _LIBCPP_HIDE_FROM_ABI constexpr mapping() noexcept = default;
75 _LIBCPP_HIDE_FROM_ABI constexpr mapping(const mapping&) noexcept = default;
76 _LIBCPP_HIDE_FROM_ABI constexpr mapping(const extents_type& __ext) noexcept : __extents_(__ext) { in mapping() function
78 // mapping<dextents<char, 2>> map(dextents<char, 2>(40,40)); map(3, 10) == -126 in mapping()
81 "layout_right::mapping extents ctor: product of extents must be representable as index_type."); in mapping()
87 mapping(cons in requires()
99 mapping(const layout_left::mapping<_OtherExtents>& __other) noexcept mapping() function
[all...]
H A Dlayout_left.h45 class layout_left::mapping {
48 "layout_left::mapping template argument must be a specialization of extents.");
71 "layout_left::mapping product of static extents must be representable as index_type.");
75 _LIBCPP_HIDE_FROM_ABI constexpr mapping() noexcept = default;
76 _LIBCPP_HIDE_FROM_ABI constexpr mapping(const mapping&) noexcept = default;
77 _LIBCPP_HIDE_FROM_ABI constexpr mapping(const extents_type& __ext) noexcept : __extents_(__ext) { in mapping() function
79 // mapping<dextents<char, 2>> map(dextents<char, 2>(40,40)); map(10, 3) == -126 in mapping()
82 "layout_left::mapping extents ctor: product of extents must be representable as index_type."); in mapping()
88 mapping(cons in requires()
100 mapping(const layout_right::mapping<_OtherExtents>& __other) noexcept mapping() function
[all...]
/freebsd-src/contrib/llvm-project/clang/lib/Tooling/Inclusions/Stdlib/
H A DStandardLibrary.cpp27 // A Mapping per language.
84 SymbolHeaderMapping *Mapping = new SymbolHeaderMapping(); in initialize()
85 LanguageMappings[static_cast<unsigned>(Language)] = Mapping; in initialize()
88 Mapping->SymbolCount = SymCount; in initialize()
89 Mapping->SymbolNames = in initialize()
90 new std::remove_reference_t<decltype(*Mapping->SymbolNames)>[SymCount]; in initialize()
91 Mapping->SymbolHeaderIDs = new std::remove_reference_t< in initialize()
92 decltype(*Mapping->SymbolHeaderIDs)>[SymCount]; in initialize()
93 Mapping->NamespaceSymbols = in initialize()
94 new std::remove_reference_t<decltype(*Mapping in initialize()
83 SymbolHeaderMapping *Mapping = new SymbolHeaderMapping(); initialize() local
188 const auto *Mapping = getMappingPerLang(L); all() local
196 const auto *Mapping = getMappingPerLang(L); named() local
209 const auto *Mapping = getMappingPerLang(L); all() local
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DMachOYAML.cpp85 void MappingTraits<MachOYAML::FileHeader>::mapping( in mapping() function in llvm::yaml::MappingTraits::FileHeader
99 void MappingTraits<MachOYAML::Object>::mapping(IO &IO, in mapping() function in llvm::yaml::MappingTraits::Object
128 void MappingTraits<MachOYAML::FatHeader>::mapping( in mapping() function in llvm::yaml::MappingTraits::FatHeader
134 void MappingTraits<MachOYAML::FatArch>::mapping(IO &IO, in mapping() function in llvm::yaml::MappingTraits::FatArch
145 void MappingTraits<MachOYAML::UniversalBinary>::mapping( in mapping() function in llvm::yaml::MappingTraits::UniversalBinary
159 void MappingTraits<MachOYAML::LinkEditData>::mapping( in mapping() function in llvm::yaml::MappingTraits::LinkEditData
175 void MappingTraits<MachOYAML::RebaseOpcode>::mapping( in mapping() function in llvm::yaml::MappingTraits::RebaseOpcode
182 void MappingTraits<MachOYAML::BindOpcode>::mapping( in mapping() function in llvm::yaml::MappingTraits::BindOpcode
191 void MappingTraits<MachOYAML::ExportEntry>::mapping( in mapping() function in llvm::yaml::MappingTraits::ExportEntry
203 void MappingTraits<MachOYAML::NListEntry>::mapping( in mapping() function in llvm::yaml::MappingTraits::NListEntry
[all …]
H A DObjectYAML.cpp22 void MappingTraits<YamlObjectFile>::mapping(IO &IO, in mapping() function in MappingTraits
26 MappingTraits<ELFYAML::Object>::mapping(IO, *ObjectFile.Elf); in mapping()
28 MappingTraits<COFFYAML::Object>::mapping(IO, *ObjectFile.Coff); in mapping()
30 MappingTraits<GOFFYAML::Object>::mapping(IO, *ObjectFile.Goff); in mapping()
32 MappingTraits<MachOYAML::Object>::mapping(IO, *ObjectFile.MachO); in mapping()
34 MappingTraits<MachOYAML::UniversalBinary>::mapping(IO, in mapping()
40 MappingTraits<ArchYAML::Archive>::mapping(IO, *ObjectFile.Arch); in mapping()
47 MappingTraits<ELFYAML::Object>::mapping(IO, *ObjectFile.Elf); in mapping()
50 MappingTraits<COFFYAML::Object>::mapping(IO, *ObjectFile.Coff); in mapping()
53 MappingTraits<GOFFYAML::Object>::mapping(IO, *ObjectFile.Goff); in mapping()
[all …]
H A DDWARFYAML.cpp91 void MappingTraits<DWARFYAML::Data>::mapping(IO &IO, DWARFYAML::Data &DWARF) { in mapping()
114 void MappingTraits<DWARFYAML::AbbrevTable>::mapping( in mapping()
120 void MappingTraits<DWARFYAML::Abbrev>::mapping(IO &IO, in mapping()
128 void MappingTraits<DWARFYAML::IdxForm>::mapping(IO &IO, in mapping()
134 void MappingTraits<DWARFYAML::DebugNameAbbreviation>::mapping( in mapping()
141 void MappingTraits<DWARFYAML::DebugNameEntry>::mapping( in mapping()
148 void MappingTraits<DWARFYAML::DebugNamesSection>::mapping( in mapping()
154 void MappingTraits<DWARFYAML::AttributeAbbrev>::mapping( in mapping()
162 void MappingTraits<DWARFYAML::ARangeDescriptor>::mapping(
168 void MappingTraits<DWARFYAML::ARange>::mapping(I in mapping()
89 void MappingTraits<DWARFYAML::Data>::mapping(IO &IO, DWARFYAML::Data &DWARF) { mapping() function in llvm::yaml::MappingTraits::Data
111 void MappingTraits<DWARFYAML::AbbrevTable>::mapping( mapping() function in llvm::yaml::MappingTraits::AbbrevTable
117 void MappingTraits<DWARFYAML::Abbrev>::mapping(IO &IO, mapping() function in llvm::yaml::MappingTraits::Abbrev
125 void MappingTraits<DWARFYAML::AttributeAbbrev>::mapping( mapping() function in llvm::yaml::MappingTraits::AttributeAbbrev
133 void MappingTraits<DWARFYAML::ARangeDescriptor>::mapping( mapping() function in llvm::yaml::MappingTraits::ARangeDescriptor
139 void MappingTraits<DWARFYAML::ARange>::mapping(IO &IO, mapping() function in llvm::yaml::MappingTraits::ARange
150 void MappingTraits<DWARFYAML::RangeEntry>::mapping( mapping() function in llvm::yaml::MappingTraits::RangeEntry
156 void MappingTraits<DWARFYAML::Ranges>::mapping(IO &IO, mapping() function in llvm::yaml::MappingTraits::Ranges
163 void MappingTraits<DWARFYAML::PubEntry>::mapping(IO &IO, mapping() function in llvm::yaml::MappingTraits::PubEntry
171 void MappingTraits<DWARFYAML::PubSection>::mapping( mapping() function in llvm::yaml::MappingTraits::PubSection
181 void MappingTraits<DWARFYAML::Unit>::mapping(IO &IO, DWARFYAML::Unit &Unit) { mapping() function in llvm::yaml::MappingTraits::Unit
193 void MappingTraits<DWARFYAML::Entry>::mapping(IO &IO, DWARFYAML::Entry &Entry) { mapping() function in llvm::yaml::MappingTraits::Entry
198 void MappingTraits<DWARFYAML::FormValue>::mapping( mapping() function in llvm::yaml::MappingTraits::FormValue
207 void MappingTraits<DWARFYAML::File>::mapping(IO &IO, DWARFYAML::File &File) { mapping() function in llvm::yaml::MappingTraits::File
214 void MappingTraits<DWARFYAML::LineTableOpcode>::mapping( mapping() function in llvm::yaml::MappingTraits::LineTableOpcode
233 void MappingTraits<DWARFYAML::LineTable>::mapping( mapping() function in llvm::yaml::MappingTraits::LineTable
252 void MappingTraits<DWARFYAML::SegAddrPair>::mapping( mapping() function in llvm::yaml::MappingTraits::SegAddrPair
258 void MappingTraits<DWARFYAML::AddrTableEntry>::mapping( mapping() function in llvm::yaml::MappingTraits::AddrTableEntry
268 void MappingTraits<DWARFYAML::StringOffsetsTable>::mapping( mapping() function in llvm::yaml::MappingTraits::StringOffsetsTable
277 void MappingTraits<DWARFYAML::DWARFOperation>::mapping( mapping() function in llvm::yaml::MappingTraits::DWARFOperation
283 void MappingTraits<DWARFYAML::RnglistEntry>::mapping( mapping() function in llvm::yaml::MappingTraits::RnglistEntry
289 void MappingTraits<DWARFYAML::LoclistEntry>::mapping( mapping() function in llvm::yaml::MappingTraits::LoclistEntry
298 void MappingTraits<DWARFYAML::ListEntries<EntryType>>::mapping( mapping() function in llvm::yaml::MappingTraits::ListEntries
313 void MappingTraits<DWARFYAML::ListTable<EntryType>>::mapping( mapping() function in llvm::yaml::MappingTraits::ListTable
[all...]
/freebsd-src/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DRegisterBankInfo.h45 /// value this partial mapping covers.
50 /// Number of bits at which this partial mapping starts in the
55 /// Length of this mapping in bits. This is how many bits this
56 /// partial mapping covers in the original value:
71 /// significant bit that this partial mapping covers.
74 /// Print this partial mapping on dbgs() stream.
77 /// Print this partial mapping on \p OS;
82 /// there is no way this mapping is valid.
94 /// (mappings with more than one partial mapping), but when we do,
97 /// mapping (
[all...]
/freebsd-src/lib/libc/gen/
H A Dstrtofflags.c45 } const mapping[] = { variable
85 #define nmappings (sizeof(mapping) / sizeof(mapping[0]))
107 if (setflags & mapping[i].flag) { in fflagstostr()
110 for (sp = mapping[i].invert ? mapping[i].name : in fflagstostr()
111 mapping[i].name + 2; *sp; *dp++ = *sp++) ; in fflagstostr()
112 setflags &= ~mapping[i].flag; in fflagstostr()
141 if (strcmp(p, mapping[i].name + 2) == 0) { in strtofflags()
142 if (mapping[i].invert) { in strtofflags()
144 *clrp |= mapping[i].flag; in strtofflags()
147 *setp |= mapping[i].flag; in strtofflags()
[all …]
/freebsd-src/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_platform.h29 // Mapping app memory and back does not produce the same address,
33 // Mapping is non-linear for linear user range.
60 C/C++ on netbsd/amd64 can reuse the same mapping:
821 template <typename Mapping>
825 return Mapping::kLoAppMemBeg; in Apply()
827 return Mapping::kLoAppMemEnd; in Apply()
829 return Mapping::kMidAppMemBeg; in Apply()
831 return Mapping::kMidAppMemEnd; in Apply()
833 return Mapping::kHiAppMemBeg; in Apply()
835 return Mapping::kHiAppMemEnd; in Apply()
[all …]
/freebsd-src/sys/contrib/openzfs/module/zfs/
H A Dvdev_indirect_mapping.c94 * The length (in bytes) of the mapping object array in memory and
109 * Compare an offset with an indirect mapping entry; there are three
112 * 1. The offset is "less than" the mapping entry; meaning the
113 * offset is less than the source offset of the mapping entry. In
115 * mapping entry and -1 will be returned.
117 * 2. The offset is "greater than" the mapping entry; meaning the
118 * offset is greater than the mapping entry's source offset plus
120 * the offset and the mapping entry and 1 will be returned.
129 * within the mapping entry's range. If this is the case, the
130 * offset is considered to be "equal to" the mapping entry and
[all …]
/freebsd-src/lib/libproc/
H A Dproc_sym.c236 open_object(struct map_info *mapping) in open_object() argument
250 if (mapping->map.pr_mapname[0] == '\0') in open_object()
252 if (mapping->file->elf != NULL) in open_object()
255 file = mapping->file; in open_object()
256 map = &mapping->map; in open_object()
425 struct map_info *mapping; in _proc_addr2map() local
432 mapping = &p->mappings[i]; in _proc_addr2map()
433 if (addr >= mapping->map.pr_vaddr && in _proc_addr2map()
434 addr < mapping->map.pr_vaddr + mapping->map.pr_size) in _proc_addr2map()
435 return (mapping); in _proc_addr2map()
[all …]
/freebsd-src/tools/test/stress2/misc/
H A Dpkru2.sh21 static volatile char *mapping;
33 mapping = mmap(NULL, getpagesize(), PROT_READ | PROT_WRITE,
35 if (mapping == MAP_FAILED)
37 error = x86_pkru_protect_range((void *)mapping,
39 error = x86_pkru_protect_range((void *)mapping,
46 if (munmap((void *)mapping, getpagesize()) == -1)
71 static volatile char *mapping;
83 mapping = mmap(NULL, getpagesize(), PROT_READ | PROT_WRITE,
85 if (mapping == MAP_FAILED)
87 error = x86_pkru_protect_range((void *)mapping,
[all …]
/freebsd-src/contrib/llvm-project/llvm/include/llvm/ObjectYAML/
H A DMachOYAML.h191 static void mapping(IO &IO, MachOYAML::FileHeader &FileHeader); in LLVM_YAML_IS_SEQUENCE_VECTOR()
195 static void mapping(IO &IO, MachOYAML::Object &Object); in LLVM_YAML_IS_SEQUENCE_VECTOR()
199 static void mapping(IO &IO, MachOYAML::FatHeader &FatHeader); in LLVM_YAML_IS_SEQUENCE_VECTOR()
203 static void mapping(IO &IO, MachOYAML::FatArch &FatArch); in LLVM_YAML_IS_SEQUENCE_VECTOR()
207 static void mapping(IO &IO, MachOYAML::UniversalBinary &UniversalBinary); in LLVM_YAML_IS_SEQUENCE_VECTOR()
211 static void mapping(IO &IO, MachOYAML::LoadCommand &LoadCommand); in LLVM_YAML_IS_SEQUENCE_VECTOR()
215 static void mapping(IO &IO, MachOYAML::LinkEditData &LinkEditData); in LLVM_YAML_IS_SEQUENCE_VECTOR()
219 static void mapping(IO &IO, MachOYAML::RebaseOpcode &RebaseOpcode); in LLVM_YAML_IS_SEQUENCE_VECTOR()
223 static void mapping(IO &IO, MachOYAML::BindOpcode &BindOpcode); in LLVM_YAML_IS_SEQUENCE_VECTOR()
227 static void mapping(IO &IO, MachOYAML::ExportEntry &ExportEntry); in LLVM_YAML_IS_SEQUENCE_VECTOR()
[all …]

12345678910>>...122