Lines Matching refs:reset_ctl
35 aldebaran_get_reset_handler(struct amdgpu_reset_control *reset_ctl, in aldebaran_get_reset_handler() argument
39 struct amdgpu_device *adev = (struct amdgpu_device *)reset_ctl->handle; in aldebaran_get_reset_handler()
44 list_for_each_entry(handler, &reset_ctl->reset_handlers, in aldebaran_get_reset_handler()
52 list_for_each_entry(handler, &reset_ctl->reset_handlers, in aldebaran_get_reset_handler()
96 aldebaran_mode2_prepare_hwcontext(struct amdgpu_reset_control *reset_ctl, in aldebaran_mode2_prepare_hwcontext() argument
100 struct amdgpu_device *adev = (struct amdgpu_device *)reset_ctl->handle; in aldebaran_mode2_prepare_hwcontext()
113 struct amdgpu_reset_control *reset_ctl = in aldebaran_async_reset() local
115 struct amdgpu_device *adev = (struct amdgpu_device *)reset_ctl->handle; in aldebaran_async_reset()
117 list_for_each_entry(handler, &reset_ctl->reset_handlers, in aldebaran_async_reset()
119 if (handler->reset_method == reset_ctl->active_reset) { in aldebaran_async_reset()
136 aldebaran_mode2_perform_reset(struct amdgpu_reset_control *reset_ctl, in aldebaran_mode2_perform_reset() argument
140 struct amdgpu_device *adev = (struct amdgpu_device *)reset_ctl->handle; in aldebaran_mode2_perform_reset()
319 aldebaran_mode2_restore_hwcontext(struct amdgpu_reset_control *reset_ctl, in aldebaran_mode2_restore_hwcontext() argument
383 struct amdgpu_reset_control *reset_ctl; in aldebaran_reset_init() local
385 reset_ctl = kzalloc(sizeof(*reset_ctl), GFP_KERNEL); in aldebaran_reset_init()
386 if (!reset_ctl) in aldebaran_reset_init()
389 reset_ctl->handle = adev; in aldebaran_reset_init()
390 reset_ctl->async_reset = aldebaran_async_reset; in aldebaran_reset_init()
391 reset_ctl->active_reset = AMD_RESET_METHOD_NONE; in aldebaran_reset_init()
392 reset_ctl->get_reset_handler = aldebaran_get_reset_handler; in aldebaran_reset_init()
394 INIT_LIST_HEAD(&reset_ctl->reset_handlers); in aldebaran_reset_init()
395 INIT_WORK(&reset_ctl->reset_work, reset_ctl->async_reset); in aldebaran_reset_init()
397 amdgpu_reset_add_handler(reset_ctl, &aldebaran_mode2_handler); in aldebaran_reset_init()
399 adev->reset_cntl = reset_ctl; in aldebaran_reset_init()