Lines Matching refs:positions
78 free(s->positions); in seat_free()
271 if (pos >= MALLOC_ELEMENTSOF(s->positions)) in seat_get_position()
274 return s->positions[pos]; in seat_get_position()
301 if (MALLOC_ELEMENTSOF(s->positions) == 0) in seat_switch_to_next()
308 for (i = start + 1; i < MALLOC_ELEMENTSOF(s->positions); ++i) { in seat_switch_to_next()
324 if (MALLOC_ELEMENTSOF(s->positions) == 0) in seat_switch_to_previous()
335 for (size_t i = MALLOC_ELEMENTSOF(s->positions) - 1; i > start; i--) { in seat_switch_to_previous()
483 if (pos < MALLOC_ELEMENTSOF(s->positions) && s->positions[pos] == session) { in seat_evict_position()
484 s->positions[pos] = NULL; in seat_evict_position()
491 s->positions[pos] = iter; in seat_evict_position()
502 if (!GREEDY_REALLOC0(s->positions, pos + 1)) in seat_claim_position()
509 s->positions[pos] = session; in seat_claim_position()
518 for (pos = 1; pos < MALLOC_ELEMENTSOF(s->positions); ++pos) in seat_assign_position()
519 if (!s->positions[pos]) in seat_assign_position()