Lines Matching defs:page
30 ses_snap_find_page(ses_snap_t *sp, ses2_diag_page_t page, boolean_t ctl)
35 if (pp->ssp_num == page && pp->ssp_control == ctl &&
107 * Grow (if needed) the control page buffer, fill in the page code, page
108 * length, and generation count, and return a pointer to the page. The
109 * caller is responsible for filling in the rest of the page data. If 'unique'
110 * is specified, then a new page instance is created instead of sharing the
114 ses_snap_ctl_page(ses_snap_t *sp, ses2_diag_page_t page, size_t dlen,
123 pp = ses_snap_find_page(sp, page, B_TRUE);
134 * The user has requested a unique instance of the page. Create
136 * 'ssp_instances' list of the master page. These must be
154 dp = ses_get_pagedesc(tp, page, SES_PAGE_CTL, NULL);
157 len = dp->spd_ctl_len(sp->ss_n_elem, page, dlen);
165 pip->sdpi_page_code = (uint8_t)page;
175 read_status_page(ses_snap_t *sp, ses2_diag_page_t page)
189 if (pp->ssp_num == page && !pp->ssp_control)
193 * No matching page. Since the page number is not under consumer or
257 "truncated page 0x%x (length %d)", page, pp->ssp_len));
262 if (pip->sdpi_page_code == page)
273 "enclosure busy responses for page 0x%x", page));
277 return (ses_error(ESES_BAD_RESPONSE, "target returned page 0x%x "
278 "instead of the requested page 0x%x", retpage, page));
308 "SEND DIAGNOSTIC command failed for page 0x%x",
314 "failed for page 0x%x", pp->ssp_num);
330 ses2_diag_page_t page;
360 page = (ses2_diag_page_t)pip->sssdpi_pages[i];
362 * Skip the page we already added during the bootstrap.
364 if (page == SES2_DIAGPAGE_SUPPORTED_PAGES)
367 * The end of the page list may be padded with zeros; ignore
370 if (page == 0 && i > 0)
376 np->ssp_num = page;
381 * Allocate a control page as well, if we can use it.
383 if (ses_get_pagedesc(tp, page, SES_PAGE_CTL, NULL) != NULL) {
388 np->ssp_num = page;
478 * First check for the short enclosure status diagnostic page and
503 * If this page is required, and this is not a simple
530 "mismatches: page 0x%x gc %u "
531 "previous page %u", dp->spd_gcoff,
545 * mmap() each page with enough space after it so we can move the data
546 * up to the end of a page and unmap the following page so that any
547 * attempt to read past the end of the page results in a segfault.