windows
sc->sc_socks[0].windows[i-1].winaddr = bh;
sc->sc_socks[1].windows[i-5].winaddr = bh;
uint32_t windows : 1;
bus_space_subregion(h->wintag, h->windows[win].winaddr,
pcihp->ioh = h->windows[STP_WIN_IO].winaddr;
bus_space_subregion(h->wintag, h->windows[STP_WIN_IO].winaddr,
} windows[STP4020_NWIN];
RB_FOREACH(wl, winlinks, &s->windows)
RB_FOREACH(w, windows, &windows)
wl = winlink_find_by_window(&dst_s->windows, w);
if (idx != -1 && winlink_find_by_index(&dst_s->windows, idx) != NULL) {
RB_FOREACH(wl_loop, winlinks, &fs->s->windows) {
fs->wl = RB_MIN(winlinks, &fs->s->windows);
fs->wl = RB_MAX(winlinks, &fs->s->windows);
fs->wl = winlink_find_by_index(&fs->s->windows, idx);
RB_FOREACH(wl, winlinks, &fs->s->windows) {
RB_FOREACH(wl, winlinks, &fs->s->windows) {
RB_FOREACH(wl, winlinks, &fs->s->windows) {
RB_FOREACH(wl, winlinks, &fs->s->windows) {
RB_FOREACH(wl, winlinks, &s->windows) {
if (RB_PREV(winlinks, &s->windows, wl) == NULL &&
RB_NEXT(winlinks, &s->windows, wl) == NULL)
RB_FOREACH(loop, winlinks, &s->windows) {
RB_FOREACH(loop, winlinks, &s->windows) {
RB_FOREACH(wl, winlinks, &s->windows)
session_select(s, RB_MIN(winlinks, &s->windows)->idx);
RB_FOREACH(wl, winlinks, &s->windows) {
wl = winlink_find_by_window(&s->windows, w);
if (winlink_find_by_window_id(&cs->windows, w->id) != NULL)
if (winlink_find_by_window_id(&cs->windows, w->id) != NULL) {
if (winlink_find_by_window_id(&s->windows, w->id) != NULL)
if (winlink_find_by_window_id(&cs->windows, w->id) != NULL)
csw = RB_FIND(control_sub_windows, &csub->windows, &find);
RB_INSERT(control_sub_windows, &csub->windows, csw);
struct control_sub_windows windows;
RB_FOREACH(wl, winlinks, &s->windows) {
RB_FOREACH(wl, winlinks, &s->windows) {
RB_INIT(&csub->windows);
RB_FOREACH_SAFE(csw, control_sub_windows, &csub->windows, csw1) {
RB_REMOVE(control_sub_windows, &csub->windows, csw);
if (winlink_find_by_window(&c->session->windows, wp->window) == NULL)
if (winlink_find_by_window(&c->session->windows, wp->window) == NULL)
csw = RB_FIND(control_sub_windows, &csub->windows, &find);
RB_INSERT(control_sub_windows, &csub->windows, csw);
RB_FOREACH(wl, winlinks, &ft->s->windows) {
RB_FOREACH(wl, winlinks, &ft->s->windows) {
RB_FOREACH(wl, winlinks, &ft->s->windows) {
return (format_printf("%u", winlink_count(&ft->s->windows)));
wl = RB_MAX(winlinks, &ft->s->windows);
if (ft->wl == RB_MAX(winlinks, &ft->wl->session->windows))
RB_FOREACH(wl, winlinks, &s->windows) {
if (winlink_find_by_window(&s->windows, w) != NULL)
if (winlink_find_by_window(&s->windows, w) != NULL)
if (ft->wl == RB_MIN(winlinks, &ft->wl->session->windows))
RB_FOREACH(wl, winlinks, &ft->s->windows) {
RB_FOREACH(wl, winlinks, &s->windows) {
RB_FOREACH(wl, winlinks, &s->windows) {
RB_FOREACH(w, windows, &windows) {
RB_FOREACH(w, windows, &windows)
RB_FOREACH(w, windows, &windows)
RB_FOREACH(w, windows, &windows)
RB_FOREACH(w, windows, &windows)
RB_FOREACH(w, windows, &windows)
RB_FOREACH(w, windows, &windows) {
RB_FOREACH(w, windows, &windows) {
RB_FOREACH(w, windows, &windows) {
return (RB_FIND(client_windows, &c->windows, &cw));
RB_INSERT(client_windows, &c->windows, cw);
RB_REMOVE(client_windows, &c->windows, cw);
RB_INIT(&c->windows);
RB_FOREACH(w, windows, &windows) {
RB_FOREACH_SAFE(cw, client_windows, &c->windows, cw1) {
RB_REMOVE(client_windows, &c->windows, cw);
fwl = winlink_find_by_index(&s->windows,
while ((wl = winlink_find_by_window(&s->windows, w)) != NULL) {
dstwl = winlink_find_by_index(&dst->windows, dstidx);
winlink_remove(&dst->windows, dstwl);
RB_INIT(&windows);
RB_FOREACH_SAFE(w, windows, &windows, w1) {
RB_FOREACH(w, windows, &windows) {
RB_INIT(&s->windows);
while (!RB_EMPTY(&s->windows)) {
wl = RB_ROOT(&s->windows);
winlink_remove(&s->windows, wl);
if ((wl = winlink_add(&s->windows, idx)) == NULL) {
winlink_remove(&s->windows, wl);
if (RB_EMPTY(&s->windows))
wl = RB_MIN(winlinks, &s->windows);
wl = RB_MAX(winlinks, &s->windows);
wl = winlink_find_by_index(&s->windows, idx);
ww = &target->windows;
memcpy(&old_windows, &s->windows, sizeof old_windows);
RB_INIT(&s->windows);
wl2 = winlink_add(&s->windows, wl->idx);
s->curw = winlink_find_by_index(&s->windows, s->curw->idx);
s->curw = winlink_find_by_index(&s->windows, target->curw->idx);
wl2 = winlink_find_by_index(&s->windows, wl->idx);
wl2 = winlink_find_by_window_id(&s->windows, wl->window->id);
memcpy(&old_wins, &s->windows, sizeof old_wins);
RB_INIT(&s->windows);
wl_new = winlink_add(&s->windows, new_idx);
wl_new = winlink_find_by_window(&s->windows, wl->window);
marked_pane.wl = winlink_find_by_index(&s->windows, marked_idx);
s->curw = winlink_find_by_index(&s->windows, new_curw_idx);
RB_FOREACH(wl, winlinks, &s->windows) {
RB_FOREACH(wl, winlinks, &s->windows) {
RB_FOREACH(wl, winlinks, &s->windows) {
RB_FOREACH(wl, winlinks, &s->windows) {
RB_FOREACH(wl, winlinks, &s->windows) {
RB_FOREACH(wl, winlinks, &s->windows) {
wl = winlink_find_by_index(&s->windows, idx);
winlink_remove(&s->windows, wl);
if ((sc->wl = winlink_add(&s->windows, idx)) == NULL) {
winlink_remove(&s->windows, sc->wl);
winlink_remove(&s->windows, sc->wl);
RB_FOREACH(wl, winlinks, &s->windows) {
RB_HEAD(windows, window);
struct winlinks windows;
extern struct windows windows;
RB_FOREACH(wl, winlinks, &s->windows) {
*wlp = winlink_find_by_index(&(*sp)->windows, item->winlink);
total = winlink_count(&s->windows);
RB_FOREACH(wl, winlinks, &s->windows) {
RB_FOREACH(wl, winlinks, &s->windows) {
if (winlink_find_by_index(&s->windows, last) == NULL)
wl = winlink_find_by_index(&s->windows, last - 1);
RB_REMOVE(winlinks, &s->windows, wl);
RB_INSERT(winlinks, &s->windows, wl);
wl = RB_MIN(winlinks, &s->windows);
wl = RB_MAX(winlinks, &s->windows);
return (RB_FIND(windows, &windows, &w));
RB_INSERT(windows, &windows, w);
RB_REMOVE(windows, &windows, w);
struct windows windows;
RB_GENERATE(windows, window, entry, window_cmp);
uint32_t windows[256] = { 0 };
if (!windows[window])
windows[window] |= 1 << block;
if (!windows[window])
const uint8_t blocks = (uint8_t)(64 - leading_zeroes(windows[window]));