Home
last modified time | relevance | path

Searched refs:amap (Results 1 – 10 of 10) sorted by relevance

/openbsd/sys/uvm/
H A Duvm_amap.c358 return amap; in amap_alloc1()
395 return amap; in amap_alloc1()
434 return amap; in amap_alloc()
449 KASSERT(amap->am_ref == 0 && amap->am_nused == 0); in amap_free()
458 if (amap->am_ppref && amap->am_ppref != PPREF_NONE) in amap_free()
463 pool_put(&uvm_small_amap_pool[amap->am_nslot - 1], amap); in amap_free()
468 amap->am_nbuckets * sizeof(*amap->am_buckets)); in amap_free()
882 amap->am_ppref = mallocarray(amap->am_nslot, sizeof(int), in amap_pp_establish()
891 pp_setreflen(amap->am_ppref, 0, amap->am_ref, amap->am_nslot); in amap_pp_establish()
1321 if (amap->am_ppref && amap->am_ppref != PPREF_NONE) { in amap_adjref_anons()
[all …]
H A Duvm_fault.c665 struct vm_amap *amap; in uvm_fault_check() local
782 if (amap) { in uvm_fault_check()
783 amap_lock(amap); in uvm_fault_check()
796 if (amap) in uvm_fault_check()
813 if (amap) in uvm_fault_check()
846 KASSERT(amap == NULL || in uvm_fault_upper_lookup()
1318 if (amap == NULL) in uvm_fault_lower()
1444 if (amap == NULL) in uvm_fault_lower()
1569 amap_lock(amap); in uvm_fault_lower_io()
1771 if (amap != NULL) in uvmfault_unlockall()
[all …]
H A Duvm_amap.h233 #define UVM_AMAP_SMALL(amap) ((amap)->am_nslot <= UVM_AMAP_CHUNK) argument
235 #define UVM_AMAP_BUCKET(amap, slot) \ argument
236 (((slot) / UVM_AMAP_CHUNK) >> (amap)->am_hashshift)
250 #define AMAP_CHUNK_FOREACH(chunk, amap) \ argument
251 for (chunk = (UVM_AMAP_SMALL(amap) ? \
252 &(amap)->am_small : TAILQ_FIRST(&(amap)->am_chunks)); \
H A Duvm_anon.c159 uvm_anon_pagein(struct vm_amap *amap, struct vm_anon *anon) in uvm_anon_pagein() argument
165 KASSERT(anon->an_lock == amap->am_lock); in uvm_anon_pagein()
170 rv = uvmfault_anonget(NULL, amap, anon); in uvm_anon_pagein()
H A Duvm_map.c4432 struct vm_amap *amap; in uvm_map_clean() local
4473 amap = entry->aref.ar_amap; /* top layer */ in uvm_map_clean()
4484 if (amap == NULL || (flags & (PGO_DEACTIVATE|PGO_FREE)) == 0) in uvm_map_clean()
4495 amap_lock(amap); in uvm_map_clean()
4502 KASSERT(anon->an_lock == amap->am_lock); in uvm_map_clean()
4541 if (amap_refs(amap) > 1) in uvm_map_clean()
4558 amap_unlock(amap); in uvm_map_clean()
/openbsd/gnu/usr.sbin/mkhybrid/src/
H A Dapple.c1652 t = amap->type;
1653 c = amap->creator;
1659 free(amap);
1671 amap->elen = strlen(amap->extn);
1674 amap->fdflags = fdflags;
1681 defmap = amap;
1689 map[map_num++] = amap;
1745 amap = map[last_ent];
1749 if (!strcasecmp((name + len - amap->elen), amap->extn)) {
1751 *type = amap->type;
[all …]
/openbsd/lib/libkvm/
H A Dkvm_proc.c121 struct vm_amap amap; in _kvm_findanon() local
126 if (KREAD(kd, addr, &amap)) in _kvm_findanon()
130 if (slot > amap.am_nslot) in _kvm_findanon()
133 if (UVM_AMAP_SMALL(&amap)) in _kvm_findanon()
136 bucket = UVM_AMAP_BUCKET(&amap, slot); in _kvm_findanon()
137 addr = (u_long)(amap.am_buckets + bucket); in _kvm_findanon()
146 if (UVM_AMAP_BUCKET(&amap, chunk.ac_baseslot) != in _kvm_findanon()
/openbsd/sys/kern/
H A Dsys_futex.c132 struct vm_amap *amap = NULL; in futex_get() local
150 amap = entry->aref.ar_amap; in futex_get()
159 if (f->ft_obj == obj && f->ft_amap == amap && in futex_get()
174 f->ft_amap = amap; in futex_get()
/openbsd/usr.sbin/procmap/
H A Dprocmap.c615 struct kbit kbit[5], *uvm_obj, *vp, *vfs, *amap, *uvn; in dump_vm_map_entry() local
625 amap = &kbit[3]; in dump_vm_map_entry()
678 P(amap) = vme->aref.ar_amap; in dump_vm_map_entry()
679 S(amap) = sizeof(struct vm_amap); in dump_vm_map_entry()
680 KDEREF(kd, amap); in dump_vm_map_entry()
845 D(amap, vm_amap)->am_ref, in dump_vm_map_entry()
846 D(amap, vm_amap)->am_flags, in dump_vm_map_entry()
847 D(amap, vm_amap)->am_nslot, in dump_vm_map_entry()
848 D(amap, vm_amap)->am_nused); in dump_vm_map_entry()
850 sum->s_am_nslots += D(amap, vm_amap)->am_nslot; in dump_vm_map_entry()
[all …]
/openbsd/gnu/usr.bin/perl/dist/Devel-PPPort/parts/
H A Dapicheck.pl53 my %amap = (
300 if (exists $amap{$t}) {
305 push @arg, $amap{$t};