Lines Matching refs:reset_ctl
34 static bool aldebaran_is_mode2_default(struct amdgpu_reset_control *reset_ctl) in aldebaran_is_mode2_default() argument
36 struct amdgpu_device *adev = (struct amdgpu_device *)reset_ctl->handle; in aldebaran_is_mode2_default()
46 aldebaran_get_reset_handler(struct amdgpu_reset_control *reset_ctl, in aldebaran_get_reset_handler() argument
50 struct amdgpu_device *adev = (struct amdgpu_device *)reset_ctl->handle; in aldebaran_get_reset_handler()
55 list_for_each_entry(handler, &reset_ctl->reset_handlers, in aldebaran_get_reset_handler()
62 if (aldebaran_is_mode2_default(reset_ctl)) { in aldebaran_get_reset_handler()
63 list_for_each_entry(handler, &reset_ctl->reset_handlers, in aldebaran_get_reset_handler()
107 aldebaran_mode2_prepare_hwcontext(struct amdgpu_reset_control *reset_ctl, in aldebaran_mode2_prepare_hwcontext() argument
111 struct amdgpu_device *adev = (struct amdgpu_device *)reset_ctl->handle; in aldebaran_mode2_prepare_hwcontext()
124 struct amdgpu_reset_control *reset_ctl = in aldebaran_async_reset() local
126 struct amdgpu_device *adev = (struct amdgpu_device *)reset_ctl->handle; in aldebaran_async_reset()
128 list_for_each_entry(handler, &reset_ctl->reset_handlers, in aldebaran_async_reset()
130 if (handler->reset_method == reset_ctl->active_reset) { in aldebaran_async_reset()
147 aldebaran_mode2_perform_reset(struct amdgpu_reset_control *reset_ctl, in aldebaran_mode2_perform_reset() argument
150 struct amdgpu_device *adev = (struct amdgpu_device *)reset_ctl->handle; in aldebaran_mode2_perform_reset()
331 aldebaran_mode2_restore_hwcontext(struct amdgpu_reset_control *reset_ctl, in aldebaran_mode2_restore_hwcontext() argument
400 struct amdgpu_reset_control *reset_ctl; in aldebaran_reset_init() local
402 reset_ctl = kzalloc(sizeof(*reset_ctl), GFP_KERNEL); in aldebaran_reset_init()
403 if (!reset_ctl) in aldebaran_reset_init()
406 reset_ctl->handle = adev; in aldebaran_reset_init()
407 reset_ctl->async_reset = aldebaran_async_reset; in aldebaran_reset_init()
408 reset_ctl->active_reset = AMD_RESET_METHOD_NONE; in aldebaran_reset_init()
409 reset_ctl->get_reset_handler = aldebaran_get_reset_handler; in aldebaran_reset_init()
411 INIT_LIST_HEAD(&reset_ctl->reset_handlers); in aldebaran_reset_init()
412 INIT_WORK(&reset_ctl->reset_work, reset_ctl->async_reset); in aldebaran_reset_init()
414 amdgpu_reset_add_handler(reset_ctl, &aldebaran_mode2_handler); in aldebaran_reset_init()
416 adev->reset_cntl = reset_ctl; in aldebaran_reset_init()