Home
last modified time | relevance | path

Searched refs:val_size (Results 1 – 25 of 53) sorted by relevance

123

/linux-6.12.1/drivers/base/regmap/
Dregmap-spmi.c18 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 …]
Dregmap-sdw.c12 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()
Dregmap-i2c.c140 const void *val, size_t val_size) in regmap_i2c_gather_write() argument
160 xfer[1].len = val_size; in regmap_i2c_gather_write()
174 void *val, size_t val_size) in regmap_i2c_read() argument
188 xfer[1].len = val_size; in regmap_i2c_read()
224 size_t val_size) in regmap_i2c_smbus_i2c_read() argument
230 if (reg_size != 1 || val_size < 1) in regmap_i2c_smbus_i2c_read()
233 ret = i2c_smbus_read_i2c_block_data(i2c, ((u8 *)reg)[0], val_size, val); in regmap_i2c_smbus_i2c_read()
234 if (ret == val_size) in regmap_i2c_smbus_i2c_read()
265 size_t val_size) in regmap_i2c_smbus_i2c_read_reg16() argument
269 int ret, count, len = val_size; in regmap_i2c_smbus_i2c_read_reg16()
[all …]
Dregmap-i3c.c26 void *val, size_t val_size) in regmap_i3c_read() argument
37 xfers[1].len = val_size; in regmap_i3c_read()
Dregmap-slimbus.c18 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()
/linux-6.12.1/drivers/mfd/
Drk8xx-spi.c47 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()
Dmt6360-core.c401 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(&reg_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 …]
Dsmpro-core.c41 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()
Dsprd-sc27xx-spi.c117 void *val, size_t val_size) in sprd_pmic_spi_read() argument
125 if (reg_size != sizeof(u32) || val_size != sizeof(u32)) in sprd_pmic_spi_read()
134 memcpy(val, rx_buf, val_size); in sprd_pmic_spi_read()
Dtps6594-i2c.c104 void *val_buf, size_t val_size) in tps6594_i2c_read() argument
121 for (i = 0 ; ret == 0 && i < val_size ; i++) in tps6594_i2c_read()
136 msgs[1].len = val_size; in tps6594_i2c_read()
/linux-6.12.1/sound/soc/codecs/
Dcs35l56-sdw.c57 u8 *buf, size_t val_size) in cs35l56_sdw_slow_read() argument
63 for (i = 0; i < val_size; i += sizeof(u32)) { in cs35l56_sdw_slow_read()
116 size_t val_size) in cs35l56_sdw_read() argument
126 return cs35l56_sdw_slow_read(peripheral, reg, buf8, val_size); in cs35l56_sdw_read()
130 if (val_size == 4) in cs35l56_sdw_read()
133 while (val_size) { in cs35l56_sdw_read()
135 if (bytes > val_size) in cs35l56_sdw_read()
136 bytes = val_size; in cs35l56_sdw_read()
146 val_size -= bytes; in cs35l56_sdw_read()
179 const void *val_buf, size_t val_size) in cs35l56_sdw_gather_write() argument
[all …]
Dzl38060.c477 void *val_buf, size_t val_size) in zl38_bus_read() argument
485 if (reg_size != 2 || val_size > ZL38_MAX_RAW_XFER) in zl38_bus_read()
495 txbuf[len++] = val_size / 2 - 1; in zl38_bus_read()
498 txbuf[len++] = val_size / 2 - 1; in zl38_bus_read()
501 return spi_write_then_read(spi, txbuf, len, val_buf, val_size); in zl38_bus_read()
/linux-6.12.1/drivers/iio/pressure/
Dbmp280-spi.c32 size_t reg_size, void *val, size_t val_size) in bmp280_regmap_spi_read() argument
36 return spi_write_then_read(spi, reg, reg_size, val, val_size); in bmp280_regmap_spi_read()
40 size_t reg_size, void *val, size_t val_size) in bmp380_regmap_spi_read() argument
46 if (val_size > BME280_BURST_READ_BYTES) in bmp380_regmap_spi_read()
54 status = spi_write_then_read(spi, reg, 1, rx_buf, val_size + 1); in bmp380_regmap_spi_read()
58 memcpy(val, rx_buf + 1, val_size); in bmp380_regmap_spi_read()
/linux-6.12.1/drivers/iio/accel/
Dbma400_spi.c22 void *val, size_t val_size) in bma400_regmap_spi_read() argument
29 if (val_size > BMA400_MAX_SPI_READ) in bma400_regmap_spi_read()
32 status = spi_write_then_read(spi, reg, 1, result, val_size + 1); in bma400_regmap_spi_read()
42 memcpy(val, result + 1, val_size); in bma400_regmap_spi_read()
Dadxl367_spi.c53 void *val_buf, size_t val_size) in adxl367_read() argument
60 st->reg_read_xfer[1].len = val_size; in adxl367_read()
65 static int adxl367_write(void *context, const void *val_buf, size_t val_size) in adxl367_write() argument
70 st->reg_write_xfer[1].len = val_size; in adxl367_write()
Dbmi088-accel-spi.c27 size_t reg_size, void *val, size_t val_size) in bmi088_regmap_spi_read() argument
36 return spi_write_then_read(spi, addr, sizeof(addr), val, val_size); in bmi088_regmap_spi_read()
/linux-6.12.1/drivers/input/touchscreen/
Dgoodix_berlin_spi.c33 size_t val_size) in goodix_berlin_spi_read() argument
45 kzalloc(GOODIX_BERLIN_SPI_READ_PREFIX_LEN + val_size, in goodix_berlin_spi_read()
61 xfers.len = GOODIX_BERLIN_SPI_READ_PREFIX_LEN + val_size; in goodix_berlin_spi_read()
71 memcpy(val_buf, buf + GOODIX_BERLIN_SPI_READ_PREFIX_LEN, val_size); in goodix_berlin_spi_read()
/linux-6.12.1/drivers/iio/imu/bno055/
Dbno055_ser_core.c301 void *val, size_t val_size) in bno055_ser_read_reg() argument
308 if (val_size > 128) { in bno055_ser_read_reg()
309 dev_err(&priv->serdev->dev, "Invalid read valsize %zu", val_size); in bno055_ser_read_reg()
314 trace_read_reg(reg_addr, val_size); in bno055_ser_read_reg()
316 priv->expected_data_len = val_size; in bno055_ser_read_reg()
320 ret = bno055_ser_send_cmd(priv, 1, reg_addr, val_size, NULL); in bno055_ser_read_reg()
/linux-6.12.1/drivers/iio/imu/bmi323/
Dbmi323_i2c.c27 size_t val_size) in bmi323_regmap_i2c_read() argument
39 msgs[1].len = val_size + BMI323_I2C_DUMMY; in bmi323_regmap_i2c_read()
47 memcpy(val_buf, priv->i2c_rx_buffer + BMI323_I2C_DUMMY, val_size); in bmi323_regmap_i2c_read()
Dbmi323_spi.c22 size_t val_size) in bmi323_regmap_spi_read() argument
26 return spi_write_then_read(spi, reg_buf, reg_size, val_buf, val_size); in bmi323_regmap_spi_read()
/linux-6.12.1/drivers/pinctrl/
Dpinctrl-mcp23s08_spi.c43 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-6.12.1/tools/testing/selftests/bpf/benchs/
Dbench_bloom_filter_map.c132 __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-6.12.1/drivers/net/ethernet/microchip/
Dencx24j600-regmap.c263 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-6.12.1/drivers/iio/chemical/
Dbme680_spi.c87 size_t reg_size, void *val, size_t val_size) in bme680_regmap_spi_read() argument
100 return spi_write_then_read(spi, &addr, 1, val, val_size); in bme680_regmap_spi_read()
/linux-6.12.1/fs/ntfs3/
Dxattr.c315 size_t val_size, int flags, bool locked, in ntfs_set_ea() argument
345 add = ALIGN(struct_size(ea_all, name, 1 + name_len + val_size), 4); in ntfs_set_ea()
375 if (val_size && le16_to_cpu(ea->elength) == val_size && in ntfs_set_ea()
376 !memcmp(ea->name + ea->name_len + 1, value, val_size)) { in ntfs_set_ea()
394 if ((flags & XATTR_REPLACE) && !val_size) { in ntfs_set_ea()
418 new_ea->elength = cpu_to_le16(val_size); in ntfs_set_ea()
421 memcpy(new_ea->name + name_len + 1, value, val_size); in ntfs_set_ea()

123