Lines Matching refs:retlen
278 size_t retlen; in mtdpstore_write() local
289 ret = mtd_write(cxt->mtd, off, size, &retlen, (u_char *)buf); in mtdpstore_write()
290 if (ret < 0 || retlen != size) { in mtdpstore_write()
292 off, retlen, size, ret); in mtdpstore_write()
298 return retlen; in mtdpstore_write()
314 size_t retlen, done; in mtdpstore_read() local
321 for (done = 0, retlen = 0; done < size; done += retlen) { in mtdpstore_read()
322 retlen = 0; in mtdpstore_read()
324 ret = mtd_read(cxt->mtd, off + done, size - done, &retlen, in mtdpstore_read()
328 off + done, retlen, size - done, ret); in mtdpstore_read()
341 off + done, retlen, size - done, ret); in mtdpstore_read()
343 retlen = retlen == 0 ? size - done : retlen; in mtdpstore_read()
353 return retlen; in mtdpstore_read()
360 size_t retlen; in mtdpstore_panic_write() local
370 ret = mtd_panic_write(cxt->mtd, off, size, &retlen, (u_char *)buf); in mtdpstore_panic_write()
371 if (ret < 0 || size != retlen) { in mtdpstore_panic_write()
373 off, retlen, size, ret); in mtdpstore_panic_write()
378 return retlen; in mtdpstore_panic_write()
450 size_t retlen; in mtdpstore_flush_removed_do() local
458 ret = mtd_read(mtd, off, mtd->erasesize, &retlen, buf); in mtdpstore_flush_removed_do()
475 ret = mtd_write(mtd, off, zonesize, &retlen, buf); in mtdpstore_flush_removed_do()
478 off, retlen, zonesize, ret); in mtdpstore_flush_removed_do()