Lines Matching +full:int +full:- +full:map +full:- +full:mask
1 // SPDX-License-Identifier: GPL-2.0-only
9 #include <linux/reset-controller.h>
14 static int qcom_reset(struct reset_controller_dev *rcdev, unsigned long id) in qcom_reset()
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()
25 static int qcom_reset_set_assert(struct reset_controller_dev *rcdev, in qcom_reset_set_assert()
29 const struct qcom_reset_map *map; in qcom_reset_set_assert() local
30 u32 mask; in qcom_reset_set_assert() local
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()
44 static int qcom_reset_assert(struct reset_controller_dev *rcdev, unsigned long id) in qcom_reset_assert()
49 static int qcom_reset_deassert(struct reset_controller_dev *rcdev, unsigned long id) in qcom_reset_deassert()