Home
last modified time | relevance | path

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

/linux-6.15/drivers/gpu/drm/xe/
H A Dxe_oa.c2187 struct xe_oa_reg *oa_regs; in xe_oa_alloc_regs() local
2191 oa_regs = kmalloc_array(n_regs, sizeof(*oa_regs), GFP_KERNEL); in xe_oa_alloc_regs()
2192 if (!oa_regs) in xe_oa_alloc_regs()
2212 oa_regs[i].addr = XE_REG(addr); in xe_oa_alloc_regs()
2213 oa_regs[i].value = value; in xe_oa_alloc_regs()
2218 return oa_regs; in xe_oa_alloc_regs()
2221 kfree(oa_regs); in xe_oa_alloc_regs()
/linux-6.15/drivers/gpu/drm/i915/
H A Di915_perf.c4507 struct i915_oa_reg *oa_regs; in alloc_oa_regs() local
4519 oa_regs = kmalloc_array(n_regs, sizeof(*oa_regs), GFP_KERNEL); in alloc_oa_regs()
4520 if (!oa_regs) in alloc_oa_regs()
4541 oa_regs[i].addr = _MMIO(addr); in alloc_oa_regs()
4542 oa_regs[i].value = mask_reg_value(addr, value); in alloc_oa_regs()
4547 return oa_regs; in alloc_oa_regs()
4550 kfree(oa_regs); in alloc_oa_regs()