Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/bluetooth/
Dbtintel.c531 void *val, size_t val_size) in regmap_ibt_read() argument
542 switch (val_size) { in regmap_ibt_read()
558 cp.len = val_size; in regmap_ibt_read()
571 if (skb->len != sizeof(*rp) + val_size) { in regmap_ibt_read()
587 memcpy(val, rp->data, val_size); in regmap_ibt_read()
596 const void *val, size_t val_size) in regmap_ibt_gather_write() argument
601 int plen = sizeof(*cp) + val_size; in regmap_ibt_gather_write()
608 switch (val_size) { in regmap_ibt_gather_write()
629 cp->len = val_size; in regmap_ibt_gather_write()
630 memcpy(&cp->data, val, val_size); in regmap_ibt_gather_write()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/rtc/
Drtc-pcf2127.c717 const void *val, size_t val_size) in pcf2127_i2c_gather_write() argument
727 buf = kmalloc(val_size + 1, GFP_KERNEL); in pcf2127_i2c_gather_write()
732 memcpy(buf + 1, val, val_size); in pcf2127_i2c_gather_write()
734 ret = i2c_master_send(client, buf, val_size + 1); in pcf2127_i2c_gather_write()
738 if (ret != val_size + 1) in pcf2127_i2c_gather_write()
745 void *val, size_t val_size) in pcf2127_i2c_read() argument
758 ret = i2c_master_recv(client, val, val_size); in pcf2127_i2c_read()
759 if (ret != val_size) in pcf2127_i2c_read()
/kernel/linux/linux-5.10/drivers/mfd/
Dsprd-sc27xx-spi.c108 void *val, size_t val_size) in sprd_pmic_spi_read() argument
116 if (reg_size != sizeof(u32) || val_size != sizeof(u32)) in sprd_pmic_spi_read()
125 memcpy(val, rx_buf, val_size); in sprd_pmic_spi_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()
Dretu-mfd.c190 void *val, size_t val_size) in retu_regmap_read() argument
196 BUG_ON(reg_size != 1 || val_size != 2); in retu_regmap_read()
/kernel/linux/linux-5.10/sound/soc/codecs/
Dzl38060.c478 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()
/kernel/linux/linux-5.10/drivers/iio/chemical/
Dbme680_spi.c88 size_t reg_size, void *val, size_t val_size) in bme680_regmap_spi_read() argument
101 return spi_write_then_read(spi, &addr, 1, val, val_size); in bme680_regmap_spi_read()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/can/m_can/
Dtcan4x5x.c213 void *val, size_t val_size) in tcan4x5x_regmap_read() argument
218 u32 addr = TCAN4X5X_READ_CMD | (*((u16 *)reg) << 8) | val_size >> 2; in tcan4x5x_regmap_read()
220 return spi_write_then_read(spi, &addr, reg_size, (u32 *)val, val_size); in tcan4x5x_regmap_read()
/kernel/linux/linux-5.10/drivers/gpu/drm/panel/
Dpanel-ilitek-ili9322.c305 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()
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/
Drtl2830.c691 size_t reg_size, void *val_buf, size_t val_size) in rtl2830_regmap_read() argument
704 .len = val_size, in rtl2830_regmap_read()
Daf9013.c1401 size_t reg_size, void *val_buf, size_t val_size) in af9013_regmap_read() argument
1410 const unsigned int len = val_size; in af9013_regmap_read()
/kernel/linux/linux-5.10/sound/usb/
Dmixer.c343 int idx = 0, ret, val_size, size; in get_ctl_value_v2() local
346 val_size = uac2_ctl_value_size(cval->val_type); in get_ctl_value_v2()
350 size = val_size; in get_ctl_value_v2()
353 size = sizeof(__u16) + 3 * val_size; in get_ctl_value_v2()
386 val = buf + sizeof(__u16) + val_size; in get_ctl_value_v2()
389 val = buf + sizeof(__u16) + val_size * 2; in get_ctl_value_v2()
396 snd_usb_combine_bytes(val, val_size)); in get_ctl_value_v2()
/kernel/linux/linux-5.10/drivers/net/ieee802154/
Dmrf24j40.c526 void *val, size_t val_size) in mrf24j40_long_regmap_read() argument
530 return spi_write_then_read(spi, reg, reg_size, val, val_size); in mrf24j40_long_regmap_read()
/kernel/linux/linux-5.10/tools/perf/util/
Dbpf-loader.c1365 size_t val_size, u64 val) in apply_config_value_for_key() argument
1369 switch (val_size) { in apply_config_value_for_key()
/kernel/linux/linux-5.10/fs/ceph/
Dxattr.c746 int val_size) in __get_required_blob_size() argument
760 size += 4 + 4 + name_size + val_size; in __get_required_blob_size()

12