Lines Matching defs:field
120 struct field {
132 struct field enable, voltage, ilimsel;
282 static int read_field(struct tps6524x *hw, const struct field *field)
286 tmp = read_reg(hw, field->reg);
290 return (tmp >> field->shift) & field->mask;
293 static int write_field(struct tps6524x *hw, const struct field *field,
296 if (val & ~field->mask)
299 return rmw_protect(hw, field->reg,
300 field->mask << field->shift,
301 val << field->shift);