/linux/drivers/gpu/drm/xe/ |
H A D | xe_gt_sriov_pf_control.c | 57 static int pf_send_vf_control_cmd(struct xe_gt *gt, unsigned int vfid, u32 cmd) in pf_send_vf_control_cmd() 72 static int pf_send_vf_pause(struct xe_gt *gt, unsigned int vfid) in pf_send_vf_pause() 77 static int pf_send_vf_resume(struct xe_gt *gt, unsigned int vfid) in pf_send_vf_resume() 82 static int pf_send_vf_stop(struct xe_gt *gt, unsigned int vfid) in pf_send_vf_stop() 87 static int pf_send_vf_flr_start(struct xe_gt *gt, unsigned int vfid) in pf_send_vf_flr_start() 92 static int pf_send_vf_flr_finish(struct xe_gt *gt, unsigned int vfid) in pf_send_vf_flr_finish() 214 static struct xe_gt_sriov_control_state *pf_pick_vf_control(struct xe_gt *gt, unsigned int vfid) in pf_pick_vf_control() 222 static unsigned long *pf_peek_vf_state(struct xe_gt *gt, unsigned int vfid) in pf_peek_vf_state() 229 static bool pf_check_vf_state(struct xe_gt *gt, unsigned int vfid, in pf_check_vf_state() 235 static void pf_dump_vf_state(struct xe_gt *gt, unsigned int vfid) in pf_dump_vf_state() [all …]
|
H A D | xe_gt.h | 22 #define CCS_MASK(gt) (((gt)->info.engine_mask & XE_HW_ENGINE_CCS_MASK) >> XE_HW_ENGINE_CCS0) argument 64 static inline bool xe_gt_wait_for_reset(struct xe_gt *gt) in xe_gt_wait_for_reset() 76 static inline bool xe_gt_reset(struct xe_gt *gt) in xe_gt_reset() 103 static inline bool xe_gt_has_indirect_ring_state(struct xe_gt *gt) in xe_gt_has_indirect_ring_state() 109 static inline bool xe_gt_is_main_type(struct xe_gt *gt) in xe_gt_is_main_type() 114 static inline bool xe_gt_is_media_type(struct xe_gt *gt) in xe_gt_is_media_type() 119 static inline bool xe_gt_is_usm_hwe(struct xe_gt *gt, struct xe_hw_engine *hwe) in xe_gt_is_usm_hwe()
|
H A D | xe_gsc_proxy.c | 68 struct xe_gt *gt = gsc_to_gt(gsc); in xe_gsc_proxy_init_done() local 77 struct xe_gt *gt = gsc_to_gt(gsc); in xe_gsc_wait_for_proxy_init_done() local 88 struct xe_gt *gt = gsc_to_gt(gsc); in __gsc_proxy_irq_rmw() local 112 struct xe_gt *gt = gsc_to_gt(gsc); in proxy_send_to_csme() local 133 struct xe_gt *gt = gsc_to_gt(gsc); in proxy_send_to_gsc() local 154 static int validate_proxy_header(struct xe_gt *gt, in validate_proxy_header() 223 struct xe_gt *gt = gsc_to_gt(gsc); in proxy_query() local 327 struct xe_gt *gt = gsc_to_gt(gsc); in xe_gsc_proxy_request_handler() local 360 struct xe_gt *gt = gsc_to_gt(gsc); in xe_gsc_proxy_irq_handler() local 381 struct xe_gt *gt = xe->tiles[0].media_gt; in xe_gsc_proxy_component_bind() local [all …]
|
H A D | xe_force_wake.c | 45 void xe_force_wake_init_gt(struct xe_gt *gt, struct xe_force_wake *fw) in xe_force_wake_init_gt() 63 void xe_force_wake_init_engines(struct xe_gt *gt, struct xe_force_wake *fw) in xe_force_wake_init_engines() 96 static void __domain_ctl(struct xe_gt *gt, struct xe_force_wake_domain *domain, bool wake) in __domain_ctl() 104 static int __domain_wait(struct xe_gt *gt, struct xe_force_wake_domain *domain, bool wake) in __domain_wait() 129 static void domain_wake(struct xe_gt *gt, struct xe_force_wake_domain *domain) in domain_wake() 134 static int domain_wake_wait(struct xe_gt *gt, in domain_wake_wait() 140 static void domain_sleep(struct xe_gt *gt, struct xe_force_wake_domain *domain) in domain_sleep() 145 static int domain_sleep_wait(struct xe_gt *gt, in domain_sleep_wait() 175 struct xe_gt *gt = fw->gt; in xe_force_wake_get() local 226 struct xe_gt *gt = fw->gt; in xe_force_wake_put() local
|
H A D | xe_gt_ccs_mode.c | 17 static void __xe_gt_apply_ccs_mode(struct xe_gt *gt, u32 num_engines) in __xe_gt_apply_ccs_mode() 83 void xe_gt_apply_ccs_mode(struct xe_gt *gt) in xe_gt_apply_ccs_mode() 95 struct xe_gt *gt = kobj_to_gt(&kdev->kobj); in num_cslices_show() local 106 struct xe_gt *gt = kobj_to_gt(&kdev->kobj); in ccs_mode_show() local 115 struct xe_gt *gt = kobj_to_gt(&kdev->kobj); in ccs_mode_store() local 171 struct xe_gt *gt = arg; in xe_gt_ccs_mode_sysfs_fini() local 189 int xe_gt_ccs_mode_sysfs_init(struct xe_gt *gt) in xe_gt_ccs_mode_sysfs_init()
|
H A D | xe_gt_sriov_pf.h | 20 static inline int xe_gt_sriov_pf_init_early(struct xe_gt *gt) in xe_gt_sriov_pf_init_early() 25 static inline int xe_gt_sriov_pf_init(struct xe_gt *gt) in xe_gt_sriov_pf_init() 30 static inline void xe_gt_sriov_pf_init_hw(struct xe_gt *gt) in xe_gt_sriov_pf_init_hw() 34 static inline void xe_gt_sriov_pf_stop_prepare(struct xe_gt *gt) in xe_gt_sriov_pf_stop_prepare() 38 static inline void xe_gt_sriov_pf_restart(struct xe_gt *gt) in xe_gt_sriov_pf_restart()
|
H A D | xe_gt_sriov_pf_service.c | 132 static int pf_alloc_runtime_info(struct xe_gt *gt) in pf_alloc_runtime_info() 162 static void read_many(struct xe_gt *gt, unsigned int count, in read_many() 169 static void pf_prepare_runtime_info(struct xe_gt *gt) in pf_prepare_runtime_info() 200 int xe_gt_sriov_pf_service_init(struct xe_gt *gt) in xe_gt_sriov_pf_service_init() 223 void xe_gt_sriov_pf_service_update(struct xe_gt *gt) in xe_gt_sriov_pf_service_update() 229 static int pf_process_handshake_msg(struct xe_gt *gt, u32 origin, in pf_process_handshake_msg() 271 static int pf_service_runtime_query(struct xe_gt *gt, u32 start, u32 limit, in pf_service_runtime_query() 298 static int pf_process_runtime_query_msg(struct xe_gt *gt, u32 origin, in pf_process_runtime_query_msg() 351 int xe_gt_sriov_pf_service_process_request(struct xe_gt *gt, u32 origin, in xe_gt_sriov_pf_service_process_request() 388 int xe_gt_sriov_pf_service_print_runtime(struct xe_gt *gt, struct drm_printer *p) in xe_gt_sriov_pf_service_print_runtime()
|
H A D | xe_mocs.c | 26 static inline void mocs_dbg(const struct xe_gt *gt, in mocs_dbg() 260 static bool regs_are_mcr(struct xe_gt *gt) in regs_are_mcr() 270 static void xelp_lncf_dump(struct xe_mocs_info *info, struct xe_gt *gt, struct drm_printer *p) in xelp_lncf_dump() 300 struct xe_gt *gt, struct drm_printer *p) in xelp_mocs_dump() 375 struct xe_gt *gt, struct drm_printer *p) in xehp_lncf_dump() 419 static void pvc_mocs_dump(struct xe_mocs_info *info, unsigned int flags, struct xe_gt *gt, in pvc_mocs_dump() 501 struct xe_gt *gt, struct drm_printer *p) in mtl_mocs_dump() 544 struct xe_gt *gt, struct drm_printer *p) in xe2_mocs_dump() 677 static void __init_mocs_table(struct xe_gt *gt, in __init_mocs_table() 716 static void init_l3cc_table(struct xe_gt *gt, in init_l3cc_table() [all …]
|
H A D | xe_gt_sriov_pf_monitor.c | 24 void xe_gt_sriov_pf_monitor_flr(struct xe_gt *gt, u32 vfid) in xe_gt_sriov_pf_monitor_flr() 35 static void pf_update_event_counter(struct xe_gt *gt, u32 vfid, in pf_update_event_counter() 44 static int pf_handle_vf_threshold_event(struct xe_gt *gt, u32 vfid, u32 threshold) in pf_handle_vf_threshold_event() 78 int xe_gt_sriov_pf_monitor_process_guc2pf(struct xe_gt *gt, const u32 *msg, u32 len) in xe_gt_sriov_pf_monitor_process_guc2pf() 118 void xe_gt_sriov_pf_monitor_print_events(struct xe_gt *gt, struct drm_printer *p) in xe_gt_sriov_pf_monitor_print_events()
|
H A D | xe_gt_sriov_pf_debugfs.c | 165 static void pf_add_policy_attrs(struct xe_gt *gt, struct dentry *parent) in pf_add_policy_attrs() 256 struct xe_gt *gt = extract_gt(data); in set_threshold() local 273 struct xe_gt *gt = extract_gt(data); in get_threshold() local 354 struct xe_gt *gt = extract_gt(parent); in control_write() local 422 struct xe_gt *gt = extract_gt(parent); in guc_state_read() local 433 struct xe_gt *gt = extract_gt(parent); in guc_state_write() local 460 struct xe_gt *gt = extract_gt(parent); in config_blob_read() local 488 struct xe_gt *gt = extract_gt(parent); in config_blob_write() local 531 void xe_gt_sriov_pf_debugfs_register(struct xe_gt *gt, struct dentry *root) in xe_gt_sriov_pf_debugfs_register()
|
H A D | xe_pmu.c | 94 u64 gt = config_to_gt_id(event->attr.config); in event_to_gt() local 137 struct xe_gt *gt; in event_gt_forcewake() local 164 struct xe_gt *gt = xe_device_get_gt(xe, gt_id); in event_supported() local 178 struct xe_gt *gt; in event_param_valid() local 217 struct xe_gt *gt; in xe_pmu_event_destroy() local 236 unsigned int id, gt; in xe_pmu_event_init() local 276 static u64 read_engine_events(struct xe_gt *gt, struct perf_event *event) in read_engine_events() 296 struct xe_gt *gt = event_to_gt(event); in __xe_pmu_event_read() local 500 struct xe_gt *gt = xe_device_get_gt(xe, 0); in set_supported_events() local
|
H A D | xe_huc.c | 49 struct xe_gt *gt = huc_to_gt(huc); in huc_alloc_gsc_pkt() local 68 struct xe_gt *gt = huc_to_gt(huc); in xe_huc_init() local 155 struct xe_gt *gt = huc_to_gt(huc); in huc_auth_via_gsccs() local 230 struct xe_gt *gt = huc_to_gt(huc); in xe_huc_is_authenticated() local 237 struct xe_gt *gt = huc_to_gt(huc); in xe_huc_auth() local 298 struct xe_gt *gt = huc_to_gt(huc); in xe_huc_print_info() local
|
/linux/drivers/gpu/drm/i915/gt/ |
H A D | intel_gt.h | 20 #define IS_GFX_GT_IP_RANGE(gt, from, until) ( \ argument 34 #define IS_MEDIA_GT_IP_RANGE(gt, from, until) ( \ argument 56 #define IS_GFX_GT_IP_STEP(gt, ipver, from, until) ( \ argument 74 #define IS_MEDIA_GT_IP_STEP(gt, ipver, from, until) ( \ argument 79 #define GT_TRACE(gt, fmt, ...) do { \ argument 85 static inline bool gt_is_root(struct intel_gt *gt) in gt_is_root() 127 static inline struct intel_guc *gt_to_guc(struct intel_gt *gt) in gt_to_guc() 155 static inline u32 intel_gt_scratch_offset(const struct intel_gt *gt, in intel_gt_scratch_offset() 161 static inline bool intel_gt_has_unrecoverable_error(const struct intel_gt *gt) in intel_gt_has_unrecoverable_error() 167 static inline bool intel_gt_is_wedged(const struct intel_gt *gt) in intel_gt_is_wedged() [all …]
|
H A D | intel_gt_pm_irq.c | 13 static void write_pm_imr(struct intel_gt *gt) in write_pm_imr() 32 static void gen6_gt_pm_update_irq(struct intel_gt *gt, in gen6_gt_pm_update_irq() 52 void gen6_gt_pm_unmask_irq(struct intel_gt *gt, u32 mask) in gen6_gt_pm_unmask_irq() 57 void gen6_gt_pm_mask_irq(struct intel_gt *gt, u32 mask) in gen6_gt_pm_mask_irq() 62 void gen6_gt_pm_reset_iir(struct intel_gt *gt, u32 reset_mask) in gen6_gt_pm_reset_iir() 74 static void write_pm_ier(struct intel_gt *gt) in write_pm_ier() 93 void gen6_gt_pm_enable_irq(struct intel_gt *gt, u32 enable_mask) in gen6_gt_pm_enable_irq() 102 void gen6_gt_pm_disable_irq(struct intel_gt *gt, u32 disable_mask) in gen6_gt_pm_disable_irq()
|
H A D | intel_sseu_debugfs.c | 15 static void cherryview_sseu_device_status(struct intel_gt *gt, in cherryview_sseu_device_status() 49 static void gen11_sseu_device_status(struct intel_gt *gt, in gen11_sseu_device_status() 109 static void gen9_sseu_device_status(struct intel_gt *gt, in gen9_sseu_device_status() 168 static void bdw_sseu_device_status(struct intel_gt *gt, in bdw_sseu_device_status() 231 int intel_sseu_status(struct seq_file *m, struct intel_gt *gt) in intel_sseu_status() 274 struct intel_gt *gt = m->private; in sseu_status_show() local 282 struct intel_gt *gt = m->private; in sseu_topology_show() local 291 void intel_sseu_debugfs_register(struct intel_gt *gt, struct dentry *root) in intel_sseu_debugfs_register()
|
H A D | selftest_execlists.c | 111 struct intel_gt *gt = arg; in live_sanitycheck() local 164 static int live_unlite_restore(struct intel_gt *gt, int prio) in live_unlite_restore() 327 struct intel_gt *gt = arg; in live_unlite_ring() local 477 struct intel_gt *gt = arg; in live_pin_rewind() local 581 struct intel_gt *gt = arg; in live_hold_reset() local 688 struct intel_gt *gt = arg; in live_error_interrupt() local 978 struct intel_gt *gt = arg; in live_timeslice_preempt() local 1113 struct intel_gt *gt = arg; in live_timeslice_rewind() local 1286 struct intel_gt *gt = arg; in live_timeslice_queue() local 1412 struct intel_gt *gt = arg; in live_timeslice_nopreempt() local [all …]
|
H A D | selftest_reset.c | 18 __igt_reset_stolen(struct intel_gt *gt, in __igt_reset_stolen() 192 struct intel_gt *gt = arg; in igt_reset_engines_stolen() local 211 struct intel_gt *gt = arg; in igt_global_reset() local 241 struct intel_gt *gt = arg; in igt_wedged_reset() local 262 struct intel_gt *gt = arg; in igt_atomic_reset() local 307 struct intel_gt *gt = arg; in igt_atomic_engine_reset() local 385 struct intel_gt *gt = to_gt(i915); in intel_reset_live_selftests() local
|
H A D | intel_gt_sysfs.c | 49 static struct kobject *gt_get_parent_obj(struct intel_gt *gt) in gt_get_parent_obj() 58 struct intel_gt *gt = intel_gt_sysfs_get_drvdata(kobj, attr->attr.name); in id_show() local 81 void intel_gt_sysfs_register(struct intel_gt *gt) in intel_gt_sysfs_register() 112 void intel_gt_sysfs_unregister(struct intel_gt *gt) in intel_gt_sysfs_unregister()
|
/linux/arch/riscv/kvm/ |
H A D | vcpu_timer.c | 18 static u64 kvm_riscv_current_cycles(struct kvm_guest_timer *gt) in kvm_riscv_current_cycles() 24 struct kvm_guest_timer *gt, in kvm_riscv_delta_cycles2ns() 47 struct kvm_guest_timer *gt = &vcpu->kvm->arch.timer; in kvm_riscv_vcpu_hrtimer_expired() local 86 struct kvm_guest_timer *gt = &vcpu->kvm->arch.timer; in kvm_riscv_vcpu_update_hrtimer() local 114 struct kvm_guest_timer *gt = &vcpu->kvm->arch.timer; in kvm_riscv_vcpu_vstimer_expired() local 131 struct kvm_guest_timer *gt = &vcpu->kvm->arch.timer; in kvm_riscv_vcpu_timer_pending() local 143 struct kvm_guest_timer *gt = &vcpu->kvm->arch.timer; in kvm_riscv_vcpu_timer_blocking() local 163 struct kvm_guest_timer *gt = &vcpu->kvm->arch.timer; in kvm_riscv_vcpu_get_reg_timer() local 203 struct kvm_guest_timer *gt = &vcpu->kvm->arch.timer; in kvm_riscv_vcpu_set_reg_timer() local 290 struct kvm_guest_timer *gt = &vcpu->kvm->arch.timer; in kvm_riscv_vcpu_update_timedelta() local [all …]
|
/linux/drivers/gpu/drm/i915/gt/uc/ |
H A D | intel_gsc_uc.c | 19 struct intel_gt *gt = gsc_uc_to_gt(gsc); in gsc_work() local 98 static bool gsc_engine_supported(struct intel_gt *gt) in gsc_engine_supported() 120 struct intel_gt *gt = gsc_uc_to_gt(gsc); in intel_gsc_uc_init_early() local 148 struct intel_gt *gt = gsc_uc_to_gt(gsc); in gsc_allocate_and_map_vma() local 213 struct intel_gt *gt = gsc_uc_to_gt(gsc); in intel_gsc_uc_init() local 303 struct intel_gt *gt = gsc_uc_to_gt(gsc); in intel_gsc_uc_load_start() local 320 struct intel_gt *gt = gsc_uc_to_gt(gsc); in intel_gsc_uc_load_status() local
|
H A D | intel_guc_ads.c | 163 struct intel_gt *gt = guc_to_gt(guc); in guc_policies_init() local 206 struct intel_gt *gt = guc_to_gt(guc); in intel_guc_global_policies_update() local 228 static void guc_mapping_table_init(struct intel_gt *gt, in guc_mapping_table_init() 301 static long __must_check guc_mmio_reg_add(struct intel_gt *gt, in guc_mmio_reg_add() 337 #define GUC_MMIO_REG_ADD(gt, regset, reg, masked) \ argument 349 static long __must_check guc_mcr_reg_add(struct intel_gt *gt, in guc_mcr_reg_add() 369 #define GUC_MCR_REG_ADD(gt, regset, reg, masked) \ argument 378 struct intel_gt *gt = engine->gt; in guc_mmio_regset_init() local 435 struct intel_gt *gt = guc_to_gt(guc); in guc_mmio_reg_state_create() local 467 struct intel_gt *gt = guc_to_gt(guc); in guc_mmio_reg_state_init() local [all …]
|
H A D | intel_uc.c | 59 struct intel_gt *gt = uc_to_gt(uc); in __intel_uc_reset_hw() local 83 struct intel_gt *gt = uc_to_gt(uc); in __confirm_options() local 222 struct intel_gt *gt = guc_to_gt(guc); in guc_enable_communication() local 278 struct intel_gt *gt = uc_to_gt(uc); in __uc_fetch_firmwares() local 365 struct intel_gt *gt = uc_to_gt(uc); in uc_init_wopcm() local 418 struct intel_gt *gt = uc_to_gt(uc); in uc_is_wopcm_locked() local 444 static void print_fw_ver(struct intel_gt *gt, struct intel_uc_fw *fw) in print_fw_ver() 455 struct intel_gt *gt = uc_to_gt(uc); in __uc_init_hw() local 712 struct intel_gt *gt = guc_to_gt(guc); in __uc_resume() local
|
H A D | intel_huc.c | 255 static bool vcs_supported(struct intel_gt *gt) in vcs_supported() 281 struct intel_gt *gt = huc_to_gt(huc); in intel_huc_init_early() local 328 struct intel_gt *gt = huc_to_gt(huc); in check_huc_loading_mode() local 383 struct intel_gt *gt = huc_to_gt(huc); in intel_huc_init() local 453 struct intel_gt *gt = huc_to_gt(huc); in intel_huc_wait_for_auth_complete() local 530 struct intel_gt *gt = huc_to_gt(huc); in intel_huc_auth() local 578 struct intel_gt *gt = huc_to_gt(huc); in intel_huc_is_authenticated() local 674 struct intel_gt *gt = huc_to_gt(huc); in intel_huc_load_status() local
|
/linux/drivers/gpu/drm/i915/pxp/ |
H A D | intel_pxp_irq.c | 27 struct intel_gt *gt; in intel_pxp_irq_handler() local 54 static inline void __pxp_set_interrupts(struct intel_gt *gt, u32 interrupts) in __pxp_set_interrupts() 63 static inline void pxp_irq_reset(struct intel_gt *gt) in pxp_irq_reset() 72 struct intel_gt *gt = pxp->ctrl_gt; in intel_pxp_irq_enable() local 87 struct intel_gt *gt = pxp->ctrl_gt; in intel_pxp_irq_disable() local
|
/linux/drivers/gpu/drm/xe/tests/ |
H A D | xe_mocs.c | 23 static int live_mocs_init(struct live_mocs *arg, struct xe_gt *gt) in live_mocs_init() 41 static void read_l3cc_table(struct xe_gt *gt, in read_l3cc_table() 80 static void read_mocs_table(struct xe_gt *gt, in read_mocs_table() 118 struct xe_gt *gt; in mocs_kernel_test_run_device() local 153 struct xe_gt *gt; in mocs_reset_test_run_device() local
|