Lines Matching refs:ops
1038 struct mtd_oob_ops ops; in jffs2_check_oob_empty() local
1040 ops.mode = MTD_OPS_AUTO_OOB; in jffs2_check_oob_empty()
1041 ops.ooblen = NR_OOB_SCAN_PAGES * c->oobavail; in jffs2_check_oob_empty()
1042 ops.oobbuf = c->oobbuf; in jffs2_check_oob_empty()
1043 ops.len = ops.ooboffs = ops.retlen = ops.oobretlen = 0; in jffs2_check_oob_empty()
1044 ops.datbuf = NULL; in jffs2_check_oob_empty()
1046 ret = mtd_read_oob(c->mtd, jeb->offset, &ops); in jffs2_check_oob_empty()
1047 if ((ret && !mtd_is_bitflip(ret)) || ops.oobretlen != ops.ooblen) { in jffs2_check_oob_empty()
1049 jeb->offset, ops.ooblen, ops.oobretlen, ret); in jffs2_check_oob_empty()
1055 for(i = 0; i < ops.ooblen; i++) { in jffs2_check_oob_empty()
1060 if (ops.oobbuf[i] != 0xFF) { in jffs2_check_oob_empty()
1062 "%08x\n", ops.oobbuf[i], i, jeb->offset); in jffs2_check_oob_empty()
1079 struct mtd_oob_ops ops; in jffs2_check_nand_cleanmarker() local
1082 ops.mode = MTD_OPS_AUTO_OOB; in jffs2_check_nand_cleanmarker()
1083 ops.ooblen = cmlen; in jffs2_check_nand_cleanmarker()
1084 ops.oobbuf = c->oobbuf; in jffs2_check_nand_cleanmarker()
1085 ops.len = ops.ooboffs = ops.retlen = ops.oobretlen = 0; in jffs2_check_nand_cleanmarker()
1086 ops.datbuf = NULL; in jffs2_check_nand_cleanmarker()
1088 ret = mtd_read_oob(c->mtd, jeb->offset, &ops); in jffs2_check_nand_cleanmarker()
1089 if ((ret && !mtd_is_bitflip(ret)) || ops.oobretlen != ops.ooblen) { in jffs2_check_nand_cleanmarker()
1091 jeb->offset, ops.ooblen, ops.oobretlen, ret); in jffs2_check_nand_cleanmarker()
1104 struct mtd_oob_ops ops; in jffs2_write_nand_cleanmarker() local
1107 ops.mode = MTD_OPS_AUTO_OOB; in jffs2_write_nand_cleanmarker()
1108 ops.ooblen = cmlen; in jffs2_write_nand_cleanmarker()
1109 ops.oobbuf = (uint8_t *)&oob_cleanmarker; in jffs2_write_nand_cleanmarker()
1110 ops.len = ops.ooboffs = ops.retlen = ops.oobretlen = 0; in jffs2_write_nand_cleanmarker()
1111 ops.datbuf = NULL; in jffs2_write_nand_cleanmarker()
1113 ret = mtd_write_oob(c->mtd, jeb->offset, &ops); in jffs2_write_nand_cleanmarker()
1114 if (ret || ops.oobretlen != ops.ooblen) { in jffs2_write_nand_cleanmarker()
1116 jeb->offset, ops.ooblen, ops.oobretlen, ret); in jffs2_write_nand_cleanmarker()