Lines Matching refs:len

146 	size_t len;
189 len = p->p_brksize;
191 if (addr < base || addr >= base + len) { /* data seg? */
193 len = p->p_stksize;
205 len = (((uintptr_t)base + len + PAGEOFFSET) & PAGEMASK) -
211 if (as_gap(as, PAGESIZE, &base, &len, AH_CONTAIN, addr) == 0) {
212 err = as_map(as, base, len, segvn_create, zfod_argsp);
241 map_addr(caddr_t *addrp, size_t len, offset_t off, int vacalign, uint_t flags)
246 map_addr_proc(addrp, len, off, vacalign, userlimit, p, flags);
376 * Determine whether [addr, addr+len] with protections `prot' are valid
381 valid_usr_range(caddr_t addr, size_t len, uint_t prot, struct as *as,
384 caddr_t eaddr = addr + len;
530 map_pgszheap(struct proc *p, caddr_t addr, size_t len)
536 * If len is zero, retrieve from proc and don't demote the page size.
539 if (len == 0) {
540 len = p->p_brkbase + p->p_brksize - p->p_bssbase;
542 len = MAX(len, default_uheap_lpsize);
549 if (len >= pgsz) {
566 map_pgszstk(struct proc *p, caddr_t addr, size_t len)
572 * If len is zero, retrieve from proc and don't demote the page size.
575 if (len == 0) {
576 len = p->p_stksize;
578 len = MAX(len, default_ustack_lpsize);
585 if (len >= pgsz) {
602 map_pgszism(caddr_t addr, size_t len)
612 if ((len >= pgsz) && IS_P2ALIGNED(addr, pgsz))
621 * len. Returns a page size (not a size code).
625 map_pgsz(int maptype, struct proc *p, caddr_t addr, size_t len, int memcntl)
637 pgsz = map_pgszism(addr, len);
642 pgsz = map_pgszstk(p, addr, len);
648 pgsz = map_pgszheap(p, addr, len);
701 * can be used to map [addr, addr + len) region.