Home
last modified time | relevance | path

Searched refs:compressor (Results 1 – 16 of 16) sorted by relevance

/drivers/gpu/drm/amd/display/dc/dce112/
Ddce112_compressor.c319 void dce112_compressor_power_up_fbc(struct compressor *compressor) in dce112_compressor_power_up_fbc() argument
325 value = dm_read_reg(compressor->ctx, addr); in dce112_compressor_power_up_fbc()
329 if (compressor->options.bits.CLK_GATING_DISABLED == 1) { in dce112_compressor_power_up_fbc()
337 dm_write_reg(compressor->ctx, addr, value); in dce112_compressor_power_up_fbc()
340 value = dm_read_reg(compressor->ctx, addr); in dce112_compressor_power_up_fbc()
344 dm_write_reg(compressor->ctx, addr, value); in dce112_compressor_power_up_fbc()
347 value = dm_read_reg(compressor->ctx, addr); in dce112_compressor_power_up_fbc()
349 dm_write_reg(compressor->ctx, addr, value); in dce112_compressor_power_up_fbc()
355 dm_write_reg(compressor->ctx, addr, value); in dce112_compressor_power_up_fbc()
356 compressor->min_compress_ratio = FBC_COMPRESS_RATIO_1TO1; in dce112_compressor_power_up_fbc()
[all …]
Ddce112_compressor.h30 #define TO_DCE112_COMPRESSOR(compressor)\ argument
31 container_of(compressor, struct dce112_compressor, base)
39 struct compressor base;
43 struct compressor *dce112_compressor_create(struct dc_context *ctx);
48 void dce112_compressor_destroy(struct compressor **cp);
51 void dce112_compressor_power_up_fbc(struct compressor *cp);
53 void dce112_compressor_enable_fbc(struct compressor *cp, uint32_t paths_num,
56 void dce112_compressor_disable_fbc(struct compressor *cp);
58 void dce112_compressor_set_fbc_invalidation_triggers(struct compressor *cp,
62 struct compressor *cp,
[all …]
/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_compressor.c73 static void reset_lb_on_vblank(struct compressor *compressor, uint32_t crtc_inst) in reset_lb_on_vblank() argument
79 struct dce110_compressor *cp110 = TO_DCE110_COMPRESSOR(compressor); in reset_lb_on_vblank()
83 status_pos = dm_read_reg(compressor->ctx, DCP_REG(mmCRTC_STATUS_POSITION)); in reset_lb_on_vblank()
87 if (status_pos != dm_read_reg(compressor->ctx, DCP_REG(mmCRTC_STATUS_POSITION))) { in reset_lb_on_vblank()
89 value = dm_read_reg(compressor->ctx, DCP_REG(mmLB_SYNC_RESET_SEL)); in reset_lb_on_vblank()
92 dm_write_reg(compressor->ctx, DCP_REG(mmLB_SYNC_RESET_SEL), value); in reset_lb_on_vblank()
94 frame_count = dm_read_reg(compressor->ctx, DCP_REG(mmCRTC_STATUS_FRAME_COUNT)); in reset_lb_on_vblank()
98 if (frame_count != dm_read_reg(compressor->ctx, DCP_REG(mmCRTC_STATUS_FRAME_COUNT))) in reset_lb_on_vblank()
106 value = dm_read_reg(compressor->ctx, DCP_REG(mmLB_SYNC_RESET_SEL)); in reset_lb_on_vblank()
109 dm_write_reg(compressor->ctx, DCP_REG(mmLB_SYNC_RESET_SEL), value); in reset_lb_on_vblank()
[all …]
Ddce110_compressor.h30 #define TO_DCE110_COMPRESSOR(compressor)\ argument
31 container_of(compressor, struct dce110_compressor, base)
39 struct compressor base;
43 struct compressor *dce110_compressor_create(struct dc_context *ctx);
48 void dce110_compressor_destroy(struct compressor **cp);
51 void dce110_compressor_power_up_fbc(struct compressor *cp);
53 void dce110_compressor_enable_fbc(struct compressor *cp,
56 void dce110_compressor_disable_fbc(struct compressor *cp);
58 void dce110_compressor_set_fbc_invalidation_triggers(struct compressor *cp,
62 struct compressor *cp,
[all …]
Ddce110_hw_sequencer.c1933 struct compressor *compr = dc->fbc_compressor; in enable_fbc()
/drivers/gpu/drm/amd/display/dc/inc/
Dcompressor.h62 struct compressor;
66 void (*power_up_fbc)(struct compressor *cp);
67 void (*enable_fbc)(struct compressor *cp,
69 void (*disable_fbc)(struct compressor *cp);
70 void (*set_fbc_invalidation_triggers)(struct compressor *cp,
73 struct compressor *cp,
75 bool (*is_fbc_enabled_in_hw)(struct compressor *cp,
78 struct compressor { struct
/drivers/block/zram/
Dzram_drv.c1002 sz = zcomp_available_show(zram->compressor, buf); in comp_algorithm_show()
1012 char compressor[ARRAY_SIZE(zram->compressor)]; in comp_algorithm_store() local
1015 strlcpy(compressor, buf, sizeof(compressor)); in comp_algorithm_store()
1017 sz = strlen(compressor); in comp_algorithm_store()
1018 if (sz > 0 && compressor[sz - 1] == '\n') in comp_algorithm_store()
1019 compressor[sz - 1] = 0x00; in comp_algorithm_store()
1021 if (!zcomp_available_algorithm(compressor)) in comp_algorithm_store()
1031 strcpy(zram->compressor, compressor); in comp_algorithm_store()
1753 comp = zcomp_create(zram->compressor); in disksize_store()
1756 zram->compressor); in disksize_store()
[all …]
Dzram_drv.h110 char compressor[CRYPTO_MAX_ALG_NAME]; member
/drivers/net/ppp/
Dppp_deflate.c566 extern int ppp_register_compressor (struct compressor *cp);
567 extern void ppp_unregister_compressor (struct compressor *cp);
572 static struct compressor ppp_deflate = {
590 static struct compressor ppp_deflate_draft = {
Dbsd_comp.c192 extern int ppp_register_compressor (struct compressor *cp);
193 extern void ppp_unregister_compressor (struct compressor *cp);
1132 static struct compressor ppp_bsd_compress = {
Dppp_generic.c131 struct compressor *xcomp; /* transmit packet compressor 8c */
133 struct compressor *rcomp; /* receive decompressor 94 */
278 static struct compressor *find_compressor(int type);
2846 struct compressor *cp, *ocomp; in ppp_set_compress()
3000 struct compressor *xcomp, *rcomp; in ppp_ccp_closed()
3030 struct compressor *comp;
3047 ppp_register_compressor(struct compressor *cp) in ppp_register_compressor()
3069 ppp_unregister_compressor(struct compressor *cp) in ppp_unregister_compressor()
3083 static struct compressor *
3087 struct compressor *cp = NULL; in find_compressor()
Dppp_mppe.c633 static struct compressor ppp_mppe = {
/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm.h315 struct dm_compressor_info compressor; member
Damdgpu_dm.c588 struct dm_compressor_info *compressor = &adev->dm.compressor; in amdgpu_dm_fbc_init() local
599 if (compressor->bo_ptr) in amdgpu_dm_fbc_init()
610 AMDGPU_GEM_DOMAIN_GTT, &compressor->bo_ptr, in amdgpu_dm_fbc_init()
611 &compressor->gpu_addr, &compressor->cpu_addr); in amdgpu_dm_fbc_init()
616 adev->dm.dc->ctx->fbc_gpu_addr = compressor->gpu_addr; in amdgpu_dm_fbc_init()
/drivers/gpu/drm/amd/display/dc/dce60/
Ddce60_hw_sequencer.c123 struct compressor *compr = dc->fbc_compressor; in dce60_enable_fbc()
/drivers/gpu/drm/amd/display/dc/
Ddc.h610 struct compressor *fbc_compressor;