Lines Matching refs:guc
17 static int send_get_hwconfig(struct xe_guc *guc, u32 ggtt_addr, u32 size)
26 return xe_guc_mmio_send(guc, action, ARRAY_SIZE(action));
29 static int guc_hwconfig_size(struct xe_guc *guc, u32 *size)
31 int ret = send_get_hwconfig(guc, 0, 0);
40 static int guc_hwconfig_copy(struct xe_guc *guc)
42 int ret = send_get_hwconfig(guc, xe_bo_ggtt_addr(guc->hwconfig.bo),
43 guc->hwconfig.size);
51 int xe_guc_hwconfig_init(struct xe_guc *guc)
53 struct xe_device *xe = guc_to_xe(guc);
54 struct xe_gt *gt = guc_to_gt(guc);
61 if (guc->hwconfig.bo)
74 err = guc_hwconfig_size(guc, &size);
85 guc->hwconfig.bo = bo;
86 guc->hwconfig.size = size;
88 return guc_hwconfig_copy(guc);
91 u32 xe_guc_hwconfig_size(struct xe_guc *guc)
93 return !guc->hwconfig.bo ? 0 : guc->hwconfig.size;
96 void xe_guc_hwconfig_copy(struct xe_guc *guc, void *dst)
98 struct xe_device *xe = guc_to_xe(guc);
100 XE_WARN_ON(!guc->hwconfig.bo);
102 xe_map_memcpy_from(xe, dst, &guc->hwconfig.bo->vmap, 0,
103 guc->hwconfig.size);