Lines Matching refs:readlen
3066 uint32_t readlen, uint8_t *bufpoi, int page) in nand_read_subpage() argument
3080 end_step = (data_offs + readlen - 1) / chip->ecc.size; in nand_read_subpage()
3431 u32 readlen, int col) in rawnand_enable_cont_reads() argument
3438 if ((col && col + readlen < (3 * mtd->writesize)) || in rawnand_enable_cont_reads()
3439 (!col && readlen < (2 * mtd->writesize))) { in rawnand_enable_cont_reads()
3448 chip->cont_read.last_page = page + ((readlen >> chip->page_shift) & chip->pagemask); in rawnand_enable_cont_reads()
3498 uint32_t readlen = ops->len; in nand_do_read_ops() local
3509 if (nand_region_is_secured(chip, from, readlen)) in nand_do_read_ops()
3524 rawnand_enable_cont_reads(chip, page, readlen, col); in nand_do_read_ops()
3529 bytes = min(mtd->writesize - col, readlen); in nand_do_read_ops()
3627 readlen -= bytes; in nand_do_read_ops()
3637 if (!readlen) in nand_do_read_ops()
3655 ops->retlen = ops->len - (size_t) readlen; in nand_do_read_ops()
3837 int readlen = ops->ooblen; in nand_do_read_oob() local
3843 __func__, (unsigned long long)from, readlen); in nand_do_read_oob()
3846 if (nand_region_is_secured(chip, from, readlen)) in nand_do_read_oob()
3869 len = min(len, readlen); in nand_do_read_oob()
3876 readlen -= len; in nand_do_read_oob()
3877 if (!readlen) in nand_do_read_oob()
3893 ops->oobretlen = ops->ooblen - readlen; in nand_do_read_oob()