Lines Matching defs:rc
25 struct hi3660_reset_controller *rc = to_hi3660_reset_controller(rcdev);
30 return regmap_write(rc->map, offset, mask);
32 return regmap_write(rc->map, offset + 4, mask);
78 struct hi3660_reset_controller *rc;
82 rc = devm_kzalloc(dev, sizeof(*rc), GFP_KERNEL);
83 if (!rc)
86 rc->map = syscon_regmap_lookup_by_phandle(np, "hisilicon,rst-syscon");
87 if (rc->map == ERR_PTR(-ENODEV)) {
89 rc->map = syscon_regmap_lookup_by_phandle(np,
92 if (IS_ERR(rc->map)) {
93 return dev_err_probe(dev, PTR_ERR(rc->map),
97 rc->rst.ops = &hi3660_reset_ops,
98 rc->rst.of_node = np;
99 rc->rst.of_reset_n_cells = 2;
100 rc->rst.of_xlate = hi3660_reset_xlate;
102 return reset_controller_register(&rc->rst);