Lines Matching defs:read
87 JFFS2_ERROR("can not read %d bytes from 0x%08x, error code: %d.\n", len, ofs, err);
92 JFFS2_ERROR("short read at %#08x: %zd instead of %d.\n", ofs, retlen, len);
108 JFFS2_NOTICE("wrong data CRC in data node at 0x%08x: read %#08x, calculated %#08x.\n",
206 * This function is used when we read an inode. Data nodes arrive in
587 struct jffs2_raw_dirent *rd, size_t read,
598 JFFS2_NOTICE("header CRC failed on dirent node at %#08x: read %#08x, calculated %#08x\n",
649 * dirent we've already read from the flash.
651 if (read > sizeof(*rd))
653 min_t(uint32_t, rd->nsize, (read - sizeof(*rd)) ));
656 if (rd->nsize + sizeof(*rd) > read) {
659 int already = read - sizeof(*rd);
661 err = jffs2_flash_read(c, (ref_offset(ref)) + read,
662 rd->nsize - already, &read, &fd->name[already]);
663 if (unlikely(read != rd->nsize - already) && likely(!err)) {
665 JFFS2_ERROR("short read: wanted %d bytes, got %zd\n",
666 rd->nsize - already, read);
671 JFFS2_ERROR("read remainder of name: error %d\n", err);
684 "%#08x: read %#08x,calculated %#08x\n",
727 JFFS2_NOTICE("node CRC failed on dnode at %#08x: read %#08x, calculated %#08x\n",
762 * data CRC checking until we have read all the inode
778 * jffs2_is_writebuffered(c)) are anyway read by
779 * fractions of c->wbuf_pagesize, and we have just read
781 * of the node data is also read when we read the
785 * Of course, we will not need to re-read and re-check
786 * the NAND page which we have just read. This is why we
787 * read the whole NAND page at jffs2_get_inode_nodes(),
794 /* len will be the read data length */
803 JFFS2_NOTICE("wrong data CRC in data node at 0x%08x: read %#08x, calculated %#08x.\n",
935 * The function detects whether more data should be read and reads it if yes.
954 /* We need to read more data */
957 dbg_readinode("read more %d bytes\n", to_read);
961 JFFS2_ERROR("can not read %d bytes from 0x%08x, "
967 JFFS2_ERROR("short read at %#08x: %zu instead of %d.\n",
1020 * to read, so we do not know the size of its header. In order
1029 * We are about to read JFFS2_MIN_NODE_HEADER bytes,
1031 * possible that we'll need to read more soon, so read
1033 * re-read the same min. I/O unit twice.
1042 dbg_readinode("read %d bytes at %#08x(%d).\n", len, ref_offset(ref), ref_flags(ref));
1047 JFFS2_ERROR("can not read %d bytes from 0x%08x, error code: %d.\n", len, ref_offset(ref), err);
1052 JFFS2_ERROR("short read at %#08x: %zu instead of %d.\n", ref_offset(ref), retlen, len);
1132 dbg_readinode("nodes of inode #%u were read, the highest version is %u, latest_mctime %u, mctime_ver %u.\n",
1163 JFFS2_ERROR("cannot read nodes for ino %u, returned error is %d\n", f->inocache->ino, ret);
1223 JFFS2_ERROR("failed to read from flash: error %d, %zd of %zd bytes read\n",
1331 dbg_readinode("read inode #%u\n", ino);
1385 JFFS2_ERROR("requested to read a nonexistent ino %u\n", ino);