Home
last modified time | relevance | path

Searched refs:health (Results 1 – 25 of 30) sorted by relevance

12

/drivers/net/ethernet/mellanox/mlx5/core/
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()
298 if (dev->priv.health.fatal_error != MLX5_SENSOR_PCI_COMM_ERR) in mlx5_handle_bad_state()
375 struct mlx5_core_health *health = &dev->priv.health; in print_health_info() local
376 struct health_buffer __iomem *h = health->health; in print_health_info()
410 struct mlx5_core_health *health = &dev->priv.health; in mlx5_fw_reporter_diagnose() local
411 struct health_buffer __iomem *h = health->health; in mlx5_fw_reporter_diagnose()
448 struct mlx5_core_health *health = &dev->priv.health; in mlx5_fw_reporter_heath_buffer_data_put() local
[all …]
Den_selftest.c65 struct mlx5_core_health *health = &priv->mdev->priv.health; in mlx5e_test_health_info() local
67 return health->fatal_error ? 1 : 0; in mlx5e_test_health_info()
DMakefile15 health.o mcg.o cq.o alloc.o port.o mr.o pd.o \
28 en_selftest.o en/port.o en/monitor_stats.o en/health.o \
Dmain.c1624 struct mlx5_core_health *health = &dev->priv.health; in wait_vital() local
1631 count = ioread32be(health->health_counter); in wait_vital()
1691 devlink_health_reporter_state_update(dev->priv.health.fw_fatal_reporter, in mlx5_pci_resume()
/drivers/net/netdevsim/
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->recovered_break_msg); in nsim_dev_dummy_reporter_diagnose()
[all …]
DMakefile6 netdev.o dev.o ethtool.o fib.o bus.o health.o udp_tunnels.o
Dnetdevsim.h246 struct nsim_dev_health health; member
/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_devlink.c135 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()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/diag/
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()
/drivers/power/supply/
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()
Ducs1002_power.c108 int health; member
387 val->intval = info->health; in ucs1002_get_property()
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()
646 info->health = POWER_SUPPLY_HEALTH_GOOD; in ucs1002_probe()
Dbq24190_charger.c802 int health; in bq24190_charger_get_health() local
813 health = POWER_SUPPLY_HEALTH_COLD; in bq24190_charger_get_health()
818 health = POWER_SUPPLY_HEALTH_OVERHEAT; in bq24190_charger_get_health()
821 health = POWER_SUPPLY_HEALTH_UNKNOWN; in bq24190_charger_get_health()
824 health = POWER_SUPPLY_HEALTH_OVERVOLTAGE; in bq24190_charger_get_health()
835 health = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; in bq24190_charger_get_health()
838 health = POWER_SUPPLY_HEALTH_OVERHEAT; in bq24190_charger_get_health()
841 health = POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE; in bq24190_charger_get_health()
844 health = -1; in bq24190_charger_get_health()
853 health = POWER_SUPPLY_HEALTH_OVERVOLTAGE; in bq24190_charger_get_health()
[all …]
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()
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()
Daxp288_charger.c329 int health = POWER_SUPPLY_HEALTH_UNKNOWN; in axp288_get_charger_health() local
345 health = POWER_SUPPLY_HEALTH_DEAD; in axp288_get_charger_health()
347 health = POWER_SUPPLY_HEALTH_OVERHEAT; in axp288_get_charger_health()
349 health = POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE; in axp288_get_charger_health()
351 health = POWER_SUPPLY_HEALTH_GOOD; in axp288_get_charger_health()
354 return health; in axp288_get_charger_health()
Daxp288_fuel_gauge.c314 int health = POWER_SUPPLY_HEALTH_UNKNOWN; in fuel_gauge_battery_health() local
317 health = POWER_SUPPLY_HEALTH_OVERVOLTAGE; in fuel_gauge_battery_health()
319 health = POWER_SUPPLY_HEALTH_GOOD; in fuel_gauge_battery_health()
321 return health; in fuel_gauge_battery_health()
Dmax17042_battery.c173 static int max17042_get_battery_health(struct max17042_chip *chip, int *health) in max17042_get_battery_health() argument
197 *health = POWER_SUPPLY_HEALTH_DEAD; in max17042_get_battery_health()
202 *health = POWER_SUPPLY_HEALTH_OVERVOLTAGE; in max17042_get_battery_health()
211 *health = POWER_SUPPLY_HEALTH_COLD; in max17042_get_battery_health()
216 *health = POWER_SUPPLY_HEALTH_OVERHEAT; in max17042_get_battery_health()
220 *health = POWER_SUPPLY_HEALTH_GOOD; in max17042_get_battery_health()
Dsc27xx_fuel_gauge.c534 static int sc27xx_fgu_get_health(struct sc27xx_fgu_data *data, int *health) in sc27xx_fgu_get_health() argument
543 *health = POWER_SUPPLY_HEALTH_OVERVOLTAGE; in sc27xx_fgu_get_health()
545 *health = POWER_SUPPLY_HEALTH_GOOD; in sc27xx_fgu_get_health()
/drivers/platform/x86/
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 = true,
[all …]
/drivers/iio/
DMakefile29 obj-y += health/
DKconfig83 source "drivers/iio/health/Kconfig"
/drivers/acpi/nfit/
Dintel.h20 u8 health; member
/drivers/platform/mellanox/
Dmlxreg-hotplug.c173 if (item->health) { in mlxreg_hotplug_attr_show()
490 if (item->health) in mlxreg_hotplug_work_handler()
/drivers/gpu/drm/i915/
DKconfig.profile46 check the health of the GPU and undertake regular house-keeping of
/drivers/net/ethernet/mellanox/mlxsw/
Dcore.c91 } health; member
1689 devlink_health_report(mlxsw_core->health.fw_fatal, "FW fatal event occurred", in mlxsw_core_health_event_work()
1879 mlxsw_core->health.fw_fatal = fw_fatal; in mlxsw_core_health_init()
1894 devlink_health_reporter_destroy(mlxsw_core->health.fw_fatal); in mlxsw_core_health_init()
1907 devlink_health_reporter_destroy(mlxsw_core->health.fw_fatal); in mlxsw_core_health_fini()

12