Home
last modified time | relevance | path

Searched refs:writesize (Results 1 – 25 of 49) sorted by relevance

12

/u-boot/drivers/mtd/nand/raw/
A Dmxs_nand_spl.c126 mtd->writesize = le32_to_cpu(p->byte_per_page); in mxs_flash_onfi_ident()
132 chip->page_shift = ffs(mtd->writesize) - 1; in mxs_flash_onfi_ident()
181 chip->cmdfunc(mtd, NAND_CMD_READ0, mtd->writesize, page); in is_badblock()
213 nand_chip.oob_poi = nand_chip.buffers->databuf + mtd->writesize; in nand_init()
233 page_buf = malloc(mtd->writesize); in nand_spl_load_image()
238 page_off = offs & (mtd->writesize - 1); in nand_spl_load_image()
239 nand_page_per_block = mtd->erasesize / mtd->writesize; in nand_spl_load_image()
247 if (size > (mtd->writesize - page_off)) in nand_spl_load_image()
248 sz = (mtd->writesize - page_off); in nand_spl_load_image()
254 offs += mtd->writesize; in nand_spl_load_image()
[all …]
A Ddenali.c616 int writesize = mtd->writesize; in denali_oob_xfer() local
639 if (pos >= writesize) in denali_oob_xfer()
642 len = writesize - pos; in denali_oob_xfer()
674 int writesize = mtd->writesize; in denali_read_page_raw() local
694 if (pos >= writesize) in denali_read_page_raw()
697 len = writesize - pos; in denali_read_page_raw()
722 if (pos >= writesize) in denali_read_page_raw()
805 int writesize = mtd->writesize; in denali_write_page_raw() local
828 if (pos >= writesize) in denali_write_page_raw()
856 if (pos >= writesize) in denali_write_page_raw()
[all …]
A Dmxc_nand.c780 col += mtd->writesize;
782 if (col < mtd->writesize) {
832 col += mtd->writesize;
842 if (col < mtd->writesize) {
865 int m = mtd->writesize - col;
867 if (col >= mtd->writesize)
903 col += mtd->writesize;
911 if (col < mtd->writesize) {
915 mtd->writesize + (col & ~3);
929 int m = mtd->writesize - col;
[all …]
A Dmxs_nand.c182 block_mark_bit_offset = mtd->writesize * 8 - in mxs_nand_calc_ecc_layout_by_info()
642 nand->read_buf(mtd, buf, mtd->writesize); in mxs_nand_erased_page()
652 memset(buf, 0xff, mtd->writesize); in mxs_nand_erased_page()
706 (mtd->writesize + mtd->oobsize); in mxs_nand_ecc_read_page()
738 (mtd->writesize + mtd->oobsize); in mxs_nand_ecc_read_page()
824 memset(buf, 0xff, mtd->writesize); in mxs_nand_ecc_read_page()
1156 nand_info->writesize = mtd->writesize; in mxs_nand_setup_ecc()
1175 tmp = (mtd->writesize + mtd->oobsize) in mxs_nand_setup_ecc()
1504 mtd->writesize = 1024; in mxs_nand_mode_fcb_62bit()
1541 mtd->writesize = 1024; in mxs_nand_mode_fcb_40bit()
[all …]
A Dcortina_nand.c256 assert(mtd->writesize != 0); in ca_nand_command()
257 column += mtd->writesize; in ca_nand_command()
371 (mtd->writesize - 1) << 8); in ca_nand_command()
406 (mtd->writesize - 1) << 8); in ca_nand_command()
526 if (mtd->writesize == SZ_512) { in set_bus_width_page_size()
528 } else if (mtd->writesize == SZ_2K) { in set_bus_width_page_size()
530 } else if (mtd->writesize == SZ_4K) { in set_bus_width_page_size()
532 } else if (mtd->writesize == SZ_8K) { in set_bus_width_page_size()
536 mtd->writesize); in set_bus_width_page_size()
1215 switch (mtd->writesize) { in nand_config_flash_type()
[all …]
A Dnand_util.c279 if ((offset & (mtd->writesize - 1)) != 0) { in nand_get_lock_status()
457 l = (l + mtd->writesize - 1) / mtd->writesize; in drop_ffs()
458 l *= mtd->writesize; in drop_ffs()
485 size_t verlen = mtd->writesize + mtd->oobsize; in nand_verify_page_oob()
494 vops.oobbuf = vops.datbuf + mtd->writesize; in nand_verify_page_oob()
525 size_t verlen = mtd->writesize; in nand_verify()
534 verlen = min(mtd->writesize, (uint32_t)(ofs + len - verofs)); in nand_verify()
599 if ((offset & (mtd->writesize - 1)) != 0) { in nand_write_skip_bad()
717 if ((offset & (mtd->writesize - 1)) != 0) { in nand_read_skip_bad()
A Dfsl_elbc_nand.c308 ctrl->read_bytes = mtd->writesize + mtd->oobsize; in fsl_elbc_cmdfunc()
323 ctrl->read_bytes = mtd->writesize + mtd->oobsize; in fsl_elbc_cmdfunc()
409 if (column >= mtd->writesize) { in fsl_elbc_cmdfunc()
411 column -= mtd->writesize; in fsl_elbc_cmdfunc()
438 ctrl->index != mtd->writesize + mtd->oobsize) in fsl_elbc_cmdfunc()
496 unsigned int bufsize = mtd->writesize + mtd->oobsize; in fsl_elbc_write_buf()
602 fsl_elbc_read_buf(mtd, buf, mtd->writesize); in fsl_elbc_read_page()
618 fsl_elbc_write_buf(mtd, buf, mtd->writesize); in fsl_elbc_write_page()
633 fsl_elbc_write_buf(mtd, buf, mtd->writesize); in fsl_elbc_write_subpage()
758 if (mtd->writesize == 2048) { in fsl_elbc_chip_init()
[all …]
A Dnand_base.c383 ofs += mtd->writesize; in nand_block_bad()
427 ofs += mtd->writesize; in nand_default_block_markbad()
627 column -= mtd->writesize; in nand_command()
726 column += mtd->writesize; in nand_command_lp()
2527 if (mtd->writesize > 512) in nand_read_oob_syndrome()
3248 int bytes = mtd->writesize; in nand_do_write_ops()
4269 (mtd->writesize >> 9); in nand_decode_ext_id()
4322 && mtd->writesize == 512) { in nand_decode_id()
4360 (mtd->writesize == 2048 && in nand_decode_bbm_options()
5132 ecc->size, mtd->writesize); in nand_scan_tail()
[all …]
A Dnand_bbt.c203 from & ~mtd->writesize); in read_bbt()
207 from & ~mtd->writesize); in read_bbt()
338 buf += mtd->oobsize + mtd->writesize; in scan_read_oob()
339 len -= mtd->writesize; in scan_read_oob()
340 offs += mtd->writesize; in scan_read_oob()
375 ver_offs += mtd->writesize; in bbt_get_ver_offs()
397 mtd->writesize, td); in read_abs_bbts()
406 mtd->writesize, md); in read_abs_bbts()
439 offs += mtd->writesize; in scan_block_fast()
755 len = ALIGN(len, mtd->writesize); in write_bbt()
[all …]
A Dfsl_ifc_nand.c244 ctrl->index += mtd->writesize; in set_addr()
340 if (mtd->writesize > 512) { in fsl_ifc_do_read()
388 ctrl->read_bytes = mtd->writesize + mtd->oobsize; in fsl_ifc_cmdfunc()
404 ctrl->read_bytes = mtd->writesize + mtd->oobsize; in fsl_ifc_cmdfunc()
468 if (mtd->writesize > 512) { in fsl_ifc_cmdfunc()
507 if (column >= mtd->writesize) in fsl_ifc_cmdfunc()
515 if (column >= mtd->writesize) { in fsl_ifc_cmdfunc()
517 column -= mtd->writesize; in fsl_ifc_cmdfunc()
581 unsigned int bufsize = mtd->writesize + mtd->oobsize; in fsl_ifc_write_buf()
747 fsl_ifc_read_buf(mtd, buf, mtd->writesize); in fsl_ifc_read_page()
[all …]
A Dvf610_nfc.c390 column = mtd->writesize; in vf610_nfc_command()
399 trfr_sz += mtd->writesize + mtd->oobsize; in vf610_nfc_command()
471 l = min_t(uint, len, mtd->writesize + mtd->oobsize - c); in vf610_nfc_write_buf()
620 vf610_nfc_write_buf(mtd, buf, mtd->writesize); in vf610_nfc_write_page()
625 nfc->write_sz = mtd->writesize + mtd->oobsize; in vf610_nfc_write_page()
695 if (mtd->writesize + mtd->oobsize > PAGE_2K + OOB_MAX - 8) { in vf610_nfc_nand_init()
702 if (mtd->writesize != PAGE_2K && mtd->oobsize < 64) { in vf610_nfc_nand_init()
708 if (chip->ecc.size != mtd->writesize) { in vf610_nfc_nand_init()
A Dpxa3xx_nand.c898 info->buf_start += mtd->writesize; in prepare_set_command()
941 if (mtd->writesize > info->chunk_size) { in prepare_set_command()
952 (mtd->writesize + mtd->oobsize))) { in prepare_set_command()
966 if (mtd->writesize > info->chunk_size) { in prepare_set_command()
1257 chip->write_buf(mtd, buf, mtd->writesize); in pxa3xx_nand_write_page_hwecc()
1271 chip->read_buf(mtd, buf, mtd->writesize); in pxa3xx_nand_read_page_hwecc()
1301 if (is_buf_blank(buf, mtd->writesize)) in pxa3xx_nand_read_page_hwecc()
1733 ecc_step, mtd->writesize); in pxa3xx_nand_scan()
1742 if (mtd->writesize > info->chunk_size) { in pxa3xx_nand_scan()
1754 if (mtd->writesize >= 2048) in pxa3xx_nand_scan()
[all …]
A Dtegra_nand.c276 assert(mtd->writesize != 0); in nand_command()
277 column += mtd->writesize; in nand_command()
483 if (our_mtd->writesize == 512) in set_bus_width_page_size()
485 else if (our_mtd->writesize == 2048) in set_bus_width_page_size()
487 else if (our_mtd->writesize == 4096) in set_bus_width_page_size()
491 our_mtd->writesize); in set_bus_width_page_size()
847 chip->cmdfunc(mtd, NAND_CMD_SEQIN, mtd->writesize, page); in nand_write_oob()
973 nand->ecc.size = our_mtd->writesize; in tegra_probe()
A Docteontx_nand.c891 page_size = nand->mtd.writesize; in ndf_build_pre_cmd()
1271 mtd->writesize + mtd->oobsize); in octeontx_nand_cmdfunc()
1273 if (rc < mtd->writesize + mtd->oobsize) in octeontx_nand_cmdfunc()
1665 chip->write_buf(mtd, buf, mtd->writesize); in octeontx_nand_hw_bch_write_page()
1708 chip->write_buf(mtd, buf, mtd->writesize); in octeontx_nand_write_page_raw()
1754 chip->read_buf(mtd, buf, mtd->writesize); in octeontx_nand_read_page_raw()
1775 int nsteps = mtd->writesize / ecc->size; in octeontx_nand_calc_bch_ecc_strength()
1871 nsteps = mtd->writesize / ecc->size; in octeontx_nfc_chip_sizing()
1872 else if (mtd->writesize > def_ecc_size && in octeontx_nfc_chip_sizing()
1874 nsteps = mtd->writesize / def_ecc_size; in octeontx_nfc_chip_sizing()
[all …]
A Dsunxi_nand.c924 offset + mtd->writesize, -1); in sunxi_nfc_hw_ecc_read_extra_oob()
932 *cur_off = mtd->oobsize + mtd->writesize; in sunxi_nfc_hw_ecc_read_extra_oob()
1005 offset + mtd->writesize, -1); in sunxi_nfc_hw_ecc_write_extra_oob()
1009 *cur_off = mtd->oobsize + mtd->writesize; in sunxi_nfc_hw_ecc_write_extra_oob()
1030 oob_off + mtd->writesize, in sunxi_nfc_hw_ecc_read_page()
1068 oob, oob_off + mtd->writesize, in sunxi_nfc_hw_ecc_read_subpage()
1096 oob_off + mtd->writesize, in sunxi_nfc_hw_ecc_write_page()
1130 oob_off + mtd->writesize, in sunxi_nfc_hw_ecc_write_subpage()
1443 nsectors = mtd->writesize / ecc->size; in sunxi_nand_hw_common_ecc_ctrl_init()
1487 nsectors = mtd->writesize / ecc->size; in sunxi_nand_hw_ecc_ctrl_init()
[all …]
A Dzynq_nand.c475 chip->cmdfunc(mtd, NAND_CMD_SEQIN, mtd->writesize, page); in zynq_nand_write_oob()
508 chip->read_buf(mtd, buf, mtd->writesize); in zynq_nand_read_page_raw()
525 chip->read_buf(mtd, buf, mtd->writesize); in zynq_nand_read_page_raw_nooob()
556 chip->write_buf(mtd, buf, mtd->writesize); in zynq_nand_write_page_raw()
826 if ((mtd->writesize > ZYNQ_NAND_ECC_SIZE) && in zynq_nand_cmd_function()
828 column += mtd->writesize; in zynq_nand_cmd_function()
893 if (mtd->writesize > ZYNQ_NAND_ECC_SIZE) { in zynq_nand_cmd_function()
1202 nand_chip->ecc.size = mtd->writesize; in zynq_nand_probe()
1229 switch (mtd->writesize) { in zynq_nand_probe()
/u-boot/arch/arm/mach-imx/
A Dcmd_nandbcb.c270 maxsize = ((u32)(maxsize + mtd->writesize - 1)) / (u32)mtd->writesize in nandbcb_set_boot_config()
271 * mtd->writesize; in nandbcb_set_boot_config()
443 fcb->pagesize = mtd->writesize; in fill_fcb()
543 .len = mtd->writesize, in read_fcb()
645 mtd->writesize, in write_fcb()
646 .len = mtd->writesize, in write_fcb()
698 to = off + 4 * mtd->writesize; in read_dbbt()
699 size = mtd->writesize; in read_dbbt()
724 size = mtd->writesize; in write_dbbt()
1094 mtd->writesize); in do_nandbcb_bcbonly()
[all …]
/u-boot/board/armltd/integrator/
A Dlowlevel_init.S132 b writesize
138 b writesize
144 b writesize
150 b writesize
158 writesize: label
/u-boot/cmd/
A Dmtd.c38 do_div(len, mtd->writesize); in mtd_len_to_pages()
45 return !do_div(size, mtd->writesize); in mtd_is_aligned_with_min_io_size()
80 u64 data_off = page * mtd->writesize; in mtd_dump_device_buf()
83 mtd->writesize, start_off + data_off); in mtd_dump_device_buf()
85 mtd->writesize, start_off + data_off); in mtd_dump_device_buf()
234 io_op->retlen = mtd->writesize; in mtd_special_write_oob()
289 mtd->writesize); in do_mtd_io()
294 default_len = dump ? mtd->writesize : mtd->size; in do_mtd_io()
297 len = round_up(len, mtd->writesize); in do_mtd_io()
299 mtd->writesize, len); in do_mtd_io()
[all …]
A Dnand.c55 off = last + mtd->writesize; in nand_dump()
71 off &= ~(mtd->writesize - 1); in nand_dump()
77 ops.len = mtd->writesize; in nand_dump()
89 i = mtd->writesize >> 4; in nand_dump()
313 env_set_hex("nand_writesize", mtd->writesize); in nand_print_and_set_info()
327 .oobbuf = ((u8 *)addr) + mtd->writesize, in raw_access()
328 .len = mtd->writesize, in raw_access()
347 addr += mtd->writesize + mtd->oobsize; in raw_access()
348 off += mtd->writesize; in raw_access()
590 if (pagecount * mtd->writesize > size) { in do_nand()
[all …]
A Donenand.c112 .len = mtd->writesize, in onenand_write_oneblock_withoob()
117 for (page = 0; page < (mtd->erasesize / mtd->writesize); page ++) { in onenand_write_oneblock_withoob()
119 buf += mtd->writesize; in onenand_write_oneblock_withoob()
125 to += mtd->writesize; in onenand_write_oneblock_withoob()
142 if ((to & (mtd->writesize - 1)) != 0) { in onenand_block_write()
312 datbuf = malloc(mtd->writesize + mtd->oobsize); in onenand_dump()
318 off &= ~(mtd->writesize - 1); in onenand_dump()
323 ops.len = mtd->writesize; in onenand_dump()
334 i = mtd->writesize >> 4; in onenand_dump()
/u-boot/drivers/mtd/onenand/
A Donenand_base.c524 return mtd->writesize; in onenand_bufferram_offset()
627 if (addr & this->writesize) in onenand_get_2x_blockpage()
862 int writesize = this->writesize; in onenand_read_ops_nolock() local
902 column = from & (writesize - 1); in onenand_read_ops_nolock()
904 thislen = writesize - column; in onenand_read_ops_nolock()
1078 from += mtd->writesize; in onenand_read_oob_nolock()
1269 from += this->writesize; in onenand_bbt_read_oob()
1632 to += mtd->writesize; in onenand_write_oob_nolock()
2626 mtd->writesize = in onenand_probe()
2630 mtd->writesize <<= 1; in onenand_probe()
[all …]
A Donenand_bbt.c103 from + j * mtd->writesize + in create_bbt()
111 (&buf[j * scanlen], scanlen, mtd->writesize, bd)) { in create_bbt()
/u-boot/env/
A Donenand.c51 if (mtd->writesize) in env_onenand_load()
56 mtd->writesize = MAX_ONENAND_PAGESIZE; in env_onenand_load()
/u-boot/drivers/dfu/
A Ddfu_mtd.c101 if (has_pages && io_op.len > mtd->writesize) in mtd_block_op()
102 io_op.len = mtd->writesize; in mtd_block_op()
145 if (has_pages && io_op.len > mtd->writesize) in mtd_block_op()
146 io_op.len = mtd->writesize; in mtd_block_op()

Completed in 84 milliseconds

12