Home
last modified time | relevance | path

Searched refs:compr (Results 1 – 19 of 19) sorted by relevance

/fs/ubifs/
Dcompress.c105 struct ubifs_compressor *compr = ubifs_compressors[*compr_type]; in ubifs_compress() local
114 if (compr->comp_mutex) in ubifs_compress()
115 mutex_lock(compr->comp_mutex); in ubifs_compress()
116 err = crypto_comp_compress(compr->cc, in_buf, in_len, out_buf, in ubifs_compress()
118 if (compr->comp_mutex) in ubifs_compress()
119 mutex_unlock(compr->comp_mutex); in ubifs_compress()
122 in_len, compr->name, err); in ubifs_compress()
157 struct ubifs_compressor *compr; in ubifs_decompress() local
164 compr = ubifs_compressors[compr_type]; in ubifs_decompress()
166 if (unlikely(!compr->capi_name)) { in ubifs_decompress()
[all …]
/fs/jffs2/
Dcompr.c43 if ((this->compr == JFFS2_COMPR_LZO) && (bestsize > size)) in jffs2_is_best_compression()
45 if ((best->compr != JFFS2_COMPR_LZO) && (bestsize > size)) in jffs2_is_best_compression()
47 if ((this->compr == JFFS2_COMPR_LZO) && (bestsize > (size * FAVOUR_LZO_PERCENT / 100))) in jffs2_is_best_compression()
74 static int jffs2_selected_compress(u8 compr, unsigned char *data_in, in jffs2_selected_compress() argument
96 if (compr && (compr != this->compr)) in jffs2_selected_compress()
114 ret = this->compr; in jffs2_selected_compress()
160 mode = c->mount_opts.compr; in jffs2_compress()
227 ret = best->compr; in jffs2_compress()
277 if (comprtype == this->compr) { in jffs2_decompress()
Dread.c65 if (ri->compr == JFFS2_COMPR_ZERO && !je32_to_cpu(ri->dsize) && in jffs2_read_dnode()
79 if (ri->compr == JFFS2_COMPR_ZERO) { in jffs2_read_dnode()
90 if (ri->compr == JFFS2_COMPR_NONE && len == je32_to_cpu(ri->dsize)) { in jffs2_read_dnode()
99 if (ri->compr != JFFS2_COMPR_NONE) { in jffs2_read_dnode()
131 if (ri->compr != JFFS2_COMPR_NONE) { in jffs2_read_dnode()
135 …ret = jffs2_decompress(c, f, ri->compr | (ri->usercompr << 8), readbuf, decomprbuf, je32_to_cpu(ri… in jffs2_read_dnode()
Dsuper.c64 static const char *jffs2_compr_name(unsigned int compr) in jffs2_compr_name() argument
66 switch (compr) { in jffs2_compr_name()
90 seq_printf(s, ",compr=%s", jffs2_compr_name(opts->compr)); in jffs2_show_options()
199 c->mount_opts.compr = result.uint_32; in jffs2_parse_param()
223 c->mount_opts.compr = new_c->mount_opts.compr; in jffs2_update_mount_opts()
DMakefile9 jffs2-y := compr.o dir.o file.o ioctl.o nodelist.o malloc.o
Dcompr.h52 char compr; /* JFFS2_COMPR_XXX */ member
Dcompr_lzo.c85 .compr = JFFS2_COMPR_LZO,
Dcompr_rtime.c115 .compr = JFFS2_COMPR_RTIME,
Dcompr_rubin.c411 .compr = JFFS2_COMPR_DYNRUBIN,
434 .compr = JFFS2_COMPR_RUBINMIPS,
Djffs2_fs_sb.h34 unsigned int compr; member
Dcompr_zlib.c193 .compr = JFFS2_COMPR_ZLIB,
Dgc.c830 ri.compr = JFFS2_COMPR_NONE; in jffs2_garbage_collect_metadata()
1061 if (ri.compr != JFFS2_COMPR_ZERO) { in jffs2_garbage_collect_hole()
1080 ri.compr = JFFS2_COMPR_ZERO; in jffs2_garbage_collect_hole()
1379 ri.compr = comprtype & 0xff; in jffs2_garbage_collect_dnode()
Dfs.c122 ri->compr = JFFS2_COMPR_NONE; in jffs2_do_setattr()
125 ri->compr = JFFS2_COMPR_ZERO; in jffs2_do_setattr()
Dfile.c177 ri.compr = JFFS2_COMPR_ZERO; in jffs2_write_begin()
Ddir.c337 ri->compr = JFFS2_COMPR_NONE; in jffs2_symlink()
670 ri->compr = JFFS2_COMPR_NONE; in jffs2_mknod()
Dwrite.c386 ri->compr = comprtype & 0xff; in jffs2_write_inode_range()
Ddebug.c826 printk(JFFS2_DBG "compr:\t%#02x\n", node.i.compr); in __jffs2_dbg_dump_node()
Dreadinode.c851 if (rd->compr == JFFS2_COMPR_ZERO && !je32_to_cpu(rd->dsize) && csize) in read_dnode()
/fs/f2fs/
Dcompress.c929 unsigned int cluster_idx, bool compr) in __f2fs_cluster_blocks() argument
959 if (compr) { in __f2fs_cluster_blocks()
969 !compr && ret != cluster_size && in __f2fs_cluster_blocks()