Lines Matching refs:syscon_rbm
26 struct syscon_reboot_mode *syscon_rbm; in syscon_reboot_mode_write() local
29 syscon_rbm = container_of(reboot, struct syscon_reboot_mode, reboot); in syscon_reboot_mode_write()
31 ret = regmap_update_bits(syscon_rbm->map, syscon_rbm->offset, in syscon_reboot_mode_write()
32 syscon_rbm->mask, magic); in syscon_reboot_mode_write()
42 struct syscon_reboot_mode *syscon_rbm; in syscon_reboot_mode_probe() local
44 syscon_rbm = devm_kzalloc(&pdev->dev, sizeof(*syscon_rbm), GFP_KERNEL); in syscon_reboot_mode_probe()
45 if (!syscon_rbm) in syscon_reboot_mode_probe()
48 syscon_rbm->reboot.dev = &pdev->dev; in syscon_reboot_mode_probe()
49 syscon_rbm->reboot.write = syscon_reboot_mode_write; in syscon_reboot_mode_probe()
50 syscon_rbm->mask = 0xffffffff; in syscon_reboot_mode_probe()
52 syscon_rbm->map = syscon_node_to_regmap(pdev->dev.parent->of_node); in syscon_reboot_mode_probe()
53 if (IS_ERR(syscon_rbm->map)) in syscon_reboot_mode_probe()
54 return PTR_ERR(syscon_rbm->map); in syscon_reboot_mode_probe()
57 &syscon_rbm->offset)) in syscon_reboot_mode_probe()
60 of_property_read_u32(pdev->dev.of_node, "mask", &syscon_rbm->mask); in syscon_reboot_mode_probe()
62 ret = devm_reboot_mode_register(&pdev->dev, &syscon_rbm->reboot); in syscon_reboot_mode_probe()