/illumos-gate/usr/src/cmd/mdb/intel/modules/mdb_kb/ |
H A D | mdb_kb.c | 36 * ELF-based format, known as 'elf'. 64 #include <vm/as.h> 472 * really MFNs as well, by populating xkb_p2m. 523 * Return the MFN of the top-level page table for the given as. 526 xkb_as_to_mfn(xkb_t *xkb, struct as *as) argument 528 uintptr_t asp = (uintptr_t)as; 533 if (!xkb_read_word(xkb, asp + offsetof(struct as, a_hat), &hatp)) 558 xkb_read_helper(xkb_t *xkb, struct as *as, in argument 627 xkb_aread(xkb_t *xkb, uintptr_t addr, void *buf, size_t size, struct as *as) argument 1486 xkb_vtop(xkb_t *xkb, struct as *as, uintptr_t addr) argument [all...] |
/illumos-gate/usr/src/uts/common/fs/hsfs/ |
H A D | hsfs_vnops.c | 72 #include <vm/as.h> 388 * likely not to overly impact performance, as the underlying 716 * decision is to reduce access to cd-rom as much as possible, 978 * as even in the 32 bit world driver_block can 988 * remaining_bytes can't be zero, as we derived 1016 * I/O as it selects requests from the queue as 1078 * NOTICE: The code below in hsfs_getapage is mostly same as the code 1163 * (no interleaving) optimization is handled as 1774 hsfs_map( struct vnode *vp, offset_t off, struct as *as, caddr_t *addrp, size_t len, uchar_t prot, uchar_t maxprot, uint_t flags, struct cred *cred, caller_context_t *ct) argument 1836 hsfs_addmap( struct vnode *vp, offset_t off, struct as *as, caddr_t addr, size_t len, uchar_t prot, uchar_t maxprot, uint_t flags, struct cred *cr, caller_context_t *ct) argument 1862 hsfs_delmap( struct vnode *vp, offset_t off, struct as *as, caddr_t addr, size_t len, uint_t prot, uint_t maxprot, uint_t flags, struct cred *cr, caller_context_t *ct) argument [all...] |
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs_vnops.c | 77 #include <vm/as.h> 109 static void nfs_delmap_callback(struct as *, void *, uint_t); 177 static int nfs_map(vnode_t *, offset_t, struct as *, caddr_t *, size_t, 179 static int nfs_addmap(vnode_t *, offset_t, struct as *, caddr_t, size_t, 186 static int nfs_delmap(vnode_t *, offset_t, struct as *, caddr_t, size_t, 280 * the attributes as timed out. They will be refreshed 324 * zones, as that fails too. 461 * Let's try to do read in as large a chunk as we can 915 * Just mark the attribute cache as time 4299 nfs_map(vnode_t *vp, offset_t off, struct as *as, caddr_t *addrp, size_t len, uchar_t prot, uchar_t maxprot, uint_t flags, cred_t *cr, caller_context_t *ct) argument 4415 nfs_addmap(vnode_t *vp, offset_t off, struct as *as, caddr_t addr, size_t len, uchar_t prot, uchar_t maxprot, uint_t flags, cred_t *cr, caller_context_t *ct) argument 4652 nfs_delmap(vnode_t *vp, offset_t off, struct as *as, caddr_t addr, size_t len, uint_t prot, uint_t maxprot, uint_t flags, cred_t *cr, caller_context_t *ct) argument 4752 nfs_delmap_callback(struct as *as, void *arg, uint_t event) argument [all...] |
/illumos-gate/usr/src/uts/common/fs/specfs/ |
H A D | specvnops.c | 131 static int spec_map(struct vnode *, offset_t, struct as *, caddr_t *, size_t, 133 static int spec_addmap(struct vnode *, offset_t, struct as *, caddr_t, size_t, 135 static int spec_delmap(struct vnode *, offset_t, struct as *, caddr_t, size_t, 178 * for a fenced snode with an ENXIO or EIO as appropriate. If 823 /* try to allocate it as a controlling terminal */ 945 * will be released as the new association is established by 1271 * allow ioctls() to go through even for fenced snodes, as they 1513 * SNOFLUSH as a hint. 2089 * "io_off" and "io_len" are returned as 2248 struct as *a 2245 spec_segmap( dev_t dev, off_t off, struct as *as, caddr_t *addrp, off_t len, uint_t prot, uint_t maxprot, uint_t flags, struct cred *cred) argument 2307 spec_char_map( dev_t dev, offset_t off, struct as *as, caddr_t *addrp, size_t len, uchar_t prot, uchar_t maxprot, uint_t flags, struct cred *cred) argument 2376 spec_map( struct vnode *vp, offset_t off, struct as *as, caddr_t *addrp, size_t len, uchar_t prot, uchar_t maxprot, uint_t flags, struct cred *cred, caller_context_t *ct) argument 2454 spec_addmap( struct vnode *vp, offset_t off, struct as *as, caddr_t addr, size_t len, uchar_t prot, uchar_t maxprot, uint_t flags, struct cred *cred, caller_context_t *ct) argument 2493 spec_delmap( struct vnode *vp, offset_t off, struct as *as, caddr_t addr, size_t len, uint_t prot, uint_t maxprot, uint_t flags, struct cred *cred, caller_context_t *ct) argument [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | aio.c | 29 * This is only for raw devices now (as of Nov. 1993). 39 #include <vm/as.h> 738 * if we are here second time as a result of timer 799 * copyouts the result of the request as well as the return value. 1047 * drop the aio_cleanupq_mutex as we are 1613 * as well as for largefile aiocb. 1624 * Treat each pointer as pointer to 2256 * Need to free the request now as it 2576 struct as *as = p->p_as; local [all...] |
H A D | clock.c | 124 * in principle it could change as result of the presence of external 167 * and to increase the time_maxerror as the time since last update 179 * pps_time contains the time at each calibration interval, as read by 194 * contents plus the time_tv.usec as usual. 197 * is used as a watchdog timer to disable the PPS discipline should the 454 * Continue with the interrupt processing as scheduled. 531 * Computes cpu_intrload as %utilization (0-99). 710 * adjustment for each second is clamped so as to spread 886 * bits of load average as it is a signed 892 * avenrun[] is declared as a 1513 struct as *as; local [all...] |
H A D | exec.c | 78 #include <vm/as.h> 185 * process as it exec()s the new binary. 443 /* Mark this as an executable vnode */ 604 * executables, we read in the first four bytes, as the 682 /* The new image gets the inheritable secflags as its secflags */ 743 * should be marked as executable by default. 755 * some confusion as the 'setid' flag did not match the SUGID 1050 * no look aside information -> treat as before 1088 * This is the case when E != I or P != I, as 1276 struct as *a local 1912 struct as *as; local [all...] |
H A D | mmapobj.c | 39 #include <vm/as.h> 61 * mmapobj also supports the AOUT 4.x binary format as well as flat files in 278 * to use the same VA as previous mappings of that library. 300 * Free up the resources associated with lvp as well as lvp itself. 545 * If e_type is passed in as zero, num_mapped must equal num_segs. 552 struct as *as = curproc->p_as; local 575 as_rangelock(as); 651 struct as *as = p->p_as; local 725 struct as *as = p->p_as; local 913 struct as *as = curproc->p_as; local 1022 struct as *as = curproc->p_as; local 1218 struct as *as = curproc->p_as; local 1468 struct as *as = curproc->p_as; local 1561 struct as *as = curproc->p_as; local 2082 struct as *as = curproc->p_as; local [all...] |
/illumos-gate/usr/src/uts/common/io/pciex/ |
H A D | pcieb.c | 71 static char *pcieb_debug_sym [] = { /* same sequence as pcieb_debug_bit */ 577 struct attachspec *as; local 617 as = (struct attachspec *)arg; 618 switch (as->when) { 620 if (as->cmd == DDI_RESUME) { 627 if (as->cmd == DDI_ATTACH) 633 if (as->cmd == DDI_ATTACH && 634 as->result != DDI_SUCCESS) { 645 if (as->result == DDI_SUCCESS) { 647 as [all...] |
/illumos-gate/usr/src/uts/common/io/ |
H A D | pshot.c | 43 * called sequentially by devfs for each node, as part of the pathname 56 * pshot supports some unique behaviors as aids for test error cases. 1055 struct attachspec *as; local 1126 as = (struct attachspec *)arg; 1142 switch (as->when) { 2574 * as will most nexus drivers. 3203 * - nodetypes (PSHOT_PROP_DEVNT) must be the nodetype name as specified in
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/scsi_vhci/ |
H A D | mpapi_impl.c | 652 * passed as the required information is already 894 * passed as the required information is already 949 * check if the pip is marked as device removed. 1052 * check if the pip is marked as device removed. 1137 * check if the pip is marked as device removed. 1212 * passed as the required information is already 1347 * passed as the required information is already 1396 * passed as the required information is already 1447 * passed as the required information is already 1715 * Operation not supported currently as w 3320 uint32_t as; local 3474 uint32_t int_tpg_id, rel_tid, as; local [all...] |
/illumos-gate/usr/src/uts/common/sys/rsm/ |
H A D | rsmpi.h | 176 ddi_as_handle_t as; member in struct:__anon8894::__anon8896::__anon8897 184 #define ms_as ms_memory.vr.as
|
/illumos-gate/usr/src/uts/sun4u/io/pci/ |
H A D | pci_pci.c | 563 struct attachspec *as; local 592 as = (struct attachspec *)arg; 594 (as->when == DDI_POST) && (as->result == DDI_SUCCESS)) 595 pf_init(rdip, ppb_p->fm_ibc, as->cmd); 674 * translation as part of the property, so no 727 * also passed as a callback for node merging functions. 867 * restore to set up the config regs as it'll first need to 1505 * Check for 32-bit I/O support as per PCI-to-PCI Bridge Arch Spec 1513 * Check if the bridge implements an I/O address range as pe [all...] |
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/ |
H A D | emlxs_download.c | 3602 flash_t as[3] = { local 3611 SBUS_WRITE_FLASH_COPY(hba, as[i].offset, as[i].val); 3618 SBUS_WRITE_FLASH_COPY(hba, as[i].offset, as[i].val); 3627 SBUS_WRITE_FLASH_COPY(hba, as[i].offset, as[i].val);
|
/illumos-gate/usr/src/uts/common/fs/doorfs/ |
H A D | door_sys.c | 58 #include <vm/as.h> 233 * We treat it as having no stack limits. This code should 296 * We treat it as having no stack limits. This code should 343 static int door_copy(struct as *, caddr_t, caddr_t, uint_t); 411 * pointer to a file descriptor is passed in as fdp, allocates a file 611 * returned as a door_arg pointer. When called, data_ptr 622 * reference in its reply, it is released as part of the 1870 * and mark it as ONPROC. We are committed to resuming this 2305 struct as *as local 2471 struct as *as; local 2800 struct as *as = ttoproc(caller)->p_as; local 2994 door_copy(struct as *as, caddr_t src, caddr_t dest, uint_t len) argument [all...] |
/illumos-gate/usr/src/uts/common/vm/ |
H A D | seg_dev.c | 66 #include <vm/as.h> 127 * We can also use an anonymous memory page as there is no requirement to 259 static int devmap_device(devmap_handle_t *dhp, struct as *as, caddr_t *addr, 592 * We want to free up this segment as the driver 595 * callback function as the driver does not 598 * as it was the caller that allocated the 654 * softlockcnt is protected from change by the as write lock. 1410 caddr_t addr, /* address in as */ 1843 * to go through the same loop as abov 2398 ddi_segmap_setup(dev_t dev, off_t offset, struct as *as, caddr_t *addrp, off_t len, uint_t prot, uint_t maxprot, uint_t flags, cred_t *cred, ddi_device_acc_attr_t *accattrp, uint_t rnumber) argument 2497 devmap_device(devmap_handle_t *dhp, struct as *as, caddr_t *addr, offset_t off, size_t len, uint_t flags) argument 3125 devmap_setup(dev_t dev, offset_t off, struct as *as, caddr_t *addrp, size_t len, uint_t prot, uint_t maxprot, uint_t flags, struct cred *cred) argument 3317 ddi_devmap_segmap(dev_t dev, off_t off, ddi_as_handle_t as, caddr_t *addrp, off_t len, uint_t prot, uint_t maxprot, uint_t flags, struct cred *cred) argument [all...] |
H A D | vm_seg.c | 61 #include <vm/as.h> 257 * There're 2 active bucket lists. Current active list (as per seg_pahcur) is 262 * current active list and makes the list it just finished processing as 281 * New entries are added to the end of the list since LRU is used as the 416 * at the same address as addr argument. Return the list of deleted entries if 459 * active count. If amp is not NULL use amp as a lookup tag otherwise use seg 460 * as a lookup tag. 520 * active count and set ref bit. If amp is not NULL use amp as a lookup tag 521 * otherwise use seg as a lookup tag. 665 * Mark this entry as reference 1583 seg_alloc(struct as *as, caddr_t base, size_t size) argument 1622 seg_attach(struct as *as, caddr_t base, size_t size, struct seg *seg) argument 1678 register struct as *as = seg->s_as; local [all...] |
H A D | vm_usage.c | 52 * The rss calculation for each process collective is as follows: 82 * The swap calculation for each collective is as follows: 157 #include <vm/as.h> 297 extern struct as kas; 854 * After merge, last pointer may point to a different bound, as (incoming) 889 * first and last may be modified, as bounds may be split into multiple 987 * Same as vmu_amp_update_incore_bounds(), except for tracking 1112 * Figure out if there is a shared object (such as a named vnode or 1128 * replication is typically capped as a small % 1190 /* Enter as write 1453 struct as *as; local [all...] |
H A D | seg_spt.c | 36 #include <vm/as.h> 190 struct as *newas; 204 * get a new as for this shared memory segment 225 sptdestroy(struct as *as, struct anon_map *amp) argument 231 (void) as_unmap(as, SEGSPTADDR, amp->size); 232 as_free(as); 352 * argument which should be the same as sptcreate. Then 394 * We are holding the a_lock on the underlying dummy as, 469 * The zone will never be NULL, as [all...] |
H A D | vm_as.c | 63 #include <vm/as.h> 76 static void as_setwatchprot(struct as *, caddr_t, size_t, uint_t); 77 static void as_clearwatchprot(struct as *, caddr_t, size_t); 78 int as_map_locked(struct as *, caddr_t, size_t, int ((*)()), void *); 93 * Link the entry on the as->a_callbacks list. A callback entry for the 97 * the specified as, the caller must guarantee persistence of the specified as 98 * for the duration of this function (eg. pages being locked within the as 102 as_add_callback(struct as *as, voi argument 188 as_delete_callback(struct as *as, void *arg) argument 234 as_find_callback(struct as *as, uint_t events, caddr_t event_addr, size_t event_len) argument 266 as_execute_callback(struct as *as, struct as_callback *cb, uint_t events) argument 334 as_do_callbacks(struct as *as, uint_t events, caddr_t event_addr, size_t event_len) argument 358 as_findseg(struct as *as, caddr_t addr, int tail) argument 385 as_verify(struct as *as) argument 418 as_addseg(struct as *as, struct seg *newseg) argument 503 as_removeseg(struct as *as, struct seg *seg) argument 543 as_segat(struct as *as, caddr_t addr) argument 564 as_rangelock(struct as *as) argument 577 as_rangeunlock(struct as *as) argument 603 as_avlinit(struct as *as) argument 615 struct as *as = buf; local 628 struct as *as = buf; local 651 struct as *as; local 685 as_free(struct as *as) argument 774 as_dup(struct as *as, struct proc *forkedproc) argument 841 as_fault(struct hat *hat, struct as *as, caddr_t addr, size_t size, enum fault_type type, enum seg_rw rw) argument 1001 as_faulta(struct as *as, caddr_t addr, size_t size) argument 1070 as_setprot(struct as *as, caddr_t addr, size_t size, uint_t prot) argument 1233 as_checkprot(struct as *as, caddr_t addr, size_t size, uint_t prot) argument 1290 as_unmap(struct as *as, caddr_t addr, size_t size) argument 1429 as_map_segvn_segs(struct as *as, caddr_t addr, size_t size, uint_t szcvec, int (*crfp)(), struct segvn_crargs *vn_a, int *segcreated) argument 1543 as_map_vnsegs(struct as *as, caddr_t addr, size_t size, int (*crfp)(), struct segvn_crargs *vn_a, int *segcreated) argument 1625 as_map_ansegs(struct as *as, caddr_t addr, size_t size, int (*crfp)(), struct segvn_crargs *vn_a, int *segcreated) argument 1656 as_map(struct as *as, caddr_t addr, size_t size, int (*crfp)(), void *argsp) argument 1663 as_map_locked(struct as *as, caddr_t addr, size_t size, int (*crfp)(), void *argsp) argument 1773 as_purge(struct as *as) argument 1823 as_gap_aligned(struct as *as, size_t minlen, caddr_t *basep, size_t *lenp, uint_t flags, caddr_t addr, size_t align, size_t redzone, size_t off) argument 1994 as_gap(struct as *as, size_t minlen, caddr_t *basep, size_t *lenp, uint_t flags, caddr_t addr) argument 2007 as_memory(struct as *as, caddr_t *basep, size_t *lenp) argument 2072 as_swapout(struct as *as) argument 2121 as_incore(struct as *as, caddr_t addr, size_t size, char *vec, size_t *sizep) argument 2191 as_unlockerr(struct as *as, int attr, ulong_t *mlock_map, caddr_t raddr, size_t rsize) argument 2219 as_ctl(struct as *as, caddr_t addr, size_t size, int func, int attr, uintptr_t arg, ulong_t *lock_map, size_t pos) argument 2530 as_pagelock_segs(struct as *as, struct seg *seg, struct page ***ppp, caddr_t addr, size_t size, enum seg_rw rw) argument 2689 as_pagelock(struct as *as, struct page ***ppp, caddr_t addr, size_t size, enum seg_rw rw) argument 2764 as_pageunlock_segs(struct as *as, struct seg *seg, caddr_t addr, size_t size, struct page **plist, enum seg_rw rw) argument 2808 as_pageunlock(struct as *as, struct page **pp, caddr_t addr, size_t size, enum seg_rw rw) argument 2850 as_setpagesize(struct as *as, caddr_t addr, size_t size, uint_t szc, boolean_t wait) argument 2978 as_iset3_default_lpsize(struct as *as, caddr_t raddr, size_t rsize, uint_t szc, int *retry) argument 3036 as_iset2_default_lpsize(struct as *as, caddr_t addr, size_t size, uint_t szc, uint_t szcvec) argument 3064 as_iset1_default_lpsize(struct as *as, caddr_t raddr, size_t rsize, uint_t szc, uint_t szcvec) argument 3127 as_iset_default_lpsize(struct as *as, caddr_t addr, size_t size, int flags, int type) argument 3218 as_set_default_lpsize(struct as *as, caddr_t addr, size_t size) argument 3366 as_setwatch(struct as *as) argument 3413 as_clearwatch(struct as *as) argument 3452 as_setwatchprot(struct as *as, caddr_t addr, size_t size, uint_t prot) argument 3508 as_clearwatchprot(struct as *as, caddr_t addr, size_t size) argument 3555 as_signal_proc(struct as *as, k_siginfo_t *siginfo) argument 3575 as_getmemid(struct as *as, caddr_t addr, memid_t *memidp) argument [all...] |
/illumos-gate/usr/src/uts/common/fs/udfs/ |
H A D | udf_vnops.c | 74 #include <vm/as.h> 149 static int32_t udf_map(struct vnode *, offset_t, struct as *, 152 static int32_t udf_addmap(struct vnode *, offset_t, struct as *, 155 static int32_t udf_delmap(struct vnode *, offset_t, struct as *, 181 * all the slave IOs complete. The master is processed as if a single 987 /* Notify the target dir. if not the same as the source dir. */ 1706 * We may be getting called as a side effect of a bmap using 1755 * May be allocating disk blocks for holes here as 2037 struct as *as, 2034 udf_map( struct vnode *vp, offset_t off, struct as *as, caddr_t *addrp, size_t len, uint8_t prot, uint8_t maxprot, uint32_t flags, struct cred *cr, caller_context_t *ct) argument 2102 udf_addmap(struct vnode *vp, offset_t off, struct as *as, caddr_t addr, size_t len, uint8_t prot, uint8_t maxprot, uint32_t flags, struct cred *cr, caller_context_t *ct) argument 2130 udf_delmap( struct vnode *vp, offset_t off, struct as *as, caddr_t addr, size_t len, uint32_t prot, uint32_t maxprot, uint32_t flags, struct cred *cr, caller_context_t *ct) argument [all...] |
/illumos-gate/usr/src/uts/common/fs/tmpfs/ |
H A D | tmp_vnops.c | 62 #include <vm/as.h> 225 * the tmpfs mount, as well as in the global 862 * node - create the attr dir as a side effect 1254 /* Notify the target dir. if not the same as the source dir. */ 1307 * Notify the target dir if not same as source dir. 1966 * as writer somewhere above, then we don't need to grab the 1967 * lock as reader in this routine. 1972 * If this is pageout don't block on the lock as you could deadlock 2042 * Only reason putapage is going to give us SE_NOSWAP as erro 2170 tmp_map( struct vnode *vp, offset_t off, struct as *as, caddr_t *addrp, size_t len, uchar_t prot, uchar_t maxprot, uint_t flags, struct cred *cred, caller_context_t *ct) argument 2237 tmp_addmap( struct vnode *vp, offset_t off, struct as *as, caddr_t addr, size_t len, uchar_t prot, uchar_t maxprot, uint_t flags, struct cred *cred, caller_context_t *ct) argument 2254 tmp_delmap( struct vnode *vp, offset_t off, struct as *as, caddr_t addr, size_t len, uint_t prot, uint_t maxprot, uint_t flags, struct cred *cred, caller_context_t *ct) argument [all...] |
/illumos-gate/usr/src/uts/common/exec/elf/ |
H A D | elf.c | 54 #include <vm/as.h> 835 * don't treat this as a set-uid exec. So we care about 1586 struct as *as = p->p_as; local 1593 for (seg = AS_SEGFIRST(as); seg != NULL; seg = AS_SEGNEXT(as, seg)) { 1869 struct as *as = p->p_as; local 1894 AS_LOCK_ENTER(as, RW_WRITER); 1895 nphdrs = prnsegs(as, [all...] |
/illumos-gate/usr/src/uts/common/fs/proc/ |
H A D | prsubr.c | 68 #include <vm/as.h> 884 * Inside local zones, fake zsched's pid as parent pids for 1107 * Inside local zones, fake zsched's pid as parent pids for 1374 prnsegs(struct as *as, int reserved) argument 1379 ASSERT(as != &kas && AS_WRITE_HELD(as)); 1381 for (seg = AS_SEGFIRST(as); seg != NULL; seg = AS_SEGNEXT(as, seg)) { 1614 struct as *a local 1725 struct as *as = p->p_as; local 1838 prpdsize(struct as *as) argument 1868 prpdsize32(struct as *as) argument 1903 struct as *as = p->p_as; local 2050 struct as *as = p->p_as; local 2294 struct as *as; local 2426 struct as *as; local 3306 struct as *as = p->p_as; local 3357 struct as *as = p->p_as; local 3488 struct as *as = p->p_as; local 3566 getwatchprot(struct as *as, caddr_t addr, uint_t *prot) argument 3842 struct as *as = seg->s_as; local 4004 struct as *as = p->p_as; local 4200 struct as *as = p->p_as; local [all...] |
/illumos-gate/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_kvm.c | 50 #include <vm/as.h> 157 * Try to process the entire buffer, as requested. If we catch a fault, 274 kmt_vtop(mdb_tgt_t *t, mdb_tgt_as_t as, uintptr_t va, physaddr_t *pap) argument 277 struct as *asp; 280 switch ((uintptr_t)as) { 286 if ((asp = (struct as *)kmt_read_kas(t)) == NULL) 290 asp = (struct as *)as; 293 if (asp != (struct as *)kmt_read_kas(t)) 302 int (*fptr)(uintptr_t, struct as *, physaddr_ [all...] |