Searched refs:writesize (Results 1 - 25 of 65) sorted by relevance

123

/u-boot/drivers/mtd/nand/raw/
H A Dmxs_nand_spl.c139 mtd->writesize = le32_to_cpu(p->byte_per_page);
140 mtd->erasesize = le32_to_cpu(p->pages_per_block) * mtd->writesize;
145 chip->page_shift = ffs(mtd->writesize) - 1;
152 debug("writesize=%d (>>%d)\n", mtd->writesize, chip->page_shift);
194 chip->cmdfunc(mtd, NAND_CMD_READ0, mtd->writesize, page);
226 nand_chip.oob_poi = nand_chip.buffers->databuf + mtd->writesize;
246 page_buf = malloc(mtd->writesize);
253 page = (offs % mtd->erasesize) / mtd->writesize;
254 page_offset = offs % mtd->writesize;
[all...]
H A Dnand_amd.c35 mtd->writesize == 512) {
H A Dnand_samsung.c32 mtd->writesize = 2048 << (extid & 0x03);
96 if (mtd->writesize > 512)
H A Ddenali.c616 int writesize = mtd->writesize; local
623 size_t size = writesize + oobsize;
627 chip->cmdfunc(mtd, start_cmd, writesize, page);
639 if (pos >= writesize)
641 else if (pos + len > writesize)
642 len = writesize - pos;
652 chip->cmdfunc(mtd, rnd_cmd, writesize + oob_skip, -1);
674 int writesize = mtd->writesize; local
805 int writesize = mtd->writesize; local
[all...]
H A Dmxs_nand.c136 i = (mtd->writesize * 8 - MXS_NAND_METADATA_SIZE * 8) /
140 j = (mtd->writesize * 8 - MXS_NAND_METADATA_SIZE * 8) -
185 geo->ecc_chunk_count = mtd->writesize / geo->ecc_chunkn_size;
188 block_mark_bit_offset = mtd->writesize * 8 -
219 geo->ecc_chunk_count = mtd->writesize / geo->ecc_chunkn_size;
237 corr = mtd->writesize * geo->ecc_strength /
239 ds_corr = mtd->writesize * chip->ecc_strength_ds /
246 block_mark_bit_offset = mtd->writesize * 8 -
275 geo->ecc_chunk_count = mtd->writesize / geo->ecc_chunkn_size;
297 geo->ecc_chunk_count = (mtd->writesize / ge
[all...]
H A Dnand_toshiba.c39 mtd->oobsize = 32 * mtd->writesize >> 9;
H A Dmxc_nand.c400 chip->cmdfunc(mtd, NAND_CMD_READOOB, mtd->writesize, page);
424 mtd->writesize + chip->ecc.prepad, page);
460 host->col_addr = mtd->writesize + n * eccpitch;
508 host->col_addr = mtd->writesize + n * eccpitch;
536 chip->cmdfunc(mtd, NAND_CMD_READOOB, mtd->writesize, page);
540 host->col_addr = mtd->writesize +
559 chip->cmdfunc(mtd, NAND_CMD_SEQIN, mtd->writesize, page);
594 host->col_addr = mtd->writesize + n * eccpitch;
638 host->col_addr = mtd->writesize + n * eccpitch;
667 int subpages = mtd->writesize / nand_chi
[all...]
H A Dmt7621_nand_spl.c168 chksz = min(mtd->writesize - col, (uint32_t)size);
170 if (unlikely(chksz < mtd->writesize)) {
208 return nfc_dev.nand.mtd.writesize;
233 mtd->writesize_shift = ffs(mtd->writesize) - 1;
237 buffer = malloc(mtd->writesize);
H A Dcortina_nand.c252 * here before mtd->writesize is initialized.
257 assert(mtd->writesize != 0);
258 column += mtd->writesize;
350 if (mtd->writesize > (REG_DATA_COUNT_512_DATA >> 8)) {
372 (mtd->writesize - 1) << 8);
407 (mtd->writesize - 1) << 8);
527 if (mtd->writesize == SZ_512) {
529 } else if (mtd->writesize == SZ_2K) {
531 } else if (mtd->writesize == SZ_4K) {
533 } else if (mtd->writesize
[all...]
H A Dnand_hynix.c30 mtd->writesize = 2048 << (extid & 0x03);
H A Dnand_micron.c79 if (mtd->writesize == 2048)
H A Dnand_util.c281 if ((offset & (mtd->writesize - 1)) != 0) {
309 * page size mtd->writesize)
459 l = (l + mtd->writesize - 1) / mtd->writesize;
460 l *= mtd->writesize;
487 size_t verlen = mtd->writesize + mtd->oobsize;
496 vops.oobbuf = vops.datbuf + mtd->writesize;
527 size_t verlen = mtd->writesize;
536 verlen = min(mtd->writesize, (uint32_t)(ofs + len - verofs));
599 if ((offset & (mtd->writesize
[all...]
H A Dnand_base.c324 ofs += mtd->erasesize - mtd->writesize;
347 ofs += mtd->writesize;
384 ofs += mtd->erasesize - mtd->writesize;
391 ofs += mtd->writesize;
602 if (column >= mtd->writesize) {
604 column -= mtd->writesize;
703 column += mtd->writesize;
1092 if (offset_in_page + len > mtd->writesize + mtd->oobsize)
1154 if (offset_in_page + len > mtd->writesize + mtd->oobsize)
1219 if (offset_in_page + len > mtd->writesize
[all...]
H A Dnand_bbt.c203 from & ~mtd->writesize);
207 from & ~mtd->writesize);
327 ops.len = min(len, (size_t)mtd->writesize);
338 buf += mtd->oobsize + mtd->writesize;
339 len -= mtd->writesize;
340 offs += mtd->writesize;
375 ver_offs += mtd->writesize;
397 mtd->writesize, td);
406 mtd->writesize, md);
439 offs += mtd->writesize;
[all...]
H A Dvf610_nfc.c391 column = mtd->writesize;
400 trfr_sz += mtd->writesize + mtd->oobsize;
472 l = min_t(uint, len, mtd->writesize + mtd->oobsize - c);
621 vf610_nfc_write_buf(mtd, buf, mtd->writesize);
626 nfc->write_sz = mtd->writesize + mtd->oobsize;
696 if (mtd->writesize + mtd->oobsize > PAGE_2K + OOB_MAX - 8) {
703 if (mtd->writesize != PAGE_2K && mtd->oobsize < 64) {
709 if (chip->ecc.size != mtd->writesize) {
/u-boot/board/armltd/integrator/
H A Dlowlevel_init.S127 b writesize
133 b writesize
139 b writesize
145 b writesize
153 writesize: label
/u-boot/arch/arm/mach-imx/
H A Dcmd_nandbcb.c174 #define CONV_TO_PAGES(x) ((u32)(x) / (u32)(mtd->writesize))
255 g_pages_per_stride = mtd->erasesize / mtd->writesize;
257 g_boot_search_stride = mtd->writesize * g_pages_per_stride;
259 boot_cfg->stride_size_in_byte = g_boot_search_stride * mtd->writesize;
263 boot_cfg->search_area_size_in_bytes / mtd->writesize;
272 maxsize = ((u32)(maxsize + mtd->writesize - 1)) / (u32)mtd->writesize
273 * mtd->writesize;
445 fcb->pagesize = mtd->writesize;
446 fcb->oob_pagesize = mtd->writesize
[all...]
/u-boot/cmd/
H A Dnand.c61 int pages_per_blk = mtd->erasesize / mtd->writesize;
77 datbuf[page] = malloc(mtd->writesize + mtd->oobsize);
95 ops.oobbuf = datbuf[page] + mtd->writesize;
96 ops.len = mtd->writesize;
106 block_off += mtd->writesize;
125 data = datbuf[block_off / mtd->writesize][block_off % mtd->writesize];
127 datbuf[block_off / mtd->writesize][block_off % mtd->writesize] = data;
141 ops.oobbuf = datbuf[page] + mtd->writesize;
[all...]
H A Dmtd.c41 do_div(len, mtd->writesize);
48 return !do_div(size, mtd->writesize);
83 u64 data_off = (u64)page * mtd->writesize;
86 mtd->writesize, start_off + data_off);
88 mtd->writesize, start_off + data_off);
171 printf(" - min I/O: 0x%x bytes\n", mtd->writesize);
459 io_op->retlen = mtd->writesize;
514 mtd->writesize);
519 default_len = dump ? mtd->writesize : mtd->size;
522 len = round_up(len, mtd->writesize);
[all...]
H A Donenand.c113 .len = mtd->writesize,
118 for (page = 0; page < (mtd->erasesize / mtd->writesize); page ++) {
120 buf += mtd->writesize;
126 to += mtd->writesize;
143 if ((to & (mtd->writesize - 1)) != 0) {
308 datbuf = malloc(mtd->writesize + mtd->oobsize);
314 off &= ~(mtd->writesize - 1);
319 ops.len = mtd->writesize;
330 i = mtd->writesize >> 4;
/u-boot/env/
H A Donenand.c51 if (mtd->writesize)
56 mtd->writesize = MAX_ONENAND_PAGESIZE;
/u-boot/drivers/mtd/onenand/
H A Donenand_base.c525 return mtd->writesize;
628 if (addr & this->writesize)
839 this->command(mtd, FLEXONENAND_CMD_RECOVER_LSB, addr, this->writesize);
863 int writesize = this->writesize; local
892 this->command(mtd, ONENAND_CMD_READ, from, writesize);
902 thislen = min_t(int, writesize, len - read);
903 column = from & (writesize - 1);
904 if (column + thislen > writesize)
905 thislen = writesize
[all...]
H A Donenand_bbt.c104 from + j * mtd->writesize +
112 (&buf[j * scanlen], scanlen, mtd->writesize, bd)) {
/u-boot/drivers/dfu/
H A Ddfu_mtd.c129 if (has_pages && io_op.len > mtd->writesize)
130 io_op.len = mtd->writesize;
163 io_op.retlen = mtd->writesize;
179 if (has_pages && io_op.len > mtd->writesize)
180 io_op.len = mtd->writesize;
/u-boot/include/
H A Dmxs_nand.h80 u32 writesize; member in struct:mxs_nand_info

Completed in 133 milliseconds

123