Lines Matching refs:gt

75 		  struct xe_gt *gt)  in xe_reg_sr_add()  argument
110 xe_gt_err(gt, in xe_reg_sr_add()
130 static void apply_one_mmio(struct xe_gt *gt, struct xe_reg_sr_entry *entry) in apply_one_mmio() argument
148 xe_gt_mcr_unicast_read_any(gt, reg_mcr) : in apply_one_mmio()
149 xe_mmio_read32(&gt->mmio, reg)) & (~entry->clr_bits); in apply_one_mmio()
160 xe_gt_dbg(gt, "REG[0x%x] = 0x%08x", reg.addr, val); in apply_one_mmio()
163 xe_gt_mcr_multicast_write(gt, reg_mcr, val); in apply_one_mmio()
165 xe_mmio_write32(&gt->mmio, reg, val); in apply_one_mmio()
168 void xe_reg_sr_apply_mmio(struct xe_reg_sr *sr, struct xe_gt *gt) in xe_reg_sr_apply_mmio() argument
180 xe_gt_assert(gt, !IS_SRIOV_VF(gt_to_xe(gt))); in xe_reg_sr_apply_mmio()
182 xe_gt_dbg(gt, "Applying %s save-restore MMIOs\n", sr->name); in xe_reg_sr_apply_mmio()
184 CLASS(xe_force_wake, fw_ref)(gt_to_fw(gt), XE_FORCEWAKE_ALL); in xe_reg_sr_apply_mmio()
186 xe_gt_err(gt, "Failed to apply, err=-ETIMEDOUT\n"); in xe_reg_sr_apply_mmio()
191 apply_one_mmio(gt, entry); in xe_reg_sr_apply_mmio()
215 static u32 readback_reg(struct xe_gt *gt, struct xe_reg reg) in readback_reg() argument
220 return xe_gt_mcr_unicast_read_any(gt, mcr_reg); in readback_reg()
222 return xe_mmio_read32(&gt->mmio, reg); in readback_reg()
233 struct xe_gt *gt, in xe_reg_sr_readback_check() argument
240 u32 val = readback_reg(gt, entry->reg); in xe_reg_sr_readback_check()
258 struct xe_gt *gt, in xe_reg_sr_lrc_check() argument
267 int ret = xe_lrc_lookup_default_reg_value(gt, hwe->class, offset, &val); in xe_reg_sr_lrc_check()