Lines Matching defs:rst
84 struct fdtbus_reset *rst = NULL;
114 rst = kmem_alloc(sizeof(*rst), KM_SLEEP);
115 rst->rst_rc = rc;
116 rst->rst_priv = rst_priv;
128 return rst;
145 fdtbus_reset_put(struct fdtbus_reset *rst)
147 struct fdtbus_reset_controller *rc = rst->rst_rc;
149 rc->rc_funcs->release(rc->rc_dev, rst->rst_priv);
150 kmem_free(rst, sizeof(*rst));
154 fdtbus_reset_assert(struct fdtbus_reset *rst)
156 struct fdtbus_reset_controller *rc = rst->rst_rc;
158 return rc->rc_funcs->reset_assert(rc->rc_dev, rst->rst_priv);
162 fdtbus_reset_deassert(struct fdtbus_reset *rst)
164 struct fdtbus_reset_controller *rc = rst->rst_rc;
166 return rc->rc_funcs->reset_deassert(rc->rc_dev, rst->rst_priv);