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()
5561 struct mlxplat_priv *priv = platform_get_drvdata(mlxplat_dev); in mlxplat_reboot_notifier()
5581 struct mlxplat_priv *priv = platform_get_drvdata(mlxplat_dev); in mlxplat_poweroff()
5591 mlxplat_dev = platform_device_register_simple(MLX_PLAT_DEVICE_NAME, -1, in mlxplat_register_platform_device()
5594 if (IS_ERR(mlxplat_dev)) in mlxplat_register_platform_device()
5595 return PTR_ERR(mlxplat_dev); in mlxplat_register_platform_device()
6165 mlxplat_mlxcpld_regmap_ctx.base = devm_ioport_map(&mlxplat_dev->dev, in mlxplat_lpc_cpld_device_init()
6223 dev_err(&mlxplat_dev->dev, "ioremap failed\n"); in mlxplat_pci_fpga_device_init()
6324 platform_device_register_resndata(&mlxplat_dev->dev, in mlxplat_platdevs_init()
6339 platform_device_register_resndata(&mlxplat_dev->dev, "leds-mlxreg", in mlxplat_platdevs_init()
6351 priv->pdev_io_regs = platform_device_register_resndata(&mlxplat_dev->dev, in mlxplat_platdevs_init()
6365 priv->pdev_fan = platform_device_register_resndata(&mlxplat_dev->dev, "mlxreg-fan", in mlxplat_platdevs_init()
6383 platform_device_register_resndata(&mlxplat_dev->dev, "mlx-wdt", i, in mlxplat_platdevs_init()
6500 priv->pdev_i2c = platform_device_register_resndata(&mlxplat_dev->dev, "i2c_mlxcpld", in mlxplat_i2c_main_init()
6545 mlxplat_dev = pdev; in mlxplat_probe()
6552 priv = devm_kzalloc(&mlxplat_dev->dev, sizeof(struct mlxplat_priv), in mlxplat_probe()
6558 platform_set_drvdata(mlxplat_dev, priv); in mlxplat_probe()
6566 priv->regmap = devm_regmap_init(&mlxplat_dev->dev, NULL, in mlxplat_probe()
6614 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()