| /OK3568_Linux_fs/kernel/drivers/base/regmap/ |
| H A D | regmap-spmi.c | 18 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 …]
|
| H 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 …]
|
| H 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()
|
| /OK3568_Linux_fs/kernel/drivers/iio/accel/ |
| H 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()
|
| /OK3568_Linux_fs/kernel/drivers/mfd/ |
| H A D | rk806-spi.c | 62 size_t val_size) in rk806_spi_bus_read() argument 69 if (reg_size != sizeof(char) || val_size < 1) in rk806_spi_bus_read() 75 txbuf[0] = RK806_CMD_READ | (val_size - 1); in rk806_spi_bus_read() 79 return spi_write_then_read(spi, txbuf, 3, val, val_size); in rk806_spi_bus_read()
|
| H A D | rk630-spi.c | 143 void *val, size_t val_size) in rk630_regmap_read() argument 150 if (reg_size != sizeof(u32) || val_size != sizeof(u32)) in rk630_regmap_read() 155 ret = rk630_spi_read(spi, rx_buf[0], &rx_buf[1], val_size); in rk630_regmap_read() 161 memcpy(val, &rx_buf[1], val_size); in rk630_regmap_read()
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/ |
| H A D | dhd_timesync.c | 527 void *params, uint plen, void *arg, uint len, int val_size) in dhd_timesync_doiovar() argument 605 bcopy(&ts->fwts2hsts_delay, arg, val_size); in dhd_timesync_doiovar() 623 bcopy(&ts->nodrop_config, arg, val_size); in dhd_timesync_doiovar() 630 bcopy(&int_val, arg, val_size); in dhd_timesync_doiovar() 637 bcopy(&int_val, arg, val_size); in dhd_timesync_doiovar() 644 bcopy(&int_val, arg, val_size); in dhd_timesync_doiovar() 654 bcopy(&int_val, arg, val_size); in dhd_timesync_doiovar() 661 bcopy(&int_val, arg, val_size); in dhd_timesync_doiovar() 678 bcopy(&ts->h_tsconf_period, arg, val_size); in dhd_timesync_doiovar() 692 bcopy(&ts->h_clkid_max, arg, val_size); in dhd_timesync_doiovar() [all …]
|
| H A D | bcmsdh_sdmmc.c | 545 uint val_size; in sdioh_iovar_op() local 574 val_size = 0; in sdioh_iovar_op() 576 val_size = len; in sdioh_iovar_op() 578 val_size = sizeof(int); in sdioh_iovar_op() 590 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 599 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 613 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 663 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 668 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 677 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() [all …]
|
| H A D | bcmspibrcm.c | 377 uint val_size; in sdioh_iovar_op() local 410 val_size = 0; in sdioh_iovar_op() 412 val_size = len; in sdioh_iovar_op() 414 val_size = sizeof(int); in sdioh_iovar_op() 425 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 438 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 443 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 452 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 460 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 475 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/ |
| H A D | dhd_timesync.c | 527 void *params, uint plen, void *arg, uint len, int val_size) in dhd_timesync_doiovar() argument 605 bcopy(&ts->fwts2hsts_delay, arg, val_size); in dhd_timesync_doiovar() 623 bcopy(&ts->nodrop_config, arg, val_size); in dhd_timesync_doiovar() 630 bcopy(&int_val, arg, val_size); in dhd_timesync_doiovar() 637 bcopy(&int_val, arg, val_size); in dhd_timesync_doiovar() 644 bcopy(&int_val, arg, val_size); in dhd_timesync_doiovar() 654 bcopy(&int_val, arg, val_size); in dhd_timesync_doiovar() 661 bcopy(&int_val, arg, val_size); in dhd_timesync_doiovar() 678 bcopy(&ts->h_tsconf_period, arg, val_size); in dhd_timesync_doiovar() 692 bcopy(&ts->h_clkid_max, arg, val_size); in dhd_timesync_doiovar() [all …]
|
| H A D | bcmsdh_sdmmc.c | 519 uint val_size; in sdioh_iovar_op() local 548 val_size = 0; in sdioh_iovar_op() 550 val_size = len; in sdioh_iovar_op() 552 val_size = sizeof(int); in sdioh_iovar_op() 564 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 573 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 587 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 637 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 642 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 651 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() [all …]
|
| H A D | bcmspibrcm.c | 377 uint val_size; in sdioh_iovar_op() local 410 val_size = 0; in sdioh_iovar_op() 412 val_size = len; in sdioh_iovar_op() 414 val_size = sizeof(int); in sdioh_iovar_op() 425 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 438 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 443 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 452 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 460 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 475 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/ |
| H A D | bcmsdh_sdmmc.c | 507 int val_size; in sdioh_iovar_op() local 536 val_size = 0; in sdioh_iovar_op() 538 val_size = len; in sdioh_iovar_op() 540 val_size = sizeof(int); in sdioh_iovar_op() 552 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 561 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 575 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 624 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 629 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 638 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() [all …]
|
| H A D | bcmspibrcm.c | 366 int val_size; in sdioh_iovar_op() local 397 val_size = 0; in sdioh_iovar_op() 399 val_size = len; in sdioh_iovar_op() 401 val_size = sizeof(int); in sdioh_iovar_op() 410 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 423 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 428 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 437 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 445 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 460 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/infineon/ |
| H A D | bcmsdh_sdmmc.c | 523 int val_size; in sdioh_iovar_op() local 552 val_size = 0; in sdioh_iovar_op() 554 val_size = len; in sdioh_iovar_op() 556 val_size = sizeof(int); in sdioh_iovar_op() 568 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 577 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 591 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 640 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 645 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 654 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() [all …]
|
| H A D | bcmspibrcm.c | 366 int val_size; in sdioh_iovar_op() local 397 val_size = 0; in sdioh_iovar_op() 399 val_size = len; in sdioh_iovar_op() 401 val_size = sizeof(int); in sdioh_iovar_op() 410 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 423 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 428 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 437 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 445 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 460 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/infineon/bcmdhd/ |
| H A D | bcmsdh_sdmmc.c | 504 int val_size; in sdioh_iovar_op() local 533 val_size = 0; in sdioh_iovar_op() 535 val_size = len; in sdioh_iovar_op() 537 val_size = sizeof(int); in sdioh_iovar_op() 549 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 558 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 572 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 621 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 626 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 635 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() [all …]
|
| H A D | bcmspibrcm.c | 366 int val_size; in sdioh_iovar_op() local 397 val_size = 0; in sdioh_iovar_op() 399 val_size = len; in sdioh_iovar_op() 401 val_size = sizeof(int); in sdioh_iovar_op() 410 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 423 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 428 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 437 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 445 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 460 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/pinctrl/ |
| H 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()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_indep_power/ |
| H A D | bcmsdh_sdmmc.c | 499 int val_size; in sdioh_iovar_op() local 528 val_size = 0; in sdioh_iovar_op() 530 val_size = len; in sdioh_iovar_op() 532 val_size = sizeof(int); in sdioh_iovar_op() 544 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 553 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 567 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 616 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 621 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 630 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() [all …]
|
| H A D | bcmspibrcm.c | 336 int val_size; in sdioh_iovar_op() local 368 val_size = 0; in sdioh_iovar_op() 370 val_size = len; in sdioh_iovar_op() 372 val_size = sizeof(int); in sdioh_iovar_op() 383 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 396 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 401 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 410 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 418 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() 431 bcopy(&int_val, arg, val_size); in sdioh_iovar_op() [all …]
|
| H A D | dhd_common.c | 1192 void *params, int plen, void *arg, int len, int val_size) in dhd_doiovar() argument 1227 bcopy(&int_val, arg, val_size); in dhd_doiovar() 1232 bcopy(&int_val, arg, val_size); in dhd_doiovar() 1261 bcopy(&int_val, arg, val_size); in dhd_doiovar() 1278 bcopy(&int_val, arg, val_size); in dhd_doiovar() 1298 bcopy(&int_val, arg, val_size); in dhd_doiovar() 1323 bcopy(&int_val, arg, val_size); in dhd_doiovar() 1401 bcopy(&int_val, arg, val_size); in dhd_doiovar() 1425 bcopy(&int_val, arg, val_size); in dhd_doiovar() 1436 bcopy(&int_val, arg, val_size); in dhd_doiovar() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/bluetooth/ |
| H A D | btintel.c | 531 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()
|
| /OK3568_Linux_fs/kernel/drivers/rtc/ |
| H A D | rtc-pcf2127.c | 717 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()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/microchip/ |
| H 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()
|