Home
last modified time | relevance | path

Searched refs:oa_regs (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/drivers/gpu/drm/xe/
Dxe_oa.c2010 struct xe_oa_reg *oa_regs; in xe_oa_alloc_regs() local
2014 oa_regs = kmalloc_array(n_regs, sizeof(*oa_regs), GFP_KERNEL); in xe_oa_alloc_regs()
2015 if (!oa_regs) in xe_oa_alloc_regs()
2035 oa_regs[i].addr = XE_REG(addr); in xe_oa_alloc_regs()
2036 oa_regs[i].value = value; in xe_oa_alloc_regs()
2041 return oa_regs; in xe_oa_alloc_regs()
2044 kfree(oa_regs); in xe_oa_alloc_regs()
/linux-6.12.1/drivers/gpu/drm/i915/
Di915_perf.c4503 struct i915_oa_reg *oa_regs; in alloc_oa_regs() local
4515 oa_regs = kmalloc_array(n_regs, sizeof(*oa_regs), GFP_KERNEL); in alloc_oa_regs()
4516 if (!oa_regs) in alloc_oa_regs()
4537 oa_regs[i].addr = _MMIO(addr); in alloc_oa_regs()
4538 oa_regs[i].value = mask_reg_value(addr, value); in alloc_oa_regs()
4543 return oa_regs; in alloc_oa_regs()
4546 kfree(oa_regs); in alloc_oa_regs()