Lines Matching refs:field
120 struct field {
132 struct field enable, voltage, ilimsel;
281 static int read_field(struct tps6524x *hw, const struct field *field)
285 tmp = read_reg(hw, field->reg);
289 return (tmp >> field->shift) & field->mask;
292 static int write_field(struct tps6524x *hw, const struct field *field,
295 if (val & ~field->mask)
298 return rmw_protect(hw, field->reg,
299 field->mask << field->shift,
300 val << field->shift);