r 180 console.c uint r; // Read index r 212 console.c if(c != 0 && input.e-input.r < INPUT_BUF){ r 216 console.c if(c == '\n' || c == C('D') || input.e == input.r+INPUT_BUF){ r 218 console.c wakeup(&input.r); r 237 console.c while(input.r == input.w){ r 243 console.c sleep(&input.r, &input.lock); r 245 console.c c = input.buf[input.r++ % INPUT_BUF]; r 250 console.c input.r--; r 75 defs.h void cmostime(struct rtcdate *r); r 98 file.c int r; r 106 file.c if((r = readi(f->ip, addr, f->off, n)) > 0) r 107 file.c f->off += r; r 109 file.c return r; r 119 file.c int r; r 141 file.c if ((r = writei(f->ip, addr + i, f->off, n1)) > 0) r 142 file.c f->off += r; r 146 file.c if(r < 0) r 148 file.c if(r != n1) r 150 file.c i += r; r 38 ide.c int r; r 40 ide.c while(((r = inb(0x1f7)) & (IDE_BSY|IDE_DRDY)) != IDE_DRDY) r 42 ide.c if(checkerr && (r & (IDE_DF|IDE_ERR)) != 0) r 62 kalloc.c struct run *r; r 72 kalloc.c r = (struct run*)v; r 73 kalloc.c r->next = kmem.freelist; r 74 kalloc.c kmem.freelist = r; r 85 kalloc.c struct run *r; r 89 kalloc.c r = kmem.freelist; r 90 kalloc.c if(r) r 91 kalloc.c kmem.freelist = r->next; r 94 kalloc.c return (char*)r; r 193 lapic.c static void fill_rtcdate(struct rtcdate *r) r 195 lapic.c r->second = cmos_read(SECS); r 196 lapic.c r->minute = cmos_read(MINS); r 197 lapic.c r->hour = cmos_read(HOURS); r 198 lapic.c r->day = cmos_read(DAY); r 199 lapic.c r->month = cmos_read(MONTH); r 200 lapic.c r->year = cmos_read(YEAR); r 204 lapic.c void cmostime(struct rtcdate *r) r 235 lapic.c *r = t1; r 236 lapic.c r->year += 2000; r 74 ulib.c int r; r 79 ulib.c r = fstat(fd, st); r 81 ulib.c return r;