/linux/drivers/base/regmap/ |
A D | regmap-spmi.c | 25 while (val_size-- && !err) in regmap_spmi_base_read() 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() 130 val_size -= len; in regmap_spmi_ext_read() 133 while (val_size) { in regmap_spmi_ext_read() 142 val_size -= len; in regmap_spmi_ext_read() 170 val_size -= len; in regmap_spmi_ext_gather_write() 173 while (val_size) { in regmap_spmi_ext_gather_write() [all …]
|
A D | regmap-i2c.c | 140 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 …]
|
A D | regmap-i3c.c | 26 void *val, size_t val_size) in regmap_i3c_read() argument 37 xfers[1].len = val_size; in regmap_i3c_read()
|
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()
|
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/ |
A D | mt6360-core.c | 400 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(®_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 …]
|
A D | sprd-sc27xx-spi.c | 117 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()
|
A D | mc13xxx-spi.c | 62 void *val, size_t val_size) in mc13xxx_spi_read() argument 78 if (val_size != 3 || reg_size != 1) in mc13xxx_spi_read()
|
A D | retu-mfd.c | 190 void *val, size_t val_size) in retu_regmap_read() argument 196 BUG_ON(reg_size != 1 || val_size != 2); in retu_regmap_read()
|
/linux/drivers/iio/accel/ |
A D | bma400_spi.c | 22 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()
|
A D | bmi088-accel-spi.c | 25 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/drivers/pinctrl/ |
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/tools/testing/selftests/bpf/benchs/ |
A D | bench_bloom_filter_map.c | 127 __u32 val_size, i; in map_prepare_thread() local 131 val_size = args.value_size; in map_prepare_thread() 132 val = malloc(val_size); in map_prepare_thread() 147 err = syscall(__NR_getrandom, val, val_size, 0); in map_prepare_thread() 148 if (err != val_size) { in map_prepare_thread()
|
/linux/drivers/net/ethernet/microchip/ |
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/fs/ntfs3/ |
A D | xattr.c | 262 size_t val_size, int flags) in ntfs_set_ea() argument 290 add = ALIGN(struct_size(ea_all, name, 1 + name_len + val_size), 4); in ntfs_set_ea() 321 if (val_size && le16_to_cpu(ea->elength) == val_size && in ntfs_set_ea() 322 !memcmp(ea->name + ea->name_len + 1, value, val_size)) { in ntfs_set_ea() 342 if ((flags & XATTR_REPLACE) && !val_size) { in ntfs_set_ea() 366 new_ea->elength = cpu_to_le16(val_size); in ntfs_set_ea() 369 memcpy(new_ea->name + name_len + 1, value, val_size); in ntfs_set_ea()
|
/linux/drivers/rtc/ |
A D | rtc-pcf2127.c | 814 const void *val, size_t val_size) in pcf2127_i2c_gather_write() argument 824 buf = kmalloc(val_size + 1, GFP_KERNEL); in pcf2127_i2c_gather_write() 829 memcpy(buf + 1, val, val_size); in pcf2127_i2c_gather_write() 831 ret = i2c_master_send(client, buf, val_size + 1); in pcf2127_i2c_gather_write() 835 if (ret != val_size + 1) in pcf2127_i2c_gather_write() 842 void *val, size_t val_size) in pcf2127_i2c_read() argument 855 ret = i2c_master_recv(client, val, val_size); in pcf2127_i2c_read() 856 if (ret != val_size) in pcf2127_i2c_read()
|
/linux/sound/soc/codecs/ |
A D | zl38060.c | 478 void *val_buf, size_t val_size) in zl38_bus_read() argument 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()
|
/linux/drivers/iio/pressure/ |
A D | bmp280-spi.c | 32 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/drivers/iio/chemical/ |
A D | bme680_spi.c | 87 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()
|
A D | sunrise_co2.c | 50 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/drivers/clk/ |
A D | clk-cdce925.c | 551 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/drivers/bluetooth/ |
A D | btintel.c | 664 void *val, size_t val_size) in regmap_ibt_read() argument 675 switch (val_size) { in regmap_ibt_read() 691 cp.len = val_size; in regmap_ibt_read() 704 if (skb->len != sizeof(*rp) + val_size) { in regmap_ibt_read() 720 memcpy(val, rp->data, val_size); in regmap_ibt_read() 729 const void *val, size_t val_size) in regmap_ibt_gather_write() argument 734 int plen = sizeof(*cp) + val_size; in regmap_ibt_gather_write() 741 switch (val_size) { in regmap_ibt_gather_write() 762 cp->len = val_size; in regmap_ibt_gather_write() 763 memcpy(&cp->data, val, val_size); in regmap_ibt_gather_write()
|
/linux/sound/core/ |
A D | control_led.c | 485 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()
|
/linux/drivers/gpu/drm/panel/ |
A D | panel-ilitek-ili9322.c | 305 size_t reg_size, void *val, size_t val_size) in ili9322_regmap_spi_read() argument 314 buf[0], reg_size, val_size); in ili9322_regmap_spi_read()
|
/linux/drivers/media/dvb-frontends/ |
A D | rtl2830.c | 691 size_t reg_size, void *val_buf, size_t val_size) in rtl2830_regmap_read() argument 704 .len = val_size, in rtl2830_regmap_read()
|