sp 121 bsp/drv/dev/serial/ns16550.c ns16550_xmt_char(struct serial_port *sp, char c) sp 130 bsp/drv/dev/serial/ns16550.c ns16550_rcv_char(struct serial_port *sp) sp 139 bsp/drv/dev/serial/ns16550.c ns16550_set_poll(struct serial_port *sp, int on) sp 154 bsp/drv/dev/serial/ns16550.c struct serial_port *sp = arg; sp 163 bsp/drv/dev/serial/ns16550.c serial_xmt_done(sp); sp 167 bsp/drv/dev/serial/ns16550.c serial_rcv_char(sp, bus_read_8(COM_RBR)); sp 174 bsp/drv/dev/serial/ns16550.c ns16550_start(struct serial_port *sp) sp 185 bsp/drv/dev/serial/ns16550.c sp->irq = irq_attach(COM_IRQ, IPL_COMM, 0, ns16550_isr, sp 186 bsp/drv/dev/serial/ns16550.c IST_NONE, sp); sp 196 bsp/drv/dev/serial/ns16550.c ns16550_stop(struct serial_port *sp) sp 120 bsp/drv/dev/serial/pl011.c pl011_xmt_char(struct serial_port *sp, char c) sp 129 bsp/drv/dev/serial/pl011.c pl011_rcv_char(struct serial_port *sp) sp 140 bsp/drv/dev/serial/pl011.c pl011_set_poll(struct serial_port *sp, int on) sp 155 bsp/drv/dev/serial/pl011.c struct serial_port *sp = arg; sp 169 bsp/drv/dev/serial/pl011.c serial_rcv_char(sp, c); sp 179 bsp/drv/dev/serial/pl011.c serial_xmt_done(sp); sp 188 bsp/drv/dev/serial/pl011.c pl011_start(struct serial_port *sp) sp 214 bsp/drv/dev/serial/pl011.c sp->irq = irq_attach(UART_IRQ, IPL_COMM, 0, pl011_isr, IST_NONE, sp); sp 221 bsp/drv/dev/serial/pl011.c pl011_stop(struct serial_port *sp) sp 73 bsp/hal/arm/arch/context.c k->sp = (uint32_t)ctx->uregs; sp 99 bsp/hal/arm/arch/context.c u->sp = (uint32_t)val; sp 159 bsp/hal/arm/arch/context.c sav = (struct cpu_regs *)(cur->sp - sizeof(struct cpu_regs)); sp 165 bsp/hal/arm/arch/context.c cur->sp = (uint32_t)sav - sizeof(uint32_t); sp 117 bsp/hal/arm/arch/trap.c r->r12, r->sp, r->lr, r->pc, r->cpsr); sp 80 bsp/hal/arm/include/context.h uint32_t sp; /* +52 (34) */ sp 100 bsp/hal/arm/include/context.h uint32_t sp; sp 79 bsp/hal/ppc/arch/context.c k->sp = (uint32_t)ctx->uregs; sp 97 bsp/hal/ppc/arch/context.c argp = (uint32_t *)(k->sp + sizeof(uint32_t) * 2); sp 61 bsp/hal/ppc/include/context.h uint32_t sp; sp 48 include/arm/systrap.h stmfd sp!, {r4, r5, lr}; \ sp 53 include/arm/systrap.h ldmfd sp!, {r4, r5, pc}; sp 144 include/sys/prex.h int sem_init(sem_t *sp, u_int value); sp 145 include/sys/prex.h int sem_destroy(sem_t *sp); sp 146 include/sys/prex.h int sem_wait(sem_t *sp, u_long timeout); sp 147 include/sys/prex.h int sem_trywait(sem_t *sp); sp 148 include/sys/prex.h int sem_post(sem_t *sp); sp 149 include/sys/prex.h int sem_getvalue(sem_t *sp, u_int *value); sp 479 sys/kern/task.c void *stack, *sp; sp 508 sys/kern/task.c sp = (char *)stack + DFLSTKSZ - (sizeof(int) * 3); sp 509 sys/kern/task.c error = thread_load(t, (void (*)(void))mod->entry, sp); sp 68 sys/kern/thread.c vaddr_t sp; sp 105 sys/kern/thread.c sp = (vaddr_t)t->kstack + KSTACKSZ; sp 106 sys/kern/thread.c context_set(&t->ctx, CTX_KSTACK, (register_t)sp); sp 528 sys/kern/thread.c vaddr_t sp; sp 540 sys/kern/thread.c sp = (vaddr_t)t->kstack + KSTACKSZ; sp 541 sys/kern/thread.c context_set(&t->ctx, CTX_KSTACK, (register_t)sp); sp 579 sys/kern/thread.c vaddr_t sp; sp 587 sys/kern/thread.c sp = (vaddr_t)stack + KSTACKSZ; sp 588 sys/kern/thread.c context_set(&idle_thread.ctx, CTX_KSTACK, (register_t)sp); sp 59 sys/sync/sem.c sem_init(sem_t *sp, u_int value) sp 71 sys/sync/sem.c if (copyin(sp, &s, sizeof(sp))) sp 102 sys/sync/sem.c if (copyout(&s, sp, sizeof(s))) { sp 127 sys/sync/sem.c sem_destroy(sem_t *sp) sp 132 sys/sync/sem.c if (sem_copyin(sp, &s) || s->owner != curtask) { sp 162 sys/sync/sem.c sem_wait(sem_t *sp, u_long timeout) sp 168 sys/sync/sem.c if (sem_copyin(sp, &s)) { sp 203 sys/sync/sem.c sem_trywait(sem_t *sp) sp 208 sys/sync/sem.c if (sem_copyin(sp, &s)) { sp 229 sys/sync/sem.c sem_post(sem_t *sp) sp 234 sys/sync/sem.c if (sem_copyin(sp, &s)) { sp 254 sys/sync/sem.c sem_getvalue(sem_t *sp, u_int *value) sp 259 sys/sync/sem.c if (sem_copyin(sp, &s)) { sp 288 sys/sync/sem.c sem_t *sp; sp 296 sys/sync/sem.c for (sp = &sem_list; *sp; sp = &(*sp)->next) { sp 297 sys/sync/sem.c if (*sp == s) { sp 298 sys/sync/sem.c *sp = s->next; sp 46 usr/bin/ls/ls.c static void printentry(char *name, struct stat *sp); sp 179 usr/bin/ls/ls.c printentry(char *name, struct stat *sp) sp 193 usr/bin/ls/ls.c if (S_ISCHR(sp->st_mode) || S_ISBLK(sp->st_mode)) sp 195 usr/bin/ls/ls.c else if (S_ISDIR(sp->st_mode)) sp 197 usr/bin/ls/ls.c else if (S_ISFIFO(sp->st_mode)) sp 199 usr/bin/ls/ls.c else if (S_ISLNK(sp->st_mode)) sp 203 usr/bin/ls/ls.c printtype(sp->st_mode); sp 204 usr/bin/ls/ls.c printmode(sp->st_mode); sp 218 usr/bin/ls/ls.c printf("%7d ", (int)sp->st_size); sp 227 usr/bin/ls/ls.c printtype(sp->st_mode); sp 228 usr/bin/ls/ls.c if (sp->st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)) sp 57 usr/lib/libc/gen/fts.c #define ISSET(opt) (sp->fts_options & (opt)) sp 58 usr/lib/libc/gen/fts.c #define SET(opt) (sp->fts_options |= (opt)) sp 60 usr/lib/libc/gen/fts.c #define CHDIR(sp, path) (!ISSET(FTS_NOCHDIR) && chdir(path)) sp 61 usr/lib/libc/gen/fts.c #define FCHDIR(sp, fd) (!ISSET(FTS_NOCHDIR) && fchdir(fd)) sp 72 usr/lib/libc/gen/fts.c FTS *sp; sp 85 usr/lib/libc/gen/fts.c if ((sp = malloc((u_int)sizeof(FTS))) == NULL) sp 87 usr/lib/libc/gen/fts.c memset(sp, 0, sizeof(FTS)); sp 88 usr/lib/libc/gen/fts.c sp->fts_compar = compar; sp 89 usr/lib/libc/gen/fts.c sp->fts_options = options; sp 99 usr/lib/libc/gen/fts.c if (fts_palloc(sp, MAX(fts_maxarglen(argv), MAXPATHLEN))) sp 103 usr/lib/libc/gen/fts.c if ((parent = fts_alloc(sp, "", 0)) == NULL) sp 115 usr/lib/libc/gen/fts.c p = fts_alloc(sp, *argv, len); sp 119 usr/lib/libc/gen/fts.c p->fts_info = fts_stat(sp, p, ISSET(FTS_COMFOLLOW)); sp 143 usr/lib/libc/gen/fts.c root = fts_sort(sp, root, nitems); sp 150 usr/lib/libc/gen/fts.c if ((sp->fts_cur = fts_alloc(sp, "", 0)) == NULL) sp 152 usr/lib/libc/gen/fts.c sp->fts_cur->fts_link = root; sp 153 usr/lib/libc/gen/fts.c sp->fts_cur->fts_info = FTS_INIT; sp 162 usr/lib/libc/gen/fts.c if (!ISSET(FTS_NOCHDIR) && (sp->fts_rfd = open(".", O_RDONLY, 0)) < 0) sp 165 usr/lib/libc/gen/fts.c return (sp); sp 169 usr/lib/libc/gen/fts.c mem2: free(sp->fts_path); sp 170 usr/lib/libc/gen/fts.c mem1: free(sp); sp 175 usr/lib/libc/gen/fts.c fts_load(FTS *sp, FTSENT *p) sp 188 usr/lib/libc/gen/fts.c memmove(sp->fts_path, p->fts_name, len + 1); sp 194 usr/lib/libc/gen/fts.c p->fts_accpath = p->fts_path = sp->fts_path; sp 195 usr/lib/libc/gen/fts.c sp->fts_dev = p->fts_dev; sp 199 usr/lib/libc/gen/fts.c fts_close(FTS *sp) sp 209 usr/lib/libc/gen/fts.c if (sp->fts_cur) { sp 210 usr/lib/libc/gen/fts.c for (p = sp->fts_cur; p->fts_level >= FTS_ROOTLEVEL;) { sp 219 usr/lib/libc/gen/fts.c if (sp->fts_child) sp 220 usr/lib/libc/gen/fts.c fts_lfree(sp->fts_child); sp 221 usr/lib/libc/gen/fts.c if (sp->fts_array) sp 222 usr/lib/libc/gen/fts.c free(sp->fts_array); sp 223 usr/lib/libc/gen/fts.c free(sp->fts_path); sp 227 usr/lib/libc/gen/fts.c saved_errno = fchdir(sp->fts_rfd) ? errno : 0; sp 228 usr/lib/libc/gen/fts.c (void)close(sp->fts_rfd); sp 232 usr/lib/libc/gen/fts.c free(sp); sp 251 usr/lib/libc/gen/fts.c fts_read(FTS *sp) sp 259 usr/lib/libc/gen/fts.c if (sp->fts_cur == NULL || ISSET(FTS_STOP)) sp 263 usr/lib/libc/gen/fts.c p = sp->fts_cur; sp 271 usr/lib/libc/gen/fts.c p->fts_info = fts_stat(sp, p, 0); sp 283 usr/lib/libc/gen/fts.c p->fts_info = fts_stat(sp, p, 1); sp 298 usr/lib/libc/gen/fts.c (ISSET(FTS_XDEV) && p->fts_dev != sp->fts_dev)) { sp 301 usr/lib/libc/gen/fts.c if (sp->fts_child) { sp 302 usr/lib/libc/gen/fts.c fts_lfree(sp->fts_child); sp 303 usr/lib/libc/gen/fts.c sp->fts_child = NULL; sp 310 usr/lib/libc/gen/fts.c if (sp->fts_child && sp->fts_options & FTS_NAMEONLY) { sp 311 usr/lib/libc/gen/fts.c sp->fts_options &= ~FTS_NAMEONLY; sp 312 usr/lib/libc/gen/fts.c fts_lfree(sp->fts_child); sp 313 usr/lib/libc/gen/fts.c sp->fts_child = NULL; sp 328 usr/lib/libc/gen/fts.c if (sp->fts_child) { sp 329 usr/lib/libc/gen/fts.c if (CHDIR(sp, p->fts_accpath)) { sp 332 usr/lib/libc/gen/fts.c for (p = sp->fts_child; p; p = p->fts_link) sp 336 usr/lib/libc/gen/fts.c } else if ((sp->fts_child = fts_build(sp, BREAD)) == NULL) { sp 341 usr/lib/libc/gen/fts.c p = sp->fts_child; sp 342 usr/lib/libc/gen/fts.c sp->fts_child = NULL; sp 356 usr/lib/libc/gen/fts.c if (!ISSET(FTS_NOCHDIR) && FCHDIR(sp, sp->fts_rfd)) { sp 360 usr/lib/libc/gen/fts.c fts_load(sp, p); sp 361 usr/lib/libc/gen/fts.c return (sp->fts_cur = p); sp 372 usr/lib/libc/gen/fts.c p->fts_info = fts_stat(sp, p, 1); sp 384 usr/lib/libc/gen/fts.c name: t = sp->fts_path + NAPPEND(p->fts_parent); sp 387 usr/lib/libc/gen/fts.c return (sp->fts_cur = p); sp 401 usr/lib/libc/gen/fts.c return (sp->fts_cur = NULL); sp 405 usr/lib/libc/gen/fts.c sp->fts_path[p->fts_pathlen] = '\0'; sp 413 usr/lib/libc/gen/fts.c if (!ISSET(FTS_NOCHDIR) && FCHDIR(sp, sp->fts_rfd)) { sp 418 usr/lib/libc/gen/fts.c if (FCHDIR(sp, p->fts_symfd)) { sp 427 usr/lib/libc/gen/fts.c if (CHDIR(sp, "..")) { sp 433 usr/lib/libc/gen/fts.c return (sp->fts_cur = p); sp 444 usr/lib/libc/gen/fts.c fts_set(FTS *sp, FTSENT *p, int instr) sp 456 usr/lib/libc/gen/fts.c fts_children(FTS *sp, int instr) sp 467 usr/lib/libc/gen/fts.c p = sp->fts_cur; sp 492 usr/lib/libc/gen/fts.c if (sp->fts_child) sp 493 usr/lib/libc/gen/fts.c fts_lfree(sp->fts_child); sp 496 usr/lib/libc/gen/fts.c sp->fts_options |= FTS_NAMEONLY; sp 510 usr/lib/libc/gen/fts.c return (sp->fts_child = fts_build(sp, instr)); sp 514 usr/lib/libc/gen/fts.c sp->fts_child = fts_build(sp, instr); sp 518 usr/lib/libc/gen/fts.c return (sp->fts_child); sp 536 usr/lib/libc/gen/fts.c fts_build(FTS *sp, int type) sp 551 usr/lib/libc/gen/fts.c cur = sp->fts_cur; sp 607 usr/lib/libc/gen/fts.c if (FCHDIR(sp, dirfd(dirp))) { sp 628 usr/lib/libc/gen/fts.c maxlen = sp->fts_pathlen - cur->fts_pathlen - 1; sp 631 usr/lib/libc/gen/fts.c cp = sp->fts_path + len; sp 644 usr/lib/libc/gen/fts.c if ((p = fts_alloc(sp, dp->d_name, (int)dp->d_namlen)) == NULL) sp 647 usr/lib/libc/gen/fts.c if (fts_palloc(sp, (size_t)dp->d_namlen)) { sp 663 usr/lib/libc/gen/fts.c adjaddr = sp->fts_path; sp 664 usr/lib/libc/gen/fts.c maxlen = sp->fts_pathlen - sp->fts_cur->fts_pathlen - 1; sp 668 usr/lib/libc/gen/fts.c p->fts_parent = sp->fts_cur; sp 700 usr/lib/libc/gen/fts.c p->fts_info = fts_stat(sp, p, 0); sp 725 usr/lib/libc/gen/fts.c fts_padjust(sp, adjaddr); sp 732 usr/lib/libc/gen/fts.c if (cp - 1 > sp->fts_path) sp 746 usr/lib/libc/gen/fts.c FCHDIR(sp, sp->fts_rfd) : CHDIR(sp, ".."))) { sp 760 usr/lib/libc/gen/fts.c if (sp->fts_compar && nitems > 1) sp 761 usr/lib/libc/gen/fts.c head = fts_sort(sp, head, nitems); sp 766 usr/lib/libc/gen/fts.c fts_stat(FTS *sp, FTSENT *p, int follow) sp 846 usr/lib/libc/gen/fts.c fts_sort(FTS *sp, FTSENT *head, int nitems) sp 857 usr/lib/libc/gen/fts.c if (nitems > sp->fts_nitems) { sp 858 usr/lib/libc/gen/fts.c sp->fts_nitems = nitems + 40; sp 859 usr/lib/libc/gen/fts.c if ((sp->fts_array = realloc(sp->fts_array, sp 860 usr/lib/libc/gen/fts.c (size_t)(sp->fts_nitems * sizeof(FTSENT *)))) == NULL) { sp 861 usr/lib/libc/gen/fts.c sp->fts_nitems = 0; sp 865 usr/lib/libc/gen/fts.c for (ap = sp->fts_array, p = head; p; p = p->fts_link) sp 867 usr/lib/libc/gen/fts.c qsort((void *)sp->fts_array, nitems, sizeof(FTSENT *), sp 868 usr/lib/libc/gen/fts.c (int (*)(const void *, const void *))sp->fts_compar); sp 870 usr/lib/libc/gen/fts.c for (head = *(ap = sp->fts_array); --nitems; ++ap) sp 877 usr/lib/libc/gen/fts.c fts_alloc(FTS *sp, char *name, int namelen) sp 902 usr/lib/libc/gen/fts.c p->fts_path = sp->fts_path; sp 930 usr/lib/libc/gen/fts.c fts_palloc(FTS *sp, size_t more) sp 932 usr/lib/libc/gen/fts.c sp->fts_pathlen += more + 256; sp 933 usr/lib/libc/gen/fts.c sp->fts_path = realloc(sp->fts_path, (size_t)sp->fts_pathlen); sp 934 usr/lib/libc/gen/fts.c return (sp->fts_path == NULL); sp 942 usr/lib/libc/gen/fts.c fts_padjust(FTS *sp, void *addr) sp 952 usr/lib/libc/gen/fts.c for (p = sp->fts_child; p; p = p->fts_link) sp 956 usr/lib/libc/gen/fts.c for (p = sp->fts_cur; p->fts_level >= FTS_ROOTLEVEL;) { sp 155 usr/sample/tetris/screen.c cell *bp, *sp; sp 169 usr/sample/tetris/screen.c sp = &curscreen[D_FIRST * B_COLS]; sp 172 usr/sample/tetris/screen.c for (i = 0; i < B_COLS; bp++, sp++, i++) { sp 173 usr/sample/tetris/screen.c if (*sp == (so = *bp)) sp 175 usr/sample/tetris/screen.c *sp = so; sp 197 usr/sample/tetris/screen.c if (i > STOP || sp[1] != bp[1] || so != bp[1]) sp 199 usr/sample/tetris/screen.c if (sp[2] != bp[2]) sp 200 usr/sample/tetris/screen.c sp[1] = -1; sp 201 usr/sample/tetris/screen.c else if (i < STOP && so == bp[2] && sp[3] != bp[3]) { sp 202 usr/sample/tetris/screen.c sp[2] = -1; sp 203 usr/sample/tetris/screen.c sp[1] = -1; sp 78 usr/server/exec/exec_execve.c void *stack, *sp; sp 184 usr/server/exec/exec_execve.c exec.xarg1, exec.xarg2, &sp)) != 0) sp 194 usr/server/exec/exec_execve.c if ((error = thread_load(t, (void (*)(void))exec.entry, sp)) != 0) sp 321 usr/server/exec/exec_execve.c u_long arg_top, mapped, sp; sp 336 usr/server/exec/exec_execve.c sp = mapped + DFLSTKSZ - sizeof(int) * 3; sp 343 usr/server/exec/exec_execve.c *(char *)sp = '\0'; sp 344 usr/server/exec/exec_execve.c sp -= strlen(path); sp 345 usr/server/exec/exec_execve.c sp = SP_ALIGN(sp); sp 346 usr/server/exec/exec_execve.c strlcpy((char *)sp, path, PATH_MAX); sp 347 usr/server/exec/exec_execve.c file = (char *)sp; sp 350 usr/server/exec/exec_execve.c sp -= msg->bufsz; sp 351 usr/server/exec/exec_execve.c sp = SP_ALIGN(sp); sp 352 usr/server/exec/exec_execve.c memcpy((char *)sp, (char *)&msg->buf, msg->bufsz); sp 353 usr/server/exec/exec_execve.c arg_top = sp; sp 360 usr/server/exec/exec_execve.c sp -= (len + 1); sp 361 usr/server/exec/exec_execve.c strlcpy((char *)sp, xarg2, len + 1); sp 362 usr/server/exec/exec_execve.c arg_top = sp; sp 367 usr/server/exec/exec_execve.c sp -= (len + 1); sp 368 usr/server/exec/exec_execve.c strlcpy((char *)sp, xarg1, len + 1); sp 369 usr/server/exec/exec_execve.c arg_top = sp; sp 374 usr/server/exec/exec_execve.c sp -= ((envc + 1) * sizeof(char *)); sp 375 usr/server/exec/exec_execve.c envp = (char **)sp; sp 378 usr/server/exec/exec_execve.c sp -= ((argc + 1) * sizeof(char *)); sp 379 usr/server/exec/exec_execve.c argv = (char **)sp; sp 382 usr/server/exec/exec_execve.c sp -= sizeof(int); sp 383 usr/server/exec/exec_execve.c *(int *)(sp) = argc + 1; sp 402 usr/server/exec/exec_execve.c *new_sp = (void *)((u_long)stack + (sp - mapped)); sp 949 usr/server/fs/vfs/main.c void *stack, *sp; sp 958 usr/server/fs/vfs/main.c sp = (void *)((u_long)stack + DFLSTKSZ - sizeof(u_long) * 3); sp 959 usr/server/fs/vfs/main.c if ((error = thread_load(t, entry, sp)) != 0) sp 270 usr/server/pow/pow.c void *stack, *sp; sp 279 usr/server/pow/pow.c sp = (void *)((u_long)stack + DFLSTKSZ - sizeof(u_long) * 3); sp 280 usr/server/pow/pow.c if ((error = thread_load(t, entry, sp)) != 0)