• Home
  • Raw
  • Download

Lines Matching refs:health

135 	struct bnxt_fw_health *health = bp->fw_health;  in bnxt_dl_fw_reporters_create()  local
137 if (!health) in bnxt_dl_fw_reporters_create()
140 if (!(bp->fw_cap & BNXT_FW_CAP_HOT_RESET) || health->fw_reset_reporter) in bnxt_dl_fw_reporters_create()
143 health->fw_reset_reporter = in bnxt_dl_fw_reporters_create()
147 if (IS_ERR(health->fw_reset_reporter)) { in bnxt_dl_fw_reporters_create()
149 PTR_ERR(health->fw_reset_reporter)); in bnxt_dl_fw_reporters_create()
150 health->fw_reset_reporter = NULL; in bnxt_dl_fw_reporters_create()
158 if (!health->fw_reporter) { in bnxt_dl_fw_reporters_create()
159 health->fw_reporter = in bnxt_dl_fw_reporters_create()
163 if (IS_ERR(health->fw_reporter)) { in bnxt_dl_fw_reporters_create()
165 PTR_ERR(health->fw_reporter)); in bnxt_dl_fw_reporters_create()
166 health->fw_reporter = NULL; in bnxt_dl_fw_reporters_create()
172 if (health->fw_fatal_reporter) in bnxt_dl_fw_reporters_create()
175 health->fw_fatal_reporter = in bnxt_dl_fw_reporters_create()
179 if (IS_ERR(health->fw_fatal_reporter)) { in bnxt_dl_fw_reporters_create()
181 PTR_ERR(health->fw_fatal_reporter)); in bnxt_dl_fw_reporters_create()
182 health->fw_fatal_reporter = NULL; in bnxt_dl_fw_reporters_create()
189 struct bnxt_fw_health *health = bp->fw_health; in bnxt_dl_fw_reporters_destroy() local
191 if (!health) in bnxt_dl_fw_reporters_destroy()
195 health->fw_reset_reporter) { in bnxt_dl_fw_reporters_destroy()
196 devlink_health_reporter_destroy(health->fw_reset_reporter); in bnxt_dl_fw_reporters_destroy()
197 health->fw_reset_reporter = NULL; in bnxt_dl_fw_reporters_destroy()
203 if (health->fw_reporter) { in bnxt_dl_fw_reporters_destroy()
204 devlink_health_reporter_destroy(health->fw_reporter); in bnxt_dl_fw_reporters_destroy()
205 health->fw_reporter = NULL; in bnxt_dl_fw_reporters_destroy()
208 if (health->fw_fatal_reporter) { in bnxt_dl_fw_reporters_destroy()
209 devlink_health_reporter_destroy(health->fw_fatal_reporter); in bnxt_dl_fw_reporters_destroy()
210 health->fw_fatal_reporter = NULL; in bnxt_dl_fw_reporters_destroy()
252 struct bnxt_fw_health *health = bp->fw_health; in bnxt_dl_health_status_update() local
260 if (health->fatal) in bnxt_dl_health_status_update()
261 devlink_health_reporter_state_update(health->fw_fatal_reporter, in bnxt_dl_health_status_update()
264 devlink_health_reporter_state_update(health->fw_reset_reporter, in bnxt_dl_health_status_update()
267 health->fatal = false; in bnxt_dl_health_status_update()