Lines Matching refs:command_buffer
72 data->command_buffer[0] = count; in ataes132a_send_command()
73 data->command_buffer[1] = opcode; in ataes132a_send_command()
74 data->command_buffer[2] = mode; in ataes132a_send_command()
76 data->command_buffer[i + 3] = params[i]; in ataes132a_send_command()
80 ataes132a_atmel_crc(data->command_buffer, nparams + 3, crc); in ataes132a_send_command()
81 data->command_buffer[nparams + 3] = crc[0]; in ataes132a_send_command()
82 data->command_buffer[nparams + 4] = crc[1]; in ataes132a_send_command()
89 data->command_buffer, count); in ataes132a_send_command()
110 burst_read_i2c(&cfg->i2c, ATAES_COMMAND_MEM_ADDR, data->command_buffer, 64); in ataes132a_send_command()
112 count = data->command_buffer[0]; in ataes132a_send_command()
115 ataes132a_atmel_crc(data->command_buffer, count - 2, crc); in ataes132a_send_command()
117 LOG_DBG("COMMAND CRC %x%x", data->command_buffer[count - 2], in ataes132a_send_command()
118 data->command_buffer[count - 1]); in ataes132a_send_command()
122 while (crc[0] != data->command_buffer[count - 2] || in ataes132a_send_command()
123 crc[1] != data->command_buffer[count - 1]) { in ataes132a_send_command()
130 burst_read_i2c(&cfg->i2c, ATAES_COMMAND_MEM_ADDR, data->command_buffer, 64); in ataes132a_send_command()
132 count = data->command_buffer[0]; in ataes132a_send_command()
134 ataes132a_atmel_crc(data->command_buffer, count - 2, crc); in ataes132a_send_command()
139 data->command_buffer[count - 2], in ataes132a_send_command()
140 data->command_buffer[count - 1]); in ataes132a_send_command()
144 if ((status & ATAES_STATUS_ERR) || data->command_buffer[1] != 0x00) { in ataes132a_send_command()
146 data->command_buffer[1]); in ataes132a_send_command()
153 response[i] = data->command_buffer[i + 1]; in ataes132a_send_command()