Lines Matching +full:disable +full:- +full:timing +full:- +full:generator

1 // SPDX-License-Identifier: GPL-2.0-or-later
27 /* The number of pages is (PMAX - PMIN)+1 */ in gx_frame_buffer_size()
33 val -= (lo & 0x000fffff); in gx_frame_buffer_size()
59 struct gxfb_par *par = info->par; in gx_set_mode()
70 /* Disable the timing generator. */ in gx_set_mode()
77 /* Disable FIFO load and compression. */ in gx_set_mode()
102 write_dc(par, DC_GFX_PITCH, info->fix.line_length >> 3); in gx_set_mode()
104 ((info->var.xres * info->var.bits_per_pixel/8) >> 3) + 2); in gx_set_mode()
112 switch (info->var.bits_per_pixel) { in gx_set_mode()
125 /* Enable timing generator. */ in gx_set_mode()
129 hactive = info->var.xres; in gx_set_mode()
131 hsyncstart = hblankstart + info->var.right_margin; in gx_set_mode()
132 hsyncend = hsyncstart + info->var.hsync_len; in gx_set_mode()
133 hblankend = hsyncend + info->var.left_margin; in gx_set_mode()
136 vactive = info->var.yres; in gx_set_mode()
138 vsyncstart = vblankstart + info->var.lower_margin; in gx_set_mode()
139 vsyncend = vsyncstart + info->var.vsync_len; in gx_set_mode()
140 vblankend = vsyncend + info->var.upper_margin; in gx_set_mode()
143 write_dc(par, DC_H_ACTIVE_TIMING, (hactive - 1) | in gx_set_mode()
144 ((htotal - 1) << 16)); in gx_set_mode()
145 write_dc(par, DC_H_BLANK_TIMING, (hblankstart - 1) | in gx_set_mode()
146 ((hblankend - 1) << 16)); in gx_set_mode()
147 write_dc(par, DC_H_SYNC_TIMING, (hsyncstart - 1) | in gx_set_mode()
148 ((hsyncend - 1) << 16)); in gx_set_mode()
150 write_dc(par, DC_V_ACTIVE_TIMING, (vactive - 1) | in gx_set_mode()
151 ((vtotal - 1) << 16)); in gx_set_mode()
152 write_dc(par, DC_V_BLANK_TIMING, (vblankstart - 1) | in gx_set_mode()
153 ((vblankend - 1) << 16)); in gx_set_mode()
154 write_dc(par, DC_V_SYNC_TIMING, (vsyncstart - 1) | in gx_set_mode()
155 ((vsyncend - 1) << 16)); in gx_set_mode()
170 struct gxfb_par *par = info->par; in gx_set_hw_palette_reg()
173 /* Hardware palette is in RGB 8-8-8 format. */ in gx_set_hw_palette_reg()