Lines Matching refs:val_count

2062 	size_t val_count = val_len / val_bytes;  in _regmap_raw_write()  local
2064 size_t chunk_regs = val_count; in _regmap_raw_write()
2067 if (!val_count) in _regmap_raw_write()
2075 chunk_count = val_count / chunk_regs; in _regmap_raw_write()
2136 size_t val_count = val_len / val_bytes; in regmap_noinc_readwrite() local
2151 lastval = (unsigned int)u8p[val_count - 1]; in regmap_noinc_readwrite()
2156 lastval = (unsigned int)u16p[val_count - 1]; in regmap_noinc_readwrite()
2161 lastval = (unsigned int)u32p[val_count - 1]; in regmap_noinc_readwrite()
2167 lastval = (unsigned int)u64p[val_count - 1]; in regmap_noinc_readwrite()
2189 ret = map->bus->reg_noinc_write(map->bus_context, reg, val, val_count); in regmap_noinc_readwrite()
2191 ret = map->bus->reg_noinc_read(map->bus_context, reg, val, val_count); in regmap_noinc_readwrite()
2196 for (i = 0; i < val_count; i++) { in regmap_noinc_readwrite()
2215 if (i == (val_count - 1)) in regmap_noinc_readwrite()
2392 size_t val_count) in regmap_bulk_write() argument
2406 for (i = 0; i < val_count; i++) { in regmap_bulk_write()
2440 wval = kmemdup(val, val_count * val_bytes, map->alloc_flags); in regmap_bulk_write()
2444 for (i = 0; i < val_count * val_bytes; i += val_bytes) in regmap_bulk_write()
2447 ret = regmap_raw_write(map, reg, wval, val_bytes * val_count); in regmap_bulk_write()
2453 trace_regmap_bulk_write(map, reg, val, val_bytes * val_count); in regmap_bulk_write()
2938 size_t val_count = val_len / val_bytes; in regmap_raw_read() local
2946 if (val_count == 0) in regmap_raw_read()
2951 if (regmap_volatile_range(map, reg, val_count) || map->cache_bypass || in regmap_raw_read()
2954 size_t chunk_regs = val_count; in regmap_raw_read()
2966 chunk_count = val_count / chunk_regs; in regmap_raw_read()
2990 for (i = 0; i < val_count; i++) { in regmap_raw_read()
3155 size_t val_count) in regmap_bulk_read() argument
3159 bool vol = regmap_volatile_range(map, reg, val_count); in regmap_bulk_read()
3163 if (val_count == 0) in regmap_bulk_read()
3167 ret = regmap_raw_read(map, reg, val, val_bytes * val_count); in regmap_bulk_read()
3171 for (i = 0; i < val_count * val_bytes; i += val_bytes) in regmap_bulk_read()
3183 for (i = 0; i < val_count; i++) { in regmap_bulk_read()
3217 trace_regmap_bulk_read(map, reg, val, val_bytes * val_count); in regmap_bulk_read()