Lines Matching refs:pages
51 static int diag204_buf_pages; /* number of pages for diag204 data */
359 * up to 93 pages!
380 static void *diag204_alloc_vbuf(int pages)
383 diag204_buf_vmalloc = vmalloc(PAGE_SIZE * (pages + 1));
387 diag204_buf_pages = pages;
400 static void *diag204_get_buffer(enum diag204_format fmt, int *pages)
403 *pages = diag204_buf_pages;
407 *pages = 1;
410 *pages = diag204((unsigned long)SUBC_RSI |
412 if (*pages <= 0)
415 return diag204_alloc_vbuf(*pages);
436 int pages, rc;
438 buf = diag204_get_buffer(INFO_EXT, &pages);
441 (unsigned long)INFO_EXT, pages, buf) >= 0) {
447 (unsigned long)INFO_EXT, pages, buf) >= 0) {
457 buf = diag204_get_buffer(INFO_SIMPLE, &pages);
463 (unsigned long)INFO_SIMPLE, pages, buf) >= 0) {
479 static int diag204_do_store(void *buf, int pages)
484 (unsigned long) diag204_info_type, pages, buf);
491 int pages, rc;
493 buf = diag204_get_buffer(diag204_info_type, &pages);
496 rc = diag204_do_store(buf, pages);