Lines Matching refs:write_reg_buf
22 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()
57 put_unaligned_be16(crc, (void *)write_reg_buf + len); in mcp251xfd_cmd_prepare_write_reg()
60 len += sizeof(write_reg_buf->crc.crc); in mcp251xfd_cmd_prepare_write_reg()