/u-boot/include/linux/mtd/ |
H A D | onenand.h | 56 * @param writesize [INTERN] a real page size 87 unsigned int writesize; member in struct:onenand_chip
|
/u-boot/arch/arm/mach-imx/ |
H A D | cmd_nandbcb.c | 173 #define CONV_TO_PAGES(x) ((u32)(x) / (u32)(mtd->writesize)) 254 g_pages_per_stride = mtd->erasesize / mtd->writesize; 256 g_boot_search_stride = mtd->writesize * g_pages_per_stride; 258 boot_cfg->stride_size_in_byte = g_boot_search_stride * mtd->writesize; 262 boot_cfg->search_area_size_in_bytes / mtd->writesize; 271 maxsize = ((u32)(maxsize + mtd->writesize - 1)) / (u32)mtd->writesize 272 * mtd->writesize; 444 fcb->pagesize = mtd->writesize; 445 fcb->oob_pagesize = mtd->writesize [all...] |
/u-boot/board/armltd/integrator/ |
H A D | lowlevel_init.S | 127 b writesize 133 b writesize 139 b writesize 145 b writesize 153 writesize: label
|
/u-boot/cmd/ |
H A D | mtd.c | 40 do_div(len, mtd->writesize); 47 return !do_div(size, mtd->writesize); 82 u64 data_off = (u64)page * mtd->writesize; 85 mtd->writesize, start_off + data_off); 87 mtd->writesize, start_off + data_off); 170 printf(" - min I/O: 0x%x bytes\n", mtd->writesize); 458 io_op->retlen = mtd->writesize; 513 mtd->writesize); 518 default_len = dump ? mtd->writesize : mtd->size; 521 len = round_up(len, mtd->writesize); [all...] |
H A D | nand.c | 60 int pages_per_blk = mtd->erasesize / mtd->writesize; 76 datbuf[page] = malloc(mtd->writesize + mtd->oobsize); 94 ops.oobbuf = datbuf[page] + mtd->writesize; 95 ops.len = mtd->writesize; 105 block_off += mtd->writesize; 124 data = datbuf[block_off / mtd->writesize][block_off % mtd->writesize]; 126 datbuf[block_off / mtd->writesize][block_off % mtd->writesize] = data; 140 ops.oobbuf = datbuf[page] + mtd->writesize; [all...] |
H A D | onenand.c | 112 .len = mtd->writesize, 117 for (page = 0; page < (mtd->erasesize / mtd->writesize); page ++) { 119 buf += mtd->writesize; 125 to += mtd->writesize; 142 if ((to & (mtd->writesize - 1)) != 0) { 307 datbuf = malloc(mtd->writesize + mtd->oobsize); 313 off &= ~(mtd->writesize - 1); 318 ops.len = mtd->writesize; 329 i = mtd->writesize >> 4;
|
/u-boot/drivers/block/ |
H A D | rkmtd.c | 132 off &= ~(mtd->writesize - 1); 138 ops.len = mtd->writesize; 157 off &= ~(mtd->writesize - 1); 163 ops.len = mtd->writesize; 182 off &= ~(mtd->writesize - 1); 254 off + page * plat->mtd->writesize, 286 memset(plat->datbuf, 0xff, plat->mtd->writesize); 296 memset(plat->datbuf, 0xff, plat->mtd->writesize); 307 off + page * plat->mtd->writesize, 341 memset(plat->datbuf, 0xff, plat->mtd->writesize); [all...] |
/u-boot/drivers/dfu/ |
H A D | dfu_mtd.c | 128 if (has_pages && io_op.len > mtd->writesize) 129 io_op.len = mtd->writesize; 162 io_op.retlen = mtd->writesize; 178 if (has_pages && io_op.len > mtd->writesize) 179 io_op.len = mtd->writesize;
|
/u-boot/drivers/fastboot/ |
H A D | fb_nand.c | 197 sparse.blksz = mtd->writesize;
|
/u-boot/drivers/fwu-mdata/ |
H A D | raw_mtd.c | 71 len = round_up(size, mtd->writesize);
|
/u-boot/drivers/mtd/ |
H A D | altera_qspi.c | 321 mtd->writesize = 1; 322 mtd->writebufsize = mtd->writesize;
|
H A D | cfi_mtd.c | 230 mtd->writesize = 1; 231 mtd->writebufsize = mtd->writesize;
|
H A D | mtdconcat.c | 179 if (mtd->writesize > 1) { 181 if (do_div(__to, mtd->writesize) || (total_len % mtd->writesize)) 717 concat->mtd.writesize = subdev[0]->writesize; 786 if (concat->mtd.writesize != subdev[i]->writesize ||
|
H A D | mtdcore.c | 282 return snprintf(buf, PAGE_SIZE, "%lu\n", (unsigned long)mtd->writesize); 285 static DEVICE_ATTR(writesize, S_IRUGO, mtd_writesize_show, NULL); 291 unsigned int subpagesize = mtd->writesize >> mtd->subpage_sft; 433 BUG_ON(mtd->writesize == 0); 454 if (is_power_of_2(mtd->writesize)) 455 mtd->writesize_shift = ffs(mtd->writesize) - 1; 1738 * the MTD device's min. I/O unit, i.e. the "mtd->writesize" value. 1751 size_t min_alloc = max_t(size_t, mtd->writesize, PAGE_SIZE); 1762 *size = ALIGN(*size, mtd->writesize);
|
H A D | mtdpart.c | 242 if (sz < parent->writesize || do_div(sz, parent->writesize)) { 244 parent->writesize); 583 slave->writesize = master->writesize;
|
/u-boot/drivers/mtd/nand/ |
H A D | core.c | 230 mtd->writesize = memorg->pagesize;
|
/u-boot/drivers/mtd/nand/raw/ |
H A D | am335x_spl_bch.c | 223 return nand_to_mtd(&nand_chip)->writesize;
|
H A D | arasan_nfc.c | 463 status = arasan_nand_read_page(mtd, buf, (mtd->writesize)); 522 u32 size = mtd->writesize; 633 chip->cmdfunc(mtd, NAND_CMD_SEQIN, mtd->writesize, page); 680 switch (mtd->writesize) { 1076 (mtd->writesize > 512)) { 1077 column += mtd->writesize; 1178 if ((ecc_matrix[i].pagesize == mtd->writesize) && 1193 eccaddr = mtd->writesize + mtd->oobsize - 1288 nand_chip->ecc.size = mtd->writesize;
|
H A D | atmel_nand.c | 594 chip->write_buf(mtd, (u8 *)buf, mtd->writesize); 896 nand->ecc.size = mtd->writesize; 899 switch (mtd->writesize) { 906 host->pmecc_sector_number = mtd->writesize / sector_size; 1058 mtd->writesize + eccpos[0], -1); 1074 chip->cmdfunc(mtd, NAND_CMD_RNDOUT, mtd->writesize, -1); 1175 nand->ecc.size = mtd->writesize; 1178 switch (mtd->writesize) { 1438 mtd->writesize = CONFIG_SYS_NAND_PAGE_SIZE; 1457 return nand_to_mtd(&nand_chip)->writesize; [all...] |
H A D | cortina_nand.c | 251 * here before mtd->writesize is initialized. 256 assert(mtd->writesize != 0); 257 column += mtd->writesize; 349 if (mtd->writesize > (REG_DATA_COUNT_512_DATA >> 8)) { 371 (mtd->writesize - 1) << 8); 406 (mtd->writesize - 1) << 8); 526 if (mtd->writesize == SZ_512) { 528 } else if (mtd->writesize == SZ_2K) { 530 } else if (mtd->writesize == SZ_4K) { 532 } else if (mtd->writesize [all...] |
H A D | denali.c | 615 int writesize = mtd->writesize; local 622 size_t size = writesize + oobsize; 626 chip->cmdfunc(mtd, start_cmd, writesize, page); 638 if (pos >= writesize) 640 else if (pos + len > writesize) 641 len = writesize - pos; 651 chip->cmdfunc(mtd, rnd_cmd, writesize + oob_skip, -1); 673 int writesize = mtd->writesize; local 804 int writesize = mtd->writesize; local [all...] |
H A D | fsl_elbc_nand.c | 312 ctrl->read_bytes = mtd->writesize + mtd->oobsize; 335 ctrl->read_bytes = mtd->writesize + mtd->oobsize; 421 if (column >= mtd->writesize) { 423 column -= mtd->writesize; 450 ctrl->index != mtd->writesize + mtd->oobsize) 508 unsigned int bufsize = mtd->writesize + mtd->oobsize; 614 fsl_elbc_read_buf(mtd, buf, mtd->writesize); 630 fsl_elbc_write_buf(mtd, buf, mtd->writesize); 645 fsl_elbc_write_buf(mtd, buf, mtd->writesize); 779 if (mtd->writesize [all...] |
H A D | fsl_ifc_nand.c | 235 ctrl->addr = priv->vbase + buf_num * (mtd->writesize * 2); 240 ctrl->index += mtd->writesize; 336 if (mtd->writesize > 512) { 384 ctrl->read_bytes = mtd->writesize + mtd->oobsize; 400 ctrl->read_bytes = mtd->writesize + mtd->oobsize; 464 if (mtd->writesize > 512) { 503 if (column >= mtd->writesize) 511 if (column >= mtd->writesize) { 513 column -= mtd->writesize; 577 unsigned int bufsize = mtd->writesize [all...] |
/u-boot/drivers/mtd/nand/raw/atmel/ |
H A D | nand-controller.c | 458 ATMEL_HSMC_NFC_CFG_PAGESIZE(mtd->writesize) | 576 memcpy_toio(nc->sram.virt, buf, mtd->writesize); 579 memcpy_toio(nc->sram.virt + mtd->writesize, chip->oob_poi, 594 memcpy_fromio(buf, nc->sram.virt, mtd->writesize); 597 memcpy_fromio(chip->oob_poi, nc->sram.virt + mtd->writesize, 615 if (mtd->writesize > 512) 751 atmel_nand_write_buf(mtd, buf, mtd->writesize); 793 atmel_nand_read_buf(mtd, buf, mtd->writesize); 916 if (mtd->writesize > 512) 1040 req.pagesize = mtd->writesize; [all...] |
/u-boot/drivers/mtd/nand/raw/brcmnand/ |
H A D | brcmnand.c | 1982 mtd->writesize >> FC_SHIFT, (u32 *)buf, oob); 1996 mtd->writesize >> FC_SHIFT, (u32 *)buf, oob); 2005 mtd->writesize >> FC_SHIFT, 2016 mtd->writesize >> FC_SHIFT, 2027 unsigned int i, j, trans = mtd->writesize >> FC_SHIFT; 2045 mtd->writesize, CMD_PROGRAM_PAGE)) 2268 static inline int get_blk_adr_bytes(u64 size, u32 writesize) argument 2270 return ALIGN(ilog2(size) - ilog2(writesize), 8) >> 3; 2297 (mtd->writesize >> FC_SHIFT); 2307 mtd->oobsize = cfg->spare_area_size * (mtd->writesize >> FC_SHIF [all...] |