Lines Matching refs:read_pos
114 int read_pos; member
131 kcs->read_pos = 0; in init_kcs_data()
201 if (kcs->read_pos >= MAX_KCS_READ_SIZE) { in read_next_byte()
206 kcs->read_data[kcs->read_pos] = read_data(kcs); in read_next_byte()
207 (kcs->read_pos)++; in read_next_byte()
254 kcs->read_pos = 0; in restart_kcs_transaction()
285 kcs->read_pos = 0; in start_kcs_transaction()
295 if (length < kcs->read_pos) { in get_kcs_result()
296 kcs->read_pos = length; in get_kcs_result()
300 memcpy(data, kcs->read_data, kcs->read_pos); in get_kcs_result()
302 if ((length >= 3) && (kcs->read_pos < 3)) { in get_kcs_result()
306 kcs->read_pos = 3; in get_kcs_result()
318 return kcs->read_pos; in get_kcs_result()