Lines Matching defs:position
123 * last_pos : current log's end position, last log's start position.
159 /* Current reading position, start position of next read again */
232 struct reader_position *position, uint32_t *read_off,
240 uint32_t start_pos = position->start_pos;
245 con = (!read_off || !position->buffer_start);
250 while (start_pos < position->end_pos) {
251 next_item = get_next_log_item(position->buffer_start,
252 position->max_len, start_pos,
253 position->end_pos - start_pos, &start_pos);
341 static void set_reader_position(struct reader_position *position,
344 position->buffer_start = buffer_start;
345 position->max_len = max_len;
346 position->start_pos = start_pos;
347 position->end_pos = end_pos;
377 * If the sequence number of the last read position is smaller
379 * position is overwritten. And this time read data from
380 * minimum number, or read data from last position.
388 struct reader_position position = {0};
392 set_reader_position(&position, log_buffer->buffer_start,
395 buf_written = parse_log_item(buf, count, &position,
408 set_reader_position(&position, log_buffer->buffer_start,
411 buf_written = parse_log_item(buf, count, &position,
415 set_reader_position(&position, log_buffer->buffer_start,
419 count - buf_written, &position,