Lines Matching +full:rst +full:- +full:- +full:- +full:- +full:-
1 // SPDX-License-Identifier: GPL-2.0-only
9 #include <linux/reset-controller.h>
16 struct qcom_reset_controller *rst = to_qcom_reset_controller(rcdev); in qcom_reset() local
18 rcdev->ops->assert(rcdev, id); in qcom_reset()
19 fsleep(rst->reset_map[id].udelay ?: 1); /* use 1 us as default */ in qcom_reset()
21 rcdev->ops->deassert(rcdev, id); in qcom_reset()
28 struct qcom_reset_controller *rst; in qcom_reset_set_assert() local
32 rst = to_qcom_reset_controller(rcdev); in qcom_reset_set_assert()
33 map = &rst->reset_map[id]; in qcom_reset_set_assert()
34 mask = map->bitmask ? map->bitmask : BIT(map->bit); in qcom_reset_set_assert()
36 regmap_update_bits(rst->regmap, map->reg, mask, assert ? mask : 0); in qcom_reset_set_assert()
39 regmap_read(rst->regmap, map->reg, &mask); in qcom_reset_set_assert()