Lines Matching refs:val_len
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()
171 xfer[0].len = sizeof(buf_tx->cmd) + val_len; in mcp251xfd_regmap_nocrc_read()
175 memset(buf_tx->data, 0x0, val_len); in mcp251xfd_regmap_nocrc_read()
183 memcpy(val_buf, buf_rx->data, val_len); in mcp251xfd_regmap_nocrc_read()
191 const void *val, size_t val_len) in mcp251xfd_regmap_crc_gather_write() argument
199 .len = sizeof(buf_tx->cmd) + val_len + in mcp251xfd_regmap_crc_gather_write()
213 mcp251xfd_spi_cmd_write_crc(&buf_tx->cmd, reg, val_len); in mcp251xfd_regmap_crc_gather_write()
214 memcpy(buf_tx->data, val, val_len); in mcp251xfd_regmap_crc_gather_write()
216 crc = mcp251xfd_crc16_compute(buf_tx, sizeof(buf_tx->cmd) + val_len); in mcp251xfd_regmap_crc_gather_write()
217 put_unaligned_be16(crc, buf_tx->data + val_len); in mcp251xfd_regmap_crc_gather_write()
275 void *val_buf, size_t val_len) in mcp251xfd_regmap_crc_read() argument
302 xfer[1].len = val_len + sizeof(buf_tx->crc); in mcp251xfd_regmap_crc_read()
307 xfer[0].len = sizeof(buf_tx->cmd) + val_len + in mcp251xfd_regmap_crc_read()
311 memset(buf_tx->data, 0x0, val_len + in mcp251xfd_regmap_crc_read()
315 mcp251xfd_spi_cmd_read_crc(&buf_tx->cmd, reg, val_len); in mcp251xfd_regmap_crc_read()
318 err = mcp251xfd_regmap_crc_read_one(priv, &msg, val_len); in mcp251xfd_regmap_crc_read()
347 val_len); in mcp251xfd_regmap_crc_read()
379 reg, val_len, (int)val_len, buf_rx->data, in mcp251xfd_regmap_crc_read()
380 get_unaligned_be16(buf_rx->data + val_len)); in mcp251xfd_regmap_crc_read()
386 reg, val_len, (int)val_len, buf_rx->data, in mcp251xfd_regmap_crc_read()
387 get_unaligned_be16(buf_rx->data + val_len)); in mcp251xfd_regmap_crc_read()
392 memcpy(val_buf, buf_rx->data, val_len); in mcp251xfd_regmap_crc_read()