Lines Matching refs:pages
151 MODULE_PARM_DESC(weakpages, "Weak pages [: maximum writes (defaults to 3)]"
162 MODULE_PARM_DESC(cache_file, "File to use to cache nand pages instead of memory");
273 * (which is only valid for 512-byte pages).
277 /* Maximum page cache pages needed to read or write a NAND page to the cache_file */
306 /* The simulated NAND flash pages array */
307 union ns_mem *pages;
309 /* Slab allocator for nand pages */
324 uint pgnum; /* total number of pages */
325 uint pgsec; /* number of pages per sector */
355 unsigned char *pages_written; /* Which pages have been written */
470 NS_ERR("alloc_device: unable to allocate pages written array\n");
485 ns->pages = vmalloc(ns->geom.pgnum * sizeof(union ns_mem));
486 if (!ns->pages) {
491 ns->pages[i].byte = NULL;
510 * Free any allocated pages, and free the array of page pointers.
523 if (ns->pages) {
525 if (ns->pages[i].byte)
527 ns->pages[i].byte);
530 vfree(ns->pages);
669 printk("pages number: %u\n", ns->geom.pgnum);
670 printk("pages per sector: %u\n", ns->geom.pgsec);
1298 /* Get page cache pages in advance to provide NOFS memory allocation */
1386 return &(ns->pages[ns->regs.row]);
1474 * Erase all pages in the specified sector.
1931 * The OPT_AUTOINCR allows to read next conseqitive pages without