Searched refs:mlxplat_dev (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/drivers/platform/x86/ |
H A D | mlx-platform.c | 2469 static struct platform_device *mlxplat_dev; variable 2841 mlxplat_dev = platform_device_register_simple(MLX_PLAT_DEVICE_NAME, -1, in mlxplat_init() 2845 if (IS_ERR(mlxplat_dev)) in mlxplat_init() 2846 return PTR_ERR(mlxplat_dev); in mlxplat_init() 2848 priv = devm_kzalloc(&mlxplat_dev->dev, sizeof(struct mlxplat_priv), in mlxplat_init() 2854 platform_set_drvdata(mlxplat_dev, priv); in mlxplat_init() 2856 mlxplat_mlxcpld_regmap_ctx.base = devm_ioport_map(&mlxplat_dev->dev, in mlxplat_init() 2866 priv->regmap = devm_regmap_init(&mlxplat_dev->dev, NULL, in mlxplat_init() 2882 &mlxplat_dev->dev, "i2c_mlxcpld", in mlxplat_init() 2906 &mlxplat_dev in mlxplat_init() [all...] |
/kernel/linux/linux-6.6/drivers/platform/x86/ |
H A D | mlx-platform.c | 370 static struct platform_device *mlxplat_dev; variable 2379 dev_info(&mlxplat_dev->dev, "System shutdown due to short press of power button"); in mlxplat_mlxcpld_l1_switch_pwr_events_handler() 2407 struct mlxplat_priv *priv = platform_get_drvdata(mlxplat_dev); in mlxplat_mlxcpld_l1_switch_intrusion_events_handler() 2416 dev_info(&mlxplat_dev->dev, "Detected intrusion - system latch is opened"); in mlxplat_mlxcpld_l1_switch_intrusion_events_handler() 2420 dev_info(&mlxplat_dev->dev, "System latch is properly closed"); in mlxplat_mlxcpld_l1_switch_intrusion_events_handler() 2432 dev_err(&mlxplat_dev->dev, "Register access failed"); in mlxplat_mlxcpld_l1_switch_intrusion_events_handler() 5562 struct mlxplat_priv *priv = platform_get_drvdata(mlxplat_dev); in mlxplat_reboot_notifier() 5582 struct mlxplat_priv *priv = platform_get_drvdata(mlxplat_dev); in mlxplat_poweroff() 5592 mlxplat_dev = platform_device_register_simple(MLX_PLAT_DEVICE_NAME, -1, in mlxplat_register_platform_device() 5595 if (IS_ERR(mlxplat_dev)) in mlxplat_register_platform_device() [all...] |
Completed in 8 milliseconds