Home
last modified time | relevance | path

Searched refs:reset (Results 1 – 25 of 707) sorted by relevance

12345678910>>...29

/drivers/clk/qcom/
Dcommon.c28 struct qcom_reset_controller reset; member
102 struct qcom_reset_controller *reset; in qcom_cc_really_probe() local
134 reset = &cc->reset; in qcom_cc_really_probe()
135 reset->rcdev.of_node = dev->of_node; in qcom_cc_really_probe()
136 reset->rcdev.ops = &qcom_reset_ops; in qcom_cc_really_probe()
137 reset->rcdev.owner = dev->driver->owner; in qcom_cc_really_probe()
138 reset->rcdev.nr_resets = desc->num_resets; in qcom_cc_really_probe()
139 reset->regmap = regmap; in qcom_cc_really_probe()
140 reset->reset_map = desc->resets; in qcom_cc_really_probe()
142 ret = reset_controller_register(&reset->rcdev); in qcom_cc_really_probe()
[all …]
/drivers/vfio/platform/
Dvfio_platform_private.h74 int (*reset)(struct vfio_platform_device *vdev); member
83 vfio_platform_reset_fn_t reset; member
106 .reset = __reset, \
110 #define module_vfio_reset_handler(compat, reset) \ argument
112 static int __init reset ## _module_init(void) \
114 vfio_platform_register_reset(compat, reset); \
117 static void __exit reset ## _module_exit(void) \
119 vfio_platform_unregister_reset(compat, reset); \
121 module_init(reset ## _module_init); \
122 module_exit(reset ## _module_exit)
Dvfio_platform_common.c44 reset_fn = iter->reset; in vfio_platform_lookup_reset()
54 vdev->reset = vfio_platform_lookup_reset(vdev->compat, in vfio_platform_get_reset()
56 if (!vdev->reset) { in vfio_platform_get_reset()
58 vdev->reset = vfio_platform_lookup_reset(vdev->compat, in vfio_platform_get_reset()
65 if (vdev->reset) in vfio_platform_put_reset()
144 if (vdev->reset) { in vfio_platform_release()
146 vdev->reset(vdev); in vfio_platform_release()
178 if (vdev->reset) { in vfio_platform_open()
180 vdev->reset(vdev); in vfio_platform_open()
216 if (vdev->reset) in vfio_platform_ioctl()
[all …]
/drivers/reset/
DMakefile2 obj-$(CONFIG_ARCH_LPC18XX) += reset-lpc18xx.o
3 obj-$(CONFIG_ARCH_SOCFPGA) += reset-socfpga.o
4 obj-$(CONFIG_ARCH_BERLIN) += reset-berlin.o
5 obj-$(CONFIG_ARCH_SUNXI) += reset-sunxi.o
7 obj-$(CONFIG_ARCH_ZYNQ) += reset-zynq.o
8 obj-$(CONFIG_ATH79) += reset-ath79.o
/drivers/watchdog/
Dmena21_wdt.c47 int reset = 0; in a21_wdt_get_bootstatus() local
49 reset |= gpio_get_value(drv->gpios[GPIO_WD_RST0]) ? (1 << 0) : 0; in a21_wdt_get_bootstatus()
50 reset |= gpio_get_value(drv->gpios[GPIO_WD_RST1]) ? (1 << 1) : 0; in a21_wdt_get_bootstatus()
51 reset |= gpio_get_value(drv->gpios[GPIO_WD_RST2]) ? (1 << 2) : 0; in a21_wdt_get_bootstatus()
53 return reset; in a21_wdt_get_bootstatus()
151 unsigned int reset = 0; in a21_wdt_probe() local
202 reset = a21_wdt_get_bootstatus(drv); in a21_wdt_probe()
203 if (reset == 2) in a21_wdt_probe()
205 else if (reset == 4) in a21_wdt_probe()
207 else if (reset == 5) in a21_wdt_probe()
[all …]
Dmpc8xxx_wdt.c65 static bool reset = 1; variable
66 module_param(reset, bool, 0);
67 MODULE_PARM_DESC(reset,
101 if (reset) in mpc8xxx_wdt_start()
197 reset ? "reset" : "interrupt", timeout, timeout_sec); in mpc8xxx_wdt_probe()
216 reset ? "reset" : "machine check exception"); in mpc8xxx_wdt_remove()
/drivers/phy/
Dphy-sun9i-usb.c47 struct reset_control *reset; member
88 ret = reset_control_deassert(phy->reset); in sun9i_usb_phy_init()
110 reset_control_assert(phy->reset); in sun9i_usb_phy_exit()
149 phy->reset = devm_reset_control_get(dev, "hsic"); in sun9i_usb_phy_probe()
150 if (IS_ERR(phy->reset)) { in sun9i_usb_phy_probe()
152 return PTR_ERR(phy->reset); in sun9i_usb_phy_probe()
161 phy->reset = devm_reset_control_get(dev, "phy"); in sun9i_usb_phy_probe()
162 if (IS_ERR(phy->reset)) { in sun9i_usb_phy_probe()
164 return PTR_ERR(phy->reset); in sun9i_usb_phy_probe()
Dphy-exynos-mipi-video.c54 u32 val, reset; in __set_phy_state() local
57 reset = EXYNOS4_MIPI_PHY_MRESETN; in __set_phy_state()
59 reset = EXYNOS4_MIPI_PHY_SRESETN; in __set_phy_state()
66 val |= reset; in __set_phy_state()
68 val &= ~reset; in __set_phy_state()
80 val |= reset; in __set_phy_state()
82 val &= ~reset; in __set_phy_state()
/drivers/net/ethernet/mellanox/mlx4/
Dreset.c44 void __iomem *reset; in mlx4_reset() local
92 reset = ioremap(pci_resource_start(dev->persist->pdev, 0) + in mlx4_reset()
95 if (!reset) { in mlx4_reset()
104 sem = readl(reset + MLX4_SEM_OFFSET); in mlx4_reset()
114 iounmap(reset); in mlx4_reset()
119 writel(MLX4_RESET_VALUE, reset + MLX4_RESET_OFFSET); in mlx4_reset()
120 iounmap(reset); in mlx4_reset()
/drivers/power/reset/
DKconfig2 bool "Board level reset or power off"
4 Provides a number of drivers which either reset a complete board
7 Say Y here to enable board reset and power off
26 tristate "Atmel AT91 reset driver"
34 bool "LSI Axxia reset driver"
42 bool "Broadcom STB reset driver"
128 bool "ARM Versatile Express power-off and reset driver"
132 Power off and reset support for the ARM Ltd. Versatile
136 bool "APM SoC X-Gene reset driver"
142 bool "Keystone reset driver"
[all …]
DMakefile3 obj-$(CONFIG_POWER_RESET_AT91_RESET) += at91-reset.o
4 obj-$(CONFIG_POWER_RESET_AXXIA) += axxia-reset.o
18 obj-$(CONFIG_POWER_RESET_KEYSTONE) += keystone-reset.o
21 obj-$(CONFIG_POWER_RESET_RMOBILE) += rmobile-reset.o
/drivers/reset/sti/
DMakefile1 obj-$(CONFIG_STI_RESET_SYSCFG) += reset-syscfg.o
3 obj-$(CONFIG_STIH415_RESET) += reset-stih415.o
4 obj-$(CONFIG_STIH416_RESET) += reset-stih416.o
5 obj-$(CONFIG_STIH407_RESET) += reset-stih407.o
/drivers/input/keyboard/
Dsunkbd.c85 volatile s8 reset; member
99 if (sunkbd->reset <= -1) { in sunkbd_interrupt()
104 sunkbd->reset = data; in sunkbd_interrupt()
120 sunkbd->reset = -1; in sunkbd_interrupt()
197 sunkbd->reset = -2; in sunkbd_initialize()
199 wait_event_interruptible_timeout(sunkbd->wait, sunkbd->reset >= 0, HZ); in sunkbd_initialize()
200 if (sunkbd->reset < 0) in sunkbd_initialize()
203 sunkbd->type = sunkbd->reset; in sunkbd_initialize()
254 sunkbd->reset >= 0 || !sunkbd->enabled, in sunkbd_reinit()
257 if (sunkbd->reset >= 0 && sunkbd->enabled) in sunkbd_reinit()
/drivers/isdn/hisax/
Disurf.c126 release_region(cs->hw.isurf.reset, 1); in release_io_isurf()
136 byteout(cs->hw.isurf.reset, chips); /* Reset On */ in reset_isurf()
138 byteout(cs->hw.isurf.reset, ISURF_ISAR_EA); /* Reset Off */ in reset_isurf()
212 cs->hw.isurf.reset = card->para[1]; in setup_isurf()
238 cs->hw.isurf.reset = pnp_port_start(pnp_d, 0); in setup_isurf()
241 if (!cs->irq || !cs->hw.isurf.reset || !cs->hw.isurf.phymem) { in setup_isurf()
243 cs->irq, cs->hw.isurf.reset, cs->hw.isurf.phymem); in setup_isurf()
260 if (!request_region(cs->hw.isurf.reset, 1, "isurf isdn")) { in setup_isurf()
263 cs->hw.isurf.reset); in setup_isurf()
271 release_region(cs->hw.isurf.reset, 1); in setup_isurf()
[all …]
/drivers/crypto/sunxi-ss/
Dsun4i-ss-core.c259 ss->reset = devm_reset_control_get_optional(&pdev->dev, "ahb"); in sun4i_ss_probe()
260 if (IS_ERR(ss->reset)) { in sun4i_ss_probe()
261 if (PTR_ERR(ss->reset) == -EPROBE_DEFER) in sun4i_ss_probe()
262 return PTR_ERR(ss->reset); in sun4i_ss_probe()
264 ss->reset = NULL; in sun4i_ss_probe()
290 if (ss->reset) { in sun4i_ss_probe()
291 err = reset_control_deassert(ss->reset); in sun4i_ss_probe()
375 if (ss->reset) in sun4i_ss_probe()
376 reset_control_assert(ss->reset); in sun4i_ss_probe()
401 if (ss->reset) in sun4i_ss_remove()
[all …]
/drivers/iio/adc/
Drockchip_saradc.c58 struct reset_control *reset; member
180 static void rockchip_saradc_reset_controller(struct reset_control *reset) in rockchip_saradc_reset_controller() argument
182 reset_control_assert(reset); in rockchip_saradc_reset_controller()
184 reset_control_deassert(reset); in rockchip_saradc_reset_controller()
219 info->reset = devm_reset_control_get(&pdev->dev, "saradc-apb"); in rockchip_saradc_probe()
220 if (IS_ERR(info->reset)) { in rockchip_saradc_probe()
221 ret = PTR_ERR(info->reset); in rockchip_saradc_probe()
226 info->reset = NULL; in rockchip_saradc_probe()
263 if (info->reset) in rockchip_saradc_probe()
264 rockchip_saradc_reset_controller(info->reset); in rockchip_saradc_probe()
/drivers/net/wireless/cw1200/
Dcw1200_sdio.c192 if (pdata->reset) { in cw1200_sdio_off()
193 gpio_set_value(pdata->reset, 0); in cw1200_sdio_off()
195 gpio_free(pdata->reset); in cw1200_sdio_off()
209 if (pdata->reset) { in cw1200_sdio_on()
210 gpio_request(pdata->reset, "cw1200_wlan_reset"); in cw1200_sdio_on()
211 gpio_direction_output(pdata->reset, 0); in cw1200_sdio_on()
217 if (pdata->reset || pdata->powerup) in cw1200_sdio_on()
243 if (pdata->reset) { in cw1200_sdio_on()
244 gpio_set_value(pdata->reset, 1); in cw1200_sdio_on()
Dcw1200_spi.c287 if (pdata->reset) { in cw1200_spi_off()
288 gpio_set_value(pdata->reset, 0); in cw1200_spi_off()
290 gpio_free(pdata->reset); in cw1200_spi_off()
304 if (pdata->reset) { in cw1200_spi_on()
305 gpio_request(pdata->reset, "cw1200_wlan_reset"); in cw1200_spi_on()
306 gpio_direction_output(pdata->reset, 0); in cw1200_spi_on()
312 if (pdata->reset || pdata->powerup) in cw1200_spi_on()
338 if (pdata->reset) { in cw1200_spi_on()
339 gpio_set_value(pdata->reset, 1); in cw1200_spi_on()
/drivers/net/can/softing/
Dsofting_cs.c49 .reset = softingcs_reset,
61 .reset = softingcs_reset,
73 .reset = softingcs_reset,
85 .reset = softingcs_reset,
97 .reset = softingcs_reset,
109 .reset = softingcs_reset,
121 .reset = softingcs_reset,
133 .reset = softingcs_reset,
145 .reset = softingcs_reset,
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_83xx_init.c1678 p_dev->ahw->reset.seq_error++; in qlcnic_83xx_poll_reg()
1681 __func__, p_dev->ahw->reset.seq_index); in qlcnic_83xx_poll_reg()
1693 u16 *buff = (u16 *)p_dev->ahw->reset.buff; in qlcnic_83xx_reset_template_checksum()
1694 int count = p_dev->ahw->reset.hdr->size / sizeof(u16); in qlcnic_83xx_reset_template_checksum()
1716 if (ahw->reset.buff != NULL) { in qlcnic_83xx_get_reset_instruction_template()
1720 kfree(ahw->reset.buff); in qlcnic_83xx_get_reset_instruction_template()
1725 ahw->reset.seq_error = 0; in qlcnic_83xx_get_reset_instruction_template()
1726 ahw->reset.buff = kzalloc(QLC_83XX_RESTART_TEMPLATE_SIZE, GFP_KERNEL); in qlcnic_83xx_get_reset_instruction_template()
1727 if (ahw->reset.buff == NULL) in qlcnic_83xx_get_reset_instruction_template()
1730 p_buff = p_dev->ahw->reset.buff; in qlcnic_83xx_get_reset_instruction_template()
[all …]
/drivers/vfio/platform/reset/
DKconfig2 tristate "VFIO support for calxeda xgmac reset"
5 Enables the VFIO platform driver to handle reset for Calxeda xgmac
10 tristate "VFIO support for AMD XGBE reset"
13 Enables the VFIO platform driver to handle reset for AMD XGBE
/drivers/clk/sunxi/
Dclk-sun9i-mmc.c37 struct reset_control *reset; member
127 data->reset = devm_reset_control_get(&pdev->dev, NULL); in sun9i_a80_mmc_config_clk_probe()
128 if (IS_ERR(data->reset)) { in sun9i_a80_mmc_config_clk_probe()
130 return PTR_ERR(data->reset); in sun9i_a80_mmc_config_clk_probe()
133 ret = reset_control_deassert(data->reset); in sun9i_a80_mmc_config_clk_probe()
181 reset_control_assert(data->reset); in sun9i_a80_mmc_config_clk_probe()
198 reset_control_assert(data->reset); in sun9i_a80_mmc_config_clk_remove()
/drivers/media/dvb-frontends/
Dlgdt330x.c133 u8 reset[] = { in lgdt3302_SwReset() local
140 reset, sizeof(reset)); in lgdt3302_SwReset()
144 reset[1] = 0x7f; in lgdt3302_SwReset()
146 reset, sizeof(reset)); in lgdt3302_SwReset()
154 u8 reset[] = { in lgdt3303_SwReset() local
160 reset, sizeof(reset)); in lgdt3303_SwReset()
164 reset[1] = 0x01; in lgdt3303_SwReset()
166 reset, sizeof(reset)); in lgdt3303_SwReset()
/drivers/block/
Dhd.c115 static int reset; variable
318 if (reset) in hd_out()
321 reset = 1; in hd_out()
371 if (reset) { in reset_hd()
372 reset = 0; in reset_hd()
377 if (reset) in reset_hd()
385 if (reset) in reset_hd()
425 reset = 1; in bad_rw_intr()
541 reset = 1; in hd_times_out()
559 return reset; in do_special_op()
[all …]
/drivers/input/misc/
Dpmic8xxx-pwrkey.c139 bool reset = system_state == SYSTEM_RESTART; in pmic8xxx_pwrkey_shutdown() local
142 error = pwrkey->shutdown_fn(pwrkey, reset); in pmic8xxx_pwrkey_shutdown()
155 if (!reset) in pmic8xxx_pwrkey_shutdown()
288 static int pm8058_pwrkey_shutdown(struct pmic8xxx_pwrkey *pwrkey, bool reset) in pm8058_pwrkey_shutdown() argument
295 if (!reset) { in pm8058_pwrkey_shutdown()
323 if (reset) in pm8058_pwrkey_shutdown()
328 static int pm8921_pwrkey_shutdown(struct pmic8xxx_pwrkey *pwrkey, bool reset) in pm8921_pwrkey_shutdown() argument
335 if (reset) in pm8921_pwrkey_shutdown()

12345678910>>...29