| /src/contrib/llvm-project/lldb/source/Plugins/Process/Utility/ |
| H A D | LinuxProcMaps.cpp | 29 MemoryRegionInfo region; in ParseMemoryRegionInfoFromProcMapsLine() local 54 region.GetRange().SetRangeBase(start_address); in ParseMemoryRegionInfoFromProcMapsLine() 55 region.GetRange().SetRangeEnd(end_address); in ParseMemoryRegionInfoFromProcMapsLine() 59 region.SetMapped(MemoryRegionInfo::OptionalBool::eYes); in ParseMemoryRegionInfoFromProcMapsLine() 71 region.SetReadable(MemoryRegionInfo::OptionalBool::eYes); in ParseMemoryRegionInfoFromProcMapsLine() 73 region.SetReadable(MemoryRegionInfo::OptionalBool::eNo); in ParseMemoryRegionInfoFromProcMapsLine() 81 region.SetWritable(MemoryRegionInfo::OptionalBool::eYes); in ParseMemoryRegionInfoFromProcMapsLine() 83 region.SetWritable(MemoryRegionInfo::OptionalBool::eNo); in ParseMemoryRegionInfoFromProcMapsLine() 91 region.SetExecutable(MemoryRegionInfo::OptionalBool::eYes); in ParseMemoryRegionInfoFromProcMapsLine() 93 region.SetExecutable(MemoryRegionInfo::OptionalBool::eNo); in ParseMemoryRegionInfoFromProcMapsLine() [all …]
|
| H A D | MemoryTagManagerAArch64MTE.cpp | 103 MemoryRegionInfos::const_iterator region = std::find_if( in MakeTaggedRange() local 105 [&remaining_range](const MemoryRegionInfo ®ion) { in MakeTaggedRange() argument 106 return region.GetRange().Contains(remaining_range.GetRangeBase()); in MakeTaggedRange() 109 if (region == memory_regions.cend() || in MakeTaggedRange() 110 region->GetMemoryTagged() != MemoryRegionInfo::eYes) { in MakeTaggedRange() 124 remaining_range.SetRangeBase(region->GetRange().GetRangeEnd()); in MakeTaggedRange() 182 for (const MemoryRegionInfo ®ion : memory_regions) { in MakeTaggedRanges() local 188 if (!region.GetRange().DoesIntersect(range)) in MakeTaggedRanges() 193 if (region.GetMemoryTagged()) { in MakeTaggedRanges() 198 std::max(range.GetRangeBase(), region.GetRange().GetRangeBase()); in MakeTaggedRanges() [all …]
|
| /src/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_allocator_primary64.h | 177 RegionInfo *region = GetRegionInfo(class_id); in ReturnToAllocator() local 181 Lock l(®ion->mutex); in ReturnToAllocator() 182 uptr old_num_chunks = region->num_freed_chunks; in ReturnToAllocator() 186 if (UNLIKELY(!EnsureFreeArraySpace(region, region_beg, in ReturnToAllocator() 195 region->num_freed_chunks = new_num_freed_chunks; in ReturnToAllocator() 196 region->stats.n_freed += n_chunks; in ReturnToAllocator() 203 RegionInfo *region = GetRegionInfo(class_id); in GetFromAllocator() local 207 Lock l(®ion->mutex); in GetFromAllocator() 212 if (region->rtoi.last_released_bytes > 0) { in GetFromAllocator() 213 MmapFixedOrDie(region_beg, region->mapped_user, in GetFromAllocator() [all …]
|
| /src/sys/amd64/pci/ |
| H A D | pci_cfgreg.c | 55 static int pciereg_cfgread(struct pcie_mcfg_region *region, int bus, 57 static void pciereg_cfgwrite(struct pcie_mcfg_region *region, int bus, 107 struct pcie_mcfg_region *region; in pci_docfgregread() local 109 region = pcie_lookup_region(domain, bus); in pci_docfgregread() 110 if (region != NULL) in pci_docfgregread() 111 return (pciereg_cfgread(region, bus, slot, func, reg, in pci_docfgregread() 160 struct pcie_mcfg_region *region; in pci_cfgregwrite() local 162 region = pcie_lookup_region(domain, bus); in pci_cfgregwrite() 163 if (region != NULL) { in pci_cfgregwrite() 164 pciereg_cfgwrite(region, bus, slot, func, reg, data, in pci_cfgregwrite() [all …]
|
| /src/sys/contrib/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/ |
| H A D | scrypt_platform.c | 41 alloc_region(escrypt_region_t *region, size_t size) in alloc_region() argument 65 region->base = base; in alloc_region() 66 region->aligned = aligned; in alloc_region() 67 region->size = base ? size : 0; in alloc_region() 73 init_region(escrypt_region_t *region) in init_region() argument 75 region->base = region->aligned = NULL; in init_region() 76 region->size = 0; in init_region() 80 free_region(escrypt_region_t *region) in free_region() argument 82 if (region->base) { in free_region() 84 if (munmap(region->base, region->size)) { in free_region() [all …]
|
| /src/sys/contrib/device-tree/src/arm64/qcom/ |
| H A D | qcs8550.dtsi | 25 * reserved memory region may have reserved region which was not yet 35 ( region) don't need to be described in DT. 59 aop_image_mem: aop-image-region@81c00000 { 64 aop_cmd_db_mem: aop-cmd-db-region@81c60000 { 70 aop_config_mem: aop-config-region@81c80000 { 75 smem_mem: smem-region@81d00000 { 82 adsp_mhi_mem: adsp-mhi-region@81f00000 { 87 mpss_mem: mpss-region@8a800000 { 92 q6_mpss_dtb_mem: q6-mpss-dtb-region@9b000000 { 97 ipa_fw_mem: ipa-fw-region@9b080000 { [all …]
|
| /src/contrib/unbound/util/data/ |
| H A D | msgreply.c | 80 struct query_info* qinf, struct regional* region) in parse_create_qinfo() argument 83 if(region) in parse_create_qinfo() 84 qinf->qname = (uint8_t*)regional_alloc(region, in parse_create_qinfo() 99 construct_reply_info_base(struct regional* region, uint16_t flags, size_t qd, in construct_reply_info_base() argument 109 if(region) in construct_reply_info_base() 110 rep = (struct reply_info*)regional_alloc(region, s); in construct_reply_info_base() 131 if(region) in construct_reply_info_base() 136 if(!region) in construct_reply_info_base() 144 struct regional* region) in parse_create_repinfo() argument 146 *rep = construct_reply_info_base(region, msg->flags, msg->qdcount, 0, in parse_create_repinfo() [all …]
|
| H A D | msgreply.h | 270 construct_reply_info_base(struct regional* region, uint16_t flags, size_t qd, 304 struct regional* region, struct edns_data* edns); 323 struct reply_info** rep, struct regional* region); 327 struct regional* region, struct query_info* qi); 398 struct alloc_cache* alloc, struct regional* region); 413 struct alloc_cache* alloc, struct regional* region); 445 make_new_reply_info(const struct reply_info* rep, struct regional* region, 460 struct rrset_parse *pset, struct regional* region, 584 uint8_t* data, struct regional* region); 614 int edns_opt_list_append_ede(struct edns_option** list, struct regional* region, [all …]
|
| /src/sys/contrib/libsodium/src/libsodium/crypto_pwhash/argon2/ |
| H A D | argon2-core.c | 70 static int allocate_memory(block_region **region, uint32_t m_cost); 73 allocate_memory(block_region **region, uint32_t m_cost) in allocate_memory() argument 79 if (region == NULL) { in allocate_memory() 88 *region = (block_region *) malloc( in allocate_memory() 90 if (!*region) { in allocate_memory() 93 (*region)->base = (*region)->memory = NULL; in allocate_memory() 121 (*region)->base = base; in allocate_memory() 122 (*region)->memory = memory; in allocate_memory() 123 (*region)->size = memory_size; in allocate_memory() 141 if (instance->region != NULL) { in clear_memory() [all …]
|
| /src/contrib/llvm-project/lldb/source/Plugins/Process/minidump/ |
| H A D | MinidumpParser.cpp | 267 [®ions, &log](llvm::Expected<MemoryRegionInfo> region) -> bool { in CreateRegionsCacheFromLinuxMaps() argument 268 if (region) in CreateRegionsCacheFromLinuxMaps() 269 regions.push_back(*region); in CreateRegionsCacheFromLinuxMaps() 271 LLDB_LOG_ERROR(log, region.takeError(), in CreateRegionsCacheFromLinuxMaps() 334 MemoryRegionInfo region = MinidumpParser::GetMemoryRegionInfo(regions, addr); in CheckForLinuxExecutable() local 335 while (region.GetName() == path) { in CheckForLinuxExecutable() 336 if (region.GetExecutable() == MemoryRegionInfo::eYes) in CheckForLinuxExecutable() 338 addr += region.GetRange().GetByteSize(); in CheckForLinuxExecutable() 339 region = MinidumpParser::GetMemoryRegionInfo(regions, addr); in CheckForLinuxExecutable() 528 MemoryRegionInfo region; in CreateRegionsCacheFromMemoryInfoList() local [all …]
|
| /src/contrib/unbound/services/cache/ |
| H A D | dns.c | 80 struct regional* region, time_t qstarttime) in store_rrsets() argument 95 if(region) { in store_rrsets() 103 rep->ref[i].key, region, now); in store_rrsets() 157 struct reply_info* qrep, uint32_t flags, struct regional* region, in dns_cache_store_msg() argument 173 store_rrsets(env, rep, *env->now, leeway, pside, qrep, region, in dns_cache_store_msg() 270 addr_to_additional(struct ub_packed_rrset_key* rrset, struct regional* region, in addr_to_additional() argument 274 packed_rrset_copy_region(rrset, region, now))) { in addr_to_additional() 308 struct regional* region, struct delegpt* dp, time_t now, in find_add_addrs() argument 318 if(!delegpt_add_rrset_A(dp, region, akey, 0, NULL)) { in find_add_addrs() 323 addr_to_additional(akey, region, *msg, now); in find_add_addrs() [all …]
|
| H A D | dns.h | 99 struct regional* region, uint32_t flags, time_t qstarttime, 126 struct reply_info* qrep, uint32_t flags, struct regional* region, 150 struct regional* region, struct dns_msg** msg, time_t timenow, 167 struct reply_info* r, struct regional* region, time_t now, 177 struct regional* region); 199 uint16_t flags, struct regional* region, struct regional* scratch, 212 struct regional* region, struct delegpt* dp, uint32_t flags); 226 uint16_t qclass, struct regional* region, size_t capacity); 237 int dns_msg_authadd(struct dns_msg* msg, struct regional* region, 249 int dns_msg_ansadd(struct dns_msg* msg, struct regional* region,
|
| /src/sys/i386/pci/ |
| H A D | pci_cfgreg.c | 92 static int pciereg_cfgread(struct pcie_mcfg_region *region, int bus, 94 static void pciereg_cfgwrite(struct pcie_mcfg_region *region, int bus, 181 struct pcie_mcfg_region *region; in pci_docfgregread() local 183 region = pcie_lookup_region(domain, bus); in pci_docfgregread() 184 if (region != NULL) in pci_docfgregread() 185 return (pciereg_cfgread(region, bus, slot, func, reg, in pci_docfgregread() 229 struct pcie_mcfg_region *region; in pci_cfgregwrite() local 231 region = pcie_lookup_region(domain, bus); in pci_cfgregwrite() 232 if (region != NULL) { in pci_cfgregwrite() 233 pciereg_cfgwrite(region, bus, slot, func, reg, data, in pci_cfgregwrite() [all …]
|
| /src/sys/dev/pms/RefTisa/sallsdk/spc/ |
| H A D | mpi.c | 77 memoryMap->region[memoryMap->count].numElements = 1; in mpiRequirementsGet() 78 memoryMap->region[memoryMap->count].elementSize = sizeof(bit8) * config->mainConfig.eventLogSize; in mpiRequirementsGet() 79 memoryMap->region[memoryMap->count].totalLength = sizeof(bit8) * config->mainConfig.eventLogSize; in mpiRequirementsGet() 80 memoryMap->region[memoryMap->count].alignment = 32; in mpiRequirementsGet() 81 memoryMap->region[memoryMap->count].type = AGSA_DMA_MEM; in mpiRequirementsGet() 82 …SA_DBG2(("mpiRequirementsGet:eventLogSize region[%d] 0x%X\n",memoryMap->count,memoryMap->region[me… in mpiRequirementsGet() 85 …SA_DBG2(("mpiRequirementsGet:eventLogSize region[%d] 0x%X\n",memoryMap->count,memoryMap->region[me… in mpiRequirementsGet() 87 memoryMap->region[memoryMap->count].numElements = 1; in mpiRequirementsGet() 88 …memoryMap->region[memoryMap->count].elementSize = sizeof(bit8) * config->mainConfig.IOPeventLogSiz… in mpiRequirementsGet() 89 …memoryMap->region[memoryMap->count].totalLength = sizeof(bit8) * config->mainConfig.IOPeventLogSiz… in mpiRequirementsGet() [all …]
|
| /src/contrib/unbound/validator/ |
| H A D | val_kentry.c | 111 key_entry_copy_toregion(struct key_entry_key* kkey, struct regional* region) in key_entry_copy_toregion() argument 114 newk = regional_alloc_init(region, kkey, sizeof(*kkey)); in key_entry_copy_toregion() 117 newk->name = regional_alloc_init(region, kkey->name, kkey->namelen); in key_entry_copy_toregion() 126 newd = regional_alloc_init(region, d, sizeof(*d)); in key_entry_copy_toregion() 131 newd->rrset_data = regional_alloc_init(region, in key_entry_copy_toregion() 139 newd->reason = regional_strdup(region, d->reason); in key_entry_copy_toregion() 144 newd->algo = (uint8_t*)regional_strdup(region, in key_entry_copy_toregion() 259 key_entry_setup(struct regional* region, in key_entry_setup() argument 263 *k = regional_alloc(region, sizeof(**k)); in key_entry_setup() 268 (*k)->name = regional_alloc_init(region, name, namelen); in key_entry_setup() [all …]
|
| /src/sys/contrib/dev/athk/ |
| H A D | dfs_pattern_detector.c | 31 enum nl80211_dfs_regions region; member 66 .region = NL80211_DFS_ETSI, 98 .region = NL80211_DFS_FCC, 123 .region = NL80211_DFS_JP, 141 get_dfs_domain_radar_types(enum nl80211_dfs_regions region) in get_dfs_domain_radar_types() argument 145 if (dfs_domains[i]->region == region) in get_dfs_domain_radar_types() 278 if (dpd->region == NL80211_DFS_UNSET) in dpd_add_pulse() 316 enum nl80211_dfs_regions region) in dpd_set_domain() argument 321 if (dpd->region == region) in dpd_set_domain() 324 dpd->region = NL80211_DFS_UNSET; in dpd_set_domain() [all …]
|
| /src/contrib/unbound/testcode/ |
| H A D | unitverify.c | 91 struct regional* region, sldns_buffer* pkt, struct query_info* qi, in entry_to_repinfo() argument 102 ret = reply_info_parse(pkt, alloc, qi, rep, region, &edns); in entry_to_repinfo() 115 struct regional* region, sldns_buffer* pkt) in extract_keys() argument 122 entry_to_repinfo(e, alloc, region, pkt, &qinfo, &rep); in extract_keys() 215 struct regional* region, sldns_buffer* pkt, in verifytest_entry() argument 223 regional_free_all(region); in verifytest_entry() 230 entry_to_repinfo(e, alloc, region, pkt, &qinfo, &rep); in verifytest_entry() 255 struct regional* region, sldns_buffer* pkt, struct module_env* env) in dstest_entry() argument 262 regional_free_all(region); in dstest_entry() 269 entry_to_repinfo(e, alloc, region, pkt, &qinfo, &rep); in dstest_entry() [all …]
|
| H A D | unitzonemd.c | 70 struct regional* region = NULL; in zonemd_generate_test() local 81 region = regional_create(); in zonemd_generate_test() 82 unit_assert(region); in zonemd_generate_test() 95 zonemd_hash, sizeof(zonemd_hash), &hashlen, region, buf, in zonemd_generate_test() 127 regional_destroy(region); in zonemd_generate_test() 188 struct regional* region = NULL; in zonemd_check_test() local 199 region = regional_create(); in zonemd_check_test() 200 unit_assert(region); in zonemd_check_test() 221 hash, hashlen, region, buf, &reason); in zonemd_check_test() 224 hash, hashlen, region, buf, &reason); in zonemd_check_test() [all …]
|
| H A D | unitmain.c | 978 struct regional* region) in edns_ede_encode_setup() argument 987 edns_opt_list_append_ede(&edns->opt_list_out, region, in edns_ede_encode_setup() 990 edns_opt_list_append_ede(&edns->opt_list_out, region, in edns_ede_encode_setup() 993 edns_opt_list_append_ede(&edns->opt_list_out, region, in edns_ede_encode_setup() 996 edns_opt_list_append_ede(&edns->opt_list_out, region, in edns_ede_encode_setup() 999 edns_opt_list_append_ede(&edns->opt_list_out, region, in edns_ede_encode_setup() 1003 edns_opt_list_append_ede(&edns->opt_list_inplace_cb_out, region, in edns_ede_encode_setup() 1006 edns_opt_list_append_ede(&edns->opt_list_inplace_cb_out, region, in edns_ede_encode_setup() 1009 edns_opt_list_append_ede(&edns->opt_list_inplace_cb_out, region, in edns_ede_encode_setup() 1012 edns_opt_list_append_ede(&edns->opt_list_inplace_cb_out, region, in edns_ede_encode_setup() [all …]
|
| /src/contrib/unbound/util/ |
| H A D | tcp_conn_limit.c | 57 tcl->region = regional_create(); in tcl_list_create() 58 if(!tcl->region) { in tcl_list_create() 81 regional_destroy(tcl->region); in tcl_list_delete() 91 struct tcl_addr* node = regional_alloc_zero(tcl->region, in tcl_list_insert() 146 regional_free_all(tcl->region); in tcl_list_apply_cfg() 193 return sizeof(*tcl) + regional_get_mem(tcl->region); in tcl_list_get_mem() 200 struct regional* oldregion = tcl->region; in tcl_list_swap_tree() 202 tcl->region = data->region; in tcl_list_swap_tree() 204 data->region = oldregion; in tcl_list_swap_tree()
|
| H A D | edns.c | 65 if(!(edns_strings->region = regional_create())) { in edns_strings_create() 76 regional_destroy(edns_strings->region); in edns_strings_delete() 85 struct edns_string_addr* esa = regional_alloc_zero(edns_strings->region, in edns_strings_client_insert() 90 esa->string = regional_alloc_init(edns_strings->region, string, in edns_strings_client_insert() 105 regional_free_all(edns_strings->region); in edns_strings_apply_cfg() 143 return regional_get_mem(edns_strings->region) + sizeof(*edns_strings); in edns_strings_get_mem() 152 struct regional* region = edns_strings->region; in edns_strings_swap_tree() local 156 edns_strings->region = data->region; in edns_strings_swap_tree() 159 data->region = region; in edns_strings_swap_tree()
|
| /src/contrib/unbound/iterator/ |
| H A D | iter_delegpt.c | 54 delegpt_create(struct regional* region) in delegpt_create() argument 57 region, sizeof(*dp)); in delegpt_create() 64 struct delegpt* delegpt_copy(struct delegpt* dp, struct regional* region) in delegpt_copy() argument 66 struct delegpt* copy = delegpt_create(region); in delegpt_copy() 71 if(!delegpt_set_name(copy, region, dp->name)) in delegpt_copy() 78 if(!delegpt_add_ns(copy, region, ns->name, ns->lame, in delegpt_copy() 89 if(!delegpt_add_addr(copy, region, &a->addr, a->addrlen, in delegpt_copy() 97 delegpt_set_name(struct delegpt* dp, struct regional* region, uint8_t* name) in delegpt_set_name() argument 101 dp->name = regional_alloc_init(region, name, dp->namelen); in delegpt_set_name() 106 delegpt_add_ns(struct delegpt* dp, struct regional* region, uint8_t* name, in delegpt_add_ns() argument [all …]
|
| /src/contrib/unbound/respip/ |
| H A D | respip.c | 63 set->region = regional_create(); in respip_set_create() 64 if(!set->region) { in respip_set_create() 91 regional_destroy(set->region); in respip_set_delete() 111 node = regional_alloc_zero(set->region, sizeof(*node)); in respip_sockaddr_find_or_create() 174 node->taglist = regional_alloc_init(set->region, taglist, taglen); in respip_tag_cfg() 229 new_rrset(struct regional* region, uint16_t rrtype, uint16_t rrclass) in new_rrset() argument 233 region, sizeof(*rrset)); in new_rrset() 239 pd = regional_alloc_zero(region, sizeof(*pd)); in new_rrset() 247 rrset->rk.dname = regional_alloc_zero(region, 1); in new_rrset() 261 respip_enter_rr(struct regional* region, struct resp_addr* raddr, in respip_enter_rr() argument [all …]
|
| /src/contrib/unbound/edns-subnet/ |
| H A D | subnet-whitelist.c | 64 whitelist->region = regional_create(); in ecs_whitelist_create() 65 if(!whitelist->region) { in ecs_whitelist_create() 77 regional_destroy(whitelist->region); in ecs_whitelist_delete() 87 whitelist->region, sizeof(*node)); in upstream_insert() 148 nmr = (uint8_t*)regional_alloc_init(whitelist->region, nm, in read_names() 155 n = (struct name_tree_node*)regional_alloc(whitelist->region, in read_names() 174 regional_free_all(whitelist->region); in ecs_whitelist_apply_cfg() 204 return sizeof(*whitelist) + regional_get_mem(whitelist->region); in ecs_whitelist_get_mem()
|
| /src/stand/libsa/ |
| H A D | hexdump.c | 34 hexdump(caddr_t region, size_t len) in hexdump() argument 48 for (line = region; line < (region + len); line += 16) { in hexdump() 52 if ((line + x) < (region + len)) { in hexdump() 62 if ((line + x) < (region + len)) { in hexdump()
|