Searched refs:cdatalen (Results 1 – 4 of 4) sorted by relevance
/fs/jffs2/ |
D | compr.c | 75 uint32_t *datalen, uint32_t *cdatalen) in jffs2_compress() argument 88 output_buf = kmalloc(*cdatalen,GFP_KERNEL); in jffs2_compress() 94 orig_dlen = *cdatalen; in jffs2_compress() 104 *cdatalen = orig_dlen; in jffs2_compress() 105 compr_ret = this->compress(data_in, output_buf, datalen, cdatalen, NULL); in jffs2_compress() 112 this->stat_compr_new_size += *cdatalen; in jffs2_compress() 123 orig_dlen = *cdatalen; in jffs2_compress() 153 *cdatalen = orig_dlen; in jffs2_compress() 154 compr_ret = this->compress(data_in, this->compr_buf, datalen, cdatalen, NULL); in jffs2_compress() 158 if (((!best_dlen) || jffs2_is_best_compression(this, best, *cdatalen, best_dlen)) in jffs2_compress() [all …]
|
D | compr.h | 53 uint32_t cdatalen, uint32_t datalen, void *model); 72 uint32_t *datalen, uint32_t *cdatalen); 76 unsigned char *data_out, uint32_t cdatalen, uint32_t datalen);
|
D | write.c | 345 uint32_t datalen, cdatalen; in jffs2_write_inode_range() local 359 cdatalen = min_t(uint32_t, alloclen - sizeof(*ri), datalen); in jffs2_write_inode_range() 361 comprtype = jffs2_compress(c, f, buf, &comprbuf, &datalen, &cdatalen); in jffs2_write_inode_range() 365 ri->totlen = cpu_to_je32(sizeof(*ri) + cdatalen); in jffs2_write_inode_range() 372 ri->csize = cpu_to_je32(cdatalen); in jffs2_write_inode_range() 377 ri->data_crc = cpu_to_je32(crc32(0, comprbuf, cdatalen)); in jffs2_write_inode_range() 379 fn = jffs2_write_dnode(c, f, ri, comprbuf, cdatalen, ALLOC_NORETRY); in jffs2_write_inode_range()
|
D | gc.c | 1250 uint32_t cdatalen; in jffs2_garbage_collect_dnode() local 1261 cdatalen = min_t(uint32_t, alloclen - sizeof(ri), end - offset); in jffs2_garbage_collect_dnode() 1266 comprtype = jffs2_compress(c, f, writebuf, &comprbuf, &datalen, &cdatalen); in jffs2_garbage_collect_dnode() 1270 ri.totlen = cpu_to_je32(sizeof(ri) + cdatalen); in jffs2_garbage_collect_dnode() 1283 ri.csize = cpu_to_je32(cdatalen); in jffs2_garbage_collect_dnode() 1288 ri.data_crc = cpu_to_je32(crc32(0, comprbuf, cdatalen)); in jffs2_garbage_collect_dnode() 1290 new_fn = jffs2_write_dnode(c, f, &ri, comprbuf, cdatalen, ALLOC_GC); in jffs2_garbage_collect_dnode()
|