Lines Matching defs:as

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 above
1845 * It will use the right lenghths as well as
1897 * This routine returns a faultcode_t as a return value for segdev_fault.
2084 * Softlockcnt is protected from change by the as read lock.
2398 ddi_segmap_setup(dev_t dev, off_t offset, struct as *as, caddr_t *addrp,
2449 as_rangelock(as);
2451 error = choose_addr(as, addrp, len, ptob(pfn), ADDR_NOVACALIGN, flags);
2453 as_rangeunlock(as);
2467 error = as_map(as, *addrp, len, segdev_create, &dev_a);
2468 as_rangeunlock(as);
2497 devmap_device(devmap_handle_t *dhp, struct as *as, caddr_t *addr,
2515 as_rangelock(as);
2534 * use 0 which is as good as any other.
2557 as_rangeunlock(as);
2564 (void) as_unmap(as, *addr, len);
2583 err = as_map(as, *addr, len, segdev_create, &dev_a);
2584 as_rangeunlock(as);
2790 * is not the entire segment as intercept and unloads the
3015 * Untimeout any threads using this mapping as they are about
3057 * is not the entire segment as nointercept and faults in
3065 struct as *asp = dhp->dh_seg->s_as;
3080 * the as lock is held. Verify here and return error if drivers
3125 devmap_setup(dev_t dev, offset_t off, struct as *as, caddr_t *addrp,
3194 * the driver, such as rnumber, roff, len, callbackops,
3257 if ((ret = devmap_device(dhp_head, as, addrp, off, len, flags))
3269 * such as to allocate driver private data for context management.
3317 ddi_devmap_segmap(dev_t dev, off_t off, ddi_as_handle_t as, caddr_t *addrp,
3322 return (devmap_setup(dev, (offset_t)off, (struct as *)as, addrp,
3344 * 4. dhp length is at least as big as the large pagesize
3566 * Store result of ddi_map first in local variables, as we do
3851 * devmap_umem_alloc_np() replaces kmem_zalloc() as the method for
3886 * to find a user virtual address that is in same color as the address
3922 * other segment drivers such as segdev have to do
4026 * It looks as if it is always mapped shared