/linux/drivers/net/can/spi/mcp251xfd/ |
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() 141 void *val_buf, size_t val_len) in mcp251xfd_regmap_nocrc_read() argument 166 xfer[1].len = val_len; in mcp251xfd_regmap_nocrc_read() 175 memset(buf_tx->data, 0x0, val_len); in mcp251xfd_regmap_nocrc_read() 214 memcpy(buf_tx->data, val, val_len); in mcp251xfd_regmap_crc_gather_write() 275 void *val_buf, size_t val_len) in mcp251xfd_regmap_crc_read() argument 347 val_len); in mcp251xfd_regmap_crc_read() 379 reg, val_len, (int)val_len, buf_rx->data, in mcp251xfd_regmap_crc_read() [all …]
|
/linux/drivers/net/can/m_can/ |
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/ |
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/ |
A D | bcm47xx_nvram.h | 15 int bcm47xx_nvram_getenv(const char *name, char *val, size_t val_len); 17 char *bcm47xx_nvram_get_contents(size_t *val_len); 28 size_t val_len) in bcm47xx_nvram_getenv() argument 37 static inline char *bcm47xx_nvram_get_contents(size_t *val_len) in bcm47xx_nvram_get_contents() argument
|
A D | regmap.h | 460 const void *val, size_t val_len, 1125 const void *val, size_t val_len); 1127 const void *val, size_t val_len); 1136 const void *val, size_t val_len); 1139 void *val, size_t val_len); 1141 void *val, size_t val_len); 1579 const void *val, size_t val_len) in regmap_raw_write() argument 1586 const void *val, size_t val_len) in regmap_raw_write_async() argument 1593 const void *val, size_t val_len) in regmap_noinc_write() argument 1614 void *val, size_t val_len) in regmap_raw_read() argument [all …]
|
/linux/drivers/base/regmap/ |
A D | regmap-spi-avmm.c | 532 u16 val_len; in br_wr_trans_rx_parse() local 540 val_len = be16_to_cpu(resp->size); in br_wr_trans_rx_parse() 541 if (!val_len || val_len != expected_count * SPI_AVMM_VAL_SIZE) in br_wr_trans_rx_parse() 545 if ((val_len == SPI_AVMM_VAL_SIZE && code != TRANS_CODE_WRITE) || in br_wr_trans_rx_parse() 546 (val_len > SPI_AVMM_VAL_SIZE && code != TRANS_CODE_SEQ_WRITE)) in br_wr_trans_rx_parse() 586 const void *val_buf, size_t val_len) in regmap_spi_avmm_gather_write() argument 591 if (!IS_ALIGNED(val_len, SPI_AVMM_VAL_SIZE)) in regmap_spi_avmm_gather_write() 595 val_len / SPI_AVMM_VAL_SIZE); in regmap_spi_avmm_gather_write() 610 void *val_buf, size_t val_len) in regmap_spi_avmm_read() argument 615 if (!IS_ALIGNED(val_len, SPI_AVMM_VAL_SIZE)) in regmap_spi_avmm_read() [all …]
|
A D | regmap.c | 1821 val_len); in _regmap_raw_write_impl() 2068 if (val_len) in _regmap_raw_write() 2145 if (val_len == 0) in regmap_noinc_write() 2155 while (val_len) { in regmap_noinc_write() 2681 val, val_len); in _regmap_raw_read() 2785 size_t val_len) in regmap_raw_read() argument 2833 if (val_len) { in regmap_raw_read() 2894 if (val_len == 0) in regmap_noinc_read() 2904 while (val_len) { in regmap_noinc_read() 2908 read_len = val_len; in regmap_noinc_read() [all …]
|
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/usb/typec/ucsi/ |
A D | ucsi_acpi.c | 45 void *val, size_t val_len) in ucsi_acpi_read() argument 54 memcpy(val, (const void __force *)(ua->base + offset), val_len); in ucsi_acpi_read() 60 const void *val, size_t val_len) in ucsi_acpi_async_write() argument 64 memcpy((void __force *)(ua->base + offset), val, val_len); in ucsi_acpi_async_write() 70 const void *val, size_t val_len) in ucsi_acpi_sync_write() argument 77 ret = ucsi_acpi_async_write(ucsi, offset, val, val_len); in ucsi_acpi_sync_write()
|
A D | ucsi.h | 50 void *val, size_t val_len); 52 const void *val, size_t val_len); 54 const void *val, size_t val_len);
|
/linux/drivers/infiniband/core/ |
A D | uverbs_std_types_flow_action.c | 143 size_t val_len; in parse_esp_ip() local 160 val_len = min_t(size_t, len, sizeof(user_val.ipv4)); in parse_esp_ip() 162 val_len); in parse_esp_ip() 174 val_len = min_t(size_t, len, sizeof(user_val.ipv6)); in parse_esp_ip() 176 val_len); in parse_esp_ip() 188 val_len, out); in parse_esp_ip()
|
/linux/tools/vm/ |
A D | page_owner_sort.c | 77 int err, val_len, order_val; in get_page_num() local 87 val_len = pmatch[1].rm_eo - pmatch[1].rm_so; in get_page_num() 88 if (val_len > 2) /* max_order should not exceed 2 digits */ in get_page_num() 91 memcpy(order_str, buf + pmatch[1].rm_so, val_len); in get_page_num()
|
/linux/fs/ceph/ |
A D | xattr.c | 532 const char *val, int val_len, in __set_xattr() argument 607 ci->i_xattrs.vals_size += val_len; in __set_xattr() 613 xattr->val_len = val_len; in __set_xattr() 651 xattr->val_len, xattr->val); in __get_xattr() 687 ci->i_xattrs.vals_size -= xattr->val_len; in __remove_xattr() 882 ceph_encode_32(&dest, xattr->val_len); in __ceph_build_xattrs_blob() 884 dest += xattr->val_len; in __ceph_build_xattrs_blob() 985 if (size && size < xattr->val_len) in __ceph_getxattr() 988 err = xattr->val_len; in __ceph_getxattr() 1124 int val_len = size; in __ceph_setxattr() local [all …]
|
/linux/sound/soc/codecs/ |
A D | rt1019.c | 163 unsigned int val_len = 0, sys_div_da_filter = 0; in rt1019_hw_params() local 218 val_len = RT1019_I2S_DL_20; in rt1019_hw_params() 221 val_len = RT1019_I2S_DL_24; in rt1019_hw_params() 224 val_len = RT1019_I2S_DL_32; in rt1019_hw_params() 227 val_len = RT1019_I2S_DL_8; in rt1019_hw_params() 234 val_len); in rt1019_hw_params()
|
A D | zl38060.c | 509 size_t val_len, len = 0; in zl38_bus_write() local 515 val_len = count - 2; in zl38_bus_write() 523 buf[len++] = (val_len / 2 - 1) | 0x80; in zl38_bus_write() 526 buf[len++] = (val_len / 2 - 1) | 0x80; in zl38_bus_write() 528 memcpy(buf + len, data8 + 2, val_len); in zl38_bus_write() 529 len += val_len; in zl38_bus_write()
|
A D | rt1016.c | 311 unsigned int val_len = 0; in rt1016_hw_params() local 339 val_len = RT1016_I2S_DL_16; in rt1016_hw_params() 342 val_len = RT1016_I2S_DL_20; in rt1016_hw_params() 345 val_len = RT1016_I2S_DL_24; in rt1016_hw_params() 348 val_len = RT1016_I2S_DL_32; in rt1016_hw_params() 355 RT1016_I2S_DL_MASK, val_len); in rt1016_hw_params()
|
A D | rt1308.c | 458 unsigned int val_len = 0, val_clk, mask_clk; in rt1308_hw_params() local 487 val_len |= RT1308_I2S_DL_SEL_16B; in rt1308_hw_params() 490 val_len |= RT1308_I2S_DL_SEL_20B; in rt1308_hw_params() 493 val_len |= RT1308_I2S_DL_SEL_24B; in rt1308_hw_params() 496 val_len |= RT1308_I2S_DL_SEL_8B; in rt1308_hw_params() 508 val_len); in rt1308_hw_params()
|
A D | nau8540.c | 378 unsigned int val_len = 0, osr; in nau8540_hw_params() local 396 val_len |= NAU8540_I2S_DL_16; in nau8540_hw_params() 399 val_len |= NAU8540_I2S_DL_20; in nau8540_hw_params() 402 val_len |= NAU8540_I2S_DL_24; in nau8540_hw_params() 405 val_len |= NAU8540_I2S_DL_32; in nau8540_hw_params() 412 NAU8540_I2S_DL_MASK, val_len); in nau8540_hw_params()
|
A D | rt1011.c | 1610 val_len |= RT1011_I2S_TX_DL_16B; in rt1011_hw_params() 1611 val_len |= RT1011_I2S_RX_DL_16B; in rt1011_hw_params() 1616 val_len |= RT1011_I2S_TX_DL_20B; in rt1011_hw_params() 1617 val_len |= RT1011_I2S_RX_DL_20B; in rt1011_hw_params() 1622 val_len |= RT1011_I2S_TX_DL_24B; in rt1011_hw_params() 1623 val_len |= RT1011_I2S_RX_DL_24B; in rt1011_hw_params() 1628 val_len |= RT1011_I2S_TX_DL_32B; in rt1011_hw_params() 1629 val_len |= RT1011_I2S_RX_DL_32B; in rt1011_hw_params() 1634 val_len |= RT1011_I2S_TX_DL_8B; in rt1011_hw_params() 1635 val_len |= RT1011_I2S_RX_DL_8B; in rt1011_hw_params() [all …]
|
A D | rt1305.c | 630 unsigned int val_len = 0, val_clk, mask_clk; in rt1305_hw_params() local 661 val_len |= RT1305_I2S_DL_SEL_16B; in rt1305_hw_params() 664 val_len |= RT1305_I2S_DL_SEL_20B; in rt1305_hw_params() 667 val_len |= RT1305_I2S_DL_SEL_24B; in rt1305_hw_params() 670 val_len |= RT1305_I2S_DL_SEL_8B; in rt1305_hw_params() 682 val_len); in rt1305_hw_params()
|
A D | nau8810.c | 700 int val_len = 0, val_rate = 0, ret = 0; in nau8810_pcm_hw_params() local 724 val_len |= NAU8810_WLEN_20; in nau8810_pcm_hw_params() 727 val_len |= NAU8810_WLEN_24; in nau8810_pcm_hw_params() 730 val_len |= NAU8810_WLEN_32; in nau8810_pcm_hw_params() 756 NAU8810_WLEN_MASK, val_len); in nau8810_pcm_hw_params()
|
/linux/drivers/staging/wfx/ |
A D | hif_tx.c | 176 void *val, size_t val_len) in hif_read_mib() argument 180 int buf_len = sizeof(struct hif_cnf_read_mib) + val_len; in hif_read_mib() 199 get_mib_name(mib_id), val_len, in hif_read_mib() 204 memset(val, 0xFF, val_len); in hif_read_mib() 212 void *val, size_t val_len) in hif_write_mib() argument 216 int buf_len = sizeof(struct hif_req_write_mib) + val_len; in hif_write_mib() 222 body->length = cpu_to_le16(val_len); in hif_write_mib() 223 memcpy(&body->mib_data, val, val_len); in hif_write_mib()
|
/linux/fs/ntfs/ |
A D | namei.c | 199 u32 val_len; in ntfs_lookup() local 215 val_len = le32_to_cpu(a->data.resident.value_length); in ntfs_lookup() 217 val_len > le32_to_cpu(a->length)) in ntfs_lookup() 222 sizeof(FILE_NAME_ATTR)) > val_len) in ntfs_lookup()
|
/linux/drivers/media/tuners/ |
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/firmware/broadcom/ |
A D | bcm47xx_nvram.c | 167 int bcm47xx_nvram_getenv(const char *name, char *val, size_t val_len) in bcm47xx_nvram_getenv() argument 191 return snprintf(val, val_len, "%s", value); in bcm47xx_nvram_getenv()
|