Lines Matching refs:space
371 unsigned long head, space, next_space, pad, gap, skip, wakeup;
382 space = phys->offset + phys->displacement + phys->size - head;
383 pad = space;
384 if (space > handle->size) {
385 space = handle->size;
386 space -= space % BTS_RECORD_SIZE;
388 if (space <= BTS_SAFETY_MARGIN) {
389 /* See if next phys buffer has more space */
403 if (next_space > space || !space) {
411 space = next_space;
427 if (space > wakeup) {
428 space = wakeup;
429 space -= space % BTS_RECORD_SIZE;
432 buf->end = head + space;
435 * If we have no space, the lost notification would have been sent when
438 if (!space)