Lines Matching refs:raminit

79 	const struct c_can_raminit *raminit = &priv->raminit_sys;  in c_can_hw_raminit_wait_syscon()  local
89 regmap_read(raminit->syscon, raminit->reg, &ctrl); in c_can_hw_raminit_wait_syscon()
99 const struct c_can_raminit *raminit = &priv->raminit_sys; in c_can_hw_raminit_syscon() local
105 mask = 1 << raminit->bits.start | 1 << raminit->bits.done; in c_can_hw_raminit_syscon()
106 regmap_read(raminit->syscon, raminit->reg, &ctrl); in c_can_hw_raminit_syscon()
116 regmap_update_bits(raminit->syscon, raminit->reg, mask, ctrl); in c_can_hw_raminit_syscon()
121 c_can_hw_raminit_wait_syscon(priv, 1 << raminit->bits.start, ctrl); in c_can_hw_raminit_syscon()
125 ctrl |= 1 << raminit->bits.start; in c_can_hw_raminit_syscon()
127 ctrl |= 1 << raminit->bits.done; in c_can_hw_raminit_syscon()
128 regmap_update_bits(raminit->syscon, raminit->reg, mask, ctrl); in c_can_hw_raminit_syscon()
130 ctrl &= ~(1 << raminit->bits.done); in c_can_hw_raminit_syscon()
132 if (raminit->needs_pulse) { in c_can_hw_raminit_syscon()
133 ctrl &= ~(1 << raminit->bits.start); in c_can_hw_raminit_syscon()
134 regmap_update_bits(raminit->syscon, raminit->reg, in c_can_hw_raminit_syscon()
138 ctrl |= 1 << raminit->bits.done; in c_can_hw_raminit_syscon()
329 struct c_can_raminit *raminit = &priv->raminit_sys; in c_can_plat_probe() local
332 raminit->syscon = syscon_regmap_lookup_by_phandle(np, in c_can_plat_probe()
334 if (IS_ERR(raminit->syscon)) { in c_can_plat_probe()
336 ret = PTR_ERR(raminit->syscon); in c_can_plat_probe()
342 &raminit->reg)) { in c_can_plat_probe()
361 raminit->bits = drvdata->raminit_bits[id]; in c_can_plat_probe()
362 raminit->needs_pulse = drvdata->raminit_pulse; in c_can_plat_probe()
364 priv->raminit = c_can_hw_raminit_syscon; in c_can_plat_probe()
366 priv->raminit = c_can_hw_raminit; in c_can_plat_probe()