val 43 bsp/boot/common/string.c long val = 0; val 48 bsp/boot/common/string.c val *= 10; val 49 bsp/boot/common/string.c val += (long)(*str - '0'); val 52 bsp/boot/common/string.c return val; val 46 bsp/boot/ppc/arch/elf_reloc.c uint32_t val; val 49 bsp/boot/ppc/arch/elf_reloc.c val = sym_val + rela->r_addend; val 56 bsp/boot/ppc/arch/elf_reloc.c *(uint32_t *)where = val; val 60 bsp/boot/ppc/arch/elf_reloc.c *(uint16_t *)where = (uint16_t)val; val 64 bsp/boot/ppc/arch/elf_reloc.c *(uint16_t *)where = (uint16_t)(val >> 16); val 68 bsp/boot/ppc/arch/elf_reloc.c *(uint16_t *)where = (uint16_t)((val + 0x8000) >> 16); val 74 bsp/boot/ppc/arch/elf_reloc.c | ((val - (uint32_t)where) val 79 bsp/boot/ppc/arch/elf_reloc.c *(uint32_t *)where = val - (uint32_t)where; val 56 bsp/boot/ppc/prep/debug.c outb(int port, u_char val) val 59 bsp/boot/ppc/prep/debug.c ISA_io[port] = val; val 146 bsp/drv/arm/gba/lcd.c int i, row, col, bit, val = 0; val 154 bsp/drv/arm/gba/lcd.c val = bit; val 157 bsp/drv/arm/gba/lcd.c val + (bit << 8); val 439 bsp/drv/arm/gba/swkbd.c uint16_t val; val 454 bsp/drv/arm/gba/swkbd.c val = cursor_bitmap[i] & bit ? 0xff : 0; val 456 bsp/drv/arm/gba/swkbd.c val |= cursor_bitmap[i] & bit ? 0xff00 : 0; val 458 bsp/drv/arm/gba/swkbd.c cur[i * 4 + j] = val; val 44 bsp/drv/arm/include/busio.h #define bus_write_8(addr, val) (*((volatile uint8_t *)(addr)) = (val)) val 45 bsp/drv/arm/include/busio.h #define bus_write_16(addr, val) (*((volatile uint16_t *)(addr)) = (val)) val 46 bsp/drv/arm/include/busio.h #define bus_write_32(addr, val) (*((volatile uint32_t *)(addr)) = (val)) val 526 bsp/drv/dev/base/kd.c u_long val; val 560 bsp/drv/dev/base/kd.c val = strtoul(pv, NULL, 16); val 561 bsp/drv/dev/base/kd.c if (val == ULONG_MAX) val 573 bsp/drv/dev/base/kd.c *(char *)((char *)addr + i) = (char)(val & 0xff); val 574 bsp/drv/dev/base/kd.c val >>= 8; val 211 bsp/drv/dev/base/wscons.c int val; val 223 bsp/drv/dev/base/wscons.c val = c - '0'; val 226 bsp/drv/dev/base/wscons.c esc->arg1 = val; val 230 bsp/drv/dev/base/wscons.c esc->arg1 = esc->arg1 * 10 + val; val 233 bsp/drv/dev/base/wscons.c esc->arg2 = val; val 237 bsp/drv/dev/base/wscons.c esc->arg2 = esc->arg2 * 10 + val; val 124 bsp/drv/dev/input/pckbd.c u_char val = 0; val 128 bsp/drv/dev/input/pckbd.c val |= 0x04; val 129 bsp/drv/dev/input/pckbd.c if (sc->led_sts != val) { val 130 bsp/drv/dev/input/pckbd.c sc->led_sts = val; val 133 bsp/drv/dev/input/pckbd.c bus_write_8(KMC_DATA, val); val 144 bsp/drv/dev/input/pckbd.c u_char scan, ascii, val; val 153 bsp/drv/dev/input/pckbd.c val = bus_read_8(KMC_PORTB); val 154 bsp/drv/dev/input/pckbd.c bus_write_8(KMC_PORTB, val | 0x80); val 155 bsp/drv/dev/input/pckbd.c bus_write_8(KMC_PORTB, val); val 93 bsp/drv/dev/input/psaux.c kmc_send_auxcmd(u_char val) val 96 bsp/drv/dev/input/psaux.c DPRINTF(("kmc_send_auxcmd: %x\n", val)); val 100 bsp/drv/dev/input/psaux.c bus_write_8(KMC_DATA, val); val 107 bsp/drv/dev/input/psaux.c kmc_write_aux(u_char val) val 112 bsp/drv/dev/input/psaux.c DPRINTF(("kmc_write_aux: val=%x\n", val)); val 119 bsp/drv/dev/input/psaux.c bus_write_8(KMC_DATA, val); val 130 bsp/drv/dev/input/psaux.c printf("kmc_write_aux: error val=%x\n", val); val 79 bsp/drv/dev/rtc/mc146818.c u_char val; val 84 bsp/drv/dev/rtc/mc146818.c val = bus_read_8(RTC_DATA); val 86 bsp/drv/dev/rtc/mc146818.c return val; val 91 bsp/drv/dev/rtc/mc146818.c mc_write(u_char index, u_char val) val 97 bsp/drv/dev/rtc/mc146818.c bus_write_8(RTC_DATA, val); val 109 bsp/drv/dev/video/vga.c crtc_write(u_char index, u_char val) val 113 bsp/drv/dev/video/vga.c bus_write_8(CRTC_DATA, val); val 119 bsp/drv/dev/video/vga.c u_char val; val 122 bsp/drv/dev/video/vga.c val = bus_read_8(SEQ_DATA); val 123 bsp/drv/dev/video/vga.c bus_write_8(SEQ_DATA, val & ~0x20); val 129 bsp/drv/dev/video/vga.c u_char val; val 132 bsp/drv/dev/video/vga.c val = bus_read_8(SEQ_DATA); val 133 bsp/drv/dev/video/vga.c bus_write_8(SEQ_DATA, val | 0x20); val 40 bsp/drv/lib/string.c long val = 0; val 45 bsp/drv/lib/string.c val *= 10; val 46 bsp/drv/lib/string.c val += (*str - '0'); val 49 bsp/drv/lib/string.c return val; val 47 bsp/drv/ppc/include/busio.h #define bus_write_8(addr, val) (*((volatile uint8_t *)(IOBASE+addr)) = (val)) val 48 bsp/drv/ppc/include/busio.h #define bus_write_16(addr, val) (*((volatile uint16_t *)(IOBASE+addr)) = (val)) val 49 bsp/drv/ppc/include/busio.h #define bus_write_32(addr, val) (*((volatile uint32_t *)(IOBASE+addr)) = (val)) val 41 bsp/drv/x86/include/busio.h void bus_write_8(int addr, uint8_t val); val 42 bsp/drv/x86/include/busio.h void bus_write_16(int addr, uint16_t val); val 43 bsp/drv/x86/include/busio.h void bus_write_32(int addr, uint32_t val); val 61 bsp/hal/arm/arch/context.c context_set(context_t ctx, int type, register_t val) val 72 bsp/hal/arm/arch/context.c ((vaddr_t)val - sizeof(struct cpu_regs)); val 81 bsp/hal/arm/arch/context.c u->svc_sp = (uint32_t)val; val 88 bsp/hal/arm/arch/context.c k->r4 = (uint32_t)val; val 93 bsp/hal/arm/arch/context.c k->r5 = (uint32_t)val; val 99 bsp/hal/arm/arch/context.c u->sp = (uint32_t)val; val 106 bsp/hal/arm/arch/context.c u->pc = (uint32_t)val; val 113 bsp/hal/arm/arch/context.c u->r0 = (uint32_t)val; /* Argument 1 */ val 118 bsp/hal/arm/gba/diag.c int i, row, col, bit, val = 0; val 127 bsp/hal/arm/gba/diag.c val = bit; val 131 bsp/hal/arm/gba/diag.c val + (bit << 8); val 62 bsp/hal/ppc/arch/context.c context_set(context_t ctx, int type, register_t val) val 73 bsp/hal/ppc/arch/context.c val -= STKFRAME_LEN; val 77 bsp/hal/ppc/arch/context.c ((uint32_t)val - sizeof(struct cpu_regs)); val 80 bsp/hal/ppc/arch/context.c k->kstack = (uint32_t)val; val 92 bsp/hal/ppc/arch/context.c k->lr = (uint32_t)val; val 98 bsp/hal/ppc/arch/context.c *argp = (uint32_t)val; val 104 bsp/hal/ppc/arch/context.c u->gr[1] = (uint32_t)val; val 110 bsp/hal/ppc/arch/context.c u->srr0 = (uint32_t)val; val 117 bsp/hal/ppc/arch/context.c u->gr[3] = (uint32_t)val; val 119 bsp/hal/ppc/arch/context.c copyout(&val, argp, sizeof(uint32_t)); val 133 bsp/hal/ppc/prep/interrupt.c u_char val; val 139 bsp/hal/ppc/prep/interrupt.c val = inb(port); val 141 bsp/hal/ppc/prep/interrupt.c val |= bit; val 143 bsp/hal/ppc/prep/interrupt.c val &= ~bit; val 144 bsp/hal/ppc/prep/interrupt.c outb(port, val); val 39 bsp/hal/ppc/prep/io.c outb(int port, u_char val) val 42 bsp/hal/ppc/prep/io.c ISA_io[port] = val; val 86 bsp/hal/ppc/prep/machdep.c u_char val; val 88 bsp/hal/ppc/prep/machdep.c val = inb(0x92); val 89 bsp/hal/ppc/prep/machdep.c val &= ~1UL; val 90 bsp/hal/ppc/prep/machdep.c outb(0x92, val); val 92 bsp/hal/ppc/prep/machdep.c val = inb(0x92); val 93 bsp/hal/ppc/prep/machdep.c val |= 1; val 94 bsp/hal/ppc/prep/machdep.c outb(0x92, val); val 62 bsp/hal/x86/arch/context.c context_set(context_t ctx, int type, register_t val) val 74 bsp/hal/x86/arch/context.c ((uint32_t)val - sizeof(struct cpu_regs)); val 75 bsp/hal/x86/arch/context.c ctx->esp0 = (uint32_t)val; val 88 bsp/hal/x86/arch/context.c k->eip = (uint32_t)val; val 94 bsp/hal/x86/arch/context.c *argp = (uint32_t)val; val 100 bsp/hal/x86/arch/context.c u->esp = (uint32_t)val; val 107 bsp/hal/x86/arch/context.c u->eip = (uint32_t)val; val 119 bsp/hal/x86/arch/context.c copyout(&val, argp, sizeof(uint32_t)); val 131 bsp/hal/x86/pc/interrupt.c u_char val; val 137 bsp/hal/x86/pc/interrupt.c val = inb(port); val 139 bsp/hal/x86/pc/interrupt.c val |= bit; val 141 bsp/hal/x86/pc/interrupt.c val &= ~bit; val 142 bsp/hal/x86/pc/interrupt.c outb(port, val); val 40 include/sys/mount.h typedef struct { int32_t val[2]; } fsid_t; /* file system id type */ val 68 include/sys/termios.h #define CCEQ(val, c) (c == val ? val != _POSIX_VDISABLE : 0) val 44 usr/arch/ppc/elf_reloc.c uint32_t val; val 47 usr/arch/ppc/elf_reloc.c val = sym_val + rela->r_addend; val 54 usr/arch/ppc/elf_reloc.c *(uint32_t *)where = val; val 58 usr/arch/ppc/elf_reloc.c *(uint16_t *)where = val; val 62 usr/arch/ppc/elf_reloc.c *(uint16_t *)where = (val >> 16); val 66 usr/arch/ppc/elf_reloc.c *(uint16_t *)where = (val + 0x8000) >> 16; val 72 usr/arch/ppc/elf_reloc.c | ((val - (uint32_t)where) val 77 usr/arch/ppc/elf_reloc.c *(uint32_t *)where = val - (uint32_t)where; val 51 usr/bin/sh/sh.h extern void setvar(char *name, char *val); val 47 usr/bin/sh/var.c char *val; val 90 usr/bin/sh/var.c setvar(char *name, char *val) val 128 usr/bin/sh/var.c var->val = strdup(val); val 142 usr/bin/sh/var.c free(var->val); val 144 usr/bin/sh/var.c var->val = NULL; val 175 usr/bin/sh/var.c printf("%s=%s\n", var->name, var->val); val 207 usr/bin/sh/var.c setenv(var->name, var->val, 1); val 112 usr/lib/libc/stdio/vfprintf.c __ultoa(u_long val, char *endp, int base, int octzero, char *xdigs) val 123 usr/lib/libc/stdio/vfprintf.c if (val < 10) { /* many numbers are 1 digit */ val 124 usr/lib/libc/stdio/vfprintf.c *--cp = to_char(val); val 133 usr/lib/libc/stdio/vfprintf.c if (val > LONG_MAX) { val 134 usr/lib/libc/stdio/vfprintf.c *--cp = to_char(val % 10); val 135 usr/lib/libc/stdio/vfprintf.c sval = val / 10; val 137 usr/lib/libc/stdio/vfprintf.c sval = val; val 146 usr/lib/libc/stdio/vfprintf.c *--cp = to_char(val & 7); val 147 usr/lib/libc/stdio/vfprintf.c val >>= 3; val 148 usr/lib/libc/stdio/vfprintf.c } while (val); val 155 usr/lib/libc/stdio/vfprintf.c *--cp = xdigs[val & 15]; val 156 usr/lib/libc/stdio/vfprintf.c val >>= 4; val 157 usr/lib/libc/stdio/vfprintf.c } while (val); val 47 usr/lib/posix/process/setpriority.c int error, val; val 73 usr/lib/posix/process/setpriority.c val = PRI_DEFAULT + pri; val 75 usr/lib/posix/process/setpriority.c error = thread_setpri(thread_self(), val); val 131 usr/server/fs/fatfs/fatfs_fat.c uint16_t val; val 146 usr/server/fs/fatfs/fatfs_fat.c val = *((uint16_t *)(fmp->fat_buf + offset)); val 151 usr/server/fs/fatfs/fatfs_fat.c val >>= 4; val 153 usr/server/fs/fatfs/fatfs_fat.c val &= 0xfff; val 155 usr/server/fs/fatfs/fatfs_fat.c *next = (u_long)val; val 172 usr/server/fs/fatfs/fatfs_fat.c uint16_t val, tmp; val 186 usr/server/fs/fatfs/fatfs_fat.c val = (uint16_t)(next & fmp->fat_mask); val 190 usr/server/fs/fatfs/fatfs_fat.c val <<= 4; val 191 usr/server/fs/fatfs/fatfs_fat.c val |= (tmp & 0xf); val 194 usr/server/fs/fatfs/fatfs_fat.c val |= tmp; val 197 usr/server/fs/fatfs/fatfs_fat.c *((uint16_t *)(buf + offset)) = val; val 91 usr/server/fs/vfs/vfs_vnode.c u_int val = 0; val 95 usr/server/fs/vfs/vfs_vnode.c val = ((val << 5) + val) + *path++; val 97 usr/server/fs/vfs/vfs_vnode.c return (val ^ (u_int)mp) & (VNODE_BUCKETS - 1); val 61 usr/test/environ/environ.c char *val; val 91 usr/test/environ/environ.c val = getenv("TMP"); val 92 usr/test/environ/environ.c if (val != NULL) val 97 usr/test/environ/environ.c val = getenv("PATH"); val 98 usr/test/environ/environ.c if (val == NULL) val 100 usr/test/environ/environ.c printf("PATH=%s\n", val); val 42 usr/test/sem/sem.c u_int val; val 54 usr/test/sem/sem.c error = sem_getvalue(&sem, &val); val 55 usr/test/sem/sem.c printf("Semaphore value=%d\n", val); val 62 usr/test/sem/sem.c error = sem_getvalue(&sem, &val); val 63 usr/test/sem/sem.c printf("Semaphore value=%d\n", val); val 70 usr/test/sem/sem.c error = sem_getvalue(&sem, &val); val 71 usr/test/sem/sem.c printf("Semaphore value=%d\n", val); val 78 usr/test/sem/sem.c error = sem_getvalue(&sem, &val); val 79 usr/test/sem/sem.c printf("Semaphore value=%d\n", val); val 104 usr/test/sem/sem.c error = sem_getvalue(&sem, &val); val 105 usr/test/sem/sem.c printf("Semaphore value=%d\n", val);