Lines Matching refs:viaparinfo
144 struct viafb_par *viaparinfo) in viafb_setup_fixinfo() argument
149 fix->smem_start = viaparinfo->fbmem; in viafb_setup_fixinfo()
150 fix->smem_len = viaparinfo->fbmem_free; in viafb_setup_fixinfo()
404 if (copy_to_user(argp, viaparinfo->chip_info, in viafb_ioctl()
449 u.viasamm.size_prim = viaparinfo->fbmem_free; in viafb_ioctl()
454 viaparinfo->fbmem_free - in viafb_ioctl()
460 viaparinfo->fbmem_free >> 1; in viafb_ioctl()
462 (viaparinfo->fbmem_free >> 1); in viafb_ioctl()
465 u.viasamm.mem_base = viaparinfo->fbmem; in viafb_ioctl()
469 viaparinfo->memsize - viaparinfo->fbmem_used; in viafb_ioctl()
471 u.viasamm.mem_base = viaparinfo->fbmem; in viafb_ioctl()
920 if (viaparinfo->shared->iga1_devices & VIA_CRT) { in get_primary_device()
926 if (viaparinfo->tmds_setting_info->iga_path == IGA1) { in get_primary_device()
928 viaparinfo-> in get_primary_device()
934 if (viaparinfo->lvds_setting_info->iga_path == IGA1) { in get_primary_device()
936 viaparinfo-> in get_primary_device()
942 if (viaparinfo->lvds_setting_info2->iga_path == IGA1) { in get_primary_device()
944 viaparinfo-> in get_primary_device()
1081 parse_port(viafb_lcd_port, &viaparinfo->chip_info->lvds_chip_info. in parse_lcd_port()
1084 viaparinfo->chip_info->lvds_chip_info2.output_interface = in parse_lcd_port()
1088 viafb_lcd_port, viaparinfo->chip_info->lvds_chip_info. in parse_lcd_port()
1094 parse_port(viafb_dvi_port, &viaparinfo->chip_info->tmds_chip_info. in parse_dvi_port()
1098 viafb_dvi_port, viaparinfo->chip_info->tmds_chip_info. in parse_dvi_port()
1319 switch (viaparinfo->chip_info->lvds_chip_info.lvds_chip_name) { in viafb_vt1636_proc_show()
1322 viafb_gpio_i2c_read_lvds(viaparinfo->lvds_setting_info, in viafb_vt1636_proc_show()
1323 &viaparinfo->chip_info->lvds_chip_info, 0x08) & 0x0f; in viafb_vt1636_proc_show()
1325 viafb_gpio_i2c_read_lvds(viaparinfo->lvds_setting_info, in viafb_vt1636_proc_show()
1326 &viaparinfo->chip_info->lvds_chip_info, 0x09) & 0x1f; in viafb_vt1636_proc_show()
1332 switch (viaparinfo->chip_info->lvds_chip_info2.lvds_chip_name) { in viafb_vt1636_proc_show()
1335 viafb_gpio_i2c_read_lvds(viaparinfo->lvds_setting_info2, in viafb_vt1636_proc_show()
1336 &viaparinfo->chip_info->lvds_chip_info2, 0x08) & 0x0f; in viafb_vt1636_proc_show()
1338 viafb_gpio_i2c_read_lvds(viaparinfo->lvds_setting_info2, in viafb_vt1636_proc_show()
1339 &viaparinfo->chip_info->lvds_chip_info2, 0x09) & 0x1f; in viafb_vt1636_proc_show()
1366 switch (viaparinfo->chip_info->lvds_chip_info.lvds_chip_name) { in viafb_vt1636_proc_write()
1378 (viaparinfo->lvds_setting_info, in viafb_vt1636_proc_write()
1379 &viaparinfo-> in viafb_vt1636_proc_write()
1387 (viaparinfo->lvds_setting_info, in viafb_vt1636_proc_write()
1388 &viaparinfo-> in viafb_vt1636_proc_write()
1403 switch (viaparinfo->chip_info->lvds_chip_info2.lvds_chip_name) { in viafb_vt1636_proc_write()
1415 (viaparinfo->lvds_setting_info2, in viafb_vt1636_proc_write()
1416 &viaparinfo-> in viafb_vt1636_proc_write()
1424 (viaparinfo->lvds_setting_info2, in viafb_vt1636_proc_write()
1425 &viaparinfo-> in viafb_vt1636_proc_write()
1456 viaparinfo->shared->chip_info.gfx_chip_name]); in viafb_sup_odev_proc_show()
1491 via_odev_to_seq(m, viaparinfo->shared->iga1_devices); in viafb_iga1_odev_proc_show()
1506 dev_old = dev_new = viaparinfo->shared->iga1_devices; in viafb_iga1_odev_proc_write()
1512 viaparinfo->shared->iga1_devices = dev_new; in viafb_iga1_odev_proc_write()
1513 viaparinfo->shared->iga2_devices &= ~dev_new; in viafb_iga1_odev_proc_write()
1530 via_odev_to_seq(m, viaparinfo->shared->iga2_devices); in viafb_iga2_odev_proc_show()
1545 dev_old = dev_new = viaparinfo->shared->iga2_devices; in viafb_iga2_odev_proc_write()
1551 viaparinfo->shared->iga2_devices = dev_new; in viafb_iga2_odev_proc_write()
1552 viaparinfo->shared->iga1_devices &= ~dev_new; in viafb_iga2_odev_proc_write()
1633 viaparinfo->shared->i2c_26); in parse_mode()
1636 viaparinfo->shared->i2c_31); in parse_mode()
1677 if (viaparinfo->shared->vdev->engine_mmio) in viafb_resume()
1678 viafb_reset_engine(viaparinfo); in viafb_resume()
1741 viaparinfo = (struct viafb_par *)viafbinfo->par; in via_fb_pci_probe()
1742 viaparinfo->shared = viafbinfo->par + viafb_par_length; in via_fb_pci_probe()
1743 viaparinfo->shared->vdev = vdev; in via_fb_pci_probe()
1744 viaparinfo->vram_addr = 0; in via_fb_pci_probe()
1745 viaparinfo->tmds_setting_info = &viaparinfo->shared->tmds_setting_info; in via_fb_pci_probe()
1746 viaparinfo->lvds_setting_info = &viaparinfo->shared->lvds_setting_info; in via_fb_pci_probe()
1747 viaparinfo->lvds_setting_info2 = in via_fb_pci_probe()
1748 &viaparinfo->shared->lvds_setting_info2; in via_fb_pci_probe()
1749 viaparinfo->chip_info = &viaparinfo->shared->chip_info; in via_fb_pci_probe()
1751 i2c_bus_probe(viaparinfo->shared); in via_fb_pci_probe()
1763 viaparinfo->fbmem = vdev->fbmem_start; in via_fb_pci_probe()
1764 viaparinfo->memsize = vdev->fbmem_len; in via_fb_pci_probe()
1765 viaparinfo->fbmem_free = viaparinfo->memsize; in via_fb_pci_probe()
1766 viaparinfo->fbmem_used = 0; in via_fb_pci_probe()
1786 viafb_second_offset = viaparinfo->fbmem_free - in via_fb_pci_probe()
1790 viafb_second_offset = viaparinfo->fbmem_free - in via_fb_pci_probe()
1794 parse_mode(viafb_mode, viaparinfo->shared->iga1_devices, in via_fb_pci_probe()
1797 parse_mode(viafb_mode1, viaparinfo->shared->iga2_devices, in via_fb_pci_probe()
1807 viafb_setup_fixinfo(&viafbinfo->fix, viaparinfo); in via_fb_pci_probe()
1818 memcpy(viaparinfo1, viaparinfo, viafb_par_length); in via_fb_pci_probe()
1820 viaparinfo1->memsize = viaparinfo->memsize - in via_fb_pci_probe()
1822 viaparinfo->memsize = viafb_second_offset; in via_fb_pci_probe()
1823 viaparinfo1->fbmem = viaparinfo->fbmem + viafb_second_offset; in via_fb_pci_probe()
1825 viaparinfo1->fbmem_used = viaparinfo->fbmem_used; in via_fb_pci_probe()
1828 viaparinfo->fbmem_free = viaparinfo->memsize; in via_fb_pci_probe()
1829 viaparinfo->fbmem_used = 0; in via_fb_pci_probe()
1831 viaparinfo->iga_path = IGA1; in via_fb_pci_probe()
1856 viaparinfo->depth = fb_get_color_depth(&viafbinfo->var, in via_fb_pci_probe()
1864 && (viaparinfo->chip_info->gfx_chip_name == UNICHROME_CLE266)) { in via_fb_pci_probe()
1874 || (viaparinfo->chip_info->gfx_chip_name != in via_fb_pci_probe()
1884 viafb_init_proc(viaparinfo->shared); in via_fb_pci_probe()
1896 && (viaparinfo->chip_info->gfx_chip_name == UNICHROME_CLE266)) in via_fb_pci_probe()
1903 i2c_bus_free(viaparinfo->shared); in via_fb_pci_probe()
1915 viafb_remove_proc(viaparinfo->shared); in via_fb_pci_remove()
1916 i2c_bus_free(viaparinfo->shared); in via_fb_pci_remove()