Lines Matching refs:reset_ctl
25 static int stm32_reset_request(struct reset_ctl *reset_ctl) in stm32_reset_request() argument
30 static int stm32_reset_free(struct reset_ctl *reset_ctl) in stm32_reset_free() argument
35 static int stm32_reset_assert(struct reset_ctl *reset_ctl) in stm32_reset_assert() argument
37 struct stm32_reset_priv *priv = dev_get_priv(reset_ctl->dev); in stm32_reset_assert()
38 int bank = (reset_ctl->id / BITS_PER_LONG) * 4; in stm32_reset_assert()
39 int offset = reset_ctl->id % BITS_PER_LONG; in stm32_reset_assert()
41 reset_ctl->id, bank, offset); in stm32_reset_assert()
43 if (dev_get_driver_data(reset_ctl->dev) == RCC_STM32MP) in stm32_reset_assert()
52 static int stm32_reset_deassert(struct reset_ctl *reset_ctl) in stm32_reset_deassert() argument
54 struct stm32_reset_priv *priv = dev_get_priv(reset_ctl->dev); in stm32_reset_deassert()
55 int bank = (reset_ctl->id / BITS_PER_LONG) * 4; in stm32_reset_deassert()
56 int offset = reset_ctl->id % BITS_PER_LONG; in stm32_reset_deassert()
58 reset_ctl->id, bank, offset); in stm32_reset_deassert()
60 if (dev_get_driver_data(reset_ctl->dev) == RCC_STM32MP) in stm32_reset_deassert()