Searched refs:pgnum (Results 1 – 2 of 2) sorted by relevance
988 unsigned pgnum; in switch_pg_num() local991 if (!pgstr || (sscanf(pgstr, "%u", &pgnum) != 1) || !pgnum || in switch_pg_num()992 (pgnum > m->nr_priority_groups)) { in switch_pg_num()1000 if (--pgnum) in switch_pg_num()1020 unsigned pgnum; in bypass_pg_num() local1022 if (!pgstr || (sscanf(pgstr, "%u", &pgnum) != 1) || !pgnum || in bypass_pg_num()1023 (pgnum > m->nr_priority_groups)) { in bypass_pg_num()1029 if (!--pgnum) in bypass_pg_num()
322 uint pgnum; /* total number of pages */ member466 ns->pages_written = vmalloc(ns->geom.pgnum); in alloc_device()479 memset(ns->pages_written, 0, ns->geom.pgnum); in alloc_device()483 ns->pages = vmalloc(ns->geom.pgnum * sizeof(union ns_mem)); in alloc_device()488 for (i = 0; i < ns->geom.pgnum; i++) { in alloc_device()522 for (i = 0; i < ns->geom.pgnum; i++) { in free_device()573 ns->geom.pgnum = divide(ns->geom.totsz, ns->geom.pgsz); in init_nandsim()574 ns->geom.totszoob = ns->geom.totsz + (uint64_t)ns->geom.pgnum * ns->geom.oobsz; in init_nandsim()665 printk("pages number: %u\n", ns->geom.pgnum); in init_nandsim()1585 if (action != ACTION_SECERASE && ns->regs.row >= ns->geom.pgnum) { in do_state_action()[all …]