Lines Matching refs:from
120 * nand_extract_bits - Copy unaligned bits from one buffer to another one
125 * @nbits: number of bits to copy from @src to @dst
127 * Copy bits from one memory region to another (overlap authorized).
166 * @cs: the CS line to select. Note that this CS id is always from the chip
247 * nand_block_bad - [DEFAULT] Read bad block marker from the chip
249 * @ofs: offset from device start
289 * list of secure regions obtained from DT. Returns true if the region is
393 * data from a previous OOB read.
493 * @ofs: offset from device start
549 * @ofs: offset from device start
602 * @ofs: offset from device start
612 /* Return info from the table */
619 * @ofs: offset from device start
627 /* Return info from the table */
646 * Be aware that calling this helper from an ->exec_op() implementation means
686 * deriving a delay from the timeout value, timeout_ms/ratio).
805 * To transition from NV-DDR or NV-DDR2 to the SDR data
924 * timing modes from ONFI information.
975 * timing modes from ONFI information.
1025 * timing modes from ONFI information.
2140 * nand_read_data_op - Read data from the NAND
2225 * nand_write_data_op - Write data from the NAND
2288 * split, then @start_offset is the offset from which to start
2481 * NAND controller drivers should call this function from their own ->exec_op()
2635 * Given a data instruction, returns the offset to start from.
2770 * Note: The logic of this function has been extracted from the memweight
2833 * different from the NAND page size. When fixing bitflips, ECC engines will
2946 * bus (from the NAND chip to the NAND controller) in a single
3271 * data read from OOB area
3278 * extracted from the OOB before the actual data is read.
3538 * @from: offset to read from
3543 static int nand_do_read_ops(struct nand_chip *chip, loff_t from,
3560 if (nand_region_is_secured(chip, from, readlen))
3563 chipnr = (int)(from >> chip->chip_shift);
3566 realpage = (int)(from >> chip->page_shift);
3569 col = (int)(from & (mtd->writesize - 1));
3878 * @from: offset to read from
3881 * NAND read out-of-band data from the spare area.
3883 static int nand_do_read_oob(struct nand_chip *chip, loff_t from,
3895 pr_debug("%s: from = 0x%08Lx, len = %i\n",
3896 __func__, (unsigned long long)from, readlen);
3899 if (nand_region_is_secured(chip, from, readlen))
3906 chipnr = (int)(from >> chip->chip_shift);
3910 realpage = (int)(from >> chip->page_shift);
3960 * @from: offset to read from
3965 static int nand_read_oob(struct mtd_info *mtd, loff_t from,
3984 ret = nand_do_read_oob(chip, from, ops);
3986 ret = nand_do_read_ops(chip, from, ops);
4476 * Copy the data from the initial buffer when doing partial page
4953 /* Extract the bits of per cell from the 3rd byte of the extended ID */
5351 /* Calculate the address shift from the page size */
5628 * This helper used to be called directly from controller drivers that needed