Home
last modified time | relevance | path

Searched refs:val_bytes (Results 1 - 25 of 30) sorted by relevance

12

/kernel/linux/linux-6.6/drivers/base/regmap/
H A Dregmap.c764 map->format.val_bytes = DIV_ROUND_UP(config->val_bits, 8); in __regmap_init()
1613 for (i = 0; i < val_len / map->format.val_bytes; i++) { in _regmap_raw_write_impl()
1624 int val_bytes = map->format.val_bytes; in _regmap_raw_write_impl() local
1627 i = noinc ? val_len - val_bytes : 0; in _regmap_raw_write_impl()
1628 for (; i < val_len; i += val_bytes) { in _regmap_raw_write_impl()
1630 offset = noinc ? 0 : regmap_get_offset(map, i / val_bytes); in _regmap_raw_write_impl()
1647 int val_num = val_len / map->format.val_bytes; in _regmap_raw_write_impl()
1654 win_residue, val_len / map->format.val_bytes); in _regmap_raw_write_impl()
1657 map->format.val_bytes, noin in _regmap_raw_write_impl()
1989 size_t val_bytes = map->format.val_bytes; _regmap_raw_write() local
2063 size_t val_bytes = map->format.val_bytes; regmap_noinc_readwrite() local
2308 size_t val_bytes = map->format.val_bytes; regmap_bulk_write() local
2382 size_t val_bytes = map->format.val_bytes; _regmap_raw_multi_reg_write() local
2853 size_t val_bytes = map->format.val_bytes; regmap_raw_read() local
3080 size_t val_bytes = map->format.val_bytes; regmap_bulk_read() local
[all...]
H A Dregmap-mmio.c19 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 Dregcache-maple.c195 size_t val_bytes = map->format.val_bytes; in regcache_maple_sync_block() local
207 buf = kmalloc(val_bytes * (max - min), map->alloc_flags); in regcache_maple_sync_block()
219 ret = _regmap_raw_write(map, min, buf, (max - min) * val_bytes, in regcache_maple_sync_block()
H A Dregcache.c765 size_t val_bytes = map->format.val_bytes; in regcache_sync_block_raw_flush() local
774 count * val_bytes, count, base, cur - map->reg_stride); in regcache_sync_block_raw_flush()
778 ret = _regmap_raw_write(map, base, *data, count * val_bytes, false); in regcache_sync_block_raw_flush()
H A Dregmap-irq.c397 for_each_set_bit(b, &mreg, map->format.val_bytes * 8) { in regmap_irq_thread()
398 if (i * map->format.val_bytes * 8 + b > in regmap_irq_thread()
430 switch (map->format.val_bytes) { in regmap_irq_thread()
748 map->format.val_bytes, in regmap_add_irq_chip_fwnode()
H A Dregmap-debugfs.c187 map->debugfs_val_len = 2 * map->format.val_bytes; in regmap_calc_tot_len()
263 buf_pos += 2 * map->format.val_bytes; in regmap_read_debugfs()
/kernel/linux/linux-5.10/drivers/nvmem/
H A Dlpc18xx_eeprom.c50 unsigned val_bytes; member
118 bytes -= eeprom->val_bytes; in lpc18xx_eeprom_gather_write()
119 val += eeprom->val_bytes; in lpc18xx_eeprom_gather_write()
120 offset += eeprom->val_bytes; in lpc18xx_eeprom_gather_write()
142 bytes -= eeprom->val_bytes; in lpc18xx_eeprom_read()
143 val += eeprom->val_bytes; in lpc18xx_eeprom_read()
144 offset += eeprom->val_bytes; in lpc18xx_eeprom_read()
210 eeprom->val_bytes = 4; in lpc18xx_eeprom_probe()
/kernel/linux/linux-6.6/drivers/nvmem/
H A Dlpc18xx_eeprom.c50 unsigned val_bytes; member
118 bytes -= eeprom->val_bytes; in lpc18xx_eeprom_gather_write()
119 val += eeprom->val_bytes; in lpc18xx_eeprom_gather_write()
120 offset += eeprom->val_bytes; in lpc18xx_eeprom_gather_write()
142 bytes -= eeprom->val_bytes; in lpc18xx_eeprom_read()
143 val += eeprom->val_bytes; in lpc18xx_eeprom_read()
144 offset += eeprom->val_bytes; in lpc18xx_eeprom_read()
210 eeprom->val_bytes = 4; in lpc18xx_eeprom_probe()
/kernel/linux/linux-5.10/drivers/base/regmap/
H A Dregmap.c791 map->format.val_bytes = DIV_ROUND_UP(config->val_bits, 8); in __regmap_init()
1636 for (i = 0; i < val_len / map->format.val_bytes; i++) { in _regmap_raw_write_impl()
1647 int val_bytes = map->format.val_bytes; in _regmap_raw_write_impl() local
1650 i = noinc ? val_len - val_bytes : 0; in _regmap_raw_write_impl()
1651 for (; i < val_len; i += val_bytes) { in _regmap_raw_write_impl()
1653 offset = noinc ? 0 : regmap_get_offset(map, i / val_bytes); in _regmap_raw_write_impl()
1670 int val_num = val_len / map->format.val_bytes; in _regmap_raw_write_impl()
1677 win_residue, val_len / map->format.val_bytes); in _regmap_raw_write_impl()
1680 map->format.val_bytes, noin in _regmap_raw_write_impl()
1999 size_t val_bytes = map->format.val_bytes; _regmap_raw_write() local
2211 size_t val_bytes = map->format.val_bytes; regmap_bulk_write() local
2286 size_t val_bytes = map->format.val_bytes; _regmap_raw_multi_reg_write() local
2747 size_t val_bytes = map->format.val_bytes; regmap_raw_read() local
2955 size_t val_bytes = map->format.val_bytes; regmap_bulk_read() local
[all...]
H A Dregcache.c713 size_t val_bytes = map->format.val_bytes; in regcache_sync_block_raw_flush() local
722 count * val_bytes, count, base, cur - map->reg_stride); in regcache_sync_block_raw_flush()
726 ret = _regmap_raw_write(map, base, *data, count * val_bytes, false); in regcache_sync_block_raw_flush()
H A Dregmap-mmio.c18 unsigned val_bytes; member
239 ctx->val_bytes = config->val_bits / 8; in regmap_mmio_gen_context()
H A Dregmap-irq.c424 for_each_set_bit(b, &mreg, map->format.val_bytes * 8) { in regmap_irq_thread()
425 if (i * map->format.val_bytes * 8 + b > in regmap_irq_thread()
458 switch (map->format.val_bytes) { in regmap_irq_thread()
682 map->format.val_bytes, in regmap_add_irq_chip_fwnode()
H A Dinternal.h34 size_t val_bytes; member
H A Dregmap-debugfs.c187 map->debugfs_val_len = 2 * map->format.val_bytes; in regmap_calc_tot_len()
263 buf_pos += 2 * map->format.val_bytes; in regmap_read_debugfs()
/kernel/linux/linux-6.6/drivers/mfd/
H A Dtps6594-i2c.c110 u8 *val_bytes = val_buf; in tps6594_i2c_read() local
122 ret = tps6594_i2c_reg_read_with_crc(client, page, reg + i, val_bytes + i); in tps6594_i2c_read()
137 msgs[1].buf = val_bytes; in tps6594_i2c_read()
/kernel/linux/linux-5.10/sound/soc/
H A Dsoc-ops.c657 uinfo->count = params->num_regs * component->val_bytes; in snd_soc_bytes_info()
673 params->num_regs * component->val_bytes); in snd_soc_bytes_get()
679 switch (component->val_bytes) { in snd_soc_bytes_get()
712 len = params->num_regs * component->val_bytes; in snd_soc_bytes_put()
730 switch (component->val_bytes) { in snd_soc_bytes_put()
862 unsigned int regwshift = component->val_bytes * BITS_PER_BYTE; in snd_soc_get_xr_sx()
908 unsigned int regwshift = component->val_bytes * BITS_PER_BYTE; in snd_soc_put_xr_sx()
H A Dsoc-component.c367 int val_bytes = regmap_get_val_bytes(component->regmap); in snd_soc_component_setup_regmap() local
370 if (val_bytes > 0) in snd_soc_component_setup_regmap()
371 component->val_bytes = val_bytes; in snd_soc_component_setup_regmap()
/kernel/linux/linux-6.6/sound/soc/
H A Dsoc-ops.c680 uinfo->count = params->num_regs * component->val_bytes; in snd_soc_bytes_info()
696 params->num_regs * component->val_bytes); in snd_soc_bytes_get()
702 switch (component->val_bytes) { in snd_soc_bytes_get()
735 len = params->num_regs * component->val_bytes; in snd_soc_bytes_put()
753 switch (component->val_bytes) { in snd_soc_bytes_put()
885 unsigned int regwshift = component->val_bytes * BITS_PER_BYTE; in snd_soc_get_xr_sx()
930 unsigned int regwshift = component->val_bytes * BITS_PER_BYTE; in snd_soc_put_xr_sx()
H A Dsoc-component.c427 int val_bytes = regmap_get_val_bytes(component->regmap); in snd_soc_component_setup_regmap() local
430 if (val_bytes > 0) in snd_soc_component_setup_regmap()
431 component->val_bytes = val_bytes; in snd_soc_component_setup_regmap()
/kernel/linux/linux-6.6/sound/soc/tegra/
H A Dtegra210_mbdrc.c316 for (i = 0; i < params->soc.num_regs; i++, regs += cmpnt->val_bytes) { in tegra210_mbdrc_band_params_get()
338 for (i = 0; i < params->soc.num_regs; i++, regs += cmpnt->val_bytes) { in tegra210_mbdrc_band_params_put()
362 for (i = 0; i < num_regs; i += 4, regs += cmpnt->val_bytes) { in tegra210_mbdrc_threshold_get()
390 for (i = 0; i < num_regs; i += 4, regs += cmpnt->val_bytes) { in tegra210_mbdrc_threshold_put()
418 memset(data, 0, params->soc.num_regs * cmpnt->val_bytes); in tegra210_mbdrc_biquad_coeffs_get()
430 u32 reg_data = reg_ctrl + cmpnt->val_bytes; in tegra210_mbdrc_biquad_coeffs_put()
H A Dtegra210_peq.c153 u32 reg_data = reg_ctrl + cmpnt->val_bytes; in tegra210_peq_ram_get()
176 u32 reg_data = reg_ctrl + cmpnt->val_bytes; in tegra210_peq_ram_put()
/kernel/linux/linux-6.6/drivers/net/can/spi/mcp251xfd/
H A Dmcp251xfd-tef.c153 const int val_bytes = regmap_get_val_bytes(priv->map_rx); in mcp251xfd_tef_obj_read() local
168 sizeof(*hw_tef_obj) / val_bytes * len); in mcp251xfd_tef_obj_read()
H A Dmcp251xfd-rx.c189 const int val_bytes = regmap_get_val_bytes(priv->map_rx); in mcp251xfd_rx_obj_read() local
195 len * ring->obj_size / val_bytes); in mcp251xfd_rx_obj_read()
H A Dmcp251xfd-dump.c67 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()
/kernel/linux/linux-5.10/sound/soc/tegra/
H A Dtegra210_ahub.c38 (8 * cmpnt->val_bytes * i); in tegra_ahub_get_value_enum()
72 reg_idx = (value - 1) / (8 * cmpnt->val_bytes); in tegra_ahub_put_value_enum()
73 bit_pos = (value - 1) % (8 * cmpnt->val_bytes); in tegra_ahub_put_value_enum()

Completed in 26 milliseconds

12