Lines Matching refs:ops
59 struct mtd_oob_ops ops; in write_eraseblock() local
65 ops.mode = MTD_OPS_AUTO_OOB; in write_eraseblock()
66 ops.len = 0; in write_eraseblock()
67 ops.retlen = 0; in write_eraseblock()
68 ops.ooblen = use_len; in write_eraseblock()
69 ops.oobretlen = 0; in write_eraseblock()
70 ops.ooboffs = use_offset; in write_eraseblock()
71 ops.datbuf = NULL; in write_eraseblock()
72 ops.oobbuf = writebuf + (use_len_max * i) + use_offset; in write_eraseblock()
73 err = mtd_write_oob(mtd, addr, &ops); in write_eraseblock()
74 if (err || ops.oobretlen != use_len) { in write_eraseblock()
168 struct mtd_oob_ops ops; in verify_eraseblock() local
175 ops.mode = MTD_OPS_AUTO_OOB; in verify_eraseblock()
176 ops.len = 0; in verify_eraseblock()
177 ops.retlen = 0; in verify_eraseblock()
178 ops.ooblen = use_len; in verify_eraseblock()
179 ops.oobretlen = 0; in verify_eraseblock()
180 ops.ooboffs = use_offset; in verify_eraseblock()
181 ops.datbuf = NULL; in verify_eraseblock()
182 ops.oobbuf = readbuf; in verify_eraseblock()
183 err = mtd_read_oob(mtd, addr, &ops); in verify_eraseblock()
187 if (err || ops.oobretlen != use_len) { in verify_eraseblock()
212 ops.mode = MTD_OPS_AUTO_OOB; in verify_eraseblock()
213 ops.len = 0; in verify_eraseblock()
214 ops.retlen = 0; in verify_eraseblock()
215 ops.ooblen = mtd->oobavail; in verify_eraseblock()
216 ops.oobretlen = 0; in verify_eraseblock()
217 ops.ooboffs = 0; in verify_eraseblock()
218 ops.datbuf = NULL; in verify_eraseblock()
219 ops.oobbuf = readbuf; in verify_eraseblock()
220 err = mtd_read_oob(mtd, addr, &ops); in verify_eraseblock()
224 if (err || ops.oobretlen != mtd->oobavail) { in verify_eraseblock()
263 struct mtd_oob_ops ops; in verify_eraseblock_in_one_go() local
272 ops.mode = MTD_OPS_AUTO_OOB; in verify_eraseblock_in_one_go()
273 ops.len = 0; in verify_eraseblock_in_one_go()
274 ops.retlen = 0; in verify_eraseblock_in_one_go()
275 ops.ooblen = len; in verify_eraseblock_in_one_go()
276 ops.oobretlen = 0; in verify_eraseblock_in_one_go()
277 ops.ooboffs = 0; in verify_eraseblock_in_one_go()
278 ops.datbuf = NULL; in verify_eraseblock_in_one_go()
279 ops.oobbuf = readbuf; in verify_eraseblock_in_one_go()
282 err = mtd_read_oob(mtd, addr, &ops); in verify_eraseblock_in_one_go()
286 if (err || ops.oobretlen != len) { in verify_eraseblock_in_one_go()
341 struct mtd_oob_ops ops; in mtd_oobtest_init() local
496 ops.mode = MTD_OPS_AUTO_OOB; in mtd_oobtest_init()
497 ops.len = 0; in mtd_oobtest_init()
498 ops.retlen = 0; in mtd_oobtest_init()
499 ops.ooblen = 1; in mtd_oobtest_init()
500 ops.oobretlen = 0; in mtd_oobtest_init()
501 ops.ooboffs = mtd->oobavail; in mtd_oobtest_init()
502 ops.datbuf = NULL; in mtd_oobtest_init()
503 ops.oobbuf = writebuf; in mtd_oobtest_init()
506 err = mtd_write_oob(mtd, addr0, &ops); in mtd_oobtest_init()
516 ops.mode = MTD_OPS_AUTO_OOB; in mtd_oobtest_init()
517 ops.len = 0; in mtd_oobtest_init()
518 ops.retlen = 0; in mtd_oobtest_init()
519 ops.ooblen = 1; in mtd_oobtest_init()
520 ops.oobretlen = 0; in mtd_oobtest_init()
521 ops.ooboffs = mtd->oobavail; in mtd_oobtest_init()
522 ops.datbuf = NULL; in mtd_oobtest_init()
523 ops.oobbuf = readbuf; in mtd_oobtest_init()
526 err = mtd_read_oob(mtd, addr0, &ops); in mtd_oobtest_init()
543 ops.mode = MTD_OPS_AUTO_OOB; in mtd_oobtest_init()
544 ops.len = 0; in mtd_oobtest_init()
545 ops.retlen = 0; in mtd_oobtest_init()
546 ops.ooblen = mtd->oobavail + 1; in mtd_oobtest_init()
547 ops.oobretlen = 0; in mtd_oobtest_init()
548 ops.ooboffs = 0; in mtd_oobtest_init()
549 ops.datbuf = NULL; in mtd_oobtest_init()
550 ops.oobbuf = writebuf; in mtd_oobtest_init()
553 err = mtd_write_oob(mtd, mtd->size - mtd->writesize, &ops); in mtd_oobtest_init()
563 ops.mode = MTD_OPS_AUTO_OOB; in mtd_oobtest_init()
564 ops.len = 0; in mtd_oobtest_init()
565 ops.retlen = 0; in mtd_oobtest_init()
566 ops.ooblen = mtd->oobavail + 1; in mtd_oobtest_init()
567 ops.oobretlen = 0; in mtd_oobtest_init()
568 ops.ooboffs = 0; in mtd_oobtest_init()
569 ops.datbuf = NULL; in mtd_oobtest_init()
570 ops.oobbuf = readbuf; in mtd_oobtest_init()
573 err = mtd_read_oob(mtd, mtd->size - mtd->writesize, &ops); in mtd_oobtest_init()
590 ops.mode = MTD_OPS_AUTO_OOB; in mtd_oobtest_init()
591 ops.len = 0; in mtd_oobtest_init()
592 ops.retlen = 0; in mtd_oobtest_init()
593 ops.ooblen = mtd->oobavail; in mtd_oobtest_init()
594 ops.oobretlen = 0; in mtd_oobtest_init()
595 ops.ooboffs = 1; in mtd_oobtest_init()
596 ops.datbuf = NULL; in mtd_oobtest_init()
597 ops.oobbuf = writebuf; in mtd_oobtest_init()
600 err = mtd_write_oob(mtd, mtd->size - mtd->writesize, &ops); in mtd_oobtest_init()
610 ops.mode = MTD_OPS_AUTO_OOB; in mtd_oobtest_init()
611 ops.len = 0; in mtd_oobtest_init()
612 ops.retlen = 0; in mtd_oobtest_init()
613 ops.ooblen = mtd->oobavail; in mtd_oobtest_init()
614 ops.oobretlen = 0; in mtd_oobtest_init()
615 ops.ooboffs = 1; in mtd_oobtest_init()
616 ops.datbuf = NULL; in mtd_oobtest_init()
617 ops.oobbuf = readbuf; in mtd_oobtest_init()
620 err = mtd_read_oob(mtd, mtd->size - mtd->writesize, &ops); in mtd_oobtest_init()
653 ops.mode = MTD_OPS_AUTO_OOB; in mtd_oobtest_init()
654 ops.len = 0; in mtd_oobtest_init()
655 ops.retlen = 0; in mtd_oobtest_init()
656 ops.ooblen = sz; in mtd_oobtest_init()
657 ops.oobretlen = 0; in mtd_oobtest_init()
658 ops.ooboffs = 0; in mtd_oobtest_init()
659 ops.datbuf = NULL; in mtd_oobtest_init()
660 ops.oobbuf = writebuf + pg * sz; in mtd_oobtest_init()
661 err = mtd_write_oob(mtd, addr, &ops); in mtd_oobtest_init()
684 ops.mode = MTD_OPS_AUTO_OOB; in mtd_oobtest_init()
685 ops.len = 0; in mtd_oobtest_init()
686 ops.retlen = 0; in mtd_oobtest_init()
687 ops.ooblen = mtd->oobavail * 2; in mtd_oobtest_init()
688 ops.oobretlen = 0; in mtd_oobtest_init()
689 ops.ooboffs = 0; in mtd_oobtest_init()
690 ops.datbuf = NULL; in mtd_oobtest_init()
691 ops.oobbuf = readbuf; in mtd_oobtest_init()
692 err = mtd_read_oob(mtd, addr, &ops); in mtd_oobtest_init()