fw_health 1916 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_fw_health *fw_health = bp->fw_health; fw_health 1917 drivers/net/ethernet/broadcom/bnxt/bnxt.c u32 reg = fw_health->regs[reg_idx]; fw_health 1927 drivers/net/ethernet/broadcom/bnxt/bnxt.c reg_off = fw_health->mapped_regs[reg_idx]; fw_health 1937 drivers/net/ethernet/broadcom/bnxt/bnxt.c val &= fw_health->fw_reset_inprog_reg_mask; fw_health 1999 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (!bp->fw_health) fw_health 2020 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_fw_health *fw_health = bp->fw_health; fw_health 2023 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (!fw_health) fw_health 2026 drivers/net/ethernet/broadcom/bnxt/bnxt.c fw_health->enabled = EVENT_DATA1_RECOVERY_ENABLED(data1); fw_health 2027 drivers/net/ethernet/broadcom/bnxt/bnxt.c fw_health->master = EVENT_DATA1_RECOVERY_MASTER_FUNC(data1); fw_health 2028 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (!fw_health->enabled) fw_health 2033 drivers/net/ethernet/broadcom/bnxt/bnxt.c fw_health->enabled, fw_health->master, fw_health 2038 drivers/net/ethernet/broadcom/bnxt/bnxt.c fw_health->tmr_multiplier = fw_health 2039 drivers/net/ethernet/broadcom/bnxt/bnxt.c DIV_ROUND_UP(fw_health->polling_dsecs * HZ, fw_health 2041 drivers/net/ethernet/broadcom/bnxt/bnxt.c fw_health->tmr_counter = fw_health->tmr_multiplier; fw_health 2042 drivers/net/ethernet/broadcom/bnxt/bnxt.c fw_health->last_fw_heartbeat = fw_health 2044 drivers/net/ethernet/broadcom/bnxt/bnxt.c fw_health->last_fw_reset_cnt = fw_health 7064 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_fw_health *fw_health = bp->fw_health; fw_health 7070 drivers/net/ethernet/broadcom/bnxt/bnxt.c u32 reg = fw_health->regs[i]; fw_health 7078 drivers/net/ethernet/broadcom/bnxt/bnxt.c fw_health->mapped_regs[i] = BNXT_FW_HEALTH_WIN_BASE + fw_health 7092 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_fw_health *fw_health = bp->fw_health; fw_health 7104 drivers/net/ethernet/broadcom/bnxt/bnxt.c fw_health->flags = le32_to_cpu(resp->flags); fw_health 7105 drivers/net/ethernet/broadcom/bnxt/bnxt.c if ((fw_health->flags & ERROR_RECOVERY_QCFG_RESP_FLAGS_CO_CPU) && fw_health 7110 drivers/net/ethernet/broadcom/bnxt/bnxt.c fw_health->polling_dsecs = le32_to_cpu(resp->driver_polling_freq); fw_health 7111 drivers/net/ethernet/broadcom/bnxt/bnxt.c fw_health->master_func_wait_dsecs = fw_health 7113 drivers/net/ethernet/broadcom/bnxt/bnxt.c fw_health->normal_func_wait_dsecs = fw_health 7115 drivers/net/ethernet/broadcom/bnxt/bnxt.c fw_health->post_reset_wait_dsecs = fw_health 7117 drivers/net/ethernet/broadcom/bnxt/bnxt.c fw_health->post_reset_max_wait_dsecs = fw_health 7119 drivers/net/ethernet/broadcom/bnxt/bnxt.c fw_health->regs[BNXT_FW_HEALTH_REG] = fw_health 7121 drivers/net/ethernet/broadcom/bnxt/bnxt.c fw_health->regs[BNXT_FW_HEARTBEAT_REG] = fw_health 7123 drivers/net/ethernet/broadcom/bnxt/bnxt.c fw_health->regs[BNXT_FW_RESET_CNT_REG] = fw_health 7125 drivers/net/ethernet/broadcom/bnxt/bnxt.c fw_health->regs[BNXT_FW_RESET_INPROG_REG] = fw_health 7127 drivers/net/ethernet/broadcom/bnxt/bnxt.c fw_health->fw_reset_inprog_reg_mask = fw_health 7129 drivers/net/ethernet/broadcom/bnxt/bnxt.c fw_health->fw_reset_seq_cnt = resp->reg_array_cnt; fw_health 7130 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (fw_health->fw_reset_seq_cnt >= 16) { fw_health 7134 drivers/net/ethernet/broadcom/bnxt/bnxt.c for (i = 0; i < fw_health->fw_reset_seq_cnt; i++) { fw_health 7135 drivers/net/ethernet/broadcom/bnxt/bnxt.c fw_health->fw_reset_seq_regs[i] = fw_health 7137 drivers/net/ethernet/broadcom/bnxt/bnxt.c fw_health->fw_reset_seq_vals[i] = fw_health 7139 drivers/net/ethernet/broadcom/bnxt/bnxt.c fw_health->fw_reset_seq_delay_msec[i] = fw_health 9961 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_fw_health *fw_health = bp->fw_health; fw_health 9964 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (!fw_health->enabled || test_bit(BNXT_STATE_IN_FW_RESET, &bp->state)) fw_health 9967 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (fw_health->tmr_counter) { fw_health 9968 drivers/net/ethernet/broadcom/bnxt/bnxt.c fw_health->tmr_counter--; fw_health 9973 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (val == fw_health->last_fw_heartbeat) fw_health 9976 drivers/net/ethernet/broadcom/bnxt/bnxt.c fw_health->last_fw_heartbeat = val; fw_health 9979 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (val != fw_health->last_fw_reset_cnt) fw_health 9982 drivers/net/ethernet/broadcom/bnxt/bnxt.c fw_health->tmr_counter = fw_health->tmr_multiplier; fw_health 10079 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_fw_health *fw_health = bp->fw_health; fw_health 10084 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (val == fw_health->last_fw_heartbeat) fw_health 10088 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (val != fw_health->last_fw_reset_cnt) fw_health 10100 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_fw_health *fw_health = bp->fw_health; fw_health 10109 drivers/net/ethernet/broadcom/bnxt/bnxt.c wait_dsecs = fw_health->master_func_wait_dsecs; fw_health 10110 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (fw_health->master) { fw_health 10111 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (fw_health->flags & ERROR_RECOVERY_QCFG_RESP_FLAGS_CO_CPU) fw_health 10116 drivers/net/ethernet/broadcom/bnxt/bnxt.c wait_dsecs = fw_health->normal_func_wait_dsecs; fw_health 10120 drivers/net/ethernet/broadcom/bnxt/bnxt.c bp->fw_reset_min_dsecs = fw_health->post_reset_wait_dsecs; fw_health 10121 drivers/net/ethernet/broadcom/bnxt/bnxt.c bp->fw_reset_max_dsecs = fw_health->post_reset_max_wait_dsecs; fw_health 10434 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (bp->fw_health) fw_health 10441 drivers/net/ethernet/broadcom/bnxt/bnxt.c bp->fw_health = kzalloc(sizeof(*bp->fw_health), GFP_KERNEL); fw_health 10442 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (!bp->fw_health) { fw_health 10593 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_fw_health *fw_health = bp->fw_health; fw_health 10594 drivers/net/ethernet/broadcom/bnxt/bnxt.c u32 reg = fw_health->fw_reset_seq_regs[reg_idx]; fw_health 10595 drivers/net/ethernet/broadcom/bnxt/bnxt.c u32 val = fw_health->fw_reset_seq_vals[reg_idx]; fw_health 10598 drivers/net/ethernet/broadcom/bnxt/bnxt.c delay_msecs = fw_health->fw_reset_seq_delay_msec[reg_idx]; fw_health 10625 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_fw_health *fw_health = bp->fw_health; fw_health 10628 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (fw_health->flags & ERROR_RECOVERY_QCFG_RESP_FLAGS_HOST) { fw_health 10629 drivers/net/ethernet/broadcom/bnxt/bnxt.c for (i = 0; i < fw_health->fw_reset_seq_cnt; i++) fw_health 10631 drivers/net/ethernet/broadcom/bnxt/bnxt.c } else if (fw_health->flags & ERROR_RECOVERY_QCFG_RESP_FLAGS_CO_CPU) { fw_health 10704 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (!bp->fw_health->master) { fw_health 10705 drivers/net/ethernet/broadcom/bnxt/bnxt.c u32 wait_dsecs = bp->fw_health->normal_func_wait_dsecs; fw_health 11392 drivers/net/ethernet/broadcom/bnxt/bnxt.c kfree(bp->fw_health); fw_health 11393 drivers/net/ethernet/broadcom/bnxt/bnxt.c bp->fw_health = NULL; fw_health 11905 drivers/net/ethernet/broadcom/bnxt/bnxt.c kfree(bp->fw_health); fw_health 11906 drivers/net/ethernet/broadcom/bnxt/bnxt.c bp->fw_health = NULL; fw_health 1759 drivers/net/ethernet/broadcom/bnxt/bnxt.h struct bnxt_fw_health *fw_health; fw_health 107 drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c struct bnxt_fw_health *health = bp->fw_health; fw_health 161 drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c struct bnxt_fw_health *health = bp->fw_health; fw_health 188 drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c struct bnxt_fw_health *fw_health = bp->fw_health; fw_health 195 drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c if (!fw_health->fw_fatal_reporter) fw_health 198 drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c devlink_health_report(fw_health->fw_fatal_reporter, fw_health 203 drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c if (!fw_health->fw_reset_reporter) fw_health 206 drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c devlink_health_report(fw_health->fw_reset_reporter, fw_health 212 drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c if (!fw_health->fw_fatal_reporter) fw_health 215 drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c devlink_health_report(fw_health->fw_fatal_reporter,