Searched refs:readlen (Results 1 – 5 of 5) sorted by relevance
/fs/jffs2/ |
D | read.c | 28 size_t readlen; in jffs2_read_dnode() local 38 ret = jffs2_flash_read(c, ref_offset(fd->raw), sizeof(*ri), &readlen, (char *)ri); in jffs2_read_dnode() 45 if (readlen != sizeof(*ri)) { in jffs2_read_dnode() 48 ref_offset(fd->raw), sizeof(*ri), readlen); in jffs2_read_dnode() 116 je32_to_cpu(ri->csize), &readlen, readbuf); in jffs2_read_dnode() 118 if (!ret && readlen != je32_to_cpu(ri->csize)) in jffs2_read_dnode() 202 uint32_t readlen; in jffs2_read_inode_range() local 206 readlen = min(frag->size - fragofs, end - offset); in jffs2_read_inode_range() 209 frag->ofs + fragofs+readlen, in jffs2_read_inode_range() 212 ret = jffs2_read_dnode(c, f, frag->node, buf, fragofs + frag->ofs - frag->node->ofs, readlen); in jffs2_read_inode_range() [all …]
|
D | erase.c | 389 uint32_t readlen = min((uint32_t)PAGE_SIZE, jeb->offset + c->sector_size - ofs); in jffs2_block_check_erase() local 394 ret = mtd_read(c->mtd, ofs, readlen, &retlen, ebuf); in jffs2_block_check_erase() 401 if (retlen != readlen) { in jffs2_block_check_erase() 403 ofs, readlen, retlen); in jffs2_block_check_erase() 407 for (i=0; i<readlen; i += sizeof(unsigned long)) { in jffs2_block_check_erase() 418 ofs += readlen; in jffs2_block_check_erase()
|
D | xattr.c | 135 size_t readlen; in do_verify_xattr_datum() local 145 rc = jffs2_flash_read(c, offset, sizeof(rx), &readlen, (char *)&rx); in do_verify_xattr_datum() 146 if (rc || readlen != sizeof(rx)) { in do_verify_xattr_datum() 148 rc, sizeof(rx), readlen, offset); in do_verify_xattr_datum() 205 size_t readlen; in do_load_xattr_datum() local 218 length, &readlen, data); in do_load_xattr_datum() 220 if (ret || length!=readlen) { in do_load_xattr_datum() 222 ret, length, readlen, ref_offset(xd->node)); in do_load_xattr_datum() 444 size_t readlen; in verify_xattr_ref() local 454 rc = jffs2_flash_read(c, offset, sizeof(rr), &readlen, (char *)&rr); in verify_xattr_ref() [all …]
|
D | gc.c | 1009 size_t readlen; in jffs2_garbage_collect_hole() local 1013 ret = jffs2_flash_read(c, ref_offset(fn->raw), sizeof(ri), &readlen, (char *)&ri); in jffs2_garbage_collect_hole() 1014 if (readlen != sizeof(ri) || ret) { in jffs2_garbage_collect_hole() 1016 ret, readlen); in jffs2_garbage_collect_hole()
|
/fs/ocfs2/dlmfs/ |
D | dlmfs.c | 246 ssize_t readlen, got; in dlmfs_file_read() local 264 readlen = i_size_read(inode) - *ppos; in dlmfs_file_read() 266 readlen = count; in dlmfs_file_read() 268 lvb_buf = kmalloc(readlen, GFP_NOFS); in dlmfs_file_read() 272 got = user_dlm_read_lvb(inode, lvb_buf, readlen); in dlmfs_file_read() 274 BUG_ON(got != readlen); in dlmfs_file_read() 275 bytes_left = __copy_to_user(buf, lvb_buf, readlen); in dlmfs_file_read() 276 readlen -= bytes_left; in dlmfs_file_read() 278 readlen = 0; in dlmfs_file_read() 282 *ppos = *ppos + readlen; in dlmfs_file_read() [all …]
|