Lines Matching full:rst
111 const struct tegra_mc_reset *rst) in tegra_mc_block_dma_common() argument
118 value = mc_readl(mc, rst->control) | BIT(rst->bit); in tegra_mc_block_dma_common()
119 mc_writel(mc, value, rst->control); in tegra_mc_block_dma_common()
127 const struct tegra_mc_reset *rst) in tegra_mc_dma_idling_common() argument
129 return (mc_readl(mc, rst->status) & BIT(rst->bit)) != 0; in tegra_mc_dma_idling_common()
133 const struct tegra_mc_reset *rst) in tegra_mc_unblock_dma_common() argument
140 value = mc_readl(mc, rst->control) & ~BIT(rst->bit); in tegra_mc_unblock_dma_common()
141 mc_writel(mc, value, rst->control); in tegra_mc_unblock_dma_common()
149 const struct tegra_mc_reset *rst) in tegra_mc_reset_status_common() argument
151 return (mc_readl(mc, rst->control) & BIT(rst->bit)) != 0; in tegra_mc_reset_status_common()
183 const struct tegra_mc_reset *rst; in tegra_mc_hotreset_assert() local
187 rst = tegra_mc_reset_find(mc, id); in tegra_mc_hotreset_assert()
188 if (!rst) in tegra_mc_hotreset_assert()
198 if (rst_ops->reset_status(mc, rst)) in tegra_mc_hotreset_assert()
204 err = rst_ops->block_dma(mc, rst); in tegra_mc_hotreset_assert()
207 rst->name, err); in tegra_mc_hotreset_assert()
214 while (!rst_ops->dma_idling(mc, rst)) { in tegra_mc_hotreset_assert()
217 rst->name); in tegra_mc_hotreset_assert()
227 err = rst_ops->hotreset_assert(mc, rst); in tegra_mc_hotreset_assert()
230 rst->name, err); in tegra_mc_hotreset_assert()
243 const struct tegra_mc_reset *rst; in tegra_mc_hotreset_deassert() local
246 rst = tegra_mc_reset_find(mc, id); in tegra_mc_hotreset_deassert()
247 if (!rst) in tegra_mc_hotreset_deassert()
256 err = rst_ops->hotreset_deassert(mc, rst); in tegra_mc_hotreset_deassert()
259 rst->name, err); in tegra_mc_hotreset_deassert()
266 err = rst_ops->unblock_dma(mc, rst); in tegra_mc_hotreset_deassert()
269 rst->name, err); in tegra_mc_hotreset_deassert()
282 const struct tegra_mc_reset *rst; in tegra_mc_hotreset_status() local
284 rst = tegra_mc_reset_find(mc, id); in tegra_mc_hotreset_status()
285 if (!rst) in tegra_mc_hotreset_status()
292 return rst_ops->reset_status(mc, rst); in tegra_mc_hotreset_status()