Lines Matching refs:orig
529 struct nand_page_io_req *orig, *tweak; in nand_ecc_tweak_req() local
535 orig = &ctx->orig_req; in nand_ecc_tweak_req()
539 if (orig->datalen < nanddev_page_size(nand)) { in nand_ecc_tweak_req()
547 if (orig->ooblen < nanddev_per_page_oobsize(nand)) { in nand_ecc_tweak_req()
556 if (orig->type == NAND_PAGE_WRITE) { in nand_ecc_tweak_req()
558 memcpy((void *)tweak->databuf.out + orig->dataoffs, in nand_ecc_tweak_req()
559 orig->databuf.out, orig->datalen); in nand_ecc_tweak_req()
562 memcpy((void *)tweak->oobbuf.out + orig->ooboffs, in nand_ecc_tweak_req()
563 orig->oobbuf.out, orig->ooblen); in nand_ecc_tweak_req()
571 struct nand_page_io_req *orig, *tweak; in nand_ecc_restore_req() local
573 orig = &ctx->orig_req; in nand_ecc_restore_req()
577 if (orig->type == NAND_PAGE_READ) { in nand_ecc_restore_req()
579 memcpy(orig->databuf.in, in nand_ecc_restore_req()
580 tweak->databuf.in + orig->dataoffs, in nand_ecc_restore_req()
581 orig->datalen); in nand_ecc_restore_req()
584 memcpy(orig->oobbuf.in, in nand_ecc_restore_req()
585 tweak->oobbuf.in + orig->ooboffs, in nand_ecc_restore_req()
586 orig->ooblen); in nand_ecc_restore_req()
590 *req = *orig; in nand_ecc_restore_req()