Lines Matching refs:space
377 unsigned long head, space, next_space, pad, gap, skip, wakeup; in bts_buffer_reset() local
388 space = phys->offset + phys->displacement + phys->size - head; in bts_buffer_reset()
389 pad = space; in bts_buffer_reset()
390 if (space > handle->size) { in bts_buffer_reset()
391 space = handle->size; in bts_buffer_reset()
392 space -= space % BTS_RECORD_SIZE; in bts_buffer_reset()
394 if (space <= BTS_SAFETY_MARGIN) { in bts_buffer_reset()
409 if (next_space > space || !space) { in bts_buffer_reset()
417 space = next_space; in bts_buffer_reset()
433 if (space > wakeup) { in bts_buffer_reset()
434 space = wakeup; in bts_buffer_reset()
435 space -= space % BTS_RECORD_SIZE; in bts_buffer_reset()
438 buf->end = head + space; in bts_buffer_reset()
444 if (!space) in bts_buffer_reset()