Lines Matching refs:vgpu_vreg

96 	memcpy(p_data, &vgpu_vreg(vgpu, offset), bytes);  in read_vreg()
102 memcpy(&vgpu_vreg(vgpu, offset), p_data, bytes); in write_vreg()
289 old = vgpu_vreg(vgpu, offset); in mul_force_wake_write()
312 vgpu_vreg(vgpu, offset) = new; in mul_force_wake_write()
313 vgpu_vreg(vgpu, ack_reg_offset) = (new & GENMASK(15, 0)); in mul_force_wake_write()
324 data = vgpu_vreg(vgpu, offset); in gdrst_mmio_write()
361 vgpu_vreg(vgpu, offset) = 0; in gdrst_mmio_write()
383 if (vgpu_vreg(vgpu, offset) & PANEL_POWER_ON) { in pch_pp_control_mmio_write()
401 if (vgpu_vreg(vgpu, offset) & TRANS_ENABLE) in transconf_mmio_write()
402 vgpu_vreg(vgpu, offset) |= TRANS_STATE_ENABLE; in transconf_mmio_write()
404 vgpu_vreg(vgpu, offset) &= ~TRANS_STATE_ENABLE; in transconf_mmio_write()
413 if (vgpu_vreg(vgpu, offset) & LCPLL_PLL_DISABLE) in lcpll_ctl_mmio_write()
414 vgpu_vreg(vgpu, offset) &= ~LCPLL_PLL_LOCK; in lcpll_ctl_mmio_write()
416 vgpu_vreg(vgpu, offset) |= LCPLL_PLL_LOCK; in lcpll_ctl_mmio_write()
418 if (vgpu_vreg(vgpu, offset) & LCPLL_CD_SOURCE_FCLK) in lcpll_ctl_mmio_write()
419 vgpu_vreg(vgpu, offset) |= LCPLL_CD_SOURCE_FCLK_DONE; in lcpll_ctl_mmio_write()
421 vgpu_vreg(vgpu, offset) &= ~LCPLL_CD_SOURCE_FCLK_DONE; in lcpll_ctl_mmio_write()
434 vgpu_vreg(vgpu, offset) = 1 << 17; in dpy_reg_mmio_read()
437 vgpu_vreg(vgpu, offset) = 0x3; in dpy_reg_mmio_read()
440 vgpu_vreg(vgpu, offset) = 0x2f << 16; in dpy_reg_mmio_read()
709 data = vgpu_vreg(vgpu, offset); in pipeconf_mmio_write()
712 vgpu_vreg(vgpu, offset) |= TRANSCONF_STATE_ENABLE; in pipeconf_mmio_write()
716 vgpu_vreg(vgpu, offset) &= ~TRANSCONF_STATE_ENABLE; in pipeconf_mmio_write()
804 if (vgpu_vreg(vgpu, offset) & DDI_BUF_CTL_ENABLE) { in ddi_buf_ctl_mmio_write()
805 vgpu_vreg(vgpu, offset) &= ~DDI_BUF_IS_IDLE; in ddi_buf_ctl_mmio_write()
807 vgpu_vreg(vgpu, offset) |= DDI_BUF_IS_IDLE; in ddi_buf_ctl_mmio_write()
818 vgpu_vreg(vgpu, offset) &= ~*(u32 *)p_data; in fdi_rx_iir_mmio_write()
828 u32 rx_ctl = vgpu_vreg(vgpu, _FDI_RXA_CTL); in fdi_auto_training_started()
961 data = (vgpu_vreg(vgpu, offset) & GENMASK(10, 8)) >> 8; in dp_tp_ctl_mmio_write()
978 vgpu_vreg(vgpu, offset) = (reg_val & ~sticky_mask) | in dp_tp_status_mmio_write()
979 (vgpu_vreg(vgpu, offset) & sticky_mask); in dp_tp_status_mmio_write()
980 vgpu_vreg(vgpu, offset) &= ~(reg_val & sticky_mask); in dp_tp_status_mmio_write()
990 data = vgpu_vreg(vgpu, offset); in pch_adpa_mmio_write()
993 vgpu_vreg(vgpu, offset) &= ~ADPA_CRT_HOTPLUG_FORCE_TRIGGER; in pch_adpa_mmio_write()
1003 data = vgpu_vreg(vgpu, offset); in south_chicken2_mmio_write()
1006 vgpu_vreg(vgpu, offset) |= FDI_MPHY_IOSFSB_RESET_STATUS; in south_chicken2_mmio_write()
1008 vgpu_vreg(vgpu, offset) &= ~FDI_MPHY_IOSFSB_RESET_STATUS; in south_chicken2_mmio_write()
1023 vgpu_vreg_t(vgpu, DSPSURFLIVE(dev_priv, pipe)) = vgpu_vreg(vgpu, offset); in pri_surf_mmio_write()
1045 vgpu_vreg_t(vgpu, SPRSURFLIVE(pipe)) = vgpu_vreg(vgpu, offset); in spr_surf_mmio_write()
1066 vgpu_vreg_t(vgpu, DSPSURFLIVE(dev_priv, pipe)) = vgpu_vreg(vgpu, offset); in reg50080_mmio_write()
1069 vgpu_vreg_t(vgpu, SPRSURFLIVE(pipe)) = vgpu_vreg(vgpu, offset); in reg50080_mmio_write()
1072 if ((vgpu_vreg(vgpu, offset) & REG50080_FLIP_TYPE_MASK) == REG50080_FLIP_TYPE_ASYNC) in reg50080_mmio_write()
1122 vgpu_vreg(vgpu, reg) = value; in dp_aux_ch_ctl_trans_done()
1179 data = vgpu_vreg(vgpu, offset); in dp_aux_ch_ctl_mmio_write()
1195 vgpu_vreg(vgpu, offset) = 0; in dp_aux_ch_ctl_mmio_write()
1203 msg = vgpu_vreg(vgpu, offset + 4); in dp_aux_ch_ctl_mmio_write()
1223 vgpu_vreg(vgpu, offset + 4) = AUX_NATIVE_REPLY_NAK; in dp_aux_ch_ctl_mmio_write()
1240 u32 r = vgpu_vreg(vgpu, offset + 8 + t * 4); in dp_aux_ch_ctl_mmio_write()
1262 vgpu_vreg(vgpu, offset + 4) = 0; in dp_aux_ch_ctl_mmio_write()
1281 vgpu_vreg(vgpu, offset + 4) = 0; in dp_aux_ch_ctl_mmio_write()
1282 vgpu_vreg(vgpu, offset + 8) = 0; in dp_aux_ch_ctl_mmio_write()
1283 vgpu_vreg(vgpu, offset + 12) = 0; in dp_aux_ch_ctl_mmio_write()
1284 vgpu_vreg(vgpu, offset + 16) = 0; in dp_aux_ch_ctl_mmio_write()
1285 vgpu_vreg(vgpu, offset + 20) = 0; in dp_aux_ch_ctl_mmio_write()
1294 vgpu_vreg(vgpu, offset + 4 * idx) = 0; in dp_aux_ch_ctl_mmio_write()
1316 vgpu_vreg(vgpu, offset + in dp_aux_ch_ctl_mmio_write()
1349 vga_disable = vgpu_vreg(vgpu, offset) & VGA_DISP_DISABLE; in vga_control_mmio_write()
1404 vgpu_vreg(vgpu, offset) = read_virtual_sbi_register(vgpu, in sbi_data_mmio_read()
1417 data = vgpu_vreg(vgpu, offset); in sbi_ctl_mmio_write()
1425 vgpu_vreg(vgpu, offset) = data; in sbi_ctl_mmio_write()
1584 if (vgpu_vreg(vgpu, offset) & in power_well_ctl_mmio_write()
1586 vgpu_vreg(vgpu, offset) |= in power_well_ctl_mmio_write()
1589 vgpu_vreg(vgpu, offset) &= in power_well_ctl_mmio_write()
1599 if (vgpu_vreg(vgpu, offset) & DBUF_POWER_REQUEST) in gen9_dbuf_ctl_mmio_write()
1600 vgpu_vreg(vgpu, offset) |= DBUF_POWER_STATE; in gen9_dbuf_ctl_mmio_write()
1602 vgpu_vreg(vgpu, offset) &= ~DBUF_POWER_STATE; in gen9_dbuf_ctl_mmio_write()
1612 if (vgpu_vreg(vgpu, offset) & FPGA_DBG_RM_NOCLAIM) in fpga_dbg_mmio_write()
1613 vgpu_vreg(vgpu, offset) &= ~FPGA_DBG_RM_NOCLAIM; in fpga_dbg_mmio_write()
1624 mode = vgpu_vreg(vgpu, offset); in dma_ctrl_write()
1665 if (vgpu_vreg(vgpu, 0x46010) & (1 << 31)) in dpll_status_read()
1668 if (vgpu_vreg(vgpu, 0x46014) & (1 << 31)) in dpll_status_read()
1671 if (vgpu_vreg(vgpu, 0x46040) & (1 << 31)) in dpll_status_read()
1674 if (vgpu_vreg(vgpu, 0x46060) & (1 << 31)) in dpll_status_read()
1677 vgpu_vreg(vgpu, offset) = v; in dpll_status_read()
1795 vgpu_vreg(vgpu, offset) = v; in skl_lcpll_write()
1808 vgpu_vreg(vgpu, offset) = v; in bxt_de_pll_enable_write()
1821 vgpu_vreg(vgpu, offset) = v; in bxt_port_pll_enable_write()
1834 vgpu_vreg(vgpu, _BXT_PHY_CTL_DDI_A) = data; in bxt_phy_ctl_family_write()
1837 vgpu_vreg(vgpu, _BXT_PHY_CTL_DDI_B) = data; in bxt_phy_ctl_family_write()
1838 vgpu_vreg(vgpu, _BXT_PHY_CTL_DDI_C) = data; in bxt_phy_ctl_family_write()
1842 vgpu_vreg(vgpu, offset) = v; in bxt_phy_ctl_family_write()
1850 u32 v = vgpu_vreg(vgpu, offset); in bxt_port_tx_dw3_read()
1854 vgpu_vreg(vgpu, offset) = v; in bxt_port_tx_dw3_read()
1865 vgpu_vreg(vgpu, offset - 0x600) = v; in bxt_pcs_dw12_grp_write()
1866 vgpu_vreg(vgpu, offset - 0x800) = v; in bxt_pcs_dw12_grp_write()
1868 vgpu_vreg(vgpu, offset - 0x400) = v; in bxt_pcs_dw12_grp_write()
1869 vgpu_vreg(vgpu, offset - 0x600) = v; in bxt_pcs_dw12_grp_write()
1872 vgpu_vreg(vgpu, offset) = v; in bxt_pcs_dw12_grp_write()
1897 vgpu_vreg(vgpu, offset) = v; in bxt_gt_disp_pwron_write()
1905 vgpu_vreg(vgpu, offset) = 0; in edp_psr_imr_iir_write()
1932 vgpu_vreg(vgpu, offset) = lower_32_bits(pat); in bxt_ppat_low_write()
1943 vgpu_vreg(vgpu, offset) &= ~GS_MIA_IN_RESET; in guc_status_read()
1966 vgpu_vreg(vgpu, offset) = in mmio_read_from_hw()
2081 vgpu_vreg(vgpu, offset) = 0; in gvt_reg_tlb_control_handler()
2113 data = vgpu_vreg(vgpu, offset); in ring_reset_ctl_write()
2120 vgpu_vreg(vgpu, offset) = data; in ring_reset_ctl_write()
3098 old_vreg = vgpu_vreg(vgpu, offset); in intel_vgpu_mask_mmio_write()
3100 mask = vgpu_vreg(vgpu, offset) >> 16; in intel_vgpu_mask_mmio_write()
3101 vgpu_vreg(vgpu, offset) = (old_vreg & ~mask) | in intel_vgpu_mask_mmio_write()
3102 (vgpu_vreg(vgpu, offset) & mask); in intel_vgpu_mask_mmio_write()
3176 old_vreg = vgpu_vreg(vgpu, offset); in intel_vgpu_mmio_reg_rw()
3188 data |= vgpu_vreg(vgpu, offset) & ro_mask; in intel_vgpu_mmio_reg_rw()
3194 u32 mask = vgpu_vreg(vgpu, offset) >> 16; in intel_vgpu_mmio_reg_rw()
3196 vgpu_vreg(vgpu, offset) = (old_vreg & ~mask) in intel_vgpu_mmio_reg_rw()
3197 | (vgpu_vreg(vgpu, offset) & mask); in intel_vgpu_mmio_reg_rw()
3228 intel_uncore_write(&dev_priv->uncore, _MMIO(offset), vgpu_vreg(vgpu, offset)); in mmio_pm_restore_handler()