Lines Matching refs:viaparinfo

155 	struct viafb_par *viaparinfo)  in viafb_setup_fixinfo()  argument
160 fix->smem_start = viaparinfo->fbmem; in viafb_setup_fixinfo()
161 fix->smem_len = viaparinfo->fbmem_free; in viafb_setup_fixinfo()
418 if (copy_to_user(argp, viaparinfo->chip_info, in viafb_ioctl()
463 u.viasamm.size_prim = viaparinfo->fbmem_free; in viafb_ioctl()
468 viaparinfo->fbmem_free - in viafb_ioctl()
474 viaparinfo->fbmem_free >> 1; in viafb_ioctl()
476 (viaparinfo->fbmem_free >> 1); in viafb_ioctl()
479 u.viasamm.mem_base = viaparinfo->fbmem; in viafb_ioctl()
483 viaparinfo->memsize - viaparinfo->fbmem_used; in viafb_ioctl()
485 u.viasamm.mem_base = viaparinfo->fbmem; in viafb_ioctl()
933 if (viaparinfo->crt_setting_info->iga_path == IGA1) { in get_primary_device()
935 viaparinfo-> in get_primary_device()
941 if (viaparinfo->tmds_setting_info->iga_path == IGA1) { in get_primary_device()
943 viaparinfo-> in get_primary_device()
949 if (viaparinfo->lvds_setting_info->iga_path == IGA1) { in get_primary_device()
951 viaparinfo-> in get_primary_device()
957 if (viaparinfo->lvds_setting_info2->iga_path == IGA1) { in get_primary_device()
959 viaparinfo-> in get_primary_device()
1091 parse_port(viafb_lcd_port, &viaparinfo->chip_info->lvds_chip_info. in parse_lcd_port()
1094 viaparinfo->chip_info->lvds_chip_info2.output_interface = in parse_lcd_port()
1098 viafb_lcd_port, viaparinfo->chip_info->lvds_chip_info. in parse_lcd_port()
1104 parse_port(viafb_dvi_port, &viaparinfo->chip_info->tmds_chip_info. in parse_dvi_port()
1108 viafb_dvi_port, viaparinfo->chip_info->tmds_chip_info. in parse_dvi_port()
1339 switch (viaparinfo->chip_info->lvds_chip_info.lvds_chip_name) { in viafb_vt1636_proc_show()
1342 viafb_gpio_i2c_read_lvds(viaparinfo->lvds_setting_info, in viafb_vt1636_proc_show()
1343 &viaparinfo->chip_info->lvds_chip_info, 0x08) & 0x0f; in viafb_vt1636_proc_show()
1345 viafb_gpio_i2c_read_lvds(viaparinfo->lvds_setting_info, in viafb_vt1636_proc_show()
1346 &viaparinfo->chip_info->lvds_chip_info, 0x09) & 0x1f; in viafb_vt1636_proc_show()
1352 switch (viaparinfo->chip_info->lvds_chip_info2.lvds_chip_name) { in viafb_vt1636_proc_show()
1355 viafb_gpio_i2c_read_lvds(viaparinfo->lvds_setting_info2, in viafb_vt1636_proc_show()
1356 &viaparinfo->chip_info->lvds_chip_info2, 0x08) & 0x0f; in viafb_vt1636_proc_show()
1358 viafb_gpio_i2c_read_lvds(viaparinfo->lvds_setting_info2, in viafb_vt1636_proc_show()
1359 &viaparinfo->chip_info->lvds_chip_info2, 0x09) & 0x1f; in viafb_vt1636_proc_show()
1386 switch (viaparinfo->chip_info->lvds_chip_info.lvds_chip_name) { in viafb_vt1636_proc_write()
1398 (viaparinfo->lvds_setting_info, in viafb_vt1636_proc_write()
1399 &viaparinfo-> in viafb_vt1636_proc_write()
1407 (viaparinfo->lvds_setting_info, in viafb_vt1636_proc_write()
1408 &viaparinfo-> in viafb_vt1636_proc_write()
1423 switch (viaparinfo->chip_info->lvds_chip_info2.lvds_chip_name) { in viafb_vt1636_proc_write()
1435 (viaparinfo->lvds_setting_info2, in viafb_vt1636_proc_write()
1436 &viaparinfo-> in viafb_vt1636_proc_write()
1444 (viaparinfo->lvds_setting_info2, in viafb_vt1636_proc_write()
1445 &viaparinfo-> in viafb_vt1636_proc_write()
1477 viaparinfo->shared->chip_info.gfx_chip_name]); in viafb_sup_odev_proc_show()
1525 via_odev_to_seq(m, viaparinfo->shared->iga1_devices); in viafb_iga1_odev_proc_show()
1540 dev_old = dev_new = viaparinfo->shared->iga1_devices; in viafb_iga1_odev_proc_write()
1546 viaparinfo->shared->iga1_devices = dev_new; in viafb_iga1_odev_proc_write()
1547 viaparinfo->shared->iga2_devices &= ~dev_new; in viafb_iga1_odev_proc_write()
1565 via_odev_to_seq(m, viaparinfo->shared->iga2_devices); in viafb_iga2_odev_proc_show()
1580 dev_old = dev_new = viaparinfo->shared->iga2_devices; in viafb_iga2_odev_proc_write()
1586 viaparinfo->shared->iga2_devices = dev_new; in viafb_iga2_odev_proc_write()
1587 viaparinfo->shared->iga1_devices &= ~dev_new; in viafb_iga2_odev_proc_write()
1699 if (viaparinfo->shared->vdev->engine_mmio) in viafb_resume()
1700 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->crt_setting_info = &viaparinfo->shared->crt_setting_info; in via_fb_pci_probe()
1750 viaparinfo->chip_info = &viaparinfo->shared->chip_info; 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()
1812 viafb_setup_fixinfo(&viafbinfo->fix, viaparinfo); in via_fb_pci_probe()
1825 memcpy(viaparinfo1, viaparinfo, viafb_par_length); in via_fb_pci_probe()
1827 viaparinfo1->memsize = viaparinfo->memsize - in via_fb_pci_probe()
1829 viaparinfo->memsize = viafb_second_offset; in via_fb_pci_probe()
1830 viaparinfo1->fbmem = viaparinfo->fbmem + viafb_second_offset; in via_fb_pci_probe()
1832 viaparinfo1->fbmem_used = viaparinfo->fbmem_used; in via_fb_pci_probe()
1835 viaparinfo->fbmem_free = viaparinfo->memsize; in via_fb_pci_probe()
1836 viaparinfo->fbmem_used = 0; in via_fb_pci_probe()
1838 viaparinfo->iga_path = IGA1; in via_fb_pci_probe()
1864 viaparinfo->depth = fb_get_color_depth(&viafbinfo->var, in via_fb_pci_probe()
1872 && (viaparinfo->chip_info->gfx_chip_name == UNICHROME_CLE266)) { in via_fb_pci_probe()
1882 || (viaparinfo->chip_info->gfx_chip_name != in via_fb_pci_probe()
1892 viafb_init_proc(viaparinfo->shared); in via_fb_pci_probe()
1904 && (viaparinfo->chip_info->gfx_chip_name == UNICHROME_CLE266)) in via_fb_pci_probe()
1923 viafb_remove_proc(viaparinfo->shared); in via_fb_pci_remove()