/u-boot/drivers/mtd/nand/raw/ |
H A D | cortina_nand.c | 236 * @param page_addr the page address for this command, -1 if none 504 * Set up NAND bus width and page size 536 debug("%s: Unsupported page size %d\n", __func__, 589 const u8 *buf, int page, unsigned int addr) 661 pr_err(" Page:%x step:%d\n", page, step); 686 int page) 724 * @param page page number 731 const u8 *buf, int page, int with_ecc, int is_writing) 790 ext_addr = ((page << chi 588 ca_do_bch_decode(struct mtd_info *mtd, struct nand_chip *chip, const u8 *buf, int page, unsigned int addr) argument 685 ca_do_bch_encode(struct mtd_info *mtd, struct nand_chip *chip, int page) argument 730 nand_rw_page(struct mtd_info *mtd, struct nand_chip *chip, const u8 *buf, int page, int with_ecc, int is_writing) argument 958 nand_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, uint8_t *buf, int oob_required, int page) argument 986 nand_write_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, const uint8_t *buf, int oob_required, int page) argument 1015 nand_read_page_raw(struct mtd_info *mtd, struct nand_chip *chip, uint8_t *buf, int oob_required, int page) argument 1043 nand_write_page_raw(struct mtd_info *mtd, struct nand_chip *chip, const uint8_t *buf, int oob_required, int page) argument 1073 nand_rw_oob(struct mtd_info *mtd, struct nand_chip *chip, int page, int with_ecc, int is_writing) argument 1115 nand_read_oob(struct mtd_info *mtd, struct nand_chip *chip, int page) argument 1143 nand_write_oob(struct mtd_info *mtd, struct nand_chip *chip, int page) argument [all...] |
H A D | davinci_nand.c | 358 * nand_davinci_write_page - write one page 363 * @page: page number to write 369 int page, int raw) 376 if (page < KEYSTONE_NAND_MAX_RBL_PAGE) { 382 chip->cmdfunc(mtd, NAND_CMD_SEQIN, 0x00, page); 386 oob_required, page); 389 oob_required, page); 407 if (page < KEYSTONE_NAND_MAX_RBL_PAGE) { 416 * nand_davinci_read_page_hwecc - hardware ECC based page rea 366 nand_davinci_write_page(struct mtd_info *mtd, struct nand_chip *chip, uint32_t offset, int data_len, const uint8_t *buf, int oob_required, int page, int raw) argument 425 nand_davinci_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, uint8_t *buf, int oob_required, int page) argument [all...] |
H A D | nand_util.c | 256 * nand_get_lock_status: - query current lock state from one page of NAND 260 * @param offset page address to query (must be page-aligned!) 265 * NAND_LOCK_STATUS_TIGHT: page in tight state 266 * NAND_LOCK_STATUS_UNLOCK: page unlocked 273 int page; local 284 "nand page!\n"); 290 page = (int)(offset >> chip->page_shift); 291 chip->cmdfunc(mtd, NAND_CMD_LOCK_STATUS, -1, page & chip->pagemask); 309 * page siz 320 int page; local [all...] |
H A D | arasan_nfc.c | 24 u32 page; member in struct:nand_config 186 * 2K byte page 195 * 4K byte page 204 * 8K byte page 213 * 16K byte page 460 struct nand_chip *chip, u8 *buf, int oob_required, int page) 467 chip->ecc.read_oob(mtd, chip, page); 516 int page) 614 chip->ecc.write_oob(mtd, chip, nand->page); 620 int page) 459 arasan_nand_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, u8 *buf, int oob_required, int page) argument 514 arasan_nand_write_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, const u8 *buf, int oob_required, int page) argument 619 arasan_nand_read_oob(struct mtd_info *mtd, struct nand_chip *chip, int page) argument 628 arasan_nand_write_oob(struct mtd_info *mtd, struct nand_chip *chip, int page) argument 713 u32 reg_val, page; local 811 u32 reg_val, page; local 923 u32 reg_val, addr_cycles, page; local [all...] |
H A D | zynq_nand.c | 60 (0x1 << 4) | /* ECC read at end of page */ \ 189 /* Define default oob placement schemes for large and small page devices */ 321 * @data: Pointer to the page data 388 * @buf: Pointer to the page data 439 * @page: page number to read 443 int page) 449 chip->cmdfunc(mtd, NAND_CMD_READOOB, 0, page); 467 * @page: page numbe 442 zynq_nand_read_oob(struct mtd_info *mtd, struct nand_chip *chip, int page) argument 469 zynq_nand_write_oob(struct mtd_info *mtd, struct nand_chip *chip, int page) argument 502 zynq_nand_read_page_raw(struct mtd_info *mtd, struct nand_chip *chip, u8 *buf, int oob_required, int page) argument 523 zynq_nand_read_page_raw_nooob(struct mtd_info *mtd, struct nand_chip *chip, u8 *buf, int oob_required, int page) argument 530 zynq_nand_read_subpage_raw(struct mtd_info *mtd, struct nand_chip *chip, u32 data_offs, u32 readlen, u8 *buf, int page) argument 550 zynq_nand_write_page_raw(struct mtd_info *mtd, struct nand_chip *chip, const u8 *buf, int oob_required, int page) argument 582 zynq_nand_write_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, const u8 *buf, int oob_required, int page) argument 640 zynq_nand_write_page_swecc(struct mtd_info *mtd, struct nand_chip *chip, const u8 *buf, int oob_required, int page) argument 673 zynq_nand_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, u8 *buf, int oob_required, int page) argument 745 zynq_nand_read_page_swecc(struct mtd_info *mtd, struct nand_chip *chip, u8 *buf, int oob_required, int page) argument [all...] |
H A D | mt7621_nand.c | 805 int oob_required, int page) 811 nand_read_page_op(nand, page, 0, NULL, 0); 842 pr_warn("Uncorrectable ECC error at page %d step %d\n", 843 page, i); 865 int oob_required, int page) 870 nand_read_page_op(nand, page, 0, NULL, 0); 900 struct nand_chip *nand, int page) 902 return mt7621_nfc_read_page_hwecc(mtd, nand, NULL, 1, page); 906 struct nand_chip *nand, int page) 908 return mt7621_nfc_read_page_raw(mtd, nand, NULL, 1, page); 803 mt7621_nfc_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *nand, uint8_t *buf, int oob_required, int page) argument 863 mt7621_nfc_read_page_raw(struct mtd_info *mtd, struct nand_chip *nand, uint8_t *buf, int oob_required, int page) argument 899 mt7621_nfc_read_oob_hwecc(struct mtd_info *mtd, struct nand_chip *nand, int page) argument 905 mt7621_nfc_read_oob_raw(struct mtd_info *mtd, struct nand_chip *nand, int page) argument 933 mt7621_nfc_write_page_hwecc(struct mtd_info *mtd, struct nand_chip *nand, const u8 *buf, int oob_required, int page) argument 979 mt7621_nfc_write_page_raw(struct mtd_info *mtd, struct nand_chip *nand, const u8 *buf, int oob_required, int page) argument 1018 mt7621_nfc_write_oob_hwecc(struct mtd_info *mtd, struct nand_chip *nand, int page) argument 1024 mt7621_nfc_write_oob_raw(struct mtd_info *mtd, struct nand_chip *nand, int page) argument [all...] |
H A D | rockchip_nfc.c | 436 int page) 444 if ((page < (pages_per_blk * rknand->boot_blks)) && 472 * chip->badblockpos == 0 for a large page NAND Flash, 509 nand_prog_page_begin_op(chip, page, 0, NULL, 0); 518 int page) 531 nand_prog_page_begin_op(chip, page, 0, NULL, 0); 541 * the next page address in the same block. We can't directly copy 542 * OOB data from the MTD framework, because this page address 550 * If a NAND is not a boot medium or the page is not a boot block, 564 if (page < (pages_per_bl 432 rk_nfc_write_page_raw(struct mtd_info *mtd, struct nand_chip *chip, const u8 *buf, int oob_required, int page) argument 514 rk_nfc_write_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, const u8 *buf, int oob_required, int page) argument 610 rk_nfc_write_oob(struct mtd_info *mtd, struct nand_chip *chip, int page) argument 616 rk_nfc_read_page_raw(struct mtd_info *mtd, struct nand_chip *chip, u8 *buf, int oob_required, int page) argument 672 rk_nfc_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, u8 *buf, int oob_required, int page) argument 779 rk_nfc_read_oob(struct mtd_info *mtd, struct nand_chip *chip, int page) argument [all...] |
H A D | octeontx_nand.c | 508 * to get page and OOB data. 802 struct nand_chip *nand, u64 page, 813 /* set column bit for OOB area, assume OOB follows page */ 817 /* page is u64 for this generality, even if cmdfunc() passes int */ 819 /* 4-8 bytes: page, then 2-byte col */ 821 cmd.u.ale_cmd.adr_byt8 = (page >> 40) & 0xff; 824 cmd.u.ale_cmd.adr_byt7 = (page >> 32) & 0xff; 827 cmd.u.ale_cmd.adr_byt6 = (page >> 24) & 0xff; 830 cmd.u.ale_cmd.adr_byt5 = (page >> 16) & 0xff; 833 cmd.u.ale_cmd.adr_byt4 = (page >> 801 ndf_queue_cmd_ale(struct octeontx_nfc *tn, int addr_bytes, struct nand_chip *nand, u64 page, u32 col, int page_size) argument 871 ndf_build_pre_cmd(struct octeontx_nfc *tn, int cmd1, int addr_bytes, u64 page, u32 col, int cmd2) argument 999 ndf_read(struct octeontx_nfc *tn, int cmd1, int addr_bytes, u64 page, u32 col, int cmd2, int len) argument 1137 ndf_page_read(struct octeontx_nfc *tn, u64 page, int col, int len) argument 1179 ndf_page_write(struct octeontx_nfc *tn, int page) argument 1597 octeontx_nand_hw_bch_read_page(struct mtd_info *mtd, struct nand_chip *chip, u8 *buf, int oob_required, int page) argument 1643 octeontx_nand_hw_bch_write_page(struct mtd_info *mtd, struct nand_chip *chip, const u8 *buf, int oob_required, int page) argument 1699 octeontx_nand_write_page_raw(struct mtd_info *mtd, struct nand_chip *chip, const u8 *buf, int oob_required, int page) argument 1718 octeontx_nand_write_oob_std(struct mtd_info *mtd, struct nand_chip *chip, int page) argument 1746 octeontx_nand_read_page_raw(struct mtd_info *mtd, struct nand_chip *chip, u8 *buf, int oob_required, int page) argument 1756 octeontx_nand_read_oob_std(struct mtd_info *mtd, struct nand_chip *chip, int page) argument [all...] |
H A D | mxc_nand.c | 208 /* Configure spare or page+spare access */ 242 /* Configure spare or page+spare access */ 388 int page) 397 pr_debug("%s: Reading OOB area of page %u to oob %p\n", 398 __func__, page, buf); 400 chip->cmdfunc(mtd, NAND_CMD_READOOB, mtd->writesize, page); 424 mtd->writesize + chip->ecc.prepad, page); 442 int page) 453 chip->cmdfunc(mtd, NAND_CMD_READ0, 0x00, page); 487 int page) 386 mxc_nand_read_oob_syndrome(struct mtd_info *mtd, struct nand_chip *chip, int page) argument 438 mxc_nand_read_page_raw_syndrome(struct mtd_info *mtd, struct nand_chip *chip, uint8_t *buf, int oob_required, int page) argument 483 mxc_nand_read_page_syndrome(struct mtd_info *mtd, struct nand_chip *chip, uint8_t *buf, int oob_required, int page) argument 550 mxc_nand_write_oob_syndrome(struct mtd_info *mtd, struct nand_chip *chip, int page) argument 576 mxc_nand_write_page_raw_syndrome(struct mtd_info *mtd, struct nand_chip *chip, const uint8_t *buf, int oob_required, int page) argument 616 mxc_nand_write_page_syndrome(struct mtd_info *mtd, struct nand_chip *chip, const uint8_t *buf, int oob_required, int page) argument [all...] |
H A D | mxs_nand.c | 223 * ECC bits per chunk = (total page spare data bits) / 224 * (bits per ECC level) / (chunks per page) 226 * total page spare data bits = 227 * (page oob size - meta data size) * (bits per byte) 292 /* nand required but changing ecc page layout */ 473 * the ECC engine applies its own view to the bits in the page, the 639 u8 *buf, int chunk, int page) 659 nand->cmdfunc(mtd, NAND_CMD_READ0, 0, page); 672 printf("The page(%d) is an erased page( 638 mxs_nand_erased_page(struct mtd_info *mtd, struct nand_chip *nand, u8 *buf, int chunk, int page) argument 680 mxs_nand_ecc_read_page(struct mtd_info *mtd, struct nand_chip *nand, uint8_t *buf, int oob_required, int page) argument 852 mxs_nand_ecc_write_page(struct mtd_info *mtd, struct nand_chip *nand, const uint8_t *buf, int oob_required, int page) argument 1042 mxs_nand_ecc_read_oob(struct mtd_info *mtd, struct nand_chip *nand, int page) argument 1077 mxs_nand_ecc_write_oob(struct mtd_info *mtd, struct nand_chip *nand, int page) argument [all...] |
H A D | atmel_nand.c | 536 struct nand_chip *chip, uint8_t *buf, int oob_required, int page) 564 dev_err(mtd->dev, "Timeout to read PMECC page\n"); 578 int oob_required, int page) 895 /* ECC is calculated for the whole page (1 step) */ 898 /* set ECC page size and oob layout */ 937 "Unsupported page size for PMECC, use Software ECC\n"); 939 /* page size not handled by HW ECC */ 972 /* oob layout for large page size 985 /* oob layout for small page size 1028 * HW ECC read page functio 535 atmel_nand_pmecc_read_page(struct mtd_info *mtd, struct nand_chip *chip, uint8_t *buf, int oob_required, int page) argument 576 atmel_nand_pmecc_write_page(struct mtd_info *mtd, struct nand_chip *chip, const uint8_t *buf, int oob_required, int page) argument 1035 atmel_nand_read_page(struct mtd_info *mtd, struct nand_chip *chip, uint8_t *buf, int oob_required, int page) argument 1259 nand_command(int block, int page, uint32_t offs, u8 cmd) argument 1320 nand_read_page(int block, int page, void *dst) argument 1353 spl_nand_erase_one(int block, int page) argument 1384 nand_read_page(int block, int page, void *dst) argument [all...] |
H A D | denali.h | 299 uint32_t page; member in struct:denali_nand_info 317 int page, int write);
|
H A D | nand_bbt.c | 55 * - bbts start at a page boundary, if autolocated on a block boundary 162 * read_bbt - [GENERIC] Read the bad block table starting from page 165 * @page: the starting page 170 * Read the bad block table starting from page. 172 static int read_bbt(struct mtd_info *mtd, uint8_t *buf, int page, int num, argument 186 from = ((loff_t)page) << this->page_shift; 193 * will be just in the first page. 255 * read_abs_bbt - [GENERIC] Read the bad block table starting at a given page 262 * Read the bad block table for all chips starting at a given page 625 int bits, startblock, dir, page, offs, numblocks, sft, sftmsk; local [all...] |
/u-boot/drivers/mtd/nand/raw/atmel/ |
H A D | nand-controller.c | 601 static void atmel_nfc_set_op_addr(struct nand_chip *chip, int page, int column) argument 613 * 2 address cycles for the column offset on large page NANDs. 619 if (page >= 0) { 620 nc->op.addrs[nc->op.naddrs++] = page; 621 nc->op.addrs[nc->op.naddrs++] = page >> 8; 624 nc->op.addrs[nc->op.naddrs++] = page >> 16; 672 "Failed to transfer NAND page data (err = %d)\n", 707 "Failed to read NAND page data (err = %d)\n", ret); 739 bool oob_required, int page, bool raw) 745 nand_prog_page_begin_op(chip, page, 738 atmel_nand_pmecc_write_pg(struct nand_chip *chip, const u8 *buf, bool oob_required, int page, bool raw) argument 766 atmel_nand_pmecc_write_page(struct mtd_info *mtd, struct nand_chip *chip, const u8 *buf, int oob_required, int page) argument 773 atmel_nand_pmecc_write_page_raw(struct mtd_info *mtd, struct nand_chip *chip, const u8 *buf, int oob_required, int page) argument 781 atmel_nand_pmecc_read_pg(struct nand_chip *chip, u8 *buf, bool oob_required, int page, bool raw) argument 803 atmel_nand_pmecc_read_page(struct mtd_info *mtd, struct nand_chip *chip, u8 *buf, int oob_required, int page) argument 810 atmel_nand_pmecc_read_page_raw(struct mtd_info *mtd, struct nand_chip *chip, u8 *buf, int oob_required, int page) argument 817 atmel_hsmc_nand_pmecc_write_pg(struct nand_chip *chip, const u8 *buf, bool oob_required, int page, bool raw) argument 874 atmel_hsmc_nand_pmecc_write_page(struct mtd_info *mtd, struct nand_chip *chip, const u8 *buf, int oob_required, int page) argument 883 atmel_hsmc_nand_pmecc_write_page_raw(struct mtd_info *mtd, struct nand_chip *chip, const u8 *buf, int oob_required, int page) argument 891 atmel_hsmc_nand_pmecc_read_pg(struct nand_chip *chip, u8 *buf, bool oob_required, int page, bool raw) argument 945 atmel_hsmc_nand_pmecc_read_page(struct mtd_info *mtd, struct nand_chip *chip, u8 *buf, int oob_required, int page) argument 953 atmel_hsmc_nand_pmecc_read_page_raw(struct mtd_info *mtd, struct nand_chip *chip, u8 *buf, int oob_required, int page) argument [all...] |
/u-boot/fs/ubifs/ |
H A D | ubifs.c | 664 static inline void *kmap(struct page *page) argument 666 return page->addr; 717 struct page *page, int last_block_size) 726 inode->i_ino, page->index, i_size); 728 addr = kmap(page); 730 block = page->index << UBIFS_BLOCKS_PER_PAGE_SHIFT; 814 ubifs_err(c, "cannot read page %lu of inode %lu, error %d", 815 page 716 do_readpage(struct ubifs_info *c, struct inode *inode, struct page *page, int last_block_size) argument 835 struct page page; local [all...] |
/u-boot/include/linux/mtd/ |
H A D | rawnand.h | 52 * This constant declares the max. oobsize / page, which 53 * is supported now. If you add a chip with bigger oobsize/page 99 /* Extended commands for large page devices */ 163 * Enable generic NAND 'page erased' check. This check is only done when 172 * reading or writing a page, then the framework is not supposed to 195 * True only for small page devices; large page devices do not support 221 /* Options valid for Samsung large page devices */ 550 * @steps: number of ECC steps per page 554 * @total: total number of ECC bytes per page [all...] |
/u-boot/tools/ |
H A D | sunxi-spl-image-builder.c | 82 int page, uint8_t *data, int datalen) 100 state = default_scrambler_seeds[page % seedmod]; 115 struct bch_control *bch, int page) 171 scramble(info, page, buffer + offs, cnt); 219 scramble(info, page, buffer, info->ecc_step_size + 4 + eccbytes); 232 /* Make dst pointer point to the next page. */ 240 off_t page = info->offset / info->page_size; local 253 fprintf(stderr, "Failed to allocate the NAND page buffer\n"); 281 ret = write_page(info, buffer, src, rnd, dst, bch, page++); 300 "-p <size> --page 81 scramble(const struct image_info *info, int page, uint8_t *data, int datalen) argument 113 write_page(const struct image_info *info, uint8_t *buffer, FILE *src, FILE *rnd, FILE *dst, struct bch_control *bch, int page) argument [all...] |
H A D | ublimage.c | 30 "page number where bootloader is present", }, 69 printf("start page : %08x\n", ubl_hdr->page); 100 ublhdr->page = get_cfg_value(token, name, lineno);
|
/u-boot/drivers/net/phy/ |
H A D | marvell.c | 113 static int marvell_write_page(struct phy_device *phydev, int page) argument 115 return phy_write(phydev, MDIO_DEVAD_NONE, MII_MARVELL_PHY_PAGE, page); 121 * marvell,reg-init = <reg-page reg mask value>,...; 123 * There may be one or more sets of <reg-page reg mask value>: 125 * reg-page: which register bank to use. 150 u16 page = be32_to_cpup(prop + i); local 156 if (page != current_page) { 157 current_page = page; 158 ret = marvell_write_page(phydev, page); 431 /* Select page 1 [all...] |
/u-boot/cmd/ |
H A D | mtd.c | 79 uint page; local 82 for (page = 0; page < npages; page++) { 83 u64 data_off = (u64)page * mtd->writesize; 91 u64 oob_off = (u64)page * mtd->oobsize; 93 printf("Dump %d OOB bytes from page at 0x%08llx:\n", 455 * By default, do not write an empty page. 513 printf("Offset not aligned with a page (0x%x)\n", 523 printf("Size not on a page boundar [all...] |
H A D | onenand.c | 117 int page, ret = 0; local 118 for (page = 0; page < (mtd->erasesize / mtd->writesize); page ++) { 311 puts("No memory for page buffer\n"); 324 printf("Error (%d) reading page %08lx\n", i, off); 598 "onenand dump[.oob] off - dump page\n"
|
/u-boot/include/ |
H A D | nand.h | 129 int spl_nand_erase_one(int block, int page);
|
/u-boot/drivers/mtd/nand/raw/brcmnand/ |
H A D | brcmnand.c | 1108 /* First sector of each page may have BBI */ 1111 /* Small-page NAND use byte 6 for BBI */ 1155 /* First sector of each page may have BBI */ 1158 /* Small-page NAND use byte 6 for BBI */ 1290 * @i: sub-page sector index 1313 * @i: sub-page sector index 1828 * Check a page to see if it is erased (w/ bitflips) after an uncorrectable ECC 1833 * page with bitflips, not a truly corrupted page. 1847 int page local 1974 brcmnand_read_page(struct mtd_info *mtd, struct nand_chip *chip, uint8_t *buf, int oob_required, int page) argument 1986 brcmnand_read_page_raw(struct mtd_info *mtd, struct nand_chip *chip, uint8_t *buf, int oob_required, int page) argument 2002 brcmnand_read_oob(struct mtd_info *mtd, struct nand_chip *chip, int page) argument 2010 brcmnand_read_oob_raw(struct mtd_info *mtd, struct nand_chip *chip, int page) argument 2090 brcmnand_write_page(struct mtd_info *mtd, struct nand_chip *chip, const uint8_t *buf, int oob_required, int page) argument 2102 brcmnand_write_page_raw(struct mtd_info *mtd, struct nand_chip *chip, const uint8_t *buf, int oob_required, int page) argument 2117 brcmnand_write_oob(struct mtd_info *mtd, struct nand_chip *chip, int page) argument 2124 brcmnand_write_oob_raw(struct mtd_info *mtd, struct nand_chip *chip, int page) argument [all...] |
/u-boot/drivers/mtd/onenand/ |
H A D | onenand_base.c | 51 * onenand_oob_128 - oob info for Flex-Onenand with 4KB page 72 * onenand_oob_64 - oob info for large (2KB) page 89 * onenand_oob_32 - oob info for middle (1KB) page 183 * onenand_page_address - [DEFAULT] Get page address 184 * @param page the page address 186 * Return: combined page and sector address 190 static int onenand_page_address(int page, int sector) argument 195 fpa = page & ONENAND_FPA_MASK; 326 * Send command to OneNAND device. This function is used for middle/large page 334 int block, page; local 623 int blockpage, block, page; local [all...] |
/u-boot/drivers/block/ |
H A D | rkmtd.c | 143 debug("Error (%d) writing page %08lx\n", ret, off); 168 debug("Error (%d) reading page %08lx\n", ret, off); 192 debug("Error (%d) erasing page %08lx\n", ret, off); 240 int page; local 249 page = (plat->idblock[idx].offset + spare0) / 4; 251 page = (plat->idblock[idx].offset + counter) / 4; 254 off + page * plat->mtd->writesize, 281 int page; local 304 page = plat->page_table[sector / 4]; 307 off + page * pla [all...] |