Lines Matching refs:cmd

478 	__be16 cmd;  member
482 __be16 cmd; member
488 struct mcp251xfd_buf_cmd cmd; member
492 struct mcp251xfd_buf_cmd_crc cmd; member
500 struct mcp251xfd_buf_cmd cmd; member
504 struct mcp251xfd_buf_cmd_crc cmd; member
509 struct mcp251xfd_buf_cmd cmd; member
578 struct mcp251xfd_buf_cmd cmd; member
583 struct mcp251xfd_buf_cmd_crc cmd; member
713 mcp251xfd_spi_cmd_read_nocrc(struct mcp251xfd_buf_cmd *cmd, u16 addr) in mcp251xfd_spi_cmd_read_nocrc() argument
715 cmd->cmd = cpu_to_be16(MCP251XFD_SPI_INSTRUCTION_READ | addr); in mcp251xfd_spi_cmd_read_nocrc()
719 mcp251xfd_spi_cmd_write_nocrc(struct mcp251xfd_buf_cmd *cmd, u16 addr) in mcp251xfd_spi_cmd_write_nocrc() argument
721 cmd->cmd = cpu_to_be16(MCP251XFD_SPI_INSTRUCTION_WRITE | addr); in mcp251xfd_spi_cmd_write_nocrc()
734 __mcp251xfd_spi_cmd_crc_set_len(struct mcp251xfd_buf_cmd_crc *cmd, in __mcp251xfd_spi_cmd_crc_set_len() argument
739 cmd->len = len >> 2; in __mcp251xfd_spi_cmd_crc_set_len()
741 cmd->len = len; in __mcp251xfd_spi_cmd_crc_set_len()
745 mcp251xfd_spi_cmd_crc_set_len_in_ram(struct mcp251xfd_buf_cmd_crc *cmd, u16 len) in mcp251xfd_spi_cmd_crc_set_len_in_ram() argument
747 __mcp251xfd_spi_cmd_crc_set_len(cmd, len, true); in mcp251xfd_spi_cmd_crc_set_len_in_ram()
751 mcp251xfd_spi_cmd_crc_set_len_in_reg(struct mcp251xfd_buf_cmd_crc *cmd, u16 len) in mcp251xfd_spi_cmd_crc_set_len_in_reg() argument
753 __mcp251xfd_spi_cmd_crc_set_len(cmd, len, false); in mcp251xfd_spi_cmd_crc_set_len_in_reg()
757 mcp251xfd_spi_cmd_read_crc_set_addr(struct mcp251xfd_buf_cmd_crc *cmd, u16 addr) in mcp251xfd_spi_cmd_read_crc_set_addr() argument
759 cmd->cmd = cpu_to_be16(MCP251XFD_SPI_INSTRUCTION_READ_CRC | addr); in mcp251xfd_spi_cmd_read_crc_set_addr()
763 mcp251xfd_spi_cmd_read_crc(struct mcp251xfd_buf_cmd_crc *cmd, in mcp251xfd_spi_cmd_read_crc() argument
766 mcp251xfd_spi_cmd_read_crc_set_addr(cmd, addr); in mcp251xfd_spi_cmd_read_crc()
767 __mcp251xfd_spi_cmd_crc_set_len(cmd, len, mcp251xfd_reg_in_ram(addr)); in mcp251xfd_spi_cmd_read_crc()
771 mcp251xfd_spi_cmd_write_crc_set_addr(struct mcp251xfd_buf_cmd_crc *cmd, in mcp251xfd_spi_cmd_write_crc_set_addr() argument
774 cmd->cmd = cpu_to_be16(MCP251XFD_SPI_INSTRUCTION_WRITE_CRC | addr); in mcp251xfd_spi_cmd_write_crc_set_addr()
778 mcp251xfd_spi_cmd_write_safe_set_addr(struct mcp251xfd_buf_cmd *cmd, in mcp251xfd_spi_cmd_write_safe_set_addr() argument
781 cmd->cmd = cpu_to_be16(MCP251XFD_SPI_INSTRUCTION_WRITE_CRC_SAFE | addr); in mcp251xfd_spi_cmd_write_safe_set_addr()
785 mcp251xfd_spi_cmd_write_crc(struct mcp251xfd_buf_cmd_crc *cmd, in mcp251xfd_spi_cmd_write_crc() argument
788 mcp251xfd_spi_cmd_write_crc_set_addr(cmd, addr); in mcp251xfd_spi_cmd_write_crc()
789 __mcp251xfd_spi_cmd_crc_set_len(cmd, len, mcp251xfd_reg_in_ram(addr)); in mcp251xfd_spi_cmd_write_crc()
801 mcp251xfd_spi_cmd_write_safe_set_addr(&write_reg_buf->safe.cmd, in mcp251xfd_spi_cmd_write()
805 mcp251xfd_spi_cmd_write_crc_set_addr(&write_reg_buf->crc.cmd, in mcp251xfd_spi_cmd_write()
810 mcp251xfd_spi_cmd_write_nocrc(&write_reg_buf->nocrc.cmd, in mcp251xfd_spi_cmd_write()
948 u16 mcp251xfd_crc16_compute2(const void *cmd, size_t cmd_size,