Home
last modified time | relevance | path

Searched refs:rst (Results 1 – 25 of 57) sorted by relevance

123

/drivers/clk/qcom/
Dreset.c33 struct qcom_reset_controller *rst; in qcom_reset_assert() local
37 rst = to_qcom_reset_controller(rcdev); in qcom_reset_assert()
38 map = &rst->reset_map[id]; in qcom_reset_assert()
41 return regmap_update_bits(rst->regmap, map->reg, mask, mask); in qcom_reset_assert()
47 struct qcom_reset_controller *rst; in qcom_reset_deassert() local
51 rst = to_qcom_reset_controller(rcdev); in qcom_reset_deassert()
52 map = &rst->reset_map[id]; in qcom_reset_deassert()
55 return regmap_update_bits(rst->regmap, map->reg, mask, 0); in qcom_reset_deassert()
/drivers/reset/sti/
Dreset-syscfg.c44 struct reset_controller_dev rst; member
50 container_of(_rst, struct syscfg_reset_controller, rst)
55 struct syscfg_reset_controller *rst = to_syscfg_reset_controller(rcdev); in syscfg_reset_program_hw() local
57 u32 ctrl_val = rst->active_low ? !assert : !!assert; in syscfg_reset_program_hw()
63 ch = &rst->channels[idx]; in syscfg_reset_program_hw()
136 rc->rst.ops = &syscfg_reset_ops, in syscfg_reset_controller_register()
137 rc->rst.of_node = dev->of_node; in syscfg_reset_controller_register()
138 rc->rst.nr_resets = data->nr_channels; in syscfg_reset_controller_register()
166 err = reset_controller_register(&rc->rst); in syscfg_reset_controller_register()
/drivers/media/rc/
Dsunxi-cir.c96 struct reset_control *rst; member
178 ir->rst = devm_reset_control_get_optional(dev, NULL); in sunxi_ir_probe()
179 if (IS_ERR(ir->rst)) { in sunxi_ir_probe()
180 ret = PTR_ERR(ir->rst); in sunxi_ir_probe()
183 ir->rst = NULL; in sunxi_ir_probe()
185 ret = reset_control_deassert(ir->rst); in sunxi_ir_probe()
297 if (ir->rst) in sunxi_ir_probe()
298 reset_control_assert(ir->rst); in sunxi_ir_probe()
310 if (ir->rst) in sunxi_ir_remove()
311 reset_control_assert(ir->rst); in sunxi_ir_remove()
/drivers/phy/
Dphy-s5pv210-usb2.c117 u32 rst; in s5pv210_phy_pwr() local
139 rst = readl(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()
143 rst &= ~rstbits; in s5pv210_phy_pwr()
144 writel(rst, drv->reg_phy + S5PV210_UPHYRST); in s5pv210_phy_pwr()
Dphy-exynos4210-usb2.c154 u32 rst; in exynos4210_phy_pwr() local
194 rst = readl(drv->reg_phy + EXYNOS_4210_UPHYRST); in exynos4210_phy_pwr()
195 rst |= rstbits; in exynos4210_phy_pwr()
196 writel(rst, drv->reg_phy + EXYNOS_4210_UPHYRST); in exynos4210_phy_pwr()
198 rst &= ~rstbits; in exynos4210_phy_pwr()
199 writel(rst, drv->reg_phy + EXYNOS_4210_UPHYRST); in exynos4210_phy_pwr()
Dphy-exynos4x12-usb2.c216 u32 rst; in exynos4x12_phy_pwr() local
247 rst = readl(drv->reg_phy + EXYNOS_4x12_UPHYRST); in exynos4x12_phy_pwr()
248 rst |= rstbits; in exynos4x12_phy_pwr()
249 writel(rst, drv->reg_phy + EXYNOS_4x12_UPHYRST); in exynos4x12_phy_pwr()
251 rst &= ~rstbits; in exynos4x12_phy_pwr()
252 writel(rst, drv->reg_phy + EXYNOS_4x12_UPHYRST); in exynos4x12_phy_pwr()
/drivers/usb/host/
Dohci-platform.c40 struct reset_control *rst; member
201 priv->rst = devm_reset_control_get_optional(&dev->dev, NULL); in ohci_platform_probe()
202 if (IS_ERR(priv->rst)) { in ohci_platform_probe()
203 err = PTR_ERR(priv->rst); in ohci_platform_probe()
206 priv->rst = NULL; in ohci_platform_probe()
208 err = reset_control_deassert(priv->rst); in ohci_platform_probe()
268 if (priv->rst) in ohci_platform_probe()
269 reset_control_assert(priv->rst); in ohci_platform_probe()
294 if (priv->rst) in ohci_platform_remove()
295 reset_control_assert(priv->rst); in ohci_platform_remove()
Dehci-platform.c46 struct reset_control *rst; member
237 priv->rst = devm_reset_control_get_optional(&dev->dev, NULL); in ehci_platform_probe()
238 if (IS_ERR(priv->rst)) { in ehci_platform_probe()
239 err = PTR_ERR(priv->rst); in ehci_platform_probe()
242 priv->rst = NULL; in ehci_platform_probe()
244 err = reset_control_deassert(priv->rst); in ehci_platform_probe()
303 if (priv->rst) in ehci_platform_probe()
304 reset_control_assert(priv->rst); in ehci_platform_probe()
329 if (priv->rst) in ehci_platform_remove()
330 reset_control_assert(priv->rst); in ehci_platform_remove()
Dehci-st.c37 struct reset_control *rst; member
77 ret = reset_control_deassert(priv->rst); in st_ehci_platform_power_on()
111 reset_control_assert(priv->rst); in st_ehci_platform_power_on()
126 reset_control_assert(priv->rst); in st_ehci_platform_power_off()
217 priv->rst = devm_reset_control_get_optional(&dev->dev, "softreset"); in st_ehci_platform_probe()
218 if (IS_ERR(priv->rst)) { in st_ehci_platform_probe()
219 err = PTR_ERR(priv->rst); in st_ehci_platform_probe()
222 priv->rst = NULL; in st_ehci_platform_probe()
Dohci-st.c36 struct reset_control *rst; member
58 ret = reset_control_deassert(priv->rst); in st_ohci_platform_power_on()
92 reset_control_assert(priv->rst); in st_ohci_platform_power_on()
108 reset_control_assert(priv->rst); in st_ohci_platform_power_off()
197 priv->rst = devm_reset_control_get_optional(&dev->dev, "softreset"); in st_ohci_platform_probe()
198 if (IS_ERR(priv->rst)) { in st_ohci_platform_probe()
199 err = PTR_ERR(priv->rst); in st_ohci_platform_probe()
Dehci-tegra.c58 struct reset_control *rst; member
109 reset_control_assert(tegra->rst); in tegra_reset_usb_controller()
111 reset_control_deassert(tegra->rst); in tegra_reset_usb_controller()
443 tegra->rst = devm_reset_control_get(&pdev->dev, "usb"); in tegra_ehci_probe()
444 if (IS_ERR(tegra->rst)) { in tegra_ehci_probe()
446 err = PTR_ERR(tegra->rst); in tegra_ehci_probe()
/drivers/staging/rtl8188eu/include/
Dusb_ops_linux.h58 u8 rst = true; in rtw_usb_bulk_size_boundary() local
62 rst = (0 == (buf_len) % USB_HIGH_SPEED_BULK_SIZE) ? in rtw_usb_bulk_size_boundary()
65 rst = (0 == (buf_len) % USB_FULL_SPEED_BULK_SIZE) ? in rtw_usb_bulk_size_boundary()
67 return rst; in rtw_usb_bulk_size_boundary()
/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
Dmac.c183 bool rst = true; in rtl92c_init_llt_table() local
187 rst = rtl92c_llt_write(hw, i , i + 1); in rtl92c_init_llt_table()
188 if (true != rst) { in rtl92c_init_llt_table()
190 return rst; in rtl92c_init_llt_table()
194 rst = rtl92c_llt_write(hw, (boundary - 1), 0xFF); in rtl92c_init_llt_table()
195 if (true != rst) { in rtl92c_init_llt_table()
197 return rst; in rtl92c_init_llt_table()
205 rst = rtl92c_llt_write(hw, i, (i + 1)); in rtl92c_init_llt_table()
206 if (true != rst) { in rtl92c_init_llt_table()
208 return rst; in rtl92c_init_llt_table()
[all …]
/drivers/char/hw_random/
Dstm32-rng.c50 struct reset_control *rst; member
145 priv->rst = devm_reset_control_get(&ofdev->dev, NULL); in stm32_rng_probe()
146 if (!IS_ERR(priv->rst)) { in stm32_rng_probe()
147 reset_control_assert(priv->rst); in stm32_rng_probe()
149 reset_control_deassert(priv->rst); in stm32_rng_probe()
/drivers/tty/serial/8250/
D8250_dw.c64 struct reset_control *rst; member
455 data->rst = devm_reset_control_get_optional(&pdev->dev, NULL); in dw8250_probe()
456 if (IS_ERR(data->rst) && PTR_ERR(data->rst) == -EPROBE_DEFER) { in dw8250_probe()
460 if (!IS_ERR(data->rst)) in dw8250_probe()
461 reset_control_deassert(data->rst); in dw8250_probe()
495 if (!IS_ERR(data->rst)) in dw8250_probe()
496 reset_control_assert(data->rst); in dw8250_probe()
517 if (!IS_ERR(data->rst)) in dw8250_remove()
518 reset_control_assert(data->rst); in dw8250_remove()
/drivers/gpu/drm/nouveau/nvkm/engine/device/
Dtegra.c48 reset_control_assert(tdev->rst); in nvkm_device_tegra_power_up()
56 reset_control_deassert(tdev->rst); in nvkm_device_tegra_power_up()
74 reset_control_assert(tdev->rst); in nvkm_device_tegra_power_down()
279 tdev->rst = devm_reset_control_get(&pdev->dev, "gpu"); in nvkm_device_tegra_new()
280 if (IS_ERR(tdev->rst)) { in nvkm_device_tegra_new()
281 ret = PTR_ERR(tdev->rst); in nvkm_device_tegra_new()
/drivers/gpu/drm/tegra/
Dgr3d.c28 struct reset_control *rst; member
263 gr3d->rst = devm_reset_control_get(&pdev->dev, "3d"); in gr3d_probe()
264 if (IS_ERR(gr3d->rst)) { in gr3d_probe()
266 return PTR_ERR(gr3d->rst); in gr3d_probe()
285 gr3d->rst); in gr3d_probe()
Ddpaux.c38 struct reset_control *rst; member
297 dpaux->rst = devm_reset_control_get(&pdev->dev, "dpaux"); in tegra_dpaux_probe()
298 if (IS_ERR(dpaux->rst)) { in tegra_dpaux_probe()
300 PTR_ERR(dpaux->rst)); in tegra_dpaux_probe()
301 return PTR_ERR(dpaux->rst); in tegra_dpaux_probe()
318 reset_control_deassert(dpaux->rst); in tegra_dpaux_probe()
417 reset_control_assert(dpaux->rst); in tegra_dpaux_remove()
/drivers/usb/musb/
Dsunxi.c85 struct reset_control *rst; member
248 ret = reset_control_deassert(glue->rst); in sunxi_musb_init()
291 reset_control_assert(glue->rst); in sunxi_musb_init()
317 reset_control_assert(glue->rst); in sunxi_musb_exit()
682 glue->rst = devm_reset_control_get(&pdev->dev, NULL); in sunxi_musb_probe()
683 if (IS_ERR(glue->rst)) { in sunxi_musb_probe()
684 if (PTR_ERR(glue->rst) == -EPROBE_DEFER) in sunxi_musb_probe()
687 PTR_ERR(glue->rst)); in sunxi_musb_probe()
688 return PTR_ERR(glue->rst); in sunxi_musb_probe()
/drivers/spi/
Dspi-tegra20-sflash.c120 struct reset_control *rst; member
381 reset_control_assert(tsd->rst); in handle_cpu_based_xfer()
383 reset_control_deassert(tsd->rst); in handle_cpu_based_xfer()
488 tsd->rst = devm_reset_control_get(&pdev->dev, "spi"); in tegra_sflash_probe()
489 if (IS_ERR(tsd->rst)) { in tegra_sflash_probe()
491 ret = PTR_ERR(tsd->rst); in tegra_sflash_probe()
510 reset_control_assert(tsd->rst); in tegra_sflash_probe()
512 reset_control_deassert(tsd->rst); in tegra_sflash_probe()
Dspi-tegra114.c170 struct reset_control *rst; member
924 reset_control_assert(tspi->rst); in handle_cpu_based_xfer()
926 reset_control_deassert(tspi->rst); in handle_cpu_based_xfer()
996 reset_control_assert(tspi->rst); in handle_dma_based_xfer()
998 reset_control_deassert(tspi->rst); in handle_dma_based_xfer()
1110 tspi->rst = devm_reset_control_get(&pdev->dev, "spi"); in tegra_spi_probe()
1111 if (IS_ERR(tspi->rst)) { in tegra_spi_probe()
1113 ret = PTR_ERR(tspi->rst); in tegra_spi_probe()
1145 reset_control_assert(tspi->rst); in tegra_spi_probe()
1147 reset_control_deassert(tspi->rst); in tegra_spi_probe()
/drivers/watchdog/
Dcadence_wdt.c81 bool rst; member
211 if (wdt->rst) { in cdns_wdt_start()
340 wdt->rst = of_property_read_bool(pdev->dev.of_node, "reset-on-timeout"); in cdns_wdt_probe()
342 if (!wdt->rst && irq >= 0) { in cdns_wdt_probe()
/drivers/net/ethernet/dec/tulip/
Dmedia.c201 unsigned char *rst = rleaf->leafdata; in tulip_select_media() local
204 for (i = 0; i < rst[0]; i++) in tulip_select_media()
205 iowrite32(get_u16(rst + 1 + (i<<1)) << 16, ioaddr + CSR15); in tulip_select_media()
331 unsigned char *rst = rleaf->leafdata; in tulip_select_media() local
334 for (i = 0; i < rst[0]; i++) in tulip_select_media()
335 iowrite32(get_u16(rst + 1 + (i<<1)) << 16, ioaddr + CSR15); in tulip_select_media()
/drivers/block/
Dmg_disk.c129 unsigned int rst; member
410 gpio_set_value(host->rst, 0); in mg_disk_init()
416 gpio_set_value(host->rst, 1); in mg_disk_init()
886 host->rst = rsc->start; in mg_probe()
889 err = gpio_request(host->rst, MG_RST_PIN); in mg_probe()
892 gpio_direction_output(host->rst, 1); in mg_probe()
1028 gpio_free(host->rst); in mg_probe()
1067 if (host->rst) in mg_remove()
1068 gpio_free(host->rst); in mg_remove()
/drivers/pinctrl/
Dpinctrl-tegra-xusb.c89 struct reset_control *rst; member
898 padctl->rst = devm_reset_control_get(&pdev->dev, NULL); in tegra_xusb_padctl_probe()
899 if (IS_ERR(padctl->rst)) in tegra_xusb_padctl_probe()
900 return PTR_ERR(padctl->rst); in tegra_xusb_padctl_probe()
902 err = reset_control_deassert(padctl->rst); in tegra_xusb_padctl_probe()
953 reset_control_assert(padctl->rst); in tegra_xusb_padctl_probe()
964 err = reset_control_assert(padctl->rst); in tegra_xusb_padctl_remove()

123