Home
last modified time | relevance | path

Searched refs:write_reg_buf (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/net/can/spi/mcp251xfd/
H A Dmcp251xfd-ring.c22 union mcp251xfd_write_reg_buf *write_reg_buf, in mcp251xfd_cmd_prepare_write_reg() argument
33 data = mcp251xfd_spi_cmd_write(priv, write_reg_buf, reg + first_byte, len); in mcp251xfd_cmd_prepare_write_reg()
38 len += sizeof(write_reg_buf->nocrc.cmd); in mcp251xfd_cmd_prepare_write_reg()
43 len += sizeof(write_reg_buf->safe.cmd); in mcp251xfd_cmd_prepare_write_reg()
44 crc = mcp251xfd_crc16_compute(&write_reg_buf->safe, len); in mcp251xfd_cmd_prepare_write_reg()
45 put_unaligned_be16(crc, (void *)write_reg_buf + len); in mcp251xfd_cmd_prepare_write_reg()
48 len += sizeof(write_reg_buf->safe.crc); in mcp251xfd_cmd_prepare_write_reg()
52 mcp251xfd_spi_cmd_crc_set_len_in_reg(&write_reg_buf->crc.cmd, in mcp251xfd_cmd_prepare_write_reg()
55 len += sizeof(write_reg_buf->crc.cmd); in mcp251xfd_cmd_prepare_write_reg()
56 crc = mcp251xfd_crc16_compute(&write_reg_buf->crc, len); in mcp251xfd_cmd_prepare_write_reg()
[all …]
H A Dmcp251xfd.h794 union mcp251xfd_write_reg_buf *write_reg_buf, in mcp251xfd_spi_cmd_write() argument
801 mcp251xfd_spi_cmd_write_safe_set_addr(&write_reg_buf->safe.cmd, in mcp251xfd_spi_cmd_write()
803 data = write_reg_buf->safe.data; in mcp251xfd_spi_cmd_write()
805 mcp251xfd_spi_cmd_write_crc_set_addr(&write_reg_buf->crc.cmd, in mcp251xfd_spi_cmd_write()
807 data = write_reg_buf->crc.data; in mcp251xfd_spi_cmd_write()
810 mcp251xfd_spi_cmd_write_nocrc(&write_reg_buf->nocrc.cmd, in mcp251xfd_spi_cmd_write()
812 data = write_reg_buf->nocrc.data; in mcp251xfd_spi_cmd_write()