Lines Matching refs:reset_data
88 struct adf_reset_dev_data *reset_data = in adf_device_reset_worker() local
90 struct adf_accel_dev *accel_dev = reset_data->accel_dev; in adf_device_reset_worker()
98 kfree(reset_data); in adf_device_reset_worker()
106 if (reset_data->mode == ADF_DEV_RESET_SYNC) in adf_device_reset_worker()
107 complete(&reset_data->compl); in adf_device_reset_worker()
109 kfree(reset_data); in adf_device_reset_worker()
115 struct adf_reset_dev_data *reset_data; in adf_dev_aer_schedule_reset() local
122 reset_data = kzalloc(sizeof(*reset_data), GFP_KERNEL); in adf_dev_aer_schedule_reset()
123 if (!reset_data) in adf_dev_aer_schedule_reset()
125 reset_data->accel_dev = accel_dev; in adf_dev_aer_schedule_reset()
126 init_completion(&reset_data->compl); in adf_dev_aer_schedule_reset()
127 reset_data->mode = mode; in adf_dev_aer_schedule_reset()
128 INIT_WORK(&reset_data->reset_work, adf_device_reset_worker); in adf_dev_aer_schedule_reset()
129 queue_work(device_reset_wq, &reset_data->reset_work); in adf_dev_aer_schedule_reset()
137 &reset_data->compl, wait_jiffies); in adf_dev_aer_schedule_reset()
143 kfree(reset_data); in adf_dev_aer_schedule_reset()