Lines Matching refs:val_bytes

764 	map->format.val_bytes = DIV_ROUND_UP(config->val_bits, 8);
1613 for (i = 0; i < val_len / map->format.val_bytes; i++) {
1624 int val_bytes = map->format.val_bytes;
1627 i = noinc ? val_len - val_bytes : 0;
1628 for (; i < val_len; i += val_bytes) {
1630 offset = noinc ? 0 : regmap_get_offset(map, i / val_bytes);
1647 int val_num = val_len / map->format.val_bytes;
1654 win_residue, val_len / map->format.val_bytes);
1657 map->format.val_bytes, noinc);
1663 val += win_residue * map->format.val_bytes;
1664 val_len -= win_residue * map->format.val_bytes;
1686 if (val != work_val && val_len == map->format.val_bytes) {
1687 memcpy(work_val, val, map->format.val_bytes);
1721 map->format.reg_bytes + map->format.val_bytes);
1752 trace_regmap_hw_write_start(map, reg, val_len / map->format.val_bytes);
1792 trace_regmap_hw_write_done(map, reg, val_len / map->format.val_bytes);
1889 map->format.val_bytes,
1989 size_t val_bytes = map->format.val_bytes;
1990 size_t val_count = val_len / val_bytes;
2001 chunk_regs = map->max_raw_write / val_bytes;
2004 chunk_bytes = chunk_regs * val_bytes;
2047 if (val_len % map->format.val_bytes)
2063 size_t val_bytes = map->format.val_bytes;
2064 size_t val_count = val_len / val_bytes;
2072 switch (val_bytes) {
2115 switch (val_bytes) {
2167 if (val_len % map->format.val_bytes)
2308 size_t val_bytes = map->format.val_bytes;
2322 switch (val_bytes) {
2324 ival = *(u8 *)(val + (i * val_bytes));
2327 ival = *(u16 *)(val + (i * val_bytes));
2330 ival = *(u32 *)(val + (i * val_bytes));
2348 wval = kmemdup(val, val_count * val_bytes, map->alloc_flags);
2352 for (i = 0; i < val_count * val_bytes; i += val_bytes)
2355 ret = regmap_raw_write(map, reg, wval, val_bytes * val_count);
2361 trace_regmap_bulk_write(map, reg, val, val_bytes * val_count);
2382 size_t val_bytes = map->format.val_bytes;
2385 size_t pair_size = reg_bytes + pad_bytes + val_bytes;
2407 u8 += val_bytes;
2693 if (val_len % map->format.val_bytes)
2724 noinc ? 1 : val_len / map->format.val_bytes);
2733 trace_regmap_hw_read_start(map, reg, val_len / map->format.val_bytes);
2739 trace_regmap_hw_read_done(map, reg, val_len / map->format.val_bytes);
2773 ret = _regmap_raw_read(map, reg, work_val, map->format.val_bytes, false);
2853 size_t val_bytes = map->format.val_bytes;
2854 size_t val_count = val_len / val_bytes;
2858 if (val_len % map->format.val_bytes)
2885 chunk_regs = map->max_raw_read / val_bytes;
2888 chunk_bytes = chunk_regs * val_bytes;
2917 map->format.format_val(val + (i * val_bytes), v, 0);
2958 if (val_len % map->format.val_bytes)
3080 size_t val_bytes = map->format.val_bytes;
3089 ret = regmap_raw_read(map, reg, val, val_bytes * val_count);
3093 for (i = 0; i < val_count * val_bytes; i += val_bytes)
3110 switch (map->format.val_bytes) {
3131 trace_regmap_bulk_read(map, reg, val, val_bytes * val_count);
3372 return map->format.val_bytes;