Lines Matching refs:read_pos
116 int read_pos; member
133 kcs->read_pos = 0; in init_kcs_data()
203 if (kcs->read_pos >= MAX_KCS_READ_SIZE) { in read_next_byte()
208 kcs->read_data[kcs->read_pos] = read_data(kcs); in read_next_byte()
209 (kcs->read_pos)++; in read_next_byte()
256 kcs->read_pos = 0; in restart_kcs_transaction()
289 kcs->read_pos = 0; in start_kcs_transaction()
299 if (length < kcs->read_pos) { in get_kcs_result()
300 kcs->read_pos = length; in get_kcs_result()
304 memcpy(data, kcs->read_data, kcs->read_pos); in get_kcs_result()
306 if ((length >= 3) && (kcs->read_pos < 3)) { in get_kcs_result()
310 kcs->read_pos = 3; in get_kcs_result()
322 return kcs->read_pos; in get_kcs_result()