Home
last modified time | relevance | path

Searched refs:uc_fw (Results 1 – 6 of 6) sorted by relevance

/linux-6.12.1/drivers/gpu/drm/i915/gt/uc/
Dintel_uc_fw.c30 ____uc_fw_to_gt(struct intel_uc_fw *uc_fw, enum intel_uc_fw_type type) in ____uc_fw_to_gt() argument
36 return container_of(uc_fw, struct intel_gt, uc.guc.fw); in ____uc_fw_to_gt()
38 return container_of(uc_fw, struct intel_gt, uc.huc.fw); in ____uc_fw_to_gt()
40 return container_of(uc_fw, struct intel_gt, uc.gsc.fw); in ____uc_fw_to_gt()
46 static inline struct intel_gt *__uc_fw_to_gt(struct intel_uc_fw *uc_fw) in __uc_fw_to_gt() argument
48 GEM_BUG_ON(uc_fw->status == INTEL_UC_FIRMWARE_UNINITIALIZED); in __uc_fw_to_gt()
49 return ____uc_fw_to_gt(uc_fw, uc_fw->type); in __uc_fw_to_gt()
53 void intel_uc_fw_change_status(struct intel_uc_fw *uc_fw, in intel_uc_fw_change_status() argument
56 uc_fw->__status = status; in intel_uc_fw_change_status()
57 gt_dbg(__uc_fw_to_gt(uc_fw), "%s firmware -> %s\n", in intel_uc_fw_change_status()
[all …]
Dintel_uc_fw.h141 void intel_uc_fw_change_status(struct intel_uc_fw *uc_fw,
144 static inline void intel_uc_fw_change_status(struct intel_uc_fw *uc_fw, in intel_uc_fw_change_status() argument
147 uc_fw->__status = status; in intel_uc_fw_change_status()
224 __intel_uc_fw_status(struct intel_uc_fw *uc_fw) in __intel_uc_fw_status() argument
227 GEM_BUG_ON(uc_fw->status == INTEL_UC_FIRMWARE_UNINITIALIZED); in __intel_uc_fw_status()
228 return uc_fw->status; in __intel_uc_fw_status()
231 static inline bool intel_uc_fw_is_supported(struct intel_uc_fw *uc_fw) in intel_uc_fw_is_supported() argument
233 return __intel_uc_fw_status(uc_fw) != INTEL_UC_FIRMWARE_NOT_SUPPORTED; in intel_uc_fw_is_supported()
236 static inline bool intel_uc_fw_is_enabled(struct intel_uc_fw *uc_fw) in intel_uc_fw_is_enabled() argument
238 return __intel_uc_fw_status(uc_fw) > INTEL_UC_FIRMWARE_DISABLED; in intel_uc_fw_is_enabled()
[all …]
/linux-6.12.1/drivers/gpu/drm/xe/
Dxe_uc_fw.h17 int xe_uc_fw_init(struct xe_uc_fw *uc_fw);
18 size_t xe_uc_fw_copy_rsa(struct xe_uc_fw *uc_fw, void *dst, u32 max_len);
19 int xe_uc_fw_upload(struct xe_uc_fw *uc_fw, u32 offset, u32 dma_flags);
20 int xe_uc_fw_check_version_requirements(struct xe_uc_fw *uc_fw);
21 void xe_uc_fw_print(struct xe_uc_fw *uc_fw, struct drm_printer *p);
23 static inline u32 xe_uc_fw_rsa_offset(struct xe_uc_fw *uc_fw) in xe_uc_fw_rsa_offset() argument
25 return sizeof(struct uc_css_header) + uc_fw->ucode_size + uc_fw->css_offset; in xe_uc_fw_rsa_offset()
28 static inline void xe_uc_fw_change_status(struct xe_uc_fw *uc_fw, in xe_uc_fw_change_status() argument
31 uc_fw->__status = status; in xe_uc_fw_change_status()
111 __xe_uc_fw_status(const struct xe_uc_fw *uc_fw) in __xe_uc_fw_status() argument
[all …]
Dxe_uc_fw.c177 __uc_fw_to_gt(struct xe_uc_fw *uc_fw, enum xe_uc_fw_type type) in XE_GUC_FIRMWARE_DEFS()
183 return container_of(uc_fw, struct xe_gt, uc.guc.fw); in XE_GUC_FIRMWARE_DEFS()
185 return container_of(uc_fw, struct xe_gt, uc.huc.fw); in XE_GUC_FIRMWARE_DEFS()
187 return container_of(uc_fw, struct xe_gt, uc.gsc.fw); in XE_GUC_FIRMWARE_DEFS()
193 static struct xe_gt *uc_fw_to_gt(struct xe_uc_fw *uc_fw) in uc_fw_to_gt() argument
195 return __uc_fw_to_gt(uc_fw, uc_fw->type); in uc_fw_to_gt()
198 static struct xe_device *uc_fw_to_xe(struct xe_uc_fw *uc_fw) in uc_fw_to_xe() argument
200 return gt_to_xe(uc_fw_to_gt(uc_fw)); in uc_fw_to_xe()
204 uc_fw_auto_select(struct xe_device *xe, struct xe_uc_fw *uc_fw) in uc_fw_auto_select() argument
229 xe_assert(xe, uc_fw->type < ARRAY_SIZE(blobs_all)); in uc_fw_auto_select()
[all …]
/linux-6.12.1/drivers/gpu/drm/i915/gt/
Dintel_ggtt.c791 ret = i915_gem_gtt_reserve(&ggtt->vm, NULL, &ggtt->uc_fw, in ggtt_reserve_guc_top()
803 if (drm_mm_node_allocated(&ggtt->uc_fw)) in ggtt_release_guc_top()
804 drm_mm_remove_node(&ggtt->uc_fw); in ggtt_release_guc_top()
Dintel_gtt.h403 struct drm_mm_node uc_fw; member