Lines Matching refs:read_pos
108 int read_pos; member
124 kcs->read_pos = 0; in init_kcs_data()
204 if (kcs->read_pos >= MAX_KCS_READ_SIZE) { in read_next_byte()
209 kcs->read_data[kcs->read_pos] = read_data(kcs); in read_next_byte()
210 (kcs->read_pos)++; in read_next_byte()
258 kcs->read_pos = 0; in restart_kcs_transaction()
280 kcs->read_pos = 0; in start_kcs_transaction()
289 if (length < kcs->read_pos) { in kcs_get_result()
290 kcs->read_pos = length; in kcs_get_result()
294 memcpy(data, kcs->read_data, kcs->read_pos); in kcs_get_result()
296 if ((length >= 3) && (kcs->read_pos < 3)) { in kcs_get_result()
300 kcs->read_pos = 3; in kcs_get_result()
310 return kcs->read_pos; in kcs_get_result()