Home
last modified time | relevance | path

Searched refs:compr_type (Results 1 – 17 of 17) sorted by relevance

/openbmc/linux/fs/ubifs/
H A Dcompress.c23 .compr_type = UBIFS_COMPR_NONE,
32 .compr_type = UBIFS_COMPR_LZO,
39 .compr_type = UBIFS_COMPR_LZO,
49 .compr_type = UBIFS_COMPR_ZLIB,
57 .compr_type = UBIFS_COMPR_ZLIB,
67 .compr_type = UBIFS_COMPR_ZSTD,
75 .compr_type = UBIFS_COMPR_ZSTD,
107 if (*compr_type == UBIFS_COMPR_NONE) in ubifs_compress()
138 *compr_type = UBIFS_COMPR_NONE; in ubifs_compress()
159 if (unlikely(compr_type < 0 || compr_type >= UBIFS_COMPR_TYPES_CNT)) { in ubifs_decompress()
[all …]
H A Dmisc.h101 static inline int ubifs_compr_present(struct ubifs_info *c, int compr_type) in ubifs_compr_present() argument
103 ubifs_assert(c, compr_type >= 0 && compr_type < UBIFS_COMPR_TYPES_CNT); in ubifs_compr_present()
104 return !!ubifs_compressors[compr_type]->capi_name; in ubifs_compr_present()
114 static inline const char *ubifs_compr_name(struct ubifs_info *c, int compr_type) in ubifs_compr_name() argument
116 ubifs_assert(c, compr_type >= 0 && compr_type < UBIFS_COMPR_TYPES_CNT); in ubifs_compr_name()
117 return ubifs_compressors[compr_type]->name; in ubifs_compr_name()
H A Djournal.c467 ino->compr_type = cpu_to_le16(ui->compr_type); in pack_inode()
727 int err, lnum, offs, compr_type, out_len, compr_len, auth_len; in ubifs_jnl_write_data() local
763 compr_type = UBIFS_COMPR_NONE; in ubifs_jnl_write_data()
765 compr_type = ui->compr_type; in ubifs_jnl_write_data()
768 ubifs_compress(c, buf, len, &data->data, &compr_len, &compr_type); in ubifs_jnl_write_data()
787 data->compr_type = cpu_to_le16(compr_type); in ubifs_jnl_write_data()
1489 int err, dlen, compr_type, out_len, data_size; in truncate_data_node() local
1498 compr_type = le16_to_cpu(dn->compr_type); in truncate_data_node()
1506 if (compr_type == UBIFS_COMPR_NONE) { in truncate_data_node()
1513 ubifs_compress(c, buf, *new_len, &dn->data, &out_len, &compr_type); in truncate_data_node()
[all …]
H A Dsuper.c84 if (ui->compr_type >= UBIFS_COMPR_TYPES_CNT) { in validate_inode()
85 ubifs_err(c, "unknown compression type %d", ui->compr_type); in validate_inode()
98 if (!ubifs_compr_present(c, ui->compr_type)) { in validate_inode()
100 inode->i_ino, ubifs_compr_name(c, ui->compr_type)); in validate_inode()
156 ui->compr_type = le16_to_cpu(ino->compr_type); in ubifs_iget()
458 ubifs_compr_name(c, c->mount_opts.compr_type)); in ubifs_show_options()
1087 c->mount_opts.compr_type = UBIFS_COMPR_NONE; in ubifs_parse_options()
1089 c->mount_opts.compr_type = UBIFS_COMPR_LZO; in ubifs_parse_options()
1091 c->mount_opts.compr_type = UBIFS_COMPR_ZLIB; in ubifs_parse_options()
1093 c->mount_opts.compr_type = UBIFS_COMPR_ZSTD; in ubifs_parse_options()
[all …]
H A Dubifs-media.h536 __le16 compr_type; member
581 __le16 compr_type; member
H A Dubifs.h420 unsigned int compr_type:2; member
851 int compr_type; member
965 unsigned int compr_type:2; member
2105 void *out_buf, int *out_len, int *compr_type);
2107 void *out, int *out_len, int compr_type);
H A Dfile.c78 le16_to_cpu(dn->compr_type)); in read_block()
651 le16_to_cpu(dn->compr_type)); in populate_page()
H A Ddir.c137 ui->compr_type = c->default_compr; in ubifs_new_inode()
139 ui->compr_type = UBIFS_COMPR_NONE; in ubifs_new_inode()
H A Ddebug.c260 pr_err("\tcompr_type %d\n", ui->compr_type); in ubifs_dump_inode()
467 (int)le16_to_cpu(ino->compr_type)); in ubifs_dump_node()
507 (int)le16_to_cpu(dn->compr_type)); in ubifs_dump_node()
H A Dsb.c210 sup->default_compr = cpu_to_le16(c->mount_opts.compr_type); in create_default_filesystem()
/openbmc/u-boot/fs/ubifs/
H A Dmisc.h100 static inline int ubifs_compr_present(int compr_type) in ubifs_compr_present() argument
102 ubifs_assert(compr_type >= 0 && compr_type < UBIFS_COMPR_TYPES_CNT); in ubifs_compr_present()
103 return !!ubifs_compressors[compr_type]->capi_name; in ubifs_compr_present()
112 static inline const char *ubifs_compr_name(int compr_type) in ubifs_compr_name() argument
114 ubifs_assert(compr_type >= 0 && compr_type < UBIFS_COMPR_TYPES_CNT); in ubifs_compr_name()
115 return ubifs_compressors[compr_type]->name; in ubifs_compr_name()
H A Dubifs.c39 .compr_type = UBIFS_COMPR_NONE,
46 .compr_type = UBIFS_COMPR_LZO,
56 .compr_type = UBIFS_COMPR_ZLIB,
130 if (compr->compr_type == UBIFS_COMPR_NONE) { in crypto_comp_decompress()
172 if (unlikely(compr_type < 0 || compr_type >= UBIFS_COMPR_TYPES_CNT)) { in ubifs_decompress()
173 ubifs_err(c, "invalid compression type %d", compr_type); in ubifs_decompress()
177 compr = ubifs_compressors[compr_type]; in ubifs_decompress()
184 if (compr_type == UBIFS_COMPR_NONE) { in ubifs_decompress()
212 ubifs_compressors[compr->compr_type] = compr; in compr_init()
215 ubifs_compressors[compr->compr_type]->name += gd->reloc_off; in compr_init()
[all …]
H A Dubifs-media.h499 __le16 compr_type; member
549 __le16 compr_type; member
H A Dsuper.c215 if (ui->compr_type >= UBIFS_COMPR_TYPES_CNT) { in validate_inode()
216 ubifs_err(c, "unknown compression type %d", ui->compr_type); in validate_inode()
229 if (!ubifs_compr_present(ui->compr_type)) { in validate_inode()
231 inode->i_ino, ubifs_compr_name(ui->compr_type)); in validate_inode()
309 ui->compr_type = le16_to_cpu(ino->compr_type); in ubifs_iget()
625 ubifs_compr_name(c->mount_opts.compr_type)); in ubifs_show_options()
1211 c->mount_opts.compr_type = UBIFS_COMPR_NONE; in ubifs_parse_options()
1213 c->mount_opts.compr_type = UBIFS_COMPR_LZO; in ubifs_parse_options()
1215 c->mount_opts.compr_type = UBIFS_COMPR_ZLIB; in ubifs_parse_options()
1223 c->default_compr = c->mount_opts.compr_type; in ubifs_parse_options()
H A Dubifs.h1007 unsigned int compr_type:2; member
1432 int compr_type; member
1547 unsigned int compr_type:2; member
2398 void *out_buf, int *out_len, int *compr_type);
2400 void *out, int *out_len, int compr_type);
H A Dsb.c181 sup->default_compr = cpu_to_le16(c->mount_opts.compr_type); in create_default_filesystem()
H A Ddebug.c269 pr_err("\tcompr_type %d\n", ui->compr_type); in ubifs_dump_inode()
445 (int)le16_to_cpu(ino->compr_type)); in ubifs_dump_node()
484 (int)le16_to_cpu(dn->compr_type)); in ubifs_dump_node()