Lines Matching refs:tweak
523 struct nand_page_io_req *orig, *tweak; in nand_ecc_tweak_req() local
530 tweak = req; in nand_ecc_tweak_req()
535 tweak->dataoffs = 0; in nand_ecc_tweak_req()
536 tweak->datalen = nanddev_page_size(nand); in nand_ecc_tweak_req()
537 tweak->databuf.in = ctx->spare_databuf; in nand_ecc_tweak_req()
538 memset(tweak->databuf.in, 0xFF, ctx->page_buffer_size); in nand_ecc_tweak_req()
543 tweak->ooboffs = 0; in nand_ecc_tweak_req()
544 tweak->ooblen = nanddev_per_page_oobsize(nand); in nand_ecc_tweak_req()
545 tweak->oobbuf.in = ctx->spare_oobbuf; in nand_ecc_tweak_req()
546 memset(tweak->oobbuf.in, 0xFF, ctx->oob_buffer_size); in nand_ecc_tweak_req()
552 memcpy((void *)tweak->databuf.out + orig->dataoffs, in nand_ecc_tweak_req()
556 memcpy((void *)tweak->oobbuf.out + orig->ooboffs, in nand_ecc_tweak_req()
565 struct nand_page_io_req *orig, *tweak; in nand_ecc_restore_req() local
568 tweak = req; in nand_ecc_restore_req()
574 tweak->databuf.in + orig->dataoffs, in nand_ecc_restore_req()
579 tweak->oobbuf.in + orig->ooboffs, in nand_ecc_restore_req()