Home
last modified time | relevance | path

Searched refs:rst (Results 1 - 25 of 516) sorted by relevance

12345678910>>...21

/kernel/linux/linux-5.10/drivers/reset/
H A Dreset-hsdk.c52 static void hsdk_reset_config(struct hsdk_rst *rst, unsigned long id) in hsdk_reset_config() argument
54 writel(rst_map[id], rst->regs_ctl + CGU_SYS_RST_CTRL); in hsdk_reset_config()
57 static int hsdk_reset_do(struct hsdk_rst *rst) in hsdk_reset_do() argument
61 reg = readl(rst->regs_rst + CGU_IP_SW_RESET); in hsdk_reset_do()
65 writel(reg, rst->regs_rst + CGU_IP_SW_RESET); in hsdk_reset_do()
68 return readl_poll_timeout_atomic(rst->regs_rst + CGU_IP_SW_RESET, reg, in hsdk_reset_do()
75 struct hsdk_rst *rst = to_hsdk_rst(rcdev); in hsdk_reset_reset() local
79 spin_lock_irqsave(&rst->lock, flags); in hsdk_reset_reset()
80 hsdk_reset_config(rst, id); in hsdk_reset_reset()
81 ret = hsdk_reset_do(rst); in hsdk_reset_reset()
94 struct hsdk_rst *rst; hsdk_reset_probe() local
[all...]
H A Dreset-axs10x.c30 struct axs10x_rst *rst = to_axs10x_rst(rcdev); in axs10x_reset_reset() local
33 spin_lock_irqsave(&rst->lock, flags); in axs10x_reset_reset()
34 writel(BIT(id), rst->regs_rst); in axs10x_reset_reset()
35 spin_unlock_irqrestore(&rst->lock, flags); in axs10x_reset_reset()
46 struct axs10x_rst *rst; in axs10x_reset_probe() local
49 rst = devm_kzalloc(&pdev->dev, sizeof(*rst), GFP_KERNEL); in axs10x_reset_probe()
50 if (!rst) in axs10x_reset_probe()
54 rst->regs_rst = devm_ioremap_resource(&pdev->dev, mem); in axs10x_reset_probe()
55 if (IS_ERR(rst in axs10x_reset_probe()
[all...]
H A Dreset-uniphier-glue.c26 struct reset_control *rst[MAX_RSTS]; member
63 priv->rst[i] = devm_reset_control_get_shared(dev, name); in uniphier_glue_reset_probe()
64 if (IS_ERR(priv->rst[i])) in uniphier_glue_reset_probe()
65 return PTR_ERR(priv->rst[i]); in uniphier_glue_reset_probe()
73 ret = reset_control_deassert(priv->rst[nr]); in uniphier_glue_reset_probe()
95 reset_control_assert(priv->rst[nr]); in uniphier_glue_reset_probe()
108 reset_control_assert(priv->rst[i]); in uniphier_glue_reset_remove()
/kernel/linux/linux-6.6/drivers/reset/
H A Dreset-hsdk.c52 static void hsdk_reset_config(struct hsdk_rst *rst, unsigned long id) in hsdk_reset_config() argument
54 writel(rst_map[id], rst->regs_ctl + CGU_SYS_RST_CTRL); in hsdk_reset_config()
57 static int hsdk_reset_do(struct hsdk_rst *rst) in hsdk_reset_do() argument
61 reg = readl(rst->regs_rst + CGU_IP_SW_RESET); in hsdk_reset_do()
65 writel(reg, rst->regs_rst + CGU_IP_SW_RESET); in hsdk_reset_do()
68 return readl_poll_timeout_atomic(rst->regs_rst + CGU_IP_SW_RESET, reg, in hsdk_reset_do()
75 struct hsdk_rst *rst = to_hsdk_rst(rcdev); in hsdk_reset_reset() local
79 spin_lock_irqsave(&rst->lock, flags); in hsdk_reset_reset()
80 hsdk_reset_config(rst, id); in hsdk_reset_reset()
81 ret = hsdk_reset_do(rst); in hsdk_reset_reset()
94 struct hsdk_rst *rst; hsdk_reset_probe() local
[all...]
H A Dreset-axs10x.c30 struct axs10x_rst *rst = to_axs10x_rst(rcdev); in axs10x_reset_reset() local
33 spin_lock_irqsave(&rst->lock, flags); in axs10x_reset_reset()
34 writel(BIT(id), rst->regs_rst); in axs10x_reset_reset()
35 spin_unlock_irqrestore(&rst->lock, flags); in axs10x_reset_reset()
46 struct axs10x_rst *rst; in axs10x_reset_probe() local
48 rst = devm_kzalloc(&pdev->dev, sizeof(*rst), GFP_KERNEL); in axs10x_reset_probe()
49 if (!rst) in axs10x_reset_probe()
52 rst->regs_rst = devm_platform_ioremap_resource(pdev, 0); in axs10x_reset_probe()
53 if (IS_ERR(rst in axs10x_reset_probe()
[all...]
/kernel/linux/linux-5.10/Documentation/userspace-api/media/
H A DMakefile10 FILES = audio.h.rst ca.h.rst dmx.h.rst frontend.h.rst net.h.rst video.h.rst \
11 videodev2.h.rst media.h.rst cec.h.rst lirc.h.rst
[all...]
/kernel/linux/linux-6.6/Documentation/userspace-api/media/
H A DMakefile10 FILES = ca.h.rst dmx.h.rst frontend.h.rst net.h.rst \
11 videodev2.h.rst media.h.rst cec.h.rst lirc.h.rst
24 $(BUILDDIR)/ca.h.rst: ${UAPI}/dvb/ca.h ${PARSER} $(SRC_DIR)/ca.h.rst
[all...]
/kernel/linux/linux-6.6/drivers/clk/baikal-t1/
H A Dccu-rst.c11 #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 in ccu_rst_status()
169 struct ccu_rst *rst; ccu_rst_hw_register() local
212 ccu_rst_hw_unregister(struct ccu_rst *rst) ccu_rst_hw_unregister() argument
[all...]
/kernel/linux/linux-5.10/drivers/memory/tegra/
H A Dtegra20.c199 const struct tegra_mc_reset *rst) in tegra20_mc_hotreset_assert()
206 value = mc_readl(mc, rst->reset); in tegra20_mc_hotreset_assert()
207 mc_writel(mc, value & ~BIT(rst->bit), rst->reset); in tegra20_mc_hotreset_assert()
215 const struct tegra_mc_reset *rst) in tegra20_mc_hotreset_deassert()
222 value = mc_readl(mc, rst->reset); in tegra20_mc_hotreset_deassert()
223 mc_writel(mc, value | BIT(rst->bit), rst->reset); in tegra20_mc_hotreset_deassert()
231 const struct tegra_mc_reset *rst) in tegra20_mc_block_dma()
238 value = mc_readl(mc, rst in tegra20_mc_block_dma()
198 tegra20_mc_hotreset_assert(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra20_mc_hotreset_assert() argument
214 tegra20_mc_hotreset_deassert(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra20_mc_hotreset_deassert() argument
230 tegra20_mc_block_dma(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra20_mc_block_dma() argument
246 tegra20_mc_dma_idling(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra20_mc_dma_idling() argument
252 tegra20_mc_reset_status(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra20_mc_reset_status() argument
258 tegra20_mc_unblock_dma(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra20_mc_unblock_dma() argument
[all...]
H A Dmc.c46 const struct tegra_mc_reset *rst) in tegra_mc_block_dma_common()
53 value = mc_readl(mc, rst->control) | BIT(rst->bit); in tegra_mc_block_dma_common()
54 mc_writel(mc, value, rst->control); in tegra_mc_block_dma_common()
62 const struct tegra_mc_reset *rst) in tegra_mc_dma_idling_common()
64 return (mc_readl(mc, rst->status) & BIT(rst->bit)) != 0; in tegra_mc_dma_idling_common()
68 const struct tegra_mc_reset *rst) in tegra_mc_unblock_dma_common()
75 value = mc_readl(mc, rst->control) & ~BIT(rst in tegra_mc_unblock_dma_common()
45 tegra_mc_block_dma_common(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra_mc_block_dma_common() argument
61 tegra_mc_dma_idling_common(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra_mc_dma_idling_common() argument
67 tegra_mc_unblock_dma_common(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra_mc_unblock_dma_common() argument
83 tegra_mc_reset_status_common(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra_mc_reset_status_common() argument
118 const struct tegra_mc_reset *rst; tegra_mc_hotreset_assert() local
171 const struct tegra_mc_reset *rst; tegra_mc_hotreset_deassert() local
210 const struct tegra_mc_reset *rst; tegra_mc_hotreset_status() local
[all...]
/kernel/linux/linux-5.10/drivers/clk/qcom/
H A Dreset.c16 struct qcom_reset_controller *rst = to_qcom_reset_controller(rcdev); in qcom_reset() local
19 fsleep(rst->reset_map[id].udelay ?: 1); /* use 1 us as default */ in qcom_reset()
28 struct qcom_reset_controller *rst; in qcom_reset_assert() local
32 rst = to_qcom_reset_controller(rcdev); in qcom_reset_assert()
33 map = &rst->reset_map[id]; in qcom_reset_assert()
36 return regmap_update_bits(rst->regmap, map->reg, mask, mask); in qcom_reset_assert()
42 struct qcom_reset_controller *rst; in qcom_reset_deassert() local
46 rst = to_qcom_reset_controller(rcdev); in qcom_reset_deassert()
47 map = &rst->reset_map[id]; in qcom_reset_deassert()
50 return regmap_update_bits(rst in qcom_reset_deassert()
[all...]
/kernel/linux/linux-5.10/drivers/reset/sti/
H A Dreset-syscfg.c35 * @rst: base reset controller structure.
41 struct reset_controller_dev rst; member
47 container_of(_rst, struct syscfg_reset_controller, rst)
52 struct syscfg_reset_controller *rst = to_syscfg_reset_controller(rcdev); in syscfg_reset_program_hw() local
54 u32 ctrl_val = rst->active_low ? !assert : !!assert; in syscfg_reset_program_hw()
60 ch = &rst->channels[idx]; in syscfg_reset_program_hw()
115 struct syscfg_reset_controller *rst = to_syscfg_reset_controller(rcdev); in syscfg_reset_status() local
123 ch = &rst->channels[idx]; in syscfg_reset_status()
131 return rst->active_low ? !ret_val : !!ret_val; in syscfg_reset_status()
156 rc->rst in syscfg_reset_controller_register()
[all...]
/kernel/linux/linux-6.6/drivers/reset/sti/
H A Dreset-syscfg.c35 * @rst: base reset controller structure.
41 struct reset_controller_dev rst; member
47 container_of(_rst, struct syscfg_reset_controller, rst)
52 struct syscfg_reset_controller *rst = to_syscfg_reset_controller(rcdev); in syscfg_reset_program_hw() local
54 u32 ctrl_val = rst->active_low ? !assert : !!assert; in syscfg_reset_program_hw()
60 ch = &rst->channels[idx]; in syscfg_reset_program_hw()
105 struct syscfg_reset_controller *rst = to_syscfg_reset_controller(rcdev); in syscfg_reset_status() local
113 ch = &rst->channels[idx]; in syscfg_reset_status()
121 return rst->active_low ? !ret_val : !!ret_val; in syscfg_reset_status()
146 rc->rst in syscfg_reset_controller_register()
[all...]
/kernel/linux/linux-6.6/drivers/clk/qcom/
H A Dreset.c16 struct qcom_reset_controller *rst = to_qcom_reset_controller(rcdev); in qcom_reset() local
19 fsleep(rst->reset_map[id].udelay ?: 1); /* use 1 us as default */ 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()
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()
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/x86_64/
H A Dxen_shinfo_test.c631 struct kvm_xen_vcpu_attr rst; in main() local
653 rst.type = KVM_XEN_VCPU_ATTR_TYPE_RUNSTATE_CURRENT; in main()
654 rst.u.runstate.state = uc.args[1] + RUNSTATE_runnable - in main()
656 vcpu_ioctl(vcpu, KVM_XEN_VCPU_SET_ATTR, &rst); in main()
662 rst.type = KVM_XEN_VCPU_ATTR_TYPE_RUNSTATE_ADJUST; in main()
663 memset(&rst.u, 0, sizeof(rst.u)); in main()
664 rst.u.runstate.state = (uint64_t)-1; in main()
665 rst.u.runstate.time_blocked = in main()
667 rst in main()
1014 struct kvm_xen_vcpu_attr rst = { main() local
[all...]
/kernel/linux/linux-6.6/drivers/memory/tegra/
H A Dmc.c137 const struct tegra_mc_reset *rst) in tegra_mc_block_dma_common()
144 value = mc_readl(mc, rst->control) | BIT(rst->bit); in tegra_mc_block_dma_common()
145 mc_writel(mc, value, rst->control); in tegra_mc_block_dma_common()
153 const struct tegra_mc_reset *rst) in tegra_mc_dma_idling_common()
155 return (mc_readl(mc, rst->status) & BIT(rst->bit)) != 0; in tegra_mc_dma_idling_common()
159 const struct tegra_mc_reset *rst) in tegra_mc_unblock_dma_common()
166 value = mc_readl(mc, rst->control) & ~BIT(rst in tegra_mc_unblock_dma_common()
136 tegra_mc_block_dma_common(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra_mc_block_dma_common() argument
152 tegra_mc_dma_idling_common(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra_mc_dma_idling_common() argument
158 tegra_mc_unblock_dma_common(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra_mc_unblock_dma_common() argument
174 tegra_mc_reset_status_common(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra_mc_reset_status_common() argument
209 const struct tegra_mc_reset *rst; tegra_mc_hotreset_assert() local
269 const struct tegra_mc_reset *rst; tegra_mc_hotreset_deassert() local
308 const struct tegra_mc_reset *rst; tegra_mc_hotreset_status() local
[all...]
H A Dtegra20.c280 const struct tegra_mc_reset *rst) in tegra20_mc_hotreset_assert()
287 value = mc_readl(mc, rst->reset); in tegra20_mc_hotreset_assert()
288 mc_writel(mc, value & ~BIT(rst->bit), rst->reset); in tegra20_mc_hotreset_assert()
296 const struct tegra_mc_reset *rst) in tegra20_mc_hotreset_deassert()
303 value = mc_readl(mc, rst->reset); in tegra20_mc_hotreset_deassert()
304 mc_writel(mc, value | BIT(rst->bit), rst->reset); in tegra20_mc_hotreset_deassert()
312 const struct tegra_mc_reset *rst) in tegra20_mc_block_dma()
319 value = mc_readl(mc, rst in tegra20_mc_block_dma()
279 tegra20_mc_hotreset_assert(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra20_mc_hotreset_assert() argument
295 tegra20_mc_hotreset_deassert(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra20_mc_hotreset_deassert() argument
311 tegra20_mc_block_dma(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra20_mc_block_dma() argument
327 tegra20_mc_dma_idling(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra20_mc_dma_idling() argument
333 tegra20_mc_reset_status(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra20_mc_reset_status() argument
339 tegra20_mc_unblock_dma(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra20_mc_unblock_dma() argument
[all...]
/kernel/linux/linux-6.6/drivers/pwm/
H A Dpwm-intel-lgm.c152 struct reset_control *rst = data; in lgm_reset_control_release() local
154 reset_control_assert(rst); in lgm_reset_control_release()
157 static int lgm_reset_control_deassert(struct device *dev, struct reset_control *rst) in lgm_reset_control_deassert() argument
161 ret = reset_control_deassert(rst); in lgm_reset_control_deassert()
165 return devm_add_action_or_reset(dev, lgm_reset_control_release, rst); in lgm_reset_control_deassert()
171 struct reset_control *rst; in lgm_pwm_probe() local
198 rst = devm_reset_control_get_exclusive(dev, NULL); in lgm_pwm_probe()
199 if (IS_ERR(rst)) in lgm_pwm_probe()
200 return dev_err_probe(dev, PTR_ERR(rst), in lgm_pwm_probe()
203 ret = lgm_reset_control_deassert(dev, rst); in lgm_pwm_probe()
[all...]
/kernel/linux/linux-5.10/drivers/reset/hisilicon/
H A Dreset-hi3660.c15 struct reset_controller_dev rst; member
20 container_of(_rst, struct hi3660_reset_controller, rst)
86 rc->map = syscon_regmap_lookup_by_phandle(np, "hisi,rst-syscon"); in hi3660_reset_probe()
88 dev_err(dev, "failed to get hi3660,rst-syscon\n"); in hi3660_reset_probe()
92 rc->rst.ops = &hi3660_reset_ops, in hi3660_reset_probe()
93 rc->rst.of_node = np; in hi3660_reset_probe()
94 rc->rst.of_reset_n_cells = 2; in hi3660_reset_probe()
95 rc->rst.of_xlate = hi3660_reset_xlate; in hi3660_reset_probe()
97 return reset_controller_register(&rc->rst); in hi3660_reset_probe()
/kernel/linux/linux-6.6/drivers/reset/hisilicon/
H A Dreset-hi3660.c15 struct reset_controller_dev rst; member
20 container_of(_rst, struct hi3660_reset_controller, rst)
86 rc->map = syscon_regmap_lookup_by_phandle(np, "hisilicon,rst-syscon"); in hi3660_reset_probe()
90 "hisi,rst-syscon"); in hi3660_reset_probe()
94 "failed to get hisilicon,rst-syscon\n"); in hi3660_reset_probe()
97 rc->rst.ops = &hi3660_reset_ops, in hi3660_reset_probe()
98 rc->rst.of_node = np; in hi3660_reset_probe()
99 rc->rst.of_reset_n_cells = 2; in hi3660_reset_probe()
100 rc->rst.of_xlate = hi3660_reset_xlate; in hi3660_reset_probe()
102 return reset_controller_register(&rc->rst); in hi3660_reset_probe()
[all...]
/kernel/linux/linux-6.6/drivers/mmc/host/
H A Dsdhci_f_sdh30.c26 struct reset_control *rst; member
161 priv->rst = devm_reset_control_get_optional_shared(dev, NULL); in sdhci_f_sdh30_probe()
162 if (IS_ERR(priv->rst)) { in sdhci_f_sdh30_probe()
163 ret = PTR_ERR(priv->rst); in sdhci_f_sdh30_probe()
167 ret = reset_control_deassert(priv->rst); in sdhci_f_sdh30_probe()
198 reset_control_assert(priv->rst); in sdhci_f_sdh30_probe()
214 struct reset_control *rst = priv->rst; in sdhci_f_sdh30_remove() local
219 reset_control_assert(rst); in sdhci_f_sdh30_remove()
/kernel/linux/linux-5.10/drivers/tty/serial/8250/
H A D8250_tegra.c21 struct reset_control *rst; member
89 uart->rst = devm_reset_control_get_optional_shared(&pdev->dev, NULL); in tegra_uart_probe()
90 if (IS_ERR(uart->rst)) in tegra_uart_probe()
91 return PTR_ERR(uart->rst); in tegra_uart_probe()
108 ret = reset_control_deassert(uart->rst); in tegra_uart_probe()
122 reset_control_assert(uart->rst); in tegra_uart_probe()
134 reset_control_assert(uart->rst); in tegra_uart_remove()
/kernel/linux/linux-6.6/drivers/tty/serial/8250/
H A D8250_tegra.c22 struct reset_control *rst; member
91 uart->rst = devm_reset_control_get_optional_shared(&pdev->dev, NULL); in tegra_uart_probe()
92 if (IS_ERR(uart->rst)) in tegra_uart_probe()
93 return PTR_ERR(uart->rst); in tegra_uart_probe()
110 ret = reset_control_deassert(uart->rst); in tegra_uart_probe()
124 reset_control_assert(uart->rst); in tegra_uart_probe()
136 reset_control_assert(uart->rst); in tegra_uart_remove()
/kernel/linux/linux-6.6/drivers/remoteproc/
H A Drcar_rproc.c14 #include <linux/soc/renesas/rcar-rst.h>
19 struct reset_control *rst; member
122 err = reset_control_deassert(priv->rst); in rcar_rproc_start()
134 err = reset_control_assert(priv->rst); in rcar_rproc_stop()
168 priv->rst = devm_reset_control_get_exclusive(dev, NULL); in rcar_rproc_probe()
169 if (IS_ERR(priv->rst)) { in rcar_rproc_probe()
170 ret = PTR_ERR(priv->rst); in rcar_rproc_probe()
/kernel/linux/linux-5.10/drivers/phy/samsung/
H A Dphy-s5pv210-usb2.c114 u32 rst; in s5pv210_phy_pwr() local
136 rst = readl(drv->reg_phy + S5PV210_UPHYRST); in s5pv210_phy_pwr()
137 rst |= rstbits; in s5pv210_phy_pwr()
138 writel(rst, drv->reg_phy + S5PV210_UPHYRST); in s5pv210_phy_pwr()
140 rst &= ~rstbits; in s5pv210_phy_pwr()
141 writel(rst, drv->reg_phy + S5PV210_UPHYRST); in s5pv210_phy_pwr()

Completed in 9 milliseconds

12345678910>>...21