Lines Matching defs:regmap

36 static inline bool regmap_should_log(struct regmap *map)
41 static inline bool regmap_should_log(struct regmap *map) { return false; }
45 static int _regmap_update_bits(struct regmap *map, unsigned int reg,
74 bool regmap_check_range_table(struct regmap *map, unsigned int reg,
90 bool regmap_writeable(struct regmap *map, unsigned int reg)
104 bool regmap_cached(struct regmap *map, unsigned int reg)
127 bool regmap_readable(struct regmap *map, unsigned int reg)
147 bool regmap_volatile(struct regmap *map, unsigned int reg)
164 bool regmap_precious(struct regmap *map, unsigned int reg)
178 bool regmap_writeable_noinc(struct regmap *map, unsigned int reg)
189 bool regmap_readable_noinc(struct regmap *map, unsigned int reg)
200 static bool regmap_volatile_range(struct regmap *map, unsigned int reg,
212 static void regmap_format_12_20_write(struct regmap *map,
224 static void regmap_format_2_6_write(struct regmap *map,
232 static void regmap_format_4_12_write(struct regmap *map,
239 static void regmap_format_7_9_write(struct regmap *map,
246 static void regmap_format_7_17_write(struct regmap *map,
256 static void regmap_format_10_14_write(struct regmap *map,
396 struct regmap *map = __map;
403 struct regmap *map = __map;
410 struct regmap *map = __map;
418 struct regmap *map = __map;
425 struct regmap *map = __map;
432 struct regmap *map = __map;
444 struct regmap *map = __map;
450 struct regmap *map = __map;
457 struct regmap *map = __map;
467 struct regmap *map = __map;
474 struct regmap *map = __map;
484 struct regmap *map = __map;
492 * is not to manage the regmap but to provide a simple way to
493 * get the regmap back given a struct device.
497 static bool _regmap_range_add(struct regmap *map,
522 static struct regmap_range_node *_regmap_range_lookup(struct regmap *map,
542 static void regmap_range_exit(struct regmap *map)
558 static int regmap_set_name(struct regmap *map, const struct regmap_config *config)
573 int regmap_attach_dev(struct device *dev, struct regmap *map,
576 struct regmap **m;
606 /* Retrieve the endianness specification from the regmap config */
609 /* If the regmap config specified a non-default value, use that */
632 /* Retrieve the endianness specification from the regmap config */
635 /* If the regmap config specified a non-default value, use that */
664 struct regmap *__regmap_init(struct device *dev,
671 struct regmap *map;
1170 regmap_exit(*(struct regmap **)res);
1173 struct regmap *__devm_regmap_init(struct device *dev,
1180 struct regmap **ptr, *regmap;
1186 regmap = __regmap_init(dev, bus, bus_context, config,
1188 if (!IS_ERR(regmap)) {
1189 *ptr = regmap;
1195 return regmap;
1200 struct regmap *regmap, struct reg_field reg_field)
1202 rm_field->regmap = regmap;
1217 * @regmap: regmap bank in which this register field is located.
1225 struct regmap *regmap, struct reg_field reg_field)
1232 regmap_field_init(rm_field, regmap, reg_field);
1243 * @regmap: regmap bank in which this register field is located.
1244 * @rm_field: regmap register fields within the bank.
1252 int regmap_field_bulk_alloc(struct regmap *regmap,
1265 regmap_field_init(&rf[i], regmap, reg_field[i]);
1278 * @regmap: regmap bank in which this register field is located.
1279 * @rm_field: regmap register fields within the bank.
1288 struct regmap *regmap,
1301 regmap_field_init(&rf[i], regmap, reg_field[i]);
1313 * @field: regmap fields which should be freed.
1326 * @field: regmap field which should be freed.
1344 * @field: regmap field which should be freed.
1360 * @regmap: regmap bank in which this register field is located.
1367 struct regmap_field *regmap_field_alloc(struct regmap *regmap,
1375 regmap_field_init(rm_field, regmap, reg_field);
1385 * @field: regmap field which should be freed.
1405 * this function will not race with other calls to regmap.
1407 int regmap_reinit_cache(struct regmap *map, const struct regmap_config *config)
1441 void regmap_exit(struct regmap *map)
1473 struct regmap **r = res;
1487 * dev_get_regmap() - Obtain the regmap (if any) for a device
1492 * Returns the regmap for the device if one is present, or NULL. If
1494 * registering the device, if it is NULL then the first regmap found
1498 struct regmap *dev_get_regmap(struct device *dev, const char *name)
1500 struct regmap **r = devres_find(dev, dev_get_regmap_release,
1510 * regmap_get_device() - Obtain the device from a regmap
1514 * Returns the underlying device that the regmap has been created for.
1516 struct device *regmap_get_device(struct regmap *map)
1522 static int _regmap_select_page(struct regmap *map, unsigned int *reg,
1570 static void regmap_set_work_buf_flag_mask(struct regmap *map, int max_bytes,
1585 static unsigned int regmap_reg_addr(struct regmap *map, unsigned int reg)
1597 static int _regmap_raw_write_impl(struct regmap *map, unsigned int reg,
1802 bool regmap_can_raw_write(struct regmap *map)
1813 size_t regmap_get_raw_read_max(struct regmap *map)
1824 size_t regmap_get_raw_write_max(struct regmap *map)
1835 struct regmap *map = context;
1861 struct regmap *map = context;
1879 struct regmap *map = context;
1893 static inline void *_regmap_map_get_context(struct regmap *map)
1898 int _regmap_write(struct regmap *map, unsigned int reg,
1938 int regmap_write(struct regmap *map, unsigned int reg, unsigned int val)
1965 int regmap_write_async(struct regmap *map, unsigned int reg, unsigned int val)
1986 int _regmap_raw_write(struct regmap *map, unsigned int reg,
2040 int regmap_raw_write(struct regmap *map, unsigned int reg,
2060 static int regmap_noinc_readwrite(struct regmap *map, unsigned int reg,
2147 * The regmap API usually assumes that bulk bus write operations will write a
2159 int regmap_noinc_write(struct regmap *map, unsigned int reg,
2231 return regmap_update_bits_base(field->regmap, field->reg,
2283 return regmap_update_bits_base(field->regmap,
2304 int regmap_bulk_write(struct regmap *map, unsigned int reg, const void *val,
2374 static int _regmap_raw_multi_reg_write(struct regmap *map,
2423 static unsigned int _regmap_register_page(struct regmap *map,
2432 static int _regmap_range_multi_paged_reg_write(struct regmap *map,
2513 static int _regmap_multi_reg_write(struct regmap *map,
2611 int regmap_multi_reg_write(struct regmap *map, const struct reg_sequence *regs,
2644 int regmap_multi_reg_write_bypassed(struct regmap *map,
2688 int regmap_raw_write_async(struct regmap *map, unsigned int reg,
2712 static int _regmap_raw_read(struct regmap *map, unsigned int reg, void *val,
2747 struct regmap *map = context;
2766 struct regmap *map = context;
2780 static int _regmap_read(struct regmap *map, unsigned int reg,
2822 int regmap_read(struct regmap *map, unsigned int reg, unsigned int *val)
2850 int regmap_raw_read(struct regmap *map, unsigned int reg, void *val,
2937 * The regmap API usually assumes that bulk read operations will read a
2949 int regmap_noinc_read(struct regmap *map, unsigned int reg,
3020 ret = regmap_read(field->regmap, field->reg, &reg_val);
3051 ret = regmap_read(field->regmap,
3076 int regmap_bulk_read(struct regmap *map, unsigned int reg, void *val,
3137 static int _regmap_update_bits(struct regmap *map, unsigned int reg,
3192 int regmap_update_bits_base(struct regmap *map, unsigned int reg,
3223 int regmap_test_bits(struct regmap *map, unsigned int reg, unsigned int bits)
3237 struct regmap *map = async->map;
3256 static int regmap_async_is_done(struct regmap *map)
3276 int regmap_async_complete(struct regmap *map)
3317 int regmap_register_patch(struct regmap *map, const struct reg_sequence *regs,
3365 * generic infrastructure built on top of regmap.
3367 int regmap_get_val_bytes(struct regmap *map)
3382 * generic infrastructure built on top of regmap.
3384 int regmap_get_max_register(struct regmap *map)
3396 * generic infrastructure built on top of regmap.
3398 int regmap_get_reg_stride(struct regmap *map)
3405 * regmap_might_sleep() - Returns whether a regmap access might sleep.
3411 bool regmap_might_sleep(struct regmap *map)
3417 int regmap_parse_val(struct regmap *map, const void *buf,