Lines Matching refs:retlen
62 size_t *retlen, u_char *buf, int oob) in onenand_block_read() argument
69 .retlen = 0, in onenand_block_read()
92 ops.retlen = 0; in onenand_block_read()
102 *retlen += ops.retlen; in onenand_block_read()
109 size_t *retlen) in onenand_write_oneblock_withoob() argument
128 *retlen = (ret) ? 0 : mtd->erasesize; in onenand_write_oneblock_withoob()
133 size_t *retlen, const u_char * buf, int withoob) in onenand_block_write() argument
144 *retlen = 0; in onenand_block_write()
178 *retlen += _retlen; in onenand_block_write()
231 size_t retlen; in onenand_block_test() local
278 ret = mtd_write(mtd, ofs, blocksize, &retlen, buf); in onenand_block_test()
284 ret = mtd_read(mtd, ofs, blocksize, &retlen, verify_buf); in onenand_block_test()
325 ops.retlen = 0; in onenand_dump()
389 size_t retlen = 0; in do_onenand_read() local
404 ret = onenand_block_read(ofs, len, &retlen, (u8 *)addr, oob); in do_onenand_read()
406 printf(" %d bytes read: %s\n", retlen, ret ? "ERROR" : "OK"); in do_onenand_read()
416 size_t retlen = 0; in do_onenand_write() local
430 ret = onenand_block_write(ofs, len, &retlen, (u8 *)addr, withoob); in do_onenand_write()
432 printf(" %d bytes written: %s\n", retlen, ret ? "ERROR" : "OK"); in do_onenand_write()