Lines Matching refs:datalen

61 					   uint32_t datalen, int alloc_mode)  in jffs2_write_dnode()  argument
80 vecs[1].iov_len = datalen; in jffs2_write_dnode()
82 if (je32_to_cpu(ri->totlen) != sizeof(*ri) + datalen) { in jffs2_write_dnode()
85 sizeof(*ri), datalen); in jffs2_write_dnode()
93 if (!datalen || !data) in jffs2_write_dnode()
112 if (ret || (retlen != sizeof(*ri) + datalen)) { in jffs2_write_dnode()
114 sizeof(*ri) + datalen, flash_ofs, ret, retlen); in jffs2_write_dnode()
123 jffs2_add_physical_node_ref(c, flash_ofs | REF_OBSOLETE, PAD(sizeof(*ri)+datalen), NULL); in jffs2_write_dnode()
141 ret = jffs2_reserve_space_gc(c, sizeof(*ri) + datalen, &dummy, in jffs2_write_dnode()
148 ret = jffs2_reserve_space(c, sizeof(*ri) + datalen, &dummy, in jffs2_write_dnode()
182 fn->raw = jffs2_add_physical_node_ref(c, flash_ofs, PAD(sizeof(*ri)+datalen), f->inocache); in jffs2_write_dnode()
355 uint32_t datalen, cdatalen; in jffs2_write_inode_range() local
369 datalen = min_t(uint32_t, writelen, in jffs2_write_inode_range()
371 cdatalen = min_t(uint32_t, alloclen - sizeof(*ri), datalen); in jffs2_write_inode_range()
373 comprtype = jffs2_compress(c, f, buf, &comprbuf, &datalen, &cdatalen); in jffs2_write_inode_range()
382 ri->isize = cpu_to_je32(max(je32_to_cpu(ri->isize), offset + datalen)); in jffs2_write_inode_range()
385 ri->dsize = cpu_to_je32(datalen); in jffs2_write_inode_range()
426 if (!datalen) { in jffs2_write_inode_range()
431 jffs2_dbg(1, "increasing writtenlen by %d\n", datalen); in jffs2_write_inode_range()
432 writtenlen += datalen; in jffs2_write_inode_range()
433 offset += datalen; in jffs2_write_inode_range()
434 writelen -= datalen; in jffs2_write_inode_range()
435 buf += datalen; in jffs2_write_inode_range()