Lines Matching refs:accel_dev
17 struct adf_accel_dev *accel_dev = adf_devmgr_pci_to_accel_dev(pdev); in adf_error_detected() local
20 if (!accel_dev) { in adf_error_detected()
36 struct adf_accel_dev *accel_dev; member
41 void adf_reset_sbr(struct adf_accel_dev *accel_dev) in adf_reset_sbr() argument
43 struct pci_dev *pdev = accel_to_pci_dev(accel_dev); in adf_reset_sbr()
51 dev_info(&GET_DEV(accel_dev), in adf_reset_sbr()
54 dev_info(&GET_DEV(accel_dev), "Secondary bus reset\n"); in adf_reset_sbr()
66 void adf_reset_flr(struct adf_accel_dev *accel_dev) in adf_reset_flr() argument
68 pcie_flr(accel_to_pci_dev(accel_dev)); in adf_reset_flr()
72 void adf_dev_restore(struct adf_accel_dev *accel_dev) in adf_dev_restore() argument
74 struct adf_hw_device_data *hw_device = accel_dev->hw_device; in adf_dev_restore()
75 struct pci_dev *pdev = accel_to_pci_dev(accel_dev); in adf_dev_restore()
78 dev_info(&GET_DEV(accel_dev), "Resetting device qat_dev%d\n", in adf_dev_restore()
79 accel_dev->accel_id); in adf_dev_restore()
80 hw_device->reset_device(accel_dev); in adf_dev_restore()
90 struct adf_accel_dev *accel_dev = reset_data->accel_dev; in adf_device_reset_worker() local
92 adf_dev_restarting_notify(accel_dev); in adf_device_reset_worker()
93 adf_dev_stop(accel_dev); in adf_device_reset_worker()
94 adf_dev_shutdown(accel_dev); in adf_device_reset_worker()
95 if (adf_dev_init(accel_dev) || adf_dev_start(accel_dev)) { in adf_device_reset_worker()
97 dev_err(&GET_DEV(accel_dev), "Restart device failed\n"); in adf_device_reset_worker()
102 adf_dev_restarted_notify(accel_dev); in adf_device_reset_worker()
103 clear_bit(ADF_STATUS_RESTARTING, &accel_dev->status); in adf_device_reset_worker()
112 static int adf_dev_aer_schedule_reset(struct adf_accel_dev *accel_dev, in adf_dev_aer_schedule_reset() argument
117 if (!adf_dev_started(accel_dev) || in adf_dev_aer_schedule_reset()
118 test_bit(ADF_STATUS_RESTARTING, &accel_dev->status)) in adf_dev_aer_schedule_reset()
121 set_bit(ADF_STATUS_RESTARTING, &accel_dev->status); in adf_dev_aer_schedule_reset()
125 reset_data->accel_dev = accel_dev; in adf_dev_aer_schedule_reset()
139 dev_err(&GET_DEV(accel_dev), in adf_dev_aer_schedule_reset()
151 struct adf_accel_dev *accel_dev = adf_devmgr_pci_to_accel_dev(pdev); in adf_slot_reset() local
153 if (!accel_dev) { in adf_slot_reset()
157 if (adf_dev_aer_schedule_reset(accel_dev, ADF_DEV_RESET_SYNC)) in adf_slot_reset()
185 int adf_enable_aer(struct adf_accel_dev *accel_dev) in adf_enable_aer() argument
187 struct pci_dev *pdev = accel_to_pci_dev(accel_dev); in adf_enable_aer()
206 void adf_disable_aer(struct adf_accel_dev *accel_dev) in adf_disable_aer() argument
208 struct pci_dev *pdev = accel_to_pci_dev(accel_dev); in adf_disable_aer()