Lines Matching refs:orig
523 struct nand_page_io_req *orig, *tweak; in nand_ecc_tweak_req() local
529 orig = &ctx->orig_req; in nand_ecc_tweak_req()
533 if (orig->datalen < nanddev_page_size(nand)) { in nand_ecc_tweak_req()
541 if (orig->ooblen < nanddev_per_page_oobsize(nand)) { in nand_ecc_tweak_req()
550 if (orig->type == NAND_PAGE_WRITE) { in nand_ecc_tweak_req()
552 memcpy((void *)tweak->databuf.out + orig->dataoffs, in nand_ecc_tweak_req()
553 orig->databuf.out, orig->datalen); in nand_ecc_tweak_req()
556 memcpy((void *)tweak->oobbuf.out + orig->ooboffs, in nand_ecc_tweak_req()
557 orig->oobbuf.out, orig->ooblen); in nand_ecc_tweak_req()
565 struct nand_page_io_req *orig, *tweak; in nand_ecc_restore_req() local
567 orig = &ctx->orig_req; in nand_ecc_restore_req()
571 if (orig->type == NAND_PAGE_READ) { in nand_ecc_restore_req()
573 memcpy(orig->databuf.in, in nand_ecc_restore_req()
574 tweak->databuf.in + orig->dataoffs, in nand_ecc_restore_req()
575 orig->datalen); in nand_ecc_restore_req()
578 memcpy(orig->oobbuf.in, in nand_ecc_restore_req()
579 tweak->oobbuf.in + orig->ooboffs, in nand_ecc_restore_req()
580 orig->ooblen); in nand_ecc_restore_req()
584 *req = *orig; in nand_ecc_restore_req()