Lines Matching refs:min_lines
97 int min_lines; /* guaranteed buffer size */ in sc_alloc_history_buffer() local
114 min_lines = imax(SC_HISTORY_SIZE, prev_ysize); in sc_alloc_history_buffer()
115 if (cur_lines > min_lines) in sc_alloc_history_buffer()
116 delta = cur_lines - min_lines; in sc_alloc_history_buffer()
120 min_lines = imax(SC_HISTORY_SIZE, scp->ysize); in sc_alloc_history_buffer()
121 if (lines > min_lines) { in sc_alloc_history_buffer()
122 if (lines - min_lines > extra_history_size + delta) { in sc_alloc_history_buffer()
134 if (lines > min_lines) in sc_alloc_history_buffer()
135 extra_history_size -= lines - min_lines; in sc_alloc_history_buffer()
191 int min_lines; /* guaranteed buffer size */ in sc_free_history_buffer() local
199 min_lines = imax(SC_HISTORY_SIZE, prev_ysize); in sc_free_history_buffer()
200 extra_history_size += (cur_lines > min_lines) ? in sc_free_history_buffer()
201 cur_lines - min_lines : 0; in sc_free_history_buffer()