Lines Matching refs:mlxplat_dev

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()
5596 return PTR_ERR(mlxplat_dev); in mlxplat_register_platform_device()
6166 mlxplat_mlxcpld_regmap_ctx.base = devm_ioport_map(&mlxplat_dev->dev, in mlxplat_lpc_cpld_device_init()
6224 dev_err(&mlxplat_dev->dev, "ioremap failed\n"); in mlxplat_pci_fpga_device_init()
6323 platform_device_register_resndata(&mlxplat_dev->dev, in mlxplat_post_init()
6338 platform_device_register_resndata(&mlxplat_dev->dev, "leds-mlxreg", in mlxplat_post_init()
6350 priv->pdev_io_regs = platform_device_register_resndata(&mlxplat_dev->dev, in mlxplat_post_init()
6364 priv->pdev_fan = platform_device_register_resndata(&mlxplat_dev->dev, "mlxreg-fan", in mlxplat_post_init()
6382 platform_device_register_resndata(&mlxplat_dev->dev, "mlx-wdt", i, in mlxplat_post_init()
6499 priv->pdev_i2c = platform_device_register_resndata(&mlxplat_dev->dev, "i2c_mlxcpld", in mlxplat_i2c_main_init()
6544 mlxplat_dev = pdev; in mlxplat_probe()
6551 priv = devm_kzalloc(&mlxplat_dev->dev, sizeof(struct mlxplat_priv), in mlxplat_probe()
6557 platform_set_drvdata(mlxplat_dev, priv); in mlxplat_probe()
6565 priv->regmap = devm_regmap_init(&mlxplat_dev->dev, NULL, in mlxplat_probe()
6613 struct mlxplat_priv *priv = platform_get_drvdata(mlxplat_dev); in mlxplat_remove()
6656 if (mlxplat_dev) in mlxplat_exit()
6657 platform_device_unregister(mlxplat_dev); in mlxplat_exit()