Searched refs:val_bytes (Results 1 – 13 of 13) sorted by relevance
| /linux/drivers/nvmem/ |
| H A D | lpc18xx_eeprom.c | 50 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()
|
| /linux/drivers/base/regmap/ |
| H A D | regmap.c | 779 map->format.val_bytes = BITS_TO_BYTES(config->val_bits); in __regmap_init() 1632 for (i = 0; i < val_len / map->format.val_bytes; i++) { in _regmap_raw_write_impl() 1643 int val_bytes = map->format.val_bytes; in _regmap_raw_write_impl() local 1646 i = noinc ? val_len - val_bytes : 0; in _regmap_raw_write_impl() 1647 for (; i < val_len; i += val_bytes) { in _regmap_raw_write_impl() 1649 offset = noinc ? 0 : regmap_get_offset(map, i / val_bytes); in _regmap_raw_write_impl() 1666 int val_num = val_len / map->format.val_bytes; in _regmap_raw_write_impl() 1673 win_residue, val_len / map->format.val_bytes); in _regmap_raw_write_impl() 1676 map->format.val_bytes, noinc); in _regmap_raw_write_impl() 1682 val += win_residue * map->format.val_bytes; in _regmap_raw_write_impl() [all …]
|
| H A D | regcache-maple.c | 195 size_t val_bytes = map->format.val_bytes; in regcache_maple_sync_block() local 207 buf = kmalloc_array(max - min, val_bytes, 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 D | regmap-irq.c | 382 for_each_set_bit(b, &mreg, map->format.val_bytes * 8) { in read_irq_data() 383 if (i * map->format.val_bytes * 8 + b > in read_irq_data() 412 switch (map->format.val_bytes) { in read_irq_data() 799 map->format.val_bytes, in regmap_add_irq_chip_fwnode()
|
| H A D | regmap-debugfs.c | 187 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()
|
| /linux/drivers/mfd/ |
| H A D | tps6594-i2c.c | 115 u8 *val_bytes = val_buf; in tps6594_i2c_read() local 127 ret = tps6594_i2c_reg_read_with_crc(client, page, reg + i, val_bytes + i); in tps6594_i2c_read() 142 msgs[1].buf = val_bytes; in tps6594_i2c_read()
|
| /linux/sound/soc/ |
| H A D | soc-ops.c | 519 uinfo->count = params->num_regs * component->val_bytes; in snd_soc_bytes_info() 535 params->num_regs * component->val_bytes); in snd_soc_bytes_get() 541 switch (component->val_bytes) { in snd_soc_bytes_get() 573 len = params->num_regs * component->val_bytes; in snd_soc_bytes_put() 592 switch (component->val_bytes) { in snd_soc_bytes_put() 717 unsigned int regwshift = component->val_bytes * BITS_PER_BYTE; in snd_soc_get_xr_sx() 761 unsigned int regwshift = component->val_bytes * BITS_PER_BYTE; in snd_soc_put_xr_sx()
|
| /linux/sound/soc/tegra/ |
| H A D | tegra210_mbdrc.c | 316 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 D | tegra210_peq.c | 152 u32 reg_data = reg_ctrl + cmpnt->val_bytes; in tegra210_peq_ram_get() 175 u32 reg_data = reg_ctrl + cmpnt->val_bytes; in tegra210_peq_ram_put()
|
| H A D | tegra210_ahub.c | 38 (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()
|
| /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()
|