| /linux/drivers/base/regmap/ |
| H A D | regmap-spmi.c | 18 void *val, size_t val_size) in regmap_spmi_base_read() argument 25 while (val_size-- && !err) in regmap_spmi_base_read() 33 const void *val, size_t val_size) in regmap_spmi_base_gather_write() argument 45 if (addr == 0 && val_size) { in regmap_spmi_base_gather_write() 52 val_size--; in regmap_spmi_base_gather_write() 55 while (val_size) { in regmap_spmi_base_gather_write() 62 val_size--; in regmap_spmi_base_gather_write() 107 void *val, size_t val_size) in regmap_spmi_ext_read() argument 121 while (addr <= 0xFF && val_size) { in regmap_spmi_ext_read() 122 len = min_t(size_t, val_size, 16); in regmap_spmi_ext_read() [all …]
|
| H A D | regmap-sdw.c | 12 static int regmap_sdw_write(void *context, const void *val_buf, size_t val_size) in regmap_sdw_write() argument 20 return sdw_nwrite_no_pm(slave, addr, val_size - sizeof(addr), val + sizeof(addr)); in regmap_sdw_write() 25 const void *val_buf, size_t val_size) in regmap_sdw_gather_write() argument 31 return sdw_nwrite_no_pm(slave, addr, val_size, val_buf); in regmap_sdw_gather_write() 36 void *val_buf, size_t val_size) in regmap_sdw_read() argument 42 return sdw_nread_no_pm(slave, addr, val_size, val_buf); in regmap_sdw_read()
|
| H A D | regmap-slimbus.c | 18 void *val, size_t val_size) in regmap_slimbus_read() argument 22 return slim_read(sdev, *(u16 *)reg, val_size, val); in regmap_slimbus_read()
|
| H A D | regmap-spi.c | 93 void *val, size_t val_size) in regmap_spi_read() argument 98 return spi_write_then_read(spi, reg, reg_size, val, val_size); in regmap_spi_read()
|
| /linux/drivers/mfd/ |
| H A D | rk8xx-spi.c | 47 size_t val_size = count - RK806_ADDR_SIZE; in rk806_spi_bus_write() local 50 if (val_size < 1 || val_size > (RK806_CMD_LEN_MSK + 1)) in rk806_spi_bus_write() 53 cmd = RK806_CMD_WITH_SIZE(WRITE, val_size); in rk806_spi_bus_write() 64 void *val, size_t val_size) in rk806_spi_bus_read() argument 71 val_size < 1 || val_size > (RK806_CMD_LEN_MSK + 1)) in rk806_spi_bus_read() 75 txbuf[0] = RK806_CMD_WITH_SIZE(READ, val_size); in rk806_spi_bus_read() 78 return spi_write_then_read(spi, txbuf, sizeof(txbuf), val, val_size); in rk806_spi_bus_read()
|
| H A D | mt6360-core.c | 401 void *val, size_t val_size) in mt6360_regmap_read() argument 408 int buf_len = MT6360_ALLOC_READ_SIZE(val_size); in mt6360_regmap_read() 409 int read_size = val_size; in mt6360_regmap_read() 420 ret = mt6360_xlate_pmicldo_addr(®_addr, val_size); in mt6360_regmap_read() 441 crc = crc8(ddata->crc8_tbl, buf, val_size + MT6360_CRC_PREDATA_OFFSET, 0); in mt6360_regmap_read() 442 if (crc != buf[val_size + MT6360_CRC_PREDATA_OFFSET]) in mt6360_regmap_read() 446 memcpy(val, buf + MT6360_CRC_PREDATA_OFFSET, val_size); in mt6360_regmap_read() 451 static int mt6360_regmap_write(void *context, const void *val, size_t val_size) in mt6360_regmap_write() argument 459 int buf_len = MT6360_ALLOC_WRITE_SIZE(val_size); in mt6360_regmap_write() 460 int write_size = val_size - MT6360_REGMAP_REG_BYTE_SIZE; in mt6360_regmap_write() [all …]
|
| H A D | smpro-core.c | 41 void *val, size_t val_size) in smpro_core_read() argument 53 buf[1] = val_size; in smpro_core_read() 59 xfer[1].len = val_size; in smpro_core_read()
|
| H A D | tps6594-i2c.c | 108 void *val_buf, size_t val_size) in tps6594_i2c_read() argument 125 for (i = 0 ; ret == 0 && i < val_size ; i++) in tps6594_i2c_read() 140 msgs[1].len = val_size; in tps6594_i2c_read()
|
| H A D | mc13xxx-spi.c | 59 void *val, size_t val_size) in mc13xxx_spi_read() argument 75 if (val_size != 3 || reg_size != 1) in mc13xxx_spi_read()
|
| H A D | sec-acpm.c | 409 void *val_buf, size_t val_size) in sec_pmic_acpm_bus_read() argument 417 if (reg_size != BITS_TO_BYTES(ACPM_ADDR_BITS) || !val_size || in sec_pmic_acpm_bus_read() 418 val_size > ACPM_MAX_BULK_DATA) in sec_pmic_acpm_bus_read() 424 ctx->shared->speedy_channel, val_size, val_buf); in sec_pmic_acpm_bus_read()
|
| /linux/drivers/iio/accel/ |
| H A D | bma400_spi.c | 21 void *val, size_t val_size) in bma400_regmap_spi_read() argument 28 if (val_size > BMA400_MAX_SPI_READ) in bma400_regmap_spi_read() 31 status = spi_write_then_read(spi, reg, 1, result, val_size + 1); in bma400_regmap_spi_read() 41 memcpy(val, result + 1, val_size); in bma400_regmap_spi_read()
|
| H A D | adxl367_spi.c | 52 void *val_buf, size_t val_size) in adxl367_read() argument 59 st->reg_read_xfer[1].len = val_size; in adxl367_read() 64 static int adxl367_write(void *context, const void *val_buf, size_t val_size) in adxl367_write() argument 69 st->reg_write_xfer[1].len = val_size; in adxl367_write()
|
| /linux/drivers/iio/imu/smi330/ |
| H A D | smi330_i2c.c | 22 size_t val_size) in smi330_regmap_i2c_read() argument 27 if (SMI330_NUM_DUMMY_BYTES + val_size > SMI330_I2C_MAX_RX_BUFFER_SIZE) in smi330_regmap_i2c_read() 47 .len = SMI330_NUM_DUMMY_BYTES + val_size, in smi330_regmap_i2c_read() 56 memcpy(val_buf, priv->rx_buffer + SMI330_NUM_DUMMY_BYTES, val_size); in smi330_regmap_i2c_read()
|
| H A D | smi330_spi.c | 13 size_t val_size) in smi330_regmap_spi_read() argument 26 val_size); in smi330_regmap_spi_read()
|
| /linux/drivers/iio/imu/bno055/ |
| H A D | bno055_ser_core.c | 300 void *val, size_t val_size) in bno055_ser_read_reg() argument 307 if (val_size > 128) { in bno055_ser_read_reg() 308 dev_err(&priv->serdev->dev, "Invalid read valsize %zu\n", val_size); in bno055_ser_read_reg() 313 trace_read_reg(reg_addr, val_size); in bno055_ser_read_reg() 315 priv->expected_data_len = val_size; in bno055_ser_read_reg() 319 ret = bno055_ser_send_cmd(priv, 1, reg_addr, val_size, NULL); in bno055_ser_read_reg()
|
| /linux/drivers/iio/imu/bmi323/ |
| H A D | bmi323_i2c.c | 26 size_t val_size) in bmi323_regmap_i2c_read() argument 38 msgs[1].len = val_size + BMI323_I2C_DUMMY; in bmi323_regmap_i2c_read() 46 memcpy(val_buf, priv->i2c_rx_buffer + BMI323_I2C_DUMMY, val_size); in bmi323_regmap_i2c_read()
|
| H A D | bmi323_spi.c | 21 size_t val_size) in bmi323_regmap_spi_read() argument 25 return spi_write_then_read(spi, reg_buf, reg_size, val_buf, val_size); in bmi323_regmap_spi_read()
|
| /linux/drivers/iio/dac/ |
| H A D | max22007.c | 89 void *val, size_t val_size) in max22007_spi_read() argument 100 if (val_size == 0 || val_size > 3) in max22007_spi_read() 106 val_size + MAX22007_CRC_OVERHEAD); in max22007_spi_read() 114 received_crc = rx_buf[val_size]; in max22007_spi_read() 121 memcpy(val, rx_buf, val_size); in max22007_spi_read()
|
| /linux/tools/testing/selftests/bpf/benchs/ |
| H A D | bench_bloom_filter_map.c | 132 __u32 val_size, i; in map_prepare_thread() local 136 val_size = args.value_size; in map_prepare_thread() 137 val = malloc(val_size); in map_prepare_thread() 152 err = syscall(__NR_getrandom, val, val_size, 0); in map_prepare_thread() 153 if (err != val_size) { in map_prepare_thread()
|
| /linux/drivers/pinctrl/ |
| H A D | pinctrl-mcp23s08_spi.c | 43 const void *val, size_t val_size) in mcp23sxx_spi_gather_write() argument 50 { .tx_buf = val, .len = val_size, }, }; in mcp23sxx_spi_gather_write() 61 void *val, size_t val_size) in mcp23sxx_spi_read() argument 73 return spi_write_then_read(spi, tx, sizeof(tx), val, val_size); in mcp23sxx_spi_read()
|
| /linux/drivers/iio/imu/bmi270/ |
| H A D | bmi270_spi.c | 18 size_t val_size) in bmi270_regmap_spi_read() argument 20 return spi_write_then_read(spi, reg_buf, reg_size, val_buf, val_size); in bmi270_regmap_spi_read()
|
| /linux/drivers/net/ethernet/microchip/ |
| H A D | encx24j600-regmap.c | 263 void *val, size_t val_size) in regmap_encx24j600_read() argument 273 return regmap_encx24j600_spi_read(context, reg, val, val_size); in regmap_encx24j600_read() 275 if (val_size > 2) { in regmap_encx24j600_read() 276 pr_err("%s: reg=%02x val_size=%zu\n", __func__, reg, val_size); in regmap_encx24j600_read() 280 return regmap_encx24j600_sfr_read(context, reg, val, val_size); in regmap_encx24j600_read()
|
| /linux/sound/soc/codecs/ |
| H A D | zl38060.c | 478 void *val_buf, size_t val_size) 486 if (reg_size != 2 || val_size > ZL38_MAX_RAW_XFER) in zl38_bus_read() 496 txbuf[len++] = val_size / 2 - 1; in zl38_bus_read() 499 txbuf[len++] = val_size / 2 - 1; in zl38_bus_read() 502 return spi_write_then_read(spi, txbuf, len, val_buf, val_size); in zl38_bus_read() 481 zl38_bus_read(void * context,const void * reg_buf,size_t reg_size,void * val_buf,size_t val_size) zl38_bus_read() argument
|
| /linux/drivers/iio/chemical/ |
| H A D | bme680_spi.c | 86 size_t reg_size, void *val, size_t val_size) in bme680_regmap_spi_read() argument 99 return spi_write_then_read(spi, &addr, 1, val, val_size); in bme680_regmap_spi_read()
|
| /linux/fs/ntfs3/ |
| H A D | xattr.c | 318 size_t val_size, int flags, bool locked, in ntfs_set_ea() argument 348 add = ALIGN(struct_size(ea_all, name, 1 + name_len + val_size), 4); in ntfs_set_ea() 378 if (val_size && le16_to_cpu(ea->elength) == val_size && in ntfs_set_ea() 379 !memcmp(ea->name + ea->name_len + 1, value, val_size)) { in ntfs_set_ea() 397 if ((flags & XATTR_REPLACE) && !val_size) { in ntfs_set_ea() 421 new_ea->elength = cpu_to_le16(val_size); in ntfs_set_ea() 424 memcpy(new_ea->name + name_len + 1, value, val_size); in ntfs_set_ea()
|