Lines Matching refs:devops
236 struct mtd_oob_ops devops = *ops; in concat_read_oob() local
250 if (from + devops.len > subdev->size) in concat_read_oob()
251 devops.len = subdev->size - from; in concat_read_oob()
253 err = mtd_read_oob(subdev, from, &devops); in concat_read_oob()
254 ops->retlen += devops.retlen; in concat_read_oob()
255 ops->oobretlen += devops.oobretlen; in concat_read_oob()
271 if (devops.datbuf) { in concat_read_oob()
272 devops.len = ops->len - ops->retlen; in concat_read_oob()
273 if (!devops.len) in concat_read_oob()
275 devops.datbuf += devops.retlen; in concat_read_oob()
277 if (devops.oobbuf) { in concat_read_oob()
278 devops.ooblen = ops->ooblen - ops->oobretlen; in concat_read_oob()
279 if (!devops.ooblen) in concat_read_oob()
281 devops.oobbuf += ops->oobretlen; in concat_read_oob()
293 struct mtd_oob_ops devops = *ops; in concat_write_oob() local
310 if (to + devops.len > subdev->size) in concat_write_oob()
311 devops.len = subdev->size - to; in concat_write_oob()
313 err = mtd_write_oob(subdev, to, &devops); in concat_write_oob()
314 ops->retlen += devops.retlen; in concat_write_oob()
315 ops->oobretlen += devops.oobretlen; in concat_write_oob()
319 if (devops.datbuf) { in concat_write_oob()
320 devops.len = ops->len - ops->retlen; in concat_write_oob()
321 if (!devops.len) in concat_write_oob()
323 devops.datbuf += devops.retlen; in concat_write_oob()
325 if (devops.oobbuf) { in concat_write_oob()
326 devops.ooblen = ops->ooblen - ops->oobretlen; in concat_write_oob()
327 if (!devops.ooblen) in concat_write_oob()
329 devops.oobbuf += devops.oobretlen; in concat_write_oob()