• Home
  • Raw
  • Download

Lines Matching refs:devops

239 	struct mtd_oob_ops devops = *ops;  in concat_read_oob()  local
253 if (from + devops.len > subdev->size) in concat_read_oob()
254 devops.len = subdev->size - from; in concat_read_oob()
256 err = mtd_read_oob(subdev, from, &devops); in concat_read_oob()
257 ops->retlen += devops.retlen; in concat_read_oob()
258 ops->oobretlen += devops.oobretlen; in concat_read_oob()
274 if (devops.datbuf) { in concat_read_oob()
275 devops.len = ops->len - ops->retlen; in concat_read_oob()
276 if (!devops.len) in concat_read_oob()
278 devops.datbuf += devops.retlen; in concat_read_oob()
280 if (devops.oobbuf) { in concat_read_oob()
281 devops.ooblen = ops->ooblen - ops->oobretlen; in concat_read_oob()
282 if (!devops.ooblen) in concat_read_oob()
284 devops.oobbuf += ops->oobretlen; in concat_read_oob()
296 struct mtd_oob_ops devops = *ops; in concat_write_oob() local
313 if (to + devops.len > subdev->size) in concat_write_oob()
314 devops.len = subdev->size - to; in concat_write_oob()
316 err = mtd_write_oob(subdev, to, &devops); in concat_write_oob()
317 ops->retlen += devops.oobretlen; in concat_write_oob()
321 if (devops.datbuf) { in concat_write_oob()
322 devops.len = ops->len - ops->retlen; in concat_write_oob()
323 if (!devops.len) in concat_write_oob()
325 devops.datbuf += devops.retlen; in concat_write_oob()
327 if (devops.oobbuf) { in concat_write_oob()
328 devops.ooblen = ops->ooblen - ops->oobretlen; in concat_write_oob()
329 if (!devops.ooblen) in concat_write_oob()
331 devops.oobbuf += devops.oobretlen; in concat_write_oob()