Home
last modified time | relevance | path

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

12

/Linux-v6.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-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()
Dregmap-spi.c93 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-v6.1/drivers/mfd/
Dmt6360-core.c400 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()
415 ret = mt6360_xlate_pmicldo_addr(&reg_addr, val_size); in mt6360_regmap_read()
438 crc = crc8(ddata->crc8_tbl, buf, val_size + MT6360_CRC_PREDATA_OFFSET, 0); in mt6360_regmap_read()
439 if (crc != buf[val_size + MT6360_CRC_PREDATA_OFFSET]) { in mt6360_regmap_read()
445 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 …]
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()
Dmt6370.c183 size_t reg_size, void *val_buf, size_t val_size) in mt6370_regmap_read() argument
194 val_size, val_buf); in mt6370_regmap_read()
198 if (ret != val_size) in mt6370_regmap_read()
Dmc13xxx-spi.c62 void *val, size_t val_size) in mc13xxx_spi_read() argument
78 if (val_size != 3 || reg_size != 1) in mc13xxx_spi_read()
Docelot-spi.c141 void *val, size_t val_size) in ocelot_spi_regmap_bus_read() argument
165 xfers[index].len = val_size; in ocelot_spi_regmap_bus_read()
/Linux-v6.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.c25 size_t reg_size, void *val, size_t val_size) in bmi088_regmap_spi_read() argument
34 return spi_write_then_read(spi, addr, sizeof(addr), val, val_size); in bmi088_regmap_spi_read()
/Linux-v6.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-v6.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-v6.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-v6.1/drivers/iio/pressure/
Dbmp280-spi.c32 size_t reg_size, void *val, size_t val_size) in bmp280_regmap_spi_read() argument
37 return spi_write_then_read(spi, reg, reg_size, val, val_size); in bmp280_regmap_spi_read()
/Linux-v6.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-v6.1/sound/soc/codecs/
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-v6.1/drivers/rtc/
Drtc-pcf2127.c827 const void *val, size_t val_size) in pcf2127_i2c_gather_write() argument
837 buf = kmalloc(val_size + 1, GFP_KERNEL); in pcf2127_i2c_gather_write()
842 memcpy(buf + 1, val, val_size); in pcf2127_i2c_gather_write()
844 ret = i2c_master_send(client, buf, val_size + 1); in pcf2127_i2c_gather_write()
848 if (ret != val_size + 1) in pcf2127_i2c_gather_write()
855 void *val, size_t val_size) in pcf2127_i2c_read() argument
868 ret = i2c_master_recv(client, val, val_size); in pcf2127_i2c_read()
869 if (ret != val_size) in pcf2127_i2c_read()
/Linux-v6.1/fs/ntfs3/
Dxattr.c262 size_t val_size, int flags, bool locked) in ntfs_set_ea() argument
291 add = ALIGN(struct_size(ea_all, name, 1 + name_len + val_size), 4); in ntfs_set_ea()
322 if (val_size && le16_to_cpu(ea->elength) == val_size && in ntfs_set_ea()
323 !memcmp(ea->name + ea->name_len + 1, value, val_size)) { in ntfs_set_ea()
343 if ((flags & XATTR_REPLACE) && !val_size) { in ntfs_set_ea()
367 new_ea->elength = cpu_to_le16(val_size); in ntfs_set_ea()
370 memcpy(new_ea->name + name_len + 1, value, val_size); in ntfs_set_ea()
/Linux-v6.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()
Dsunrise_co2.c50 size_t reg_size, void *val_buf, size_t val_size) in sunrise_regmap_read() argument
57 if (reg_size != 1 || !val_size) in sunrise_regmap_read()
61 data.block[0] = val_size; in sunrise_regmap_read()
/Linux-v6.1/drivers/clk/
Dclk-cdce925.c551 const void *reg, size_t reg_size, void *val, size_t val_size) in cdce925_regmap_i2c_read() argument
565 if (val_size == 1) { in cdce925_regmap_i2c_read()
572 reg_data[1] = val_size; in cdce925_regmap_i2c_read()
578 xfer[1].len = val_size; in cdce925_regmap_i2c_read()
584 reg_size, val_size, reg_data[0], *((u8 *)val)); in cdce925_regmap_i2c_read()
/Linux-v6.1/sound/core/
Dcontrol_led.c485 static char *parse_string(char *s, char *val, size_t val_size) in parse_string() argument
491 if (val_size > 1) { in parse_string()
493 val_size--; in parse_string()
499 if (val_size > 1) { in parse_string()
501 val_size--; in parse_string()

12