Lines Matching refs:mixer
27 static void sun8i_ui_layer_update_alpha(struct sun8i_mixer *mixer, int channel, in sun8i_ui_layer_update_alpha() argument
32 ch_base = sun8i_channel_base(mixer, channel); in sun8i_ui_layer_update_alpha()
43 regmap_update_bits(mixer->engine.regs, in sun8i_ui_layer_update_alpha()
48 static int sun8i_ui_layer_update_coord(struct sun8i_mixer *mixer, int channel, in sun8i_ui_layer_update_coord() argument
61 bld_base = sun8i_blender_base(mixer); in sun8i_ui_layer_update_coord()
62 ch_base = sun8i_channel_base(mixer, channel); in sun8i_ui_layer_update_coord()
79 regmap_write(mixer->engine.regs, in sun8i_ui_layer_update_coord()
82 regmap_write(mixer->engine.regs, in sun8i_ui_layer_update_coord()
94 sun8i_ui_scaler_setup(mixer, channel, src_w, src_h, dst_w, in sun8i_ui_layer_update_coord()
96 sun8i_ui_scaler_enable(mixer, channel, true); in sun8i_ui_layer_update_coord()
99 sun8i_ui_scaler_enable(mixer, channel, false); in sun8i_ui_layer_update_coord()
106 regmap_write(mixer->engine.regs, in sun8i_ui_layer_update_coord()
109 regmap_write(mixer->engine.regs, in sun8i_ui_layer_update_coord()
116 static int sun8i_ui_layer_update_formats(struct sun8i_mixer *mixer, int channel, in sun8i_ui_layer_update_formats() argument
124 ch_base = sun8i_channel_base(mixer, channel); in sun8i_ui_layer_update_formats()
134 regmap_update_bits(mixer->engine.regs, in sun8i_ui_layer_update_formats()
141 static int sun8i_ui_layer_update_buffer(struct sun8i_mixer *mixer, int channel, in sun8i_ui_layer_update_buffer() argument
151 ch_base = sun8i_channel_base(mixer, channel); in sun8i_ui_layer_update_buffer()
168 regmap_write(mixer->engine.regs, in sun8i_ui_layer_update_buffer()
174 regmap_write(mixer->engine.regs, in sun8i_ui_layer_update_buffer()
202 if (layer->mixer->cfg->scaler_mask & BIT(layer->channel)) { in sun8i_ui_layer_atomic_check()
221 struct sun8i_mixer *mixer = layer->mixer; in sun8i_ui_layer_atomic_update() local
226 sun8i_ui_layer_update_coord(mixer, layer->channel, in sun8i_ui_layer_atomic_update()
228 sun8i_ui_layer_update_alpha(mixer, layer->channel, in sun8i_ui_layer_atomic_update()
230 sun8i_ui_layer_update_formats(mixer, layer->channel, in sun8i_ui_layer_atomic_update()
232 sun8i_ui_layer_update_buffer(mixer, layer->channel, in sun8i_ui_layer_atomic_update()
279 struct sun8i_mixer *mixer, in sun8i_ui_layer_init_one() argument
283 int channel = mixer->cfg->vi_num + index; in sun8i_ui_layer_init_one()
306 plane_cnt = mixer->cfg->ui_num + mixer->cfg->vi_num; in sun8i_ui_layer_init_one()
322 layer->mixer = mixer; in sun8i_ui_layer_init_one()