Lines Matching refs:val_bytes

764 	map->format.val_bytes = DIV_ROUND_UP(config->val_bits, 8);
1615 for (i = 0; i < val_len / map->format.val_bytes; i++) {
1626 int val_bytes = map->format.val_bytes;
1629 i = noinc ? val_len - val_bytes : 0;
1630 for (; i < val_len; i += val_bytes) {
1632 offset = noinc ? 0 : regmap_get_offset(map, i / val_bytes);
1649 int val_num = val_len / map->format.val_bytes;
1656 win_residue, val_len / map->format.val_bytes);
1659 map->format.val_bytes, noinc);
1665 val += win_residue * map->format.val_bytes;
1666 val_len -= win_residue * map->format.val_bytes;
1688 if (val != work_val && val_len == map->format.val_bytes) {
1689 memcpy(work_val, val, map->format.val_bytes);
1723 map->format.reg_bytes + map->format.val_bytes);
1754 trace_regmap_hw_write_start(map, reg, val_len / map->format.val_bytes);
1794 trace_regmap_hw_write_done(map, reg, val_len / map->format.val_bytes);
1891 map->format.val_bytes,
1991 size_t val_bytes = map->format.val_bytes;
1992 size_t val_count = val_len / val_bytes;
2003 chunk_regs = map->max_raw_write / val_bytes;
2006 chunk_bytes = chunk_regs * val_bytes;
2049 if (val_len % map->format.val_bytes)
2065 size_t val_bytes = map->format.val_bytes;
2066 size_t val_count = val_len / val_bytes;
2074 switch (val_bytes) {
2117 switch (val_bytes) {
2169 if (val_len % map->format.val_bytes)
2310 size_t val_bytes = map->format.val_bytes;
2324 switch (val_bytes) {
2326 ival = *(u8 *)(val + (i * val_bytes));
2329 ival = *(u16 *)(val + (i * val_bytes));
2332 ival = *(u32 *)(val + (i * val_bytes));
2350 wval = kmemdup(val, val_count * val_bytes, map->alloc_flags);
2354 for (i = 0; i < val_count * val_bytes; i += val_bytes)
2357 ret = regmap_raw_write(map, reg, wval, val_bytes * val_count);
2363 trace_regmap_bulk_write(map, reg, val, val_bytes * val_count);
2384 size_t val_bytes = map->format.val_bytes;
2387 size_t pair_size = reg_bytes + pad_bytes + val_bytes;
2409 u8 += val_bytes;
2695 if (val_len % map->format.val_bytes)
2726 noinc ? 1 : val_len / map->format.val_bytes);
2735 trace_regmap_hw_read_start(map, reg, val_len / map->format.val_bytes);
2741 trace_regmap_hw_read_done(map, reg, val_len / map->format.val_bytes);
2775 ret = _regmap_raw_read(map, reg, work_val, map->format.val_bytes, false);
2892 size_t val_bytes = map->format.val_bytes;
2893 size_t val_count = val_len / val_bytes;
2897 if (val_len % map->format.val_bytes)
2924 chunk_regs = map->max_raw_read / val_bytes;
2927 chunk_bytes = chunk_regs * val_bytes;
2956 map->format.format_val(val + (i * val_bytes), v, 0);
2997 if (val_len % map->format.val_bytes)
3119 size_t val_bytes = map->format.val_bytes;
3128 ret = regmap_raw_read(map, reg, val, val_bytes * val_count);
3132 for (i = 0; i < val_count * val_bytes; i += val_bytes)
3149 switch (map->format.val_bytes) {
3170 trace_regmap_bulk_read(map, reg, val, val_bytes * val_count);
3411 return map->format.val_bytes;