Searched refs:devops (Results 1 - 1 of 1) sorted by relevance

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

Completed in 34 milliseconds