Lines Matching refs:layer
305 void nx_mlc_set_dirty_flag(u32 module_index, u32 layer) in nx_mlc_set_dirty_flag() argument
312 if (layer == 0 || layer == 1) { in nx_mlc_set_dirty_flag()
313 regvalue = pregister->mlcrgblayer[layer].mlccontrol; in nx_mlc_set_dirty_flag()
316 writel(regvalue, &pregister->mlcrgblayer[layer].mlccontrol); in nx_mlc_set_dirty_flag()
317 } else if (layer == 3) { in nx_mlc_set_dirty_flag()
325 int nx_mlc_get_dirty_flag(u32 module_index, u32 layer) in nx_mlc_get_dirty_flag() argument
330 if (layer == 0 || layer == 1) { in nx_mlc_get_dirty_flag()
332 .pregister->mlcrgblayer[layer] in nx_mlc_get_dirty_flag()
334 } else if (layer == 2) { in nx_mlc_get_dirty_flag()
338 } else if (layer == 3) { in nx_mlc_get_dirty_flag()
346 void nx_mlc_set_layer_enable(u32 module_index, u32 layer, int benb) in nx_mlc_set_layer_enable() argument
356 if (layer == 0 || layer == 1) { in nx_mlc_set_layer_enable()
357 regvalue = pregister->mlcrgblayer[layer].mlccontrol; in nx_mlc_set_layer_enable()
361 writel(regvalue, &pregister->mlcrgblayer[layer].mlccontrol); in nx_mlc_set_layer_enable()
362 } else if (layer == 3) { in nx_mlc_set_layer_enable()
371 int nx_mlc_get_layer_enable(u32 module_index, u32 layer) in nx_mlc_get_layer_enable() argument
376 if (layer == 0 || layer == 1) { in nx_mlc_get_layer_enable()
378 .pregister->mlcrgblayer[layer] in nx_mlc_get_layer_enable()
380 } else if (layer == 3) { in nx_mlc_get_layer_enable()
388 void nx_mlc_set_lock_size(u32 module_index, u32 layer, u32 locksize) in nx_mlc_set_lock_size() argument
398 if (layer == 0 || layer == 1) { in nx_mlc_set_lock_size()
399 regvalue = pregister->mlcrgblayer[layer].mlccontrol; in nx_mlc_set_lock_size()
403 writel(regvalue, &pregister->mlcrgblayer[layer].mlccontrol); in nx_mlc_set_lock_size()
407 void nx_mlc_set_alpha_blending(u32 module_index, u32 layer, int benb, u32 alpha) in nx_mlc_set_alpha_blending() argument
419 if (layer == 0 || layer == 1) { in nx_mlc_set_alpha_blending()
420 regvalue = pregister->mlcrgblayer[layer].mlccontrol; in nx_mlc_set_alpha_blending()
424 writel(regvalue, &pregister->mlcrgblayer[layer].mlccontrol); in nx_mlc_set_alpha_blending()
425 regvalue = pregister->mlcrgblayer[layer].mlctpcolor; in nx_mlc_set_alpha_blending()
429 writel(regvalue, &pregister->mlcrgblayer[layer].mlctpcolor); in nx_mlc_set_alpha_blending()
430 } else if (layer == 3) { in nx_mlc_set_alpha_blending()
442 void nx_mlc_set_transparency(u32 module_index, u32 layer, int benb, u32 color) in nx_mlc_set_transparency() argument
454 if (layer == 0 || layer == 1) { in nx_mlc_set_transparency()
455 regvalue = pregister->mlcrgblayer[layer].mlccontrol; in nx_mlc_set_transparency()
459 writel(regvalue, &pregister->mlcrgblayer[layer].mlccontrol); in nx_mlc_set_transparency()
460 regvalue = pregister->mlcrgblayer[layer].mlctpcolor; in nx_mlc_set_transparency()
464 writel(regvalue, &pregister->mlcrgblayer[layer].mlctpcolor); in nx_mlc_set_transparency()
468 void nx_mlc_set_color_inversion(u32 module_index, u32 layer, int benb, in nx_mlc_set_color_inversion() argument
481 if (layer == 0 || layer == 1) { in nx_mlc_set_color_inversion()
482 regvalue = pregister->mlcrgblayer[layer].mlccontrol; in nx_mlc_set_color_inversion()
486 writel(regvalue, &pregister->mlcrgblayer[layer].mlccontrol); in nx_mlc_set_color_inversion()
487 regvalue = pregister->mlcrgblayer[layer].mlcinvcolor; in nx_mlc_set_color_inversion()
491 writel(regvalue, &pregister->mlcrgblayer[layer].mlcinvcolor); in nx_mlc_set_color_inversion()
618 void nx_mlc_set_format_rgb(u32 module_index, u32 layer, in nx_mlc_set_format_rgb() argument
628 if (layer == 0 || layer == 1) { in nx_mlc_set_format_rgb()
629 regvalue = pregister->mlcrgblayer[layer].mlccontrol; in nx_mlc_set_format_rgb()
633 writel(regvalue, &pregister->mlcrgblayer[layer].mlccontrol); in nx_mlc_set_format_rgb()
651 void nx_mlc_set_position(u32 module_index, u32 layer, s32 sx, s32 sy, in nx_mlc_set_position() argument
657 if (layer == 0 || layer == 1) { in nx_mlc_set_position()
659 &pregister->mlcrgblayer[layer].mlcleftright); in nx_mlc_set_position()
662 &pregister->mlcrgblayer[layer].mlctopbottom); in nx_mlc_set_position()
663 } else if (layer == 2) { in nx_mlc_set_position()
669 } else if (layer == 3) { in nx_mlc_set_position()
726 void nx_mlc_set_rgblayer_invalid_position(u32 module_index, u32 layer, in nx_mlc_set_rgblayer_invalid_position() argument
734 if (layer == 0 || layer == 1) { in nx_mlc_set_rgblayer_invalid_position()
738 &pregister->mlcrgblayer[layer] in nx_mlc_set_rgblayer_invalid_position()
742 &pregister->mlcrgblayer[layer] in nx_mlc_set_rgblayer_invalid_position()
747 &pregister->mlcrgblayer[layer] in nx_mlc_set_rgblayer_invalid_position()
751 &pregister->mlcrgblayer[layer] in nx_mlc_set_rgblayer_invalid_position()
757 void nx_mlc_set_rgblayer_stride(u32 module_index, u32 layer, s32 hstride, in nx_mlc_set_rgblayer_stride() argument
763 if (layer == 0 || layer == 1) { in nx_mlc_set_rgblayer_stride()
764 writel(hstride, &pregister->mlcrgblayer[layer].mlchstride); in nx_mlc_set_rgblayer_stride()
765 writel(vstride, &pregister->mlcrgblayer[layer].mlcvstride); in nx_mlc_set_rgblayer_stride()
766 } else if (layer == 2) { in nx_mlc_set_rgblayer_stride()
772 void nx_mlc_set_rgblayer_address(u32 module_index, u32 layer, u32 addr) in nx_mlc_set_rgblayer_address() argument
777 if (layer == 0 || layer == 1) in nx_mlc_set_rgblayer_address()
778 writel(addr, &pregister->mlcrgblayer[layer].mlcaddress); in nx_mlc_set_rgblayer_address()
779 else if (layer == 2) in nx_mlc_set_rgblayer_address()
1639 void nx_mlc_set_layer_alpha256(u32 module_index, u32 layer, u32 alpha) in nx_mlc_set_layer_alpha256() argument
1650 if (layer == 0) { in nx_mlc_set_layer_alpha256()
1655 } else if (layer == 1) { in nx_mlc_set_layer_alpha256()
1660 } else if (layer == 2) { in nx_mlc_set_layer_alpha256()
1723 void nx_mlc_get_rgblayer_stride(u32 module_index, u32 layer, s32 *hstride, in nx_mlc_get_rgblayer_stride() argument
1731 hs = readl(&pregister->mlcrgblayer[layer].mlchstride); in nx_mlc_get_rgblayer_stride()
1732 vs = readl(&pregister->mlcrgblayer[layer].mlcvstride); in nx_mlc_get_rgblayer_stride()
1741 void nx_mlc_get_rgblayer_address(u32 module_index, u32 layer, in nx_mlc_get_rgblayer_address() argument
1748 pa = readl(&pregister->mlcrgblayer[layer].mlcaddress); in nx_mlc_get_rgblayer_address()
1754 void nx_mlc_get_position(u32 module_index, u32 layer, int *left, int *top, in nx_mlc_get_position() argument
1762 lr = readl(&pregister->mlcrgblayer[layer].mlcleftright); in nx_mlc_get_position()
1763 tb = readl(&pregister->mlcrgblayer[layer].mlctopbottom); in nx_mlc_get_position()