Lines Matching refs:reset_ctl
26 static int rockchip_reset_request(struct reset_ctl *reset_ctl) in rockchip_reset_request() argument
28 struct rockchip_reset_priv *priv = dev_get_priv(reset_ctl->dev); in rockchip_reset_request()
31 reset_ctl, reset_ctl->dev, reset_ctl->id, priv->reset_reg_num); in rockchip_reset_request()
33 if (reset_ctl->id / ROCKCHIP_RESET_NUM_IN_REG >= priv->reset_reg_num) in rockchip_reset_request()
39 static int rockchip_reset_free(struct reset_ctl *reset_ctl) in rockchip_reset_free() argument
41 debug("%s(reset_ctl=%p) (dev=%p, id=%lu)\n", __func__, reset_ctl, in rockchip_reset_free()
42 reset_ctl->dev, reset_ctl->id); in rockchip_reset_free()
47 static int rockchip_reset_assert(struct reset_ctl *reset_ctl) in rockchip_reset_assert() argument
49 struct rockchip_reset_priv *priv = dev_get_priv(reset_ctl->dev); in rockchip_reset_assert()
50 int bank = reset_ctl->id / ROCKCHIP_RESET_NUM_IN_REG; in rockchip_reset_assert()
51 int offset = reset_ctl->id % ROCKCHIP_RESET_NUM_IN_REG; in rockchip_reset_assert()
54 reset_ctl, reset_ctl->dev, reset_ctl->id, in rockchip_reset_assert()
62 static int rockchip_reset_deassert(struct reset_ctl *reset_ctl) in rockchip_reset_deassert() argument
64 struct rockchip_reset_priv *priv = dev_get_priv(reset_ctl->dev); in rockchip_reset_deassert()
65 int bank = reset_ctl->id / ROCKCHIP_RESET_NUM_IN_REG; in rockchip_reset_deassert()
66 int offset = reset_ctl->id % ROCKCHIP_RESET_NUM_IN_REG; in rockchip_reset_deassert()
69 reset_ctl, reset_ctl->dev, reset_ctl->id, in rockchip_reset_deassert()