Lines Matching refs:reset_ctl
30 static int stm32_reset_request(struct reset_ctl *reset_ctl) in stm32_reset_request() argument
35 static int stm32_reset_free(struct reset_ctl *reset_ctl) in stm32_reset_free() argument
40 static int stm32_reset_assert(struct reset_ctl *reset_ctl) in stm32_reset_assert() argument
42 struct stm32_reset_priv *priv = dev_get_priv(reset_ctl->dev); in stm32_reset_assert()
43 int bank = (reset_ctl->id / BITS_PER_LONG) * 4; in stm32_reset_assert()
44 int offset = reset_ctl->id % BITS_PER_LONG; in stm32_reset_assert()
46 dev_dbg(reset_ctl->dev, "reset id = %ld bank = %d offset = %d)\n", in stm32_reset_assert()
47 reset_ctl->id, bank, offset); in stm32_reset_assert()
49 if (dev_get_driver_data(reset_ctl->dev) == STM32MP1) in stm32_reset_assert()
61 static int stm32_reset_deassert(struct reset_ctl *reset_ctl) in stm32_reset_deassert() argument
63 struct stm32_reset_priv *priv = dev_get_priv(reset_ctl->dev); in stm32_reset_deassert()
64 int bank = (reset_ctl->id / BITS_PER_LONG) * 4; in stm32_reset_deassert()
65 int offset = reset_ctl->id % BITS_PER_LONG; in stm32_reset_deassert()
67 dev_dbg(reset_ctl->dev, "reset id = %ld bank = %d offset = %d)\n", in stm32_reset_deassert()
68 reset_ctl->id, bank, offset); in stm32_reset_deassert()
70 if (dev_get_driver_data(reset_ctl->dev) == STM32MP1) in stm32_reset_deassert()