Lines Matching refs:read_pos
98 int read_pos; member
112 smic->read_pos = 0; in init_smic_data()
148 smic->read_pos = 0; in start_smic_transaction()
161 for (i = 0; i < smic->read_pos; i++) in smic_get_result()
165 if (length < smic->read_pos) { in smic_get_result()
166 smic->read_pos = length; in smic_get_result()
169 memcpy(data, smic->read_data, smic->read_pos); in smic_get_result()
171 if ((length >= 3) && (smic->read_pos < 3)) { in smic_get_result()
173 smic->read_pos = 3; in smic_get_result()
179 return smic->read_pos; in smic_get_result()
225 smic->read_pos = 0; in start_error_recovery()
240 if (smic->read_pos >= MAX_SMIC_READ_SIZE) { in read_next_byte()
244 smic->read_data[smic->read_pos] = read_smic_data(smic); in read_next_byte()
245 smic->read_pos++; in read_next_byte()