Lines Matching full:rst

11 #define pr_fmt(fmt) "bt1-ccu-rst: " fmt
24 #include "ccu-rst.h"
106 struct ccu_rst *rst = to_ccu_rst(rcdev); in ccu_rst_reset() local
107 const struct ccu_rst_info *info = &rst->rsts_info[idx]; in ccu_rst_reset()
112 regmap_update_bits(rst->sys_regs, info->base, info->mask, info->mask); in ccu_rst_reset()
123 struct ccu_rst *rst = to_ccu_rst(rcdev); in ccu_rst_set() local
124 const struct ccu_rst_info *info = &rst->rsts_info[idx]; in ccu_rst_set()
129 return regmap_update_bits(rst->sys_regs, info->base, in ccu_rst_set()
148 struct ccu_rst *rst = to_ccu_rst(rcdev); in ccu_rst_status() local
149 const struct ccu_rst_info *info = &rst->rsts_info[idx]; in ccu_rst_status()
155 regmap_read(rst->sys_regs, info->base, &val); in ccu_rst_status()
169 struct ccu_rst *rst; in ccu_rst_hw_register() local
175 rst = kzalloc(sizeof(*rst), GFP_KERNEL); in ccu_rst_hw_register()
176 if (!rst) in ccu_rst_hw_register()
179 rst->sys_regs = rst_init->sys_regs; in ccu_rst_hw_register()
181 rst->rcdev.nr_resets = ARRAY_SIZE(axi_rst_info); in ccu_rst_hw_register()
182 rst->rsts_info = axi_rst_info; in ccu_rst_hw_register()
184 rst->rcdev.nr_resets = ARRAY_SIZE(sys_rst_info); in ccu_rst_hw_register()
185 rst->rsts_info = sys_rst_info; in ccu_rst_hw_register()
193 rst->rcdev.owner = THIS_MODULE; in ccu_rst_hw_register()
194 rst->rcdev.ops = &ccu_rst_ops; in ccu_rst_hw_register()
195 rst->rcdev.of_node = rst_init->np; in ccu_rst_hw_register()
197 ret = reset_controller_register(&rst->rcdev); in ccu_rst_hw_register()
204 return rst; in ccu_rst_hw_register()
207 kfree(rst); in ccu_rst_hw_register()
212 void ccu_rst_hw_unregister(struct ccu_rst *rst) in ccu_rst_hw_unregister() argument
214 reset_controller_unregister(&rst->rcdev); in ccu_rst_hw_unregister()
216 kfree(rst); in ccu_rst_hw_unregister()