Home
last modified time | relevance | path

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

/drivers/base/regmap/
Dregmap-spmi.c27 void *val, size_t val_size) in regmap_spmi_base_read() argument
34 while (val_size-- && !err) in regmap_spmi_base_read()
42 const void *val, size_t val_size) in regmap_spmi_base_gather_write() argument
54 if (addr == 0 && val_size) { in regmap_spmi_base_gather_write()
61 val_size--; in regmap_spmi_base_gather_write()
64 while (val_size) { in regmap_spmi_base_gather_write()
71 val_size--; in regmap_spmi_base_gather_write()
116 void *val, size_t val_size) in regmap_spmi_ext_read() argument
130 while (addr <= 0xFF && val_size) { in regmap_spmi_ext_read()
131 len = min_t(size_t, val_size, 16); in regmap_spmi_ext_read()
[all …]
Dregmap-i2c.c144 const void *val, size_t val_size) in regmap_i2c_gather_write() argument
164 xfer[1].len = val_size; in regmap_i2c_gather_write()
178 void *val, size_t val_size) in regmap_i2c_read() argument
192 xfer[1].len = val_size; in regmap_i2c_read()
230 size_t val_size) in regmap_i2c_smbus_i2c_read() argument
236 if (reg_size != 1 || val_size < 1) in regmap_i2c_smbus_i2c_read()
238 if (val_size >= I2C_SMBUS_BLOCK_MAX) in regmap_i2c_smbus_i2c_read()
241 ret = i2c_smbus_read_i2c_block_data(i2c, ((u8 *)reg)[0], val_size, val); in regmap_i2c_smbus_i2c_read()
242 if (ret == val_size) in regmap_i2c_smbus_i2c_read()
Dregmap-spi.c97 void *val, size_t val_size) in regmap_spi_read() argument
102 return spi_write_then_read(spi, reg, reg_size, val, val_size); in regmap_spi_read()
/drivers/bluetooth/
Dbtintel.c403 void *val, size_t val_size) in regmap_ibt_read() argument
414 switch (val_size) { in regmap_ibt_read()
430 cp.len = val_size; in regmap_ibt_read()
443 if (skb->len != sizeof(*rp) + val_size) { in regmap_ibt_read()
459 memcpy(val, rp->data, val_size); in regmap_ibt_read()
468 const void *val, size_t val_size) in regmap_ibt_gather_write() argument
473 int plen = sizeof(*cp) + val_size; in regmap_ibt_gather_write()
480 switch (val_size) { in regmap_ibt_gather_write()
501 cp->len = val_size; in regmap_ibt_gather_write()
502 memcpy(&cp->data, val, val_size); in regmap_ibt_gather_write()
/drivers/rtc/
Drtc-pcf2127.c222 const void *val, size_t val_size) in pcf2127_i2c_gather_write() argument
232 buf = kmalloc(val_size + 1, GFP_KERNEL); in pcf2127_i2c_gather_write()
237 memcpy(buf + 1, val, val_size); in pcf2127_i2c_gather_write()
239 ret = i2c_master_send(client, buf, val_size + 1); in pcf2127_i2c_gather_write()
240 if (ret != val_size + 1) in pcf2127_i2c_gather_write()
247 void *val, size_t val_size) in pcf2127_i2c_read() argument
260 ret = i2c_master_recv(client, val, val_size); in pcf2127_i2c_read()
261 if (ret != val_size) in pcf2127_i2c_read()
/drivers/net/ethernet/microchip/
Dencx24j600-regmap.c267 void *val, size_t val_size) in regmap_encx24j600_read() argument
277 return regmap_encx24j600_spi_read(context, reg, val, val_size); in regmap_encx24j600_read()
279 if (val_size > 2) { in regmap_encx24j600_read()
280 pr_err("%s: reg=%02x val_size=%zu\n", __func__, reg, val_size); in regmap_encx24j600_read()
284 return regmap_encx24j600_sfr_read(context, reg, val, val_size); in regmap_encx24j600_read()
/drivers/iio/pressure/
Dbmp280-spi.c31 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()
/drivers/mfd/
Dmc13xxx-spi.c64 void *val, size_t val_size) in mc13xxx_spi_read() argument
80 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()
/drivers/clk/
Dclk-cdce925.c517 const void *reg, size_t reg_size, void *val, size_t val_size) in cdce925_regmap_i2c_read() argument
531 if (val_size == 1) { in cdce925_regmap_i2c_read()
538 reg_data[1] = val_size; in cdce925_regmap_i2c_read()
544 xfer[1].len = val_size; in cdce925_regmap_i2c_read()
550 reg_size, val_size, reg_data[0], *((u8 *)val)); in cdce925_regmap_i2c_read()
/drivers/media/dvb-frontends/
Drtl2830.c701 size_t reg_size, void *val_buf, size_t val_size) in rtl2830_regmap_read() argument
714 .len = val_size, in rtl2830_regmap_read()
/drivers/net/ieee802154/
Dmrf24j40.c534 void *val, size_t val_size) in mrf24j40_long_regmap_read() argument
538 return spi_write_then_read(spi, reg, reg_size, val, val_size); in mrf24j40_long_regmap_read()