Lines Matching refs:devops
263 struct mtd_oob_ops devops = *ops; in concat_read_oob() local
277 if (from + devops.len > subdev->size) in concat_read_oob()
278 devops.len = subdev->size - from; in concat_read_oob()
280 err = mtd_read_oob(subdev, from, &devops); in concat_read_oob()
281 ops->retlen += devops.retlen; in concat_read_oob()
282 ops->oobretlen += devops.oobretlen; in concat_read_oob()
298 if (devops.datbuf) { in concat_read_oob()
299 devops.len = ops->len - ops->retlen; in concat_read_oob()
300 if (!devops.len) in concat_read_oob()
302 devops.datbuf += devops.retlen; in concat_read_oob()
304 if (devops.oobbuf) { in concat_read_oob()
305 devops.ooblen = ops->ooblen - ops->oobretlen; in concat_read_oob()
306 if (!devops.ooblen) in concat_read_oob()
308 devops.oobbuf += ops->oobretlen; in concat_read_oob()
320 struct mtd_oob_ops devops = *ops; in concat_write_oob() local
337 if (to + devops.len > subdev->size) in concat_write_oob()
338 devops.len = subdev->size - to; in concat_write_oob()
340 err = mtd_write_oob(subdev, to, &devops); in concat_write_oob()
341 ops->retlen += devops.retlen; in concat_write_oob()
342 ops->oobretlen += devops.oobretlen; in concat_write_oob()
346 if (devops.datbuf) { in concat_write_oob()
347 devops.len = ops->len - ops->retlen; in concat_write_oob()
348 if (!devops.len) in concat_write_oob()
350 devops.datbuf += devops.retlen; in concat_write_oob()
352 if (devops.oobbuf) { in concat_write_oob()
353 devops.ooblen = ops->ooblen - ops->oobretlen; in concat_write_oob()
354 if (!devops.ooblen) in concat_write_oob()
356 devops.oobbuf += devops.oobretlen; in concat_write_oob()