Home
last modified time | relevance | path

Searched refs:health (Results 1 - 25 of 69) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
H A Dhealth.c94 struct mlx5_core_health *health = &dev->priv.health; in sensor_pci_not_working() local
95 struct health_buffer __iomem *h = health->health; in sensor_pci_not_working()
103 struct mlx5_core_health *health = &dev->priv.health; in sensor_fw_synd_rfr() local
104 struct health_buffer __iomem *h = health->health; in sensor_fw_synd_rfr()
171 /* The reset only needs to be issued by one PF. The health buffer is in reset_fw_if_needed()
302 if (dev->priv.health in mlx5_handle_bad_state()
379 struct mlx5_core_health *health = &dev->priv.health; print_health_info() local
414 struct mlx5_core_health *health = &dev->priv.health; mlx5_fw_reporter_diagnose() local
452 struct mlx5_core_health *health = &dev->priv.health; mlx5_fw_reporter_heath_buffer_data_put() local
539 struct mlx5_core_health *health; mlx5_fw_reporter_err_work() local
613 struct mlx5_core_health *health; mlx5_fw_fatal_reporter_err_work() local
649 struct mlx5_core_health *health = &dev->priv.health; mlx5_fw_reporters_create() local
671 struct mlx5_core_health *health = &dev->priv.health; mlx5_fw_reporters_destroy() local
693 struct mlx5_core_health *health = &dev->priv.health; mlx5_trigger_health_work() local
707 struct mlx5_core_health *health = &dev->priv.health; poll_health() local
751 struct mlx5_core_health *health = &dev->priv.health; mlx5_start_health_poll() local
765 struct mlx5_core_health *health = &dev->priv.health; mlx5_stop_health_poll() local
779 struct mlx5_core_health *health = &dev->priv.health; mlx5_drain_health_wq() local
791 struct mlx5_core_health *health = &dev->priv.health; mlx5_health_flush() local
798 struct mlx5_core_health *health = &dev->priv.health; mlx5_health_cleanup() local
806 struct mlx5_core_health *health; mlx5_health_init() local
[all...]
/kernel/linux/linux-6.6/drivers/net/netdevsim/
H A Dhealth.c43 struct nsim_dev_health *health = devlink_health_reporter_priv(reporter); in nsim_dev_dummy_reporter_recover() local
46 if (health->fail_recover) { in nsim_dev_dummy_reporter_recover()
54 kfree(health->recovered_break_msg); in nsim_dev_dummy_reporter_recover()
55 health->recovered_break_msg = kstrdup(ctx->break_msg, in nsim_dev_dummy_reporter_recover()
57 if (!health->recovered_break_msg) in nsim_dev_dummy_reporter_recover()
158 struct nsim_dev_health *health = devlink_health_reporter_priv(reporter); in nsim_dev_dummy_reporter_dump() local
168 return nsim_dev_dummy_fmsg_put(fmsg, health->binary_len); in nsim_dev_dummy_reporter_dump()
176 struct nsim_dev_health *health = devlink_health_reporter_priv(reporter); in nsim_dev_dummy_reporter_diagnose() local
179 if (health->recovered_break_msg) { in nsim_dev_dummy_reporter_diagnose()
182 health in nsim_dev_dummy_reporter_diagnose()
201 struct nsim_dev_health *health = file->private_data; nsim_dev_health_break_write() local
232 struct nsim_dev_health *health = &nsim_dev->health; nsim_dev_health_init() local
277 struct nsim_dev_health *health = &nsim_dev->health; nsim_dev_health_exit() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/
H A Dhealth.c87 struct mlx5_core_health *health = &dev->priv.health; in sensor_pci_not_working() local
88 struct health_buffer __iomem *h = health->health; in sensor_pci_not_working()
101 struct mlx5_core_health *health = &dev->priv.health; in sensor_fw_synd_rfr() local
102 struct health_buffer __iomem *h = health->health; in sensor_fw_synd_rfr()
171 /* The reset only needs to be issued by one PF. The health buffer is in reset_fw_if_needed()
296 if (dev->priv.health in mlx5_handle_bad_state()
404 struct mlx5_core_health *health = &dev->priv.health; print_health_info() local
449 struct mlx5_core_health *health = &dev->priv.health; mlx5_fw_reporter_diagnose() local
487 struct mlx5_core_health *health = &dev->priv.health; mlx5_fw_reporter_heath_buffer_data_put() local
585 struct mlx5_core_health *health; mlx5_fw_reporter_err_work() local
659 struct mlx5_core_health *health; mlx5_fw_fatal_reporter_err_work() local
711 struct mlx5_core_health *health = &dev->priv.health; mlx5_fw_reporters_create() local
743 struct mlx5_core_health *health = &dev->priv.health; mlx5_fw_reporters_destroy() local
765 struct mlx5_core_health *health = &dev->priv.health; mlx5_trigger_health_work() local
777 struct mlx5_core_health *health; mlx5_health_log_ts_update() local
799 struct mlx5_core_health *health = &dev->priv.health; poll_health() local
844 struct mlx5_core_health *health = &dev->priv.health; mlx5_start_health_poll() local
858 struct mlx5_core_health *health = &dev->priv.health; mlx5_stop_health_poll() local
868 struct mlx5_core_health *health = &dev->priv.health; mlx5_start_health_fw_log_up() local
876 struct mlx5_core_health *health = &dev->priv.health; mlx5_drain_health_wq() local
886 struct mlx5_core_health *health = &dev->priv.health; mlx5_health_cleanup() local
897 struct mlx5_core_health *health; mlx5_health_init() local
[all...]
/kernel/linux/linux-5.10/drivers/net/netdevsim/
H A Dhealth.c43 struct nsim_dev_health *health = devlink_health_reporter_priv(reporter); in nsim_dev_dummy_reporter_recover() local
46 if (health->fail_recover) { in nsim_dev_dummy_reporter_recover()
54 kfree(health->recovered_break_msg); in nsim_dev_dummy_reporter_recover()
55 health->recovered_break_msg = kstrdup(ctx->break_msg, in nsim_dev_dummy_reporter_recover()
57 if (!health->recovered_break_msg) in nsim_dev_dummy_reporter_recover()
190 struct nsim_dev_health *health = devlink_health_reporter_priv(reporter); in nsim_dev_dummy_reporter_dump() local
200 return nsim_dev_dummy_fmsg_put(fmsg, health->binary_len); in nsim_dev_dummy_reporter_dump()
208 struct nsim_dev_health *health = devlink_health_reporter_priv(reporter); in nsim_dev_dummy_reporter_diagnose() local
211 if (health->recovered_break_msg) { in nsim_dev_dummy_reporter_diagnose()
214 health in nsim_dev_dummy_reporter_diagnose()
233 struct nsim_dev_health *health = file->private_data; nsim_dev_health_break_write() local
269 struct nsim_dev_health *health = &nsim_dev->health; nsim_dev_health_init() local
314 struct nsim_dev_health *health = &nsim_dev->health; nsim_dev_health_exit() local
[all...]
H A DMakefile6 netdev.o dev.o ethtool.o fib.o bus.o health.o udp_tunnels.o
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/diag/
H A Dreporter_vnic.c134 struct mlx5_core_health *health = &dev->priv.health; in mlx5_reporter_vnic_create() local
137 health->vnic_reporter = in mlx5_reporter_vnic_create()
141 if (IS_ERR(health->vnic_reporter)) in mlx5_reporter_vnic_create()
144 PTR_ERR(health->vnic_reporter)); in mlx5_reporter_vnic_create()
149 struct mlx5_core_health *health = &dev->priv.health; in mlx5_reporter_vnic_destroy() local
151 if (!IS_ERR_OR_NULL(health->vnic_reporter)) in mlx5_reporter_vnic_destroy()
152 devlink_health_reporter_destroy(health->vnic_reporter); in mlx5_reporter_vnic_destroy()
H A Dcrdump.c14 return !!dev->priv.health.crdump_size; in mlx5_crdump_enabled()
19 u32 crdump_size = dev->priv.health.crdump_size; in mlx5_crdump_fill()
108 priv->health.crdump_size = space_size; in mlx5_crdump_enable()
114 dev->priv.health.crdump_size = 0; in mlx5_crdump_disable()
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/netdevsim/
H A Ddevlink.sh394 devlink health show $DL_HANDLE reporter empty >/dev/null
397 devlink health dump show $DL_HANDLE reporter empty >/dev/null
400 devlink health diagnose $DL_HANDLE reporter empty >/dev/null
403 devlink health recover $DL_HANDLE reporter empty
418 local show=$(devlink health show $DL_HANDLE reporter $name -j | jq -e -r ".[][][]")
449 devlink health set $DL_HANDLE reporter dummy auto_recover false
455 echo "$BREAK_MSG"> $DEBUGFS_DIR/health/break_health
460 local dump=$(devlink health dump show $DL_HANDLE reporter dummy -j)
467 devlink health dump clear $DL_HANDLE reporter dummy
470 devlink health recove
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_devlink.c137 struct bnxt_fw_health *health = bp->fw_health; in bnxt_dl_fw_reporters_create() local
139 if (!bp->dl || !health) in bnxt_dl_fw_reporters_create()
142 if (!(bp->fw_cap & BNXT_FW_CAP_HOT_RESET) || health->fw_reset_reporter) in bnxt_dl_fw_reporters_create()
145 health->fw_reset_reporter = in bnxt_dl_fw_reporters_create()
149 if (IS_ERR(health->fw_reset_reporter)) { in bnxt_dl_fw_reporters_create()
150 netdev_warn(bp->dev, "Failed to create FW fatal health reporter, rc = %ld\n", in bnxt_dl_fw_reporters_create()
151 PTR_ERR(health->fw_reset_reporter)); in bnxt_dl_fw_reporters_create()
152 health->fw_reset_reporter = NULL; in bnxt_dl_fw_reporters_create()
160 if (!health->fw_reporter) { in bnxt_dl_fw_reporters_create()
161 health in bnxt_dl_fw_reporters_create()
191 struct bnxt_fw_health *health = bp->fw_health; bnxt_dl_fw_reporters_destroy() local
254 struct bnxt_fw_health *health = bp->fw_health; bnxt_dl_health_status_update() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/netdevsim/
H A Ddevlink.sh395 devlink health show $DL_HANDLE reporter empty >/dev/null
398 devlink health dump show $DL_HANDLE reporter empty >/dev/null
401 devlink health diagnose $DL_HANDLE reporter empty >/dev/null
404 devlink health recover $DL_HANDLE reporter empty
419 local show=$(devlink health show $DL_HANDLE reporter $name -j | jq -e -r ".[][][]")
450 devlink health set $DL_HANDLE reporter dummy auto_recover false
456 echo "$BREAK_MSG"> $DEBUGFS_DIR/health/break_health
461 local dump=$(devlink health dump show $DL_HANDLE reporter dummy -j)
468 devlink health dump clear $DL_HANDLE reporter dummy
471 devlink health recove
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/diag/
H A Dcrdump.c14 return !!dev->priv.health.crdump_size; in mlx5_crdump_enabled()
19 u32 crdump_size = dev->priv.health.crdump_size; in mlx5_crdump_fill()
108 priv->health.crdump_size = space_size; in mlx5_crdump_enable()
114 dev->priv.health.crdump_size = 0; in mlx5_crdump_disable()
/kernel/linux/linux-5.10/drivers/power/supply/
H A Dda9052-battery.c172 int health; member
406 static int da9052_bat_check_health(struct da9052_battery *bat, int *health) in da9052_bat_check_health() argument
417 bat->health = POWER_SUPPLY_HEALTH_UNKNOWN; in da9052_bat_check_health()
421 if (bat->health != POWER_SUPPLY_HEALTH_OVERHEAT) { in da9052_bat_check_health()
426 bat->health = POWER_SUPPLY_HEALTH_DEAD; in da9052_bat_check_health()
428 bat->health = POWER_SUPPLY_HEALTH_GOOD; in da9052_bat_check_health()
431 *health = bat->health; in da9052_bat_check_health()
603 bat->health = POWER_SUPPLY_HEALTH_UNKNOWN; in da9052_bat_probe()
H A Ducs1002_power.c108 int health; member
387 val->intval = info->health; in ucs1002_get_property()
451 /* bad health and no status change, just schedule us again in a while */ in ucs1002_health_poll()
452 if ((reg & F_ERR) && info->health != POWER_SUPPLY_HEALTH_GOOD) { in ucs1002_health_poll()
459 info->health = POWER_SUPPLY_HEALTH_OVERHEAT; in ucs1002_health_poll()
461 info->health = POWER_SUPPLY_HEALTH_OVERVOLTAGE; in ucs1002_health_poll()
463 info->health = POWER_SUPPLY_HEALTH_OVERCURRENT; in ucs1002_health_poll()
465 info->health = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; in ucs1002_health_poll()
467 info->health = POWER_SUPPLY_HEALTH_GOOD; in ucs1002_health_poll()
469 sysfs_notify(&info->charger->dev.kobj, NULL, "health"); in ucs1002_health_poll()
[all...]
H A Dwm831x_power.c393 static int wm831x_bat_check_health(struct wm831x *wm831x, int *health) in wm831x_bat_check_health() argument
402 *health = POWER_SUPPLY_HEALTH_OVERHEAT; in wm831x_bat_check_health()
407 *health = POWER_SUPPLY_HEALTH_COLD; in wm831x_bat_check_health()
412 *health = POWER_SUPPLY_HEALTH_OVERVOLTAGE; in wm831x_bat_check_health()
419 *health = POWER_SUPPLY_HEALTH_OVERHEAT; in wm831x_bat_check_health()
422 *health = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; in wm831x_bat_check_health()
425 *health = POWER_SUPPLY_HEALTH_GOOD; in wm831x_bat_check_health()
H A Dbq24190_charger.c156 * it in the appropriate health/status routine.
804 int health; in bq24190_charger_get_health() local
815 health = POWER_SUPPLY_HEALTH_COLD; in bq24190_charger_get_health()
820 health = POWER_SUPPLY_HEALTH_OVERHEAT; in bq24190_charger_get_health()
823 health = POWER_SUPPLY_HEALTH_UNKNOWN; in bq24190_charger_get_health()
826 health = POWER_SUPPLY_HEALTH_OVERVOLTAGE; in bq24190_charger_get_health()
837 health = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; in bq24190_charger_get_health()
840 health = POWER_SUPPLY_HEALTH_OVERHEAT; in bq24190_charger_get_health()
843 health = POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE; in bq24190_charger_get_health()
846 health in bq24190_charger_get_health()
1329 int health; bq24190_battery_get_health() local
[all...]
H A Dbq2515x_charger.c696 int health = POWER_SUPPLY_HEALTH_GOOD; in bq2515x_charger_get_health() local
715 health = POWER_SUPPLY_HEALTH_HOT; in bq2515x_charger_get_health()
718 health = POWER_SUPPLY_HEALTH_WARM; in bq2515x_charger_get_health()
721 health = POWER_SUPPLY_HEALTH_COOL; in bq2515x_charger_get_health()
724 health = POWER_SUPPLY_HEALTH_COLD; in bq2515x_charger_get_health()
727 health = POWER_SUPPLY_HEALTH_UNKNOWN; in bq2515x_charger_get_health()
733 health = POWER_SUPPLY_HEALTH_OVERVOLTAGE; in bq2515x_charger_get_health()
736 health = POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE; in bq2515x_charger_get_health()
738 val->intval = health; in bq2515x_charger_get_health()
/kernel/linux/linux-6.6/drivers/power/supply/
H A Dda9052-battery.c172 int health; member
406 static int da9052_bat_check_health(struct da9052_battery *bat, int *health) in da9052_bat_check_health() argument
417 bat->health = POWER_SUPPLY_HEALTH_UNKNOWN; in da9052_bat_check_health()
421 if (bat->health != POWER_SUPPLY_HEALTH_OVERHEAT) { in da9052_bat_check_health()
426 bat->health = POWER_SUPPLY_HEALTH_DEAD; in da9052_bat_check_health()
428 bat->health = POWER_SUPPLY_HEALTH_GOOD; in da9052_bat_check_health()
431 *health = bat->health; in da9052_bat_check_health()
603 bat->health = POWER_SUPPLY_HEALTH_UNKNOWN; in da9052_bat_probe()
H A Ducs1002_power.c108 int health; member
387 val->intval = info->health; in ucs1002_get_property()
451 /* bad health and no status change, just schedule us again in a while */ in ucs1002_health_poll()
452 if ((reg & F_ERR) && info->health != POWER_SUPPLY_HEALTH_GOOD) { in ucs1002_health_poll()
459 info->health = POWER_SUPPLY_HEALTH_OVERHEAT; in ucs1002_health_poll()
461 info->health = POWER_SUPPLY_HEALTH_OVERVOLTAGE; in ucs1002_health_poll()
463 info->health = POWER_SUPPLY_HEALTH_OVERCURRENT; in ucs1002_health_poll()
465 info->health = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; in ucs1002_health_poll()
467 info->health = POWER_SUPPLY_HEALTH_GOOD; in ucs1002_health_poll()
469 sysfs_notify(&info->charger->dev.kobj, NULL, "health"); in ucs1002_health_poll()
[all...]
H A Dwm831x_power.c393 static int wm831x_bat_check_health(struct wm831x *wm831x, int *health) in wm831x_bat_check_health() argument
402 *health = POWER_SUPPLY_HEALTH_OVERHEAT; in wm831x_bat_check_health()
407 *health = POWER_SUPPLY_HEALTH_COLD; in wm831x_bat_check_health()
412 *health = POWER_SUPPLY_HEALTH_OVERVOLTAGE; in wm831x_bat_check_health()
419 *health = POWER_SUPPLY_HEALTH_OVERHEAT; in wm831x_bat_check_health()
422 *health = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; in wm831x_bat_check_health()
425 *health = POWER_SUPPLY_HEALTH_GOOD; in wm831x_bat_check_health()
H A Dbq24190_charger.c154 * it in the appropriate health/status routine.
847 int health; in bq24190_charger_get_health() local
858 health = POWER_SUPPLY_HEALTH_COLD; in bq24190_charger_get_health()
863 health = POWER_SUPPLY_HEALTH_OVERHEAT; in bq24190_charger_get_health()
866 health = POWER_SUPPLY_HEALTH_UNKNOWN; in bq24190_charger_get_health()
869 health = POWER_SUPPLY_HEALTH_OVERVOLTAGE; in bq24190_charger_get_health()
880 health = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; in bq24190_charger_get_health()
883 health = POWER_SUPPLY_HEALTH_OVERHEAT; in bq24190_charger_get_health()
886 health = POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE; in bq24190_charger_get_health()
889 health in bq24190_charger_get_health()
1389 int health; bq24190_battery_get_health() local
[all...]
H A Dbq2515x_charger.c696 int health = POWER_SUPPLY_HEALTH_GOOD; in bq2515x_charger_get_health() local
715 health = POWER_SUPPLY_HEALTH_HOT; in bq2515x_charger_get_health()
718 health = POWER_SUPPLY_HEALTH_WARM; in bq2515x_charger_get_health()
721 health = POWER_SUPPLY_HEALTH_COOL; in bq2515x_charger_get_health()
724 health = POWER_SUPPLY_HEALTH_COLD; in bq2515x_charger_get_health()
727 health = POWER_SUPPLY_HEALTH_UNKNOWN; in bq2515x_charger_get_health()
733 health = POWER_SUPPLY_HEALTH_OVERVOLTAGE; in bq2515x_charger_get_health()
736 health = POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE; in bq2515x_charger_get_health()
738 val->intval = health; in bq2515x_charger_get_health()
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/
H A Dpapr_scm.c31 /* DIMM health bitmap bitmap indicators */
44 /* SCM contents cannot persist due to current platform health status */
53 /* Bits status indicators for health bitmap indicating unarmed dimm */
57 /* Bits status indicators for health bitmap indicating unflushed dimm */
60 /* Bits status indicators for health bitmap indicating unrestored dimm */
108 /* Protect dimm health data from concurrent read/writes */
111 /* Last time the health information of the dimm was updated */
301 * Issue hcall to retrieve dimm health info and populate papr_scm_priv with the
302 * health information.
313 "Failed to query health informatio in __drc_pmem_query_health()
835 u64 health; flags_show() local
[all...]
/kernel/linux/linux-6.6/arch/powerpc/platforms/pseries/
H A Dpapr_scm.c32 /* DIMM health bitmap indicators */
45 /* SCM contents cannot persist due to current platform health status */
54 /* Bits status indicators for health bitmap indicating unarmed dimm */
58 /* Bits status indicators for health bitmap indicating unflushed dimm */
61 /* Bits status indicators for health bitmap indicating unrestored dimm */
110 /* Protect dimm health data from concurrent read/writes */
113 /* Last time the health information of the dimm was updated */
533 * Issue hcall to retrieve dimm health info and populate papr_scm_priv with the
534 * health information.
548 "Hcall H_SCM_HEALTH not implemented, assuming empty health bitma in __drc_pmem_query_health()
1158 u64 health; flags_show() local
[all...]
/kernel/linux/linux-5.10/drivers/platform/x86/
H A Dmlx-platform.c452 .health = false,
461 .health = false,
470 .health = false,
479 .health = true,
491 .health = false,
500 .health = false,
509 .health = false,
518 .health = true,
566 .health = false,
575 .health
[all...]
/kernel/linux/linux-6.6/drivers/platform/x86/
H A Dmlx-platform.c782 .health = false,
791 .health = false,
800 .health = false,
809 .health = true,
821 .health = false,
830 .health = false,
839 .health = false,
848 .health = true,
870 .health = false,
879 .health
[all...]

Completed in 25 milliseconds

123