Home
last modified time | relevance | path

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

12345678910>>...26

/openbsd/src/usr.sbin/nsd/
Dregion-allocator.c55 struct region struct
185 region_destroy(region_type *region) in region_destroy() argument
188 if (!region) in region_destroy()
191 deallocator = region->deallocator; in region_destroy()
193 region_free_all(region); in region_destroy()
194 deallocator(region->cleanups); in region_destroy()
195 deallocator(region->initial_data); in region_destroy()
196 if(region->recycle_bin) in region_destroy()
197 deallocator(region->recycle_bin); in region_destroy()
198 if(region->large_list) { in region_destroy()
[all …]
Dzonec.h40 region_type *region; /* Allocate for parser lifetime data. */ member
87 uint16_t *zparser_conv_hex(region_type *region, const char *hex, size_t len);
88 uint16_t *zparser_conv_hex_length(region_type *region, const char *hex, size_t len);
89 uint16_t *zparser_conv_time(region_type *region, const char *time);
90 uint16_t *zparser_conv_services(region_type *region, const char *protostr, char *servicestr);
91 uint16_t *zparser_conv_serial(region_type *region, const char *periodstr);
92 uint16_t *zparser_conv_period(region_type *region, const char *periodstr);
93 uint16_t *zparser_conv_short(region_type *region, const char *text);
94 uint16_t *zparser_conv_long(region_type *region, const char *text);
95 uint16_t *zparser_conv_byte(region_type *region, const char *text);
[all …]
Dregion-allocator.h15 typedef struct region region_type;
66 void region_destroy(region_type *region);
75 size_t region_add_cleanup(region_type *region,
82 void region_remove_cleanup(region_type *region,
89 void *region_alloc(region_type *region, size_t size);
92 void *region_alloc_array(region_type *region, size_t num, size_t size);
99 void *region_alloc_init(region_type *region, const void *init, size_t size);
105 void *region_alloc_array_init(region_type *region, const void *init,
113 void *region_alloc_zero(region_type *region, size_t size);
119 void *region_alloc_array_zero(region_type *region, size_t num, size_t size);
[all …]
Dradtree.c19 struct radtree* radix_tree_create(struct region* region) in radix_tree_create() argument
21 struct radtree* rt = (struct radtree*)region_alloc(region, sizeof(*rt)); in radix_tree_create()
23 rt->region = region; in radix_tree_create()
35 static void radnode_del_postorder(struct region* region, struct radnode* n) in radnode_del_postorder() argument
40 radnode_del_postorder(region, n->array[i].node); in radnode_del_postorder()
41 region_recycle(region, n->array[i].str, n->array[i].len); in radnode_del_postorder()
43 region_recycle(region, n->array, n->capacity*sizeof(struct radsel)); in radnode_del_postorder()
44 region_recycle(region, n, sizeof(*n)); in radnode_del_postorder()
49 radnode_del_postorder(rt->region, rt->root); in radix_tree_clear()
58 region_recycle(rt->region, rt, sizeof(*rt)); in radix_tree_delete()
[all …]
Dzparser.y121 parser->region,
731 zadd_rdata_wireformat(zparser_conv_a(parser->region, $1.str));
747 zadd_rdata_wireformat(zparser_conv_serial(parser->region, $5.str)); /* serial */
748 zadd_rdata_wireformat(zparser_conv_period(parser->region, $7.str)); /* refresh */
749 zadd_rdata_wireformat(zparser_conv_period(parser->region, $9.str)); /* retry */
750 zadd_rdata_wireformat(zparser_conv_period(parser->region, $11.str)); /* expire */
751 zadd_rdata_wireformat(zparser_conv_period(parser->region, $13.str)); /* minimum */
757 zadd_rdata_wireformat(zparser_conv_a(parser->region, $1.str)); /* address */
758 …zadd_rdata_wireformat(zparser_conv_services(parser->region, $3.str, $5.str)); /* protocol and serv…
764 zadd_rdata_wireformat(zparser_conv_text(parser->region, $1.str, $1.len)); /* CPU */
[all …]
Dzonec.c67 alloc_rdata(region_type *region, size_t size) in alloc_rdata() argument
69 uint16_t *result = region_alloc(region, sizeof(uint16_t) + size); in alloc_rdata()
75 alloc_rdata_init(region_type *region, const void *data, size_t size) in alloc_rdata_init() argument
77 uint16_t *result = region_alloc(region, sizeof(uint16_t) + size); in alloc_rdata_init()
87 zparser_conv_hex(region_type *region, const char *hex, size_t len) in zparser_conv_hex() argument
96 return alloc_rdata(region, 0); in zparser_conv_hex()
105 r = alloc_rdata(region, len/2); in zparser_conv_hex()
130 zparser_conv_hex_length(region_type *region, const char *hex, size_t len) in zparser_conv_hex_length() argument
143 r = alloc_rdata(region, len/2+1); in zparser_conv_hex_length()
171 zparser_conv_time(region_type *region, const char *time) in zparser_conv_time() argument
[all …]
Dconfigparser.y308 { cfg_parser->opt->identity = region_strdup(cfg_parser->opt->region, $2); }
310 { cfg_parser->opt->version = region_strdup(cfg_parser->opt->region, $2); }
319 cfg_parser->opt->nsid = region_alloc(cfg_parser->opt->region, nsid_len*2+1);
333 cfg_parser->opt->nsid = region_strdup(cfg_parser->opt->region, $2);
342 { cfg_parser->opt->logfile = region_strdup(cfg_parser->opt->region, $2); }
368 { cfg_parser->opt->pidfile = region_strdup(cfg_parser->opt->region, $2); }
374 cfg_parser->opt->port = region_strdup(cfg_parser->opt->region, buf);
381 { cfg_parser->opt->chroot = region_strdup(cfg_parser->opt->region, $2); }
383 { cfg_parser->opt->username = region_strdup(cfg_parser->opt->region, $2); }
385 { cfg_parser->opt->zonesdir = region_strdup(cfg_parser->opt->region, $2); }
[all …]
/openbsd/src/usr.bin/dig/lib/dns/rdata/generic/
Dipseckey_45.c26 isc_region_t region; in totext_ipseckey() local
46 dns_rdata_toregion(rdata, &region); in totext_ipseckey()
47 num = uint8_fromregion(&region); in totext_ipseckey()
48 isc_region_consume(&region, 1); in totext_ipseckey()
55 gateway = uint8_fromregion(&region); in totext_ipseckey()
56 isc_region_consume(&region, 1); in totext_ipseckey()
63 num = uint8_fromregion(&region); in totext_ipseckey()
64 isc_region_consume(&region, 1); in totext_ipseckey()
77 RETERR(inet_totext(AF_INET, &region, target)); in totext_ipseckey()
78 isc_region_consume(&region, 4); in totext_ipseckey()
[all …]
Dhip_55.c28 isc_region_t region; in totext_hip() local
37 dns_rdata_toregion(rdata, &region); in totext_hip()
39 hit_len = uint8_fromregion(&region); in totext_hip()
40 isc_region_consume(&region, 1); in totext_hip()
42 algorithm = uint8_fromregion(&region); in totext_hip()
43 isc_region_consume(&region, 1); in totext_hip()
45 key_len = uint16_fromregion(&region); in totext_hip()
46 isc_region_consume(&region, 2); in totext_hip()
60 INSIST(hit_len < region.length); in totext_hip()
61 length = region.length; in totext_hip()
[all …]
Ddoa_259.c23 isc_region_t region; in totext_doa() local
32 dns_rdata_toregion(rdata, &region); in totext_doa()
37 n = uint32_fromregion(&region); in totext_doa()
38 isc_region_consume(&region, 4); in totext_doa()
45 n = uint32_fromregion(&region); in totext_doa()
46 isc_region_consume(&region, 4); in totext_doa()
53 n = uint8_fromregion(&region); in totext_doa()
54 isc_region_consume(&region, 1); in totext_doa()
61 RETERR(txt_totext(&region, 1, target)); in totext_doa()
67 if (region.length == 0) { in totext_doa()
[all …]
Duri_256.c24 isc_region_t region; in totext_uri() local
33 dns_rdata_toregion(rdata, &region); in totext_uri()
38 priority = uint16_fromregion(&region); in totext_uri()
39 isc_region_consume(&region, 2); in totext_uri()
46 weight = uint16_fromregion(&region); in totext_uri()
47 isc_region_consume(&region, 2); in totext_uri()
54 RETERR(multitxt_totext(&region, target)); in totext_uri()
60 isc_region_t region; in fromwire_uri() local
72 isc_buffer_activeregion(source, &region); in fromwire_uri()
73 if (region.length < 4) in fromwire_uri()
[all …]
Dnid_104.c24 isc_region_t region; in totext_nid() local
33 dns_rdata_toregion(rdata, &region); in totext_nid()
34 num = uint16_fromregion(&region); in totext_nid()
35 isc_region_consume(&region, 2); in totext_nid()
42 region.base[0]<<8 | region.base[1], in totext_nid()
43 region.base[2]<<8 | region.base[3], in totext_nid()
44 region.base[4]<<8 | region.base[5], in totext_nid()
45 region.base[6]<<8 | region.base[7]); in totext_nid()
Dl64_106.c24 isc_region_t region; in totext_l64() local
33 dns_rdata_toregion(rdata, &region); in totext_l64()
34 num = uint16_fromregion(&region); in totext_l64()
35 isc_region_consume(&region, 2); in totext_l64()
42 region.base[0]<<8 | region.base[1], in totext_l64()
43 region.base[2]<<8 | region.base[3], in totext_l64()
44 region.base[4]<<8 | region.base[5], in totext_l64()
45 region.base[6]<<8 | region.base[7]); in totext_l64()
Drp_17.c26 isc_region_t region; in totext_rp() local
39 dns_rdata_toregion(rdata, &region); in totext_rp()
41 dns_name_fromregion(&rmail, &region); in totext_rp()
42 isc_region_consume(&region, rmail.length); in totext_rp()
44 dns_name_fromregion(&email, &region); in totext_rp()
45 isc_region_consume(&region, email.length); in totext_rp()
77 isc_region_t region; in towire_rp() local
90 dns_rdata_toregion(rdata, &region); in towire_rp()
92 dns_name_fromregion(&rmail, &region); in towire_rp()
93 isc_region_consume(&region, rmail.length); in towire_rp()
[all …]
Dminfo_14.c26 isc_region_t region; in totext_minfo() local
39 dns_rdata_toregion(rdata, &region); in totext_minfo()
41 dns_name_fromregion(&rmail, &region); in totext_minfo()
42 isc_region_consume(&region, rmail.length); in totext_minfo()
44 dns_name_fromregion(&email, &region); in totext_minfo()
45 isc_region_consume(&region, email.length); in totext_minfo()
78 isc_region_t region; in towire_minfo() local
92 dns_rdata_toregion(rdata, &region); in towire_minfo()
94 dns_name_fromregion(&rmail, &region); in towire_minfo()
95 isc_region_consume(&region, name_length(&rmail)); in towire_minfo()
[all …]
/openbsd/src/gnu/llvm/lldb/source/Plugins/Process/Utility/
DLinuxProcMaps.cpp29 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 …]
/openbsd/src/gnu/llvm/compiler-rt/lib/sanitizer_common/
Dsanitizer_allocator_primary64.h177 RegionInfo *region = GetRegionInfo(class_id); in ReturnToAllocator() local
181 Lock l(&region->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(&region->mutex); in GetFromAllocator()
212 if (region->rtoi.last_released_bytes > 0) { in GetFromAllocator()
213 MmapFixedOrDie(region_beg, region->mapped_user, in GetFromAllocator()
[all …]
/openbsd/src/gnu/usr.bin/gcc/gcc/
Dexcept.c100 struct eh_region *region; member
540 struct eh_region *region; local
548 region = expand_eh_region_end ();
549 region->type = ERT_CLEANUP;
550 region->label = gen_label_rtx ();
551 region->u.cleanup.exp = handler;
552 region->u.cleanup.prev_try = cfun->eh->try_region;
557 emit_label (region->label);
559 if (flag_non_call_exceptions || region->may_contain_throw)
593 region->resume
[all …]
/openbsd/src/usr.bin/mg/
Dregion.c30 static int getregion(struct region *);
34 static int setsize(struct region *, RSIZE);
46 struct region region; in killregion() local
48 if ((s = getregion(&region)) != TRUE) in killregion()
54 curwp->w_dotp = region.r_linep; in killregion()
55 curwp->w_doto = region.r_offset; in killregion()
56 curwp->w_dotline = region.r_lineno; in killregion()
57 s = ldelete(region.r_size, KFORW | KREG); in killregion()
72 struct region region; in copyregion() local
76 if ((s = getregion(&region)) != TRUE) in copyregion()
[all …]
/openbsd/src/gnu/gcc/gcc/
Dexcept.c103 struct eh_region *region; member
526 struct eh_region *region = gen_eh_region (ERT_ALLOWED_EXCEPTIONS, outer); in gen_eh_region_allowed() local
527 region->u.allowed.type_list = allowed; in gen_eh_region_allowed()
532 return region; in gen_eh_region_allowed()
542 get_eh_region_number (struct eh_region *region) in get_eh_region_number() argument
544 return region->region_number; in get_eh_region_number()
548 get_eh_region_may_contain_throw (struct eh_region *region) in get_eh_region_may_contain_throw() argument
550 return region->may_contain_throw; in get_eh_region_may_contain_throw()
554 get_eh_region_tree_label (struct eh_region *region) in get_eh_region_tree_label() argument
556 return region->tree_label; in get_eh_region_tree_label()
[all …]
/openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.jason/
Dpmf9.C12 class region
17 region();
18 typedef int (region::* region_func)() const;
23 friend class region; variable
31 int iterate(region *region_p, region::region_func what,
33 int iterate(region *region_p, region::region_func what,
39 region_impl::iterate (region *region_p, region::region_func what, in iterate()
50 region_impl::iterate (region *region_p, region::region_func what, in iterate()
/openbsd/src/sys/dev/pci/drm/amd/display/dmub/src/
Ddmub_dcn30.c104 REG_WRITE(DMCUB_REGION3_CW0_BASE_ADDRESS, cw0->region.base); in dmub_dcn30_backdoor_load()
106 DMCUB_REGION3_CW0_TOP_ADDRESS, cw0->region.top, in dmub_dcn30_backdoor_load()
113 REG_WRITE(DMCUB_REGION3_CW1_BASE_ADDRESS, cw1->region.base); in dmub_dcn30_backdoor_load()
115 DMCUB_REGION3_CW1_TOP_ADDRESS, cw1->region.top, in dmub_dcn30_backdoor_load()
136 if (cw2->region.base != cw2->region.top) { in dmub_dcn30_setup_windows()
139 REG_WRITE(DMCUB_REGION3_CW2_BASE_ADDRESS, cw2->region.base); in dmub_dcn30_setup_windows()
141 DMCUB_REGION3_CW2_TOP_ADDRESS, cw2->region.top, in dmub_dcn30_setup_windows()
154 REG_WRITE(DMCUB_REGION3_CW3_BASE_ADDRESS, cw3->region.base); in dmub_dcn30_setup_windows()
156 DMCUB_REGION3_CW3_TOP_ADDRESS, cw3->region.top, in dmub_dcn30_setup_windows()
165 REG_WRITE(DMCUB_REGION3_CW4_BASE_ADDRESS, cw4->region.base); in dmub_dcn30_setup_windows()
[all …]
/openbsd/src/usr.bin/dig/lib/dns/rdata/in_1/
Dpx_26.c28 isc_region_t region; in totext_in_px() local
45 dns_rdata_toregion(rdata, &region); in totext_in_px()
46 num = uint16_fromregion(&region); in totext_in_px()
47 isc_region_consume(&region, 2); in totext_in_px()
55 dns_name_fromregion(&name, &region); in totext_in_px()
57 isc_region_consume(&region, name_length(&name)); in totext_in_px()
64 dns_name_fromregion(&name, &region); in totext_in_px()
108 isc_region_t region; in towire_in_px() local
118 dns_rdata_toregion(rdata, &region); in towire_in_px()
119 RETERR(isc_mem_tobuffer(target, region.base, 2)); in towire_in_px()
[all …]
Dnsap_22.c28 isc_region_t region; in totext_in_nsap() local
37 dns_rdata_toregion(rdata, &region); in totext_in_nsap()
39 while (region.length != 0) { in totext_in_nsap()
40 snprintf(buf, sizeof(buf), "%02x", region.base[0]); in totext_in_nsap()
41 isc_region_consume(&region, 1); in totext_in_nsap()
49 isc_region_t region; in fromwire_in_nsap() local
59 isc_buffer_activeregion(source, &region); in fromwire_in_nsap()
60 if (region.length < 1) in fromwire_in_nsap()
63 RETERR(isc_mem_tobuffer(target, region.base, region.length)); in fromwire_in_nsap()
64 isc_buffer_forward(source, region.length); in fromwire_in_nsap()
/openbsd/src/sbin/unwind/libunbound/util/data/
Dmsgreply.c78 struct query_info* qinf, struct regional* region) in parse_create_qinfo() argument
81 if(region) in parse_create_qinfo()
82 qinf->qname = (uint8_t*)regional_alloc(region, in parse_create_qinfo()
97 construct_reply_info_base(struct regional* region, uint16_t flags, size_t qd, in construct_reply_info_base() argument
106 if(region) in construct_reply_info_base()
107 rep = (struct reply_info*)regional_alloc(region, s); in construct_reply_info_base()
127 if(region) in construct_reply_info_base()
132 if(!region) in construct_reply_info_base()
140 struct regional* region) in parse_create_repinfo() argument
142 *rep = construct_reply_info_base(region, msg->flags, msg->qdcount, 0, in parse_create_repinfo()
[all …]

12345678910>>...26