Lines Matching defs:ops
97 struct mtd_oob_ops ops;
129 memset(&ops, 0, sizeof(ops));
130 ops.mode = MTD_OOB_AUTO;
131 ops.len = (data) ? chunkBytes : 0;
132 ops.ooblen = YTAG1_SIZE;
133 ops.datbuf = (__u8 *)data;
134 ops.oobbuf = (__u8 *)&pt1;
136 retval = mtd->write_oob(mtd, addr, &ops);
176 struct mtd_oob_ops ops;
181 memset(&ops, 0, sizeof(ops));
182 ops.mode = MTD_OOB_AUTO;
183 ops.len = (data) ? chunkBytes : 0;
184 ops.ooblen = YTAG1_SIZE;
185 ops.datbuf = data;
186 ops.oobbuf = (__u8 *)&pt1;
190 * help it out with ops.len = ops.ooblen when ops.datbuf == NULL.
192 ops.len = (ops.datbuf) ? ops.len : ops.ooblen;
197 retval = mtd->read_oob(mtd, addr, &ops);