Lines Matching refs:control
70 struct ti_syscon_reset_control *control; in ti_syscon_reset_assert() local
76 control = &data->controls[id]; in ti_syscon_reset_assert()
78 if (control->flags & ASSERT_NONE) in ti_syscon_reset_assert()
81 mask = BIT(control->assert_bit); in ti_syscon_reset_assert()
82 value = (control->flags & ASSERT_SET) ? mask : 0x0; in ti_syscon_reset_assert()
84 return regmap_write_bits(data->regmap, control->assert_offset, mask, value); in ti_syscon_reset_assert()
101 struct ti_syscon_reset_control *control; in ti_syscon_reset_deassert() local
107 control = &data->controls[id]; in ti_syscon_reset_deassert()
109 if (control->flags & DEASSERT_NONE) in ti_syscon_reset_deassert()
112 mask = BIT(control->deassert_bit); in ti_syscon_reset_deassert()
113 value = (control->flags & DEASSERT_SET) ? mask : 0x0; in ti_syscon_reset_deassert()
115 return regmap_write_bits(data->regmap, control->deassert_offset, mask, value); in ti_syscon_reset_deassert()
133 struct ti_syscon_reset_control *control; in ti_syscon_reset_status() local
140 control = &data->controls[id]; in ti_syscon_reset_status()
142 if (control->flags & STATUS_NONE) in ti_syscon_reset_status()
145 ret = regmap_read(data->regmap, control->status_offset, &reset_state); in ti_syscon_reset_status()
149 return !(reset_state & BIT(control->status_bit)) == in ti_syscon_reset_status()
150 !(control->flags & STATUS_SET); in ti_syscon_reset_status()