Lines Matching refs:vgpu_vreg
84 memcpy(p_data, &vgpu_vreg(vgpu, offset), bytes); in read_vreg()
90 memcpy(&vgpu_vreg(vgpu, offset), p_data, bytes); in write_vreg()
277 old = vgpu_vreg(vgpu, offset); in mul_force_wake_write()
300 vgpu_vreg(vgpu, offset) = new; in mul_force_wake_write()
301 vgpu_vreg(vgpu, ack_reg_offset) = (new & GENMASK(15, 0)); in mul_force_wake_write()
312 data = vgpu_vreg(vgpu, offset); in gdrst_mmio_write()
349 vgpu_vreg(vgpu, offset) = 0; in gdrst_mmio_write()
371 if (vgpu_vreg(vgpu, offset) & PANEL_POWER_ON) { in pch_pp_control_mmio_write()
389 if (vgpu_vreg(vgpu, offset) & TRANS_ENABLE) in transconf_mmio_write()
390 vgpu_vreg(vgpu, offset) |= TRANS_STATE_ENABLE; in transconf_mmio_write()
392 vgpu_vreg(vgpu, offset) &= ~TRANS_STATE_ENABLE; in transconf_mmio_write()
401 if (vgpu_vreg(vgpu, offset) & LCPLL_PLL_DISABLE) in lcpll_ctl_mmio_write()
402 vgpu_vreg(vgpu, offset) &= ~LCPLL_PLL_LOCK; in lcpll_ctl_mmio_write()
404 vgpu_vreg(vgpu, offset) |= LCPLL_PLL_LOCK; in lcpll_ctl_mmio_write()
406 if (vgpu_vreg(vgpu, offset) & LCPLL_CD_SOURCE_FCLK) in lcpll_ctl_mmio_write()
407 vgpu_vreg(vgpu, offset) |= LCPLL_CD_SOURCE_FCLK_DONE; in lcpll_ctl_mmio_write()
409 vgpu_vreg(vgpu, offset) &= ~LCPLL_CD_SOURCE_FCLK_DONE; in lcpll_ctl_mmio_write()
422 vgpu_vreg(vgpu, offset) = 1 << 17; in dpy_reg_mmio_read()
425 vgpu_vreg(vgpu, offset) = 0x3; in dpy_reg_mmio_read()
428 vgpu_vreg(vgpu, offset) = 0x2f << 16; in dpy_reg_mmio_read()
697 data = vgpu_vreg(vgpu, offset); in pipeconf_mmio_write()
700 vgpu_vreg(vgpu, offset) |= PIPECONF_STATE_ENABLE; in pipeconf_mmio_write()
704 vgpu_vreg(vgpu, offset) &= ~PIPECONF_STATE_ENABLE; in pipeconf_mmio_write()
792 if (vgpu_vreg(vgpu, offset) & DDI_BUF_CTL_ENABLE) { in ddi_buf_ctl_mmio_write()
793 vgpu_vreg(vgpu, offset) &= ~DDI_BUF_IS_IDLE; in ddi_buf_ctl_mmio_write()
795 vgpu_vreg(vgpu, offset) |= DDI_BUF_IS_IDLE; in ddi_buf_ctl_mmio_write()
806 vgpu_vreg(vgpu, offset) &= ~*(u32 *)p_data; in fdi_rx_iir_mmio_write()
816 u32 rx_ctl = vgpu_vreg(vgpu, _FDI_RXA_CTL); in fdi_auto_training_started()
948 data = (vgpu_vreg(vgpu, offset) & GENMASK(10, 8)) >> 8; in dp_tp_ctl_mmio_write()
965 vgpu_vreg(vgpu, offset) = (reg_val & ~sticky_mask) | in dp_tp_status_mmio_write()
966 (vgpu_vreg(vgpu, offset) & sticky_mask); in dp_tp_status_mmio_write()
967 vgpu_vreg(vgpu, offset) &= ~(reg_val & sticky_mask); in dp_tp_status_mmio_write()
977 data = vgpu_vreg(vgpu, offset); in pch_adpa_mmio_write()
980 vgpu_vreg(vgpu, offset) &= ~ADPA_CRT_HOTPLUG_FORCE_TRIGGER; in pch_adpa_mmio_write()
990 data = vgpu_vreg(vgpu, offset); in south_chicken2_mmio_write()
993 vgpu_vreg(vgpu, offset) |= FDI_MPHY_IOSFSB_RESET_STATUS; in south_chicken2_mmio_write()
995 vgpu_vreg(vgpu, offset) &= ~FDI_MPHY_IOSFSB_RESET_STATUS; in south_chicken2_mmio_write()
1010 vgpu_vreg_t(vgpu, DSPSURFLIVE(pipe)) = vgpu_vreg(vgpu, offset); in pri_surf_mmio_write()
1032 vgpu_vreg_t(vgpu, SPRSURFLIVE(pipe)) = vgpu_vreg(vgpu, offset); in spr_surf_mmio_write()
1053 vgpu_vreg_t(vgpu, DSPSURFLIVE(pipe)) = vgpu_vreg(vgpu, offset); in reg50080_mmio_write()
1056 vgpu_vreg_t(vgpu, SPRSURFLIVE(pipe)) = vgpu_vreg(vgpu, offset); in reg50080_mmio_write()
1059 if ((vgpu_vreg(vgpu, offset) & REG50080_FLIP_TYPE_MASK) == REG50080_FLIP_TYPE_ASYNC) in reg50080_mmio_write()
1109 vgpu_vreg(vgpu, reg) = value; in dp_aux_ch_ctl_trans_done()
1171 data = vgpu_vreg(vgpu, offset); in dp_aux_ch_ctl_mmio_write()
1185 vgpu_vreg(vgpu, offset) = 0; in dp_aux_ch_ctl_mmio_write()
1193 msg = vgpu_vreg(vgpu, offset + 4); in dp_aux_ch_ctl_mmio_write()
1213 vgpu_vreg(vgpu, offset + 4) = AUX_NATIVE_REPLY_NAK; in dp_aux_ch_ctl_mmio_write()
1230 u32 r = vgpu_vreg(vgpu, offset + 8 + t * 4); in dp_aux_ch_ctl_mmio_write()
1252 vgpu_vreg(vgpu, offset + 4) = 0; in dp_aux_ch_ctl_mmio_write()
1271 vgpu_vreg(vgpu, offset + 4) = 0; in dp_aux_ch_ctl_mmio_write()
1272 vgpu_vreg(vgpu, offset + 8) = 0; in dp_aux_ch_ctl_mmio_write()
1273 vgpu_vreg(vgpu, offset + 12) = 0; in dp_aux_ch_ctl_mmio_write()
1274 vgpu_vreg(vgpu, offset + 16) = 0; in dp_aux_ch_ctl_mmio_write()
1275 vgpu_vreg(vgpu, offset + 20) = 0; in dp_aux_ch_ctl_mmio_write()
1284 vgpu_vreg(vgpu, offset + 4 * idx) = 0; in dp_aux_ch_ctl_mmio_write()
1306 vgpu_vreg(vgpu, offset + in dp_aux_ch_ctl_mmio_write()
1339 vga_disable = vgpu_vreg(vgpu, offset) & VGA_DISP_DISABLE; in vga_control_mmio_write()
1394 vgpu_vreg(vgpu, offset) = read_virtual_sbi_register(vgpu, in sbi_data_mmio_read()
1407 data = vgpu_vreg(vgpu, offset); in sbi_ctl_mmio_write()
1415 vgpu_vreg(vgpu, offset) = data; in sbi_ctl_mmio_write()
1574 if (vgpu_vreg(vgpu, offset) & in power_well_ctl_mmio_write()
1576 vgpu_vreg(vgpu, offset) |= in power_well_ctl_mmio_write()
1579 vgpu_vreg(vgpu, offset) &= in power_well_ctl_mmio_write()
1589 if (vgpu_vreg(vgpu, offset) & DBUF_POWER_REQUEST) in gen9_dbuf_ctl_mmio_write()
1590 vgpu_vreg(vgpu, offset) |= DBUF_POWER_STATE; in gen9_dbuf_ctl_mmio_write()
1592 vgpu_vreg(vgpu, offset) &= ~DBUF_POWER_STATE; in gen9_dbuf_ctl_mmio_write()
1602 if (vgpu_vreg(vgpu, offset) & FPGA_DBG_RM_NOCLAIM) in fpga_dbg_mmio_write()
1603 vgpu_vreg(vgpu, offset) &= ~FPGA_DBG_RM_NOCLAIM; in fpga_dbg_mmio_write()
1614 mode = vgpu_vreg(vgpu, offset); in dma_ctrl_write()
1655 if (vgpu_vreg(vgpu, 0x46010) & (1 << 31)) in dpll_status_read()
1658 if (vgpu_vreg(vgpu, 0x46014) & (1 << 31)) in dpll_status_read()
1661 if (vgpu_vreg(vgpu, 0x46040) & (1 << 31)) in dpll_status_read()
1664 if (vgpu_vreg(vgpu, 0x46060) & (1 << 31)) in dpll_status_read()
1667 vgpu_vreg(vgpu, offset) = v; in dpll_status_read()
1785 vgpu_vreg(vgpu, offset) = v; in skl_lcpll_write()
1798 vgpu_vreg(vgpu, offset) = v; in bxt_de_pll_enable_write()
1811 vgpu_vreg(vgpu, offset) = v; in bxt_port_pll_enable_write()
1824 vgpu_vreg(vgpu, _BXT_PHY_CTL_DDI_A) = data; in bxt_phy_ctl_family_write()
1827 vgpu_vreg(vgpu, _BXT_PHY_CTL_DDI_B) = data; in bxt_phy_ctl_family_write()
1828 vgpu_vreg(vgpu, _BXT_PHY_CTL_DDI_C) = data; in bxt_phy_ctl_family_write()
1832 vgpu_vreg(vgpu, offset) = v; in bxt_phy_ctl_family_write()
1840 u32 v = vgpu_vreg(vgpu, offset); in bxt_port_tx_dw3_read()
1844 vgpu_vreg(vgpu, offset) = v; in bxt_port_tx_dw3_read()
1855 vgpu_vreg(vgpu, offset - 0x600) = v; in bxt_pcs_dw12_grp_write()
1856 vgpu_vreg(vgpu, offset - 0x800) = v; in bxt_pcs_dw12_grp_write()
1858 vgpu_vreg(vgpu, offset - 0x400) = v; in bxt_pcs_dw12_grp_write()
1859 vgpu_vreg(vgpu, offset - 0x600) = v; in bxt_pcs_dw12_grp_write()
1862 vgpu_vreg(vgpu, offset) = v; in bxt_pcs_dw12_grp_write()
1887 vgpu_vreg(vgpu, offset) = v; in bxt_gt_disp_pwron_write()
1895 vgpu_vreg(vgpu, offset) = 0; in edp_psr_imr_iir_write()
1922 vgpu_vreg(vgpu, offset) = lower_32_bits(pat); in bxt_ppat_low_write()
1933 vgpu_vreg(vgpu, offset) &= ~GS_MIA_IN_RESET; in guc_status_read()
1956 vgpu_vreg(vgpu, offset) = in mmio_read_from_hw()
2071 vgpu_vreg(vgpu, offset) = 0; in gvt_reg_tlb_control_handler()
2103 data = vgpu_vreg(vgpu, offset); in ring_reset_ctl_write()
2110 vgpu_vreg(vgpu, offset) = data; in ring_reset_ctl_write()
3086 old_vreg = vgpu_vreg(vgpu, offset); in intel_vgpu_mask_mmio_write()
3088 mask = vgpu_vreg(vgpu, offset) >> 16; in intel_vgpu_mask_mmio_write()
3089 vgpu_vreg(vgpu, offset) = (old_vreg & ~mask) | in intel_vgpu_mask_mmio_write()
3090 (vgpu_vreg(vgpu, offset) & mask); in intel_vgpu_mask_mmio_write()
3164 old_vreg = vgpu_vreg(vgpu, offset); in intel_vgpu_mmio_reg_rw()
3176 data |= vgpu_vreg(vgpu, offset) & ro_mask; in intel_vgpu_mmio_reg_rw()
3182 u32 mask = vgpu_vreg(vgpu, offset) >> 16; in intel_vgpu_mmio_reg_rw()
3184 vgpu_vreg(vgpu, offset) = (old_vreg & ~mask) in intel_vgpu_mmio_reg_rw()
3185 | (vgpu_vreg(vgpu, offset) & mask); in intel_vgpu_mmio_reg_rw()
3216 intel_uncore_write(&dev_priv->uncore, _MMIO(offset), vgpu_vreg(vgpu, offset)); in mmio_pm_restore_handler()