Home
last modified time | relevance | path

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

12345678910>>...119

/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 …]
/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 …]
/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 …]
/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
[all …]
/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 …]
/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 …]
/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(const mapping<_OtherExtents>& __other) noexcept in requires()
90 …// mapping<dextents<char, 2>> map(mapping<dextents<int, 2>>(dextents<int, 2>(40,40))); map(3, 10) … in requires()
[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(const mapping<_OtherExtents>& __other) noexcept in requires()
91 …// mapping<dextents<char, 2>> map(mapping<dextents<int, 2>>(dextents<int, 2>(40,40))); map(10, 3) … in requires()
[all …]
/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 …]
/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<OtherExtents>&) noexcept;
113 mapping(const layout_stride::mapping<OtherExtents>&) noexcept;
115 constexpr mapping& operator=(const mapping&) noexcept = default;
136 friend constexpr bool operator==(const mapping&, const mapping<OtherExtents>&) noexcept;
[all …]
/src/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DMachOYAML.cpp85 void MappingTraits<MachOYAML::FileHeader>::mapping( in mapping() function in llvm::yaml::MappingTraits
99 void MappingTraits<MachOYAML::Object>::mapping(IO &IO, in mapping() function in llvm::yaml::MappingTraits
128 void MappingTraits<MachOYAML::FatHeader>::mapping( in mapping() function in llvm::yaml::MappingTraits
134 void MappingTraits<MachOYAML::FatArch>::mapping(IO &IO, in mapping() function in llvm::yaml::MappingTraits
145 void MappingTraits<MachOYAML::UniversalBinary>::mapping( in mapping() function in llvm::yaml::MappingTraits
159 void MappingTraits<MachOYAML::LinkEditData>::mapping( in mapping() function in llvm::yaml::MappingTraits
175 void MappingTraits<MachOYAML::RebaseOpcode>::mapping( in mapping() function in llvm::yaml::MappingTraits
182 void MappingTraits<MachOYAML::BindOpcode>::mapping( in mapping() function in llvm::yaml::MappingTraits
191 void MappingTraits<MachOYAML::ExportEntry>::mapping( in mapping() function in llvm::yaml::MappingTraits
203 void MappingTraits<MachOYAML::NListEntry>::mapping( in mapping() function in llvm::yaml::MappingTraits
[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() function in llvm::yaml::MappingTraits
114 void MappingTraits<DWARFYAML::AbbrevTable>::mapping( in mapping() function in llvm::yaml::MappingTraits
120 void MappingTraits<DWARFYAML::Abbrev>::mapping(IO &IO, in mapping() function in llvm::yaml::MappingTraits
128 void MappingTraits<DWARFYAML::IdxForm>::mapping(IO &IO, in mapping() function in llvm::yaml::MappingTraits
134 void MappingTraits<DWARFYAML::DebugNameAbbreviation>::mapping( in mapping() function in llvm::yaml::MappingTraits
141 void MappingTraits<DWARFYAML::DebugNameEntry>::mapping( in mapping() function in llvm::yaml::MappingTraits
148 void MappingTraits<DWARFYAML::DebugNamesSection>::mapping( in mapping() function in llvm::yaml::MappingTraits
154 void MappingTraits<DWARFYAML::AttributeAbbrev>::mapping( in mapping() function in llvm::yaml::MappingTraits
162 void MappingTraits<DWARFYAML::ARangeDescriptor>::mapping( in mapping() function in llvm::yaml::MappingTraits
168 void MappingTraits<DWARFYAML::ARange>::mapping(IO &IO, in mapping() function in llvm::yaml::MappingTraits
[all …]
/src/contrib/llvm-project/clang/lib/Tooling/Inclusions/Stdlib/
H A DStandardLibrary.cpp27 // A Mapping per language.
84 SymbolHeaderMapping *Mapping = new SymbolHeaderMapping(); in initialize() local
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->NamespaceSymbols)>; in initialize()
[all …]
/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 (i.e., PartialMapping **BreakDown) and duplicate the
[all …]
/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 …]
/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 …]
/src/sys/contrib/openzfs/module/zfs/
H A Dvdev_indirect_mapping.c95 * The length (in bytes) of the mapping object array in memory and
110 * Compare an offset with an indirect mapping entry; there are three
113 * 1. The offset is "less than" the mapping entry; meaning the
114 * offset is less than the source offset of the mapping entry. In
116 * mapping entry and -1 will be returned.
118 * 2. The offset is "greater than" the mapping entry; meaning the
119 * offset is greater than the mapping entry's source offset plus
121 * the offset and the mapping entry and 1 will be returned.
130 * within the mapping entry's range. If this is the case, the
131 * offset is considered to be "equal to" the mapping entry and
[all …]
/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 …]
/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 …]
/src/sys/contrib/device-tree/Bindings/sound/
H A Dqcom,wcd937x-sdw.yaml24 qcom,tx-port-mapping:
26 Specifies static port mapping between device and host tx ports.
42 qcom,rx-port-mapping:
44 Specifies static port mapping between device and host rx ports.
61 qcom,tx-channel-mapping:
63 Specifies static channel mapping between slave and master tx port
78 qcom,rx-channel-mapping:
80 Specifies static channels mapping between slave and master rx port
110 qcom,rx-port-mapping = <1 2 3 4 5>;
111 qcom,rx-channel-mapping = /bits/ 8 <1 2 1 1 2 1 1 2>;
[all …]

12345678910>>...119