Lines Matching defs:hwconfig
21 * static const u32 hwconfig[] = {
52 static int guc_hwconfig_discover_size(struct intel_guc *guc, struct intel_hwconfig *hwconfig)
67 hwconfig->size = ret;
71 static int guc_hwconfig_fill_buffer(struct intel_guc *guc, struct intel_hwconfig *hwconfig)
78 GEM_BUG_ON(!hwconfig->size);
80 ret = intel_guc_allocate_and_map_vma(guc, hwconfig->size, &vma, &vaddr);
86 ret = __guc_action_get_hwconfig(guc, ggtt_offset, hwconfig->size);
88 memcpy(hwconfig->ptr, vaddr, hwconfig->size);
113 struct intel_hwconfig *hwconfig = >->info.hwconfig;
120 ret = guc_hwconfig_discover_size(guc, hwconfig);
124 hwconfig->ptr = kmalloc(hwconfig->size, GFP_KERNEL);
125 if (!hwconfig->ptr) {
126 hwconfig->size = 0;
130 ret = guc_hwconfig_fill_buffer(guc, hwconfig);
159 struct intel_hwconfig *hwconfig = >->info.hwconfig;
161 kfree(hwconfig->ptr);
162 hwconfig->size = 0;
163 hwconfig->ptr = NULL;