Home
last modified time | relevance | path

Searched refs:val_len (Results 1 – 25 of 75) sorted by relevance

123

/linux-6.6.21/drivers/net/can/spi/mcp251xfd/
Dmcp251xfd-regmap.c26 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-6.6.21/drivers/net/can/m_can/
Dtcan4x5x-regmap.c19 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-6.6.21/drivers/base/regmap/
Dregmap-raw-ram.c31 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()
44 memcpy(&our_buf[r], val, val_len); in regmap_raw_ram_gather_write()
46 for (i = 0; i < val_len / 2; i++) in regmap_raw_ram_gather_write()
60 void *val, size_t val_len) in regmap_raw_ram_read() argument
69 if (val_len % 2) in regmap_raw_ram_read()
73 memcpy(val, &our_buf[r], val_len); in regmap_raw_ram_read()
75 for (i = 0; i < val_len / 2; i++) in regmap_raw_ram_read()
Dtrace.h65 const void *val, int val_len),
67 TP_ARGS(map, reg, val, val_len),
72 __dynamic_array(char, buf, val_len)
73 __field(int, val_len)
79 __entry->val_len = val_len;
80 memcpy(__get_dynamic_array(buf), val, val_len);
84 __print_hex(__get_dynamic_array(buf), __entry->val_len))
90 const void *val, int val_len),
92 TP_ARGS(map, reg, val, val_len)
98 const void *val, int val_len),
[all …]
Dregmap-spi-avmm.c526 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 …]
Dregmap.c1598 const void *val, size_t val_len, bool noinc) in _regmap_raw_write_impl() argument
1613 for (i = 0; i < val_len / map->format.val_bytes; i++) { in _regmap_raw_write_impl()
1627 i = noinc ? val_len - val_bytes : 0; in _regmap_raw_write_impl()
1628 for (; i < val_len; i += val_bytes) { in _regmap_raw_write_impl()
1647 int val_num = val_len / map->format.val_bytes; in _regmap_raw_write_impl()
1654 win_residue, val_len / map->format.val_bytes); in _regmap_raw_write_impl()
1664 val_len -= win_residue * map->format.val_bytes; in _regmap_raw_write_impl()
1686 if (val != work_val && val_len == map->format.val_bytes) { in _regmap_raw_write_impl()
1694 trace_regmap_async_write_start(map, reg, val_len); in _regmap_raw_write_impl()
1732 val, val_len, async); in _regmap_raw_write_impl()
[all …]
Dregmap-spi.c38 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-6.6.21/drivers/firmware/efi/
Dapple-properties.c57 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-6.6.21/include/linux/
Dbcm47xx_nvram.h16 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
Dregmap.h503 const void *val, size_t val_len);
506 const void *val, size_t val_len,
1215 const void *val, size_t val_len);
1217 const void *val, size_t val_len);
1226 const void *val, size_t val_len);
1229 void *val, size_t val_len);
1231 void *val, size_t val_len);
1703 const void *val, size_t val_len) in regmap_raw_write() argument
1710 const void *val, size_t val_len) in regmap_raw_write_async() argument
1717 const void *val, size_t val_len) in regmap_noinc_write() argument
[all …]
/linux-6.6.21/drivers/usb/typec/ucsi/
Ducsi_acpi.c49 void *val, size_t val_len) in ucsi_acpi_read() argument
58 memcpy(val, ua->base + offset, val_len); in ucsi_acpi_read()
64 const void *val, size_t val_len) in ucsi_acpi_async_write() argument
68 memcpy(ua->base + offset, val, val_len); in ucsi_acpi_async_write()
75 const void *val, size_t val_len) in ucsi_acpi_sync_write() argument
86 ret = ucsi_acpi_async_write(ucsi, offset, val, val_len); in ucsi_acpi_sync_write()
109 ucsi_zenbook_read(struct ucsi *ucsi, unsigned int offset, void *val, size_t val_len) in ucsi_zenbook_read() argument
120 memcpy(val, ua->base + offset, val_len); in ucsi_zenbook_read()
140 const void *val, size_t val_len) in ucsi_dell_sync_write() argument
150 ret = ucsi_acpi_sync_write(ucsi, offset, val, val_len); in ucsi_dell_sync_write()
Ducsi_glink.c80 void *val, size_t val_len) in pmic_glink_ucsi_read() argument
108 memcpy(val, &ucsi->read_buf[offset], val_len); in pmic_glink_ucsi_read()
118 const void *val, size_t val_len) in pmic_glink_ucsi_locked_write() argument
127 memcpy(&req.buf[offset], val, val_len); in pmic_glink_ucsi_locked_write()
147 const void *val, size_t val_len) in pmic_glink_ucsi_async_write() argument
153 ret = pmic_glink_ucsi_locked_write(ucsi, offset, val, val_len); in pmic_glink_ucsi_async_write()
160 const void *val, size_t val_len) in pmic_glink_ucsi_sync_write() argument
172 ret = pmic_glink_ucsi_locked_write(ucsi, offset, val, val_len); in pmic_glink_ucsi_sync_write()
Ducsi.h51 void *val, size_t val_len);
53 const void *val, size_t val_len);
55 const void *val, size_t val_len);
/linux-6.6.21/fs/ceph/
Dxattr.c569 const char *val, int val_len, in __set_xattr() argument
641 ci->i_xattrs.vals_size -= xattr->val_len; in __set_xattr()
644 ci->i_xattrs.vals_size += val_len; in __set_xattr()
650 xattr->val_len = val_len; in __set_xattr()
662 min(val_len, MAX_XATTR_VAL_PRINT_LEN), val, in __set_xattr()
663 val_len > MAX_XATTR_VAL_PRINT_LEN ? "..." : ""); in __set_xattr()
689 int len = min(xattr->val_len, MAX_XATTR_VAL_PRINT_LEN); in __get_xattr()
692 xattr->val, xattr->val_len > len ? "..." : ""); in __get_xattr()
728 ci->i_xattrs.vals_size -= xattr->val_len; in __remove_xattr()
923 ceph_encode_32(&dest, xattr->val_len); in __ceph_build_xattrs_blob()
[all …]
/linux-6.6.21/sound/soc/codecs/
Drt1019.c162 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()
Dzl38060.c508 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()
Drt1016.c310 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()
Drt1308.c456 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()
Dnau8540.c393 unsigned int val_len = 0; in nau8540_hw_params() local
413 val_len |= NAU8540_I2S_DL_16; in nau8540_hw_params()
416 val_len |= NAU8540_I2S_DL_20; in nau8540_hw_params()
419 val_len |= NAU8540_I2S_DL_24; in nau8540_hw_params()
422 val_len |= NAU8540_I2S_DL_32; in nau8540_hw_params()
429 NAU8540_I2S_DL_MASK, val_len); in nau8540_hw_params()
Drt1011.c1577 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 …]
/linux-6.6.21/drivers/net/wireless/silabs/wfx/
Dhif_tx.c172 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
176 int buf_len = sizeof(struct wfx_hif_cnf_read_mib) + val_len; in wfx_hif_read_mib()
194 wfx_get_mib_name(mib_id), val_len, le16_to_cpu(reply->length)); in wfx_hif_read_mib()
198 memset(val, 0xFF, val_len); in wfx_hif_read_mib()
205 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
209 int buf_len = sizeof(struct wfx_hif_req_write_mib) + val_len; in wfx_hif_write_mib()
215 body->length = cpu_to_le16(val_len); in wfx_hif_write_mib()
216 memcpy(&body->mib_data, val, val_len); in wfx_hif_write_mib()
/linux-6.6.21/fs/ntfs/
Dnamei.c199 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-6.6.21/drivers/media/tuners/
Dmt2060.c86 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-6.6.21/drivers/firmware/broadcom/
Dbcm47xx_nvram.c185 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-6.6.21/drivers/net/dsa/microchip/
Dksz8863_smi.c26 void *val_buf, size_t val_len) in ksz8863_mdio_read() argument
37 for (i = 0; i < val_len; i++) { in ksz8863_mdio_read()

123