/drivers/base/regmap/ |
D | regmap-spmi.c | 27 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 …]
|
D | regmap-i2c.c | 144 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()
|
D | regmap-spi.c | 97 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/ |
D | btintel.c | 403 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/ |
D | rtc-pcf2127.c | 222 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/ |
D | encx24j600-regmap.c | 267 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/ |
D | bmp280-spi.c | 31 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/ |
D | mc13xxx-spi.c | 64 void *val, size_t val_size) in mc13xxx_spi_read() argument 80 if (val_size != 3 || reg_size != 1) in mc13xxx_spi_read()
|
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()
|
/drivers/clk/ |
D | clk-cdce925.c | 517 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/ |
D | rtl2830.c | 701 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/ |
D | mrf24j40.c | 534 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()
|