Lines Matching defs:bits
2238 * regmap_field_test_bits() - Check if all specified bits are set in a
2242 * @bits: Bits to test
2245 * tested bits is not set and 1 if all tested bits are set.
2247 int regmap_field_test_bits(struct regmap_field *field, unsigned int bits)
2255 return (val & bits) == bits;
3213 * regmap_test_bits() - Check if all specified bits are set in a register.
3217 * @bits: Bits to test
3219 * Returns 0 if at least one of the tested bits is not set, 1 if all tested
3220 * bits are set and a negative error number if the underlying regmap_read()
3223 int regmap_test_bits(struct regmap *map, unsigned int reg, unsigned int bits)
3231 return (val & bits) == bits;