| /linux/drivers/base/regmap/ |
| H A D | regmap.c | 779 map->format.val_bytes = BITS_TO_BYTES(config->val_bits); in __regmap_init() 1653 for (i = 0; i < val_len / map->format.val_bytes; i++) { in _regmap_raw_write_impl() 1664 int val_bytes = map->format.val_bytes; in _regmap_raw_write_impl() local 1667 i = noinc ? val_len - val_bytes : 0; in _regmap_raw_write_impl() 1668 for (; i < val_len; i += val_bytes) { in _regmap_raw_write_impl() 1670 offset = noinc ? 0 : regmap_get_offset(map, i / val_bytes); in _regmap_raw_write_impl() 1687 int val_num = val_len / map->format.val_bytes; in _regmap_raw_write_impl() 1694 win_residue, val_len / map->format.val_bytes); in _regmap_raw_write_impl() 1697 map->format.val_bytes, noinc); in _regmap_raw_write_impl() 1703 val += win_residue * map->format.val_bytes; in _regmap_raw_write_impl() [all …]
|
| H A D | regmap-mmio.c | 19 unsigned int val_bytes; member 189 if (ctx->big_endian && (ctx->val_bytes > 1)) { in regmap_mmio_noinc_write() 190 switch (ctx->val_bytes) { in regmap_mmio_noinc_write() 211 switch (ctx->val_bytes) { in regmap_mmio_noinc_write() 342 switch (ctx->val_bytes) { in regmap_mmio_noinc_read() 363 if (ctx->big_endian && (ctx->val_bytes > 1)) { in regmap_mmio_noinc_read() 364 switch (ctx->val_bytes) { in regmap_mmio_noinc_read() 438 ctx->val_bytes = config->val_bits / 8; in regmap_mmio_gen_context()
|
| H A D | regcache.c | 837 size_t val_bytes = map->format.val_bytes; in regcache_sync_block_raw_flush() local 846 count * val_bytes, count, base, cur - map->reg_stride); in regcache_sync_block_raw_flush() 850 ret = _regmap_raw_write(map, base, *data, count * val_bytes, false); in regcache_sync_block_raw_flush()
|
| /linux/drivers/nvmem/ |
| H A D | lpc18xx_eeprom.c | 49 unsigned val_bytes; member 117 bytes -= eeprom->val_bytes; in lpc18xx_eeprom_gather_write() 118 val += eeprom->val_bytes; in lpc18xx_eeprom_gather_write() 119 offset += eeprom->val_bytes; in lpc18xx_eeprom_gather_write() 141 bytes -= eeprom->val_bytes; in lpc18xx_eeprom_read() 142 val += eeprom->val_bytes; in lpc18xx_eeprom_read() 143 offset += eeprom->val_bytes; in lpc18xx_eeprom_read() 209 eeprom->val_bytes = 4; in lpc18xx_eeprom_probe()
|
| /linux/sound/soc/tegra/ |
| H A D | tegra210_mbdrc.c | 310 int val_bytes = snd_soc_component_regmap_val_bytes(cmpnt); in tegra210_mbdrc_band_params_get() local 317 for (i = 0; i < params->soc.num_regs; i++, regs += val_bytes) { in tegra210_mbdrc_band_params_get() 332 int val_bytes = snd_soc_component_regmap_val_bytes(cmpnt); in tegra210_mbdrc_band_params_put() local 340 for (i = 0; i < params->soc.num_regs; i++, regs += val_bytes) { in tegra210_mbdrc_band_params_put() 358 int val_bytes = snd_soc_component_regmap_val_bytes(cmpnt); in tegra210_mbdrc_threshold_get() local 365 for (i = 0; i < num_regs; i += 4, regs += val_bytes) { in tegra210_mbdrc_threshold_get() 387 int val_bytes = snd_soc_component_regmap_val_bytes(cmpnt); in tegra210_mbdrc_threshold_put() local 394 for (i = 0; i < num_regs; i += 4, regs += val_bytes) { in tegra210_mbdrc_threshold_put() 420 int val_bytes = snd_soc_component_regmap_val_bytes(cmpnt); in tegra210_mbdrc_biquad_coeffs_get() local 423 memset(data, 0, params->soc.num_regs * val_bytes); in tegra210_mbdrc_biquad_coeffs_get() [all …]
|
| H A D | tegra210_peq.c | 151 int val_bytes = snd_soc_component_regmap_val_bytes(cmpnt); in tegra210_peq_ram_get() 153 u32 reg_data = reg_ctrl + val_bytes; in tegra210_peq_ram_get() 175 int val_bytes = snd_soc_component_regmap_val_bytes(cmpnt); in tegra210_peq_ram_put() 177 u32 reg_data = reg_ctrl + val_bytes; in tegra210_peq_ram_put()
|
| H A D | tegra210_ahub.c | 23 int val_bytes = snd_soc_component_regmap_val_bytes(cmpnt); in tegra_ahub_get_value_enum() 39 (8 * val_bytes * i); in tegra_ahub_get_value_enum() 63 int val_bytes = snd_soc_component_regmap_val_bytes(cmpnt); in tegra_ahub_put_value_enum() 76 reg_idx = (value - 1) / (8 * val_bytes); in tegra_ahub_put_value_enum() 77 bit_pos = (value - 1) % (8 * val_bytes); in tegra_ahub_put_value_enum()
|
| /linux/drivers/mfd/ |
| H A D | tps6594-i2c.c | 114 u8 *val_bytes = val_buf; in tps6594_i2c_read() local 126 ret = tps6594_i2c_reg_read_with_crc(client, page, reg + i, val_bytes + i); in tps6594_i2c_read() 141 msgs[1].buf = val_bytes; in tps6594_i2c_read()
|
| /linux/sound/soc/ |
| H A D | soc-ops.c | 479 int val_bytes = snd_soc_component_regmap_val_bytes(component); 482 uinfo->count = params->num_regs * val_bytes; 493 int val_bytes = snd_soc_component_regmap_val_bytes(component); in snd_soc_limit_volume() 499 params->num_regs * val_bytes); in snd_soc_limit_volume() 505 switch (val_bytes) { in snd_soc_limit_volume() 531 int val_bytes = snd_soc_component_regmap_val_bytes(component); in snd_soc_bytes_get() 538 len = params->num_regs * val_bytes; in snd_soc_bytes_get() 557 switch (val_bytes) { in snd_soc_bytes_get() 680 int val_bytes = snd_soc_component_regmap_val_bytes(component); in snd_soc_info_xr_sx() 683 unsigned int regwshift = val_bytes * BITS_PER_BYT in snd_soc_info_xr_sx() [all...] |
| H A D | soc-component.c | 382 int val_bytes; in snd_soc_component_regmap_val_bytes() local 389 val_bytes = regmap_get_val_bytes(component->regmap); in snd_soc_component_regmap_val_bytes() 390 if (val_bytes < 0) in snd_soc_component_regmap_val_bytes() 393 return val_bytes; in snd_soc_component_regmap_val_bytes()
|
| /linux/drivers/net/can/spi/mcp251xfd/ |
| H A D | mcp251xfd-tef.c | 188 const int val_bytes = regmap_get_val_bytes(priv->map_rx); in mcp251xfd_tef_obj_read() local 203 sizeof(*hw_tef_obj) / val_bytes * len); in mcp251xfd_tef_obj_read()
|
| H A D | mcp251xfd-rx.c | 217 const int val_bytes = regmap_get_val_bytes(priv->map_rx); in mcp251xfd_rx_obj_read() local 223 len * ring->obj_size / val_bytes); in mcp251xfd_rx_obj_read()
|
| H A D | mcp251xfd-dump.c | 67 const int val_bytes = regmap_get_val_bytes(priv->map_rx); in mcp251xfd_dump_registers() local 83 buf, reg_space->size / val_bytes); in mcp251xfd_dump_registers()
|
| H A D | mcp251xfd-core.c | 1448 const int val_bytes = regmap_get_val_bytes(priv->map_reg); in mcp251xfd_read_regs_status() local 1457 &priv->regs_status, len / val_bytes); in mcp251xfd_read_regs_status()
|