Home
last modified time | relevance | path

Searched refs:sectorsize (Results 1 – 5 of 5) sorted by relevance

/drivers/mtd/nand/raw/atmel/
Dpmecc.c226 if (req->ecc.sectorsize == 512) { in atmel_pmecc_create_gf_tables()
260 if (req->ecc.sectorsize == 512) in atmel_pmecc_get_gf_tables()
289 if (req->ecc.sectorsize == ATMEL_PMECC_SECTOR_SIZE_AUTO) { in atmel_pmecc_prepare_user_req()
294 req->ecc.sectorsize = 1024; in atmel_pmecc_prepare_user_req()
296 req->ecc.sectorsize = 512; in atmel_pmecc_prepare_user_req()
299 if (req->ecc.sectorsize != 512 && req->ecc.sectorsize != 1024) in atmel_pmecc_prepare_user_req()
302 if (req->pagesize % req->ecc.sectorsize) in atmel_pmecc_prepare_user_req()
305 req->ecc.nsectors = req->pagesize / req->ecc.sectorsize; in atmel_pmecc_prepare_user_req()
316 nbytes = DIV_ROUND_UP(strength * fls(8 * req->ecc.sectorsize), in atmel_pmecc_prepare_user_req()
400 if (req->ecc.sectorsize == 1024) in atmel_pmecc_create_user()
[all …]
Dpmecc.h47 int sectorsize; member
Dnand-controller.c1150 req.ecc.sectorsize = chip->ecc.size; in atmel_nand_pmecc_init()
1152 req.ecc.sectorsize = requirements->step_size; in atmel_nand_pmecc_init()
1154 req.ecc.sectorsize = ATMEL_PMECC_SECTOR_SIZE_AUTO; in atmel_nand_pmecc_init()
1172 chip->ecc.size = req.ecc.sectorsize; in atmel_nand_pmecc_init()
/drivers/md/
Ddm-log-writes.c86 __le32 sectorsize; member
107 u32 sectorsize; member
240 lc->sectorsize - entrylen - datalen); in write_metadata()
243 ret = bio_add_page(bio, page, lc->sectorsize, 0); in write_metadata()
244 if (ret != lc->sectorsize) { in write_metadata()
282 pg_sectorlen = ALIGN(pg_datalen, lc->sectorsize); in write_inline_data()
408 super.sectorsize = cpu_to_le32(lc->sectorsize); in log_super()
550 lc->sectorsize = bdev_logical_block_size(lc->dev->bdev); in log_writes_ctr()
551 lc->sectorshift = ilog2(lc->sectorsize); in log_writes_ctr()
566 lc->next_sector = lc->sectorsize >> SECTOR_SHIFT; in log_writes_ctr()
[all …]
/drivers/mtd/devices/
Dspear_smi.c101 unsigned long sectorsize; member
111 .sectorsize = ssize, \
894 flash->mtd.erasesize = flash_devices[flash_index].sectorsize; in spear_smi_setup_banks()