Lines Matching refs:read_pos
116 int read_pos; member
133 kcs->read_pos = 0; in init_kcs_data_with_state()
209 if (kcs->read_pos >= MAX_KCS_READ_SIZE) { in read_next_byte()
214 kcs->read_data[kcs->read_pos] = read_data(kcs); in read_next_byte()
215 (kcs->read_pos)++; in read_next_byte()
262 kcs->read_pos = 0; in restart_kcs_transaction()
295 kcs->read_pos = 0; in start_kcs_transaction()
305 if (length < kcs->read_pos) { in get_kcs_result()
306 kcs->read_pos = length; in get_kcs_result()
310 memcpy(data, kcs->read_data, kcs->read_pos); in get_kcs_result()
312 if ((length >= 3) && (kcs->read_pos < 3)) { in get_kcs_result()
316 kcs->read_pos = 3; in get_kcs_result()
328 return kcs->read_pos; in get_kcs_result()