| /freebsd/sys/dev/drm2/ttm/ |
| H A D | ttm_memory.c | 49 static void ttm_mem_zone_kobj_release(struct ttm_mem_zone *zone) in ttm_mem_zone_kobj_release() argument 53 zone->name, (unsigned long long)zone->used_mem >> 10); in ttm_mem_zone_kobj_release() 54 free(zone, M_TTM_ZONE); in ttm_mem_zone_kobj_release() 59 static ssize_t ttm_mem_zone_show(struct ttm_mem_zone *zone; 65 mtx_lock(&zone->glob->lock); 67 val = zone->zone_mem; 69 val = zone->emer_mem; 71 val = zone->max_mem; 73 val = zone->swap_limit; 75 val = zone->used_mem; [all …]
|
| /freebsd/sys/vm/ |
| H A D | uma_core.c | 230 uma_zone_t zone; member 293 static void bucket_cache_reclaim(uma_zone_t zone, bool, int); 300 static inline void item_dtor(uma_zone_t zone, void *item, int size, 303 static void zone_free_bucket(uma_zone_t zone, uma_bucket_t bucket, void *udata, 307 static void zone_timeout(uma_zone_t zone, void *); 315 static int zone_alloc_limit(uma_zone_t zone, int count, int flags); 316 static void zone_free_limit(uma_zone_t zone, int count); 319 static uma_bucket_t bucket_alloc(uma_zone_t zone, void *, int); 320 static void bucket_free(uma_zone_t zone, uma_bucket_t, void *); 324 static void slab_free_item(uma_zone_t zone, uma_slab_t slab, void *item); [all …]
|
| H A D | uma.h | 319 void uma_zdestroy(uma_zone_t zone); 335 void *uma_zalloc_arg(uma_zone_t zone, void *arg, int flags); 338 void *uma_zalloc_pcpu_arg(uma_zone_t zone, void *arg, int flags); 341 void *uma_zalloc_smr(uma_zone_t zone, int flags); 354 void *uma_zalloc_domain(uma_zone_t zone, void *arg, int domain, int flags); 362 static __inline void *uma_zalloc(uma_zone_t zone, int flags); 363 static __inline void *uma_zalloc_pcpu(uma_zone_t zone, int flags); 366 uma_zalloc(uma_zone_t zone, int flags) in uma_zalloc() argument 368 return uma_zalloc_arg(zone, NULL, flags); in uma_zalloc() 372 uma_zalloc_pcpu(uma_zone_t zone, int flags) in uma_zalloc_pcpu() argument [all …]
|
| H A D | uma_dbg.c | 69 struct uma_zone *zone = arg; in trash_ctor() local 88 mem, size, zone ? zone->uz_name : "", off, *p); in trash_ctor() 145 struct uma_zone *zone = arg; in mtrash_ctor() local 178 mem, osize, zone ? zone->uz_name : "", *ksp, off, *p); in mtrash_ctor() 180 mem, osize, zone ? zone->uz_name : "", (*ksp)->ks_shortdesc, in mtrash_ctor() 184 mem, osize, zone ? zone->uz_name : "", *ksp, off, *p); in mtrash_ctor()
|
| /freebsd/contrib/unbound/validator/ |
| H A D | val_neg.c | 191 * Delete a zone element from the negative cache. 192 * May delete other zone elements to keep tree coherent, or 195 * @param z: zone element to delete. 231 z = el->zone; in neg_delete_data() 259 /* check if the zone is now unused */ in neg_delete_data() 298 * @param zone: negative zone 304 static struct val_neg_data* neg_find_data(struct val_neg_zone* zone, in neg_find_data() argument 315 rbtree_search(&zone->tree, lookfor.node.key); in neg_find_data() 345 * Calculate space needed for zone an 411 neg_closest_data_parent(struct val_neg_zone * zone,uint8_t * nm,size_t nm_len,int labs) neg_closest_data_parent() argument 452 struct val_neg_zone* zone = neg_setup_zone_node() local 488 struct val_neg_zone* zone, *prev = NULL, *first = NULL; neg_zone_chain() local 518 val_neg_zone_take_inuse(struct val_neg_zone * zone) val_neg_zone_take_inuse() argument 533 struct val_neg_zone* zone; neg_create_zone() local 673 wipeout(struct val_neg_cache * neg,struct val_neg_zone * zone,struct val_neg_data * el,struct ub_packed_rrset_key * nsec) wipeout() argument 749 neg_insert_data(struct val_neg_cache * neg,struct val_neg_zone * zone,struct ub_packed_rrset_key * nsec) neg_insert_data() argument 886 struct val_neg_zone* zone; val_neg_addreply() local 949 neg_closest_data(struct val_neg_zone * zone,uint8_t * qname,size_t len,int labs,struct val_neg_data ** data) neg_closest_data() argument 976 struct val_neg_zone* zone; val_neg_addreferral() local 1115 struct val_neg_zone* zone; neg_find_nsec() local 1165 neg_find_nsec3_ce(struct val_neg_zone * zone,uint8_t * qname,size_t qname_len,int qlabs,sldns_buffer * buf,uint8_t * hashnc,size_t * nclen) neg_find_nsec3_ce() argument 1201 neg_params_ok(struct val_neg_zone * zone,struct ub_packed_rrset_key * rrset) neg_params_ok() argument 1216 neg_nsec3_getnc(struct val_neg_zone * zone,uint8_t * hashnc,size_t nclen,struct rrset_cache * rrset_cache,struct regional * region,time_t now,uint8_t * b32,size_t maxb32) neg_nsec3_getnc() argument 1249 neg_nsec3_proof_ds(struct val_neg_zone * zone,uint8_t * qname,size_t qname_len,int qlabs,sldns_buffer * buf,struct rrset_cache * rrset_cache,struct regional * region,time_t now,uint8_t * topname) neg_nsec3_proof_ds() argument 1350 add_soa(struct rrset_cache * rrset_cache,time_t now,struct regional * region,struct dns_msg * msg,struct val_neg_zone * zone) add_soa() argument 1398 struct val_neg_zone* zone; val_neg_getmsg() local [all...] |
| /freebsd/contrib/ldns/ |
| H A D | dnssec_zone.c | 510 ldns_dnssec_zone_find_rrset(const ldns_dnssec_zone *zone, in ldns_dnssec_zone_find_rrset() argument 516 if (!zone || !dname || !zone->names) { in ldns_dnssec_zone_find_rrset() 520 node = ldns_rbtree_search(zone->names, dname); in ldns_dnssec_zone_find_rrset() 573 ldns_dnssec_zone *zone = LDNS_MALLOC(ldns_dnssec_zone); in ldns_dnssec_zone_new() local 574 if(!zone) return NULL; in ldns_dnssec_zone_new() 575 zone->soa = NULL; in ldns_dnssec_zone_new() 576 zone->names = NULL; in ldns_dnssec_zone_new() 577 zone->hashed_names = NULL; in ldns_dnssec_zone_new() 578 zone->_nsec3params = NULL; in ldns_dnssec_zone_new() 580 return zone; in ldns_dnssec_zone_new() [all …]
|
| H A D | dnssec_sign.c | 673 ldns_dnssec_zone_mark_and_get_glue(ldns_dnssec_zone *zone, argument 686 if (!zone || !zone->names) { 689 for (node = ldns_rbtree_first(zone->names); 752 ldns_dnssec_zone_mark_glue(ldns_dnssec_zone *zone) argument 754 return ldns_dnssec_zone_mark_and_get_glue(zone, NULL); 784 ldns_dnssec_zone_create_nsecs(ldns_dnssec_zone *zone, argument 800 soa = ldns_dnssec_name_find_rrset(zone->soa, LDNS_RR_TYPE_SOA); 817 ldns_rbtree_first(zone->names)); 872 ldns_dnssec_zone_create_nsec3s_mkmap(ldns_dnssec_zone *zone, argument 891 if (!zone || !new_rrs || !zone->names) { [all …]
|
| H A D | zone.c | 356 ldns_zone_sort(ldns_zone *zone) in ldns_zone_sort() argument 359 assert(zone != NULL); in ldns_zone_sort() 361 zrr = ldns_zone_rrs(zone); in ldns_zone_sort() 366 ldns_zone_free(ldns_zone *zone) in ldns_zone_free() argument 368 ldns_rr_list_free(zone->_rrs); in ldns_zone_free() 369 LDNS_FREE(zone); in ldns_zone_free() 373 ldns_zone_deep_free(ldns_zone *zone) in ldns_zone_deep_free() argument 375 ldns_rr_free(zone->_soa); in ldns_zone_deep_free() 376 ldns_rr_list_deep_free(zone->_rrs); in ldns_zone_deep_free() 377 LDNS_FREE(zone); in ldns_zone_deep_free()
|
| /freebsd/contrib/unbound/testcode/ |
| H A D | unitinfra.c | 50 struct sockaddr_storage* addr, socklen_t addrlen, uint8_t* zone, in infra_lookup_host() argument 55 zone, zonelen, wr); in infra_lookup_host() 68 uint8_t* zone, size_t zonelen, time_t *now, int keep_probing, in test_keep_probing() argument 83 unit_assert( infra_host(slab, &one, onelen, zone, zonelen, in test_keep_probing() 88 unit_assert( infra_rtt_update(slab, &one, onelen, zone, zonelen, in test_keep_probing() 90 unit_assert( infra_host(slab, &one, onelen, zone, zonelen, in test_keep_probing() 97 unit_assert( (d=infra_lookup_host(slab, &one, onelen, zone, zonelen, 0, *now, &k)) ); in test_keep_probing() 108 unit_assert( infra_get_lame_rtt(slab, &one, onelen, zone, zonelen, in test_keep_probing() 119 uint8_t* zone = (uint8_t*)"\007example\003com\000"; in infra_test() local 137 unit_assert( infra_host(slab, &one, onelen, zone, zonelen, now, in infra_test() [all …]
|
| /freebsd/sys/dev/mlx4/mlx4_core/ |
| H A D | mlx4_alloc.c | 250 struct mlx4_zone_entry *zone = kmalloc(sizeof(*zone), GFP_KERNEL); in mlx4_zone_add_one() local 252 if (NULL == zone) in mlx4_zone_add_one() 255 zone->flags = flags; in mlx4_zone_add_one() 256 zone->bitmap = bitmap; in mlx4_zone_add_one() 257 zone->use_rr = (flags & MLX4_ZONE_USE_RR) ? MLX4_USE_RR : 0; in mlx4_zone_add_one() 258 zone->priority = priority; in mlx4_zone_add_one() 259 zone->offset = offset; in mlx4_zone_add_one() 263 zone->uid = zone_alloc->last_uid++; in mlx4_zone_add_one() 264 zone->allocator = zone_alloc; in mlx4_zone_add_one() 274 list_add_tail(&zone->prio_list, &it->prio_list); in mlx4_zone_add_one() [all …]
|
| /freebsd/sys/contrib/zlib/test/ |
| H A D | infcover.c | 75 struct mem_zone *zone = mem; in mem_alloc() local 79 if (zone == NULL || (zone->limit && zone->total + len > zone->limit)) in mem_alloc() 99 item->next = zone->first; in mem_alloc() 100 zone->first = item; in mem_alloc() 103 zone->total += item->size; in mem_alloc() 104 if (zone->total > zone->highwater) in mem_alloc() 105 zone->highwater = zone->total; in mem_alloc() 115 struct mem_zone *zone = mem; in mem_free() local 118 if (zone == NULL) { in mem_free() 125 next = zone->first; in mem_free() [all …]
|
| /freebsd/lib/libc/gen/ |
| H A D | timezone.c | 52 __timezone_compat(int zone, int dst) in __timezone_compat() argument 69 return(_tztab(zone,dst)); /* default: table or created zone */ in __timezone_compat() 73 static struct zone { struct 104 _tztab(int zone, int dst) in _tztab() argument 106 struct zone *zp; in _tztab() 110 if (zp->offset == zone) { in _tztab() 117 if (zone < 0) { /* create one */ in _tztab() 118 zone = -zone; in _tztab() 124 "GMT%c%d:%02d",sign,zone / 60,zone % 60); in _tztab()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_malloc_mac.inc | 9 // This file contains Mac-specific malloc interceptors and a custom zone 41 // zone enumeration. 65 // Prevent the client app from overwriting the zone contents. 66 // Library functions that need to modify the zone will set PROT_WRITE on it. 69 // We're explicitly *NOT* registering the zone. 73 INTERCEPTOR(void, malloc_destroy_zone, malloc_zone_t *zone) { 76 // don't to unregister. Just un-mprotect and free() the zone. 79 mprotect(zone, allocated_size, PROT_READ | PROT_WRITE); 80 if (zone->zone_name) { 81 COMMON_MALLOC_FREE((void *)zone [all...] |
| /freebsd/contrib/ldns/ldns/ |
| H A D | dnssec_sign.h | 106 ldns_dnssec_zone *zone, ldns_rr_list *glue_list); 119 ldns_dnssec_zone_mark_glue(ldns_dnssec_zone *zone); 139 ldns_status ldns_dnssec_zone_create_nsecs(ldns_dnssec_zone *zone, 146 ldns_dnssec_zone_create_nsec3s(ldns_dnssec_zone *zone, 191 ldns_status ldns_dnssec_zone_create_rrsigs_flg(ldns_dnssec_zone *zone, 211 ldns_status ldns_dnssec_zone_create_rrsigs(ldns_dnssec_zone *zone, 242 ldns_status ldns_dnssec_zone_sign_flg(ldns_dnssec_zone *zone, 265 ldns_status ldns_dnssec_zone_sign_nsec3_flg(ldns_dnssec_zone *zone, 296 ldns_status ldns_dnssec_zone_sign_nsec3_flg_mkmap(ldns_dnssec_zone *zone, 331 ldns_status ldns_dnssec_zone_sign(ldns_dnssec_zone *zone, [all …]
|
| H A D | dnssec_zone.h | 339 ldns_dnssec_rrsets *ldns_dnssec_zone_find_rrset(const ldns_dnssec_zone *zone, 401 void ldns_dnssec_zone_free(ldns_dnssec_zone *zone); 408 void ldns_dnssec_zone_deep_free(ldns_dnssec_zone *zone); 420 ldns_status ldns_dnssec_zone_add_rr(ldns_dnssec_zone *zone, 449 void ldns_dnssec_zone_print(FILE *out, const ldns_dnssec_zone *zone); 459 const ldns_output_format *fmt, const ldns_dnssec_zone *zone); 468 ldns_status ldns_dnssec_zone_add_empty_nonterminals(ldns_dnssec_zone *zone); 477 bool ldns_dnssec_zone_is_nsec3_optout(const ldns_dnssec_zone* zone); 479 ldns_status ldns_dnssec_zone_verify_zonemd(ldns_dnssec_zone *zone);
|
| /freebsd/contrib/tzdata/ |
| H A D | checknow.awk | 5 function record_zone(zone, data) { 6 if (zone) { 7 zone_data[zone] = data 8 zones[data] = zones[data] " " zone 15 record_zone(zone, data) 16 zone = $0 17 sub(/.*\.ckd\//, "", zone) 18 sub(/\/\//, "/", zone)
|
| /freebsd/crypto/openssl/crypto/x509/ |
| H A D | v3_sxnet.c | 44 ASN1_SIMPLE(SXNETID, zone, ASN1_INTEGER), 80 tmp = i2s_ASN1_INTEGER(NULL, id->zone); 118 /* Add an id given the zone as an ASCII number */ 120 int SXNET_add_id_asc(SXNET **psx, const char *zone, const char *user, int userlen) in SXNET_add_id_asc() argument 124 if ((izone = s2i_ASN1_INTEGER(NULL, zone)) == NULL) { in SXNET_add_id_asc() 135 /* Add an id given the zone as an unsigned long */ 156 * Add an id given the zone as an ASN1_INTEGER. Note this version uses the 160 int SXNET_add_id_INTEGER(SXNET **psx, ASN1_INTEGER *zone, const char *user, in SXNET_add_id_INTEGER() argument 166 if (psx == NULL || zone == NULL || user == NULL) { in SXNET_add_id_INTEGER() 187 if (SXNET_get_id_INTEGER(sx, zone)) { in SXNET_add_id_INTEGER() 219 SXNET_get_id_asc(SXNET * sx,const char * zone) SXNET_get_id_asc() argument 249 SXNET_get_id_INTEGER(SXNET * sx,ASN1_INTEGER * zone) SXNET_get_id_INTEGER() argument [all...] |
| /freebsd/contrib/ntp/libntp/lib/isc/ |
| H A D | netaddr.c | 43 if (a->zone != b->zone) in isc_netaddr_equal() 54 a->zone != b->zone) in isc_netaddr_equal() 83 if (a->zone != b->zone && b->zone != 0) in isc_netaddr_eqprefix() 166 if (netaddr->family == AF_INET6 && netaddr->zone != 0) { in isc_netaddr_totext() 167 zlen = snprintf(zbuf, sizeof(zbuf), "%%%u", netaddr->zone); in isc_netaddr_totext() 311 netaddr->zone = 0; in isc_netaddr_frompath() 322 isc_netaddr_setzone(isc_netaddr_t *netaddr, isc_uint32_t zone) { in isc_netaddr_setzone() argument 326 netaddr->zone = zone; in isc_netaddr_setzone() 331 return (netaddr->zone); in isc_netaddr_getzone() 341 t->zone = 0; in isc_netaddr_fromsockaddr() [all …]
|
| H A D | netscope.c | 39 isc_uint32_t zone; in isc_netscope_pton() local 59 zone = (isc_uint32_t)ifid; in isc_netscope_pton() 67 zone = (isc_uint32_t)(llz & 0xffffffffUL); in isc_netscope_pton() 68 if (zone != llz) in isc_netscope_pton() 74 *zoneid = zone; in isc_netscope_pton()
|
| /freebsd/sys/contrib/device-tree/Bindings/thermal/ |
| H A D | thermal.txt | 38 the IC. See thermal zone binding for more details 96 get assigned to trip points of the zone. The cooling devices are expected 106 Type: phandle of zone. 110 - contribution: The cooling contribution to the thermal zone of the 113 of all cooling contributions within a thermal zone. 121 * Thermal zone nodes 123 The thermal zone node is the node containing all the required info 124 for describing a thermal zone, including its cooling device bindings. The 125 thermal zone node must contain, apart from its own properties, one sub-node 126 containing trip nodes and one sub-node containing all the zone cooling maps. [all …]
|
| /freebsd/tests/sys/cddl/zfs/tests/zones/ |
| H A D | cleanup.ksh | 52 for zone in $ZONE $ZONE2 $ZONE3 $ZONE4 ; do 53 $ZONEADM -z $zone list > /dev/null 2>&1 55 $ZONEADM -z $zone halt > /dev/null 2>&1 56 $ZONEADM -z $zone uninstall -F > /dev/null 2>&1 57 $ZONECFG -z $zone delete -F > /dev/null 2>&1
|
| /freebsd/sys/cddl/contrib/opensolaris/uts/common/sys/ |
| H A D | cred.h | 135 struct zone; 136 extern void crsetzone(cred_t *, struct zone *); 137 extern struct zone *crgetzone(const cred_t *); 170 extern boolean_t valid_ephemeral_uid(struct zone *, uid_t); 171 extern boolean_t valid_ephemeral_gid(struct zone *, gid_t); 173 extern int eph_uid_alloc(struct zone *, int, uid_t *, int); 174 extern int eph_gid_alloc(struct zone *, int, gid_t *, int);
|
| /freebsd/usr.sbin/fstyp/ |
| H A D | hammer_disk.h | 272 #define hammer_is_index_record(zone) \ argument 273 ((zone) >= HAMMER_ZONE_BTREE_INDEX && \ 274 (zone) < HAMMER_MAX_ZONES) 279 #define hammer_is_index_direct_xlated(zone) \ argument 280 (((zone) == HAMMER_ZONE_RAW_BUFFER_INDEX) || \ 281 ((zone) == HAMMER_ZONE_FREEMAP_INDEX) || \ 282 hammer_is_index_record(zone)) 287 #define HAMMER_ZONE_ENCODE(zone, ham_off) \ argument 288 (((hammer_off_t)(zone) << 60) | (ham_off)) 302 #define HAMMER_ENCODE(zone, vol_no, offset) \ argument [all …]
|
| /freebsd/contrib/unbound/doc/ |
| H A D | README.ipset.md | 12 local-zone: "facebook.com" ipset 13 local-zone: "twitter.com" ipset 14 local-zone: "instagram.com" ipset 31 local-zone: "facebook.com" ipset 32 local-zone: "twitter.com" ipset 33 local-zone: "instagram.com" ipset 61 local-zone: "example.com" ipset
|
| /freebsd/contrib/llvm-project/libcxx/modules/std/ |
| H A D | chrono.cppm | |