Lines Matching defs:pagep
139 sc_page_ctl_t *pagep;
162 pagep = schedctl_page_lookup(ssp);
163 index = (index_t)(ssp - pagep->spc_base);
164 BT_CLEAR(pagep->spc_map, index);
165 pagep->spc_space += sizeof (sc_shared_t);
178 sc_page_ctl_t *pagep;
187 pagep = p->p_pagep;
189 while (pagep != NULL) {
190 ASSERT(pagep->spc_space == sc_pagesize);
191 next = pagep->spc_next;
195 (void) as_unmap(p->p_as, pagep->spc_uaddr, PAGESIZE);
196 schedctl_freepage(pagep->spc_amp, (caddr_t)(pagep->spc_base));
197 kmem_free(pagep->spc_map, sizeof (ulong_t) * sc_bitmap_words);
198 kmem_free(pagep, sizeof (sc_page_ctl_t));
199 pagep = next;
236 sc_page_ctl_t *pagep;
249 for (pagep = pp->p_pagep; pagep != NULL; pagep = pagep->spc_next)
250 (void) as_unmap(cp->p_as, pagep->spc_uaddr, PAGESIZE);
472 sc_page_ctl_t *pagep;
485 for (pagep = p->p_pagep; pagep != NULL; pagep = pagep->spc_next)
486 if (pagep->spc_space != 0)
489 if (pagep != NULL)
490 base = pagep->spc_uaddr;
513 pagep = kmem_alloc(sizeof (sc_page_ctl_t), KM_SLEEP);
514 pagep->spc_amp = amp;
515 pagep->spc_base = (sc_shared_t *)kaddr;
516 pagep->spc_end = (sc_shared_t *)(kaddr + sc_pagesize);
517 pagep->spc_uaddr = base;
519 pagep->spc_map = kmem_zalloc(sizeof (ulong_t) * sc_bitmap_words,
521 pagep->spc_space = sc_pagesize;
523 pagep->spc_next = p->p_pagep;
524 p->p_pagep = pagep;
531 ASSERT(pagep != NULL && pagep->spc_space >= sizeof (sc_shared_t));
532 index = bt_availbit(pagep->spc_map, sc_bitmap_len);
539 ssp = pagep->spc_base + index;
540 BT_SET(pagep->spc_map, index);
541 pagep->spc_space -= sizeof (sc_shared_t);
561 sc_page_ctl_t *pagep;
564 for (pagep = p->p_pagep; pagep != NULL; pagep = pagep->spc_next) {
565 if (ssp >= pagep->spc_base && ssp < pagep->spc_end)
566 return (pagep);