Home
last modified time | relevance | path

Searched refs:page (Results 1 – 25 of 342) sorted by relevance

12345678910>>...14

/illumos-gate/usr/src/lib/libmapmalloc/common/
H A Dtextmem.c62 struct page *page; /* Backwards reference to page */ member
68 struct page { struct
70 struct page *next; argument
78 #define HDR_PAGE (sizeof (struct page) - sizeof (void *)) argument
86 struct page *memstart;
88 static void defrag(struct page *);
108 struct page *page; in malloc_unlocked() local
118 for (page = memstart; page; page = page->next) { in malloc_unlocked()
119 for (block = page->block; block; block = block->next) { in malloc_unlocked()
129 if (!page) { in malloc_unlocked()
[all …]
/illumos-gate/usr/src/cmd/fm/modules/common/cpumem-retire/
H A Dcma_page.c62 cma_page_free(fmd_hdl_t *hdl, cma_page_t *page) in cma_page_free() argument
64 nvlist_free(page->pg_asru); in cma_page_free()
65 nvlist_free(page->pg_rsrc); in cma_page_free()
66 fmd_hdl_free(hdl, page, sizeof (cma_page_t)); in cma_page_free()
89 cma_page_t *page; in cma_page_retire() local
181 page = fmd_hdl_zalloc(hdl, sizeof (cma_page_t), FMD_SLEEP); in cma_page_retire()
182 page->pg_addr = pageaddr; in cma_page_retire()
184 (void) nvlist_dup(rsrc, &page->pg_rsrc, 0); in cma_page_retire()
185 page->pg_asru = asrucp; in cma_page_retire()
187 page->pg_uuid = fmd_hdl_strdup(hdl, uuid, FMD_SLEEP); in cma_page_retire()
[all …]
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Dmalloc.c53 struct page *page; /* Backwards reference to page */ member
59 struct page { struct
61 struct page *next; argument
69 #define HDR_PAGE (sizeof (struct page) - sizeof (void *)) argument
71 static struct page *memstart;
105 struct page *page; in defrag() local
108 for (APLIST_TRAVERSE(free_alp, idx, page)) { in defrag()
111 for (block = page->block; block; block = block->next) { in defrag()
145 newblock->page = block->page; in split()
162 struct page *page; in malloc() local
[all …]
/illumos-gate/usr/src/cmd/mandoc/
H A Ddba.c85 struct dba_array *page; in dba_free() local
102 dba_array_FOREACH(dba->pages, page) { in dba_free()
103 dba_array_free(dba_array_get(page, DBP_NAME)); in dba_free()
104 dba_array_free(dba_array_get(page, DBP_SECT)); in dba_free()
105 dba_array_free(dba_array_get(page, DBP_ARCH)); in dba_free()
106 free(dba_array_get(page, DBP_DESC)); in dba_free()
107 dba_array_free(dba_array_get(page, DBP_FILE)); in dba_free()
108 dba_array_free(page); in dba_free()
161 struct dba_array *page, *entry; in dba_page_new() local
163 page = dba_array_new(DBP_MAX, 0); in dba_page_new()
[all …]
H A Dmansearch.c92 struct dbm_page *page; in mansearch() local
170 page = dbm_page_get(rp->page); in mansearch()
172 if (lstmatch(search->sec, page->sect) == 0 || in mansearch()
173 lstmatch(search->arch, page->arch) == 0 || in mansearch()
189 paths->paths[i], page->file + 1); in mansearch()
190 if (access(chdir_status ? page->file + 1 : in mansearch()
195 page->file + 1, paths->paths[i]); in mansearch()
200 mpage->names = buildnames(page); in mansearch()
201 mpage->output = buildoutput(outkey, page); in mansearch()
204 mpage->sec = *page->sect - '0'; in mansearch()
[all …]
H A Ddba_read.c41 struct dba_array *page; in dba_read() local
53 page = dba_page_new(dba->pages, pdata->arch, in dba_read()
56 dba_page_add(page, DBP_NAME, cp); in dba_read()
58 dba_page_add(page, DBP_SECT, cp); in dba_read()
61 dba_page_add(page, DBP_ARCH, cp); in dba_read()
64 dba_page_add(page, DBP_FILE, cp); in dba_read()
/illumos-gate/usr/src/cmd/lp/filter/postscript/dpost/
H A Dps_include.c83 Section prolog, page, trailer; in ps_include() local
120 page.start = page.end = 0; in ps_include()
129 page.start = ftell(fin); in ps_include()
133 else if (foundpage && page.end <= page.start) in ps_include()
134 page.end = ftell(fin); in ps_include()
139 page.end = ftell(fin); in ps_include()
142 page.start = ftell(fin); in ps_include()
148 prolog.end = page.start = ftell(fin); in ps_include()
152 if (page.end <= page.start) { in ps_include()
160 if (page.end <= page.start) in ps_include()
[all …]
/illumos-gate/usr/src/uts/common/vm/
H A Dpvn.h59 struct page *pvn_read_kluster(struct vnode *vp, u_offset_t off,
63 struct page *pvn_write_kluster(struct vnode *vp, struct page *pp,
66 void pvn_read_done(struct page *plist, int flags);
67 void pvn_write_done(struct page *plist, int flags);
68 void pvn_io_done(struct page *plist);
70 int (*putapage)(vnode_t *, struct page *, u_offset_t *,
74 int pvn_getdirty(struct page *pp, int flags);
78 struct page *[], size_t, struct seg *,
81 uint_t *protp, struct page **pl, size_t plsz,
84 void pvn_plist_init(struct page *pp, struct page **pl, size_t plsz,
H A Dhat.h204 void hat_memload(struct hat *, caddr_t, struct page *, uint_t, uint_t);
205 void hat_memload_array(struct hat *, caddr_t, size_t, struct page **,
207 void hat_memload_region(struct hat *, caddr_t, struct page *, uint_t,
209 void hat_memload_array_region(struct hat *, caddr_t, size_t, struct page **,
240 caddr_t hat_kpm_mapin(struct page *, struct kpme *);
241 void hat_kpm_mapout(struct page *, struct kpme *, caddr_t);
244 caddr_t hat_kpm_page2va(struct page *, int);
245 struct page *hat_kpm_vaddr2page(caddr_t);
290 void hat_page_setattr(struct page *, uint_t);
291 void hat_page_clrattr(struct page *, uint_t);
[all …]
/illumos-gate/usr/src/cmd/sendmail/db/btree/
H A Dbt_cursor.c49 if ((cp)->page != NULL) { \
50 (void)memp_fput((dbc)->dbp->mpf, (cp)->page, 0); \
51 (cp)->page = NULL; \
63 B_DISSET(GET_BKEYDATA((cp)->page, \
66 B_DISSET(GET_BKEYDATA((cp)->page, (cp)->dindx)->type)))
72 B_DISSET(GET_BKEYDATA((cp)->page, (indx) + O_INDX)->type)) || \
74 B_DISSET(GET_BKEYDATA((cp)->page, (indx))->type)))
91 (cursor)->page->inp[(cursor)->indx] == \
92 (cursor)->page->inp[(saved_copy).indx])))
104 cp->page = NULL;
[all …]
H A Dbt_split.c134 (db_indx_t)P_FREESPACE(cp->csp[0].page)) {
138 ret = cp->csp[0].page->pgno == PGNO_ROOT ?
187 if (cp->page->level >= MAXBTREELEVEL) {
194 if ((ret = __bam_new(dbc, TYPE(cp->page), &lp)) != 0 ||
195 (ret = __bam_new(dbc, TYPE(cp->page), &rp)) != 0)
198 PGNO_INVALID, ISINTERNAL(cp->page) ? PGNO_INVALID : rp->pgno,
199 cp->page->level, TYPE(cp->page));
201 ISINTERNAL(cp->page) ? PGNO_INVALID : lp->pgno, PGNO_INVALID,
202 cp->page->level, TYPE(cp->page));
213 __a.data = cp->page;
[all …]
/illumos-gate/usr/src/lib/scsi/plugins/ses/ses2/common/
H A Dses2_element_ctl.c39 elem_setprop_device(ses_plugin_t *sp, ses_node_t *np, ses2_diag_page_t page, in elem_setprop_device() argument
47 page, 0, np, B_FALSE)) == NULL) in elem_setprop_device()
80 elem_setprop_psu(ses_plugin_t *sp, ses_node_t *np, ses2_diag_page_t page, in elem_setprop_psu() argument
88 page, 0, np, B_FALSE)) == NULL) in elem_setprop_psu()
107 elem_setprop_cooling(ses_plugin_t *sp, ses_node_t *np, ses2_diag_page_t page, in elem_setprop_cooling() argument
116 page, 0, np, B_FALSE)) == NULL) in elem_setprop_cooling()
142 elem_setprop_temp(ses_plugin_t *sp, ses_node_t *np, ses2_diag_page_t page, in elem_setprop_temp() argument
150 page, 0, np, B_FALSE)) == NULL) in elem_setprop_temp()
167 elem_setprop_lock(ses_plugin_t *sp, ses_node_t *np, ses2_diag_page_t page, in elem_setprop_lock() argument
175 page, 0, np, B_FALSE)) == NULL) in elem_setprop_lock()
[all …]
H A Dses2_pages.c40 ses2_ctl_common_setdef(ses_node_t *np, ses2_diag_page_t page, void *data) in ses2_ctl_common_setdef() argument
45 if (page != SES2_DIAGPAGE_ENCLOSURE_CTL_STATUS) in ses2_ctl_common_setdef()
251 ses2_ctl_len(uint_t nelem, int page, size_t datalen) in ses2_ctl_len() argument
253 ASSERT(page == SES2_DIAGPAGE_ENCLOSURE_CTL_STATUS); in ses2_ctl_len()
269 ses2_diag_page_t page = SES2_DIAGPAGE_ENCLOSURE_CTL_STATUS; in ses2_ctl_fill() local
286 if (ses2_ctl_common_setdef(np, page, data) != 0 || in ses2_ctl_fill()
287 ses2_element_setdef(np, page, data) != 0 || in ses2_ctl_fill()
288 ses2_enclosure_setdef(np, page, data) != 0) in ses2_ctl_fill()
296 ses2_stringout_len(uint_t nelem, int page, size_t datalen) in ses2_stringout_len() argument
298 ASSERT(page == SES2_DIAGPAGE_STRING_IO); in ses2_stringout_len()
[all …]
H A Dses2_enclosure_ctl.c122 enc_ctl_common(ses_plugin_t *sp, ses_node_t *np, ses2_diag_page_t page, in enc_ctl_common() argument
130 ASSERT(page == SES2_DIAGPAGE_ENCLOSURE_CTL_STATUS); in enc_ctl_common()
133 page, 0, np, B_FALSE)) == NULL) in enc_ctl_common()
160 enc_ctl_string(ses_plugin_t *sp, ses_node_t *np, ses2_diag_page_t page, in enc_ctl_string() argument
199 enc_ctl_nick(ses_plugin_t *sp, ses_node_t *np, ses2_diag_page_t page, in enc_ctl_nick() argument
210 ASSERT(page == SES2_DIAGPAGE_SUBENCLOSURE_NICKNAME_CTL_STATUS); in enc_ctl_nick()
223 page, len, np, B_FALSE)) == NULL) in enc_ctl_nick()
288 enc_setdef_one(ses_node_t *np, ses2_diag_page_t page, void *data) in enc_setdef_one() argument
293 if (page != SES2_DIAGPAGE_ENCLOSURE_CTL_STATUS) in enc_setdef_one()
318 ses2_enclosure_setdef(ses_node_t *np, ses2_diag_page_t page, void *data) in ses2_enclosure_setdef() argument
[all …]
/illumos-gate/usr/src/lib/libeti/form/common/
H A Dform.c115 int i, page, pmin, pmax; in sort_form() local
119 for (page = 0; page < f->maxpage; ++page) { /* for each page */ in sort_form()
122 pmin = Pmin(f, page); in sort_form()
123 pmax = Pmax(f, page); in sort_form()
127 field[i]->page = page; in sort_form()
131 Smin(f, page) = p->index; /* set sorted min */ in sort_form()
132 Smax(f, page) = p->sprev->index; /* set sorted max */ in sort_form()
173 _PAGE * page; in connect_fields() local
198 if (arrayAlloc(f->page, np, _PAGE)) { in connect_fields()
199 page = f->page; in connect_fields()
[all …]
H A Dpost.c112 P(f) = c->page; in set_current_field()
124 if (c -> page != P(f)) { /* page change */ in set_current_field()
126 v = _set_form_page(f, c->page, c); in set_current_field()
156 set_form_page(FORM *f, int page) in set_form_page() argument
158 if (!f || !ValidPage(f, page)) in set_form_page()
162 P(f) = page; in set_form_page()
169 if (page != P(f)) { in set_form_page()
175 v = _set_form_page(f, page, (FIELD *) 0); in set_form_page()
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/
H A Dpage.c58 caddr_t page; in rdsv3_page_remainder_alloc() local
64 page = kmem_alloc(PAGE_SIZE, gfp); in rdsv3_page_remainder_alloc()
65 if (!page) { in rdsv3_page_remainder_alloc()
68 rdsv3_sg_set_page(scat, page, PAGE_SIZE, 0); in rdsv3_page_remainder_alloc()
77 page = kmem_alloc(bytes, KM_NOSLEEP); in rdsv3_page_remainder_alloc()
78 if (!page) { in rdsv3_page_remainder_alloc()
83 rdsv3_sg_set_page(scat, page, bytes, 0); in rdsv3_page_remainder_alloc()
/illumos-gate/usr/src/cmd/lp/filter/postscript/common/
H A Drequest.c63 char *page; /* and save it for this page */ in saverequest() local
80 if ( (page = strtok(NULL, ": ")) == NULL ) in saverequest()
81 request[nextreq].page = 0; in saverequest()
82 else request[nextreq].page = atoi(page); in saverequest()
95 writerequest(int page, FILE *fp_out) in writerequest() argument
110 if ( request[i].page == page ) in writerequest()
/illumos-gate/usr/src/cmd/lp/filter/postscript/postreverse/
H A Dpostreverse.c243 char *page; in ParsePageList() local
248 page = strtok(tmplist, ","); in ParsePageList()
252 char *s1 = page, *s2; in ParsePageList()
254 if (s2 = strchr(page, '-')) { in ParsePageList()
276 } while (page = strtok(NULL, ",")); in ParsePageList()
291 PageIsListed(int page, int **pageList) in PageIsListed() argument
299 if (*pageList[count] == page) in PageIsListed()
383 if (document->header && document->trailer && document->page) { in WriteDocument()
397 PAGE *page = document->page[count]; in WriteDocument() local
399 if (page && PageIsListed(page->number, pageList)) in WriteDocument()
[all …]
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/
H A Dbt_seq.c148 __bt_setcur(t, e.page->pgno, e.index);
158 mpool_put(t->bt_mp, e.page, 0);
160 t->bt_pinned = e.page;
226 ep->page = h;
248 ep->page = h;
323 c->pg.pgno = ep->page->pgno;
325 mpool_put(t->bt_mp, ep->page, 0);
364 ep->page = h;
382 ep->page = h;
434 h = ep->page;
[all …]
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/mpool/
H A Dmpool.c148 return (bp->page);
152 mpool_delete(mp, page) in mpool_delete() argument
154 void *page;
159 bp = (BKT *)((char *)page - sizeof(BKT));
218 return (bp->page);
239 if ((nr = read(mp->fd, bp->page, mp->pagesize)) != mp->pagesize) {
249 memset(bp->page, 0, mp->pagesize);
269 (mp->pgin)(mp->pgcookie, bp->pgno, bp->page);
271 return (bp->page);
279 mpool_put(mp, page, flags) in mpool_put() argument
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Durw.c184 caddr_t page; in urw() local
200 page = (caddr_t)(uintptr_t)((uintptr_t)addr & PAGEMASK); in urw()
204 if ((seg = as_segat(as, page)) == NULL || in urw()
205 !page_valid(seg, page)) { in urw()
209 SEGOP_GETPROT(seg, page, 0, &prot); in urw()
214 err = SEGOP_SETPROT(seg, page, PAGESIZE, prot | prot_rw); in urw()
244 if (SEGOP_FAULT(as->a_hat, seg, page, PAGESIZE, F_SOFTLOCK, rw)) { in urw()
246 (void) SEGOP_SETPROT(seg, page, PAGESIZE, prot); in urw()
255 ASSERT(len <= page + PAGESIZE - addr); in urw()
303 (void) SEGOP_FAULT(as->a_hat, seg, page, PAGESIZE, F_SOFTUNLOCK, rw); in urw()
[all …]
/illumos-gate/usr/src/lib/scsi/libses/common/
H A Dses_snap.c30 ses_snap_find_page(ses_snap_t *sp, ses2_diag_page_t page, boolean_t ctl) in ses_snap_find_page() argument
35 if (pp->ssp_num == page && pp->ssp_control == ctl && in ses_snap_find_page()
114 ses_snap_ctl_page(ses_snap_t *sp, ses2_diag_page_t page, size_t dlen, in ses_snap_ctl_page() argument
123 pp = ses_snap_find_page(sp, page, B_TRUE); in ses_snap_ctl_page()
154 dp = ses_get_pagedesc(tp, page, SES_PAGE_CTL); in ses_snap_ctl_page()
157 len = dp->spd_ctl_len(sp->ss_n_elem, page, dlen); in ses_snap_ctl_page()
165 pip->sdpi_page_code = (uint8_t)page; in ses_snap_ctl_page()
175 read_status_page(ses_snap_t *sp, ses2_diag_page_t page) in read_status_page() argument
189 if (pp->ssp_num == page && !pp->ssp_control) in read_status_page()
251 "truncated page 0x%x (length %d)", page, pp->ssp_len)); in read_status_page()
[all …]
/illumos-gate/usr/src/cmd/col/
H A Dcol.c51 wchar_t *page[PL]; variable
122 page[ll] = 0; in main()
289 if (page[(mustwr+i)%PL] != 0) in main()
290 emit(page[(mustwr+i) % PL], mustwr+i-PL); in main()
466 if (page[lno] != 0) in store()
467 free((char *)page[lno]); in store()
468 page[lno] = (wchar_t *)malloc((unsigned)(wcslen(lbuff) + 2) in store()
470 if (page[lno] == 0) { in store()
474 (void) wcscpy(page[lno], lbuff); in store()
488 if (page[lno]) in fetch()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dkgrep.c80 uintptr_t *page = kg->kg_page; in kgrep_range_basic() local
81 uintptr_t *page_end = &page[pagesize / sizeof (uintptr_t)]; in kgrep_range_basic()
94 if (mdb_vread(page, pagesize, addr) == -1) in kgrep_range_basic()
98 for (pos = page; pos < page_end; pos++) { in kgrep_range_basic()
102 offset = (caddr_t)pos - (caddr_t)page; in kgrep_range_basic()
132 uintbits_t *page = (uintbits_t *)kg->kg_page; \
150 if (mdb_vread(page, size, addr) == -1) \
155 page_end = &page[size / sizeof (uintbits_t)]; \
156 for (pos = page; pos < page_end; pos++) { \
170 offset = (caddr_t)pos - (caddr_t)page; \

12345678910>>...14