Lines Matching refs:cmd_buf
52 uint8_t cmd_buf[3] = { ADT7310_READ_CMD | (reg << 3) }; in adt7310_temp_reg_read() local
54 const struct spi_buf tx_buf = { .buf = cmd_buf, .len = sizeof(cmd_buf) }; in adt7310_temp_reg_read()
55 const struct spi_buf rx_buf = { .buf = cmd_buf, .len = sizeof(cmd_buf) }; in adt7310_temp_reg_read()
64 memcpy(val, cmd_buf + 1, 2); in adt7310_temp_reg_read()
73 uint8_t cmd_buf[3]; in adt7310_temp_reg_write() local
74 const struct spi_buf tx_buf = { .buf = cmd_buf, .len = sizeof(cmd_buf) }; in adt7310_temp_reg_write()
75 const struct spi_buf rx_buf = { .buf = cmd_buf, .len = sizeof(cmd_buf) }; in adt7310_temp_reg_write()
79 cmd_buf[0] = ADT7310_WRITE_CMD | (reg << 3); in adt7310_temp_reg_write()
81 memcpy(&cmd_buf[1], &val, sizeof(val)); in adt7310_temp_reg_write()
89 uint8_t cmd_buf[2] = { ADT7310_READ_CMD | (reg << 3) }; in adt7310_reg_read() local
90 const struct spi_buf tx_buf = { .buf = cmd_buf, .len = sizeof(cmd_buf) }; in adt7310_reg_read()
91 const struct spi_buf rx_buf = { .buf = cmd_buf, .len = sizeof(cmd_buf) }; in adt7310_reg_read()
101 *val = cmd_buf[1]; in adt7310_reg_read()
109 uint8_t cmd_buf[2] = { ADT7310_WRITE_CMD | (reg << 3), val }; in adt7310_reg_write() local
110 const struct spi_buf tx_buf = { .buf = cmd_buf, .len = sizeof(cmd_buf) }; in adt7310_reg_write()
111 const struct spi_buf rx_buf = { .buf = cmd_buf, .len = sizeof(cmd_buf) }; in adt7310_reg_write()