Lines Matching full:screen

38 #define OSD_SET_REG(screen, fld, val) \  argument
40 if (screen >= OSD_DH_BASE) \
41 FPGA_SET_REG(screen - OSD_DH_BASE, osd1.fld, val); \
43 FPGA_SET_REG(screen, osd0.fld, val); \
46 #define OSD_SET_REG(screen, fld, val) \ argument
47 FPGA_SET_REG(screen, osd0.fld, val)
51 #define OSD_GET_REG(screen, fld, val) \ argument
53 if (screen >= OSD_DH_BASE) \
54 FPGA_GET_REG(screen - OSD_DH_BASE, osd1.fld, val); \
56 FPGA_GET_REG(screen, osd0.fld, val); \
59 #define OSD_GET_REG(screen, fld, val) \ argument
60 FPGA_GET_REG(screen, osd0.fld, val)
104 static void mpc92469ac_set(unsigned screen, unsigned int fout) in mpc92469ac_set() argument
126 FPGA_SET_REG(screen, mpc3w_control, (bitval << 9) | m); in mpc92469ac_set()
238 static int osd_write_videomem(unsigned screen, unsigned offset, in osd_write_videomem() argument
247 if (screen >= OSD_DH_BASE) in osd_write_videomem()
248 FPGA_SET_REG(screen - OSD_DH_BASE, in osd_write_videomem()
251 FPGA_SET_REG(screen, videomem0[offset + k], data[k]); in osd_write_videomem()
253 FPGA_SET_REG(screen, videomem0[offset + k], data[k]); in osd_write_videomem()
262 unsigned screen; in osd_print() local
269 for (screen = 0; screen < MAX_OSD_SCREEN; ++screen) { in osd_print()
279 if (!(osd_screen_mask & (1 << screen))) in osd_print()
292 res = osd_write_videomem(screen, y * base_width + x, buf, len); in osd_print()
296 OSD_SET_REG(screen, control, 0x0049); in osd_print()
302 int osd_probe(unsigned screen) in osd_probe() argument
322 (screen >= OSD_DH_BASE) ? (screen - OSD_DH_BASE) : screen, in osd_probe()
323 (screen > 3) ? 1 : 0, version/100, version%100, base_width, in osd_probe()
327 screen, version/100, version%100, base_width, base_height); in osd_probe()
333 mpc92469ac_set(screen, PIXCLK_640_480_60); in osd_probe()
337 i2c_set_bus_num(ics8n3qv01_i2c[screen]); in osd_probe()
350 if (!ch7301_probe(screen, true)) in osd_probe()
355 i2c_set_bus_num(sil1178_i2c[screen]); in osd_probe()
378 if (!dp501_probe(screen, true)) in osd_probe()
385 OSD_SET_REG(screen, xy_size, ((32 - 1) << 8) | (16 - 1)); in osd_probe()
386 OSD_SET_REG(screen, x_pos, 0x007f); in osd_probe()
387 OSD_SET_REG(screen, y_pos, 0x005f); in osd_probe()
390 osd_screen_mask |= 1 << screen; in osd_probe()
399 unsigned screen; in osd_write() local
406 for (screen = 0; screen < MAX_OSD_SCREEN; ++screen) { in osd_write()
416 if (!(osd_screen_mask & (1 << screen))) in osd_write()
440 osd_write_videomem(screen, offset, buffer, in osd_write()
444 OSD_SET_REG(screen, control, 0x0049); in osd_write()
452 unsigned screen; in osd_size() local
470 for (screen = 0; screen < MAX_OSD_SCREEN; ++screen) { in osd_size()
471 if (!(osd_screen_mask & (1 << screen))) in osd_size()
474 OSD_SET_REG(screen, xy_size, ((x - 1) << 8) | (y - 1)); in osd_size()
475 OSD_SET_REG(screen, x_pos, 32767 * (640 - 12 * x) / 65535); in osd_size()
476 OSD_SET_REG(screen, y_pos, 32767 * (480 - 18 * y) / 65535); in osd_size()