Lines Matching refs:rd
66 struct pistachio_reset_data *rd; in pistachio_reset_assert() local
70 rd = container_of(rcdev, struct pistachio_reset_data, rcdev); in pistachio_reset_assert()
76 return regmap_update_bits(rd->periph_regs, PISTACHIO_SOFT_RESET, in pistachio_reset_assert()
83 struct pistachio_reset_data *rd; in pistachio_reset_deassert() local
87 rd = container_of(rcdev, struct pistachio_reset_data, rcdev); in pistachio_reset_deassert()
93 return regmap_update_bits(rd->periph_regs, PISTACHIO_SOFT_RESET, in pistachio_reset_deassert()
104 struct pistachio_reset_data *rd; in pistachio_reset_probe() local
108 rd = devm_kzalloc(dev, sizeof(*rd), GFP_KERNEL); in pistachio_reset_probe()
109 if (!rd) in pistachio_reset_probe()
112 rd->periph_regs = syscon_node_to_regmap(np->parent); in pistachio_reset_probe()
113 if (IS_ERR(rd->periph_regs)) in pistachio_reset_probe()
114 return PTR_ERR(rd->periph_regs); in pistachio_reset_probe()
116 rd->rcdev.owner = THIS_MODULE; in pistachio_reset_probe()
117 rd->rcdev.nr_resets = PISTACHIO_RESET_MAX + 1; in pistachio_reset_probe()
118 rd->rcdev.ops = &pistachio_reset_ops; in pistachio_reset_probe()
119 rd->rcdev.of_node = np; in pistachio_reset_probe()
121 return devm_reset_controller_register(dev, &rd->rcdev); in pistachio_reset_probe()