Searched refs:r (Results 1 – 11 of 11) sorted by relevance
62 struct run *r; in kfree() local72 r = (struct run*)v; in kfree()73 r->next = kmem.freelist; in kfree()74 kmem.freelist = r; in kfree()85 struct run *r; in kalloc() local89 r = kmem.freelist; in kalloc()90 if(r) in kalloc()91 kmem.freelist = r->next; in kalloc()94 return (char*)r; in kalloc()
99 int r; in fileread() local107 if((r = readi(f->ip, addr, f->off, n)) > 0) in fileread()108 f->off += r; in fileread()110 return r; in fileread()120 int r; in filewrite() local142 if ((r = writei(f->ip, addr + i, f->off, n1)) > 0) in filewrite()143 f->off += r; in filewrite()147 if(r < 0) in filewrite()149 if(r != n1) in filewrite()151 i += r; in filewrite()
184 fill_rtcdate(struct rtcdate *r) in fill_rtcdate() argument186 r->second = cmos_read(SECS); in fill_rtcdate()187 r->minute = cmos_read(MINS); in fill_rtcdate()188 r->hour = cmos_read(HOURS); in fill_rtcdate()189 r->day = cmos_read(DAY); in fill_rtcdate()190 r->month = cmos_read(MONTH); in fill_rtcdate()191 r->year = cmos_read(YEAR); in fill_rtcdate()196 cmostime(struct rtcdate *r) in cmostime() argument227 *r = t1; in cmostime()228 r->year += 2000; in cmostime()
47 int r; in holdingsleep() local50 r = lk->locked && (lk->pid == myproc()->pid); in holdingsleep()52 return r; in holdingsleep()
184 uint r; // Read index member217 if(c != 0 && input.e-input.r < INPUT_BUF){ in consoleintr()221 if(c == '\n' || c == C('D') || input.e == input.r+INPUT_BUF){ in consoleintr()223 wakeup(&input.r); in consoleintr()245 while(input.r == input.w){ in consoleread()251 sleep(&input.r, &cons.lock); in consoleread()253 c = input.buf[input.r++ % INPUT_BUF]; in consoleread()258 input.r--; in consoleread()
92 int r; in holding() local94 r = lock->locked && lock->cpu == mycpu(); in holding()96 return r; in holding()
74 int r; in stat() local79 r = fstat(fd, st); in stat()81 return r; in stat()
41 int r; in idewait() local43 while(((r = inb(0x1f7)) & (IDE_BSY|IDE_DRDY)) != IDE_DRDY) in idewait()45 if(checkerr && (r & (IDE_DF|IDE_ERR)) != 0) in idewait()
21 *(.rodata .rodata.* .gnu.linkonce.r.*)
76 void cmostime(struct rtcdate *r);
337 int r = ip->ref; in iput() local339 if(r == 1){ in iput()