Lines Matching defs:adev
46 int amdgpu_gfx_mec_queue_to_bit(struct amdgpu_device *adev, int mec, in amdgpu_gfx_mec_queue_to_bit()
59 void amdgpu_queue_mask_bit_to_mec_queue(struct amdgpu_device *adev, int bit, in amdgpu_queue_mask_bit_to_mec_queue()
70 bool amdgpu_gfx_is_mec_queue_enabled(struct amdgpu_device *adev, in amdgpu_gfx_is_mec_queue_enabled()
77 int amdgpu_gfx_me_queue_to_bit(struct amdgpu_device *adev, in amdgpu_gfx_me_queue_to_bit()
90 bool amdgpu_gfx_is_me_queue_enabled(struct amdgpu_device *adev, in amdgpu_gfx_is_me_queue_enabled()
142 static bool amdgpu_gfx_is_graphics_multipipe_capable(struct amdgpu_device *adev) in amdgpu_gfx_is_graphics_multipipe_capable()
147 static bool amdgpu_gfx_is_compute_multipipe_capable(struct amdgpu_device *adev) in amdgpu_gfx_is_compute_multipipe_capable()
166 bool amdgpu_gfx_is_high_priority_graphics_queue(struct amdgpu_device *adev, in amdgpu_gfx_is_high_priority_graphics_queue()
188 bool amdgpu_gfx_is_high_priority_compute_queue(struct amdgpu_device *adev, in amdgpu_gfx_is_high_priority_compute_queue()
201 void amdgpu_gfx_compute_queue_acquire(struct amdgpu_device *adev) in amdgpu_gfx_compute_queue_acquire()
237 void amdgpu_gfx_graphics_queue_acquire(struct amdgpu_device *adev) in amdgpu_gfx_graphics_queue_acquire()
265 static int amdgpu_gfx_kiq_acquire(struct amdgpu_device *adev, in amdgpu_gfx_kiq_acquire()
300 int amdgpu_gfx_kiq_init_ring(struct amdgpu_device *adev, int xcc_id) in amdgpu_gfx_kiq_init_ring()
341 void amdgpu_gfx_kiq_fini(struct amdgpu_device *adev, int xcc_id) in amdgpu_gfx_kiq_fini()
348 int amdgpu_gfx_kiq_init(struct amdgpu_device *adev, in amdgpu_gfx_kiq_init()
375 int amdgpu_gfx_mqd_sw_init(struct amdgpu_device *adev, in amdgpu_gfx_mqd_sw_init()
466 void amdgpu_gfx_mqd_sw_fini(struct amdgpu_device *adev, int xcc_id) in amdgpu_gfx_mqd_sw_fini()
498 int amdgpu_gfx_disable_kcq(struct amdgpu_device *adev, int xcc_id) in amdgpu_gfx_disable_kcq()
548 int amdgpu_gfx_disable_kgq(struct amdgpu_device *adev, int xcc_id) in amdgpu_gfx_disable_kgq()
602 int amdgpu_queue_mask_bit_to_set_resource_bit(struct amdgpu_device *adev, in amdgpu_queue_mask_bit_to_set_resource_bit()
615 static int amdgpu_gfx_mes_enable_kcq(struct amdgpu_device *adev, int xcc_id) in amdgpu_gfx_mes_enable_kcq()
653 int amdgpu_gfx_enable_kcq(struct amdgpu_device *adev, int xcc_id) in amdgpu_gfx_enable_kcq()
717 int amdgpu_gfx_enable_kgq(struct amdgpu_device *adev, int xcc_id) in amdgpu_gfx_enable_kgq()
774 static void amdgpu_gfx_do_off_ctrl(struct amdgpu_device *adev, bool enable, in amdgpu_gfx_do_off_ctrl()
841 void amdgpu_gfx_off_ctrl(struct amdgpu_device *adev, bool enable) in amdgpu_gfx_off_ctrl()
861 void amdgpu_gfx_off_ctrl_immediate(struct amdgpu_device *adev, bool enable) in amdgpu_gfx_off_ctrl_immediate()
866 int amdgpu_set_gfx_off_residency(struct amdgpu_device *adev, bool value) in amdgpu_set_gfx_off_residency()
879 int amdgpu_get_gfx_off_residency(struct amdgpu_device *adev, u32 *value) in amdgpu_get_gfx_off_residency()
892 int amdgpu_get_gfx_off_entrycount(struct amdgpu_device *adev, u64 *value) in amdgpu_get_gfx_off_entrycount()
905 int amdgpu_get_gfx_off_status(struct amdgpu_device *adev, uint32_t *value) in amdgpu_get_gfx_off_status()
919 int amdgpu_gfx_ras_late_init(struct amdgpu_device *adev, struct ras_common_if *ras_block) in amdgpu_gfx_ras_late_init()
952 int amdgpu_gfx_ras_sw_init(struct amdgpu_device *adev) in amdgpu_gfx_ras_sw_init()
987 int amdgpu_gfx_poison_consumption_handler(struct amdgpu_device *adev, in amdgpu_gfx_poison_consumption_handler()
996 int amdgpu_gfx_process_ras_data_cb(struct amdgpu_device *adev, in amdgpu_gfx_process_ras_data_cb()
1016 int amdgpu_gfx_cp_ecc_error_irq(struct amdgpu_device *adev, in amdgpu_gfx_cp_ecc_error_irq()
1035 void amdgpu_gfx_ras_error_func(struct amdgpu_device *adev, in amdgpu_gfx_ras_error_func()
1037 void (*func)(struct amdgpu_device *adev, void *ras_error_status, in amdgpu_gfx_ras_error_func()
1054 uint32_t amdgpu_kiq_rreg(struct amdgpu_device *adev, uint32_t reg, uint32_t xcc_id) in amdgpu_kiq_rreg()
1125 void amdgpu_kiq_wreg(struct amdgpu_device *adev, uint32_t reg, uint32_t v, uint32_t xcc_id) in amdgpu_kiq_wreg()
1189 int amdgpu_gfx_get_num_kcq(struct amdgpu_device *adev) in amdgpu_gfx_get_num_kcq()
1200 void amdgpu_gfx_cp_init_microcode(struct amdgpu_device *adev, in amdgpu_gfx_cp_init_microcode()
1340 bool amdgpu_gfx_is_master_xcc(struct amdgpu_device *adev, int xcc_id) in amdgpu_gfx_is_master_xcc()
1351 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_gfx_get_current_compute_partition() local
1365 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_gfx_set_compute_partition() local
1418 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_gfx_get_available_compute_partition() local
1438 struct amdgpu_device *adev = ring->adev; in amdgpu_gfx_run_cleaner_shader_job() local
1491 static int amdgpu_gfx_run_cleaner_shader(struct amdgpu_device *adev, int xcp_id) in amdgpu_gfx_run_cleaner_shader()
1546 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_gfx_set_run_cleaner_shader() local
1606 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_gfx_get_enforce_isolation() local
1643 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_gfx_set_enforce_isolation() local
1690 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_gfx_get_gfx_reset_mask() local
1703 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_gfx_get_compute_reset_mask() local
1730 static int amdgpu_gfx_sysfs_xcp_init(struct amdgpu_device *adev) in amdgpu_gfx_sysfs_xcp_init()
1757 static void amdgpu_gfx_sysfs_xcp_fini(struct amdgpu_device *adev) in amdgpu_gfx_sysfs_xcp_fini()
1774 static int amdgpu_gfx_sysfs_isolation_shader_init(struct amdgpu_device *adev) in amdgpu_gfx_sysfs_isolation_shader_init()
1787 static void amdgpu_gfx_sysfs_isolation_shader_fini(struct amdgpu_device *adev) in amdgpu_gfx_sysfs_isolation_shader_fini()
1794 static int amdgpu_gfx_sysfs_reset_mask_init(struct amdgpu_device *adev) in amdgpu_gfx_sysfs_reset_mask_init()
1816 static void amdgpu_gfx_sysfs_reset_mask_fini(struct amdgpu_device *adev) in amdgpu_gfx_sysfs_reset_mask_fini()
1828 int amdgpu_gfx_sysfs_init(struct amdgpu_device *adev) in amdgpu_gfx_sysfs_init()
1849 void amdgpu_gfx_sysfs_fini(struct amdgpu_device *adev) in amdgpu_gfx_sysfs_fini()
1858 int amdgpu_gfx_cleaner_shader_sw_init(struct amdgpu_device *adev, in amdgpu_gfx_cleaner_shader_sw_init()
1871 void amdgpu_gfx_cleaner_shader_sw_fini(struct amdgpu_device *adev) in amdgpu_gfx_cleaner_shader_sw_fini()
1881 void amdgpu_gfx_cleaner_shader_init(struct amdgpu_device *adev, in amdgpu_gfx_cleaner_shader_init()
1923 static void amdgpu_gfx_kfd_sch_ctrl(struct amdgpu_device *adev, u32 idx, in amdgpu_gfx_kfd_sch_ctrl()
1977 struct amdgpu_device *adev = isolation_work->adev; in amdgpu_gfx_enforce_isolation_handler() local
2025 amdgpu_gfx_enforce_isolation_wait_for_kfd(struct amdgpu_device *adev, in amdgpu_gfx_enforce_isolation_wait_for_kfd()
2080 struct amdgpu_device *adev = ring->adev; in amdgpu_gfx_enforce_isolation_ring_begin_use() local
2120 struct amdgpu_device *adev = ring->adev; in amdgpu_gfx_enforce_isolation_ring_end_use() local
2148 struct amdgpu_device *adev = in amdgpu_gfx_profile_idle_work_handler() local
2181 struct amdgpu_device *adev = ring->adev; in amdgpu_gfx_profile_ring_begin_use() local
2226 struct amdgpu_device *adev = (struct amdgpu_device *)data; in amdgpu_debugfs_gfx_sched_mask_set() local
2252 struct amdgpu_device *adev = (struct amdgpu_device *)data; in amdgpu_debugfs_gfx_sched_mask_get() local
2275 void amdgpu_debugfs_gfx_sched_mask_init(struct amdgpu_device *adev) in amdgpu_debugfs_gfx_sched_mask_init()
2296 struct amdgpu_device *adev = (struct amdgpu_device *)data; in amdgpu_debugfs_compute_sched_mask_set() local
2323 struct amdgpu_device *adev = (struct amdgpu_device *)data; in amdgpu_debugfs_compute_sched_mask_get() local
2346 void amdgpu_debugfs_compute_sched_mask_init(struct amdgpu_device *adev) in amdgpu_debugfs_compute_sched_mask_init()