/linux/drivers/net/can/spi/mcp251xfd/ |
H A D | mcp251xfd-regmap.c | 26 const void *val, size_t val_len) in mcp251xfd_regmap_nocrc_gather_write() argument 34 .len = sizeof(buf_tx->cmd) + val_len, in mcp251xfd_regmap_nocrc_gather_write() 45 memcpy(buf_tx->data, val, val_len); in mcp251xfd_regmap_nocrc_gather_write() 151 void *val_buf, size_t val_len) in mcp251xfd_regmap_nocrc_read() argument 176 xfer[1].len = val_len; in mcp251xfd_regmap_nocrc_read() 181 xfer[0].len = sizeof(buf_tx->cmd) + val_len; in mcp251xfd_regmap_nocrc_read() 185 memset(buf_tx->data, 0x0, val_len); in mcp251xfd_regmap_nocrc_read() 193 memcpy(val_buf, buf_rx->data, val_len); in mcp251xfd_regmap_nocrc_read() 201 const void *val, size_t val_len) in mcp251xfd_regmap_crc_gather_write() argument 209 .len = sizeof(buf_tx->cmd) + val_len + in mcp251xfd_regmap_crc_gather_write() [all …]
|
/linux/drivers/base/regmap/ |
H A D | regmap-raw-ram.c | 31 const void *val, size_t val_len) in regmap_raw_ram_gather_write() argument 40 if (val_len % 2) in regmap_raw_ram_gather_write() 45 memcpy(&our_buf[r], val + val_len - 2, 2); in regmap_raw_ram_gather_write() 48 memcpy(&our_buf[r], val, val_len); in regmap_raw_ram_gather_write() 50 for (i = 0; i < val_len / 2; i++) in regmap_raw_ram_gather_write() 65 void *val, size_t val_len) in regmap_raw_ram_read() argument 74 if (val_len % 2) in regmap_raw_ram_read() 79 for (i = 0; i < val_len; i += 2) in regmap_raw_ram_read() 83 memcpy(val, &our_buf[r], val_len); in regmap_raw_ram_read() 85 for (i = 0; i < val_len / 2; i++) in regmap_raw_ram_read()
|
H A D | regmap-spi-avmm.c | 526 u16 val_len; in br_wr_trans_rx_parse() local 534 val_len = be16_to_cpu(resp->size); in br_wr_trans_rx_parse() 535 if (!val_len || val_len != expected_count * SPI_AVMM_VAL_SIZE) in br_wr_trans_rx_parse() 539 if ((val_len == SPI_AVMM_VAL_SIZE && code != TRANS_CODE_WRITE) || in br_wr_trans_rx_parse() 540 (val_len > SPI_AVMM_VAL_SIZE && code != TRANS_CODE_SEQ_WRITE)) in br_wr_trans_rx_parse() 580 const void *val_buf, size_t val_len) in regmap_spi_avmm_gather_write() argument 585 if (!IS_ALIGNED(val_len, SPI_AVMM_VAL_SIZE)) in regmap_spi_avmm_gather_write() 589 val_len / SPI_AVMM_VAL_SIZE); in regmap_spi_avmm_gather_write() 604 void *val_buf, size_t val_len) in regmap_spi_avmm_read() argument 609 if (!IS_ALIGNED(val_len, SPI_AVMM_VAL_SIZE)) in regmap_spi_avmm_read() [all …]
|
H A D | regmap-spi.c | 38 const void *val, size_t val_len) in regmap_spi_gather_write() argument 44 { .tx_buf = val, .len = val_len, }, }; in regmap_spi_gather_write() 55 const void *val, size_t val_len, in regmap_spi_async_write() argument 67 async->t[1].len = val_len; in regmap_spi_async_write()
|
/linux/drivers/net/can/m_can/ |
H A D | tcan4x5x-regmap.c | 19 const void *val, size_t val_len) in tcan4x5x_regmap_gather_write() argument 27 .len = sizeof(buf_tx->cmd) + val_len, in tcan4x5x_regmap_gather_write() 33 tcan4x5x_spi_cmd_set_len(&buf_tx->cmd, val_len); in tcan4x5x_regmap_gather_write() 34 memcpy(buf_tx->data, val, val_len); in tcan4x5x_regmap_gather_write() 48 void *val_buf, size_t val_len) in tcan4x5x_regmap_read() argument 67 tcan4x5x_spi_cmd_set_len(&buf_tx->cmd, val_len); in tcan4x5x_regmap_read() 73 xfer[1].len = val_len; in tcan4x5x_regmap_read() 77 xfer[0].len = sizeof(buf_tx->cmd) + val_len; in tcan4x5x_regmap_read() 80 memset(buf_tx->data, 0x0, val_len); in tcan4x5x_regmap_read() 88 memcpy(val_buf, buf_rx->data, val_len); in tcan4x5x_regmap_read()
|
/linux/drivers/firmware/efi/ |
H A D | apple-properties.c | 57 u32 key_len, val_len, entry_len; in unmarshal_key_value_pairs() local 65 if (key_len + sizeof(val_len) > remaining || in unmarshal_key_value_pairs() 73 val_len = *(typeof(val_len) *)(ptr + key_len); in unmarshal_key_value_pairs() 74 if (key_len + val_len > remaining || in unmarshal_key_value_pairs() 75 val_len < sizeof(val_len)) { in unmarshal_key_value_pairs() 90 entry_data = ptr + key_len + sizeof(val_len); in unmarshal_key_value_pairs() 91 entry_len = val_len - sizeof(val_len); in unmarshal_key_value_pairs() 104 ptr += key_len + val_len; in unmarshal_key_value_pairs()
|
/linux/include/linux/ |
H A D | bcm47xx_nvram.h | 16 int bcm47xx_nvram_getenv(const char *name, char *val, size_t val_len); 18 char *bcm47xx_nvram_get_contents(size_t *val_len); 34 size_t val_len) in bcm47xx_nvram_getenv() argument 43 static inline char *bcm47xx_nvram_get_contents(size_t *val_len) in bcm47xx_nvram_get_contents() argument
|
H A D | regmap.h | 515 const void *val, size_t val_len); 518 const void *val, size_t val_len, 1227 const void *val, size_t val_len); 1229 const void *val, size_t val_len); 1238 const void *val, size_t val_len); 1242 void *val, size_t val_len); 1244 void *val, size_t val_len); 1731 const void *val, size_t val_len) in regmap_raw_write() argument 1738 const void *val, size_t val_len) in regmap_raw_write_async() argument 1745 const void *val, size_t val_len) in regmap_noinc_write() argument [all …]
|
/linux/fs/ceph/ |
H A D | xattr.c | 570 const char *val, int val_len, in __set_xattr() argument 644 ci->i_xattrs.vals_size -= xattr->val_len; in __set_xattr() 647 ci->i_xattrs.vals_size += val_len; in __set_xattr() 653 xattr->val_len = val_len; in __set_xattr() 664 ceph_vinop(inode), xattr, name_len, name, min(val_len, in __set_xattr() 666 val_len > MAX_XATTR_VAL_PRINT_LEN ? "..." : ""); in __set_xattr() 693 int len = min(xattr->val_len, MAX_XATTR_VAL_PRINT_LEN); in __get_xattr() 696 xattr->val_len > len ? "..." : ""); in __get_xattr() 732 ci->i_xattrs.vals_size -= xattr->val_len; in __remove_xattr() 932 ceph_encode_32(&dest, xattr->val_len); in __ceph_build_xattrs_blob() [all …]
|
/linux/sound/soc/codecs/ |
H A D | rt1019.c | 162 unsigned int val_len = 0, sys_div_da_filter = 0; in rt1019_hw_params() local 217 val_len = RT1019_I2S_DL_20; in rt1019_hw_params() 220 val_len = RT1019_I2S_DL_24; in rt1019_hw_params() 223 val_len = RT1019_I2S_DL_32; in rt1019_hw_params() 226 val_len = RT1019_I2S_DL_8; in rt1019_hw_params() 233 val_len); in rt1019_hw_params()
|
H A D | rt1016.c | 310 unsigned int val_len = 0; in rt1016_hw_params() local 338 val_len = RT1016_I2S_DL_16; in rt1016_hw_params() 341 val_len = RT1016_I2S_DL_20; in rt1016_hw_params() 344 val_len = RT1016_I2S_DL_24; in rt1016_hw_params() 347 val_len = RT1016_I2S_DL_32; in rt1016_hw_params() 354 RT1016_I2S_DL_MASK, val_len); in rt1016_hw_params()
|
H A D | zl38060.c | 508 size_t val_len, len = 0; in zl38_bus_write() local 514 val_len = count - 2; in zl38_bus_write() 522 buf[len++] = (val_len / 2 - 1) | 0x80; in zl38_bus_write() 525 buf[len++] = (val_len / 2 - 1) | 0x80; in zl38_bus_write() 527 memcpy(buf + len, data8 + 2, val_len); in zl38_bus_write() 528 len += val_len; in zl38_bus_write()
|
H A D | rt1308.c | 456 unsigned int val_len = 0, val_clk, mask_clk; in rt1308_hw_params() local 485 val_len |= RT1308_I2S_DL_SEL_16B; in rt1308_hw_params() 488 val_len |= RT1308_I2S_DL_SEL_20B; in rt1308_hw_params() 491 val_len |= RT1308_I2S_DL_SEL_24B; in rt1308_hw_params() 494 val_len |= RT1308_I2S_DL_SEL_8B; in rt1308_hw_params() 506 val_len); in rt1308_hw_params()
|
H A D | rt1011.c | 1577 unsigned int val_len = 0, ch_len = 0, val_clk, mask_clk; in rt1011_hw_params() local 1608 val_len |= RT1011_I2S_TX_DL_16B; in rt1011_hw_params() 1609 val_len |= RT1011_I2S_RX_DL_16B; in rt1011_hw_params() 1614 val_len |= RT1011_I2S_TX_DL_20B; in rt1011_hw_params() 1615 val_len |= RT1011_I2S_RX_DL_20B; in rt1011_hw_params() 1620 val_len |= RT1011_I2S_TX_DL_24B; in rt1011_hw_params() 1621 val_len |= RT1011_I2S_RX_DL_24B; in rt1011_hw_params() 1626 val_len |= RT1011_I2S_TX_DL_32B; in rt1011_hw_params() 1627 val_len |= RT1011_I2S_RX_DL_32B; in rt1011_hw_params() 1632 val_len |= RT1011_I2S_TX_DL_8B; in rt1011_hw_params() [all …]
|
H A D | nau8540.c | 437 unsigned int val_len = 0; in nau8540_hw_params() local 457 val_len |= NAU8540_I2S_DL_16; in nau8540_hw_params() 460 val_len |= NAU8540_I2S_DL_20; in nau8540_hw_params() 463 val_len |= NAU8540_I2S_DL_24; in nau8540_hw_params() 466 val_len |= NAU8540_I2S_DL_32; in nau8540_hw_params() 473 NAU8540_I2S_DL_MASK, val_len); in nau8540_hw_params()
|
H A D | nau8325.c | 508 unsigned int val_len = 0; in nau8325_hw_params() local 528 val_len |= NAU8325_I2S_DL_16; in nau8325_hw_params() 531 val_len |= NAU8325_I2S_DL_20; in nau8325_hw_params() 534 val_len |= NAU8325_I2S_DL_24; in nau8325_hw_params() 537 val_len |= NAU8325_I2S_DL_32; in nau8325_hw_params() 545 NAU8325_I2S_DL_MASK, val_len); in nau8325_hw_params()
|
H A D | rt1305.c | 628 unsigned int val_len = 0, val_clk, mask_clk; in rt1305_hw_params() local 659 val_len |= RT1305_I2S_DL_SEL_16B; in rt1305_hw_params() 662 val_len |= RT1305_I2S_DL_SEL_20B; in rt1305_hw_params() 665 val_len |= RT1305_I2S_DL_SEL_24B; in rt1305_hw_params() 668 val_len |= RT1305_I2S_DL_SEL_8B; in rt1305_hw_params() 680 val_len); in rt1305_hw_params()
|
H A D | rt1015.c | 705 unsigned int val_len = 0; in rt1015_hw_params() local 730 val_len = RT1015_I2S_DL_20; in rt1015_hw_params() 733 val_len = RT1015_I2S_DL_24; in rt1015_hw_params() 736 val_len = RT1015_I2S_DL_8; in rt1015_hw_params() 743 RT1015_I2S_DL_MASK, val_len); in rt1015_hw_params()
|
H A D | nau8810.c | 703 int val_len = 0, val_rate = 0, ret = 0; in nau8810_pcm_hw_params() local 727 val_len |= NAU8810_WLEN_20; in nau8810_pcm_hw_params() 730 val_len |= NAU8810_WLEN_24; in nau8810_pcm_hw_params() 733 val_len |= NAU8810_WLEN_32; in nau8810_pcm_hw_params() 759 NAU8810_WLEN_MASK, val_len); in nau8810_pcm_hw_params()
|
/linux/fs/bcachefs/ |
H A D | xattr.h | 18 static inline unsigned xattr_val_u64s(unsigned name_len, unsigned val_len) in xattr_val_u64s() argument 21 name_len + val_len, sizeof(u64)); in xattr_val_u64s()
|
/linux/drivers/net/wireless/silabs/wfx/ |
H A D | hif_tx.c | 190 int wfx_hif_read_mib(struct wfx_dev *wdev, int vif_id, u16 mib_id, void *val, size_t val_len) in wfx_hif_read_mib() argument 194 int buf_len = sizeof(struct wfx_hif_cnf_read_mib) + val_len; in wfx_hif_read_mib() 212 wfx_get_mib_name(mib_id), val_len, le16_to_cpu(reply->length)); in wfx_hif_read_mib() 216 memset(val, 0xFF, val_len); in wfx_hif_read_mib() 223 int wfx_hif_write_mib(struct wfx_dev *wdev, int vif_id, u16 mib_id, void *val, size_t val_len) in wfx_hif_write_mib() argument 227 int buf_len = sizeof(struct wfx_hif_req_write_mib) + val_len; in wfx_hif_write_mib() 233 body->length = cpu_to_le16(val_len); in wfx_hif_write_mib() 234 memcpy(&body->mib_data, val, val_len); in wfx_hif_write_mib()
|
/linux/drivers/media/tuners/ |
H A D | mt2060.c | 86 int rem, val_len; in mt2060_writeregs() local 100 val_len = min_t(int, rem, priv->i2c_max_regs); in mt2060_writeregs() 101 msg.len = 1 + val_len; in mt2060_writeregs() 103 memcpy(&xfer_buf[1], &buf[1 + len - 1 - rem], val_len); in mt2060_writeregs() 106 printk(KERN_WARNING "mt2060 I2C write failed (len=%i)\n", val_len); in mt2060_writeregs()
|
/linux/drivers/usb/typec/ucsi/ |
H A D | ucsi_yoga_c630.c | 51 void *val, size_t val_len) in yoga_c630_ucsi_read_message_in() argument 62 min(val_len, YOGA_C630_UCSI_DATA_SIZE)); in yoga_c630_ucsi_read_message_in()
|
/linux/drivers/firmware/broadcom/ |
H A D | bcm47xx_nvram.c | 185 int bcm47xx_nvram_getenv(const char *name, char *val, size_t val_len) in bcm47xx_nvram_getenv() argument 209 return snprintf(val, val_len, "%s", value); in bcm47xx_nvram_getenv()
|
/linux/drivers/net/dsa/microchip/ |
H A D | ksz8863_smi.c | 26 void *val_buf, size_t val_len) in ksz8863_mdio_read() argument 37 for (i = 0; i < val_len; i++) { in ksz8863_mdio_read()
|