Home
last modified time | relevance | path

Searched refs:cdatalen (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/fs/jffs2/
Dcompr.c75 unsigned char **cpage_out, u32 *datalen, u32 *cdatalen) in jffs2_selected_compress() argument
82 output_buf = kmalloc(*cdatalen, GFP_KERNEL); in jffs2_selected_compress()
88 orig_dlen = *cdatalen; in jffs2_selected_compress()
107 *cdatalen = orig_dlen; in jffs2_selected_compress()
108 err = this->compress(data_in, output_buf, datalen, cdatalen); in jffs2_selected_compress()
117 this->stat_compr_new_size += *cdatalen; in jffs2_selected_compress()
150 uint32_t *datalen, uint32_t *cdatalen) in jffs2_compress() argument
169 cdatalen); in jffs2_compress()
174 orig_dlen = *cdatalen; in jffs2_compress()
205 *cdatalen = orig_dlen; in jffs2_compress()
[all …]
Dcompr.h56 uint32_t cdatalen, uint32_t datalen);
75 uint32_t *datalen, uint32_t *cdatalen);
79 unsigned char *data_out, uint32_t cdatalen, uint32_t datalen);
Dwrite.c355 uint32_t datalen, cdatalen; in jffs2_write_inode_range() local
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()
377 ri->totlen = cpu_to_je32(sizeof(*ri) + cdatalen); in jffs2_write_inode_range()
384 ri->csize = cpu_to_je32(cdatalen); in jffs2_write_inode_range()
389 ri->data_crc = cpu_to_je32(crc32(0, comprbuf, cdatalen)); in jffs2_write_inode_range()
391 fn = jffs2_write_dnode(c, f, ri, comprbuf, cdatalen, ALLOC_NORETRY); in jffs2_write_inode_range()
Dgc.c1344 uint32_t cdatalen; in jffs2_garbage_collect_dnode() local
1355 cdatalen = min_t(uint32_t, alloclen - sizeof(ri), end - offset); in jffs2_garbage_collect_dnode()
1360 comprtype = jffs2_compress(c, f, writebuf, &comprbuf, &datalen, &cdatalen); in jffs2_garbage_collect_dnode()
1364 ri.totlen = cpu_to_je32(sizeof(ri) + cdatalen); in jffs2_garbage_collect_dnode()
1377 ri.csize = cpu_to_je32(cdatalen); in jffs2_garbage_collect_dnode()
1382 ri.data_crc = cpu_to_je32(crc32(0, comprbuf, cdatalen)); in jffs2_garbage_collect_dnode()
1384 new_fn = jffs2_write_dnode(c, f, &ri, comprbuf, cdatalen, ALLOC_GC); in jffs2_garbage_collect_dnode()