/kernel/linux/linux-5.10/fs/ubifs/ |
H A D | compress.c | 105 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 in ubifs_decompress() 197 compr_init(struct ubifs_compressor *compr) compr_init() argument 216 compr_exit(struct ubifs_compressor *compr) compr_exit() argument [all...] |
/kernel/linux/linux-6.6/fs/ubifs/ |
H A D | compress.c | 105 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 in ubifs_decompress() 197 compr_init(struct ubifs_compressor *compr) compr_init() argument 216 compr_exit(struct ubifs_compressor *compr) compr_exit() argument [all...] |
/kernel/linux/linux-6.6/sound/soc/codecs/ |
H A D | wm_adsp.c | 151 struct wm_adsp_compr *compr; member 1190 static inline int wm_adsp_compr_attached(struct wm_adsp_compr *compr) in wm_adsp_compr_attached() argument 1192 return compr->buf != NULL; in wm_adsp_compr_attached() 1195 static int wm_adsp_compr_attach(struct wm_adsp_compr *compr) in wm_adsp_compr_attach() argument 1199 if (compr->dsp->fatal_error) in wm_adsp_compr_attach() 1202 list_for_each_entry(tmp, &compr->dsp->buffer_list, list) { in wm_adsp_compr_attach() 1203 if (!tmp->name || !strcmp(compr->name, tmp->name)) { in wm_adsp_compr_attach() 1212 compr->buf = buf; in wm_adsp_compr_attach() 1213 buf->compr = compr; in wm_adsp_compr_attach() 1218 wm_adsp_compr_detach(struct wm_adsp_compr *compr) wm_adsp_compr_detach() argument 1235 struct wm_adsp_compr *compr, *tmp; wm_adsp_compr_open() local 1288 struct wm_adsp_compr *compr = stream->runtime->private_data; wm_adsp_compr_free() local 1308 struct wm_adsp_compr *compr = stream->runtime->private_data; wm_adsp_compr_check_params() local 1355 wm_adsp_compr_frag_words(struct wm_adsp_compr *compr) wm_adsp_compr_frag_words() argument 1364 struct wm_adsp_compr *compr = stream->runtime->private_data; wm_adsp_compr_set_params() local 1392 struct wm_adsp_compr *compr = stream->runtime->private_data; wm_adsp_compr_get_caps() local 1703 struct wm_adsp_compr *compr = stream->runtime->private_data; wm_adsp_compr_trigger() local 1804 struct wm_adsp_compr *compr; wm_adsp_compr_handle_irq() local 1868 struct wm_adsp_compr *compr = stream->runtime->private_data; wm_adsp_compr_pointer() local 1925 wm_adsp_buffer_capture_block(struct wm_adsp_compr *compr, int target) wm_adsp_buffer_capture_block() argument 1980 wm_adsp_compr_read(struct wm_adsp_compr *compr, char __user *buf, size_t count) wm_adsp_compr_read() argument 2027 struct wm_adsp_compr *compr = stream->runtime->private_data; wm_adsp_compr_copy() local 2047 struct wm_adsp_compr *compr; wm_adsp_fatal_error() local [all...] |
/kernel/linux/linux-6.6/sound/core/ |
H A D | compress_offload.c | 77 struct snd_compr *compr; in snd_compr_open() local 92 compr = snd_lookup_minor_data(iminor(inode), in snd_compr_open() 97 if (compr == NULL) { in snd_compr_open() 102 if (dirn != compr->direction) { in snd_compr_open() 104 snd_card_unref(compr->card); in snd_compr_open() 110 snd_card_unref(compr->card); in snd_compr_open() 116 data->stream.ops = compr->ops; in snd_compr_open() 118 data->stream.private_data = compr->private_data; in snd_compr_open() 119 data->stream.device = compr; in snd_compr_open() 123 snd_card_unref(compr in snd_compr_open() 1062 struct snd_compr *compr; snd_compress_dev_register() local 1084 struct snd_compr *compr; snd_compress_dev_disconnect() local 1095 struct snd_compr *compr = (struct snd_compr *)entry->private_data; snd_compress_proc_info_read() local 1105 snd_compress_proc_init(struct snd_compr *compr) snd_compress_proc_init() argument 1128 snd_compress_proc_done(struct snd_compr *compr) snd_compress_proc_done() argument 1136 snd_compress_set_id(struct snd_compr *compr, const char *id) snd_compress_set_id() argument 1141 snd_compress_proc_init(struct snd_compr *compr) snd_compress_proc_init() argument 1146 snd_compress_proc_done(struct snd_compr *compr) snd_compress_proc_done() argument 1150 snd_compress_set_id(struct snd_compr *compr, const char *id) snd_compress_set_id() argument 1157 struct snd_compr *compr; snd_compress_dev_free() local 1175 snd_compress_new(struct snd_card *card, int device, int dirn, const char *id, struct snd_compr *compr) snd_compress_new() argument [all...] |
/kernel/linux/linux-5.10/sound/core/ |
H A D | compress_offload.c | 79 struct snd_compr *compr; in snd_compr_open() local 94 compr = snd_lookup_minor_data(iminor(inode), in snd_compr_open() 99 if (compr == NULL) { in snd_compr_open() 104 if (dirn != compr->direction) { in snd_compr_open() 106 snd_card_unref(compr->card); in snd_compr_open() 112 snd_card_unref(compr->card); in snd_compr_open() 118 data->stream.ops = compr->ops; in snd_compr_open() 120 data->stream.private_data = compr->private_data; in snd_compr_open() 121 data->stream.device = compr; in snd_compr_open() 125 snd_card_unref(compr in snd_compr_open() 1036 struct snd_compr *compr; snd_compress_dev_register() local 1058 struct snd_compr *compr; snd_compress_dev_disconnect() local 1069 struct snd_compr *compr = (struct snd_compr *)entry->private_data; snd_compress_proc_info_read() local 1079 snd_compress_proc_init(struct snd_compr *compr) snd_compress_proc_init() argument 1102 snd_compress_proc_done(struct snd_compr *compr) snd_compress_proc_done() argument 1110 snd_compress_set_id(struct snd_compr *compr, const char *id) snd_compress_set_id() argument 1115 snd_compress_proc_init(struct snd_compr *compr) snd_compress_proc_init() argument 1120 snd_compress_proc_done(struct snd_compr *compr) snd_compress_proc_done() argument 1124 snd_compress_set_id(struct snd_compr *compr, const char *id) snd_compress_set_id() argument 1131 struct snd_compr *compr; snd_compress_dev_free() local 1146 snd_compress_new(struct snd_card *card, int device, int dirn, const char *id, struct snd_compr *compr) snd_compress_new() argument [all...] |
/kernel/linux/linux-5.10/fs/jffs2/ |
H A D | compr.c | 17 #include "compr.h" 43 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() 60 * @compr: Explicit compression type to use (ie, JFFS2_COMPR_ZLIB). 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() [all...] |
H A D | read.c | 21 #include "compr.h" 65 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->csize), je32_to_cpu(ri->dsize)); in jffs2_read_dnode()
|
H A D | super.c | 31 #include "compr.h" 65 static const char *jffs2_compr_name(unsigned int compr) in jffs2_compr_name() argument 67 switch (compr) { in jffs2_compr_name() 91 seq_printf(s, ",compr=%s", jffs2_compr_name(opts->compr)); in jffs2_show_options() 183 fsparam_enum ("compr", Opt_override_compr, jffs2_param_compr), 200 c->mount_opts.compr = result.uint_32; in jffs2_parse_param() 224 c->mount_opts.compr = new_c->mount_opts.compr; in jffs2_update_mount_opts()
|
H A D | Makefile | 9 jffs2-y := compr.o dir.o file.o ioctl.o nodelist.o malloc.o
|
H A D | compr.h | 52 char compr; /* JFFS2_COMPR_XXX */ member 59 unsigned char *compr_buf; /* used by size compr. mode */ 60 uint32_t compr_buf_size; /* used by size compr. mode */
|
H A D | compr_rtime.c | 29 #include "compr.h" 115 .compr = JFFS2_COMPR_RTIME,
|
H A D | compr_lzo.c | 18 #include "compr.h" 85 .compr = JFFS2_COMPR_LZO,
|
/kernel/linux/linux-6.6/fs/jffs2/ |
H A D | compr.c | 17 #include "compr.h" 43 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() 60 * @compr: Explicit compression type to use (ie, JFFS2_COMPR_ZLIB). 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() [all...] |
H A D | read.c | 21 #include "compr.h" 65 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->csize), je32_to_cpu(ri->dsize)); in jffs2_read_dnode()
|
H A D | super.c | 31 #include "compr.h" 64 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() 182 fsparam_enum ("compr", Opt_override_compr, jffs2_param_compr), 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()
|
H A D | Makefile | 9 jffs2-y := compr.o dir.o file.o ioctl.o nodelist.o malloc.o
|
H A D | compr.h | 52 char compr; /* JFFS2_COMPR_XXX */ member 59 unsigned char *compr_buf; /* used by size compr. mode */ 60 uint32_t compr_buf_size; /* used by size compr. mode */
|
H A D | compr_rtime.c | 29 #include "compr.h" 115 .compr = JFFS2_COMPR_RTIME,
|
/kernel/linux/linux-5.10/sound/soc/codecs/ |
H A D | wm_adsp.c | 442 struct wm_adsp_compr *compr; member 3447 static inline int wm_adsp_compr_attached(struct wm_adsp_compr *compr) in wm_adsp_compr_attached() argument 3449 return compr->buf != NULL; in wm_adsp_compr_attached() 3452 static int wm_adsp_compr_attach(struct wm_adsp_compr *compr) in wm_adsp_compr_attach() argument 3456 if (compr->dsp->fatal_error) in wm_adsp_compr_attach() 3459 list_for_each_entry(tmp, &compr->dsp->buffer_list, list) { in wm_adsp_compr_attach() 3460 if (!tmp->name || !strcmp(compr->name, tmp->name)) { in wm_adsp_compr_attach() 3469 compr->buf = buf; in wm_adsp_compr_attach() 3470 buf->compr = compr; in wm_adsp_compr_attach() 3475 wm_adsp_compr_detach(struct wm_adsp_compr *compr) wm_adsp_compr_detach() argument 3492 struct wm_adsp_compr *compr, *tmp; wm_adsp_compr_open() local 3545 struct wm_adsp_compr *compr = stream->runtime->private_data; wm_adsp_compr_free() local 3565 struct wm_adsp_compr *compr = stream->runtime->private_data; wm_adsp_compr_check_params() local 3612 wm_adsp_compr_frag_words(struct wm_adsp_compr *compr) wm_adsp_compr_frag_words() argument 3621 struct wm_adsp_compr *compr = stream->runtime->private_data; wm_adsp_compr_set_params() local 3649 struct wm_adsp_compr *compr = stream->runtime->private_data; wm_adsp_compr_get_caps() local 4019 struct wm_adsp_compr *compr = stream->runtime->private_data; wm_adsp_compr_trigger() local 4120 struct wm_adsp_compr *compr; wm_adsp_compr_handle_irq() local 4184 struct wm_adsp_compr *compr = stream->runtime->private_data; wm_adsp_compr_pointer() local 4241 wm_adsp_buffer_capture_block(struct wm_adsp_compr *compr, int target) wm_adsp_buffer_capture_block() argument 4296 wm_adsp_compr_read(struct wm_adsp_compr *compr, char __user *buf, size_t count) wm_adsp_compr_read() argument 4343 struct wm_adsp_compr *compr = stream->runtime->private_data; wm_adsp_compr_copy() local 4362 struct wm_adsp_compr *compr; wm_adsp_fatal_error() local [all...] |
/kernel/linux/linux-6.6/sound/soc/ |
H A D | soc-compress.c | 545 struct snd_compr *compr; in snd_soc_new_compress() local 595 compr = devm_kzalloc(rtd->card->dev, sizeof(*compr), GFP_KERNEL); in snd_soc_new_compress() 596 if (!compr) in snd_soc_new_compress() 599 compr->ops = devm_kzalloc(rtd->card->dev, sizeof(soc_compr_ops), in snd_soc_new_compress() 601 if (!compr->ops) in snd_soc_new_compress() 627 memcpy(compr->ops, &soc_compr_dyn_ops, sizeof(soc_compr_dyn_ops)); in snd_soc_new_compress() 632 memcpy(compr->ops, &soc_compr_ops, sizeof(soc_compr_ops)); in snd_soc_new_compress() 640 compr->ops->copy = snd_soc_component_compr_copy; in snd_soc_new_compress() 645 new_name, compr); in snd_soc_new_compress() [all...] |
/kernel/linux/linux-5.10/sound/soc/uniphier/ |
H A D | aio-compress.c | 26 struct snd_compr *compr = rtd->compr; in uniphier_aio_comprdma_new() local 27 struct device *dev = compr->card->dev; in uniphier_aio_comprdma_new() 29 struct uniphier_aio_sub *sub = &aio->sub[compr->direction]; in uniphier_aio_comprdma_new() 59 struct snd_compr *compr = rtd->compr; in uniphier_aio_comprdma_free() local 60 struct device *dev = compr->card->dev; in uniphier_aio_comprdma_free() 62 struct uniphier_aio_sub *sub = &aio->sub[compr->direction]; in uniphier_aio_comprdma_free() 335 struct device *carddev = rtd->compr->card->dev; in uniphier_aio_compr_copy()
|
/kernel/linux/linux-6.6/sound/soc/uniphier/ |
H A D | aio-compress.c | 26 struct snd_compr *compr = rtd->compr; in uniphier_aio_comprdma_new() local 27 struct device *dev = compr->card->dev; in uniphier_aio_comprdma_new() 29 struct uniphier_aio_sub *sub = &aio->sub[compr->direction]; in uniphier_aio_comprdma_new() 59 struct snd_compr *compr = rtd->compr; in uniphier_aio_comprdma_free() local 60 struct device *dev = compr->card->dev; in uniphier_aio_comprdma_free() 62 struct uniphier_aio_sub *sub = &aio->sub[compr->direction]; in uniphier_aio_comprdma_free() 330 struct device *carddev = rtd->compr->card->dev; in uniphier_aio_compr_copy()
|
/kernel/linux/linux-5.10/sound/soc/ |
H A D | soc-compress.c | 755 struct snd_compr *compr; in snd_soc_new_compress() local 798 compr = devm_kzalloc(rtd->card->dev, sizeof(*compr), GFP_KERNEL); in snd_soc_new_compress() 799 if (!compr) in snd_soc_new_compress() 802 compr->ops = devm_kzalloc(rtd->card->dev, sizeof(soc_compr_ops), in snd_soc_new_compress() 804 if (!compr->ops) in snd_soc_new_compress() 827 memcpy(compr->ops, &soc_compr_dyn_ops, sizeof(soc_compr_dyn_ops)); in snd_soc_new_compress() 832 memcpy(compr->ops, &soc_compr_ops, sizeof(soc_compr_ops)); in snd_soc_new_compress() 840 compr->ops->copy = soc_compr_copy; in snd_soc_new_compress() 844 mutex_init(&compr in snd_soc_new_compress() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce60/ |
H A D | dce60_hw_sequencer.c | 123 struct compressor *compr = dc->fbc_compressor; in dce60_enable_fbc() local 129 compr->compr_surface_address.quad_part = dc->ctx->fbc_gpu_addr; in dce60_enable_fbc() 131 compr->funcs->surface_address_and_pitch(compr, ¶ms); in dce60_enable_fbc() 132 compr->funcs->set_fbc_invalidation_triggers(compr, 1); in dce60_enable_fbc() 134 compr->funcs->enable_fbc(compr, ¶ms); in dce60_enable_fbc()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dce60/ |
H A D | dce60_hw_sequencer.c | 123 struct compressor *compr = dc->fbc_compressor; in dce60_enable_fbc() local 129 compr->compr_surface_address.quad_part = dc->ctx->fbc_gpu_addr; in dce60_enable_fbc() 131 compr->funcs->surface_address_and_pitch(compr, ¶ms); in dce60_enable_fbc() 132 compr->funcs->set_fbc_invalidation_triggers(compr, 1); in dce60_enable_fbc() 134 compr->funcs->enable_fbc(compr, ¶ms); in dce60_enable_fbc()
|