Searched defs:amp (Results 1 - 18 of 18) sorted by relevance

/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dlibs.c65 process_member(Ar_mem *amp, const char *name, Sym_desc *sdp, Ofl_desc *ofl) argument
78 if (amp->am_syms == NULL) {
83 while (scn = elf_nextscn(amp->am_elf, scn)) {
86 MSG_INTL(MSG_ELF_GETSHDR), amp->am_path);
95 amp->am_path);
106 if ((scn = elf_getscn(amp->am_elf, (size_t)shdr->sh_link)) ==
109 amp->am_path);
114 amp->am_path);
123 amp->am_syms = syms;
124 amp
269 ld_ar_member(Ar_desc * adp, Elf_Arsym * arsym, Ar_aux * aup, Ar_mem * amp) argument
491 Ar_mem *amp; local
[all...]
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_error.c54 mblk_t *amp; local
62 amp = allocb(alen, BPRI_MED);
63 if (amp == NULL) {
67 amp->b_wptr = amp->b_rptr + alen;
70 acp = (sctp_chunk_hdr_t *)amp->b_rptr;
77 linkb(mp, amp);
/illumos-gate/usr/src/uts/common/io/audio/impl/
H A Daudio_output.c87 uint_t q, amp, amp2; local
95 amp = (uint_t)ABS(chbufs[0][t]);
99 if (amp2 > amp)
100 amp = amp2;
103 amp >>= 8;
106 if (amp > 0x7FFF)
107 q = 0x7FFF0000 / amp;
/illumos-gate/usr/src/uts/common/os/
H A Dschedctl.c492 struct anon_map *amp; local
500 if ((error = schedctl_getpage(&amp, &kaddr)) != 0) {
504 if ((error = schedctl_map(amp, &base, kaddr)) != 0) {
505 schedctl_freepage(amp, kaddr);
514 pagep->spc_amp = amp;
579 schedctl_map(struct anon_map *amp, caddr_t *uaddrp, caddr_t kaddr) argument
603 vn_a.amp = amp;
624 struct anon_map *amp; local
631 amp
662 schedctl_freepage(struct anon_map *amp, caddr_t kaddr) argument
[all...]
H A Dshm.c127 static int shmem_lock(kshmid_t *sp, struct anon_map *amp);
128 static void shmem_unlock(kshmid_t *sp, struct anon_map *amp);
543 crargs.amp = sp->shm_amp;
892 * unreserving the above anon, and freeing the below amp.
1124 lock_again(size_t npages, kshmid_t *sp, struct anon_map *amp) argument
1134 ANON_LOCK_ENTER(&amp->a_rwlock, RW_READER);
1137 anon_array_enter(amp, anon_idx, &cookie);
1138 ap = anon_get_ptr(amp->ahp, anon_idx);
1153 ANON_LOCK_EXIT(&amp->a_rwlock);
1162 shmem_lock(kshmid_t *sp, struct anon_map *amp) argument
1201 shmem_unlock(kshmid_t *sp, struct anon_map *amp) argument
1257 struct anon_map *amp = sp->shm_amp; local
[all...]
H A Dlgrp.c3559 lgrp_shm_policy_get(struct anon_map *amp, ulong_t anon_index, vnode_t *vp, argument
3577 if (amp) {
3578 ASSERT(amp->refcnt != 0);
3579 shm_locality = amp->locality;
3895 lgrp_shm_policy_init(struct anon_map *amp, vnode_t *vp) argument
3904 if (amp) {
3905 ANON_LOCK_ENTER(&amp->a_rwlock, RW_WRITER);
3906 if (amp->locality == NULL) {
3912 ANON_LOCK_EXIT(&amp->a_rwlock);
3917 shm_locality->loc_count = 1; /* not used for amp */
4007 lgrp_shm_policy_fini(struct anon_map *amp, vnode_t *vp) argument
4128 lgrp_shm_policy_set(lgrp_mem_policy_t policy, struct anon_map *amp, ulong_t anon_index, vnode_t *vp, u_offset_t vn_off, size_t len) argument
[all...]
/illumos-gate/usr/src/uts/common/vm/
H A Dseg_spt.h46 struct anon_map *amp; member in struct:segspt_crargs
101 int sptcreate(size_t size, struct seg **sptseg, struct anon_map *amp,
H A Dseg_kp.c89 struct segkp_data **tkpd, struct anon_map *amp);
356 struct anon_map *amp)
360 ASSERT(amp != NULL);
362 if (segkp_get_internal(seg, len, flags, &kpd, amp) != NULL) {
388 struct anon_map *amp)
407 ASSERT(((flags & KPD_HASAMP) == 0) == (amp == NULL));
448 if (amp != NULL) {
455 kpd->kp_anon = amp->ahp;
523 if (amp != NULL)
524 ANON_LOCK_ENTER(&amp
352 segkp_get_withanonmap( struct seg *seg, size_t len, uint_t flags, struct anon_map *amp) argument
383 segkp_get_internal( struct seg *seg, size_t len, uint_t flags, struct segkp_data **tkpd, struct anon_map *amp) argument
[all...]
H A Dseg_vn.h61 struct anon_map *amp; /* anon mapping to map to */ member in struct:segvn_crargs
77 * amp
96 struct anon_map *amp; /* pointer to anon share structure, if needed */ member in struct:segvn_data
227 ulong_t tr_stat_newamp; /* number of new amp allocs for TR */
H A Dvm_seg.c85 pcache_link_t p_plink; /* per segment/amp list */
86 void *p_htag0; /* segment/amp pointer */
219 * htag0 argument can be a seg or amp pointer.
231 * htag0 argument can be a seg or amp pointer.
418 * for non wired shadow lists. The caller already holds a per seg/amp list
459 * active count. If amp is not NULL use amp as a lookup tag otherwise use seg
463 seg_plookup(struct seg *seg, struct anon_map *amp, caddr_t addr, size_t len, argument
482 htag0 = (amp == NULL ? (void *)seg : (void *)amp);
524 seg_pinactive(struct seg *seg, struct anon_map *amp, caddr_t addr, size_t len, struct page **pp, enum seg_rw rw, uint_t flags, seg_preclaim_cbfunc_t callback) argument
739 seg_pinsert_check(struct seg *seg, struct anon_map *amp, caddr_t addr, size_t len, uint_t flags) argument
800 seg_pinsert(struct seg *seg, struct anon_map *amp, caddr_t addr, size_t len, size_t wlen, struct page **pp, enum seg_rw rw, uint_t flags, seg_preclaim_cbfunc_t callback) argument
1269 seg_ppurge(struct seg *seg, struct anon_map *amp, uint_t flags) argument
[all...]
H A Dvm_usage.c60 * - Lookup anons in the amp.
66 * - For address ranges without anons in the amp:
72 * - Lookup pages in the shared amp or vnode.
80 * amp->swresv == 0.
92 * - If seg is anon, shared, and amp->swresv != 0
93 * - For address ranges in amp not previously visited for
113 * - per shared amp (entity->vme_amp_hash)
184 pgcnt_t vmb_start; /* page offset in vnode/amp on which bound starts */
185 pgcnt_t vmb_end; /* page offset in vnode/amp on which bound ends */
191 * key is address of vnode or amp
896 vmu_amp_update_incore_bounds(avl_tree_t *tree, struct anon_map *amp, vmu_bound_t **first, vmu_bound_t **last, boolean_t incore) argument
[all...]
H A Dseg_spt.c186 sptcreate(size_t size, struct seg **sptseg, struct anon_map *amp, argument
208 sptcargs.amp = amp;
225 sptdestroy(struct as *as, struct anon_map *amp) argument
231 (void) as_unmap(as, SEGSPTADDR, amp->size);
299 struct anon_map *amp = shmd->shm_amp; local
315 ANON_LOCK_ENTER(&amp->a_rwlock, RW_READER);
318 anon_array_enter(amp, anon_index, &cookie);
319 ap = anon_get_ptr(amp->ahp, anon_index);
336 ANON_LOCK_EXIT(&amp
376 struct anon_map *amp = sptcargs->amp; local
621 struct anon_map *amp; local
781 struct anon_map *amp; local
832 struct anon_map *amp; local
1189 struct anon_map *amp; local
1585 struct anon_map *amp; /* XXX - for locknest */ local
2019 struct anon_map *amp; /* XXX - for locknest */ local
2261 struct anon_map *amp = shmd->shm_amp; local
2329 struct anon_map *amp = sptd->spt_amp; local
2572 struct anon_map *amp = sptd->spt_amp; local
2854 struct anon_map *amp; local
3019 struct anon_map *amp = shmd->shm_amp; local
3059 struct anon_map *amp; local
[all...]
H A Dvm_anon.c176 struct anon_map *amp = buf; local
178 rw_init(&amp->a_rwlock, NULL, RW_DEFAULT, NULL);
179 cv_init(&amp->a_purgecv, NULL, CV_DEFAULT, NULL);
180 mutex_init(&amp->a_pmtx, NULL, MUTEX_DEFAULT, NULL);
181 mutex_init(&amp->a_purgemtx, NULL, MUTEX_DEFAULT, NULL);
189 struct anon_map *amp = buf; local
191 rw_destroy(&amp->a_rwlock);
192 cv_destroy(&amp->a_purgecv);
193 mutex_destroy(&amp->a_pmtx);
194 mutex_destroy(&amp
1673 anon_disclaim(struct anon_map *amp, ulong_t index, size_t size, uint_t behav, pgcnt_t *purged) argument
1972 anon_map_getpages( struct anon_map *amp, ulong_t start_idx, uint_t szc, struct seg *seg, caddr_t addr, uint_t prot, uint_t *protp, page_t *ppa[], uint_t *ppa_szc, struct vpage vpage[], enum seg_rw rw, int brkcow, int anypgsz, int pgflags, struct cred *cred) argument
2541 anon_map_privatepages( struct anon_map *amp, ulong_t start_idx, uint_t szc, struct seg *seg, caddr_t addr, uint_t prot, page_t *ppa[], struct vpage vpage[], int anypgsz, int pgflags, struct cred *cred) argument
2844 anon_map_createpages( struct anon_map *amp, ulong_t start_index, size_t len, page_t *ppa[], struct seg *seg, caddr_t addr, enum seg_rw rw, struct cred *cred) argument
3189 anon_map_demotepages( struct anon_map *amp, ulong_t start_idx, struct seg *seg, caddr_t addr, uint_t prot, struct vpage vpage[], struct cred *cred) argument
3290 anon_shmap_free_pages(struct anon_map *amp, ulong_t sidx, size_t len) argument
3357 anonmap_purge(struct anon_map *amp) argument
3404 struct anon_map *amp; local
3434 anonmap_free(struct anon_map *amp) argument
3602 anon_array_enter(struct anon_map *amp, ulong_t an_idx, anon_sync_obj_t *sobj) argument
3632 anon_array_try_enter(struct anon_map *amp, ulong_t an_idx, anon_sync_obj_t *sobj) argument
[all...]
H A Dseg_vn.c336 * replica's are represented by anon maps (amp). There's one amp per text file
337 * region per lgroup. A process chooses the amp for each of its text mappings
340 * mapping share the same amp. amp's are looked up in svntr_hashtab hash table
343 * forcing COW faults from vnode to amp and mapping amp pages instead of vnode
344 * pages. Replication amp is assigned to a segment when it gets its first
346 * rechecks periodically if the process still maps an amp local to the main
347 * thread. If not async thread forces process to remap to an amp i
548 struct anon_map *amp; local
1576 struct anon_map *amp; local
1860 struct anon_map *amp; local
2418 struct anon_map *amp; local
2572 struct anon_map *amp; local
2724 struct anon_map *amp; local
3829 struct anon_map *amp = svd->amp; local
4638 struct anon_map *amp = svd->amp; local
4936 struct anon_map *amp; local
5619 struct anon_map *amp; local
5898 struct anon_map *amp; local
6074 struct anon_map *amp = svd->amp; local
6356 struct anon_map *amp = svd->amp; local
6477 struct anon_map *amp = svd->amp; local
6974 struct anon_map *amp; local
7076 struct anon_map *amp; local
7257 struct anon_map *amp; local
7478 struct anon_map *amp; /* XXX - for locknest */ local
7643 struct anon_map *amp; local
8069 struct anon_map *amp; local
8701 struct anon_map *amp; local
8816 struct anon_map *amp; local
9538 amp_t *amp = (amp_t *)ptag; local
9591 struct anon_map *amp; local
9678 struct anon_map *amp; local
9747 struct anon_map *amp; local
10080 struct anon_map *amp = svntrp->tr_amp[i]; local
10218 struct anon_map *amp; local
[all...]
H A Dvm_page.c5366 struct anon_map *amp, ulong_t anon_index, vnode_t *vp,
5411 * vnode arguments just in case there isn't an amp.
5415 if (amp) {
5416 ANON_LOCK_ENTER(&amp->a_rwlock, RW_READER);
5418 anon_array_enter(amp, an_idx, &cookie);
5419 ap = anon_get_ptr(amp->ahp, an_idx);
5423 ANON_LOCK_EXIT(&amp->a_rwlock);
5365 page_mark_migrate(struct seg *seg, caddr_t addr, size_t len, struct anon_map *amp, ulong_t anon_index, vnode_t *vp, u_offset_t vnoff, int rflag) argument
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_gcore.h114 uintptr_t amp; member in struct:mdb_segvn_data
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dgcore.c386 mdb_amp_t amp; local
391 if (svd->amp != 0 && mdb_ctf_vread(&amp, "amp_t", "mdb_amp_t", svd->amp,
400 if (svd->amp != 0) {
401 gcore_anon_get(amp.ahp, svd->anon_index + p, &vp,
415 dprintf("amp: %p vp: %p addr: %p offset: %p not in core!\n",
416 svd->amp, svd->vp, addr, offset);
H A Dmemory.c1273 struct anon_map amp; local
1285 if (svd.amp == NULL) {
1290 amp_addr = (uintptr_t)svd.amp;
1291 if (mdb_vread(&amp, sizeof (amp), amp_addr) == -1) {
1292 mdb_warn("segvn_anon walk: unable to read amp %p for "
1302 if ((seg.s_size + (svd.anon_index << PAGESHIFT)) > amp.size) {
1413 if (svd->amp == NULL && svd->vp == NULL) {
1417 } else if (svd->amp == NULL &&
1447 } else if (svd->amp !
[all...]

Completed in 138 milliseconds