Home
last modified time | relevance | path

Searched refs:pgsz (Results 1 – 3 of 3) sorted by relevance

/drivers/mtd/nand/
Dnandsim.c201 #define NS_RAW_OFFSET_OOB(ns) (NS_RAW_OFFSET(ns) + ns->geom.pgsz)
317 uint pgsz; /* NAND flash page size, bytes */ member
569 ns->geom.pgsz = mtd->writesize; in init_nandsim()
572 ns->geom.pgszoob = ns->geom.pgsz + ns->geom.oobsz; in init_nandsim()
573 ns->geom.pgnum = divide(ns->geom.totsz, ns->geom.pgsz); in init_nandsim()
578 ns->geom.pgsec = ns->geom.secsz / ns->geom.pgsz; in init_nandsim()
582 if (ns->geom.pgsz == 256) { in init_nandsim()
585 else if (ns->geom.pgsz == 512) { in init_nandsim()
589 } else if (ns->geom.pgsz == 2048) { in init_nandsim()
592 NS_ERR("init_nandsim: unknown page size %u\n", ns->geom.pgsz); in init_nandsim()
[all …]
/drivers/scsi/cxgb3i/
Dcxgb3i_ddp.c203 int cxgb3i_ddp_find_page_index(unsigned long pgsz) in cxgb3i_ddp_find_page_index() argument
208 if (pgsz == (1UL << ddp_page_shift[i])) in cxgb3i_ddp_find_page_index()
211 ddp_log_debug("ddp page size 0x%lx not supported.\n", pgsz); in cxgb3i_ddp_find_page_index()
524 int reply, unsigned long pgsz) in cxgb3i_setup_conn_pagesize() argument
526 int pgidx = cxgb3i_ddp_find_page_index(pgsz); in cxgb3i_setup_conn_pagesize()
Dcxgb3i_ddp.h302 unsigned long pgsz);
305 int cxgb3i_ddp_find_page_index(unsigned long pgsz);