Lines Matching refs:retlen
166 size_t retlen=0; in mtd_read() local
200 ret = mtd->read_fact_prot_reg(mtd, *ppos, len, &retlen, kbuf); in mtd_read()
203 ret = mtd->read_user_prot_reg(mtd, *ppos, len, &retlen, kbuf); in mtd_read()
215 retlen = ops.retlen; in mtd_read()
219 ret = mtd->read(mtd, *ppos, len, &retlen, kbuf); in mtd_read()
231 *ppos += retlen; in mtd_read()
232 if (copy_to_user(buf, kbuf, retlen)) { in mtd_read()
237 total_retlen += retlen; in mtd_read()
239 count -= retlen; in mtd_read()
240 buf += retlen; in mtd_read()
241 if (retlen == 0) in mtd_read()
260 size_t retlen; in mtd_write() local
305 ret = mtd->write_user_prot_reg(mtd, *ppos, len, &retlen, kbuf); in mtd_write()
318 retlen = ops.retlen; in mtd_write()
323 ret = (*(mtd->write))(mtd, *ppos, len, &retlen, kbuf); in mtd_write()
326 *ppos += retlen; in mtd_write()
327 total_retlen += retlen; in mtd_write()
328 count -= retlen; in mtd_write()
329 buf += retlen; in mtd_write()
502 uint32_t retlen; in mtd_ioctl() local
544 retlen = ops.oobretlen; in mtd_ioctl()
545 if (copy_to_user(&user_buf->length, &retlen, sizeof(buf.length))) in mtd_ioctl()