Lines Matching refs:shm_amp
304 ANON_LOCK_ENTER(&sp->shm_amp->a_rwlock, RW_WRITER);
305 size = sp->shm_amp->size;
306 ANON_LOCK_EXIT(&sp->shm_amp->a_rwlock);
457 error = sptcreate(size, &segspt, sp->shm_amp, prot,
480 ssd.shm_amp = sp->shm_amp;
543 crargs.amp = sp->shm_amp;
580 ANON_LOCK_ENTER(&sp->shm_amp->a_rwlock, RW_WRITER);
581 anonmap_purge(sp->shm_amp);
582 ANON_LOCK_EXIT(&sp->shm_amp->a_rwlock);
586 sptdestroy(sp->shm_sptinfo->sptas, sp->shm_amp);
593 shmem_unlock(sp, sp->shm_amp);
597 ANON_LOCK_ENTER(&sp->shm_amp->a_rwlock, RW_WRITER);
598 cnt = --sp->shm_amp->refcnt;
599 ANON_LOCK_EXIT(&sp->shm_amp->a_rwlock);
675 STRUCT_FSETP(ds, shm_amp, NULL); /* kernel addr */
729 if (error = shmem_lock(sp, sp->shm_amp)) {
730 ANON_LOCK_ENTER(&sp->shm_amp->a_rwlock,
733 " pages into memory", sp->shm_amp->size);
734 ANON_LOCK_EXIT(&sp->shm_amp->a_rwlock);
747 shmem_unlock(sp, sp->shm_amp);
895 sp->shm_amp = anonmap_alloc(rsize, rsize, ANON_SLEEP);
896 sp->shm_amp->a_sp = sp;
1257 struct anon_map *amp = sp->shm_amp;