head 272 bsp/drv/dev/block/fdd.c int head, track; head 276 bsp/drv/dev/block/fdd.c head = (irp->blkno % (FDG_SECTORS * FDG_HEADS)) / FDG_SECTORS; head 286 bsp/drv/dev/block/fdd.c fdc_out(head << 2); head 298 bsp/drv/dev/block/fdd.c int head, track, sect; head 305 bsp/drv/dev/block/fdd.c head = (irp->blkno % (FDG_SECTORS * FDG_HEADS)) / FDG_SECTORS; head 312 bsp/drv/dev/block/fdd.c head, track, sect, io_size, read)); head 320 bsp/drv/dev/block/fdd.c fdc_out(head << 2); head 322 bsp/drv/dev/block/fdd.c fdc_out(head); head 41 bsp/drv/lib/queue.c item->next = head; head 42 bsp/drv/lib/queue.c item->prev = head->prev; head 44 bsp/drv/lib/queue.c head->prev = item; head 55 bsp/drv/lib/queue.c if (head->next == head) head 57 bsp/drv/lib/queue.c item = head->next; head 58 bsp/drv/lib/queue.c item->next->prev = head; head 59 bsp/drv/lib/queue.c head->next = item->next; head 42 include/sys/list.h #define list_init(head) ((head)->next = (head)->prev = (head)) head 45 include/sys/list.h #define list_empty(head) ((head)->next == (head)) head 46 include/sys/list.h #define list_first(head) ((head)->next) head 47 include/sys/list.h #define list_last(head) ((head)->prev) head 48 include/sys/list.h #define list_end(head, node) ((node) == (head)) head 56 include/sys/list.h #define LIST_INIT(head) { &(head), &(head) } head 41 include/sys/queue.h #define queue_init(head) ((head)->next = (head)->prev = (head)) head 42 include/sys/queue.h #define queue_empty(head) ((head)->next == (head)) head 45 include/sys/queue.h #define queue_first(head) ((head)->next) head 46 include/sys/queue.h #define queue_last(head) ((head)->prev) head 47 include/sys/queue.h #define queue_end(head,q) ((q) == (head)) head 70 sys/include/timer.h (list_entry(list_first(head), struct timer, link)) head 70 sys/include/vm.h struct seg head; /* list head of segements */ head 419 sys/ipc/msg.c q = queue_first(head); head 422 sys/ipc/msg.c while (!queue_end(head, q)) { head 436 sys/ipc/msg.c enqueue(head, &t->ipc_link); head 100 sys/kern/exception.c list_t head, n; head 115 sys/kern/exception.c head = &self->threads; head 116 sys/kern/exception.c for (n = list_first(head); n != head; n = list_next(n)) { head 175 sys/kern/exception.c list_t head, n; head 197 sys/kern/exception.c head = &task->threads; head 198 sys/kern/exception.c for (n = list_first(head); n != head; n = list_next(n)) { head 337 sys/kern/sched.c queue_t head, q; head 343 sys/kern/sched.c head = &evt->sleepq; head 344 sys/kern/sched.c if (!queue_empty(head)) { head 349 sys/kern/sched.c q = queue_first(head); head 351 sys/kern/sched.c while (!queue_end(head, q)) { head 168 sys/kern/task.c list_t head, n; head 196 sys/kern/task.c head = &task->threads; head 197 sys/kern/task.c for (n = list_first(head); n != head; n = list_next(n)) { head 229 sys/kern/task.c list_t head, n; head 246 sys/kern/task.c head = &task->threads; head 247 sys/kern/task.c for (n = list_first(head); n != head; n = list_next(n)) { head 265 sys/kern/task.c list_t head, n; head 288 sys/kern/task.c head = &task->threads; head 289 sys/kern/task.c for (n = list_first(head); n != head; n = list_next(n)) { head 213 sys/kern/thread.c list_t head, n; head 216 sys/kern/thread.c head = &thread_list; head 217 sys/kern/thread.c for (n = list_first(head); n != head; n = list_next(n)) { head 71 sys/kern/timer.c list_t head, n; head 84 sys/kern/timer.c head = &timer_list; head 85 sys/kern/timer.c for (n = list_first(head); n != head; n = list_next(n)) { head 43 sys/lib/queue.c item->next = head; head 44 sys/lib/queue.c item->prev = head->prev; head 46 sys/lib/queue.c head->prev = item; head 57 sys/lib/queue.c if (head->next == head) head 59 sys/lib/queue.c item = head->next; head 60 sys/lib/queue.c item->next->prev = head; head 61 sys/lib/queue.c head->next = item->next; head 135 sys/mem/vm.c if ((seg = seg_alloc(&map->head, size)) == NULL) head 142 sys/mem/vm.c if ((seg = seg_reserve(&map->head, start, size)) == NULL) head 167 sys/mem/vm.c seg_free(&map->head, seg); head 217 sys/mem/vm.c seg = seg_lookup(&map->head, va, 1); head 233 sys/mem/vm.c seg_free(&map->head, seg); head 288 sys/mem/vm.c seg = seg_lookup(&map->head, va, 1); head 414 sys/mem/vm.c seg = seg_lookup(&map->head, start, size); head 423 sys/mem/vm.c if ((seg = seg_alloc(&curmap->head, size)) == NULL) head 437 sys/mem/vm.c seg_free(&curmap->head, seg); head 474 sys/mem/vm.c seg_init(&map->head); head 491 sys/mem/vm.c seg = &map->head; head 506 sys/mem/vm.c seg_delete(&map->head, tmp); head 507 sys/mem/vm.c } while (seg != &map->head); head 558 sys/mem/vm.c tmp = &new_map->head; head 559 sys/mem/vm.c src = &org_map->head; head 574 sys/mem/vm.c if (src == &org_map->head) { head 622 sys/mem/vm.c } while (src != &org_map->head); head 627 sys/mem/vm.c dest = &new_map->head; head 628 sys/mem/vm.c src = &org_map->head; head 639 sys/mem/vm.c } while (src != &org_map->head); head 754 sys/mem/vm.c seg = &map->head; head 767 sys/mem/vm.c } while (seg != &map->head); head 785 sys/mem/vm.c seg_init(&kernel_map.head); head 847 sys/mem/vm.c if (head != seg) head 859 sys/mem/vm.c seg = head; head 866 sys/mem/vm.c } while (seg != head); head 878 sys/mem/vm.c seg = head; head 894 sys/mem/vm.c } while (seg != head); head 923 sys/mem/vm.c if (next != head && (next->flags & SEG_FREE)) { head 933 sys/mem/vm.c if (seg != head && (prev->flags & SEG_FREE)) { head 953 sys/mem/vm.c seg = seg_lookup(head, addr, size); head 977 sys/mem/vm.c seg_free(head, seg); head 127 sys/mem/vm_nommu.c if ((seg = seg_alloc(&map->head, size)) == NULL) head 135 sys/mem/vm_nommu.c if ((seg = seg_reserve(&map->head, start, size)) == NULL) head 193 sys/mem/vm_nommu.c seg = seg_lookup(&map->head, va, 1); head 204 sys/mem/vm_nommu.c seg_free(&map->head, seg); head 258 sys/mem/vm_nommu.c seg = seg_lookup(&map->head, va, 1); head 344 sys/mem/vm_nommu.c seg = seg_lookup(&map->head, start, size); head 353 sys/mem/vm_nommu.c if ((seg = seg_create(&curmap->head, start, size)) == NULL) head 380 sys/mem/vm_nommu.c seg_init(&map->head); head 397 sys/mem/vm_nommu.c seg = &map->head; head 408 sys/mem/vm_nommu.c seg_delete(&map->head, tmp); head 409 sys/mem/vm_nommu.c } while (seg != &map->head); head 474 sys/mem/vm_nommu.c if ((seg = seg_create(&map->head, start, size)) == NULL) head 514 sys/mem/vm_nommu.c seg = &map->head; head 527 sys/mem/vm_nommu.c } while (seg != &map->head); head 536 sys/mem/vm_nommu.c seg_init(&kernel_map.head); head 597 sys/mem/vm_nommu.c if (head != seg) head 609 sys/mem/vm_nommu.c seg = head; head 616 sys/mem/vm_nommu.c } while (seg != head); head 632 sys/mem/vm_nommu.c if ((seg = seg_create(head, (vaddr_t)pa, size)) == NULL) { head 676 sys/mem/vm_nommu.c if ((seg = seg_create(head, (vaddr_t)pa, size)) == NULL) { head 221 sys/sync/cond.c list_t head, n; head 223 sys/sync/cond.c head = &curtask->conds; head 224 sys/sync/cond.c for (n = list_first(head); n != head; n = list_next(n)) { head 318 sys/sync/mutex.c list_t head; head 325 sys/sync/mutex.c head = &t->mutexes; head 326 sys/sync/mutex.c while (!list_empty(head)) { head 330 sys/sync/mutex.c m = list_entry(list_first(head), struct mutex, link); head 367 sys/sync/mutex.c list_t head, n; head 369 sys/sync/mutex.c head = &curtask->mutexes; head 370 sys/sync/mutex.c for (n = list_first(head); n != head; n = list_next(n)) { head 472 sys/sync/mutex.c list_t head, n; head 486 sys/sync/mutex.c head = &t->mutexes; head 487 sys/sync/mutex.c for (n = list_first(head); n != head; n = list_next(n)) { head 308 sys/sync/sem.c list_t head, n; head 311 sys/sync/sem.c head = &task->sems; head 312 sys/sync/sem.c for (n = list_first(head); n != head; n = list_next(n)) { head 50 usr/bin/head/head.c void head(FILE *, int); head 89 usr/bin/head/head.c head(fp, linecnt); head 93 usr/bin/head/head.c head(stdin, linecnt); head 539 usr/lib/libc/gen/fts.c FTSENT *p, *head; head 639 usr/lib/libc/gen/fts.c for (head = tail = NULL, nitems = 0; (dp = readdir(dirp)) != NULL;) { head 656 usr/lib/libc/gen/fts.c fts_lfree(head); head 710 usr/lib/libc/gen/fts.c if (head == NULL) head 711 usr/lib/libc/gen/fts.c head = tail = p; head 761 usr/lib/libc/gen/fts.c head = fts_sort(sp, head, nitems); head 762 usr/lib/libc/gen/fts.c return (head); head 862 usr/lib/libc/gen/fts.c return (head); head 865 usr/lib/libc/gen/fts.c for (ap = sp->fts_array, p = head; p; p = p->fts_link) head 870 usr/lib/libc/gen/fts.c for (head = *(ap = sp->fts_array); --nitems; ++ap) head 873 usr/lib/libc/gen/fts.c return (head); head 917 usr/lib/libc/gen/fts.c while ((p = head) != NULL) { head 918 usr/lib/libc/gen/fts.c head = head->fts_link; head 319 usr/server/fs/fifofs/fifo_vnops.c list_t head, n; head 331 usr/server/fs/fifofs/fifo_vnops.c head = &fifo_head; head 332 usr/server/fs/fifofs/fifo_vnops.c for (n = list_first(head); n != head; n = list_next(n)) { head 427 usr/server/fs/fifofs/fifo_vnops.c list_t head, n; head 441 usr/server/fs/fifofs/fifo_vnops.c head = &fifo_head; head 442 usr/server/fs/fifofs/fifo_vnops.c for (n = list_first(head); n != head; n = list_next(n)) { head 93 usr/server/fs/vfs/vfs_mount.c list_t head, n; head 121 usr/server/fs/vfs/vfs_mount.c head = &mount_list; head 122 usr/server/fs/vfs/vfs_mount.c for (n = list_first(head); n != head; n = list_next(n)) { head 215 usr/server/fs/vfs/vfs_mount.c list_t head, n; head 223 usr/server/fs/vfs/vfs_mount.c head = &mount_list; head 224 usr/server/fs/vfs/vfs_mount.c for (n = list_first(head); n != head; n = list_next(n)) { head 229 usr/server/fs/vfs/vfs_mount.c if (n == head) { head 265 usr/server/fs/vfs/vfs_mount.c list_t head, n; head 269 usr/server/fs/vfs/vfs_mount.c head = &mount_list; head 270 usr/server/fs/vfs/vfs_mount.c for (n = list_first(head); n != head; n = list_next(n)) { head 315 usr/server/fs/vfs/vfs_mount.c list_t head, n; head 324 usr/server/fs/vfs/vfs_mount.c head = &mount_list; head 325 usr/server/fs/vfs/vfs_mount.c for (n = list_first(head); n != head; n = list_next(n)) { head 384 usr/server/fs/vfs/vfs_mount.c list_t head, n; head 392 usr/server/fs/vfs/vfs_mount.c head = &mount_list; head 393 usr/server/fs/vfs/vfs_mount.c for (n = list_first(head); n != head; n = list_next(n)) { head 72 usr/server/fs/vfs/vfs_task.c list_t head, n; head 79 usr/server/fs/vfs/vfs_task.c head = &task_table[TASKHASH(task)]; head 80 usr/server/fs/vfs/vfs_task.c for (n = list_first(head); n != head; n = list_next(n)) { head 296 usr/server/fs/vfs/vfs_task.c list_t head, n; head 305 usr/server/fs/vfs/vfs_task.c head = &task_table[i]; head 306 usr/server/fs/vfs/vfs_task.c for (n = list_first(head); n != head; n = list_next(n)) { head 107 usr/server/fs/vfs/vfs_vnode.c list_t head, n; head 111 usr/server/fs/vfs/vfs_vnode.c head = &vnode_table[vn_hash(mp, path)]; head 112 usr/server/fs/vfs/vfs_vnode.c for (n = list_first(head); n != head; n = list_next(n)) { head 326 usr/server/fs/vfs/vfs_vnode.c list_t head, n; head 331 usr/server/fs/vfs/vfs_vnode.c head = &vnode_table[i]; head 332 usr/server/fs/vfs/vfs_vnode.c for (n = list_first(head); n != head; n = list_next(n)) { head 426 usr/server/fs/vfs/vfs_vnode.c list_t head, n; head 438 usr/server/fs/vfs/vfs_vnode.c head = &vnode_table[i]; head 439 usr/server/fs/vfs/vfs_vnode.c for (n = list_first(head); n != head; n = list_next(n)) { head 54 usr/server/proc/proc_exit.c list_t head, n; head 72 usr/server/proc/proc_exit.c head = &curproc->p_children; head 73 usr/server/proc/proc_exit.c n = list_first(head); head 74 usr/server/proc/proc_exit.c while (n != head) { head 147 usr/server/proc/proc_exit.c list_t head, n; head 162 usr/server/proc/proc_exit.c head = &curproc->p_children; head 163 usr/server/proc/proc_exit.c for (n = list_first(head); n != head; n = list_next(n)) { head 55 usr/server/proc/proc_hash.c list_t head, n; head 58 usr/server/proc/proc_hash.c head = &pid_table[IDHASH(pid)]; head 59 usr/server/proc/proc_hash.c n = list_first(head); head 60 usr/server/proc/proc_hash.c while (n != head) { head 75 usr/server/proc/proc_hash.c list_t head, n; head 78 usr/server/proc/proc_hash.c head = &pgid_table[IDHASH(pgid)]; head 79 usr/server/proc/proc_hash.c n = list_first(head); head 80 usr/server/proc/proc_hash.c while (n != head) { head 95 usr/server/proc/proc_hash.c list_t head, n; head 98 usr/server/proc/proc_hash.c head = &task_table[IDHASH(task)]; head 99 usr/server/proc/proc_hash.c n = list_first(head); head 101 usr/server/proc/proc_hash.c while (n != head) { head 104 usr/server/proc/proc_sig.c list_t head, n; head 112 usr/server/proc/proc_sig.c head = &pgrp->pg_members; head 113 usr/server/proc/proc_sig.c for (n = list_first(head); n != head; n = list_next(n)) {