Home
last modified time | relevance | path

Searched refs:rst (Results 1 – 25 of 51) 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/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
199 priv->rst = devm_reset_control_get_optional(&dev->dev, NULL); in ohci_platform_probe()
200 if (IS_ERR(priv->rst)) { in ohci_platform_probe()
201 err = PTR_ERR(priv->rst); in ohci_platform_probe()
204 priv->rst = NULL; in ohci_platform_probe()
206 err = reset_control_deassert(priv->rst); in ohci_platform_probe()
261 if (priv->rst) in ohci_platform_probe()
262 reset_control_assert(priv->rst); in ohci_platform_probe()
287 if (priv->rst) in ohci_platform_remove()
288 reset_control_assert(priv->rst); in ohci_platform_remove()
Dehci-platform.c45 struct reset_control *rst; member
213 priv->rst = devm_reset_control_get_optional(&dev->dev, NULL); in ehci_platform_probe()
214 if (IS_ERR(priv->rst)) { in ehci_platform_probe()
215 err = PTR_ERR(priv->rst); in ehci_platform_probe()
218 priv->rst = NULL; in ehci_platform_probe()
220 err = reset_control_deassert(priv->rst); in ehci_platform_probe()
274 if (priv->rst) in ehci_platform_probe()
275 reset_control_assert(priv->rst); in ehci_platform_probe()
300 if (priv->rst) in ehci_platform_remove()
301 reset_control_assert(priv->rst); in ehci_platform_remove()
Dehci-st.c37 struct reset_control *rst; member
82 ret = reset_control_deassert(priv->rst); in st_ehci_platform_power_on()
116 reset_control_assert(priv->rst); in st_ehci_platform_power_on()
131 reset_control_assert(priv->rst); in st_ehci_platform_power_off()
222 priv->rst = devm_reset_control_get_optional(&dev->dev, "softreset"); in st_ehci_platform_probe()
223 if (IS_ERR(priv->rst)) { in st_ehci_platform_probe()
224 err = PTR_ERR(priv->rst); in st_ehci_platform_probe()
227 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()
437 tegra->rst = devm_reset_control_get(&pdev->dev, "usb"); in tegra_ehci_probe()
438 if (IS_ERR(tegra->rst)) { in tegra_ehci_probe()
440 err = PTR_ERR(tegra->rst); in tegra_ehci_probe()
/drivers/gpu/drm/nouveau/
Dnouveau_platform.c52 reset_control_assert(gpu->rst); in nouveau_platform_power_up()
60 reset_control_deassert(gpu->rst); in nouveau_platform_power_up()
79 reset_control_assert(gpu->rst); in nouveau_platform_power_down()
108 gpu->rst = devm_reset_control_get(&pdev->dev, "gpu"); in nouveau_platform_probe()
109 if (IS_ERR(gpu->rst)) in nouveau_platform_probe()
110 return PTR_ERR(gpu->rst); in nouveau_platform_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/tty/serial/8250/
D8250_dw.c64 struct reset_control *rst; member
407 data->rst = devm_reset_control_get_optional(&pdev->dev, NULL); in dw8250_probe()
408 if (IS_ERR(data->rst) && PTR_ERR(data->rst) == -EPROBE_DEFER) { in dw8250_probe()
412 if (!IS_ERR(data->rst)) in dw8250_probe()
413 reset_control_deassert(data->rst); in dw8250_probe()
451 if (!IS_ERR(data->rst)) in dw8250_probe()
452 reset_control_assert(data->rst); in dw8250_probe()
473 if (!IS_ERR(data->rst)) in dw8250_remove()
474 reset_control_assert(data->rst); in dw8250_remove()
/drivers/net/wireless/rtlwifi/rtl8192cu/
Dmac.c195 bool rst = true; in rtl92c_init_llt_table() local
199 rst = rtl92c_llt_write(hw, i , i + 1); in rtl92c_init_llt_table()
200 if (true != rst) { in rtl92c_init_llt_table()
202 return rst; in rtl92c_init_llt_table()
206 rst = rtl92c_llt_write(hw, (boundary - 1), 0xFF); in rtl92c_init_llt_table()
207 if (true != rst) { in rtl92c_init_llt_table()
209 return rst; in rtl92c_init_llt_table()
217 rst = rtl92c_llt_write(hw, i, (i + 1)); in rtl92c_init_llt_table()
218 if (true != rst) { in rtl92c_init_llt_table()
220 return rst; in rtl92c_init_llt_table()
[all …]
/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
299 dpaux->rst = devm_reset_control_get(&pdev->dev, "dpaux"); in tegra_dpaux_probe()
300 if (IS_ERR(dpaux->rst)) in tegra_dpaux_probe()
301 return PTR_ERR(dpaux->rst); in tegra_dpaux_probe()
311 reset_control_deassert(dpaux->rst); in tegra_dpaux_probe()
375 reset_control_assert(dpaux->rst); in tegra_dpaux_remove()
/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-tegra20-slink.c169 struct reset_control *rst; member
863 reset_control_assert(tspi->rst); in handle_cpu_based_xfer()
865 reset_control_deassert(tspi->rst); in handle_cpu_based_xfer()
936 reset_control_assert(tspi->rst); in handle_dma_based_xfer()
938 reset_control_assert(tspi->rst); in handle_dma_based_xfer()
1084 tspi->rst = devm_reset_control_get(&pdev->dev, "spi"); in tegra_slink_probe()
1085 if (IS_ERR(tspi->rst)) { in tegra_slink_probe()
1087 ret = PTR_ERR(tspi->rst); in tegra_slink_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.c93 struct reset_control *rst; member
891 padctl->rst = devm_reset_control_get(&pdev->dev, NULL); in tegra_xusb_padctl_probe()
892 if (IS_ERR(padctl->rst)) in tegra_xusb_padctl_probe()
893 return PTR_ERR(padctl->rst); in tegra_xusb_padctl_probe()
895 err = reset_control_deassert(padctl->rst); in tegra_xusb_padctl_probe()
944 reset_control_assert(padctl->rst); in tegra_xusb_padctl_probe()
955 err = reset_control_assert(padctl->rst); in tegra_xusb_padctl_remove()
/drivers/input/keyboard/
Dtegra-kbc.c119 struct reset_control *rst; member
377 reset_control_assert(kbc->rst); in tegra_kbc_start()
379 reset_control_deassert(kbc->rst); in tegra_kbc_start()
667 kbc->rst = devm_reset_control_get(&pdev->dev, "kbc"); in tegra_kbc_probe()
668 if (IS_ERR(kbc->rst)) { in tegra_kbc_probe()
670 return PTR_ERR(kbc->rst); in tegra_kbc_probe()
/drivers/i2c/busses/
Di2c-tegra.c163 struct reset_control *rst; member
418 reset_control_assert(i2c_dev->rst); in tegra_i2c_init()
420 reset_control_deassert(i2c_dev->rst); in tegra_i2c_init()
742 i2c_dev->rst = devm_reset_control_get(&pdev->dev, "i2c"); in tegra_i2c_probe()
743 if (IS_ERR(i2c_dev->rst)) { in tegra_i2c_probe()
745 return PTR_ERR(i2c_dev->rst); in tegra_i2c_probe()
/drivers/staging/rtl8188eu/hal/
Dhal_intf.c177 u32 rst = _FAIL; in rtw_hal_inirp_init() local
180 rst = adapt->HalFunc.inirp_init(adapt); in rtw_hal_inirp_init()
183 return rst; in rtw_hal_inirp_init()

123