r 180 arch/i386/i386/apm.c #define apm_get_powstat(r) apmcall(APM_POWER_STATUS, APM_DEV_ALLDEVS, r)
r 186 arch/i386/i386/apm.c apm_get_event(struct apmregs *r)
r 190 arch/i386/i386/apm.c bzero(r, sizeof(*r));
r 191 arch/i386/i386/apm.c rv = apmcall(APM_GET_PM_EVENT, 0, r);
r 137 arch/i386/i386/esm.c #define EREAD(s, r) bus_space_read_1((s)->sc_iot, (s)->sc_ioh, (r))
r 138 arch/i386/i386/esm.c #define EWRITE(s, r, v) bus_space_write_1((s)->sc_iot, (s)->sc_ioh, (r), (v))
r 67 arch/i386/i386/svr4_machdep.c svr4_greg_t *r = uc->uc_mcontext.greg;
r 78 arch/i386/i386/svr4_machdep.c r[SVR4_X86_GS] = tf->tf_vm86_gs;
r 79 arch/i386/i386/svr4_machdep.c r[SVR4_X86_FS] = tf->tf_vm86_fs;
r 80 arch/i386/i386/svr4_machdep.c r[SVR4_X86_ES] = tf->tf_vm86_es;
r 81 arch/i386/i386/svr4_machdep.c r[SVR4_X86_DS] = tf->tf_vm86_ds;
r 82 arch/i386/i386/svr4_machdep.c r[SVR4_X86_EFL] = get_vflags(p);
r 86 arch/i386/i386/svr4_machdep.c r[SVR4_X86_FS] = tf->tf_fs;
r 87 arch/i386/i386/svr4_machdep.c r[SVR4_X86_GS] = tf->tf_gs;
r 88 arch/i386/i386/svr4_machdep.c r[SVR4_X86_ES] = tf->tf_es;
r 89 arch/i386/i386/svr4_machdep.c r[SVR4_X86_DS] = tf->tf_ds;
r 90 arch/i386/i386/svr4_machdep.c r[SVR4_X86_EFL] = tf->tf_eflags;
r 92 arch/i386/i386/svr4_machdep.c r[SVR4_X86_EDI] = tf->tf_edi;
r 93 arch/i386/i386/svr4_machdep.c r[SVR4_X86_ESI] = tf->tf_esi;
r 94 arch/i386/i386/svr4_machdep.c r[SVR4_X86_EBP] = tf->tf_ebp;
r 95 arch/i386/i386/svr4_machdep.c r[SVR4_X86_ESP] = tf->tf_esp;
r 96 arch/i386/i386/svr4_machdep.c r[SVR4_X86_EBX] = tf->tf_ebx;
r 97 arch/i386/i386/svr4_machdep.c r[SVR4_X86_EDX] = tf->tf_edx;
r 98 arch/i386/i386/svr4_machdep.c r[SVR4_X86_ECX] = tf->tf_ecx;
r 99 arch/i386/i386/svr4_machdep.c r[SVR4_X86_EAX] = tf->tf_eax;
r 100 arch/i386/i386/svr4_machdep.c r[SVR4_X86_TRAPNO] = 0;
r 101 arch/i386/i386/svr4_machdep.c r[SVR4_X86_ERR] = 0;
r 102 arch/i386/i386/svr4_machdep.c r[SVR4_X86_EIP] = tf->tf_eip;
r 103 arch/i386/i386/svr4_machdep.c r[SVR4_X86_CS] = tf->tf_cs;
r 104 arch/i386/i386/svr4_machdep.c r[SVR4_X86_UESP] = 0;
r 105 arch/i386/i386/svr4_machdep.c r[SVR4_X86_SS] = tf->tf_ss;
r 139 arch/i386/i386/svr4_machdep.c svr4_greg_t *r = uc->uc_mcontext.greg;
r 159 arch/i386/i386/svr4_machdep.c if (r[SVR4_X86_EFL] & PSL_VM) {
r 160 arch/i386/i386/svr4_machdep.c tf->tf_vm86_gs = r[SVR4_X86_GS];
r 161 arch/i386/i386/svr4_machdep.c tf->tf_vm86_fs = r[SVR4_X86_FS];
r 162 arch/i386/i386/svr4_machdep.c tf->tf_vm86_es = r[SVR4_X86_ES];
r 163 arch/i386/i386/svr4_machdep.c tf->tf_vm86_ds = r[SVR4_X86_DS];
r 164 arch/i386/i386/svr4_machdep.c set_vflags(p, r[SVR4_X86_EFL]);
r 174 arch/i386/i386/svr4_machdep.c if (((r[SVR4_X86_EFL] ^ tf->tf_eflags) & PSL_USERSTATIC) != 0 ||
r 175 arch/i386/i386/svr4_machdep.c !USERMODE(r[SVR4_X86_CS], r[SVR4_X86_EFL]))
r 178 arch/i386/i386/svr4_machdep.c tf->tf_fs = r[SVR4_X86_FS];
r 179 arch/i386/i386/svr4_machdep.c tf->tf_gs = r[SVR4_X86_GS];
r 180 arch/i386/i386/svr4_machdep.c tf->tf_es = r[SVR4_X86_ES];
r 181 arch/i386/i386/svr4_machdep.c tf->tf_ds = r[SVR4_X86_DS];
r 182 arch/i386/i386/svr4_machdep.c tf->tf_eflags = r[SVR4_X86_EFL];
r 184 arch/i386/i386/svr4_machdep.c tf->tf_edi = r[SVR4_X86_EDI];
r 185 arch/i386/i386/svr4_machdep.c tf->tf_esi = r[SVR4_X86_ESI];
r 186 arch/i386/i386/svr4_machdep.c tf->tf_ebp = r[SVR4_X86_EBP];
r 187 arch/i386/i386/svr4_machdep.c tf->tf_ebx = r[SVR4_X86_EBX];
r 188 arch/i386/i386/svr4_machdep.c tf->tf_edx = r[SVR4_X86_EDX];
r 189 arch/i386/i386/svr4_machdep.c tf->tf_ecx = r[SVR4_X86_ECX];
r 190 arch/i386/i386/svr4_machdep.c tf->tf_eax = r[SVR4_X86_EAX];
r 191 arch/i386/i386/svr4_machdep.c tf->tf_eip = r[SVR4_X86_EIP];
r 192 arch/i386/i386/svr4_machdep.c tf->tf_cs = r[SVR4_X86_CS];
r 193 arch/i386/i386/svr4_machdep.c tf->tf_ss = r[SVR4_X86_SS];
r 194 arch/i386/i386/svr4_machdep.c tf->tf_esp = r[SVR4_X86_ESP];
r 838 arch/i386/include/bus.h #define bus_dmamem_alloc(t, s, a, b, sg, n, r, f) \
r 839 arch/i386/include/bus.h (*(t)->_dmamem_alloc)((t), (s), (a), (b), (sg), (n), (r), (f))
r 103 arch/i386/include/lock.h int r = (i386_atomic_testset_i(lockp, __SIMPLELOCK_LOCKED)
r 108 arch/i386/include/lock.h return (r);
r 59 arch/i386/include/segments.h #define GSEL(s,r) (((s) << 3) | r) /* a global selector */
r 60 arch/i386/include/segments.h #define LSEL(s,r) (((s) << 3) | r | SEL_LDT) /* a local selector */
r 188 arch/i386/pci/pchb.c int i, r;
r 382 arch/i386/pci/pchb.c r = bus_space_read_1(sc->bt, sc->bh, I82802_RNG_DATA);
r 390 arch/i386/pci/pchb.c r = bus_space_read_1(sc->bt, sc->bh,
r 35 arch/i386/stand/libsa/debug_md.h #define REG_VALUES(r) \
r 36 arch/i386/stand/libsa/debug_md.h &(r).r_eax, &(r).r_ecx, &(r).r_edx, &(r).r_ebx, &(r).r_esp, \
r 37 arch/i386/stand/libsa/debug_md.h &(r).r_ebp, &(r).r_esi, &(r).r_edi, &(r).r_eip, &(r).r_eflags, \
r 38 arch/i386/stand/libsa/debug_md.h &(r).r_cs , &(r).r_ss, &(r).r_ds, &(r).r_es, &(r).r_fs, \
r 39 arch/i386/stand/libsa/debug_md.h &(r).r_gs
r 37 arch/i386/stand/libsa/ps2probe.c int r;
r 41 arch/i386/stand/libsa/ps2probe.c : "=a" (r), "=b" (p)
r 44 arch/i386/stand/libsa/ps2probe.c if (!(r & 0xff))
r 63 compat/ibcs2/ibcs2_fcntl.c int r = 0;
r 66 compat/ibcs2/ibcs2_fcntl.c if (flags & IBCS2_O_WRONLY) r |= O_WRONLY;
r 67 compat/ibcs2/ibcs2_fcntl.c if (flags & IBCS2_O_RDWR) r |= O_RDWR;
r 68 compat/ibcs2/ibcs2_fcntl.c if (flags & (IBCS2_O_NDELAY | IBCS2_O_NONBLOCK)) r |= O_NONBLOCK;
r 69 compat/ibcs2/ibcs2_fcntl.c if (flags & IBCS2_O_APPEND) r |= O_APPEND;
r 70 compat/ibcs2/ibcs2_fcntl.c if (flags & IBCS2_O_SYNC) r |= O_SYNC;
r 71 compat/ibcs2/ibcs2_fcntl.c if (flags & IBCS2_O_CREAT) r |= O_CREAT;
r 72 compat/ibcs2/ibcs2_fcntl.c if (flags & IBCS2_O_TRUNC) r |= O_TRUNC;
r 73 compat/ibcs2/ibcs2_fcntl.c if (flags & IBCS2_O_EXCL) r |= O_EXCL;
r 74 compat/ibcs2/ibcs2_fcntl.c return r;
r 127 compat/ibcs2/ibcs2_fcntl.c int r = 0;
r 129 compat/ibcs2/ibcs2_fcntl.c if (flags & IBCS2_O_RDONLY) r |= O_RDONLY;
r 130 compat/ibcs2/ibcs2_fcntl.c if (flags & IBCS2_O_WRONLY) r |= O_WRONLY;
r 131 compat/ibcs2/ibcs2_fcntl.c if (flags & IBCS2_O_RDWR) r |= O_RDWR;
r 132 compat/ibcs2/ibcs2_fcntl.c if (flags & IBCS2_O_NDELAY) r |= O_NONBLOCK;
r 133 compat/ibcs2/ibcs2_fcntl.c if (flags & IBCS2_O_APPEND) r |= O_APPEND;
r 134 compat/ibcs2/ibcs2_fcntl.c if (flags & IBCS2_O_SYNC) r |= O_SYNC;
r 135 compat/ibcs2/ibcs2_fcntl.c if (flags & IBCS2_O_NONBLOCK) r |= O_NONBLOCK;
r 136 compat/ibcs2/ibcs2_fcntl.c if (flags & IBCS2_O_CREAT) r |= O_CREAT;
r 137 compat/ibcs2/ibcs2_fcntl.c if (flags & IBCS2_O_TRUNC) r |= O_TRUNC;
r 138 compat/ibcs2/ibcs2_fcntl.c if (flags & IBCS2_O_EXCL) r |= O_EXCL;
r 139 compat/ibcs2/ibcs2_fcntl.c if (flags & IBCS2_O_NOCTTY) r |= O_NOCTTY;
r 140 compat/ibcs2/ibcs2_fcntl.c return r;
r 148 compat/ibcs2/ibcs2_fcntl.c int r = 0;
r 150 compat/ibcs2/ibcs2_fcntl.c if (flags & O_RDONLY) r |= IBCS2_O_RDONLY;
r 151 compat/ibcs2/ibcs2_fcntl.c if (flags & O_WRONLY) r |= IBCS2_O_WRONLY;
r 152 compat/ibcs2/ibcs2_fcntl.c if (flags & O_RDWR) r |= IBCS2_O_RDWR;
r 153 compat/ibcs2/ibcs2_fcntl.c if (flags & O_NDELAY) r |= IBCS2_O_NONBLOCK;
r 154 compat/ibcs2/ibcs2_fcntl.c if (flags & O_APPEND) r |= IBCS2_O_APPEND;
r 155 compat/ibcs2/ibcs2_fcntl.c if (flags & O_SYNC) r |= IBCS2_O_SYNC;
r 156 compat/ibcs2/ibcs2_fcntl.c if (flags & O_NONBLOCK) r |= IBCS2_O_NONBLOCK;
r 157 compat/ibcs2/ibcs2_fcntl.c if (flags & O_CREAT) r |= IBCS2_O_CREAT;
r 158 compat/ibcs2/ibcs2_fcntl.c if (flags & O_TRUNC) r |= IBCS2_O_TRUNC;
r 159 compat/ibcs2/ibcs2_fcntl.c if (flags & O_EXCL) r |= IBCS2_O_EXCL;
r 160 compat/ibcs2/ibcs2_fcntl.c if (flags & O_NOCTTY) r |= IBCS2_O_NOCTTY;
r 161 compat/ibcs2/ibcs2_fcntl.c return r;
r 125 compat/ibcs2/ibcs2_ioctl.c register u_long l, r;
r 127 compat/ibcs2/ibcs2_ioctl.c l = st->c_iflag; r = 0;
r 128 compat/ibcs2/ibcs2_ioctl.c if (l & IBCS2_IGNBRK) r |= IGNBRK;
r 129 compat/ibcs2/ibcs2_ioctl.c if (l & IBCS2_BRKINT) r |= BRKINT;
r 130 compat/ibcs2/ibcs2_ioctl.c if (l & IBCS2_IGNPAR) r |= IGNPAR;
r 131 compat/ibcs2/ibcs2_ioctl.c if (l & IBCS2_PARMRK) r |= PARMRK;
r 132 compat/ibcs2/ibcs2_ioctl.c if (l & IBCS2_INPCK) r |= INPCK;
r 133 compat/ibcs2/ibcs2_ioctl.c if (l & IBCS2_ISTRIP) r |= ISTRIP;
r 134 compat/ibcs2/ibcs2_ioctl.c if (l & IBCS2_INLCR) r |= INLCR;
r 135 compat/ibcs2/ibcs2_ioctl.c if (l & IBCS2_IGNCR) r |= IGNCR;
r 136 compat/ibcs2/ibcs2_ioctl.c if (l & IBCS2_ICRNL) r |= ICRNL;
r 137 compat/ibcs2/ibcs2_ioctl.c if (l & IBCS2_IXON) r |= IXON;
r 138 compat/ibcs2/ibcs2_ioctl.c if (l & IBCS2_IXANY) r |= IXANY;
r 139 compat/ibcs2/ibcs2_ioctl.c if (l & IBCS2_IXOFF) r |= IXOFF;
r 140 compat/ibcs2/ibcs2_ioctl.c if (l & IBCS2_IMAXBEL) r |= IMAXBEL;
r 141 compat/ibcs2/ibcs2_ioctl.c bt->c_iflag = r;
r 143 compat/ibcs2/ibcs2_ioctl.c l = st->c_oflag; r = 0;
r 144 compat/ibcs2/ibcs2_ioctl.c if (l & IBCS2_OPOST) r |= OPOST;
r 145 compat/ibcs2/ibcs2_ioctl.c if (l & IBCS2_ONLCR) r |= ONLCR;
r 146 compat/ibcs2/ibcs2_ioctl.c if (l & IBCS2_TAB3) r |= OXTABS;
r 147 compat/ibcs2/ibcs2_ioctl.c bt->c_oflag = r;
r 149 compat/ibcs2/ibcs2_ioctl.c l = st->c_cflag; r = 0;
r 151 compat/ibcs2/ibcs2_ioctl.c case IBCS2_CS5: r |= CS5; break;
r 152 compat/ibcs2/ibcs2_ioctl.c case IBCS2_CS6: r |= CS6; break;
r 153 compat/ibcs2/ibcs2_ioctl.c case IBCS2_CS7: r |= CS7; break;
r 154 compat/ibcs2/ibcs2_ioctl.c case IBCS2_CS8: r |= CS8; break;
r 156 compat/ibcs2/ibcs2_ioctl.c if (l & IBCS2_CSTOPB) r |= CSTOPB;
r 157 compat/ibcs2/ibcs2_ioctl.c if (l & IBCS2_CREAD) r |= CREAD;
r 158 compat/ibcs2/ibcs2_ioctl.c if (l & IBCS2_PARENB) r |= PARENB;
r 159 compat/ibcs2/ibcs2_ioctl.c if (l & IBCS2_PARODD) r |= PARODD;
r 160 compat/ibcs2/ibcs2_ioctl.c if (l & IBCS2_HUPCL) r |= HUPCL;
r 161 compat/ibcs2/ibcs2_ioctl.c if (l & IBCS2_CLOCAL) r |= CLOCAL;
r 162 compat/ibcs2/ibcs2_ioctl.c bt->c_cflag = r;
r 164 compat/ibcs2/ibcs2_ioctl.c l = st->c_lflag; r = 0;
r 165 compat/ibcs2/ibcs2_ioctl.c if (l & IBCS2_ISIG) r |= ISIG;
r 166 compat/ibcs2/ibcs2_ioctl.c if (l & IBCS2_ICANON) r |= ICANON;
r 167 compat/ibcs2/ibcs2_ioctl.c if (l & IBCS2_ECHO) r |= ECHO;
r 168 compat/ibcs2/ibcs2_ioctl.c if (l & IBCS2_ECHOE) r |= ECHOE;
r 169 compat/ibcs2/ibcs2_ioctl.c if (l & IBCS2_ECHOK) r |= ECHOK;
r 170 compat/ibcs2/ibcs2_ioctl.c if (l & IBCS2_ECHONL) r |= ECHONL;
r 171 compat/ibcs2/ibcs2_ioctl.c if (l & IBCS2_NOFLSH) r |= NOFLSH;
r 172 compat/ibcs2/ibcs2_ioctl.c if (l & IBCS2_TOSTOP) r |= TOSTOP;
r 173 compat/ibcs2/ibcs2_ioctl.c bt->c_lflag = r;
r 219 compat/ibcs2/ibcs2_ioctl.c register u_long l, r;
r 221 compat/ibcs2/ibcs2_ioctl.c l = bt->c_iflag; r = 0;
r 222 compat/ibcs2/ibcs2_ioctl.c if (l & IGNBRK) r |= IBCS2_IGNBRK;
r 223 compat/ibcs2/ibcs2_ioctl.c if (l & BRKINT) r |= IBCS2_BRKINT;
r 224 compat/ibcs2/ibcs2_ioctl.c if (l & IGNPAR) r |= IBCS2_IGNPAR;
r 225 compat/ibcs2/ibcs2_ioctl.c if (l & PARMRK) r |= IBCS2_PARMRK;
r 226 compat/ibcs2/ibcs2_ioctl.c if (l & INPCK) r |= IBCS2_INPCK;
r 227 compat/ibcs2/ibcs2_ioctl.c if (l & ISTRIP) r |= IBCS2_ISTRIP;
r 228 compat/ibcs2/ibcs2_ioctl.c if (l & INLCR) r |= IBCS2_INLCR;
r 229 compat/ibcs2/ibcs2_ioctl.c if (l & IGNCR) r |= IBCS2_IGNCR;
r 230 compat/ibcs2/ibcs2_ioctl.c if (l & ICRNL) r |= IBCS2_ICRNL;
r 231 compat/ibcs2/ibcs2_ioctl.c if (l & IXON) r |= IBCS2_IXON;
r 232 compat/ibcs2/ibcs2_ioctl.c if (l & IXANY) r |= IBCS2_IXANY;
r 233 compat/ibcs2/ibcs2_ioctl.c if (l & IXOFF) r |= IBCS2_IXOFF;
r 234 compat/ibcs2/ibcs2_ioctl.c if (l & IMAXBEL) r |= IBCS2_IMAXBEL;
r 235 compat/ibcs2/ibcs2_ioctl.c st->c_iflag = r;
r 237 compat/ibcs2/ibcs2_ioctl.c l = bt->c_oflag; r = 0;
r 238 compat/ibcs2/ibcs2_ioctl.c if (l & OPOST) r |= IBCS2_OPOST;
r 239 compat/ibcs2/ibcs2_ioctl.c if (l & ONLCR) r |= IBCS2_ONLCR;
r 240 compat/ibcs2/ibcs2_ioctl.c if (l & OXTABS) r |= IBCS2_TAB3;
r 241 compat/ibcs2/ibcs2_ioctl.c st->c_oflag = r;
r 243 compat/ibcs2/ibcs2_ioctl.c l = bt->c_cflag; r = 0;
r 245 compat/ibcs2/ibcs2_ioctl.c case CS5: r |= IBCS2_CS5; break;
r 246 compat/ibcs2/ibcs2_ioctl.c case CS6: r |= IBCS2_CS6; break;
r 247 compat/ibcs2/ibcs2_ioctl.c case CS7: r |= IBCS2_CS7; break;
r 248 compat/ibcs2/ibcs2_ioctl.c case CS8: r |= IBCS2_CS8; break;
r 250 compat/ibcs2/ibcs2_ioctl.c if (l & CSTOPB) r |= IBCS2_CSTOPB;
r 251 compat/ibcs2/ibcs2_ioctl.c if (l & CREAD) r |= IBCS2_CREAD;
r 252 compat/ibcs2/ibcs2_ioctl.c if (l & PARENB) r |= IBCS2_PARENB;
r 253 compat/ibcs2/ibcs2_ioctl.c if (l & PARODD) r |= IBCS2_PARODD;
r 254 compat/ibcs2/ibcs2_ioctl.c if (l & HUPCL) r |= IBCS2_HUPCL;
r 255 compat/ibcs2/ibcs2_ioctl.c if (l & CLOCAL) r |= IBCS2_CLOCAL;
r 256 compat/ibcs2/ibcs2_ioctl.c st->c_cflag = r;
r 258 compat/ibcs2/ibcs2_ioctl.c l = bt->c_lflag; r = 0;
r 259 compat/ibcs2/ibcs2_ioctl.c if (l & ISIG) r |= IBCS2_ISIG;
r 260 compat/ibcs2/ibcs2_ioctl.c if (l & ICANON) r |= IBCS2_ICANON;
r 261 compat/ibcs2/ibcs2_ioctl.c if (l & ECHO) r |= IBCS2_ECHO;
r 262 compat/ibcs2/ibcs2_ioctl.c if (l & ECHOE) r |= IBCS2_ECHOE;
r 263 compat/ibcs2/ibcs2_ioctl.c if (l & ECHOK) r |= IBCS2_ECHOK;
r 264 compat/ibcs2/ibcs2_ioctl.c if (l & ECHONL) r |= IBCS2_ECHONL;
r 265 compat/ibcs2/ibcs2_ioctl.c if (l & NOFLSH) r |= IBCS2_NOFLSH;
r 266 compat/ibcs2/ibcs2_ioctl.c if (l & TOSTOP) r |= IBCS2_TOSTOP;
r 267 compat/ibcs2/ibcs2_ioctl.c st->c_lflag = r;
r 859 compat/ibcs2/ibcs2_misc.c #define CONVTCK(r) (r.tv_sec * hz + r.tv_usec / (1000000 / hz))
r 727 compat/linux/linux_misc.c #define CONVTCK(r) (r.tv_sec * CLK_TCK + r.tv_usec / (1000000 / CLK_TCK))
r 667 compat/ossaudio/ossaudio.c int l, r, n;
r 780 compat/ossaudio/ossaudio.c l = r = mc.un.value.level[AUDIO_MIXER_LEVEL_MONO];
r 783 compat/ossaudio/ossaudio.c r = mc.un.value.level[AUDIO_MIXER_LEVEL_RIGHT];
r 785 compat/ossaudio/ossaudio.c idat = TO_OSSVOL(l) | (TO_OSSVOL(r) << 8);
r 787 compat/ossaudio/ossaudio.c n, di->devmap[n], l, r, idat));
r 802 compat/ossaudio/ossaudio.c r = FROM_OSSVOL((idat >> 8) & 0xff);
r 808 compat/ossaudio/ossaudio.c mc.un.value.level[AUDIO_MIXER_LEVEL_RIGHT] = r;
r 811 compat/ossaudio/ossaudio.c mc.un.value.level[AUDIO_MIXER_LEVEL_MONO] = (l+r)/2;
r 814 compat/ossaudio/ossaudio.c n, di->devmap[n], l, r, idat));
r 123 compat/sunos/sunos_ioctl.c register u_long l, r;
r 126 compat/sunos/sunos_ioctl.c r = ((l & 0x00000001) ? IGNBRK : 0);
r 127 compat/sunos/sunos_ioctl.c r |= ((l & 0x00000002) ? BRKINT : 0);
r 128 compat/sunos/sunos_ioctl.c r |= ((l & 0x00000004) ? IGNPAR : 0);
r 129 compat/sunos/sunos_ioctl.c r |= ((l & 0x00000008) ? PARMRK : 0);
r 130 compat/sunos/sunos_ioctl.c r |= ((l & 0x00000010) ? INPCK : 0);
r 131 compat/sunos/sunos_ioctl.c r |= ((l & 0x00000020) ? ISTRIP : 0);
r 132 compat/sunos/sunos_ioctl.c r |= ((l & 0x00000040) ? INLCR : 0);
r 133 compat/sunos/sunos_ioctl.c r |= ((l & 0x00000080) ? IGNCR : 0);
r 134 compat/sunos/sunos_ioctl.c r |= ((l & 0x00000100) ? ICRNL : 0);
r 136 compat/sunos/sunos_ioctl.c r |= ((l & 0x00000400) ? IXON : 0);
r 137 compat/sunos/sunos_ioctl.c r |= ((l & 0x00000800) ? IXANY : 0);
r 138 compat/sunos/sunos_ioctl.c r |= ((l & 0x00001000) ? IXOFF : 0);
r 139 compat/sunos/sunos_ioctl.c r |= ((l & 0x00002000) ? IMAXBEL : 0);
r 140 compat/sunos/sunos_ioctl.c bt->c_iflag = r;
r 143 compat/sunos/sunos_ioctl.c r = ((l & 0x00000001) ? OPOST : 0);
r 145 compat/sunos/sunos_ioctl.c r |= ((l & 0x00000004) ? ONLCR : 0);
r 160 compat/sunos/sunos_ioctl.c r |= ((l & 0x00001800) ? OXTABS : 0);
r 169 compat/sunos/sunos_ioctl.c bt->c_oflag = r;
r 174 compat/sunos/sunos_ioctl.c r = CS5;
r 177 compat/sunos/sunos_ioctl.c r = CS6;
r 180 compat/sunos/sunos_ioctl.c r = CS7;
r 183 compat/sunos/sunos_ioctl.c r = CS8;
r 186 compat/sunos/sunos_ioctl.c r |= ((l & 0x00000040) ? CSTOPB : 0);
r 187 compat/sunos/sunos_ioctl.c r |= ((l & 0x00000080) ? CREAD : 0);
r 188 compat/sunos/sunos_ioctl.c r |= ((l & 0x00000100) ? PARENB : 0);
r 189 compat/sunos/sunos_ioctl.c r |= ((l & 0x00000200) ? PARODD : 0);
r 190 compat/sunos/sunos_ioctl.c r |= ((l & 0x00000400) ? HUPCL : 0);
r 191 compat/sunos/sunos_ioctl.c r |= ((l & 0x00000800) ? CLOCAL : 0);
r 193 compat/sunos/sunos_ioctl.c r |= ((l & 0x80000000) ? (CRTS_IFLOW|CCTS_OFLOW) : 0);
r 194 compat/sunos/sunos_ioctl.c bt->c_cflag = r;
r 199 compat/sunos/sunos_ioctl.c r = ((l & 0x00000001) ? ISIG : 0);
r 200 compat/sunos/sunos_ioctl.c r |= ((l & 0x00000002) ? ICANON : 0);
r 202 compat/sunos/sunos_ioctl.c r |= ((l & 0x00000008) ? ECHO : 0);
r 203 compat/sunos/sunos_ioctl.c r |= ((l & 0x00000010) ? ECHOE : 0);
r 204 compat/sunos/sunos_ioctl.c r |= ((l & 0x00000020) ? ECHOK : 0);
r 205 compat/sunos/sunos_ioctl.c r |= ((l & 0x00000040) ? ECHONL : 0);
r 206 compat/sunos/sunos_ioctl.c r |= ((l & 0x00000080) ? NOFLSH : 0);
r 207 compat/sunos/sunos_ioctl.c r |= ((l & 0x00000100) ? TOSTOP : 0);
r 208 compat/sunos/sunos_ioctl.c r |= ((l & 0x00000200) ? ECHOCTL : 0);
r 209 compat/sunos/sunos_ioctl.c r |= ((l & 0x00000400) ? ECHOPRT : 0);
r 210 compat/sunos/sunos_ioctl.c r |= ((l & 0x00000800) ? ECHOKE : 0);
r 212 compat/sunos/sunos_ioctl.c r |= ((l & 0x00002000) ? FLUSHO : 0);
r 213 compat/sunos/sunos_ioctl.c r |= ((l & 0x00004000) ? PENDIN : 0);
r 214 compat/sunos/sunos_ioctl.c bt->c_lflag = r;
r 245 compat/sunos/sunos_ioctl.c register u_long l, r;
r 249 compat/sunos/sunos_ioctl.c r = ((l & IGNBRK) ? 0x00000001 : 0);
r 250 compat/sunos/sunos_ioctl.c r |= ((l & BRKINT) ? 0x00000002 : 0);
r 251 compat/sunos/sunos_ioctl.c r |= ((l & IGNPAR) ? 0x00000004 : 0);
r 252 compat/sunos/sunos_ioctl.c r |= ((l & PARMRK) ? 0x00000008 : 0);
r 253 compat/sunos/sunos_ioctl.c r |= ((l & INPCK) ? 0x00000010 : 0);
r 254 compat/sunos/sunos_ioctl.c r |= ((l & ISTRIP) ? 0x00000020 : 0);
r 255 compat/sunos/sunos_ioctl.c r |= ((l & INLCR) ? 0x00000040 : 0);
r 256 compat/sunos/sunos_ioctl.c r |= ((l & IGNCR) ? 0x00000080 : 0);
r 257 compat/sunos/sunos_ioctl.c r |= ((l & ICRNL) ? 0x00000100 : 0);
r 259 compat/sunos/sunos_ioctl.c r |= ((l & IXON) ? 0x00000400 : 0);
r 260 compat/sunos/sunos_ioctl.c r |= ((l & IXANY) ? 0x00000800 : 0);
r 261 compat/sunos/sunos_ioctl.c r |= ((l & IXOFF) ? 0x00001000 : 0);
r 262 compat/sunos/sunos_ioctl.c r |= ((l & IMAXBEL) ? 0x00002000 : 0);
r 263 compat/sunos/sunos_ioctl.c st->c_iflag = r;
r 266 compat/sunos/sunos_ioctl.c r = ((l & OPOST) ? 0x00000001 : 0);
r 268 compat/sunos/sunos_ioctl.c r |= ((l & ONLCR) ? 0x00000004 : 0);
r 283 compat/sunos/sunos_ioctl.c r |= ((l & OXTABS) ? 0x00001800 : 0);
r 292 compat/sunos/sunos_ioctl.c st->c_oflag = r;
r 297 compat/sunos/sunos_ioctl.c r = 0;
r 300 compat/sunos/sunos_ioctl.c r = 0x00000010;
r 303 compat/sunos/sunos_ioctl.c r = 0x00000020;
r 306 compat/sunos/sunos_ioctl.c r = 0x00000030;
r 309 compat/sunos/sunos_ioctl.c r |= ((l & CSTOPB) ? 0x00000040 : 0);
r 310 compat/sunos/sunos_ioctl.c r |= ((l & CREAD) ? 0x00000080 : 0);
r 311 compat/sunos/sunos_ioctl.c r |= ((l & PARENB) ? 0x00000100 : 0);
r 312 compat/sunos/sunos_ioctl.c r |= ((l & PARODD) ? 0x00000200 : 0);
r 313 compat/sunos/sunos_ioctl.c r |= ((l & HUPCL) ? 0x00000400 : 0);
r 314 compat/sunos/sunos_ioctl.c r |= ((l & CLOCAL) ? 0x00000800 : 0);
r 316 compat/sunos/sunos_ioctl.c r |= ((l & (CRTS_IFLOW|CCTS_OFLOW)) ? 0x80000000 : 0);
r 317 compat/sunos/sunos_ioctl.c st->c_cflag = r;
r 320 compat/sunos/sunos_ioctl.c r = ((l & ISIG) ? 0x00000001 : 0);
r 321 compat/sunos/sunos_ioctl.c r |= ((l & ICANON) ? 0x00000002 : 0);
r 323 compat/sunos/sunos_ioctl.c r |= ((l & ECHO) ? 0x00000008 : 0);
r 324 compat/sunos/sunos_ioctl.c r |= ((l & ECHOE) ? 0x00000010 : 0);
r 325 compat/sunos/sunos_ioctl.c r |= ((l & ECHOK) ? 0x00000020 : 0);
r 326 compat/sunos/sunos_ioctl.c r |= ((l & ECHONL) ? 0x00000040 : 0);
r 327 compat/sunos/sunos_ioctl.c r |= ((l & NOFLSH) ? 0x00000080 : 0);
r 328 compat/sunos/sunos_ioctl.c r |= ((l & TOSTOP) ? 0x00000100 : 0);
r 329 compat/sunos/sunos_ioctl.c r |= ((l & ECHOCTL) ? 0x00000200 : 0);
r 330 compat/sunos/sunos_ioctl.c r |= ((l & ECHOPRT) ? 0x00000400 : 0);
r 331 compat/sunos/sunos_ioctl.c r |= ((l & ECHOKE) ? 0x00000800 : 0);
r 333 compat/sunos/sunos_ioctl.c r |= ((l & FLUSHO) ? 0x00002000 : 0);
r 334 compat/sunos/sunos_ioctl.c r |= ((l & PENDIN) ? 0x00004000 : 0);
r 335 compat/sunos/sunos_ioctl.c st->c_lflag = r;
r 677 compat/sunos/sunos_misc.c int l, r;
r 687 compat/sunos/sunos_misc.c r = (l & (0x0001 | 0x0002 | 0x0008 | 0x0040 | 0x0200 | 0x0400 | 0x0800));
r 688 compat/sunos/sunos_misc.c r |= ((l & (0x0004 | 0x1000 | 0x4000)) ? O_NONBLOCK : 0);
r 689 compat/sunos/sunos_misc.c r |= ((l & 0x0080) ? O_SHLOCK : 0);
r 690 compat/sunos/sunos_misc.c r |= ((l & 0x0100) ? O_EXLOCK : 0);
r 691 compat/sunos/sunos_misc.c r |= ((l & 0x2000) ? O_SYNC : 0);
r 693 compat/sunos/sunos_misc.c SCARG(uap, flags) = r;
r 1187 compat/sunos/sunos_misc.c #define CONVTCK(r) (r.tv_sec * CLK_TCK + r.tv_usec / (1000000 / CLK_TCK))
r 94 compat/svr4/svr4_fcntl.c int r = 0;
r 95 compat/svr4/svr4_fcntl.c r |= (l & SVR4_O_RDONLY) ? O_RDONLY : 0;
r 96 compat/svr4/svr4_fcntl.c r |= (l & SVR4_O_WRONLY) ? O_WRONLY : 0;
r 97 compat/svr4/svr4_fcntl.c r |= (l & SVR4_O_RDWR) ? O_RDWR : 0;
r 98 compat/svr4/svr4_fcntl.c r |= (l & SVR4_O_NDELAY) ? O_NONBLOCK : 0;
r 99 compat/svr4/svr4_fcntl.c r |= (l & SVR4_O_APPEND) ? O_APPEND : 0;
r 102 compat/svr4/svr4_fcntl.c r |= (l & SVR4_O_RAIOSIG) ? O_ASYNC : 0;
r 104 compat/svr4/svr4_fcntl.c r |= (l & SVR4_O_SYNC) ? O_FSYNC : 0;
r 105 compat/svr4/svr4_fcntl.c r |= (l & SVR4_O_RSYNC) ? O_RSYNC : 0;
r 106 compat/svr4/svr4_fcntl.c r |= (l & SVR4_O_DSYNC) ? O_DSYNC : 0;
r 107 compat/svr4/svr4_fcntl.c r |= (l & SVR4_O_NONBLOCK) ? O_NONBLOCK : 0;
r 108 compat/svr4/svr4_fcntl.c r |= (l & SVR4_O_PRIV) ? O_EXLOCK : 0;
r 109 compat/svr4/svr4_fcntl.c r |= (l & SVR4_O_CREAT) ? O_CREAT : 0;
r 110 compat/svr4/svr4_fcntl.c r |= (l & SVR4_O_TRUNC) ? O_TRUNC : 0;
r 111 compat/svr4/svr4_fcntl.c r |= (l & SVR4_O_EXCL) ? O_EXCL : 0;
r 112 compat/svr4/svr4_fcntl.c r |= (l & SVR4_O_NOCTTY) ? O_NOCTTY : 0;
r 113 compat/svr4/svr4_fcntl.c return r;
r 121 compat/svr4/svr4_fcntl.c int r = 0;
r 122 compat/svr4/svr4_fcntl.c r |= (l & O_RDONLY) ? SVR4_O_RDONLY : 0;
r 123 compat/svr4/svr4_fcntl.c r |= (l & O_WRONLY) ? SVR4_O_WRONLY : 0;
r 124 compat/svr4/svr4_fcntl.c r |= (l & O_RDWR) ? SVR4_O_RDWR : 0;
r 125 compat/svr4/svr4_fcntl.c r |= (l & O_NDELAY) ? SVR4_O_NONBLOCK : 0;
r 126 compat/svr4/svr4_fcntl.c r |= (l & O_APPEND) ? SVR4_O_APPEND : 0;
r 129 compat/svr4/svr4_fcntl.c r |= (l & O_ASYNC) ? SVR4_O_RAIOSIG : 0;
r 131 compat/svr4/svr4_fcntl.c r |= (l & O_FSYNC) ? SVR4_O_SYNC : 0;
r 132 compat/svr4/svr4_fcntl.c r |= (l & O_RSYNC) ? SVR4_O_RSYNC : 0;
r 133 compat/svr4/svr4_fcntl.c r |= (l & O_DSYNC) ? SVR4_O_DSYNC : 0;
r 134 compat/svr4/svr4_fcntl.c r |= (l & O_NONBLOCK) ? SVR4_O_NONBLOCK : 0;
r 135 compat/svr4/svr4_fcntl.c r |= (l & O_EXLOCK) ? SVR4_O_PRIV : 0;
r 136 compat/svr4/svr4_fcntl.c r |= (l & O_CREAT) ? SVR4_O_CREAT : 0;
r 137 compat/svr4/svr4_fcntl.c r |= (l & O_TRUNC) ? SVR4_O_TRUNC : 0;
r 138 compat/svr4/svr4_fcntl.c r |= (l & O_EXCL) ? SVR4_O_EXCL : 0;
r 139 compat/svr4/svr4_fcntl.c r |= (l & O_NOCTTY) ? SVR4_O_NOCTTY : 0;
r 140 compat/svr4/svr4_fcntl.c return r;
r 723 compat/svr4/svr4_misc.c struct rusage r;
r 736 compat/svr4/svr4_misc.c if ((error = copyin(ru, &r, sizeof r)) != 0)
r 739 compat/svr4/svr4_misc.c tms.tms_utime = timeval_to_clock_t(&r.ru_utime);
r 740 compat/svr4/svr4_misc.c tms.tms_stime = timeval_to_clock_t(&r.ru_stime);
r 747 compat/svr4/svr4_misc.c if ((error = copyin(ru, &r, sizeof r)) != 0)
r 750 compat/svr4/svr4_misc.c tms.tms_cutime = timeval_to_clock_t(&r.ru_utime);
r 751 compat/svr4/svr4_misc.c tms.tms_cstime = timeval_to_clock_t(&r.ru_stime);
r 136 compat/ultrix/ultrix_ioctl.c register u_long l, r;
r 139 compat/ultrix/ultrix_ioctl.c r = ((l & 0x00000001) ? IGNBRK : 0);
r 140 compat/ultrix/ultrix_ioctl.c r |= ((l & 0x00000002) ? BRKINT : 0);
r 141 compat/ultrix/ultrix_ioctl.c r |= ((l & 0x00000004) ? IGNPAR : 0);
r 142 compat/ultrix/ultrix_ioctl.c r |= ((l & 0x00000008) ? PARMRK : 0);
r 143 compat/ultrix/ultrix_ioctl.c r |= ((l & 0x00000010) ? INPCK : 0);
r 144 compat/ultrix/ultrix_ioctl.c r |= ((l & 0x00000020) ? ISTRIP : 0);
r 145 compat/ultrix/ultrix_ioctl.c r |= ((l & 0x00000040) ? INLCR : 0);
r 146 compat/ultrix/ultrix_ioctl.c r |= ((l & 0x00000080) ? IGNCR : 0);
r 147 compat/ultrix/ultrix_ioctl.c r |= ((l & 0x00000100) ? ICRNL : 0);
r 149 compat/ultrix/ultrix_ioctl.c r |= ((l & 0x00000400) ? IXON : 0);
r 150 compat/ultrix/ultrix_ioctl.c r |= ((l & 0x00000800) ? IXANY : 0);
r 151 compat/ultrix/ultrix_ioctl.c r |= ((l & 0x00001000) ? IXOFF : 0);
r 152 compat/ultrix/ultrix_ioctl.c r |= ((l & 0x00002000) ? IMAXBEL : 0);
r 153 compat/ultrix/ultrix_ioctl.c bt->c_iflag = r;
r 156 compat/ultrix/ultrix_ioctl.c r = ((l & 0x00000001) ? OPOST : 0);
r 158 compat/ultrix/ultrix_ioctl.c r |= ((l & 0x00000004) ? ONLCR : 0);
r 173 compat/ultrix/ultrix_ioctl.c r |= ((l & 0x00001800) ? OXTABS : 0);
r 182 compat/ultrix/ultrix_ioctl.c bt->c_oflag = r;
r 187 compat/ultrix/ultrix_ioctl.c r = CS5;
r 190 compat/ultrix/ultrix_ioctl.c r = CS6;
r 193 compat/ultrix/ultrix_ioctl.c r = CS7;
r 196 compat/ultrix/ultrix_ioctl.c r = CS8;
r 199 compat/ultrix/ultrix_ioctl.c r |= ((l & 0x00000040) ? CSTOPB : 0);
r 200 compat/ultrix/ultrix_ioctl.c r |= ((l & 0x00000080) ? CREAD : 0);
r 201 compat/ultrix/ultrix_ioctl.c r |= ((l & 0x00000100) ? PARENB : 0);
r 202 compat/ultrix/ultrix_ioctl.c r |= ((l & 0x00000200) ? PARODD : 0);
r 203 compat/ultrix/ultrix_ioctl.c r |= ((l & 0x00000400) ? HUPCL : 0);
r 204 compat/ultrix/ultrix_ioctl.c r |= ((l & 0x00000800) ? CLOCAL : 0);
r 206 compat/ultrix/ultrix_ioctl.c r |= ((l & 0x80000000) ? (CRTS_IFLOW|CCTS_OFLOW) : 0);
r 207 compat/ultrix/ultrix_ioctl.c bt->c_cflag = r;
r 212 compat/ultrix/ultrix_ioctl.c r = ((l & 0x00000001) ? ISIG : 0);
r 213 compat/ultrix/ultrix_ioctl.c r |= ((l & 0x00000002) ? ICANON : 0);
r 215 compat/ultrix/ultrix_ioctl.c r |= ((l & 0x00000008) ? ECHO : 0);
r 216 compat/ultrix/ultrix_ioctl.c r |= ((l & 0x00000010) ? ECHOE : 0);
r 217 compat/ultrix/ultrix_ioctl.c r |= ((l & 0x00000020) ? ECHOK : 0);
r 218 compat/ultrix/ultrix_ioctl.c r |= ((l & 0x00000040) ? ECHONL : 0);
r 219 compat/ultrix/ultrix_ioctl.c r |= ((l & 0x00000080) ? NOFLSH : 0);
r 220 compat/ultrix/ultrix_ioctl.c r |= ((l & 0x00000100) ? TOSTOP : 0);
r 221 compat/ultrix/ultrix_ioctl.c r |= ((l & 0x00000200) ? ECHOCTL : 0);
r 222 compat/ultrix/ultrix_ioctl.c r |= ((l & 0x00000400) ? ECHOPRT : 0);
r 223 compat/ultrix/ultrix_ioctl.c r |= ((l & 0x00000800) ? ECHOKE : 0);
r 225 compat/ultrix/ultrix_ioctl.c r |= ((l & 0x00002000) ? FLUSHO : 0);
r 226 compat/ultrix/ultrix_ioctl.c r |= ((l & 0x00004000) ? PENDIN : 0);
r 227 compat/ultrix/ultrix_ioctl.c bt->c_lflag = r;
r 268 compat/ultrix/ultrix_ioctl.c register u_long l, r;
r 271 compat/ultrix/ultrix_ioctl.c r = ((l & IGNBRK) ? 0x00000001 : 0);
r 272 compat/ultrix/ultrix_ioctl.c r |= ((l & BRKINT) ? 0x00000002 : 0);
r 273 compat/ultrix/ultrix_ioctl.c r |= ((l & IGNPAR) ? 0x00000004 : 0);
r 274 compat/ultrix/ultrix_ioctl.c r |= ((l & PARMRK) ? 0x00000008 : 0);
r 275 compat/ultrix/ultrix_ioctl.c r |= ((l & INPCK) ? 0x00000010 : 0);
r 276 compat/ultrix/ultrix_ioctl.c r |= ((l & ISTRIP) ? 0x00000020 : 0);
r 277 compat/ultrix/ultrix_ioctl.c r |= ((l & INLCR) ? 0x00000040 : 0);
r 278 compat/ultrix/ultrix_ioctl.c r |= ((l & IGNCR) ? 0x00000080 : 0);
r 279 compat/ultrix/ultrix_ioctl.c r |= ((l & ICRNL) ? 0x00000100 : 0);
r 281 compat/ultrix/ultrix_ioctl.c r |= ((l & IXON) ? 0x00000400 : 0);
r 282 compat/ultrix/ultrix_ioctl.c r |= ((l & IXANY) ? 0x00000800 : 0);
r 283 compat/ultrix/ultrix_ioctl.c r |= ((l & IXOFF) ? 0x00001000 : 0);
r 284 compat/ultrix/ultrix_ioctl.c r |= ((l & IMAXBEL) ? 0x00002000 : 0);
r 285 compat/ultrix/ultrix_ioctl.c st->c_iflag = r;
r 288 compat/ultrix/ultrix_ioctl.c r = ((l & OPOST) ? 0x00000001 : 0);
r 290 compat/ultrix/ultrix_ioctl.c r |= ((l & ONLCR) ? 0x00000004 : 0);
r 305 compat/ultrix/ultrix_ioctl.c r |= ((l & OXTABS) ? 0x00001800 : 0);
r 314 compat/ultrix/ultrix_ioctl.c st->c_oflag = r;
r 319 compat/ultrix/ultrix_ioctl.c r = 0;
r 322 compat/ultrix/ultrix_ioctl.c r = 0x00000010;
r 325 compat/ultrix/ultrix_ioctl.c r = 0x00000020;
r 328 compat/ultrix/ultrix_ioctl.c r = 0x00000030;
r 331 compat/ultrix/ultrix_ioctl.c r |= ((l & CSTOPB) ? 0x00000040 : 0);
r 332 compat/ultrix/ultrix_ioctl.c r |= ((l & CREAD) ? 0x00000080 : 0);
r 333 compat/ultrix/ultrix_ioctl.c r |= ((l & PARENB) ? 0x00000100 : 0);
r 334 compat/ultrix/ultrix_ioctl.c r |= ((l & PARODD) ? 0x00000200 : 0);
r 335 compat/ultrix/ultrix_ioctl.c r |= ((l & HUPCL) ? 0x00000400 : 0);
r 336 compat/ultrix/ultrix_ioctl.c r |= ((l & CLOCAL) ? 0x00000800 : 0);
r 338 compat/ultrix/ultrix_ioctl.c r |= ((l & (CRTS_IFLOW|CCTS_OFLOW)) ? 0x80000000 : 0);
r 339 compat/ultrix/ultrix_ioctl.c st->c_cflag = r;
r 342 compat/ultrix/ultrix_ioctl.c r = ((l & ISIG) ? 0x00000001 : 0);
r 343 compat/ultrix/ultrix_ioctl.c r |= ((l & ICANON) ? 0x00000002 : 0);
r 345 compat/ultrix/ultrix_ioctl.c r |= ((l & ECHO) ? 0x00000008 : 0);
r 346 compat/ultrix/ultrix_ioctl.c r |= ((l & ECHOE) ? 0x00000010 : 0);
r 347 compat/ultrix/ultrix_ioctl.c r |= ((l & ECHOK) ? 0x00000020 : 0);
r 348 compat/ultrix/ultrix_ioctl.c r |= ((l & ECHONL) ? 0x00000040 : 0);
r 349 compat/ultrix/ultrix_ioctl.c r |= ((l & NOFLSH) ? 0x00000080 : 0);
r 350 compat/ultrix/ultrix_ioctl.c r |= ((l & TOSTOP) ? 0x00000100 : 0);
r 351 compat/ultrix/ultrix_ioctl.c r |= ((l & ECHOCTL) ? 0x00000200 : 0);
r 352 compat/ultrix/ultrix_ioctl.c r |= ((l & ECHOPRT) ? 0x00000400 : 0);
r 353 compat/ultrix/ultrix_ioctl.c r |= ((l & ECHOKE) ? 0x00000800 : 0);
r 355 compat/ultrix/ultrix_ioctl.c r |= ((l & FLUSHO) ? 0x00002000 : 0);
r 356 compat/ultrix/ultrix_ioctl.c r |= ((l & PENDIN) ? 0x00004000 : 0);
r 357 compat/ultrix/ultrix_ioctl.c st->c_lflag = r;
r 163 compat/ultrix/ultrix_pathname.c int l, r;
r 173 compat/ultrix/ultrix_pathname.c r = (l & (0x0001 | 0x0002 | 0x0008 | 0x0040 | 0x0200 | 0x0400 | 0x0800));
r 174 compat/ultrix/ultrix_pathname.c r |= ((l & (0x0004 | 0x1000 | 0x4000)) ? O_NONBLOCK : 0);
r 175 compat/ultrix/ultrix_pathname.c r |= ((l & 0x0080) ? O_SHLOCK : 0);
r 176 compat/ultrix/ultrix_pathname.c r |= ((l & 0x0100) ? O_EXLOCK : 0);
r 177 compat/ultrix/ultrix_pathname.c r |= ((l & 0x2000) ? O_SYNC : 0);
r 179 compat/ultrix/ultrix_pathname.c SCARG(uap, flags) = r;
r 533 crypto/blf.c u_int32_t l, r, d[2];
r 538 crypto/blf.c r = data[4] << 24 | data[5] << 16 | data[6] << 8 | data[7];
r 540 crypto/blf.c d[1] = r;
r 543 crypto/blf.c r = d[1];
r 548 crypto/blf.c data[4] = r >> 24 & 0xff;
r 549 crypto/blf.c data[5] = r >> 16 & 0xff;
r 550 crypto/blf.c data[6] = r >> 8 & 0xff;
r 551 crypto/blf.c data[7] = r & 0xff;
r 559 crypto/blf.c u_int32_t l, r, d[2];
r 564 crypto/blf.c r = data[4] << 24 | data[5] << 16 | data[6] << 8 | data[7];
r 566 crypto/blf.c d[1] = r;
r 569 crypto/blf.c r = d[1];
r 574 crypto/blf.c data[4] = r >> 24 & 0xff;
r 575 crypto/blf.c data[5] = r >> 16 & 0xff;
r 576 crypto/blf.c data[6] = r >> 8 & 0xff;
r 577 crypto/blf.c data[7] = r & 0xff;
r 585 crypto/blf.c u_int32_t l, r, d[2];
r 592 crypto/blf.c r = data[4] << 24 | data[5] << 16 | data[6] << 8 | data[7];
r 594 crypto/blf.c d[1] = r;
r 597 crypto/blf.c r = d[1];
r 602 crypto/blf.c data[4] = r >> 24 & 0xff;
r 603 crypto/blf.c data[5] = r >> 16 & 0xff;
r 604 crypto/blf.c data[6] = r >> 8 & 0xff;
r 605 crypto/blf.c data[7] = r & 0xff;
r 614 crypto/blf.c u_int32_t l, r, d[2];
r 622 crypto/blf.c r = data[4] << 24 | data[5] << 16 | data[6] << 8 | data[7];
r 624 crypto/blf.c d[1] = r;
r 627 crypto/blf.c r = d[1];
r 632 crypto/blf.c data[4] = r >> 24 & 0xff;
r 633 crypto/blf.c data[5] = r >> 16 & 0xff;
r 634 crypto/blf.c data[6] = r >> 8 & 0xff;
r 635 crypto/blf.c data[7] = r & 0xff;
r 642 crypto/blf.c r = data[4] << 24 | data[5] << 16 | data[6] << 8 | data[7];
r 644 crypto/blf.c d[1] = r;
r 647 crypto/blf.c r = d[1];
r 652 crypto/blf.c data[4] = r >> 24 & 0xff;
r 653 crypto/blf.c data[5] = r >> 16 & 0xff;
r 654 crypto/blf.c data[6] = r >> 8 & 0xff;
r 655 crypto/blf.c data[7] = r & 0xff;
r 24 crypto/cast.c #define F1(l, r, i) \
r 25 crypto/cast.c t = ROL(key->xkey[i] + r, key->xkey[i+16]); \
r 28 crypto/cast.c #define F2(l, r, i) \
r 29 crypto/cast.c t = ROL(key->xkey[i] ^ r, key->xkey[i+16]); \
r 32 crypto/cast.c #define F3(l, r, i) \
r 33 crypto/cast.c t = ROL(key->xkey[i] - r, key->xkey[i+16]); \
r 43 crypto/cast.c u_int32_t t, l, r;
r 48 crypto/cast.c r = ((u_int32_t)inblock[4] << 24) | ((u_int32_t)inblock[5] << 16) |
r 51 crypto/cast.c F1(l, r, 0);
r 52 crypto/cast.c F2(r, l, 1);
r 53 crypto/cast.c F3(l, r, 2);
r 54 crypto/cast.c F1(r, l, 3);
r 55 crypto/cast.c F2(l, r, 4);
r 56 crypto/cast.c F3(r, l, 5);
r 57 crypto/cast.c F1(l, r, 6);
r 58 crypto/cast.c F2(r, l, 7);
r 59 crypto/cast.c F3(l, r, 8);
r 60 crypto/cast.c F1(r, l, 9);
r 61 crypto/cast.c F2(l, r, 10);
r 62 crypto/cast.c F3(r, l, 11);
r 65 crypto/cast.c F1(l, r, 12);
r 66 crypto/cast.c F2(r, l, 13);
r 67 crypto/cast.c F3(l, r, 14);
r 68 crypto/cast.c F1(r, l, 15);
r 71 crypto/cast.c outblock[0] = U_INT8_Ta(r);
r 72 crypto/cast.c outblock[1] = U_INT8_Tb(r);
r 73 crypto/cast.c outblock[2] = U_INT8_Tc(r);
r 74 crypto/cast.c outblock[3] = U_INT8_Td(r);
r 80 crypto/cast.c t = l = r = 0;
r 89 crypto/cast.c u_int32_t t, l, r;
r 92 crypto/cast.c r = ((u_int32_t)inblock[0] << 24) | ((u_int32_t)inblock[1] << 16) |
r 99 crypto/cast.c F1(r, l, 15);
r 100 crypto/cast.c F3(l, r, 14);
r 101 crypto/cast.c F2(r, l, 13);
r 102 crypto/cast.c F1(l, r, 12);
r 104 crypto/cast.c F3(r, l, 11);
r 105 crypto/cast.c F2(l, r, 10);
r 106 crypto/cast.c F1(r, l, 9);
r 107 crypto/cast.c F3(l, r, 8);
r 108 crypto/cast.c F2(r, l, 7);
r 109 crypto/cast.c F1(l, r, 6);
r 110 crypto/cast.c F3(r, l, 5);
r 111 crypto/cast.c F2(l, r, 4);
r 112 crypto/cast.c F1(r, l, 3);
r 113 crypto/cast.c F3(l, r, 2);
r 114 crypto/cast.c F2(r, l, 1);
r 115 crypto/cast.c F1(l, r, 0);
r 121 crypto/cast.c outblock[4] = U_INT8_Ta(r);
r 122 crypto/cast.c outblock[5] = U_INT8_Tb(r);
r 123 crypto/cast.c outblock[6] = U_INT8_Tc(r);
r 124 crypto/cast.c outblock[7] = U_INT8_Td(r);
r 126 crypto/cast.c t = l = r = 0;
r 219 crypto/des_locl.h #define IP(l,r) \
r 222 crypto/des_locl.h PERM_OP(r,l,tt, 4,0x0f0f0f0fL); \
r 223 crypto/des_locl.h PERM_OP(l,r,tt,16,0x0000ffffL); \
r 224 crypto/des_locl.h PERM_OP(r,l,tt, 2,0x33333333L); \
r 225 crypto/des_locl.h PERM_OP(l,r,tt, 8,0x00ff00ffL); \
r 226 crypto/des_locl.h PERM_OP(r,l,tt, 1,0x55555555L); \
r 229 crypto/des_locl.h #define FP(l,r) \
r 232 crypto/des_locl.h PERM_OP(l,r,tt, 1,0x55555555L); \
r 233 crypto/des_locl.h PERM_OP(r,l,tt, 8,0x00ff00ffL); \
r 234 crypto/des_locl.h PERM_OP(l,r,tt, 2,0x33333333L); \
r 235 crypto/des_locl.h PERM_OP(r,l,tt,16,0x0000ffffL); \
r 236 crypto/des_locl.h PERM_OP(l,r,tt, 4,0x0f0f0f0fL); \
r 80 crypto/ecb_enc.c register u_int32_t l,r,t,u;
r 88 crypto/ecb_enc.c r=data[1];
r 90 crypto/ecb_enc.c IP(u,r);
r 97 crypto/ecb_enc.c l=(r<<1)|(r>>31);
r 98 crypto/ecb_enc.c r=(u<<1)|(u>>31);
r 102 crypto/ecb_enc.c r&=0xffffffffL;
r 111 crypto/ecb_enc.c D_ENCRYPT(l,r,i+0); /* 1 */
r 112 crypto/ecb_enc.c D_ENCRYPT(r,l,i+2); /* 2 */
r 119 crypto/ecb_enc.c D_ENCRYPT(l,r,i-0); /* 16 */
r 120 crypto/ecb_enc.c D_ENCRYPT(r,l,i-2); /* 15 */
r 124 crypto/ecb_enc.c r=(r>>1)|(r<<31);
r 127 crypto/ecb_enc.c r&=0xffffffffL;
r 129 crypto/ecb_enc.c FP(r,l);
r 131 crypto/ecb_enc.c data[1]=r;
r 132 crypto/ecb_enc.c l=r=t=u=0;
r 140 crypto/ecb_enc.c register u_int32_t l,r,t,u;
r 148 crypto/ecb_enc.c r=data[1];
r 156 crypto/ecb_enc.c l=(r<<1)|(r>>31);
r 157 crypto/ecb_enc.c r=(u<<1)|(u>>31);
r 161 crypto/ecb_enc.c r&=0xffffffffL;
r 170 crypto/ecb_enc.c D_ENCRYPT(l,r,i+0); /* 1 */
r 171 crypto/ecb_enc.c D_ENCRYPT(r,l,i+2); /* 2 */
r 178 crypto/ecb_enc.c D_ENCRYPT(l,r,i-0); /* 16 */
r 179 crypto/ecb_enc.c D_ENCRYPT(r,l,i-2); /* 15 */
r 183 crypto/ecb_enc.c r=(r>>1)|(r<<31);
r 186 crypto/ecb_enc.c r&=0xffffffffL;
r 189 crypto/ecb_enc.c data[1]=r;
r 190 crypto/ecb_enc.c l=r=t=u=0;
r 35 crypto/michael.c #define MICHAEL_BLOCK(l, r) do { \
r 36 crypto/michael.c r ^= ROL(17, l); \
r 37 crypto/michael.c l += r; \
r 38 crypto/michael.c r ^= XSWAP(l); \
r 39 crypto/michael.c l += r; \
r 40 crypto/michael.c r ^= ROL(3, l); \
r 41 crypto/michael.c l += r; \
r 42 crypto/michael.c r ^= ROR(2, l); \
r 43 crypto/michael.c l += r; \
r 860 crypto/rijndael.c int r;
r 946 crypto/rijndael.c r = Nr >> 1;
r 974 crypto/rijndael.c if (--r == 0) {
r 1044 crypto/rijndael.c int r;
r 1130 crypto/rijndael.c r = Nr >> 1;
r 1158 crypto/rijndael.c if (--r == 0) {
r 144 ddb/db_lex.c int r, digit = 0;
r 147 ddb/db_lex.c r = db_radix;
r 151 ddb/db_lex.c r = 8;
r 153 ddb/db_lex.c r = 10;
r 155 ddb/db_lex.c r = 16;
r 157 ddb/db_lex.c r = db_radix;
r 164 ddb/db_lex.c if (c >= '0' && c <= ((r == 8) ? '7' : '9'))
r 166 ddb/db_lex.c else if (r == 16 && ((c >= 'A' && c <= 'F') ||
r 175 ddb/db_lex.c db_tok_number = db_tok_number * r + digit;
r 408 dev/acpi/acpireg.h #define ACPI_PCI_ADDR(b,d,f,r) ((u_int64_t)(b)<<48LL | (u_int64_t)(d)<<32LL | (f)<<16LL | (r))
r 182 dev/audio.c int *, int *r);
r 528 dev/audio.c audio_alloc_ring(struct audio_softc *sc, struct audio_ringbuffer *r,
r 541 dev/audio.c r->bufsize = bufsize;
r 543 dev/audio.c r->start = hw->allocm(hdl, direction, r->bufsize, M_DEVBUF,
r 546 dev/audio.c r->start = malloc(bufsize, M_DEVBUF, M_WAITOK);
r 547 dev/audio.c if (r->start == 0)
r 553 dev/audio.c audio_free_ring(struct audio_softc *sc, struct audio_ringbuffer *r)
r 556 dev/audio.c sc->hw_if->freem(sc->hw_hdl, r->start, M_DEVBUF);
r 558 dev/audio.c free(r->start, M_DEVBUF);
r 2222 dev/audio.c au_set_lr_value(struct audio_softc *sc, mixer_ctrl_t *ct, int l, int r)
r 2227 dev/audio.c ct->un.value.level[AUDIO_MIXER_LEVEL_RIGHT] = r;
r 2231 dev/audio.c ct->un.value.level[AUDIO_MIXER_LEVEL_MONO] = (l+r)/2;
r 2241 dev/audio.c int l, r;
r 2246 dev/audio.c l = r = gain;
r 2248 dev/audio.c r = gain;
r 2252 dev/audio.c r = ((AUDIO_RIGHT_BALANCE - balance) * gain)
r 2256 dev/audio.c gain, balance, l, r));
r 2263 dev/audio.c error = au_set_lr_value(sc, &ct, l, r);
r 2275 dev/audio.c au_set_lr_value(sc, &ct, l, r))
r 2292 dev/audio.c au_set_lr_value(sc, &ct, l, r) == 0)
r 2306 dev/audio.c au_get_lr_value(struct audio_softc *sc, mixer_ctrl_t *ct, int *l, int *r)
r 2313 dev/audio.c *r = ct->un.value.level[AUDIO_MIXER_LEVEL_RIGHT];
r 2319 dev/audio.c *r = *l = ct->un.value.level[AUDIO_MIXER_LEVEL_MONO];
r 2329 dev/audio.c int i, l, r, n;
r 2368 dev/audio.c au_get_lr_value(sc, &ct, &l, &r))
r 2372 dev/audio.c rgain += r;
r 2464 dev/audio.c struct audio_prinfo *r = &ai->record, *p = &ai->play;
r 2493 dev/audio.c if (r->sample_rate != ~0) {
r 2494 dev/audio.c rp.sample_rate = r->sample_rate;
r 2501 dev/audio.c if (r->encoding != ~0) {
r 2502 dev/audio.c rp.encoding = r->encoding;
r 2509 dev/audio.c if (r->precision != ~0) {
r 2510 dev/audio.c rp.precision = r->precision;
r 2517 dev/audio.c if (r->channels != ~0) {
r 2518 dev/audio.c rp.channels = r->channels;
r 2613 dev/audio.c if (r->port != ~0) {
r 2618 dev/audio.c error = au_set_port(sc, &sc->sc_inports, r->port);
r 2628 dev/audio.c if (r->gain != ~0) {
r 2630 dev/audio.c error = au_set_gain(sc, &sc->sc_inports, r->gain, balance);
r 2641 dev/audio.c if (r->balance != (u_char)~0) {
r 2643 dev/audio.c error = au_set_gain(sc, &sc->sc_inports, gain, r->balance);
r 2747 dev/audio.c if (r->pause != (u_char)~0) {
r 2748 dev/audio.c sc->sc_rr.pause = r->pause;
r 2749 dev/audio.c if (!r->pause && !sc->sc_rbus && (sc->sc_mode & AUMODE_RECORD)) {
r 2764 dev/audio.c struct audio_prinfo *r = &ai->record, *p = &ai->play;
r 2771 dev/audio.c r->sample_rate = sc->sc_rparams.sample_rate;
r 2773 dev/audio.c r->channels = sc->sc_rparams.channels;
r 2775 dev/audio.c r->precision = sc->sc_rparams.precision;
r 2777 dev/audio.c r->encoding = sc->sc_rparams.encoding;
r 2779 dev/audio.c r->port = au_get_port(sc, &sc->sc_inports);
r 2782 dev/audio.c r->avail_ports = sc->sc_inports.allports;
r 2785 dev/audio.c au_get_gain(sc, &sc->sc_inports, &r->gain, &r->balance);
r 2803 dev/audio.c r->seek = sc->sc_rr.used / sc->sc_rparams.factor;
r 2806 dev/audio.c r->samples = sc->sc_rr.stamp - sc->sc_rr.drops;
r 2809 dev/audio.c r->eof = 0;
r 2812 dev/audio.c r->pause = sc->sc_rr.pause;
r 2815 dev/audio.c r->error = sc->sc_rr.drops != 0;
r 2817 dev/audio.c p->waiting = r->waiting = 0; /* open never hangs */
r 2820 dev/audio.c r->open = (sc->sc_open & AUOPEN_READ) != 0;
r 2823 dev/audio.c r->active = sc->sc_rbus;
r 2826 dev/audio.c r->buffer_size = sc->sc_rr.bufsize / sc->sc_rparams.factor;
r 3089 dev/audio.c int l, r;
r 3136 dev/audio.c error = au_get_lr_value(sc, &ct, &l, &r);
r 3152 dev/audio.c if (r > AUDIO_MAX_GAIN - mi.un.v.delta)
r 3153 dev/audio.c r = AUDIO_MAX_GAIN;
r 3155 dev/audio.c r += mi.un.v.delta;
r 3166 dev/audio.c if (r < AUDIO_MIN_GAIN + mi.un.v.delta)
r 3167 dev/audio.c r = AUDIO_MIN_GAIN;
r 3169 dev/audio.c r -= mi.un.v.delta;
r 3172 dev/audio.c error = au_set_lr_value(sc, &ct, l, r);
r 114 dev/cardbus/ehci_cardbus.c usbd_status r;
r 165 dev/cardbus/ehci_cardbus.c r = ehci_init(&sc->sc);
r 166 dev/cardbus/ehci_cardbus.c if (r != USBD_NORMAL_COMPLETION) {
r 167 dev/cardbus/ehci_cardbus.c printf("%s: init failed, error=%d\n", devname, r);
r 269 dev/cardbus/if_dc_cardbus.c int r;
r 278 dev/cardbus/if_dc_cardbus.c if (cardbus_get_capability(cc, cf, csc->sc_tag, PCI_CAP_PWRMGMT, &r,
r 280 dev/cardbus/if_dc_cardbus.c r = cardbus_conf_read(cc, cf, csc->sc_tag, r + 4) & 3;
r 281 dev/cardbus/if_dc_cardbus.c if (r) {
r 283 dev/cardbus/if_dc_cardbus.c csc->sc_dc.sc_dev.dv_xname, r);
r 284 dev/cardbus/if_dc_cardbus.c cardbus_conf_write(cc, cf, csc->sc_tag, r + 4, 0);
r 113 dev/cardbus/ohci_cardbus.c usbd_status r;
r 171 dev/cardbus/ohci_cardbus.c r = ohci_init(&sc->sc);
r 172 dev/cardbus/ohci_cardbus.c if (r != USBD_NORMAL_COMPLETION) {
r 173 dev/cardbus/ohci_cardbus.c printf("%s: init failed, error=%d\n", devname, r);
r 103 dev/cardbus/uhci_cardbus.c usbd_status r;
r 177 dev/cardbus/uhci_cardbus.c r = uhci_init(&sc->sc);
r 178 dev/cardbus/uhci_cardbus.c if (r != USBD_NORMAL_COMPLETION) {
r 179 dev/cardbus/uhci_cardbus.c printf("%s: init failed, error=%d\n", devname, r);
r 906 dev/ic/ac97.c u_int16_t l, r;
r 913 dev/ic/ac97.c l = r = cp->un.value.level[AUDIO_MIXER_LEVEL_MONO];
r 917 dev/ic/ac97.c r = cp->un.value.level[AUDIO_MIXER_LEVEL_RIGHT];
r 919 dev/ic/ac97.c r = cp->un.value.level[AUDIO_MIXER_LEVEL_LEFT];
r 926 dev/ic/ac97.c r = 255 - r;
r 930 dev/ic/ac97.c r >>= 8 - si->bits;
r 934 dev/ic/ac97.c newval |= ((r & mask) << (si->ofs + 8));
r 997 dev/ic/ac97.c u_int16_t l, r;
r 1004 dev/ic/ac97.c l = r = (val >> si->ofs) & mask;
r 1008 dev/ic/ac97.c r = (val >> (si->ofs + 8)) & mask;
r 1010 dev/ic/ac97.c r = (val >> si->ofs) & mask;
r 1016 dev/ic/ac97.c r <<= 8 - si->bits;
r 1019 dev/ic/ac97.c r = 255 - r;
r 1031 dev/ic/ac97.c cp->un.value.level[AUDIO_MIXER_LEVEL_RIGHT] = r;
r 2597 dev/ic/acx.c struct radio_init r;
r 2599 dev/ic/acx.c r.radio_ofs = htole32(radio_ofs);
r 2600 dev/ic/acx.c r.radio_len = htole32(radio_len);
r 2602 dev/ic/acx.c return (acx_exec_command(sc, ACXCMD_INIT_RADIO, &r, sizeof(r), NULL,
r 429 dev/ic/acxreg.h #define CMDPRM_WRITE_REGION_1(sc, r, rlen) \
r 433 dev/ic/acxreg.h (const uint8_t *)(r), (rlen))
r 435 dev/ic/acxreg.h #define CMDPRM_READ_REGION_1(sc, r, rlen) \
r 437 dev/ic/acxreg.h (sc)->sc_cmd_param, (uint8_t *)(r), (rlen))
r 383 dev/ic/aic6360.c int r;
r 397 dev/ic/aic6360.c for (r = 0; r < sizeof(sc->sc_acb) / sizeof(*acb); r++) {
r 418 dev/ic/aic6360.c for (r = 0; r < 8; r++) {
r 419 dev/ic/aic6360.c struct aic_tinfo *ti = &sc->sc_tinfo[r];
r 569 dev/ic/aic6915.h #define SF_MII_PHY_REG(p, r) (SF_MII_BASE + \
r 571 dev/ic/aic6915.h ((r) * sizeof(uint32_t)))
r 208 dev/ic/ami.c ami_read(struct ami_softc *sc, bus_size_t r)
r 212 dev/ic/ami.c bus_space_barrier(sc->sc_iot, sc->sc_ioh, r, 4,
r 214 dev/ic/ami.c rv = bus_space_read_4(sc->sc_iot, sc->sc_ioh, r);
r 216 dev/ic/ami.c AMI_DPRINTF(AMI_D_CMD, ("ari 0x%x 0x08%x ", r, rv));
r 221 dev/ic/ami.c ami_write(struct ami_softc *sc, bus_size_t r, u_int32_t v)
r 223 dev/ic/ami.c AMI_DPRINTF(AMI_D_CMD, ("awo 0x%x 0x%08x ", r, v));
r 225 dev/ic/ami.c bus_space_write_4(sc->sc_iot, sc->sc_ioh, r, v);
r 226 dev/ic/ami.c bus_space_barrier(sc->sc_iot, sc->sc_ioh, r, 4,
r 363 dev/ic/dc.c u_int32_t r;
r 369 dev/ic/dc.c r = CSR_READ_4(sc, DC_SIO);
r 370 dev/ic/dc.c if (!(r & DC_PN_SIOCTL_BUSY)) {
r 371 dev/ic/dc.c *dest = (u_int16_t)(r & 0xFFFF);
r 2393 dev/ic/dc.c u_int32_t r;
r 2402 dev/ic/dc.c r = CSR_READ_4(sc, DC_10BTSTAT);
r 2404 dev/ic/dc.c IFM_100_TX && (r & DC_TSTAT_LS100)) {
r 2409 dev/ic/dc.c IFM_10_T && (r & DC_TSTAT_LS10)) {
r 2416 dev/ic/dc.c r = CSR_READ_4(sc, DC_ISR);
r 2417 dev/ic/dc.c if ((r & DC_ISR_RX_STATE) == DC_RXSTATE_WAIT &&
r 657 dev/ic/dcreg.h #define DC_PN_GPIO_SETBIT(sc, r) \
r 658 dev/ic/dcreg.h DC_SETBIT(sc, DC_PN_GPIO, ((r) | (r << 4)))
r 659 dev/ic/dcreg.h #define DC_PN_GPIO_CLRBIT(sc, r) \
r 661 dev/ic/dcreg.h DC_SETBIT(sc, DC_PN_GPIO, ((r) << 4)); \
r 662 dev/ic/dcreg.h DC_CLRBIT(sc, DC_PN_GPIO, (r)); \
r 413 dev/ic/gem.c gem_bitwait(struct gem_softc *sc, bus_space_handle_t h, int r,
r 420 dev/ic/gem.c reg = bus_space_read_4(sc->sc_bustag, h, r);
r 1090 dev/ic/gem.c int r = 0;
r 1097 dev/ic/gem.c r |= gem_pint(sc);
r 1100 dev/ic/gem.c r |= gem_eint(sc, status);
r 1103 dev/ic/gem.c r |= gem_tint(sc, status);
r 1106 dev/ic/gem.c r |= gem_rint(sc);
r 1140 dev/ic/gem.c return (r);
r 945 dev/ic/hme.c int r = 0;
r 950 dev/ic/hme.c r |= hme_eint(sc, status);
r 953 dev/ic/hme.c r |= hme_tint(sc);
r 956 dev/ic/hme.c r |= hme_rint(sc);
r 958 dev/ic/hme.c return (r);
r 1483 dev/ic/i82596.c int n, r, ptr = sc->buf_area; /* memory pool */
r 1521 dev/ic/i82596.c r = 64 + ((32 + IE_RBUF_SIZE) * B_PER_F);
r 1523 dev/ic/i82596.c sc->nframes = n / r;
r 590 dev/ic/isp_openbsd.c int r;
r 594 dev/ic/isp_openbsd.c r = isp_start(xs);
r 595 dev/ic/isp_openbsd.c switch (r) {
r 612 dev/ic/isp_openbsd.c (r == CMD_EAGAIN)? "CMD_EAGAIN" : "CMD_RQLATER",
r 222 dev/ic/mfi.c mfi_read(struct mfi_softc *sc, bus_size_t r)
r 226 dev/ic/mfi.c bus_space_barrier(sc->sc_iot, sc->sc_ioh, r, 4,
r 228 dev/ic/mfi.c rv = bus_space_read_4(sc->sc_iot, sc->sc_ioh, r);
r 230 dev/ic/mfi.c DNPRINTF(MFI_D_RW, "%s: mr 0x%x 0x08%x ", DEVNAME(sc), r, rv);
r 235 dev/ic/mfi.c mfi_write(struct mfi_softc *sc, bus_size_t r, uint32_t v)
r 237 dev/ic/mfi.c DNPRINTF(MFI_D_RW, "%s: mw 0x%x 0x%08x", DEVNAME(sc), r, v);
r 239 dev/ic/mfi.c bus_space_write_4(sc->sc_iot, sc->sc_ioh, r, v);
r 240 dev/ic/mfi.c bus_space_barrier(sc->sc_iot, sc->sc_ioh, r, 4,
r 430 dev/ic/midway.c STATIC INLINE u_int32_t en_read(sc, r)
r 433 dev/ic/midway.c u_int32_t r;
r 438 dev/ic/midway.c if (r > MID_MAXOFF || (r % 4)) {
r 439 dev/ic/midway.c panic("en_read: out of range, r=0x%x", r);
r 443 dev/ic/midway.c return(bus_space_read_4(sc->en_memt, sc->en_base, r));
r 451 dev/ic/midway.c STATIC INLINE void en_write(sc, r, v)
r 454 dev/ic/midway.c u_int32_t r, v;
r 458 dev/ic/midway.c if (r > MID_MAXOFF || (r % 4)) {
r 459 dev/ic/midway.c panic("en_write: out of range, r=0x%x", r);
r 463 dev/ic/midway.c bus_space_write_4(sc->en_memt, sc->en_base, r, v);
r 1334 dev/ic/mpi.c mpi_read(struct mpi_softc *sc, bus_size_t r)
r 1338 dev/ic/mpi.c bus_space_barrier(sc->sc_iot, sc->sc_ioh, r, 4,
r 1340 dev/ic/mpi.c rv = bus_space_read_4(sc->sc_iot, sc->sc_ioh, r);
r 1342 dev/ic/mpi.c DNPRINTF(MPI_D_RW, "%s: mpi_read %#x %#x\n", DEVNAME(sc), r, rv);
r 1348 dev/ic/mpi.c mpi_write(struct mpi_softc *sc, bus_size_t r, u_int32_t v)
r 1350 dev/ic/mpi.c DNPRINTF(MPI_D_RW, "%s: mpi_write %#x %#x\n", DEVNAME(sc), r, v);
r 1352 dev/ic/mpi.c bus_space_write_4(sc->sc_iot, sc->sc_ioh, r, v);
r 1353 dev/ic/mpi.c bus_space_barrier(sc->sc_iot, sc->sc_ioh, r, 4,
r 1358 dev/ic/mpi.c mpi_wait_eq(struct mpi_softc *sc, bus_size_t r, u_int32_t mask,
r 1363 dev/ic/mpi.c DNPRINTF(MPI_D_RW, "%s: mpi_wait_eq %#x %#x %#x\n", DEVNAME(sc), r,
r 1367 dev/ic/mpi.c if ((mpi_read(sc, r) & mask) == target)
r 1376 dev/ic/mpi.c mpi_wait_ne(struct mpi_softc *sc, bus_size_t r, u_int32_t mask,
r 1381 dev/ic/mpi.c DNPRINTF(MPI_D_RW, "%s: mpi_wait_ne %#x %#x %#x\n", DEVNAME(sc), r,
r 1385 dev/ic/mpi.c if ((mpi_read(sc, r) & mask) != target)
r 385 dev/ic/ncr53c9x.c int r, i;
r 402 dev/ic/ncr53c9x.c for (r = 0; r < sc->sc_ntarg; r++) {
r 403 dev/ic/ncr53c9x.c LIST_INIT(&sc->sc_tinfo[r].luns);
r 413 dev/ic/ncr53c9x.c for (r = 0; r < sc->sc_ntarg; r++) {
r 414 dev/ic/ncr53c9x.c LIST_FOREACH(li, &sc->sc_tinfo[r].luns, link) {
r 443 dev/ic/ncr53c9x.c for (r = 0; r < sc->sc_ntarg; r++) {
r 444 dev/ic/ncr53c9x.c struct ncr53c9x_tinfo *ti = &sc->sc_tinfo[r];
r 447 dev/ic/ncr53c9x.c ti->flags = ((!(sc->sc_cfflags & (1 << (r + 16))) &&
r 449 dev/ic/ncr53c9x.c ((sc->sc_cfflags & (1 << r)) ? T_RSELECTOFF : 0) |
r 1658 dev/ic/ncr53c9x.c int r, s;
r 1666 dev/ic/ncr53c9x.c r = 250/ti->period;
r 1667 dev/ic/ncr53c9x.c s = (100*250)/ti->period - 100*r;
r 1669 dev/ic/ncr53c9x.c r, s);
r 2068 dev/ic/ncr53c9x.c int r = NCRDMA_INTR(sc);
r 2069 dev/ic/ncr53c9x.c if (r == -1) {
r 151 dev/ic/osiop.c u_int8_t r; /* siop_period << 4 | sbcl */
r 1927 dev/ic/osiop.c sxfer |= sync_tab[i].r & 0x70;
r 1928 dev/ic/osiop.c sbcl = sync_tab[i].r & 0x03;
r 209 dev/ic/pcf8584.c volatile u_int8_t r;
r 218 dev/ic/pcf8584.c if (pcfiic_wait_pin(sc, &r) != 0) {
r 223 dev/ic/pcf8584.c if (r & PCF_STAT_LRB) {
r 239 dev/ic/pcf8584.c volatile u_int8_t r;
r 248 dev/ic/pcf8584.c if (pcfiic_wait_pin(sc, &r) != 0) {
r 253 dev/ic/pcf8584.c if ((i != len) && (r & PCF_STAT_LRB)) {
r 264 dev/ic/pcf8584.c r = pcfiic_read(sc, PCF_S0);
r 266 dev/ic/pcf8584.c buf[i - 1] = r;
r 272 dev/ic/pcf8584.c pcfiic_read(struct pcfiic_softc *sc, bus_size_t r)
r 274 dev/ic/pcf8584.c bus_space_barrier(sc->sc_iot, sc->sc_ioh, sc->sc_regmap[r], 1,
r 276 dev/ic/pcf8584.c return (bus_space_read_1(sc->sc_iot, sc->sc_ioh, sc->sc_regmap[r]));
r 280 dev/ic/pcf8584.c pcfiic_write(struct pcfiic_softc *sc, bus_size_t r, u_int8_t v)
r 282 dev/ic/pcf8584.c bus_space_write_1(sc->sc_iot, sc->sc_ioh, sc->sc_regmap[r], v);
r 283 dev/ic/pcf8584.c bus_space_barrier(sc->sc_iot, sc->sc_ioh, sc->sc_regmap[r], 1,
r 309 dev/ic/pcf8584.c pcfiic_wait_pin(struct pcfiic_softc *sc, volatile u_int8_t *r)
r 314 dev/ic/pcf8584.c *r = pcfiic_read(sc, PCF_S1);
r 315 dev/ic/pcf8584.c if ((*r & PCF_STAT_PIN) == 0)
r 1327 dev/ic/rt2560.c uint32_t r;
r 1329 dev/ic/rt2560.c if ((r = RAL_READ(sc, RT2560_CSR7)) == 0)
r 1336 dev/ic/rt2560.c RAL_WRITE(sc, RT2560_CSR7, r);
r 1342 dev/ic/rt2560.c if (r & RT2560_BEACON_EXPIRE)
r 1345 dev/ic/rt2560.c if (r & RT2560_WAKEUP_EXPIRE)
r 1348 dev/ic/rt2560.c if (r & RT2560_ENCRYPTION_DONE)
r 1351 dev/ic/rt2560.c if (r & RT2560_TX_DONE)
r 1354 dev/ic/rt2560.c if (r & RT2560_PRIO_DONE)
r 1357 dev/ic/rt2560.c if (r & RT2560_DECRYPTION_DONE)
r 1360 dev/ic/rt2560.c if (r & RT2560_RX_DONE)
r 606 dev/ic/sili.c sili_read(struct sili_softc *sc, bus_size_t r)
r 610 dev/ic/sili.c bus_space_barrier(sc->sc_iot_global, sc->sc_ioh_global, r, 4,
r 612 dev/ic/sili.c rv = bus_space_read_4(sc->sc_iot_global, sc->sc_ioh_global, r);
r 618 dev/ic/sili.c sili_write(struct sili_softc *sc, bus_size_t r, u_int32_t v)
r 620 dev/ic/sili.c bus_space_write_4(sc->sc_iot_global, sc->sc_ioh_global, r, v);
r 621 dev/ic/sili.c bus_space_barrier(sc->sc_iot_global, sc->sc_ioh_global, r, 4,
r 626 dev/ic/sili.c sili_pread(struct sili_port *sp, bus_size_t r)
r 630 dev/ic/sili.c bus_space_barrier(sp->sp_sc->sc_iot_port, sp->sp_ioh, r, 4,
r 632 dev/ic/sili.c rv = bus_space_read_4(sp->sp_sc->sc_iot_port, sp->sp_ioh, r);
r 638 dev/ic/sili.c sili_pwrite(struct sili_port *sp, bus_size_t r, u_int32_t v)
r 640 dev/ic/sili.c bus_space_write_4(sp->sp_sc->sc_iot_port, sp->sp_ioh, r, v);
r 641 dev/ic/sili.c bus_space_barrier(sp->sp_sc->sc_iot_port, sp->sp_ioh, r, 4,
r 646 dev/ic/sili.c sili_pwait_eq(struct sili_port *sp, bus_size_t r, u_int32_t mask,
r 649 dev/ic/sili.c while ((sili_pread(sp, r) & mask) != value) {
r 661 dev/ic/sili.c sili_pwait_ne(struct sili_port *sp, bus_size_t r, u_int32_t mask,
r 664 dev/ic/sili.c while ((sili_pread(sp, r) & mask) == value) {
r 678 dev/ic/sili.c bus_size_t r = SILI_PREG_SLOT(slot);
r 685 dev/ic/sili.c bus_space_write_raw_region_4(sp->sp_sc->sc_iot_port, sp->sp_ioh, r,
r 687 dev/ic/sili.c bus_space_barrier(sp->sp_sc->sc_iot_port, sp->sp_ioh, r, buflen,
r 696 dev/ic/sili.c bus_size_t r = SILI_PREG_SLOT(slot) + 8;
r 698 dev/ic/sili.c bus_space_barrier(sp->sp_sc->sc_iot_port, sp->sp_ioh, r,
r 700 dev/ic/sili.c bus_space_read_raw_region_4(sp->sp_sc->sc_iot_port, sp->sp_ioh, r,
r 104 dev/ic/sti.c int sti_setcment(struct sti_screen *scr, u_int i, u_char r, u_char g, u_char b);
r 346 dev/ic/sti.c struct sti_region r;
r 354 dev/ic/sti.c r.last = 0;
r 355 dev/ic/sti.c for (p = cc->regions; !r.last &&
r 359 dev/ic/sti.c *(u_int *)&r = parseword(i), i+= 16;
r 362 dev/ic/sti.c (u_int8_t *)&r, 4);
r 366 dev/ic/sti.c *p = bases[p - cc->regions] + (r.offset << PGSHIFT);
r 370 dev/ic/sti.c r.length << PGSHIFT, *p, r.sys_only? " sys" : "",
r 371 dev/ic/sti.c r.cache? " cache" : "", r.btlb? " btlb" : "",
r 372 dev/ic/sti.c r.last? " last" : "");
r 380 dev/ic/sti.c if (bus_space_map(memt, *p, r.length << PGSHIFT,
r 381 dev/ic/sti.c r.cache ? BUS_SPACE_MAP_CACHEABLE : 0, &fbh)) {
r 390 dev/ic/sti.c scr->fblen = r.length << PGSHIFT;
r 749 dev/ic/sti.c sti_setcment(struct sti_screen *scr, u_int i, u_char r, u_char g, u_char b)
r 761 dev/ic/sti.c a.in.value = (r << 16) | (g << 8) | b;
r 1296 dev/ic/vga.c u_int8_t r;
r 1303 dev/ic/vga.c r = vga_6845_read(vh, mode) | 0x80;
r 1305 dev/ic/vga.c vga_6845_write(vh, mode, r);
r 1309 dev/ic/vga.c r = vga_6845_read(vh, mode) & ~0x80;
r 1311 dev/ic/vga.c vga_6845_write(vh, mode, r);
r 254 dev/isa/ad1848.c u_char r;
r 259 dev/isa/ad1848.c r = ad_read(sc, i);
r 260 dev/isa/ad1848.c printf("%02x ", r);
r 264 dev/isa/ad1848.c r = ad_read(sc, i);
r 265 dev/isa/ad1848.c printf("%02x ", r);
r 1012 dev/isa/ad1848.c ad1848_set_params(addr, setmode, usemode, p, r)
r 1015 dev/isa/ad1848.c struct audio_params *p, *r;
r 1094 dev/isa/ad1848.c r->sw_code = rswcode;
r 1197 dev/isa/ad1848.c u_char r;
r 1219 dev/isa/ad1848.c r = ad_read(sc, SP_INTERFACE_CONFIG);
r 1220 dev/isa/ad1848.c r &= ~(CAPTURE_ENABLE|PLAYBACK_ENABLE);
r 1221 dev/isa/ad1848.c ad_write(sc, SP_INTERFACE_CONFIG, r);
r 1312 dev/isa/ad1848.c u_char r;
r 1317 dev/isa/ad1848.c r = ad_read(sc, SP_INTERFACE_CONFIG);
r 1318 dev/isa/ad1848.c r &= ~(CAPTURE_ENABLE|PLAYBACK_ENABLE);
r 1319 dev/isa/ad1848.c ad_write(sc, SP_INTERFACE_CONFIG, r);
r 260 dev/isa/addcom_isa.c int intrd, r = 0, i;
r 266 dev/isa/addcom_isa.c r = 1;
r 271 dev/isa/addcom_isa.c return (r);
r 185 dev/isa/essreg.h #define ESS_STEREO_GAIN(l, r) ((l) | ((r) >> 4))
r 1510 dev/isa/gus.c gusmax_set_params(addr, setmode, usemode, p, r)
r 1513 dev/isa/gus.c struct audio_params *p, *r;
r 1519 dev/isa/gus.c error = ad1848_set_params(ac, setmode, usemode, p, r);
r 1522 dev/isa/gus.c error = gus_set_params(sc, setmode, usemode, p, r);
r 1527 dev/isa/gus.c gus_set_params(addr, setmode, usemode, p, r)
r 1530 dev/isa/gus.c struct audio_params *p, *r;
r 1573 dev/isa/gus.c r->sw_code = ulinear8_to_mulaw;
r 1577 dev/isa/gus.c r->sw_code = ulinear8_to_alaw;
r 1581 dev/isa/gus.c r->sw_code = p->sw_code = swap_bytes;
r 541 dev/isa/if_ef_isapnp.c int r = 0;
r 547 dev/isa/if_ef_isapnp.c r = 1;
r 553 dev/isa/if_ef_isapnp.c r = 1;
r 558 dev/isa/if_ef_isapnp.c r = 1;
r 567 dev/isa/if_ef_isapnp.c r = 1;
r 576 dev/isa/if_ef_isapnp.c return (r);
r 195 dev/isa/isapnp.c isapnp_free_region(t, r)
r 197 dev/isa/isapnp.c struct isapnp_region *r;
r 199 dev/isa/isapnp.c if (r->length == 0)
r 202 dev/isa/isapnp.c bus_space_unmap(t, r->h, r->length);
r 203 dev/isa/isapnp.c r->h = NULL;
r 211 dev/isa/isapnp.c isapnp_alloc_region(t, r)
r 213 dev/isa/isapnp.c struct isapnp_region *r;
r 217 dev/isa/isapnp.c if (r->length == 0)
r 220 dev/isa/isapnp.c r->h = NULL;
r 221 dev/isa/isapnp.c for (r->base = r->minbase; r->base <= r->maxbase;
r 222 dev/isa/isapnp.c r->base += r->align) {
r 223 dev/isa/isapnp.c error = bus_space_map(t, r->base, r->length, 0, &r->h);
r 506 dev/isa/isapnp.c isapnp_print_region(str, r, n)
r 508 dev/isa/isapnp.c struct isapnp_region *r;
r 517 dev/isa/isapnp.c for (i = 0; i < n; i++, r++) {
r 518 dev/isa/isapnp.c printf("0x%x", r->base);
r 519 dev/isa/isapnp.c if (r->length)
r 520 dev/isa/isapnp.c printf("/%d", r->length);
r 700 dev/isa/isapnp.c const struct isapnp_region *r;
r 715 dev/isa/isapnp.c r = &ipa->ipa_io[i];
r 717 dev/isa/isapnp.c r = &rz;
r 720 dev/isa/isapnp.c isapnp_io_range[i] + ISAPNP_IO_BASE_15_8, B1(r->base));
r 722 dev/isa/isapnp.c isapnp_io_range[i] + ISAPNP_IO_BASE_7_0, B0(r->base));
r 727 dev/isa/isapnp.c r = &ipa->ipa_mem[i];
r 729 dev/isa/isapnp.c r = &rz;
r 732 dev/isa/isapnp.c isapnp_mem_range[i] + ISAPNP_MEM_BASE_23_16, B2(r->base));
r 734 dev/isa/isapnp.c isapnp_mem_range[i] + ISAPNP_MEM_BASE_15_8, B1(r->base));
r 738 dev/isa/isapnp.c B2(r->length));
r 741 dev/isa/isapnp.c B1(r->length));
r 790 dev/isa/isapnp.c r = &ipa->ipa_mem32[i];
r 792 dev/isa/isapnp.c r = &rz;
r 796 dev/isa/isapnp.c B3(r->base));
r 799 dev/isa/isapnp.c B2(r->base));
r 802 dev/isa/isapnp.c B1(r->base));
r 805 dev/isa/isapnp.c B0(r->base));
r 809 dev/isa/isapnp.c B3(r->length));
r 812 dev/isa/isapnp.c B2(r->length));
r 815 dev/isa/isapnp.c B1(r->length));
r 818 dev/isa/isapnp.c B0(r->length));
r 260 dev/isa/isapnpdebug.c struct isapnp_region *r;
r 266 dev/isa/isapnpdebug.c r = &pa->ipa_io[i];
r 271 dev/isa/isapnpdebug.c r->base = (v0 << 8) | v1;
r 272 dev/isa/isapnpdebug.c if (r->base == 0)
r 278 dev/isa/isapnpdebug.c r = &pa->ipa_mem[i];
r 283 dev/isa/isapnpdebug.c r->base = (v0 << 16) | (v1 << 8);
r 284 dev/isa/isapnpdebug.c if (r->base == 0)
r 291 dev/isa/isapnpdebug.c r->length = (v0 << 16) | (v1 << 8);
r 294 dev/isa/isapnpdebug.c r->flags = 0;
r 296 dev/isa/isapnpdebug.c r->flags |= ISAPNP_MEMATTR_HIGH_ADDR;
r 298 dev/isa/isapnpdebug.c r->flags |= ISAPNP_MEMWIDTH_16;
r 337 dev/isa/isapnpdebug.c r = &pa->ipa_mem32[i];
r 346 dev/isa/isapnpdebug.c r->base = (v0 << 24) | (v1 << 16) | (v2 << 8) | v3;
r 347 dev/isa/isapnpdebug.c if (r->base == 0)
r 358 dev/isa/isapnpdebug.c r->length = (v0 << 24) | (v1 << 16) | (v2 << 8) | v3;
r 361 dev/isa/isapnpdebug.c r->flags = v0;
r 375 dev/isa/isapnpdebug.c const struct isapnp_region *r;
r 381 dev/isa/isapnpdebug.c r = &pa->ipa_io[i];
r 382 dev/isa/isapnpdebug.c printf("io[%d]: 0x%x/%d\n", i, r->base, r->length);
r 387 dev/isa/isapnpdebug.c r = &pa->ipa_mem[i];
r 388 dev/isa/isapnpdebug.c printf("mem[%d]: 0x%x/%d\n", i, r->base, r->length);
r 405 dev/isa/isapnpdebug.c r = &pa->ipa_mem32[i];
r 406 dev/isa/isapnpdebug.c printf("mem32[%d]: 0x%x/%d\n", i, r->base, r->length);
r 231 dev/isa/isapnpres.c struct isapnp_region *r;
r 342 dev/isa/isapnpres.c r = &pa->ipa_io[pa->ipa_nio++];
r 343 dev/isa/isapnpres.c r->flags = buf[0];
r 344 dev/isa/isapnpres.c r->minbase = (buf[2] << 8) | buf[1];
r 345 dev/isa/isapnpres.c r->maxbase = (buf[4] << 8) | buf[3];
r 346 dev/isa/isapnpres.c r->align = buf[5];
r 347 dev/isa/isapnpres.c r->length = buf[6];
r 349 dev/isa/isapnpres.c isapnp_print_io("", r);
r 354 dev/isa/isapnpres.c r = &pa->ipa_io[pa->ipa_nio++];
r 355 dev/isa/isapnpres.c r->flags = 0;
r 356 dev/isa/isapnpres.c r->minbase = (buf[1] << 8) | buf[0];
r 357 dev/isa/isapnpres.c r->maxbase = r->minbase;
r 358 dev/isa/isapnpres.c r->align = 1;
r 359 dev/isa/isapnpres.c r->length = buf[2];
r 361 dev/isa/isapnpres.c isapnp_print_io("FIXED ", r);
r 370 dev/isa/isapnpres.c r = &pa->ipa_mem[pa->ipa_nmem++];
r 371 dev/isa/isapnpres.c r->flags = buf[0];
r 372 dev/isa/isapnpres.c r->minbase = (buf[2] << 16) | (buf[1] << 8);
r 373 dev/isa/isapnpres.c r->maxbase = (buf[4] << 16) | (buf[3] << 8);
r 374 dev/isa/isapnpres.c r->align = (buf[6] << 8) | buf[5];
r 375 dev/isa/isapnpres.c r->length = (buf[8] << 16) | (buf[7] << 8);
r 377 dev/isa/isapnpres.c isapnp_print_mem("", r);
r 391 dev/isa/isapnpres.c r = &pa->ipa_mem32[pa->ipa_nmem32++];
r 392 dev/isa/isapnpres.c r->flags = buf[0];
r 393 dev/isa/isapnpres.c r->minbase = (buf[4] << 24) | (buf[3] << 16) |
r 395 dev/isa/isapnpres.c r->maxbase = (buf[8] << 24) | (buf[7] << 16) |
r 397 dev/isa/isapnpres.c r->align = (buf[12] << 24) | (buf[11] << 16) |
r 399 dev/isa/isapnpres.c r->length = (buf[16] << 24) | (buf[15] << 16) |
r 402 dev/isa/isapnpres.c isapnp_print_mem("32-bit ", r);
r 407 dev/isa/isapnpres.c r = &pa->ipa_mem32[pa->ipa_nmem32++];
r 408 dev/isa/isapnpres.c r->flags = buf[0];
r 409 dev/isa/isapnpres.c r->minbase = (buf[4] << 24) | (buf[3] << 16) |
r 411 dev/isa/isapnpres.c r->maxbase = r->minbase;
r 412 dev/isa/isapnpres.c r->align = 1;
r 413 dev/isa/isapnpres.c r->length = (buf[8] << 24) | (buf[7] << 16) |
r 416 dev/isa/isapnpres.c isapnp_print_mem("FIXED 32-bit ", r);
r 418 dev/isa/isavar.h isapnp_write_reg(sc, r, v)
r 420 dev/isa/isavar.h int r;
r 423 dev/isa/isavar.h ISAPNP_WRITE_ADDR(sc, r);
r 428 dev/isa/isavar.h isapnp_read_reg(sc, r)
r 430 dev/isa/isavar.h int r;
r 432 dev/isa/isavar.h ISAPNP_WRITE_ADDR(sc, r);
r 78 dev/isa/opl_isa.c int r;
r 84 dev/isa/opl_isa.c r = opl_find(&sc);
r 86 dev/isa/opl_isa.c return (r);
r 212 dev/isa/sb.c int w, r;
r 221 dev/isa/sb.c r = sbdsp_mix_read(sc, SBP_SET_DRQ) & 0xeb;
r 222 dev/isa/sb.c if (r != w) {
r 223 dev/isa/sb.c DPRINTF(("%s: setting drq mask %02x failed, got %02x\n", sc->sc_dev.dv_xname, w, r));
r 239 dev/isa/sb.c r = sbdsp_mix_read(sc, SBP_SET_IRQ) & 0x0f;
r 240 dev/isa/sb.c if (r != w) {
r 242 dev/isa/sb.c sc->sc_dev.dv_xname, w, r));
r 30 dev/microcode/typhoon/build.c ssize_t r;
r 32 dev/microcode/typhoon/build.c r = write(fd, buf, nbytes);
r 33 dev/microcode/typhoon/build.c if (r == -1)
r 35 dev/microcode/typhoon/build.c if (r != nbytes)
r 217 dev/mii/miivar.h #define PHY_READ(p, r) \
r 219 dev/mii/miivar.h (p)->mii_phy, (r))
r 221 dev/mii/miivar.h #define PHY_WRITE(p, r, v) \
r 223 dev/mii/miivar.h (p)->mii_phy, (r), (v))
r 863 dev/pci/ahci.c int r;
r 865 dev/pci/ahci.c r = ahci_port_stop(ap, 1);
r 866 dev/pci/ahci.c if (r) {
r 868 dev/pci/ahci.c DEVNAME(sc), r == 2 ? "CR" : "FR", port);
r 1070 dev/pci/ahci.c u_int32_t r;
r 1073 dev/pci/ahci.c r = ahci_pread(ap, AHCI_PREG_CMD) & ~AHCI_PREG_CMD_ICC;
r 1074 dev/pci/ahci.c r |= AHCI_PREG_CMD_FRE;
r 1076 dev/pci/ahci.c r |= AHCI_PREG_CMD_ST;
r 1077 dev/pci/ahci.c ahci_pwrite(ap, AHCI_PREG_CMD, r);
r 1102 dev/pci/ahci.c u_int32_t r;
r 1114 dev/pci/ahci.c r = ahci_pread(ap, AHCI_PREG_CMD) & ~AHCI_PREG_CMD_ICC;
r 1115 dev/pci/ahci.c r &= ~AHCI_PREG_CMD_ST;
r 1117 dev/pci/ahci.c r &= ~AHCI_PREG_CMD_FRE;
r 1118 dev/pci/ahci.c ahci_pwrite(ap, AHCI_PREG_CMD, r);
r 1273 dev/pci/ahci.c u_int32_t cmd, r;
r 1287 dev/pci/ahci.c r = AHCI_PREG_SCTL_IPM_DISABLED | AHCI_PREG_SCTL_SPD_ANY |
r 1289 dev/pci/ahci.c ahci_pwrite(ap, AHCI_PREG_SCTL, r);
r 1291 dev/pci/ahci.c r &= ~AHCI_PREG_SCTL_DET_INIT;
r 1292 dev/pci/ahci.c r |= AHCI_PREG_SCTL_DET_NONE;
r 1293 dev/pci/ahci.c ahci_pwrite(ap, AHCI_PREG_SCTL, r);
r 2083 dev/pci/ahci.c ahci_read(struct ahci_softc *sc, bus_size_t r)
r 2085 dev/pci/ahci.c bus_space_barrier(sc->sc_iot, sc->sc_ioh, r, 4,
r 2087 dev/pci/ahci.c return (bus_space_read_4(sc->sc_iot, sc->sc_ioh, r));
r 2091 dev/pci/ahci.c ahci_write(struct ahci_softc *sc, bus_size_t r, u_int32_t v)
r 2093 dev/pci/ahci.c bus_space_write_4(sc->sc_iot, sc->sc_ioh, r, v);
r 2094 dev/pci/ahci.c bus_space_barrier(sc->sc_iot, sc->sc_ioh, r, 4,
r 2099 dev/pci/ahci.c ahci_wait_ne(struct ahci_softc *sc, bus_size_t r, u_int32_t mask,
r 2105 dev/pci/ahci.c if ((ahci_read(sc, r) & mask) != target)
r 2114 dev/pci/ahci.c ahci_pread(struct ahci_port *ap, bus_size_t r)
r 2116 dev/pci/ahci.c bus_space_barrier(ap->ap_sc->sc_iot, ap->ap_ioh, r, 4,
r 2118 dev/pci/ahci.c return (bus_space_read_4(ap->ap_sc->sc_iot, ap->ap_ioh, r));
r 2122 dev/pci/ahci.c ahci_pwrite(struct ahci_port *ap, bus_size_t r, u_int32_t v)
r 2124 dev/pci/ahci.c bus_space_write_4(ap->ap_sc->sc_iot, ap->ap_ioh, r, v);
r 2125 dev/pci/ahci.c bus_space_barrier(ap->ap_sc->sc_iot, ap->ap_ioh, r, 4,
r 2130 dev/pci/ahci.c ahci_pwait_eq(struct ahci_port *ap, bus_size_t r, u_int32_t mask,
r 2136 dev/pci/ahci.c if ((ahci_pread(ap, r) & mask) == target)
r 1630 dev/pci/arc.c arc_read(struct arc_softc *sc, bus_size_t r)
r 1634 dev/pci/arc.c bus_space_barrier(sc->sc_iot, sc->sc_ioh, r, 4,
r 1636 dev/pci/arc.c v = bus_space_read_4(sc->sc_iot, sc->sc_ioh, r);
r 1638 dev/pci/arc.c DNPRINTF(ARC_D_RW, "%s: arc_read 0x%x 0x%08x\n", DEVNAME(sc), r, v);
r 1644 dev/pci/arc.c arc_read_region(struct arc_softc *sc, bus_size_t r, void *buf, size_t len)
r 1646 dev/pci/arc.c bus_space_barrier(sc->sc_iot, sc->sc_ioh, r, len,
r 1648 dev/pci/arc.c bus_space_read_raw_region_4(sc->sc_iot, sc->sc_ioh, r, buf, len);
r 1652 dev/pci/arc.c arc_write(struct arc_softc *sc, bus_size_t r, u_int32_t v)
r 1654 dev/pci/arc.c DNPRINTF(ARC_D_RW, "%s: arc_write 0x%x 0x%08x\n", DEVNAME(sc), r, v);
r 1656 dev/pci/arc.c bus_space_write_4(sc->sc_iot, sc->sc_ioh, r, v);
r 1657 dev/pci/arc.c bus_space_barrier(sc->sc_iot, sc->sc_ioh, r, 4,
r 1662 dev/pci/arc.c arc_write_region(struct arc_softc *sc, bus_size_t r, void *buf, size_t len)
r 1664 dev/pci/arc.c bus_space_write_raw_region_4(sc->sc_iot, sc->sc_ioh, r, buf, len);
r 1665 dev/pci/arc.c bus_space_barrier(sc->sc_iot, sc->sc_ioh, r, len,
r 1670 dev/pci/arc.c arc_wait_eq(struct arc_softc *sc, bus_size_t r, u_int32_t mask,
r 1676 dev/pci/arc.c DEVNAME(sc), r, mask, target);
r 1679 dev/pci/arc.c if ((arc_read(sc, r) & mask) == target)
r 1688 dev/pci/arc.c arc_wait_ne(struct arc_softc *sc, bus_size_t r, u_int32_t mask,
r 1694 dev/pci/arc.c DEVNAME(sc), r, mask, target);
r 1697 dev/pci/arc.c if ((arc_read(sc, r) & mask) != target)
r 84 dev/pci/autri.c #define TWRITE1(sc, r, x) bus_space_write_1((sc)->memt, (sc)->memh, (r), (x))
r 85 dev/pci/autri.c #define TWRITE2(sc, r, x) bus_space_write_2((sc)->memt, (sc)->memh, (r), (x))
r 86 dev/pci/autri.c #define TWRITE4(sc, r, x) bus_space_write_4((sc)->memt, (sc)->memh, (r), (x))
r 87 dev/pci/autri.c #define TREAD1(sc, r) bus_space_read_1((sc)->memt, (sc)->memh, (r))
r 88 dev/pci/autri.c #define TREAD2(sc, r) bus_space_read_2((sc)->memt, (sc)->memh, (r))
r 89 dev/pci/autri.c #define TREAD4(sc, r) bus_space_read_4((sc)->memt, (sc)->memh, (r))
r 518 dev/pci/autri.c int i, r;
r 573 dev/pci/autri.c if ((r = ac97_attach(&codec->host_if)) != 0) {
r 575 dev/pci/autri.c sc->sc_dev.dv_xname, r);
r 230 dev/pci/auvia.c int r, i;
r 284 dev/pci/auvia.c if ((r = ac97_attach(&sc->host_if)) != 0) {
r 286 dev/pci/auvia.c sc->sc_dev.dv_xname, r);
r 342 dev/pci/auvia.c pcireg_t r;
r 346 dev/pci/auvia.c r = pci_conf_read(sc->sc_pc, sc->sc_pt, AUVIA_PCICONF_JUNK);
r 348 dev/pci/auvia.c r &= ~AUVIA_PCICONF_ACNOTRST; /* enable RESET (active low) */
r 349 dev/pci/auvia.c pci_conf_write(sc->sc_pc, sc->sc_pt, AUVIA_PCICONF_JUNK, r);
r 352 dev/pci/auvia.c r |= AUVIA_PCICONF_ACNOTRST; /* disable RESET (inactive high) */
r 353 dev/pci/auvia.c pci_conf_write(sc->sc_pc, sc->sc_pt, AUVIA_PCICONF_JUNK, r);
r 953 dev/pci/auvia.c u_int8_t r;
r 956 dev/pci/auvia.c r = bus_space_read_1(sc->sc_iot, sc->sc_ioh,
r 958 dev/pci/auvia.c if (r & AUVIA_RPSTAT_INTR) {
r 968 dev/pci/auvia.c r = bus_space_read_1(sc->sc_iot, sc->sc_ioh,
r 970 dev/pci/auvia.c if (r & AUVIA_RPSTAT_INTR) {
r 163 dev/pci/azalia.c #define STR_READ_1(s, r) \
r 164 dev/pci/azalia.c bus_space_read_1((s)->az->iot, (s)->az->ioh, (s)->regbase + HDA_SD_##r)
r 165 dev/pci/azalia.c #define STR_READ_2(s, r) \
r 166 dev/pci/azalia.c bus_space_read_2((s)->az->iot, (s)->az->ioh, (s)->regbase + HDA_SD_##r)
r 167 dev/pci/azalia.c #define STR_READ_4(s, r) \
r 168 dev/pci/azalia.c bus_space_read_4((s)->az->iot, (s)->az->ioh, (s)->regbase + HDA_SD_##r)
r 169 dev/pci/azalia.c #define STR_WRITE_1(s, r, v) \
r 170 dev/pci/azalia.c bus_space_write_1((s)->az->iot, (s)->az->ioh, (s)->regbase + HDA_SD_##r, v)
r 171 dev/pci/azalia.c #define STR_WRITE_2(s, r, v) \
r 172 dev/pci/azalia.c bus_space_write_2((s)->az->iot, (s)->az->ioh, (s)->regbase + HDA_SD_##r, v)
r 173 dev/pci/azalia.c #define STR_WRITE_4(s, r, v) \
r 174 dev/pci/azalia.c bus_space_write_4((s)->az->iot, (s)->az->ioh, (s)->regbase + HDA_SD_##r, v)
r 210 dev/pci/azalia.c #define AZ_READ_1(z, r) bus_space_read_1((z)->iot, (z)->ioh, HDA_##r)
r 211 dev/pci/azalia.c #define AZ_READ_2(z, r) bus_space_read_2((z)->iot, (z)->ioh, HDA_##r)
r 212 dev/pci/azalia.c #define AZ_READ_4(z, r) bus_space_read_4((z)->iot, (z)->ioh, HDA_##r)
r 213 dev/pci/azalia.c #define AZ_WRITE_1(z, r, v) bus_space_write_1((z)->iot, (z)->ioh, HDA_##r, v)
r 214 dev/pci/azalia.c #define AZ_WRITE_2(z, r, v) bus_space_write_2((z)->iot, (z)->ioh, HDA_##r, v)
r 215 dev/pci/azalia.c #define AZ_WRITE_4(z, r, v) bus_space_write_4((z)->iot, (z)->ioh, HDA_##r, v)
r 1974 dev/pci/azalia.c audio_params_t *r)
r 1984 dev/pci/azalia.c if (smode & AUMODE_RECORD && r != NULL) {
r 1985 dev/pci/azalia.c if (r->encoding == AUDIO_ENCODING_ULAW) { /*XXX*/
r 1986 dev/pci/azalia.c r->encoding = AUDIO_ENCODING_SLINEAR_LE;
r 1987 dev/pci/azalia.c r->precision = 16;
r 1988 dev/pci/azalia.c r->channels = 2;
r 1989 dev/pci/azalia.c r->sample_rate = 44100;
r 1992 dev/pci/azalia.c if (r->encoding != codec->formats[i].encoding)
r 1994 dev/pci/azalia.c if (r->precision != codec->formats[i].precision)
r 1996 dev/pci/azalia.c if (r->channels != codec->formats[i].channels)
r 2002 dev/pci/azalia.c r->encoding, r->precision, r->channels);
r 2006 dev/pci/azalia.c if (r->sample_rate != codec->formats[i].frequency[j])
r 2012 dev/pci/azalia.c r->sample_rate);
r 2015 dev/pci/azalia.c r->sw_code = rswcode;
r 2035 dev/pci/azalia.c r->encoding, r->precision, r->channels);
r 2295 dev/pci/bktr/bktr_core.c int r[60]={
r 2308 dev/pci/bktr/bktr_core.c r[i], INL(bktr, r[i]),
r 2309 dev/pci/bktr/bktr_core.c r[i+1], INL(bktr, r[i+1]),
r 2310 dev/pci/bktr/bktr_core.c r[i+2], INL(bktr, r[i+2]),
r 2311 dev/pci/bktr/bktr_core.c r[i+3], INL(bktr, r[i+3]));
r 198 dev/pci/cmpcireg.h # define CMPCI_ADJUST_AUX_GAIN(sc, l, r) \
r 199 dev/pci/cmpcireg.h (cmpci_adjust((l), 0xc0) >> 4 | cmpci_adjust((r), 0xc0))
r 165 dev/pci/cs4280.c #define BA0READ4(sc, r) bus_space_read_4((sc)->ba0t, (sc)->ba0h, (r))
r 166 dev/pci/cs4280.c #define BA0WRITE4(sc, r, x) bus_space_write_4((sc)->ba0t, (sc)->ba0h, (r), (x))
r 167 dev/pci/cs4280.c #define BA1READ4(sc, r) bus_space_read_4((sc)->ba1t, (sc)->ba1h, (r))
r 168 dev/pci/cs4280.c #define BA1WRITE4(sc, r, x) bus_space_write_4((sc)->ba1t, (sc)->ba1h, (r), (x))
r 148 dev/pci/cs4281.c #define BA0READ4(sc, r) bus_space_read_4((sc)->ba0t, (sc)->ba0h, (r))
r 149 dev/pci/cs4281.c #define BA0WRITE4(sc, r, x) bus_space_write_4((sc)->ba0t, (sc)->ba0h, (r), (x))
r 157 dev/pci/eap.c #define EWRITE1(sc, r, x) bus_space_write_1((sc)->iot, (sc)->ioh, (r), (x))
r 158 dev/pci/eap.c #define EWRITE2(sc, r, x) bus_space_write_2((sc)->iot, (sc)->ioh, (r), (x))
r 159 dev/pci/eap.c #define EWRITE4(sc, r, x) bus_space_write_4((sc)->iot, (sc)->ioh, (r), (x))
r 160 dev/pci/eap.c #define EREAD1(sc, r) bus_space_read_1((sc)->iot, (sc)->ioh, (r))
r 161 dev/pci/eap.c #define EREAD2(sc, r) bus_space_read_2((sc)->iot, (sc)->ioh, (r))
r 162 dev/pci/eap.c #define EREAD4(sc, r) bus_space_read_4((sc)->iot, (sc)->ioh, (r))
r 461 dev/pci/eap.c u_int32_t r;
r 463 dev/pci/eap.c r = eap1371_src_wait(sc) & E1371_SRC_CTLMASK;
r 464 dev/pci/eap.c r |= E1371_SRC_RAMWE | E1371_SRC_ADDR(a) | E1371_SRC_DATA(d);
r 465 dev/pci/eap.c EWRITE4(sc, E1371_SRC, r);
r 513 dev/pci/eap.c int freq, r;
r 526 dev/pci/eap.c r = EREAD4(sc, E1371_SRC) & (E1371_SRC_DISABLE |
r 528 dev/pci/eap.c r |= (which == 1) ? E1371_SRC_DISP1 : E1371_SRC_DISP2;
r 529 dev/pci/eap.c EWRITE4(sc, E1371_SRC, r);
r 530 dev/pci/eap.c r = eap1371_src_read(sc, dac + ESRC_IREGS) & 0x00ff;
r 531 dev/pci/eap.c eap1371_src_write(sc, dac + ESRC_IREGS, r | ((freq >> 5) & 0xfc00));
r 533 dev/pci/eap.c r = EREAD4(sc, E1371_SRC) & (E1371_SRC_DISABLE |
r 535 dev/pci/eap.c r &= ~(which == 1 ? E1371_SRC_DISP1 : E1371_SRC_DISP2);
r 536 dev/pci/eap.c EWRITE4(sc, E1371_SRC, r);
r 1270 dev/pci/eap.c int lval, rval, l, r, la, ra;
r 1339 dev/pci/eap.c r = VOL_TO_ATT5(rval);
r 1369 dev/pci/eap.c r = VOL_TO_GAIN5(rval);
r 1376 dev/pci/eap.c eap1370_set_mixer(sc, ra, r);
r 1385 dev/pci/eap.c int la, ra, l, r;
r 1405 dev/pci/eap.c r = ATT5_TO_VOL(sc->sc_port[AK_MASTER_R]);
r 1433 dev/pci/eap.c r = GAIN5_TO_VOL(sc->sc_port[ra]);
r 1439 dev/pci/eap.c cp->un.value.level[AUDIO_MIXER_LEVEL_MONO] = (l+r) / 2;
r 1442 dev/pci/eap.c cp->un.value.level[AUDIO_MIXER_LEVEL_RIGHT] = r;
r 177 dev/pci/eapreg.h #define EAP_GET_CURRSAMP(r) ((r) >> 16)
r 112 dev/pci/ehci_pci.c usbd_status r;
r 177 dev/pci/ehci_pci.c r = ehci_init(&sc->sc);
r 178 dev/pci/ehci_pci.c if (r != USBD_NORMAL_COMPLETION) {
r 179 dev/pci/ehci_pci.c printf("%s: init failed, error=%d\n", devname, r);
r 164 dev/pci/emuxki.c u_int16_t r, u_int16_t a, u_int16_t x, u_int16_t y);
r 654 dev/pci/emuxki.c u_int16_t r, u_int16_t a, u_int16_t x, u_int16_t y)
r 662 dev/pci/emuxki.c ((r << 12) & EMU_A_DSP_HIWORD_RESULT_MASK) |
r 670 dev/pci/emuxki.c ((r << 10) & EMU_DSP_HIWORD_RESULT_MASK) |
r 342 dev/pci/esa.c struct audio_params *r = &vc->rec.mode;
r 375 dev/pci/esa.c if (r->channels == 1)
r 382 dev/pci/esa.c if (r->precision * r->factor == 8)
r 389 dev/pci/esa.c if ((freq = ((r->sample_rate << 15) + 24000) / 48000) != 0) {
r 729 dev/pci/eso.c int mode, r[2], rd[2], clk;
r 783 dev/pci/eso.c r[0] = ESO_CLK0 /
r 785 dev/pci/eso.c r[1] = ESO_CLK1 /
r 788 dev/pci/eso.c clk = ABS(p->sample_rate - r[0]) > ABS(p->sample_rate - r[1]);
r 795 dev/pci/eso.c p->sample_rate = r[clk];
r 243 dev/pci/esoreg.h #define ESO_4BIT_GAIN_TO_STEREO(l,r) ((l) | ((r) >> 4))
r 162 dev/pci/fmsradio.c struct fmsradio_if *r;
r 164 dev/pci/fmsradio.c r = malloc(sizeof(struct fmsradio_if), M_DEVBUF, M_NOWAIT);
r 165 dev/pci/fmsradio.c if (r == NULL) {
r 171 dev/pci/fmsradio.c sc->radio = r;
r 172 dev/pci/fmsradio.c r->tea.iot = sc->sc_iot;
r 173 dev/pci/fmsradio.c r->tea.ioh = sc->sc_ioh;
r 174 dev/pci/fmsradio.c r->tea.offset = FM_IO_CTL;
r 175 dev/pci/fmsradio.c r->tea.flags = sc->sc_dev.dv_cfdata->cf_flags;
r 176 dev/pci/fmsradio.c r->vol = 0;
r 177 dev/pci/fmsradio.c r->mute = 0;
r 178 dev/pci/fmsradio.c r->freq = MIN_FM_FREQ;
r 179 dev/pci/fmsradio.c r->stereo = TEA5757_STEREO;
r 180 dev/pci/fmsradio.c r->lock = TEA5757_S030;
r 182 dev/pci/fmsradio.c r->type = TUNER_UNKNOWN;
r 183 dev/pci/fmsradio.c if ((r->type = sf64pcr_probe(sc)) == TUNER_SF64PCR)
r 185 dev/pci/fmsradio.c else if ((r->type = sf256pcpr_probe(sc)) == TUNER_SF256PCPR)
r 187 dev/pci/fmsradio.c else if ((r->type = sf256pcs_probe(sc)) == TUNER_SF256PCS)
r 194 dev/pci/fmsradio.c return r->type;
r 342 dev/pci/hifn7751.c u_int32_t r;
r 367 dev/pci/hifn7751.c r = READ_REG_1(sc, HIFN_1_7811_RNGENA);
r 368 dev/pci/hifn7751.c if (r & HIFN_7811_RNGENA_ENA) {
r 369 dev/pci/hifn7751.c r &= ~HIFN_7811_RNGENA_ENA;
r 370 dev/pci/hifn7751.c WRITE_REG_1(sc, HIFN_1_7811_RNGENA, r);
r 374 dev/pci/hifn7751.c r |= HIFN_7811_RNGENA_ENA;
r 375 dev/pci/hifn7751.c WRITE_REG_1(sc, HIFN_1_7811_RNGENA, r);
r 471 dev/pci/hifn7751.c u_int32_t r;
r 473 dev/pci/hifn7751.c r = pci_conf_read(sc->sc_pci_pc, sc->sc_pci_tag, HIFN_TRDY_TIMEOUT);
r 474 dev/pci/hifn7751.c r &= 0xffff0000;
r 475 dev/pci/hifn7751.c pci_conf_write(sc->sc_pci_pc, sc->sc_pci_tag, HIFN_TRDY_TIMEOUT, r);
r 965 dev/pci/hifn7751.c int r, cmdi, resi, srci, dsti;
r 997 dev/pci/hifn7751.c for (r = 10000; r >= 0; r--) {
r 1008 dev/pci/hifn7751.c if (r == 0) {
r 1012 dev/pci/hifn7751.c r = -1;
r 1015 dev/pci/hifn7751.c r = 0;
r 1021 dev/pci/hifn7751.c return (r);
r 1030 dev/pci/hifn7751.c int r, cmdi, srci, dsti, resi;
r 1061 dev/pci/hifn7751.c for (r = 10000; r >= 0; r--) {
r 1072 dev/pci/hifn7751.c if (r == 0) {
r 1076 dev/pci/hifn7751.c r = -1;
r 1078 dev/pci/hifn7751.c r = 0;
r 1086 dev/pci/hifn7751.c return (r);
r 1645 dev/pci/hifn7751.c u_int32_t r = 0;
r 1649 dev/pci/hifn7751.c r |= HIFN_DMACSR_C_CTRL_DIS;
r 1654 dev/pci/hifn7751.c r |= HIFN_DMACSR_S_CTRL_DIS;
r 1659 dev/pci/hifn7751.c r |= HIFN_DMACSR_D_CTRL_DIS;
r 1663 dev/pci/hifn7751.c r |= HIFN_DMACSR_R_CTRL_DIS;
r 1666 dev/pci/hifn7751.c if (r)
r 1667 dev/pci/hifn7751.c WRITE_REG_1(sc, HIFN_1_DMA_CSR, r);
r 110 dev/pci/hifn7751var.h #define HIFN_RING_SYNC(sc, r, i, f) \
r 112 dev/pci/hifn7751var.h offsetof(struct hifn_dma, r[i]), sizeof(struct hifn_desc), (f))
r 768 dev/pci/if_bge.c struct bge_rx_bd *r;
r 816 dev/pci/if_bge.c r = &sc->bge_rdata->bge_rx_std_ring[i];
r 817 dev/pci/if_bge.c BGE_HOSTADDR(r->bge_addr, dmamap->dm_segs[0].ds_addr);
r 818 dev/pci/if_bge.c r->bge_flags = BGE_RXBDFLAG_END;
r 819 dev/pci/if_bge.c r->bge_len = m_new->m_len;
r 820 dev/pci/if_bge.c r->bge_idx = i;
r 839 dev/pci/if_bge.c struct bge_rx_bd *r;
r 873 dev/pci/if_bge.c r = &sc->bge_rdata->bge_rx_jumbo_ring[i];
r 875 dev/pci/if_bge.c BGE_HOSTADDR(r->bge_addr, BGE_JUMBO_DMA_ADDR(sc, m_new));
r 876 dev/pci/if_bge.c r->bge_flags = BGE_RXBDFLAG_END|BGE_RXBDFLAG_JUMBO_RING;
r 877 dev/pci/if_bge.c r->bge_len = m_new->m_len;
r 878 dev/pci/if_bge.c r->bge_idx = i;
r 647 dev/pci/if_cas.c cas_bitwait(struct cas_softc *sc, bus_space_handle_t h, int r,
r 654 dev/pci/if_cas.c reg = bus_space_read_4(sc->sc_memt, h, r);
r 1059 dev/pci/if_cas.c u_int32_t v, r;
r 1084 dev/pci/if_cas.c for (r = CAS_MAC_ADDR3; r < CAS_MAC_ADDR42; r += 4)
r 1085 dev/pci/if_cas.c bus_space_write_4(t, h, r, 0);
r 1101 dev/pci/if_cas.c for (r = CAS_MAC_HASH0; r <= CAS_MAC_HASH15; r += 4)
r 1102 dev/pci/if_cas.c bus_space_write_4(t, h, r, 0);
r 1320 dev/pci/if_cas.c int r = 0;
r 1327 dev/pci/if_cas.c r |= cas_pint(sc);
r 1331 dev/pci/if_cas.c r |= cas_eint(sc, status);
r 1334 dev/pci/if_cas.c r |= cas_tint(sc, status);
r 1337 dev/pci/if_cas.c r |= cas_rint(sc);
r 1371 dev/pci/if_cas.c return (r);
r 772 dev/pci/if_che.c che_read(struct cheg_softc *sc, bus_size_t r)
r 774 dev/pci/if_che.c bus_space_barrier(sc->sc_memt, sc->sc_memh, r, 4,
r 776 dev/pci/if_che.c return (bus_space_read_4(sc->sc_memt, sc->sc_memh, r));
r 780 dev/pci/if_che.c che_write(struct cheg_softc *sc, bus_size_t r, u_int32_t v)
r 782 dev/pci/if_che.c bus_space_write_4(sc->sc_memt, sc->sc_memh, r, v);
r 783 dev/pci/if_che.c bus_space_barrier(sc->sc_memt, sc->sc_memh, r, 4,
r 788 dev/pci/if_che.c che_waitfor(struct cheg_softc *sc, bus_size_t r, u_int32_t mask, int tries)
r 794 dev/pci/if_che.c v = che_read(sc, r);
r 165 dev/pci/if_dc_pci.c u_int32_t r, cptr;
r 170 dev/pci/if_dc_pci.c r = pci_conf_read(pc, pa->pa_tag, cptr) & 0xFF;
r 171 dev/pci/if_dc_pci.c if (r == 0x01) {
r 173 dev/pci/if_dc_pci.c r = pci_conf_read(pc, pa->pa_tag, cptr + PCI_PMCSR);
r 174 dev/pci/if_dc_pci.c if (r & DC_PSTATE_D3) {
r 185 dev/pci/if_dc_pci.c r & DC_PSTATE_D3);
r 186 dev/pci/if_dc_pci.c r &= 0xFFFFFFFC;
r 187 dev/pci/if_dc_pci.c pci_conf_write(pc, pa->pa_tag, cptr + PCI_PMCSR, r);
r 118 dev/pci/if_de.c #define PCI_CONF_WRITE(r, v) pci_conf_write(pa->pa_pc, pa->pa_tag, (r), (v))
r 119 dev/pci/if_de.c #define PCI_CONF_READ(r) pci_conf_read(pa->pa_pc, pa->pa_tag, (r))
r 1761 dev/pci/if_em.c int r;
r 1764 dev/pci/if_em.c r = bus_dmamap_create(dma->dma_tag, size, 1,
r 1766 dev/pci/if_em.c if (r != 0) {
r 1768 dev/pci/if_em.c "error %u\n", sc->sc_dv.dv_xname, r);
r 1772 dev/pci/if_em.c r = bus_dmamem_alloc(dma->dma_tag, size, PAGE_SIZE, 0, &dma->dma_seg,
r 1774 dev/pci/if_em.c if (r != 0) {
r 1777 dev/pci/if_em.c (unsigned long)size, r);
r 1781 dev/pci/if_em.c r = bus_dmamem_map(dma->dma_tag, &dma->dma_seg, dma->dma_nseg, size,
r 1783 dev/pci/if_em.c if (r != 0) {
r 1786 dev/pci/if_em.c (unsigned long)size, r);
r 1790 dev/pci/if_em.c r = bus_dmamap_load(sc->osdep.em_pa.pa_dmat, dma->dma_map,
r 1795 dev/pci/if_em.c if (r != 0) {
r 1797 dev/pci/if_em.c "error %u\n", sc->sc_dv.dv_xname, r);
r 1814 dev/pci/if_em.c return (r);
r 918 dev/pci/if_ipw.c uint32_t r, i;
r 920 dev/pci/if_ipw.c r = CSR_READ_4(sc, IPW_CSR_RX_READ_INDEX);
r 922 dev/pci/if_ipw.c for (i = (sc->rxcur + 1) % IPW_NRBD; i != r; i = (i + 1) % IPW_NRBD) {
r 966 dev/pci/if_ipw.c sc->rxcur = (r == 0) ? IPW_NRBD - 1 : r - 1;
r 1010 dev/pci/if_ipw.c uint32_t r, i;
r 1012 dev/pci/if_ipw.c r = CSR_READ_4(sc, IPW_CSR_TX_READ_INDEX);
r 1014 dev/pci/if_ipw.c for (i = (sc->txold + 1) % IPW_NTBD; i != r; i = (i + 1) % IPW_NTBD) {
r 1025 dev/pci/if_ipw.c sc->txold = (r == 0) ? IPW_NTBD - 1 : r - 1;
r 1037 dev/pci/if_ipw.c uint32_t r;
r 1039 dev/pci/if_ipw.c if ((r = CSR_READ_4(sc, IPW_CSR_INTR)) == 0 || r == 0xffffffff)
r 1045 dev/pci/if_ipw.c DPRINTFN(8, ("INTR!0x%08x\n", r));
r 1047 dev/pci/if_ipw.c if (r & (IPW_INTR_FATAL_ERROR | IPW_INTR_PARITY_ERROR)) {
r 1054 dev/pci/if_ipw.c if (r & IPW_INTR_FW_INIT_DONE)
r 1057 dev/pci/if_ipw.c if (r & IPW_INTR_RX_TRANSFER)
r 1060 dev/pci/if_ipw.c if (r & IPW_INTR_TX_TRANSFER)
r 1064 dev/pci/if_ipw.c CSR_WRITE_4(sc, IPW_CSR_INTR, r);
r 1168 dev/pci/if_iwi.c uint32_t r;
r 1170 dev/pci/if_iwi.c if ((r = CSR_READ_4(sc, IWI_CSR_INTR)) == 0 || r == 0xffffffff)
r 1177 dev/pci/if_iwi.c CSR_WRITE_4(sc, IWI_CSR_INTR, r);
r 1179 dev/pci/if_iwi.c if (r & IWI_INTR_FATAL_ERROR) {
r 1186 dev/pci/if_iwi.c if (r & IWI_INTR_FW_INITED)
r 1189 dev/pci/if_iwi.c if (r & IWI_INTR_RADIO_OFF) {
r 1196 dev/pci/if_iwi.c if (r & IWI_INTR_CMD_DONE) {
r 1205 dev/pci/if_iwi.c if (r & IWI_INTR_TX1_DONE)
r 1208 dev/pci/if_iwi.c if (r & IWI_INTR_TX2_DONE)
r 1211 dev/pci/if_iwi.c if (r & IWI_INTR_TX3_DONE)
r 1214 dev/pci/if_iwi.c if (r & IWI_INTR_TX4_DONE)
r 1217 dev/pci/if_iwi.c if (r & IWI_INTR_RX_DONE)
r 1075 dev/pci/if_ixgb.c int r;
r 1078 dev/pci/if_ixgb.c r = bus_dmamap_create(dma->dma_tag, size, 1,
r 1080 dev/pci/if_ixgb.c if (r != 0) {
r 1082 dev/pci/if_ixgb.c "error %u\n", sc->sc_dv.dv_xname, r);
r 1086 dev/pci/if_ixgb.c r = bus_dmamem_alloc(dma->dma_tag, size, PAGE_SIZE, 0, &dma->dma_seg,
r 1088 dev/pci/if_ixgb.c if (r != 0) {
r 1091 dev/pci/if_ixgb.c (unsigned long)size, r);
r 1095 dev/pci/if_ixgb.c r = bus_dmamem_map(dma->dma_tag, &dma->dma_seg, dma->dma_nseg, size,
r 1097 dev/pci/if_ixgb.c if (r != 0) {
r 1100 dev/pci/if_ixgb.c (unsigned long)size, r);
r 1104 dev/pci/if_ixgb.c r = bus_dmamap_load(sc->osdep.ixgb_pa.pa_dmat, dma->dma_map,
r 1109 dev/pci/if_ixgb.c if (r != 0) {
r 1111 dev/pci/if_ixgb.c "error %u\n", sc->sc_dv.dv_xname, r);
r 1128 dev/pci/if_ixgb.c return (r);
r 604 dev/pci/if_lmc_media.c av->r = 2;
r 606 dev/pci/if_lmc_media.c write_av9110(sc, av->n, av->m, av->v, av->x, av->r);
r 618 dev/pci/if_lmc_media.c write_av9110(sc, av->n, av->m, av->v, av->x, av->r);
r 729 dev/pci/if_lmc_media.c u_int32_t x, u_int32_t r)
r 736 dev/pci/if_lmc_media.c n, m, v, x, r);
r 765 dev/pci/if_lmc_media.c write_av9110_bit(sc, r >> i);
r 53 dev/pci/if_lmcioctl.h u_int32_t r;
r 511 dev/pci/if_msk.c struct msk_rx_desc *r;
r 545 dev/pci/if_msk.c r = c->sk_le;
r 547 dev/pci/if_msk.c r->sk_addr = htole32(dmamap->dm_segs[0].ds_addr +
r 550 dev/pci/if_msk.c r->sk_len = htole16(SK_JLEN);
r 551 dev/pci/if_msk.c r->sk_ctl = 0;
r 552 dev/pci/if_msk.c r->sk_opcode = SK_Y2_RXOPC_PACKET | SK_Y2_RXOPC_OWN;
r 552 dev/pci/if_myx.c myx_cmd(struct myx_softc *sc, u_int32_t cmd, struct myx_cmd *mc, u_int32_t *r)
r 625 dev/pci/if_myx.c if (r != NULL)
r 626 dev/pci/if_myx.c *r = data;
r 456 dev/pci/if_nfe.c uint32_t r;
r 458 dev/pci/if_nfe.c if ((r = NFE_READ(sc, NFE_IRQ_STATUS)) == 0)
r 460 dev/pci/if_nfe.c NFE_WRITE(sc, NFE_IRQ_STATUS, r);
r 462 dev/pci/if_nfe.c DPRINTFN(5, ("nfe_intr: interrupt register %x\n", r));
r 464 dev/pci/if_nfe.c if (r & NFE_IRQ_LINK) {
r 1164 dev/pci/if_nxe.c u_int32_t r;
r 1166 dev/pci/if_nxe.c r = nxe_crb_read(sc, NXE_1_SW_CMDPEG_STATE);
r 1167 dev/pci/if_nxe.c if (r == NXE_1_SW_CMDPEG_STATE_ACK)
r 1170 dev/pci/if_nxe.c if (r != NXE_1_SW_CMDPEG_STATE_DONE)
r 1432 dev/pci/if_nxe.c u_int32_t r;
r 1436 dev/pci/if_nxe.c r = nxe_crb_read(sc, NXE_1_SW_XG_STATE);
r 1437 dev/pci/if_nxe.c if (NXE_1_SW_XG_STATE_PORT(r, sc->sc_function) & NXE_1_SW_XG_STATE_UP)
r 1538 dev/pci/if_nxe.c u_int32_t r;
r 1566 dev/pci/if_nxe.c r = nxe_crb_read(sc, NXE_1_SW_BOOTLD_CONFIG);
r 1567 dev/pci/if_nxe.c if (r == 0x55555555) {
r 1568 dev/pci/if_nxe.c r = nxe_crb_read(sc, NXE_1_ROMUSB_SW_RESET);
r 1569 dev/pci/if_nxe.c if (r != NXE_1_ROMUSB_SW_RESET_BOOT) {
r 1880 dev/pci/if_nxe.c nxe_read(struct nxe_softc *sc, bus_size_t r)
r 1882 dev/pci/if_nxe.c bus_space_barrier(sc->sc_memt, sc->sc_memh, r, 4,
r 1884 dev/pci/if_nxe.c return (bus_space_read_4(sc->sc_memt, sc->sc_memh, r));
r 1888 dev/pci/if_nxe.c nxe_write(struct nxe_softc *sc, bus_size_t r, u_int32_t v)
r 1890 dev/pci/if_nxe.c bus_space_write_4(sc->sc_memt, sc->sc_memh, r, v);
r 1891 dev/pci/if_nxe.c bus_space_barrier(sc->sc_memt, sc->sc_memh, r, 4,
r 1896 dev/pci/if_nxe.c nxe_wait(struct nxe_softc *sc, bus_size_t r, u_int32_t m, u_int32_t v,
r 1899 dev/pci/if_nxe.c while ((nxe_read(sc, r) & m) != v) {
r 1926 dev/pci/if_nxe.c nxe_crb_read(struct nxe_softc *sc, bus_size_t r)
r 1928 dev/pci/if_nxe.c bus_space_barrier(sc->sc_memt, sc->sc_crbh, r, 4,
r 1930 dev/pci/if_nxe.c return (bus_space_read_4(sc->sc_memt, sc->sc_crbh, r));
r 1934 dev/pci/if_nxe.c nxe_crb_write(struct nxe_softc *sc, bus_size_t r, u_int32_t v)
r 1936 dev/pci/if_nxe.c bus_space_write_4(sc->sc_memt, sc->sc_crbh, r, v);
r 1937 dev/pci/if_nxe.c bus_space_barrier(sc->sc_memt, sc->sc_crbh, r, 4,
r 1942 dev/pci/if_nxe.c nxe_crb_wait(struct nxe_softc *sc, bus_size_t r, u_int32_t m, u_int32_t v,
r 1945 dev/pci/if_nxe.c while ((nxe_crb_read(sc, r) & m) != v) {
r 1974 dev/pci/if_nxe.c nxe_rom_read(struct nxe_softc *sc, u_int32_t r, u_int32_t *v)
r 1984 dev/pci/if_nxe.c nxe_crb_write(sc, NXE_1_ROM_ADDR, r);
r 2011 dev/pci/if_nxe.c nxe_rom_read_region(struct nxe_softc *sc, u_int32_t r, void *buf,
r 2024 dev/pci/if_nxe.c if (nxe_rom_read(sc, r, &databuf[i]) != 0)
r 2027 dev/pci/if_nxe.c r += sizeof(u_int32_t);
r 641 dev/pci/if_sk.c struct sk_rx_desc *r;
r 675 dev/pci/if_sk.c r = c->sk_desc;
r 677 dev/pci/if_sk.c r->sk_data_lo = htole32(dmamap->dm_segs[0].ds_addr +
r 680 dev/pci/if_sk.c r->sk_ctl = htole32(SK_JLEN | SK_RXSTAT);
r 1779 dev/pci/if_tht.c tht_read(struct tht_softc *sc, bus_size_t r)
r 1781 dev/pci/if_tht.c bus_space_barrier(sc->sc_thtc->sc_memt, sc->sc_memh, r, 4,
r 1783 dev/pci/if_tht.c return (bus_space_read_4(sc->sc_thtc->sc_memt, sc->sc_memh, r));
r 1787 dev/pci/if_tht.c tht_write(struct tht_softc *sc, bus_size_t r, u_int32_t v)
r 1789 dev/pci/if_tht.c bus_space_write_4(sc->sc_thtc->sc_memt, sc->sc_memh, r, v);
r 1790 dev/pci/if_tht.c bus_space_barrier(sc->sc_thtc->sc_memt, sc->sc_memh, r, 4,
r 1795 dev/pci/if_tht.c tht_write_region(struct tht_softc *sc, bus_size_t r, void *buf, size_t len)
r 1797 dev/pci/if_tht.c bus_space_write_raw_region_4(sc->sc_thtc->sc_memt, sc->sc_memh, r,
r 1799 dev/pci/if_tht.c bus_space_barrier(sc->sc_thtc->sc_memt, sc->sc_memh, r, len,
r 1804 dev/pci/if_tht.c tht_wait_eq(struct tht_softc *sc, bus_size_t r, u_int32_t m, u_int32_t v,
r 1807 dev/pci/if_tht.c while ((tht_read(sc, r) & m) != v) {
r 1819 dev/pci/if_tht.c tht_wait_ne(struct tht_softc *sc, bus_size_t r, u_int32_t m, u_int32_t v,
r 1822 dev/pci/if_tht.c while ((tht_read(sc, r) & m) == v) {
r 738 dev/pci/if_ti.c struct ti_rx_desc *r;
r 785 dev/pci/if_ti.c r = &sc->ti_rdata->ti_rx_std_ring[i];
r 786 dev/pci/if_ti.c TI_HOSTADDR(r->ti_addr) = dmamap->dm_segs[0].ds_addr;
r 787 dev/pci/if_ti.c r->ti_type = TI_BDTYPE_RECV_BD;
r 788 dev/pci/if_ti.c r->ti_flags = TI_BDFLAG_IP_CKSUM;
r 789 dev/pci/if_ti.c r->ti_len = dmamap->dm_segs[0].ds_len;
r 790 dev/pci/if_ti.c r->ti_idx = i;
r 809 dev/pci/if_ti.c struct ti_rx_desc *r;
r 847 dev/pci/if_ti.c r = &sc->ti_rdata->ti_rx_mini_ring[i];
r 849 dev/pci/if_ti.c TI_HOSTADDR(r->ti_addr) = dmamap->dm_segs[0].ds_addr;
r 850 dev/pci/if_ti.c r->ti_type = TI_BDTYPE_RECV_BD;
r 851 dev/pci/if_ti.c r->ti_flags = TI_BDFLAG_MINI_RING | TI_BDFLAG_IP_CKSUM;
r 852 dev/pci/if_ti.c r->ti_len = dmamap->dm_segs[0].ds_len;
r 853 dev/pci/if_ti.c r->ti_idx = i;
r 866 dev/pci/if_ti.c struct ti_rx_desc *r;
r 899 dev/pci/if_ti.c r = &sc->ti_rdata->ti_rx_jumbo_ring[i];
r 901 dev/pci/if_ti.c TI_HOSTADDR(r->ti_addr) = TI_JUMBO_DMA_ADDR(sc, m_new);
r 902 dev/pci/if_ti.c r->ti_type = TI_BDTYPE_RECV_JUMBO_BD;
r 903 dev/pci/if_ti.c r->ti_flags = TI_BDFLAG_JUMBO_RING | TI_BDFLAG_IP_CKSUM;
r 904 dev/pci/if_ti.c r->ti_len = m_new->m_len;
r 905 dev/pci/if_ti.c r->ti_idx = i;
r 1115 dev/pci/if_tl.c int r = 0, total_len = 0;
r 1128 dev/pci/if_tl.c r++;
r 1180 dev/pci/if_tl.c return(r);
r 1195 dev/pci/if_tl.c int r;
r 1202 dev/pci/if_tl.c r = tl_intvec_rxeof(xsc, type);
r 1203 dev/pci/if_tl.c CMD_PUT(sc, TL_CMD_ACK | r | (type & ~(0x00100000)));
r 1204 dev/pci/if_tl.c r = 1;
r 1208 dev/pci/if_tl.c r |= (TL_CMD_GO|TL_CMD_RT);
r 1209 dev/pci/if_tl.c return(r);
r 1217 dev/pci/if_tl.c int r = 0;
r 1232 dev/pci/if_tl.c r++;
r 1242 dev/pci/if_tl.c return(r);
r 1342 dev/pci/if_tl.c int r = 0;
r 1362 dev/pci/if_tl.c r = 0;
r 1365 dev/pci/if_tl.c r = tl_intvec_txeof((void *)sc, type);
r 1368 dev/pci/if_tl.c r = tl_intvec_txeoc((void *)sc, type);
r 1372 dev/pci/if_tl.c r = 1;
r 1375 dev/pci/if_tl.c r = tl_intvec_rxeof((void *)sc, type);
r 1379 dev/pci/if_tl.c r = 1;
r 1383 dev/pci/if_tl.c r = tl_intvec_adchk((void *)sc, type);
r 1385 dev/pci/if_tl.c r = tl_intvec_netsts((void *)sc, type);
r 1388 dev/pci/if_tl.c r = tl_intvec_rxeoc((void *)sc, type);
r 1396 dev/pci/if_tl.c if (r) {
r 1397 dev/pci/if_tl.c CMD_PUT(sc, TL_CMD_ACK | r | type);
r 1403 dev/pci/if_tl.c return r;
r 344 dev/pci/if_txp.c u_int32_t r;
r 353 dev/pci/if_txp.c r = READ_REG(sc, TXP_A2H_0);
r 354 dev/pci/if_txp.c if (r == STAT_WAITING_FOR_HOST_REQUEST)
r 359 dev/pci/if_txp.c if (r != STAT_WAITING_FOR_HOST_REQUEST) {
r 373 dev/pci/if_txp.c u_int32_t r, i, ier, imr;
r 385 dev/pci/if_txp.c r = READ_REG(sc, TXP_A2H_0);
r 386 dev/pci/if_txp.c if (r == STAT_WAITING_FOR_HOST_REQUEST)
r 390 dev/pci/if_txp.c if (r != STAT_WAITING_FOR_HOST_REQUEST) {
r 434 dev/pci/if_txp.c r = READ_REG(sc, TXP_A2H_0);
r 435 dev/pci/if_txp.c if (r == STAT_WAITING_FOR_BOOT)
r 439 dev/pci/if_txp.c if (r != STAT_WAITING_FOR_BOOT) {
r 459 dev/pci/if_txp.c u_int32_t i, r;
r 462 dev/pci/if_txp.c r = READ_REG(sc, TXP_ISR);
r 463 dev/pci/if_txp.c if (r & TXP_INT_A2H_0)
r 468 dev/pci/if_txp.c if (!(r & TXP_INT_A2H_0)) {
r 475 dev/pci/if_txp.c r = READ_REG(sc, TXP_A2H_0);
r 476 dev/pci/if_txp.c if (r != STAT_WAITING_FOR_SEGMENT) {
r 619 dev/pci/if_txp.c txp_rx_reclaim(sc, r, dma)
r 621 dev/pci/if_txp.c struct txp_rx_ring *r;
r 631 dev/pci/if_txp.c roff = letoh32(*r->r_roff);
r 632 dev/pci/if_txp.c woff = letoh32(*r->r_woff);
r 634 dev/pci/if_txp.c rxd = r->r_desc + idx;
r 753 dev/pci/if_txp.c rxd = r->r_desc;
r 758 dev/pci/if_txp.c woff = letoh32(*r->r_woff);
r 761 dev/pci/if_txp.c *r->r_roff = htole32(woff);
r 847 dev/pci/if_txp.c txp_tx_reclaim(sc, r, dma)
r 849 dev/pci/if_txp.c struct txp_tx_ring *r;
r 853 dev/pci/if_txp.c u_int32_t idx = TXP_OFFSET2IDX(letoh32(*(r->r_off)));
r 854 dev/pci/if_txp.c u_int32_t cons = r->r_cons, cnt = r->r_cnt;
r 855 dev/pci/if_txp.c struct txp_tx_desc *txd = r->r_desc + cons;
r 884 dev/pci/if_txp.c txd = r->r_desc;
r 895 dev/pci/if_txp.c r->r_cons = cons;
r 896 dev/pci/if_txp.c r->r_cnt = cnt;
r 925 dev/pci/if_txp.c u_int32_t r;
r 1122 dev/pci/if_txp.c r = READ_REG(sc, TXP_A2H_0);
r 1123 dev/pci/if_txp.c if (r == STAT_WAITING_FOR_BOOT)
r 1127 dev/pci/if_txp.c if (r != STAT_WAITING_FOR_BOOT) {
r 1137 dev/pci/if_txp.c r = READ_REG(sc, TXP_A2H_0);
r 1138 dev/pci/if_txp.c if (r == STAT_RUNNING)
r 1142 dev/pci/if_txp.c if (r != STAT_RUNNING) {
r 1190 dev/pci/if_txp.c int r;
r 1192 dev/pci/if_txp.c if ((r = bus_dmamem_alloc(sc->sc_dmat, size, PAGE_SIZE, 0,
r 1196 dev/pci/if_txp.c if ((r = bus_dmamem_map(sc->sc_dmat, &dma->dma_seg, dma->dma_nseg,
r 1200 dev/pci/if_txp.c if ((r = bus_dmamap_create(sc->sc_dmat, size, 1, size, 0,
r 1204 dev/pci/if_txp.c if ((r = bus_dmamap_load(sc->sc_dmat, dma->dma_map, dma->dma_vaddr,
r 1218 dev/pci/if_txp.c return (r);
r 1381 dev/pci/if_txp.c struct txp_tx_ring *r = &sc->sc_txhir;
r 1395 dev/pci/if_txp.c prod = r->r_prod;
r 1396 dev/pci/if_txp.c cnt = r->r_cnt;
r 1435 dev/pci/if_txp.c txd = r->r_desc + prod;
r 1474 dev/pci/if_txp.c fxd = (struct txp_frag_desc *)(r->r_desc + prod);
r 1501 dev/pci/if_txp.c fxd = (struct txp_frag_desc *)r->r_desc;
r 1545 dev/pci/if_txp.c WRITE_REG(sc, r->r_reg, TXP_IDX2OFFSET(prod));
r 1548 dev/pci/if_txp.c r->r_prod = prod;
r 1549 dev/pci/if_txp.c r->r_cnt = cnt;
r 1556 dev/pci/if_txp.c r->r_prod = firstprod;
r 1557 dev/pci/if_txp.c r->r_cnt = firstcnt;
r 820 dev/pci/if_vge.c struct vge_rx_desc *r;
r 850 dev/pci/if_vge.c r = &sc->vge_ldata.vge_rx_list[idx];
r 852 dev/pci/if_vge.c if (letoh32(r->vge_sts) & VGE_RDSTS_OWN) {
r 857 dev/pci/if_vge.c r->vge_buflen = htole16(VGE_BUFLEN(rxmap->dm_segs[0].ds_len) | VGE_RXDESC_I);
r 858 dev/pci/if_vge.c r->vge_addrlo = htole32(VGE_ADDR_LO(rxmap->dm_segs[0].ds_addr));
r 859 dev/pci/if_vge.c r->vge_addrhi = htole16(VGE_ADDR_HI(rxmap->dm_segs[0].ds_addr) & 0xFFFF);
r 860 dev/pci/if_vge.c r->vge_sts = htole32(0);
r 861 dev/pci/if_vge.c r->vge_ctl = htole32(0);
r 1304 dev/pci/if_vic.c vic_read(struct vic_softc *sc, bus_size_t r)
r 1306 dev/pci/if_vic.c bus_space_barrier(sc->sc_iot, sc->sc_ioh, r, 4,
r 1308 dev/pci/if_vic.c return (bus_space_read_4(sc->sc_iot, sc->sc_ioh, r));
r 1312 dev/pci/if_vic.c vic_write(struct vic_softc *sc, bus_size_t r, u_int32_t v)
r 1314 dev/pci/if_vic.c bus_space_write_4(sc->sc_iot, sc->sc_ioh, r, v);
r 1315 dev/pci/if_vic.c bus_space_barrier(sc->sc_iot, sc->sc_ioh, r, 4,
r 1182 dev/pci/if_wb.c int r = 0;
r 1188 dev/pci/if_wb.c return (r);
r 1202 dev/pci/if_wb.c r = 1;
r 1258 dev/pci/if_wb.c return (r);
r 1492 dev/pci/if_wpi.c uint32_t r;
r 1494 dev/pci/if_wpi.c r = WPI_READ(sc, WPI_INTR);
r 1495 dev/pci/if_wpi.c if (r == 0 || r == 0xffffffff)
r 1498 dev/pci/if_wpi.c DPRINTFN(6, ("interrupt reg %x\n", r));
r 1503 dev/pci/if_wpi.c WPI_WRITE(sc, WPI_INTR, r);
r 1505 dev/pci/if_wpi.c if (r & (WPI_SW_ERROR | WPI_HW_ERROR)) {
r 1513 dev/pci/if_wpi.c if (r & WPI_RX_INTR)
r 1516 dev/pci/if_wpi.c if (r & WPI_ALIVE_INTR) /* firmware initialized */
r 86 dev/pci/ises.c #define READ_REG(sc,r) \
r 87 dev/pci/ises.c bus_space_read_4((sc)->sc_memt, (sc)->sc_memh,r)
r 583 dev/pci/ises.c u_int32_t oqs, r, d;
r 586 dev/pci/ises.c r = READ_REG(sc, ISES_A_OQS);
r 587 dev/pci/ises.c if (r > 1)
r 588 dev/pci/ises.c DPRINTF(("%s:process_oqueue: OQS=%d\n", dv, r));
r 593 dev/pci/ises.c r = READ_REG(sc, ISES_A_OQD);
r 594 dev/pci/ises.c len = (r >> 24);
r 595 dev/pci/ises.c cmd = (r >> 16) & 0xff;
r 596 dev/pci/ises.c r = r & 0xffff;
r 609 dev/pci/ises.c if (r) {
r 612 dev/pci/ises.c cmd, (r & ISES_RC_MASK)));
r 1515 dev/pci/ises.c u_int32_t cmd, r;
r 1523 dev/pci/ises.c r = 8; /* 8 * 32 = 256 bits */
r 1525 dev/pci/ises.c if (ises_queue_cmd(sc, cmd, &r, NULL))
r 1536 dev/pci/ises.c for (i = 0; i <= r; i++)
r 1557 dev/pci/ises.c r = ISES_WPR;
r 1562 dev/pci/ises.c ises_queue_cmd(sc, cmd, &r, NULL);
r 1567 dev/pci/ises.c for (r = ISES_WPR; r--;)
r 1612 dev/pci/ises.c u_int32_t r;
r 1615 dev/pci/ises.c r = ISES_MKCMD(ISES_CMD_CHIP_ID, 0);
r 1616 dev/pci/ises.c WRITE_REG(sc, ISES_A_IQD, r);
r 1625 dev/pci/ises.c r = READ_REG(sc, ISES_A_OQD);
r 1628 dev/pci/ises.c if (((r >> 16) & 0xff) != ISES_CMD_CHIP_ID ||
r 1629 dev/pci/ises.c ((r >> 24) & 0xff) != 3 || (r & ISES_RC_MASK) != ISES_RC_SUCCESS) {
r 1630 dev/pci/ises.c if ((r & ISES_RC_MASK) == ISES_RC_SUCCESS)
r 1631 dev/pci/ises.c for (i = ((r >> 24) & 0xff); i; i--)
r 1633 dev/pci/ises.c r = 0;
r 1637 dev/pci/ises.c r = READ_REG(sc, ISES_A_OQD); /* read version */
r 1643 dev/pci/ises.c return (r);
r 174 dev/pci/lofn.c int r = 0, i;
r 180 dev/pci/lofn.c r = 1;
r 189 dev/pci/lofn.c r = 1;
r 199 dev/pci/lofn.c r = 1;
r 209 dev/pci/lofn.c return (r);
r 104 dev/pci/lofnreg.h #define LOFN_REGADDR(win,r,idx) \
r 106 dev/pci/lofnreg.h (((r) << LOFN_REG_SHIFT) & LOFN_REG_MASK) | \
r 109 dev/pci/lofnreg.h #define LOFN_LENADDR(win,r) \
r 110 dev/pci/lofnreg.h ((win) | (((r) << 2) + LOFN_REL_LEN))
r 57 dev/pci/lofnvar.h #define READ_REG(sc,r) \
r 58 dev/pci/lofnvar.h bus_space_read_4((sc)->sc_st, (sc)->sc_sh, (r))
r 59 dev/pci/lofnvar.h #define READ_REG_0(sc,r) READ_REG((sc), (r) | LOFN_WIN_0)
r 60 dev/pci/lofnvar.h #define READ_REG_1(sc,r) READ_REG((sc), (r) | LOFN_WIN_1)
r 61 dev/pci/lofnvar.h #define READ_REG_2(sc,r) READ_REG((sc), (r) | LOFN_WIN_2)
r 62 dev/pci/lofnvar.h #define READ_REG_3(sc,r) READ_REG((sc), (r) | LOFN_WIN_3)
r 64 dev/pci/lofnvar.h #define WRITE_REG(sc,r,v) \
r 65 dev/pci/lofnvar.h bus_space_write_4((sc)->sc_st, (sc)->sc_sh, (r), (v))
r 66 dev/pci/lofnvar.h #define WRITE_REG_0(sc,r,v) WRITE_REG((sc), (r) | LOFN_WIN_0, (v))
r 67 dev/pci/lofnvar.h #define WRITE_REG_1(sc,r,v) WRITE_REG((sc), (r) | LOFN_WIN_1, (v))
r 68 dev/pci/lofnvar.h #define WRITE_REG_2(sc,r,v) WRITE_REG((sc), (r) | LOFN_WIN_2, (v))
r 69 dev/pci/lofnvar.h #define WRITE_REG_3(sc,r,v) WRITE_REG((sc), (r) | LOFN_WIN_3, (v))
r 56 dev/pci/mpi_pci.c #define PREAD(s, r) pci_conf_read((s)->psc_pc, (s)->psc_tag, (r))
r 57 dev/pci/mpi_pci.c #define PWRITE(s, r, v) pci_conf_write((s)->psc_pc, (s)->psc_tag, (r), (v))
r 96 dev/pci/mpi_pci.c int r;
r 107 dev/pci/mpi_pci.c for (r = PCI_MAPREG_START; r < PCI_MAPREG_END; r += sizeof(memtype)) {
r 108 dev/pci/mpi_pci.c memtype = pci_mapreg_type(psc->psc_pc, psc->psc_tag, r);
r 112 dev/pci/mpi_pci.c if (r >= PCI_MAPREG_END) {
r 117 dev/pci/mpi_pci.c if (pci_mapreg_map(pa, r, memtype, 0, &sc->sc_iot, &sc->sc_ioh,
r 202 dev/pci/noct.c int r = 0;
r 207 dev/pci/noct.c r = 1;
r 212 dev/pci/noct.c r = 1;
r 217 dev/pci/noct.c r = 1;
r 221 dev/pci/noct.c return (r);
r 305 dev/pci/noct.c u_int32_t r;
r 312 dev/pci/noct.c r = NOCT_READ_4(sc, NOCT_PKH_IER);
r 313 dev/pci/noct.c r &= ~(PKHIER_CMDSI | PKHIER_SKSWR | PKHIER_SKSOFF | PKHIER_PKHLEN |
r 319 dev/pci/noct.c NOCT_WRITE_4(sc, NOCT_PKH_IER, r);
r 322 dev/pci/noct.c r = NOCT_READ_4(sc, NOCT_PKH_CSR);
r 323 dev/pci/noct.c r &= ~PKHCSR_PKH_ENA;
r 324 dev/pci/noct.c NOCT_WRITE_4(sc, NOCT_PKH_CSR, r);
r 326 dev/pci/noct.c r = NOCT_READ_4(sc, NOCT_PKH_CSR);
r 327 dev/pci/noct.c if ((r & PKHCSR_PKH_BUSY) == 0)
r 332 dev/pci/noct.c r |= PKHCSR_CMDSI | PKHCSR_SKSWR | PKHCSR_SKSOFF | PKHCSR_PKHLEN |
r 338 dev/pci/noct.c NOCT_WRITE_4(sc, NOCT_PKH_CSR, r);
r 541 dev/pci/noct.c u_int32_t r;
r 548 dev/pci/noct.c r = NOCT_READ_4(sc, NOCT_RNG_CSR);
r 549 dev/pci/noct.c r &= ~(RNGCSR_INT_KEY | RNGCSR_INT_DUP |
r 551 dev/pci/noct.c NOCT_WRITE_4(sc, NOCT_RNG_CSR, r);
r 554 dev/pci/noct.c r = NOCT_READ_4(sc, NOCT_RNG_CSR);
r 555 dev/pci/noct.c r &= ~(RNGCSR_XFER_ENABLE | RNGCSR_INT_KEY | RNGCSR_INT_BUS |
r 557 dev/pci/noct.c NOCT_WRITE_4(sc, NOCT_RNG_CSR, r);
r 560 dev/pci/noct.c r = NOCT_READ_4(sc, NOCT_RNG_CSR);
r 561 dev/pci/noct.c if ((r & RNGCSR_XFER_BUSY) == 0)
r 576 dev/pci/noct.c u_int32_t r;
r 593 dev/pci/noct.c r = RNGCSR_XFER_ENABLE | RNGCSR_INT_ACCESS |
r 595 dev/pci/noct.c NOCT_WRITE_4(sc, NOCT_RNG_CSR, r);
r 598 dev/pci/noct.c r = NOCT_READ_4(sc, NOCT_BRDG_CTL);
r 599 dev/pci/noct.c r |= BRDGCTL_RNIRQ_ENA;
r 600 dev/pci/noct.c NOCT_WRITE_4(sc, NOCT_BRDG_CTL, r);
r 738 dev/pci/noct.c u_int32_t r;
r 745 dev/pci/noct.c r = NOCT_READ_4(sc, NOCT_EA_IER);
r 746 dev/pci/noct.c r &= ~(EAIER_QALIGN | EAIER_CMDCMPL | EAIER_OPERR | EAIER_CMDREAD |
r 750 dev/pci/noct.c NOCT_WRITE_4(sc, NOCT_EA_IER, r);
r 753 dev/pci/noct.c r = NOCT_READ_4(sc, NOCT_EA_CSR);
r 754 dev/pci/noct.c r &= ~EACSR_ENABLE;
r 755 dev/pci/noct.c NOCT_WRITE_4(sc, NOCT_EA_CSR, r);
r 757 dev/pci/noct.c r = NOCT_READ_4(sc, NOCT_EA_CSR);
r 758 dev/pci/noct.c if ((r & EACSR_BUSY) == 0)
r 763 dev/pci/noct.c r = NOCT_READ_4(sc, NOCT_EA_CSR);
r 764 dev/pci/noct.c r |= EACSR_QALIGN | EACSR_CMDCMPL | EACSR_OPERR | EACSR_CMDREAD |
r 768 dev/pci/noct.c NOCT_WRITE_4(sc, NOCT_EA_CSR, r);
r 1475 dev/pci/noct.c cmd->cache.r = htole32(sc->sc_pkh_bnsw[midx].bn_off);
r 1507 dev/pci/noct.c cmd->arith.r = htole32(sc->sc_pkh_bnsw[rmodidx].bn_off);
r 1534 dev/pci/noct.c cmd->cache.r = htole32(sc->sc_pkh_bnsw[aidx].bn_off);
r 1561 dev/pci/noct.c cmd->arith.r = htole32(sc->sc_pkh_bnsw[aidx].bn_off);
r 1591 dev/pci/noct.c cmd->cache.r = htole32(sc->sc_pkh_bnsw[bidx].bn_off);
r 1699 dev/pci/noct.c cmd->cache.r = htole32(off);
r 216 dev/pci/noctreg.h volatile u_int32_t r; /* r offset */
r 227 dev/pci/noctreg.h volatile u_int32_t r; /* r offset */
r 100 dev/pci/noctvar.h #define NOCT_READ_4(sc,r) noct_read_4((sc), (r))
r 101 dev/pci/noctvar.h #define NOCT_WRITE_4(sc,r,v) noct_write_4((sc), (r), (v))
r 102 dev/pci/noctvar.h #define NOCT_READ_8(sc,r) noct_read_8((sc), (r))
r 103 dev/pci/noctvar.h #define NOCT_WRITE_8(sc,r,v) noct_write_8((sc), (r), (v))
r 187 dev/pci/nofn.c int r = 0;
r 192 dev/pci/nofn.c r |= nofn_rng_intr(sc);
r 198 dev/pci/nofn.c r = 1;
r 209 dev/pci/nofn.c return (r);
r 249 dev/pci/nofn.c int r;
r 251 dev/pci/nofn.c r = nofn_rng_read(sc);
r 252 dev/pci/nofn.c if (r == 0)
r 262 dev/pci/nofn.c int s, r;
r 265 dev/pci/nofn.c r = nofn_rng_read(sc);
r 266 dev/pci/nofn.c if (r != -1)
r 275 dev/pci/nofn.c u_int32_t r;
r 278 dev/pci/nofn.c r = PK_READ_4(sc, NOFN_PK_CFG2);
r 279 dev/pci/nofn.c r &= PK_CFG2_ALU_ENA; /* preserve */
r 280 dev/pci/nofn.c PK_WRITE_4(sc, NOFN_PK_CFG2, r);
r 291 dev/pci/nofn.c r = PK_READ_4(sc, NOFN_PK_IER);
r 292 dev/pci/nofn.c r &= PK_IER_DONE; /* preserve */
r 293 dev/pci/nofn.c PK_WRITE_4(sc, NOFN_PK_IER, r);
r 311 dev/pci/nofn.c u_int32_t r;
r 317 dev/pci/nofn.c r = PK_READ_4(sc, NOFN_PK_CFG2);
r 318 dev/pci/nofn.c r &= PK_CFG2_ALU_ENA; /* preserve */
r 319 dev/pci/nofn.c r |= PK_CFG2_RNG_ENA;
r 320 dev/pci/nofn.c PK_WRITE_4(sc, NOFN_PK_CFG2, r);
r 336 dev/pci/nofn.c r = PK_READ_4(sc, NOFN_PK_IER);
r 337 dev/pci/nofn.c r &= PK_IER_DONE; /* preserve */
r 338 dev/pci/nofn.c r |= PK_IER_RRDY;
r 339 dev/pci/nofn.c PK_WRITE_4(sc, NOFN_PK_IER, r);
r 355 dev/pci/nofn.c u_int32_t r;
r 371 dev/pci/nofn.c r = PK_READ_4(sc, NOFN_PK_CFG2);
r 372 dev/pci/nofn.c r &= PK_CFG2_RNG_ENA; /* preserve */
r 373 dev/pci/nofn.c r |= PK_CFG2_ALU_ENA;
r 374 dev/pci/nofn.c PK_WRITE_4(sc, NOFN_PK_CFG2, r);
r 385 dev/pci/nofn.c u_int32_t r;
r 390 dev/pci/nofn.c r = PK_READ_4(sc, NOFN_PK_IER);
r 391 dev/pci/nofn.c r &= PK_IER_RRDY; /* preserve */
r 392 dev/pci/nofn.c PK_WRITE_4(sc, NOFN_PK_IER, r);
r 406 dev/pci/nofn.c r = PK_READ_4(sc, NOFN_PK_IER);
r 407 dev/pci/nofn.c r &= PK_IER_RRDY; /* preserve */
r 408 dev/pci/nofn.c r |= PK_IER_DONE;
r 409 dev/pci/nofn.c PK_WRITE_4(sc, NOFN_PK_IER, r);
r 234 dev/pci/nofnreg.h #define NOFN_PK_REGADDR(win,r,i) \
r 235 dev/pci/nofnreg.h ((win) | (((r) & 0xf) << 7) | (((i) & 0x1f) << 2))
r 237 dev/pci/nofnreg.h #define NOFN_PK_LENADDR(r) (0x1000 + ((r) << 2))
r 62 dev/pci/nofnvar.h #define REG_WRITE_4(sc,r,v) \
r 63 dev/pci/nofnvar.h bus_space_write_4((sc)->sc_st, (sc)->sc_sh, (r), (v))
r 64 dev/pci/nofnvar.h #define REG_READ_4(sc,r) \
r 65 dev/pci/nofnvar.h bus_space_read_4((sc)->sc_st, (sc)->sc_sh, (r))
r 67 dev/pci/nofnvar.h #define PK_WRITE_4(sc,r,v) \
r 68 dev/pci/nofnvar.h bus_space_write_4((sc)->sc_pk_t, (sc)->sc_pk_h, (r), (v))
r 69 dev/pci/nofnvar.h #define PK_READ_4(sc,r) \
r 70 dev/pci/nofnvar.h bus_space_read_4((sc)->sc_pk_t, (sc)->sc_pk_h, (r))
r 296 dev/pci/nviic.c nviic_read(struct nviic_controller *nc, bus_size_t r)
r 300 dev/pci/nviic.c bus_space_barrier(sc->sc_iot, nc->nc_ioh, r, 1,
r 302 dev/pci/nviic.c return (bus_space_read_1(sc->sc_iot, nc->nc_ioh, r));
r 306 dev/pci/nviic.c nviic_write(struct nviic_controller *nc, bus_size_t r, u_int8_t v)
r 310 dev/pci/nviic.c bus_space_write_1(sc->sc_iot, nc->nc_ioh, r, v);
r 311 dev/pci/nviic.c bus_space_barrier(sc->sc_iot, nc->nc_ioh, r, 1,
r 184 dev/pci/ohci_pci.c usbd_status r;
r 191 dev/pci/ohci_pci.c r = ohci_init(&sc->sc);
r 192 dev/pci/ohci_pci.c if (r != USBD_NORMAL_COMPLETION) {
r 194 dev/pci/ohci_pci.c sc->sc.sc_bus.bdev.dv_xname, r);
r 60 dev/pci/pciide_pdc202xx_reg.h #define PDC2xx_TIM_SET_PA(r, x) (((r) & 0xfffffff0) | ((x) & 0xf))
r 61 dev/pci/pciide_pdc202xx_reg.h #define PDC2xx_TIM_SET_PB(r, x) (((r) & 0xffffe0ff) | (((x) & 0x1f) << 8))
r 62 dev/pci/pciide_pdc202xx_reg.h #define PDC2xx_TIM_SET_MB(r, x) (((r) & 0xffff1fff) | (((x) & 0x7) << 13))
r 63 dev/pci/pciide_pdc202xx_reg.h #define PDC2xx_TIM_SET_MC(r, x) (((r) & 0xfff0ffff) | (((x) & 0xf) << 16))
r 84 dev/pci/pciide_pdc202xx_reg.h #define PDC2xx_SCR_SET_GEN(r,x) (((r) & 0xffffff00) | ((x) & 0xff))
r 89 dev/pci/pciide_pdc202xx_reg.h #define PDC2xx_SCR_SET_I2C(r,x) (((r) & 0xfff0ffff) | (((x) & 0xf) << 16))
r 90 dev/pci/pciide_pdc202xx_reg.h #define PDC2xx_SCR_SET_POLL(r,x) (((r) & 0xff0fffff) | (((x) & 0xf) << 20))
r 130 dev/pci/safe.c #define READ_REG(sc,r) \
r 131 dev/pci/safe.c bus_space_read_4((sc)->sc_st, (sc)->sc_sh, (r))
r 1100 dev/pci/safe.c int r;
r 1102 dev/pci/safe.c if ((r = bus_dmamem_alloc(sc->sc_dmat, size, PAGE_SIZE, 0,
r 1106 dev/pci/safe.c if ((r = bus_dmamem_map(sc->sc_dmat, &dma->dma_seg, dma->dma_nseg,
r 1110 dev/pci/safe.c if ((r = bus_dmamap_create(sc->sc_dmat, size, 1, size, 0,
r 1114 dev/pci/safe.c if ((r = bus_dmamap_load(sc->sc_dmat, dma->dma_map, dma->dma_vaddr,
r 1130 dev/pci/safe.c return (r);
r 662 dev/pci/sv.c sv_set_params(addr, setmode, usemode, p, r)
r 665 dev/pci/sv.c struct audio_params *p, *r;
r 719 dev/pci/sv.c r->sw_code = rswcode;
r 750 dev/pci/sv.c int goal_f_out = 512 * r->sample_rate;
r 772 dev/pci/sv.c error = pll_sample - r->sample_rate;
r 114 dev/pci/ubsec.c #define READ_REG(sc,r) \
r 115 dev/pci/ubsec.c bus_space_read_4((sc)->sc_st, (sc)->sc_sh, (r))
r 1513 dev/pci/ubsec.c int r;
r 1515 dev/pci/ubsec.c if ((r = bus_dmamem_alloc(sc->sc_dmat, size, PAGE_SIZE, 0,
r 1519 dev/pci/ubsec.c if ((r = bus_dmamem_map(sc->sc_dmat, &dma->dma_seg, dma->dma_nseg,
r 1523 dev/pci/ubsec.c if ((r = bus_dmamap_create(sc->sc_dmat, size, 1, size, 0,
r 1527 dev/pci/ubsec.c if ((r = bus_dmamap_load(sc->sc_dmat, dma->dma_map, dma->dma_vaddr,
r 1543 dev/pci/ubsec.c return (r);
r 1760 dev/pci/ubsec.c int r;
r 1778 dev/pci/ubsec.c r = ubsec_kprocess_modexp_hw(sc, krp);
r 1780 dev/pci/ubsec.c r = ubsec_kprocess_modexp_sw(sc, krp);
r 1783 dev/pci/ubsec.c r = ubsec_kprocess_rsapriv(sc, krp);
r 1790 dev/pci/ubsec.c r = 0;
r 1792 dev/pci/ubsec.c return (r);
r 195 dev/pci/uhci_pci.c usbd_status r;
r 201 dev/pci/uhci_pci.c r = uhci_init(&sc->sc);
r 202 dev/pci/uhci_pci.c if (r != USBD_NORMAL_COMPLETION) {
r 203 dev/pci/uhci_pci.c printf("%s: init failed, error=%d\n", devname, r);
r 104 dev/pci/yds.c #define YWRITE1(sc, r, x) bus_space_write_1((sc)->memt, (sc)->memh, (r), (x))
r 105 dev/pci/yds.c #define YWRITE2(sc, r, x) bus_space_write_2((sc)->memt, (sc)->memh, (r), (x))
r 106 dev/pci/yds.c #define YWRITE4(sc, r, x) bus_space_write_4((sc)->memt, (sc)->memh, (r), (x))
r 107 dev/pci/yds.c #define YREAD1(sc, r) bus_space_read_1((sc)->memt, (sc)->memh, (r))
r 108 dev/pci/yds.c #define YREAD2(sc, r) bus_space_read_2((sc)->memt, (sc)->memh, (r))
r 109 dev/pci/yds.c #define YREAD4(sc, r) bus_space_read_4((sc)->memt, (sc)->memh, (r))
r 112 dev/pci/yds.c u_int16_t YREAD2(struct yds_softc *sc,bus_size_t r);
r 113 dev/pci/yds.c u_int32_t YREAD4(struct yds_softc *sc,bus_size_t r);
r 114 dev/pci/yds.c void YWRITE1(struct yds_softc *sc,bus_size_t r,u_int8_t x);
r 115 dev/pci/yds.c void YWRITE2(struct yds_softc *sc,bus_size_t r,u_int16_t x);
r 116 dev/pci/yds.c void YWRITE4(struct yds_softc *sc,bus_size_t r,u_int32_t x);
r 118 dev/pci/yds.c u_int16_t YREAD2(struct yds_softc *sc,bus_size_t r)
r 120 dev/pci/yds.c DPRINTFN(5, (" YREAD2(0x%lX)\n",(unsigned long)r));
r 121 dev/pci/yds.c return bus_space_read_2(sc->memt,sc->memh,r);
r 123 dev/pci/yds.c u_int32_t YREAD4(struct yds_softc *sc,bus_size_t r)
r 125 dev/pci/yds.c DPRINTFN(5, (" YREAD4(0x%lX)\n",(unsigned long)r));
r 126 dev/pci/yds.c return bus_space_read_4(sc->memt,sc->memh,r);
r 128 dev/pci/yds.c void YWRITE1(struct yds_softc *sc,bus_size_t r,u_int8_t x)
r 130 dev/pci/yds.c DPRINTFN(5, (" YWRITE1(0x%lX,0x%lX)\n",(unsigned long)r,(unsigned long)x));
r 131 dev/pci/yds.c bus_space_write_1(sc->memt,sc->memh,r,x);
r 133 dev/pci/yds.c void YWRITE2(struct yds_softc *sc,bus_size_t r,u_int16_t x)
r 135 dev/pci/yds.c DPRINTFN(5, (" YWRITE2(0x%lX,0x%lX)\n",(unsigned long)r,(unsigned long)x));
r 136 dev/pci/yds.c bus_space_write_2(sc->memt,sc->memh,r,x);
r 138 dev/pci/yds.c void YWRITE4(struct yds_softc *sc,bus_size_t r,u_int32_t x)
r 140 dev/pci/yds.c DPRINTFN(5, (" YWRITE4(0x%lX,0x%lX)\n",(unsigned long)r,(unsigned long)x));
r 141 dev/pci/yds.c bus_space_write_4(sc->memt,sc->memh,r,x);
r 145 dev/pci/yds.c #define YWRITEREGION4(sc, r, x, c) \
r 146 dev/pci/yds.c bus_space_write_region_4((sc)->memt, (sc)->memh, (r), (x), (c) / 4)
r 747 dev/pci/yds.c int r, i;
r 780 dev/pci/yds.c if ((r = ac97_attach(&codec->host_if)) != 0) {
r 782 dev/pci/yds.c sc->sc_dev.dv_xname, r);
r 332 dev/pcmcia/gpr.c struct gpr400_ram r;
r 335 dev/pcmcia/gpr.c sc->sc_offset, &r, sizeof(struct gpr400_ram));
r 336 dev/pcmcia/gpr.c error = copyout(&r, addr, sizeof(struct gpr400_ram));
r 75 dev/raidframe/rf_decluster.c int b, v, k, r, lambda; /* block design params */
r 111 dev/raidframe/rf_decluster.c r = *((int *) cfgBuf);
r 148 dev/raidframe/rf_decluster.c info->FullTablesPerSpareRegion = (v - 1) / rf_gcd(r, v - 1);
r 150 dev/raidframe/rf_decluster.c info->SpareSpaceDepthPerRegionInSUs = (r * info->TablesPerSpareRegion /
r 57 dev/raidframe/rf_declusterPQ.c int b, v, k, r, lambda; /* block design params */
r 77 dev/raidframe/rf_declusterPQ.c r = *((int *) cfgBuf);
r 125 dev/raidframe/rf_declusterPQ.c info->FullTablesPerSpareRegion = (v - 1) / rf_gcd(r, v - 1);
r 128 dev/raidframe/rf_declusterPQ.c info->SpareSpaceDepthPerRegionInSUs = (r * info->TablesPerSpareRegion
r 189 dev/raidframe/rf_diskqueue.c RF_RowCol_t r,
r 201 dev/raidframe/rf_diskqueue.c diskqueue->row = r;
r 215 dev/raidframe/rf_diskqueue.c diskqueue->rf_cinfo = &raidPtr->raid_cinfo[r][c];
r 265 dev/raidframe/rf_diskqueue.c RF_RowCol_t r, c;
r 288 dev/raidframe/rf_diskqueue.c for (r = 0; r < raidPtr->numRow; r++) {
r 289 dev/raidframe/rf_diskqueue.c RF_CallocAndAdd(diskQueues[r], raidPtr->numCol +
r 290 dev/raidframe/rf_diskqueue.c ((r == 0) ? RF_MAXSPARE : 0),
r 293 dev/raidframe/rf_diskqueue.c if (diskQueues[r] == NULL)
r 296 dev/raidframe/rf_diskqueue.c rc = rf_ConfigureDiskQueue(raidPtr, &diskQueues[r][c],
r 297 dev/raidframe/rf_diskqueue.c r, c, p, raidPtr->sectorsPerDisk,
r 298 dev/raidframe/rf_diskqueue.c raidPtr->Disks[r][c].dev,
r 307 dev/raidframe/rf_diskqueue.c for (r = 0; r < raidPtr->numSpare; r++) {
r 308 dev/raidframe/rf_diskqueue.c rc = rf_ConfigureDiskQueue(raidPtr, &spareQueues[r], 0,
r 309 dev/raidframe/rf_diskqueue.c raidPtr->numCol + r, p, raidPtr->sectorsPerDisk,
r 310 dev/raidframe/rf_diskqueue.c raidPtr->Disks[0][raidPtr->numCol + r].dev,
r 123 dev/raidframe/rf_disks.c RF_RowCol_t r, c;
r 136 dev/raidframe/rf_disks.c for (r = 0; r < raidPtr->numRow; r++) {
r 140 dev/raidframe/rf_disks.c &cfgPtr->devnames[r][c][0], &disks[r][c], r, c);
r 145 dev/raidframe/rf_disks.c if (disks[r][c].status == rf_ds_optimal) {
r 147 dev/raidframe/rf_disks.c raidPtr->raid_cinfo[r][c].ci_dev,
r 148 dev/raidframe/rf_disks.c raidPtr->raid_cinfo[r][c].ci_vp,
r 149 dev/raidframe/rf_disks.c &raidPtr->raid_cinfo[r][c].ci_label);
r 152 dev/raidframe/rf_disks.c if (disks[r][c].status != rf_ds_optimal) {
r 155 dev/raidframe/rf_disks.c if (disks[r][c].numBlocks < min_numblks)
r 156 dev/raidframe/rf_disks.c min_numblks = disks[r][c].numBlocks;
r 159 dev/raidframe/rf_disks.c r, c, disks[r][c].devname,
r 160 dev/raidframe/rf_disks.c (long int) disks[r][c].numBlocks,
r 161 dev/raidframe/rf_disks.c disks[r][c].blockSize,
r 162 dev/raidframe/rf_disks.c (long int) disks[r][c].numBlocks *
r 163 dev/raidframe/rf_disks.c disks[r][c].blockSize / 1024 / 1024);
r 172 dev/raidframe/rf_disks.c raidPtr->status[r] = rf_rs_degraded;
r 179 dev/raidframe/rf_disks.c for (foundone = r = 0; !foundone && r < raidPtr->numRow; r++) {
r 181 dev/raidframe/rf_disks.c if (disks[r][c].status == rf_ds_optimal) {
r 182 dev/raidframe/rf_disks.c bs = disks[r][c].blockSize;
r 214 dev/raidframe/rf_disks.c for (r = 0; r < raidPtr->numRow; r++) {
r 216 dev/raidframe/rf_disks.c if (disks[r][c].status == rf_ds_optimal) {
r 217 dev/raidframe/rf_disks.c if (disks[r][c].blockSize != bs) {
r 220 dev/raidframe/rf_disks.c " disk at r 0 c 0.\n", r, c);
r 224 dev/raidframe/rf_disks.c if (disks[r][c].numBlocks != min_numblks) {
r 227 dev/raidframe/rf_disks.c r, c, (int) min_numblks);
r 228 dev/raidframe/rf_disks.c disks[r][c].numBlocks = min_numblks;
r 341 dev/raidframe/rf_disks.c int r;
r 359 dev/raidframe/rf_disks.c for (r = 0; r < raidPtr->numRow; r++) {
r 364 dev/raidframe/rf_disks.c RF_CallocAndAdd(disks[r], raidPtr->numCol +
r 365 dev/raidframe/rf_disks.c ((r == 0) ? RF_MAXSPARE : 0), sizeof(RF_RaidDisk_t),
r 367 dev/raidframe/rf_disks.c if (disks[r] == NULL) {
r 372 dev/raidframe/rf_disks.c RF_CallocAndAdd(raidPtr->raid_cinfo[r], raidPtr->numCol +
r 373 dev/raidframe/rf_disks.c ((r == 0) ? raidPtr->numSpare : 0),
r 376 dev/raidframe/rf_disks.c if (raidPtr->raid_cinfo[r] == NULL) {
r 396 dev/raidframe/rf_disks.c RF_RowCol_t r, c;
r 436 dev/raidframe/rf_disks.c for (r = 0; r < raidPtr->numRow; r++) {
r 439 dev/raidframe/rf_disks.c diskPtr = &disks[r][c];
r 443 dev/raidframe/rf_disks.c printf("Looking for %d,%d in autoconfig.\n", r, c);
r 451 dev/raidframe/rf_disks.c if ((ac->clabel->row == r) &&
r 462 dev/raidframe/rf_disks.c ac->devname, r, c);
r 486 dev/raidframe/rf_disks.c if ((ac->clabel->row == r) &&
r 497 dev/raidframe/rf_disks.c ac->devname, r, c);
r 516 dev/raidframe/rf_disks.c raidPtr->raid_cinfo[r][c].ci_vp = ac->vp;
r 517 dev/raidframe/rf_disks.c raidPtr->raid_cinfo[r][c].ci_dev = ac->dev;
r 519 dev/raidframe/rf_disks.c memcpy(&raidPtr->raid_cinfo[r][c].ci_label,
r 573 dev/raidframe/rf_disks.c disks[r][c].status = rf_ds_failed;
r 586 dev/raidframe/rf_disks.c disks[r][c].status = rf_ds_failed;
r 587 dev/raidframe/rf_disks.c snprintf(disks[r][c].devname,
r 588 dev/raidframe/rf_disks.c sizeof disks[r][c].devname, "component%d",
r 589 dev/raidframe/rf_disks.c r * raidPtr->numCol + c);
r 599 dev/raidframe/rf_disks.c raidPtr->status[r] = rf_rs_degraded;
r 775 dev/raidframe/rf_disks.c int r, c;
r 818 dev/raidframe/rf_disks.c for (r = 0; r < raidPtr->numRow && !fatal_error; r++) {
r 820 dev/raidframe/rf_disks.c ci_label = &raidPtr->raid_cinfo[r][c].ci_label;
r 874 dev/raidframe/rf_disks.c for (r = 0; r < raidPtr->numRow; r++) {
r 877 dev/raidframe/rf_disks.c &raidPtr->raid_cinfo[r][c].ci_label;
r 880 dev/raidframe/rf_disks.c hosed_row = r;
r 941 dev/raidframe/rf_disks.c for (r = 0; r < raidPtr->numRow && !too_fatal; r++) {
r 944 dev/raidframe/rf_disks.c &raidPtr->raid_cinfo[r][c].ci_label;
r 947 dev/raidframe/rf_disks.c if ((hosed_row == r) &&
r 954 dev/raidframe/rf_disks.c hosed_row = r;
r 1024 dev/raidframe/rf_disks.c for (r = 0; r < raidPtr->numRow; r++) {
r 1026 dev/raidframe/rf_disks.c dev_name = &cfgPtr->devnames[r][c][0];
r 1027 dev/raidframe/rf_disks.c ci_label = &raidPtr->raid_cinfo[r][c].ci_label;
r 1029 dev/raidframe/rf_disks.c if ((r == hosed_row) && (c == hosed_column)) {
r 1033 dev/raidframe/rf_disks.c rf_print_label_status(raidPtr, r, c, dev_name,
r 1035 dev/raidframe/rf_disks.c if (rf_check_label_vitals(raidPtr, r, c,
r 75 dev/raidframe/rf_geniq.c unsigned int r;
r 2364 dev/raidframe/rf_openbsdkintf.c int r,c;
r 2367 dev/raidframe/rf_openbsdkintf.c for (r = 0; r < raidPtr->numRow; r++) {
r 2373 dev/raidframe/rf_openbsdkintf.c if (!RF_DEAD_DISK(raidPtr->Disks[r][c].status)) {
r 2375 dev/raidframe/rf_openbsdkintf.c raidPtr->Disks[r][c].dev,
r 2376 dev/raidframe/rf_openbsdkintf.c raidPtr->raid_cinfo[r][c].ci_vp, &clabel);
r 2386 dev/raidframe/rf_openbsdkintf.c raidPtr->Disks[r][c].status;
r 2388 dev/raidframe/rf_openbsdkintf.c raidPtr->Disks[r][c].dev,
r 2389 dev/raidframe/rf_openbsdkintf.c raidPtr->raid_cinfo[r][c].ci_vp,
r 2393 dev/raidframe/rf_openbsdkintf.c raidPtr->Disks[r][c].dev,
r 2394 dev/raidframe/rf_openbsdkintf.c raidPtr->raid_cinfo[r][c].ci_vp,
r 2404 dev/raidframe/rf_openbsdkintf.c if (raidPtr->Disks[r][sparecol].status == rf_ds_used_spare) {
r 2419 dev/raidframe/rf_openbsdkintf.c r) &&
r 2422 dev/raidframe/rf_openbsdkintf.c srow = r;
r 2430 dev/raidframe/rf_openbsdkintf.c raidPtr->Disks[r][sparecol].dev,
r 2431 dev/raidframe/rf_openbsdkintf.c raidPtr->raid_cinfo[r][sparecol].ci_vp, &clabel);
r 2443 dev/raidframe/rf_openbsdkintf.c raidPtr->Disks[r][sparecol].dev,
r 2444 dev/raidframe/rf_openbsdkintf.c raidPtr->raid_cinfo[r][sparecol].ci_vp, &clabel);
r 2445 dev/raidframe/rf_openbsdkintf.c raidmarkclean( raidPtr->Disks[r][sparecol].dev,
r 2446 dev/raidframe/rf_openbsdkintf.c raidPtr->raid_cinfo[r][sparecol].ci_vp);
r 2459 dev/raidframe/rf_openbsdkintf.c int r,c;
r 2473 dev/raidframe/rf_openbsdkintf.c for (r = 0; r < raidPtr->numRow; r++) {
r 2475 dev/raidframe/rf_openbsdkintf.c if (raidPtr->Disks[r][c].status == rf_ds_optimal) {
r 2477 dev/raidframe/rf_openbsdkintf.c raidPtr->Disks[r][c].dev,
r 2478 dev/raidframe/rf_openbsdkintf.c raidPtr->raid_cinfo[r][c].ci_vp,
r 2486 dev/raidframe/rf_openbsdkintf.c raidPtr->Disks[r][c].dev,
r 2487 dev/raidframe/rf_openbsdkintf.c raidPtr->raid_cinfo[r][c].ci_vp,
r 2493 dev/raidframe/rf_openbsdkintf.c raidPtr->Disks[r][c].dev,
r 2495 dev/raidframe/rf_openbsdkintf.c raid_cinfo[r][c].ci_vp,
r 2579 dev/raidframe/rf_openbsdkintf.c int r,c;
r 2586 dev/raidframe/rf_openbsdkintf.c for (r = 0; r < raidPtr->numRow; r++) {
r 2589 dev/raidframe/rf_openbsdkintf.c r, c));
r 2590 dev/raidframe/rf_openbsdkintf.c vp = raidPtr->raid_cinfo[r][c].ci_vp;
r 2591 dev/raidframe/rf_openbsdkintf.c acd = raidPtr->Disks[r][c].auto_configured;
r 2593 dev/raidframe/rf_openbsdkintf.c raidPtr->raid_cinfo[r][c].ci_vp = NULL;
r 2594 dev/raidframe/rf_openbsdkintf.c raidPtr->Disks[r][c].auto_configured = 0;
r 2597 dev/raidframe/rf_openbsdkintf.c for (r = 0; r < raidPtr->numSpare; r++) {
r 2598 dev/raidframe/rf_openbsdkintf.c db1_printf(("Closing vnode for spare: %d\n", r));
r 2599 dev/raidframe/rf_openbsdkintf.c vp = raidPtr->raid_cinfo[0][raidPtr->numCol + r].ci_vp;
r 2600 dev/raidframe/rf_openbsdkintf.c acd = raidPtr->Disks[0][raidPtr->numCol + r].auto_configured;
r 2602 dev/raidframe/rf_openbsdkintf.c raidPtr->raid_cinfo[0][raidPtr->numCol + r].ci_vp = NULL;
r 2603 dev/raidframe/rf_openbsdkintf.c raidPtr->Disks[0][raidPtr->numCol + r].auto_configured = 0;
r 3040 dev/raidframe/rf_openbsdkintf.c int r,c;
r 3081 dev/raidframe/rf_openbsdkintf.c for(r=0; r<num_rows; r++) {
r 3086 dev/raidframe/rf_openbsdkintf.c if ((ac->clabel->row == r) &&
r 3092 dev/raidframe/rf_openbsdkintf.c ac->devname,r,c);
r 763 dev/raidframe/rf_pq.c unsigned r = rf_rn[coeff + 1];
r 773 dev/raidframe/rf_pq.c a1 = EXTRACT(a, 0) ^ r;
r 774 dev/raidframe/rf_pq.c a2 = EXTRACT(a, 1) ^ r;
r 776 dev/raidframe/rf_pq.c a1 = EXTRACT(a, 2) ^ r;
r 777 dev/raidframe/rf_pq.c a2 = EXTRACT(a, 3) ^ r;
r 781 dev/raidframe/rf_pq.c a1 = EXTRACT(a, 4) ^ r;
r 782 dev/raidframe/rf_pq.c a2 = EXTRACT(a, 5) ^ r;
r 786 dev/raidframe/rf_pq.c a1 = EXTRACT(a, 5) ^ r;
r 787 dev/raidframe/rf_pq.c a2 = EXTRACT(a, 6) ^ r;
r 792 dev/raidframe/rf_pq.c a1 = EXTRACT(a, 7) ^ r;
r 793 dev/raidframe/rf_pq.c a2 = EXTRACT(a, 8) ^ r;
r 797 dev/raidframe/rf_pq.c a1 = EXTRACT(a, 9) ^ r;
r 798 dev/raidframe/rf_pq.c a2 = EXTRACT(a, 10) ^ r;
r 802 dev/raidframe/rf_pq.c a1 = EXTRACT(a, 11) ^ r;
r 803 dev/raidframe/rf_pq.c a2 = EXTRACT(a, 12) ^ r;
r 833 dev/raidframe/rf_pq.c unsigned int r = rf_rn[coeff + 1];
r 835 dev/raidframe/rf_pq.c r = a1 = a2 = new = d = a = 0; /* XXX For now... */
r 854 dev/raidframe/rf_pq.c a1 = EXTRACT(a, 0) ^ r;
r 855 dev/raidframe/rf_pq.c a2 = EXTRACT(a, 1) ^ r;
r 859 dev/raidframe/rf_pq.c a1 = EXTRACT(a, 2) ^ r;
r 860 dev/raidframe/rf_pq.c a2 = EXTRACT(a, 3) ^ r;
r 864 dev/raidframe/rf_pq.c a1 = EXTRACT(a, 4) ^ r;
r 865 dev/raidframe/rf_pq.c a2 = EXTRACT(a, 5) ^ r;
r 869 dev/raidframe/rf_pq.c a1 = EXTRACT(a, 5) ^ r;
r 870 dev/raidframe/rf_pq.c a2 = EXTRACT(a, 6) ^ r;
r 875 dev/raidframe/rf_pq.c a1 = EXTRACT(a, 7) ^ r;
r 876 dev/raidframe/rf_pq.c a2 = EXTRACT(a, 8) ^ r;
r 880 dev/raidframe/rf_pq.c a1 = EXTRACT(a, 9) ^ r;
r 881 dev/raidframe/rf_pq.c a2 = EXTRACT(a, 10) ^ r;
r 885 dev/raidframe/rf_pq.c a1 = EXTRACT(a, 11) ^ r;
r 886 dev/raidframe/rf_pq.c a2 = EXTRACT(a, 12) ^ r;
r 980 dev/raidframe/rf_pq.c unsigned r = rf_rn[coeff + 1];
r 988 dev/raidframe/rf_pq.c a1 = r ^ q[a1];
r 989 dev/raidframe/rf_pq.c a2 = r ^ q[a2];
r 996 dev/raidframe/rf_pq.c a1 = r ^ q[a1]; \
r 997 dev/raidframe/rf_pq.c a2 = r ^ q[a2]; \
r 79 dev/raidframe/rf_shutdown.c RF_ShutdownList_t *r, *next;
r 83 dev/raidframe/rf_shutdown.c for (r = *list; r; r = next) {
r 84 dev/raidframe/rf_shutdown.c next = r->next;
r 85 dev/raidframe/rf_shutdown.c file = r->file;
r 86 dev/raidframe/rf_shutdown.c line = r->line;
r 91 dev/raidframe/rf_shutdown.c r->cleanup(r->arg);
r 97 dev/raidframe/rf_shutdown.c rf_FreeShutdownEnt(r);
r 71 dev/raidframe/rf_sstf.c RF_DiskQueueData_t *r, *s;
r 89 dev/raidframe/rf_sstf.c r = NULL;
r 93 dev/raidframe/rf_sstf.c for (s = NULL, r = *queuep; r; s = r, r = r->next) {
r 94 dev/raidframe/rf_sstf.c if (r->sectorOffset >= req->sectorOffset) {
r 97 dev/raidframe/rf_sstf.c req->next = r;
r 98 dev/raidframe/rf_sstf.c r->prev = req;
r 106 dev/raidframe/rf_sstf.c RF_ASSERT(r == NULL);
r 166 dev/raidframe/rf_sstf.c RF_DiskQueueData_t *r, *best_l, *best_r;
r 169 dev/raidframe/rf_sstf.c for (r = queue->queue; r; r = r->next) {
r 170 dev/raidframe/rf_sstf.c if (r->sectorOffset < arm_pos) {
r 172 dev/raidframe/rf_sstf.c best_l = r;
r 175 dev/raidframe/rf_sstf.c this_pos_l = arm_pos - r->sectorOffset;
r 177 dev/raidframe/rf_sstf.c best_l = r;
r 185 dev/raidframe/rf_sstf.c best_r = r;
r 188 dev/raidframe/rf_sstf.c this_pos_r = r->sectorOffset - arm_pos;
r 190 dev/raidframe/rf_sstf.c best_r = r;
r 615 dev/raidframe/rf_sstf.c RF_DiskQueueData_t *r, *next;
r 624 dev/raidframe/rf_sstf.c r->raidPtr->raidid, (long) parityStripeID,
r 628 dev/raidframe/rf_sstf.c for (r = sstfq->lopri.queue; r; r = next) {
r 629 dev/raidframe/rf_sstf.c next = r->next;
r 632 dev/raidframe/rf_sstf.c r->raidPtr->raidid, (long) r);
r 634 dev/raidframe/rf_sstf.c if ((r->parityStripeID == parityStripeID)
r 635 dev/raidframe/rf_sstf.c && (r->which_ru == which_ru)) {
r 636 dev/raidframe/rf_sstf.c rf_do_dequeue(&sstfq->lopri, r);
r 637 dev/raidframe/rf_sstf.c rf_SstfEnqueue(qptr, r, RF_IO_NORMAL_PRIORITY);
r 643 dev/raidframe/rf_sstf.c " %d,%d,%d.\n", r->raidPtr->raidid, n, sstfq->left.qlen,
r 323 dev/sbus/agten.c agten_setcolor(v, index, r, g, b)
r 326 dev/sbus/agten.c u_int8_t r, g, b;
r 330 dev/sbus/agten.c sc->sc_cmap.cm_red[index] = r;
r 225 dev/sbus/apio.c int r;
r 227 dev/sbus/apio.c r = lptintr(&sc->sc_lpt);
r 229 dev/sbus/apio.c return (r);
r 702 dev/sbus/be.c int r = 0;
r 710 dev/sbus/be.c r |= beeint(sc, whyb);
r 713 dev/sbus/be.c r |= beqint(sc, whyc);
r 716 dev/sbus/be.c r |= betint(sc);
r 719 dev/sbus/be.c r |= berint(sc);
r 721 dev/sbus/be.c return (r);
r 730 dev/sbus/be.c int r = 0, rst = 0;
r 733 dev/sbus/be.c r |= 1;
r 735 dev/sbus/be.c r |= 1;
r 738 dev/sbus/be.c r |= 1;
r 744 dev/sbus/be.c r |= 1;
r 750 dev/sbus/be.c r |= 1;
r 763 dev/sbus/be.c r |= 1;
r 769 dev/sbus/be.c r |= 1;
r 775 dev/sbus/be.c r |= 1;
r 787 dev/sbus/be.c if (!r) {
r 798 dev/sbus/be.c return (r);
r 807 dev/sbus/be.c int r = 0, rst = 0;
r 810 dev/sbus/be.c r |= 1;
r 815 dev/sbus/be.c r |= 1;
r 820 dev/sbus/be.c r |= 1;
r 825 dev/sbus/be.c if (!r) {
r 836 dev/sbus/be.c return (r);
r 262 dev/sbus/cgsix.c u_char r[2], g[2], b[2];
r 325 dev/sbus/cgsix.c r[0] = sc->sc_curs_fg >> 16;
r 328 dev/sbus/cgsix.c r[1] = sc->sc_curs_bg >> 16;
r 331 dev/sbus/cgsix.c error = copyout(r, curs->cmap.red, sizeof(r));
r 385 dev/sbus/cgsix.c u_int8_t r[2], g[2], b[2], image[128], mask[128];
r 396 dev/sbus/cgsix.c error = copyin(curs->cmap.red, r, sizeof(r));
r 436 dev/sbus/cgsix.c sc->sc_curs_fg = ((r[0] << 16) | (g[0] << 8) | (b[0] << 0));
r 437 dev/sbus/cgsix.c sc->sc_curs_bg = ((r[1] << 16) | (g[1] << 8) | (b[1] << 0));
r 678 dev/sbus/cgsix.c cgsix_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
r 683 dev/sbus/cgsix.c bcm->cm_map[index][0] = r;
r 294 dev/sbus/cgsixreg.h #define THC_READ(sc,r) \
r 295 dev/sbus/cgsixreg.h bus_space_read_4((sc)->sc_bustag, (sc)->sc_thc_regs, (r))
r 296 dev/sbus/cgsixreg.h #define THC_WRITE(sc,r,v) \
r 297 dev/sbus/cgsixreg.h bus_space_write_4((sc)->sc_bustag, (sc)->sc_thc_regs, (r), (v))
r 299 dev/sbus/cgsixreg.h #define TEC_READ(sc,r) \
r 300 dev/sbus/cgsixreg.h bus_space_read_4((sc)->sc_bustag, (sc)->sc_tec_regs, (r))
r 301 dev/sbus/cgsixreg.h #define TEC_WRITE(sc,r,v) \
r 302 dev/sbus/cgsixreg.h bus_space_write_4((sc)->sc_bustag, (sc)->sc_tec_regs, (r), (v))
r 309 dev/sbus/cgsixreg.h #define FBC_READ(sc,r) \
r 310 dev/sbus/cgsixreg.h bus_space_read_4((sc)->sc_bustag, (sc)->sc_fbc_regs, (r))
r 311 dev/sbus/cgsixreg.h #define FBC_WRITE(sc,r,v) \
r 312 dev/sbus/cgsixreg.h bus_space_write_4((sc)->sc_bustag, (sc)->sc_fbc_regs, (r), (v))
r 424 dev/sbus/cgthree.c cgthree_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
r 429 dev/sbus/cgthree.c bcm->cm_map[index][0] = r;
r 115 dev/sbus/cgtwelvereg.h u_int32_t r[8];
r 115 dev/sbus/cs4231.c #define CS_WRITE(sc,r,v) \
r 116 dev/sbus/cs4231.c bus_space_write_1((sc)->sc_bustag, (sc)->sc_regs, (r) << 2, (v))
r 117 dev/sbus/cs4231.c #define CS_READ(sc,r) \
r 118 dev/sbus/cs4231.c bus_space_read_1((sc)->sc_bustag, (sc)->sc_regs, (r) << 2)
r 120 dev/sbus/cs4231.c #define APC_WRITE(sc,r,v) \
r 121 dev/sbus/cs4231.c bus_space_write_4(sc->sc_bustag, sc->sc_regs, r, v)
r 122 dev/sbus/cs4231.c #define APC_READ(sc,r) \
r 123 dev/sbus/cs4231.c bus_space_read_4(sc->sc_bustag, sc->sc_regs, r)
r 274 dev/sbus/cs4231.c cs4231_write(struct cs4231_softc *sc, u_int8_t r, u_int8_t v)
r 276 dev/sbus/cs4231.c CS_WRITE(sc, AD1848_IADDR, r);
r 284 dev/sbus/cs4231.c cs4231_read(struct cs4231_softc *sc, u_int8_t r)
r 286 dev/sbus/cs4231.c CS_WRITE(sc, AD1848_IADDR, r);
r 554 dev/sbus/cs4231.c struct audio_params *p, struct audio_params *r)
r 636 dev/sbus/cs4231.c r->sw_code = rswcode;
r 656 dev/sbus/cs4231.c u_int8_t r, fs;
r 667 dev/sbus/cs4231.c r = cs4231_read(sc, SP_INTERFACE_CONFIG) | AUTO_CAL_ENABLE;
r 670 dev/sbus/cs4231.c CS_WRITE(sc, AD1848_IDATA, r);
r 1320 dev/sbus/cs4231.c int r = 0;
r 1327 dev/sbus/cs4231.c r = 1;
r 1332 dev/sbus/cs4231.c r = 1;
r 1350 dev/sbus/cs4231.c r = 1;
r 1355 dev/sbus/cs4231.c r = 1;
r 1378 dev/sbus/cs4231.c r = 1;
r 1406 dev/sbus/cs4231.c r = 1;
r 1411 dev/sbus/cs4231.c r = 1;
r 1414 dev/sbus/cs4231.c return (r);
r 349 dev/sbus/mgx.c mgx_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
r 354 dev/sbus/mgx.c sc->sc_cmap[index++] = r;
r 580 dev/sbus/qe.c int r = 0;
r 593 dev/sbus/qe.c return (r);
r 621 dev/sbus/qe.c r |= qe_eint(sc, qestat);
r 622 dev/sbus/qe.c if (r == -1)
r 627 dev/sbus/qe.c r |= qe_tint(sc);
r 630 dev/sbus/qe.c r |= qe_rint(sc);
r 738 dev/sbus/qe.c int r = 0, rst = 0;
r 742 dev/sbus/qe.c r |= 1;
r 748 dev/sbus/qe.c r |= 1;
r 754 dev/sbus/qe.c r |= 1;
r 762 dev/sbus/qe.c r |= 1;
r 769 dev/sbus/qe.c r |= 1;
r 775 dev/sbus/qe.c r |= 1;
r 780 dev/sbus/qe.c r |= 1;
r 786 dev/sbus/qe.c r |= 1;
r 792 dev/sbus/qe.c r |= 1;
r 799 dev/sbus/qe.c r |= 1;
r 806 dev/sbus/qe.c r |= 1;
r 813 dev/sbus/qe.c r |= 1;
r 819 dev/sbus/qe.c r |= 1;
r 824 dev/sbus/qe.c r |= 1;
r 829 dev/sbus/qe.c r |= 1;
r 835 dev/sbus/qe.c r |= 1;
r 842 dev/sbus/qe.c r |= 1;
r 847 dev/sbus/qe.c r |= 1;
r 852 dev/sbus/qe.c r |= 1;
r 858 dev/sbus/qe.c r |= 1;
r 864 dev/sbus/qe.c r |= 1;
r 871 dev/sbus/qe.c r |= 1;
r 878 dev/sbus/qe.c r |= 1;
r 885 dev/sbus/qe.c r |= 1;
r 889 dev/sbus/qe.c if (r == 0)
r 899 dev/sbus/qe.c return (r);
r 440 dev/sbus/rfx.c rfx_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
r 444 dev/sbus/rfx.c sc->sc_cmap.red[index] = r;
r 497 dev/sbus/rfx.c u_int8_t *r, *g, *b;
r 499 dev/sbus/rfx.c r = sc->sc_cmap.red + start;
r 508 dev/sbus/rfx.c sc->sc_ramdac[BT463_REG_CMAP_DATA] = *r++;
r 121 dev/sbus/spif.c #define STC_WRITE(sc,r,v) \
r 122 dev/sbus/spif.c bus_space_write_1((sc)->sc_bustag, (sc)->sc_stch, (r), (v))
r 123 dev/sbus/spif.c #define STC_READ(sc,r) \
r 124 dev/sbus/spif.c bus_space_read_1((sc)->sc_bustag, (sc)->sc_stch, (r))
r 127 dev/sbus/spif.c #define ISTC_WRITE(sc,r,v) \
r 128 dev/sbus/spif.c bus_space_write_1((sc)->sc_bustag, (sc)->sc_istch, (r), (v))
r 129 dev/sbus/spif.c #define ISTC_READ(sc,r) \
r 130 dev/sbus/spif.c bus_space_read_1((sc)->sc_bustag, (sc)->sc_istch, (r))
r 133 dev/sbus/spif.c #define PPC_WRITE(sc,r,v) \
r 134 dev/sbus/spif.c bus_space_write_1((sc)->sc_bustag, (sc)->sc_ppch, (r), (v))
r 135 dev/sbus/spif.c #define PPC_READ(sc,r) \
r 136 dev/sbus/spif.c bus_space_read_1((sc)->sc_bustag, (sc)->sc_ppch, (r))
r 903 dev/sbus/spif.c int needsoft = 0, r = 0, i;
r 909 dev/sbus/spif.c r |= spifstcintr_rx(sc, &needsoft);
r 911 dev/sbus/spif.c r |= spifstcintr_rxexception(sc, &needsoft);
r 917 dev/sbus/spif.c r |= spifstcintr_tx(sc, &needsoft);
r 923 dev/sbus/spif.c r |= spifstcintr_mx(sc, &needsoft);
r 928 dev/sbus/spif.c return (r);
r 937 dev/sbus/spif.c int r = 0, i, data, s, flags;
r 964 dev/sbus/spif.c r = 1;
r 982 dev/sbus/spif.c r = 1;
r 988 dev/sbus/spif.c r = 1;
r 996 dev/sbus/spif.c r = 1;
r 385 dev/sbus/stp4020.c int i, sense, r = 0;
r 411 dev/sbus/stp4020.c r = 1;
r 435 dev/sbus/stp4020.c r = 1;
r 441 dev/sbus/stp4020.c r = 1;
r 447 dev/sbus/stp4020.c r = 1;
r 453 dev/sbus/stp4020.c r = 1;
r 459 dev/sbus/stp4020.c r = 1;
r 465 dev/sbus/stp4020.c r = 1;
r 474 dev/sbus/stp4020.c r = 1;
r 477 dev/sbus/stp4020.c return (r);
r 485 dev/sbus/stp4020.c int i, r = 0;
r 500 dev/sbus/stp4020.c r = 1;
r 526 dev/sbus/stp4020.c return (r);
r 475 dev/sbus/tvtwo.c tvtwo_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
r 481 dev/sbus/tvtwo.c dac[3] = r;
r 151 dev/sbus/uperf_sbus.c uperf_sbus_read_reg(struct uperf_sbus_softc *sc, bus_size_t r)
r 157 dev/sbus/uperf_sbus.c bus_space_write_1(sc->sc_bus_t, sc->sc_bus_h, USC_ADDR, r);
r 190 dev/sbus/uperf_sbus.c uperf_sbus_write_reg(struct uperf_sbus_softc *sc, bus_size_t r, u_int32_t v)
r 195 dev/sbus/uperf_sbus.c bus_space_write_1(sc->sc_bus_t, sc->sc_bus_h, USC_ADDR, r);
r 468 dev/sbus/vigra.c vigra_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
r 473 dev/sbus/vigra.c sc->sc_cmap.cm_map[index][3] = r;
r 479 dev/sbus/vigra.c sc->sc_cmap.cm_map[index][1] = r;
r 153 dev/sbus/zx.c #define SETREG(r, v) (*((volatile u_int32_t *)&r) = (v))
r 433 dev/sbus/zx.c zx_setcolor(void *v, u_int index, u_int8_t r, u_int8_t g, u_int8_t b)
r 437 dev/sbus/zx.c sc->sc_cmap.cm_red[index] = r;
r 449 dev/sbus/zx.c u_int8_t *r, *g, *b;
r 493 dev/sbus/zx.c r = sc->sc_cmap.cm_red;
r 498 dev/sbus/zx.c *r++ = *color++;
r 573 dev/sbus/zx.c u_int8_t *r, *g, *b;
r 583 dev/sbus/zx.c r = sc->sc_cmap.cm_red;
r 587 dev/sbus/zx.c SETREG(zx->zx_value, *r++ | (*g++ << 8) | (*b++ << 16));
r 1067 dev/usb/if_aue.c struct aue_rxpkt r;
r 1102 dev/usb/if_aue.c memcpy(&r, c->aue_buf + total_len - 4, sizeof(r));
r 1105 dev/usb/if_aue.c r.aue_rxstat &= AUE_RXSTAT_MASK;
r 1106 dev/usb/if_aue.c if (r.aue_rxstat) {
r 200 dev/usb/ohci.c #define OWRITE1(sc, r, x) \
r 201 dev/usb/ohci.c do { OBARR(sc); bus_space_write_1((sc)->iot, (sc)->ioh, (r), (x)); } while (0)
r 202 dev/usb/ohci.c #define OWRITE2(sc, r, x) \
r 203 dev/usb/ohci.c do { OBARR(sc); bus_space_write_2((sc)->iot, (sc)->ioh, (r), (x)); } while (0)
r 204 dev/usb/ohci.c #define OWRITE4(sc, r, x) \
r 205 dev/usb/ohci.c do { OBARR(sc); bus_space_write_4((sc)->iot, (sc)->ioh, (r), (x)); } while (0)
r 206 dev/usb/ohci.c #define OREAD1(sc, r) (OBARR(sc), bus_space_read_1((sc)->iot, (sc)->ioh, (r)))
r 207 dev/usb/ohci.c #define OREAD2(sc, r) (OBARR(sc), bus_space_read_2((sc)->iot, (sc)->ioh, (r)))
r 208 dev/usb/ohci.c #define OREAD4(sc, r) (OBARR(sc), bus_space_read_4((sc)->iot, (sc)->ioh, (r)))
r 683 dev/usb/uaudio.c struct usb_audio_cluster r;
r 693 dev/usb/uaudio.c r.bNrChannels = iot[id].d.it->bNrChannels;
r 694 dev/usb/uaudio.c USETW(r.wChannelConfig, UGETW(iot[id].d.it->wChannelConfig));
r 695 dev/usb/uaudio.c r.iChannelNames = iot[id].d.it->iChannelNames;
r 696 dev/usb/uaudio.c return (r);
r 701 dev/usb/uaudio.c r = *(struct usb_audio_cluster *)
r 703 dev/usb/uaudio.c return (r);
r 712 dev/usb/uaudio.c r = *(struct usb_audio_cluster *)
r 714 dev/usb/uaudio.c return (r);
r 716 dev/usb/uaudio.c r = *(struct usb_audio_cluster *)
r 718 dev/usb/uaudio.c return (r);
r 725 dev/usb/uaudio.c memset(&r, 0, sizeof r);
r 726 dev/usb/uaudio.c return (r);
r 1700 dev/usb/uaudio.c int r;
r 1702 dev/usb/uaudio.c for (r = 1; r < asf1d->bSamFreqType; r++)
r 1703 dev/usb/uaudio.c printf(",%d", UA_GETSAMP(asf1d, r));
r 250 dev/usb/uhci.c #define UWRITE1(sc, r, x) \
r 251 dev/usb/uhci.c do { UBARR(sc); bus_space_write_1((sc)->iot, (sc)->ioh, (r), (x)); \
r 253 dev/usb/uhci.c #define UWRITE2(sc, r, x) \
r 254 dev/usb/uhci.c do { UBARR(sc); bus_space_write_2((sc)->iot, (sc)->ioh, (r), (x)); \
r 256 dev/usb/uhci.c #define UWRITE4(sc, r, x) \
r 257 dev/usb/uhci.c do { UBARR(sc); bus_space_write_4((sc)->iot, (sc)->ioh, (r), (x)); \
r 259 dev/usb/uhci.c #define UREAD1(sc, r) (UBARR(sc), bus_space_read_1((sc)->iot, (sc)->ioh, (r)))
r 260 dev/usb/uhci.c #define UREAD2(sc, r) (UBARR(sc), bus_space_read_2((sc)->iot, (sc)->ioh, (r)))
r 261 dev/usb/uhci.c #define UREAD4(sc, r) (UBARR(sc), bus_space_read_4((sc)->iot, (sc)->ioh, (r)))
r 429 dev/usb/uvscom.c uint16_t r;
r 439 dev/usb/uvscom.c err = usbd_do_request(sc->sc_udev, &req, &r);
r 447 dev/usb/uvscom.c sc->sc_dev.dv_xname, r));
r 280 dev/vesa/vesafb.c u_char r[256], g[256], b[256];
r 290 dev/vesa/vesafb.c rv = copyin(cm->red, &r[idx], cnt);
r 300 dev/vesa/vesafb.c memcpy(&sc->sc_cmap_red[idx], &r[idx], cnt);
r 207 dev/wscons/wskbdutil.c int i, j, r;
r 226 dev/wscons/wskbdutil.c r = compose_tab[j + i/2].elem[1] < compose_buf[1];
r 228 dev/wscons/wskbdutil.c r = compose_tab[j + i/2].elem[0] < compose_buf[0];
r 229 dev/wscons/wskbdutil.c if (r) {
r 247 dev/wsfont/wsfont.c int x, l, r, nr;
r 258 dev/wsfont/wsfont.c r = font->stride - 1;
r 260 dev/wsfont/wsfont.c while (l < r) {
r 262 dev/wsfont/wsfont.c rp[l] = rp[r];
r 263 dev/wsfont/wsfont.c rp[r] = x;
r 264 dev/wsfont/wsfont.c l++, r--;
r 301 dev/wsfont/wsfont.c int b, n, r, newstride;
r 328 dev/wsfont/wsfont.c for (r = 0; r < font->fontheight; r++) {
r 332 dev/wsfont/wsfont.c rb = ch + (font->stride * r) + (b / 8);
r 336 dev/wsfont/wsfont.c rrb = newbits + newstride - 1 - (r / 8)
r 339 dev/wsfont/wsfont.c *rrb |= (1 << (r % 8));
r 162 kern/kern_acct.c struct rusage *r;
r 203 kern/kern_acct.c r = &p->p_stats->p_ru;
r 207 kern/kern_acct.c acct.ac_mem = (r->ru_ixrss + r->ru_idrss + r->ru_isrss) / t;
r 212 kern/kern_acct.c acct.ac_io = encode_comp_t(r->ru_inblock + r->ru_oublock, 0);
r 787 kern/kern_exec.c int r;
r 793 kern/kern_exec.c if ((r = uvm_map(kernel_map, &va, round_page(sz), e->e_sigobject,
r 172 kern/kern_rwlock.c #define rw_enter_diag(r, f)
r 192 kern/kgdb_stub.c vaddr_t r = 0;
r 196 kern/kgdb_stub.c r *= 16;
r 197 kern/kgdb_stub.c r += nibble;
r 201 kern/kgdb_stub.c return (r);
r 1557 kern/subr_pool.c int r = 0;
r 1561 kern/subr_pool.c r = pool_chk_page(pp, label, ph);
r 1562 kern/subr_pool.c if (r) {
r 1567 kern/subr_pool.c r = pool_chk_page(pp, label, ph);
r 1568 kern/subr_pool.c if (r) {
r 1573 kern/subr_pool.c r = pool_chk_page(pp, label, ph);
r 1574 kern/subr_pool.c if (r) {
r 1581 kern/subr_pool.c return (r);
r 25 lib/libkern/ffs.c unsigned int r = mask;
r 34 lib/libkern/ffs.c if (!(r & 0xffff)) {
r 36 lib/libkern/ffs.c r >>= 16;
r 38 lib/libkern/ffs.c if (!(r & 0xff)) {
r 40 lib/libkern/ffs.c r >>= 8;
r 42 lib/libkern/ffs.c if (!(r & 0xf)) {
r 44 lib/libkern/ffs.c r >>= 4;
r 47 lib/libkern/ffs.c return (bit + t[ r & 0xf ]);
r 46 lib/libkern/umoddi3.c u_quad_t r;
r 48 lib/libkern/umoddi3.c (void)__qdivrem(a, b, &r);
r 49 lib/libkern/umoddi3.c return (r);
r 2140 net/bridgestp.c int r = 0, err = 0, val;
r 2188 net/bridgestp.c r = 1;
r 2204 net/bridgestp.c r = 1;
r 2225 net/bridgestp.c r = 1;
r 2242 net/bridgestp.c r = 1;
r 2263 net/bridgestp.c r = 1;
r 2278 net/bridgestp.c r = 1;
r 2298 net/bridgestp.c r = 1;
r 2308 net/bridgestp.c if (r)
r 224 net/if_pfsync.c struct pf_rule *r = NULL;
r 249 net/if_pfsync.c r = pf_main_ruleset.rules[
r 252 net/if_pfsync.c r = &pf_default_rule;
r 254 net/if_pfsync.c if (!r->max_states || r->states < r->max_states)
r 279 net/if_pfsync.c st->rule.ptr = r;
r 283 net/if_pfsync.c r->states++;
r 311 net/if_pfsync.c r->states--;
r 1104 net/if_pfsync.c struct pf_rule *r;
r 1200 net/if_pfsync.c if ((r = st->rule.ptr) == NULL)
r 1203 net/if_pfsync.c sp->rule = htonl(r->nr);
r 1204 net/if_pfsync.c if ((r = st->anchor.ptr) == NULL)
r 1207 net/if_pfsync.c sp->anchor = htonl(r->nr);
r 1328 net/if_pfsync.c rup = sc->sc_statep.r++;
r 97 net/if_pfsync.h struct pfsync_state_upd_req *r;
r 2007 net/if_spppsubr.c u_char *buf, *r, *p;
r 2014 net/if_spppsubr.c buf = r = malloc (len, M_TEMP, M_NOWAIT);
r 2081 net/if_spppsubr.c bcopy (p, r, p[1]);
r 2082 net/if_spppsubr.c r += p[1];
r 2176 net/if_spppsubr.c bcopy (p, r, p[1]);
r 2177 net/if_spppsubr.c r += p[1];
r 2583 net/if_spppsubr.c u_char *buf, *r, *p;
r 2594 net/if_spppsubr.c buf = r = malloc ((len < 6? 6: len), M_TEMP, M_NOWAIT);
r 2636 net/if_spppsubr.c bcopy (p, r, p[1]);
r 2637 net/if_spppsubr.c r += p[1];
r 2710 net/if_spppsubr.c bcopy (p, r, p[1]);
r 2711 net/if_spppsubr.c r += p[1];
r 266 net/if_tun.c int unit, open, r;
r 280 net/if_tun.c r = tun_create(&tun_cloner, unit, flags);
r 282 net/if_tun.c if (open && r == 0) {
r 290 net/if_tun.c return (r);
r 115 net/pf.c struct pf_rule *r;
r 260 net/pf.c #define BOUND_IFACE(r, k) \
r 261 net/pf.c ((r)->rule_flag & PFRULE_IFBOUND) ? (k) : pfi_all
r 1557 net/pf.c pf_send_tcp(const struct pf_rule *r, sa_family_t af,
r 1600 net/pf.c if (r != NULL && r->rtableid >= 0)
r 1604 net/pf.c if (r != NULL && r->qid) {
r 1605 net/pf.c m->m_pkthdr.pf.qid = r->qid;
r 1715 net/pf.c struct pf_rule *r)
r 1722 net/pf.c if (r->rtableid >= 0)
r 1723 net/pf.c m0->m_pkthdr.pf.rtableid = r->rtableid;
r 1726 net/pf.c if (r->qid) {
r 1727 net/pf.c m0->m_pkthdr.pf.qid = r->qid;
r 1845 net/pf.c pf_match_tag(struct mbuf *m, struct pf_rule *r, int *tag)
r 1850 net/pf.c return ((!r->match_tag_not && r->match_tag == *tag) ||
r 1851 net/pf.c (r->match_tag_not && r->match_tag != *tag));
r 1870 net/pf.c struct pf_rule **r, struct pf_rule **a, int *match)
r 1874 net/pf.c (*r)->anchor->match = 0;
r 1880 net/pf.c *r = TAILQ_NEXT(*r, entries);
r 1883 net/pf.c *a = *r;
r 1886 net/pf.c f->r = *r;
r 1887 net/pf.c if ((*r)->anchor_wildcard) {
r 1888 net/pf.c f->parent = &(*r)->anchor->children;
r 1891 net/pf.c *r = NULL;
r 1898 net/pf.c *rs = &(*r)->anchor->ruleset;
r 1900 net/pf.c *r = TAILQ_FIRST((*rs)->rules[n].active.ptr);
r 1905 net/pf.c struct pf_rule **r, struct pf_rule **a, int *match)
r 1917 net/pf.c f->r->anchor->match = 1;
r 1923 net/pf.c *r = TAILQ_FIRST((*rs)->rules[n].active.ptr);
r 1924 net/pf.c if (*r == NULL)
r 1934 net/pf.c if (f->r->anchor->match || (match != NULL && *match))
r 1935 net/pf.c quick = f->r->quick;
r 1936 net/pf.c *r = TAILQ_NEXT(f->r, entries);
r 1937 net/pf.c } while (*r == NULL);
r 2057 net/pf.c pf_map_addr(sa_family_t af, struct pf_rule *r, struct pf_addr *saddr,
r 2061 net/pf.c struct pf_pool *rpool = &r->rpool;
r 2067 net/pf.c if (*sn == NULL && r->rpool.opts & PF_POOL_STICKYADDR &&
r 2068 net/pf.c (r->rpool.opts & PF_POOL_TYPEMASK) != PF_POOL_NONE) {
r 2071 net/pf.c if (r->rule_flag & PFRULE_RULESRCTRACK ||
r 2072 net/pf.c r->rpool.opts & PF_POOL_STICKYADDR)
r 2073 net/pf.c k.rule.ptr = r;
r 2238 net/pf.c pf_get_sport(sa_family_t af, u_int8_t proto, struct pf_rule *r,
r 2248 net/pf.c if (pf_map_addr(af, r, saddr, naddr, &init_addr, sn))
r 2311 net/pf.c switch (r->rpool.opts & PF_POOL_TYPEMASK) {
r 2314 net/pf.c if (pf_map_addr(af, r, saddr, naddr, &init_addr, sn))
r 2333 net/pf.c struct pf_rule *r, *rm = NULL;
r 2339 net/pf.c r = TAILQ_FIRST(pf_main_ruleset.rules[rs_num].active.ptr);
r 2340 net/pf.c while (r && rm == NULL) {
r 2344 net/pf.c if (r->action == PF_BINAT && direction == PF_IN) {
r 2345 net/pf.c src = &r->dst;
r 2346 net/pf.c if (r->rpool.cur != NULL)
r 2347 net/pf.c xdst = &r->rpool.cur->addr;
r 2349 net/pf.c src = &r->src;
r 2350 net/pf.c dst = &r->dst;
r 2353 net/pf.c r->evaluations++;
r 2354 net/pf.c if (pfi_kif_match(r->kif, kif) == r->ifnot)
r 2355 net/pf.c r = r->skip[PF_SKIP_IFP].ptr;
r 2356 net/pf.c else if (r->direction && r->direction != direction)
r 2357 net/pf.c r = r->skip[PF_SKIP_DIR].ptr;
r 2358 net/pf.c else if (r->af && r->af != pd->af)
r 2359 net/pf.c r = r->skip[PF_SKIP_AF].ptr;
r 2360 net/pf.c else if (r->proto && r->proto != pd->proto)
r 2361 net/pf.c r = r->skip[PF_SKIP_PROTO].ptr;
r 2364 net/pf.c r = r->skip[src == &r->src ? PF_SKIP_SRC_ADDR :
r 2368 net/pf.c r = r->skip[src == &r->src ? PF_SKIP_SRC_PORT :
r 2372 net/pf.c r = r->skip[PF_SKIP_DST_ADDR].ptr;
r 2375 net/pf.c r = TAILQ_NEXT(r, entries);
r 2379 net/pf.c r = r->skip[PF_SKIP_DST_PORT].ptr;
r 2380 net/pf.c else if (r->match_tag && !pf_match_tag(m, r, &tag))
r 2381 net/pf.c r = TAILQ_NEXT(r, entries);
r 2382 net/pf.c else if (r->os_fingerprint != PF_OSFP_ANY && (pd->proto !=
r 2384 net/pf.c off, pd->hdr.tcp), r->os_fingerprint)))
r 2385 net/pf.c r = TAILQ_NEXT(r, entries);
r 2387 net/pf.c if (r->tag)
r 2388 net/pf.c tag = r->tag;
r 2389 net/pf.c if (r->rtableid >= 0)
r 2390 net/pf.c rtableid = r->rtableid;
r 2391 net/pf.c if (r->anchor == NULL) {
r 2392 net/pf.c rm = r;
r 2395 net/pf.c &r, NULL, NULL);
r 2397 net/pf.c if (r == NULL)
r 2398 net/pf.c pf_step_out_of_anchor(&asd, &ruleset, rs_num, &r,
r 2416 net/pf.c struct pf_rule *r = NULL;
r 2419 net/pf.c r = pf_match_translation(pd, m, off, direction, kif, saddr,
r 2421 net/pf.c if (r == NULL)
r 2422 net/pf.c r = pf_match_translation(pd, m, off, direction, kif,
r 2425 net/pf.c r = pf_match_translation(pd, m, off, direction, kif, saddr,
r 2427 net/pf.c if (r == NULL)
r 2428 net/pf.c r = pf_match_translation(pd, m, off, direction, kif,
r 2432 net/pf.c if (r != NULL) {
r 2433 net/pf.c switch (r->action) {
r 2439 net/pf.c if (pf_get_sport(pd->af, pd->proto, r, saddr,
r 2440 net/pf.c daddr, dport, naddr, nport, r->rpool.proxy_port[0],
r 2441 net/pf.c r->rpool.proxy_port[1], sn)) {
r 2445 net/pf.c r->rpool.proxy_port[0],
r 2446 net/pf.c r->rpool.proxy_port[1]));
r 2453 net/pf.c if (r->rpool.cur->addr.type == PF_ADDR_DYNIFTL){
r 2457 net/pf.c if (r->rpool.cur->addr.p.dyn->
r 2461 net/pf.c &r->rpool.cur->addr.p.dyn->
r 2463 net/pf.c &r->rpool.cur->addr.p.dyn->
r 2470 net/pf.c if (r->rpool.cur->addr.p.dyn->
r 2474 net/pf.c &r->rpool.cur->addr.p.dyn->
r 2476 net/pf.c &r->rpool.cur->addr.p.dyn->
r 2484 net/pf.c &r->rpool.cur->addr.v.a.addr,
r 2485 net/pf.c &r->rpool.cur->addr.v.a.mask,
r 2489 net/pf.c if (r->src.addr.type == PF_ADDR_DYNIFTL) {
r 2493 net/pf.c if (r->src.addr.p.dyn->
r 2497 net/pf.c &r->src.addr.p.dyn->
r 2499 net/pf.c &r->src.addr.p.dyn->
r 2506 net/pf.c if (r->src.addr.p.dyn->
r 2510 net/pf.c &r->src.addr.p.dyn->
r 2512 net/pf.c &r->src.addr.p.dyn->
r 2520 net/pf.c &r->src.addr.v.a.addr,
r 2521 net/pf.c &r->src.addr.v.a.mask, daddr,
r 2527 net/pf.c if (pf_map_addr(pd->af, r, saddr, naddr, NULL, sn))
r 2529 net/pf.c if ((r->rpool.opts & PF_POOL_TYPEMASK) ==
r 2532 net/pf.c &r->rpool.cur->addr.v.a.mask, daddr,
r 2535 net/pf.c if (r->rpool.proxy_port[1]) {
r 2539 net/pf.c ntohs(r->dst.port[0])) %
r 2540 net/pf.c (r->rpool.proxy_port[1] -
r 2541 net/pf.c r->rpool.proxy_port[0] + 1)) +
r 2542 net/pf.c r->rpool.proxy_port[0];
r 2548 net/pf.c } else if (r->rpool.proxy_port[0])
r 2549 net/pf.c *nport = htons(r->rpool.proxy_port[0]);
r 2557 net/pf.c return (r);
r 2768 net/pf.c struct pf_rule *r = s->rule.ptr;
r 2771 net/pf.c if (!r->rt || r->rt == PF_FASTROUTE)
r 2776 net/pf.c pf_map_addr(AF_INET, r, saddr, &s->rt_addr, NULL,
r 2778 net/pf.c s->rt_kif = r->rpool.cur->kif;
r 2783 net/pf.c pf_map_addr(AF_INET6, r, saddr, &s->rt_addr, NULL,
r 2785 net/pf.c s->rt_kif = r->rpool.cur->kif;
r 2849 net/pf.c struct pf_rule *r, *a = NULL;
r 2915 net/pf.c r = TAILQ_FIRST(pf_main_ruleset.rules[PF_RULESET_FILTER].active.ptr);
r 2972 net/pf.c r = NULL;
r 3026 net/pf.c r = NULL;
r 3031 net/pf.c while (r != NULL) {
r 3032 net/pf.c r->evaluations++;
r 3033 net/pf.c if (pfi_kif_match(r->kif, kif) == r->ifnot)
r 3034 net/pf.c r = r->skip[PF_SKIP_IFP].ptr;
r 3035 net/pf.c else if (r->direction && r->direction != direction)
r 3036 net/pf.c r = r->skip[PF_SKIP_DIR].ptr;
r 3037 net/pf.c else if (r->af && r->af != af)
r 3038 net/pf.c r = r->skip[PF_SKIP_AF].ptr;
r 3039 net/pf.c else if (r->proto && r->proto != pd->proto)
r 3040 net/pf.c r = r->skip[PF_SKIP_PROTO].ptr;
r 3041 net/pf.c else if (PF_MISMATCHAW(&r->src.addr, saddr, af,
r 3042 net/pf.c r->src.neg, kif))
r 3043 net/pf.c r = r->skip[PF_SKIP_SRC_ADDR].ptr;
r 3045 net/pf.c else if (r->src.port_op && !pf_match_port(r->src.port_op,
r 3046 net/pf.c r->src.port[0], r->src.port[1], sport))
r 3047 net/pf.c r = r->skip[PF_SKIP_SRC_PORT].ptr;
r 3048 net/pf.c else if (PF_MISMATCHAW(&r->dst.addr, daddr, af,
r 3049 net/pf.c r->dst.neg, NULL))
r 3050 net/pf.c r = r->skip[PF_SKIP_DST_ADDR].ptr;
r 3052 net/pf.c else if (r->dst.port_op && !pf_match_port(r->dst.port_op,
r 3053 net/pf.c r->dst.port[0], r->dst.port[1], dport))
r 3054 net/pf.c r = r->skip[PF_SKIP_DST_PORT].ptr;
r 3056 net/pf.c else if (r->type && r->type != icmptype + 1)
r 3057 net/pf.c r = TAILQ_NEXT(r, entries);
r 3059 net/pf.c else if (r->code && r->code != icmpcode + 1)
r 3060 net/pf.c r = TAILQ_NEXT(r, entries);
r 3061 net/pf.c else if (r->tos && !(r->tos == pd->tos))
r 3062 net/pf.c r = TAILQ_NEXT(r, entries);
r 3063 net/pf.c else if (r->rule_flag & PFRULE_FRAGMENT)
r 3064 net/pf.c r = TAILQ_NEXT(r, entries);
r 3066 net/pf.c (r->flagset & th->th_flags) != r->flags)
r 3067 net/pf.c r = TAILQ_NEXT(r, entries);
r 3069 net/pf.c else if (r->uid.op && (pd->lookup.done || (pd->lookup.done =
r 3071 net/pf.c !pf_match_uid(r->uid.op, r->uid.uid[0], r->uid.uid[1],
r 3073 net/pf.c r = TAILQ_NEXT(r, entries);
r 3075 net/pf.c else if (r->gid.op && (pd->lookup.done || (pd->lookup.done =
r 3077 net/pf.c !pf_match_gid(r->gid.op, r->gid.gid[0], r->gid.gid[1],
r 3079 net/pf.c r = TAILQ_NEXT(r, entries);
r 3080 net/pf.c else if (r->prob && r->prob <= arc4random())
r 3081 net/pf.c r = TAILQ_NEXT(r, entries);
r 3082 net/pf.c else if (r->match_tag && !pf_match_tag(m, r, &tag))
r 3083 net/pf.c r = TAILQ_NEXT(r, entries);
r 3084 net/pf.c else if (r->os_fingerprint != PF_OSFP_ANY &&
r 3087 net/pf.c r->os_fingerprint)))
r 3088 net/pf.c r = TAILQ_NEXT(r, entries);
r 3090 net/pf.c if (r->tag)
r 3091 net/pf.c tag = r->tag;
r 3092 net/pf.c if (r->rtableid >= 0)
r 3093 net/pf.c rtableid = r->rtableid;
r 3094 net/pf.c if (r->anchor == NULL) {
r 3096 net/pf.c *rm = r;
r 3101 net/pf.c r = TAILQ_NEXT(r, entries);
r 3104 net/pf.c PF_RULESET_FILTER, &r, &a, &match);
r 3106 net/pf.c if (r == NULL && pf_step_out_of_anchor(&asd, &ruleset,
r 3107 net/pf.c PF_RULESET_FILTER, &r, &a, &match))
r 3110 net/pf.c r = *rm;
r 3116 net/pf.c if (r->log || (nr != NULL && nr->log)) {
r 3119 net/pf.c PFLOG_PACKET(kif, h, m, af, direction, reason, r->log ? r : nr,
r 3123 net/pf.c if ((r->action == PF_DROP) &&
r 3124 net/pf.c ((r->rule_flag & PFRULE_RETURNRST) ||
r 3125 net/pf.c (r->rule_flag & PFRULE_RETURNICMP) ||
r 3126 net/pf.c (r->rule_flag & PFRULE_RETURN))) {
r 3202 net/pf.c ((r->rule_flag & PFRULE_RETURNRST) ||
r 3203 net/pf.c (r->rule_flag & PFRULE_RETURN)) &&
r 3216 net/pf.c pf_send_tcp(r, af, pd->dst,
r 3219 net/pf.c r->return_ttl, 1, 0, pd->eh, kif->pfik_ifp);
r 3221 net/pf.c } else if ((af == AF_INET) && r->return_icmp)
r 3222 net/pf.c pf_send_icmp(m, r->return_icmp >> 8,
r 3223 net/pf.c r->return_icmp & 255, af, r);
r 3224 net/pf.c else if ((af == AF_INET6) && r->return_icmp6)
r 3225 net/pf.c pf_send_icmp(m, r->return_icmp6 >> 8,
r 3226 net/pf.c r->return_icmp6 & 255, af, r);
r 3229 net/pf.c if (r->action == PF_DROP)
r 3237 net/pf.c if (!state_icmp && (r->keep_state || nr != NULL ||
r 3246 net/pf.c if (r->max_states && (r->states >= r->max_states)) {
r 3252 net/pf.c if ((r->rule_flag & PFRULE_SRCTRACK ||
r 3253 net/pf.c r->rpool.opts & PF_POOL_STICKYADDR) &&
r 3254 net/pf.c pf_insert_src_node(&sn, r, saddr, af) != 0) {
r 3289 net/pf.c s->rule.ptr = r;
r 3293 net/pf.c s->allow_opts = r->allow_opts;
r 3294 net/pf.c s->log = r->log & PF_LOG_ALL;
r 3303 net/pf.c TH_SYN && r->keep_state == PF_STATE_MODULATE) {
r 3444 net/pf.c if (pf_insert_state(BOUND_IFACE(r, kif), s)) {
r 3460 net/pf.c r->keep_state == PF_STATE_SYNPROXY) {
r 3481 net/pf.c pf_send_tcp(r, af, daddr, saddr, th->th_dport,
r 3501 net/pf.c struct pf_rule *r, *a = NULL;
r 3509 net/pf.c r = TAILQ_FIRST(pf_main_ruleset.rules[PF_RULESET_FILTER].active.ptr);
r 3510 net/pf.c while (r != NULL) {
r 3511 net/pf.c r->evaluations++;
r 3512 net/pf.c if (pfi_kif_match(r->kif, kif) == r->ifnot)
r 3513 net/pf.c r = r->skip[PF_SKIP_IFP].ptr;
r 3514 net/pf.c else if (r->direction && r->direction != direction)
r 3515 net/pf.c r = r->skip[PF_SKIP_DIR].ptr;
r 3516 net/pf.c else if (r->af && r->af != af)
r 3517 net/pf.c r = r->skip[PF_SKIP_AF].ptr;
r 3518 net/pf.c else if (r->proto && r->proto != pd->proto)
r 3519 net/pf.c r = r->skip[PF_SKIP_PROTO].ptr;
r 3520 net/pf.c else if (PF_MISMATCHAW(&r->src.addr, pd->src, af,
r 3521 net/pf.c r->src.neg, kif))
r 3522 net/pf.c r = r->skip[PF_SKIP_SRC_ADDR].ptr;
r 3523 net/pf.c else if (PF_MISMATCHAW(&r->dst.addr, pd->dst, af,
r 3524 net/pf.c r->dst.neg, NULL))
r 3525 net/pf.c r = r->skip[PF_SKIP_DST_ADDR].ptr;
r 3526 net/pf.c else if (r->tos && !(r->tos == pd->tos))
r 3527 net/pf.c r = TAILQ_NEXT(r, entries);
r 3528 net/pf.c else if (r->src.port_op || r->dst.port_op ||
r 3529 net/pf.c r->flagset || r->type || r->code ||
r 3530 net/pf.c r->os_fingerprint != PF_OSFP_ANY)
r 3531 net/pf.c r = TAILQ_NEXT(r, entries);
r 3532 net/pf.c else if (r->prob && r->prob <= arc4random())
r 3533 net/pf.c r = TAILQ_NEXT(r, entries);
r 3534 net/pf.c else if (r->match_tag && !pf_match_tag(m, r, &tag))
r 3535 net/pf.c r = TAILQ_NEXT(r, entries);
r 3537 net/pf.c if (r->anchor == NULL) {
r 3539 net/pf.c *rm = r;
r 3544 net/pf.c r = TAILQ_NEXT(r, entries);
r 3547 net/pf.c PF_RULESET_FILTER, &r, &a, &match);
r 3549 net/pf.c if (r == NULL && pf_step_out_of_anchor(&asd, &ruleset,
r 3550 net/pf.c PF_RULESET_FILTER, &r, &a, &match))
r 3553 net/pf.c r = *rm;
r 3559 net/pf.c if (r->log)
r 3560 net/pf.c PFLOG_PACKET(kif, h, m, af, direction, reason, r, a, ruleset,
r 3563 net/pf.c if (r->action != PF_PASS)
r 4941 net/pf.c pf_route(struct mbuf **m, struct pf_rule *r, int dir, struct ifnet *oifp,
r 4957 net/pf.c if (m == NULL || *m == NULL || r == NULL ||
r 4967 net/pf.c if (r->rt == PF_DUPTO) {
r 4971 net/pf.c if ((r->rt == PF_REPLYTO) == (r->direction == dir))
r 4991 net/pf.c if (r->rt == PF_FASTROUTE) {
r 5004 net/pf.c if (TAILQ_EMPTY(&r->rpool.list)) {
r 5010 net/pf.c pf_map_addr(AF_INET, r, (struct pf_addr *)&ip->ip_src,
r 5014 net/pf.c ifp = r->rpool.cur->kif ?
r 5015 net/pf.c r->rpool.cur->kif->pfik_ifp : NULL;
r 5092 net/pf.c if (r->rt != PF_DUPTO) {
r 5121 net/pf.c if (r->rt != PF_DUPTO)
r 5135 net/pf.c pf_route6(struct mbuf **m, struct pf_rule *r, int dir, struct ifnet *oifp,
r 5148 net/pf.c if (m == NULL || *m == NULL || r == NULL ||
r 5158 net/pf.c if (r->rt == PF_DUPTO) {
r 5162 net/pf.c if ((r->rt == PF_REPLYTO) == (r->direction == dir))
r 5182 net/pf.c if (r->rt == PF_FASTROUTE) {
r 5188 net/pf.c if (TAILQ_EMPTY(&r->rpool.list)) {
r 5194 net/pf.c pf_map_addr(AF_INET6, r, (struct pf_addr *)&ip6->ip6_src,
r 5199 net/pf.c ifp = r->rpool.cur->kif ? r->rpool.cur->kif->pfik_ifp : NULL;
r 5232 net/pf.c if (r->rt != PF_DUPTO)
r 5239 net/pf.c if (r->rt != PF_DUPTO)
r 5350 net/pf.c struct pf_rule *a = NULL, *r = &pf_default_rule, *tr, *nr;
r 5417 net/pf.c action = pf_test_fragment(&r, dir, kif, m, h,
r 5445 net/pf.c r = s->rule.ptr;
r 5449 net/pf.c action = pf_test_rule(&r, &s, dir, kif,
r 5475 net/pf.c r = s->rule.ptr;
r 5479 net/pf.c action = pf_test_rule(&r, &s, dir, kif,
r 5499 net/pf.c r = s->rule.ptr;
r 5503 net/pf.c action = pf_test_rule(&r, &s, dir, kif,
r 5514 net/pf.c r = s->rule.ptr;
r 5518 net/pf.c action = pf_test_rule(&r, &s, dir, kif, m, off, h,
r 5525 net/pf.c !((s && s->allow_opts) || r->allow_opts)) {
r 5533 net/pf.c if ((s && s->tag) || r->rtableid)
r 5534 net/pf.c pf_tag_packet(m, s ? s->tag : 0, r->rtableid);
r 5537 net/pf.c if (action == PF_PASS && r->qid) {
r 5539 net/pf.c m->m_pkthdr.pf.qid = r->pqid;
r 5541 net/pf.c m->m_pkthdr.pf.qid = r->qid;
r 5566 net/pf.c lr = r;
r 5574 net/pf.c if (action == PF_PASS || r->action == PF_DROP) {
r 5576 net/pf.c r->packets[dirndx]++;
r 5577 net/pf.c r->bytes[dirndx] += pd.tot_len;
r 5600 net/pf.c tr = r;
r 5609 net/pf.c if (r == &pf_default_rule) {
r 5628 net/pf.c pd.tot_len, dir == PF_OUT, r->action == PF_PASS,
r 5633 net/pf.c pd.tot_len, dir == PF_OUT, r->action == PF_PASS,
r 5642 net/pf.c } else if (r->rt)
r 5644 net/pf.c pf_route(m0, r, dir, kif->pfik_ifp, s, &pd);
r 5659 net/pf.c struct pf_rule *a = NULL, *r = &pf_default_rule, *tr, *nr;
r 5732 net/pf.c action = pf_test_fragment(&r, dir, kif, m, h,
r 5820 net/pf.c r = s->rule.ptr;
r 5824 net/pf.c action = pf_test_rule(&r, &s, dir, kif,
r 5850 net/pf.c r = s->rule.ptr;
r 5854 net/pf.c action = pf_test_rule(&r, &s, dir, kif,
r 5874 net/pf.c r = s->rule.ptr;
r 5878 net/pf.c action = pf_test_rule(&r, &s, dir, kif,
r 5889 net/pf.c r = s->rule.ptr;
r 5893 net/pf.c action = pf_test_rule(&r, &s, dir, kif, m, off, h,
r 5906 net/pf.c !((s && s->allow_opts) || r->allow_opts)) {
r 5914 net/pf.c if ((s && s->tag) || r->rtableid)
r 5915 net/pf.c pf_tag_packet(m, s ? s->tag : 0, r->rtableid);
r 5918 net/pf.c if (action == PF_PASS && r->qid) {
r 5920 net/pf.c m->m_pkthdr.pf.qid = r->pqid;
r 5922 net/pf.c m->m_pkthdr.pf.qid = r->qid;
r 5942 net/pf.c lr = r;
r 5950 net/pf.c if (action == PF_PASS || r->action == PF_DROP) {
r 5952 net/pf.c r->packets[dirndx]++;
r 5953 net/pf.c r->bytes[dirndx] += pd.tot_len;
r 5976 net/pf.c tr = r;
r 5985 net/pf.c if (r == &pf_default_rule) {
r 6003 net/pf.c pd.tot_len, dir == PF_OUT, r->action == PF_PASS,
r 6008 net/pf.c pd.tot_len, dir == PF_OUT, r->action == PF_PASS,
r 6017 net/pf.c } else if (r->rt)
r 6019 net/pf.c pf_route6(m0, r, dir, kif->pfik_ifp, s, &pd);
r 820 net/pf_norm.c struct pf_rule *r;
r 831 net/pf_norm.c r = TAILQ_FIRST(pf_main_ruleset.rules[PF_RULESET_SCRUB].active.ptr);
r 832 net/pf_norm.c while (r != NULL) {
r 833 net/pf_norm.c r->evaluations++;
r 834 net/pf_norm.c if (pfi_kif_match(r->kif, kif) == r->ifnot)
r 835 net/pf_norm.c r = r->skip[PF_SKIP_IFP].ptr;
r 836 net/pf_norm.c else if (r->direction && r->direction != dir)
r 837 net/pf_norm.c r = r->skip[PF_SKIP_DIR].ptr;
r 838 net/pf_norm.c else if (r->af && r->af != AF_INET)
r 839 net/pf_norm.c r = r->skip[PF_SKIP_AF].ptr;
r 840 net/pf_norm.c else if (r->proto && r->proto != h->ip_p)
r 841 net/pf_norm.c r = r->skip[PF_SKIP_PROTO].ptr;
r 842 net/pf_norm.c else if (PF_MISMATCHAW(&r->src.addr,
r 844 net/pf_norm.c r->src.neg, kif))
r 845 net/pf_norm.c r = r->skip[PF_SKIP_SRC_ADDR].ptr;
r 846 net/pf_norm.c else if (PF_MISMATCHAW(&r->dst.addr,
r 848 net/pf_norm.c r->dst.neg, NULL))
r 849 net/pf_norm.c r = r->skip[PF_SKIP_DST_ADDR].ptr;
r 854 net/pf_norm.c if (r == NULL || r->action == PF_NOSCRUB)
r 857 net/pf_norm.c r->packets[dir == PF_OUT]++;
r 858 net/pf_norm.c r->bytes[dir == PF_OUT] += pd->tot_len;
r 869 net/pf_norm.c if (r->rule_flag & PFRULE_NODF && h->ip_off & htons(IP_DF)) {
r 905 net/pf_norm.c if ((r->rule_flag & (PFRULE_FRAGCROP|PFRULE_FRAGDROP)) == 0) {
r 954 net/pf_norm.c if (r->rule_flag & PFRULE_FRAGDROP)
r 960 net/pf_norm.c (r->rule_flag & PFRULE_FRAGDROP) ? 1 : 0, &nomem);
r 985 net/pf_norm.c if (r->min_ttl && h->ip_ttl < r->min_ttl) {
r 988 net/pf_norm.c h->ip_ttl = r->min_ttl;
r 992 net/pf_norm.c if (r->rule_flag & PFRULE_RANDOMID) {
r 998 net/pf_norm.c if ((r->rule_flag & (PFRULE_FRAGCROP|PFRULE_FRAGDROP)) == 0)
r 1005 net/pf_norm.c if (r->min_ttl && h->ip_ttl < r->min_ttl) {
r 1008 net/pf_norm.c h->ip_ttl = r->min_ttl;
r 1011 net/pf_norm.c if ((r->rule_flag & (PFRULE_FRAGCROP|PFRULE_FRAGDROP)) == 0)
r 1017 net/pf_norm.c if (r != NULL && r->log)
r 1018 net/pf_norm.c PFLOG_PACKET(kif, h, m, AF_INET, dir, *reason, r, NULL, NULL, pd);
r 1023 net/pf_norm.c if (r != NULL && r->log)
r 1024 net/pf_norm.c PFLOG_PACKET(kif, h, m, AF_INET, dir, *reason, r, NULL, NULL, pd);
r 1035 net/pf_norm.c if (r != NULL && r->log)
r 1036 net/pf_norm.c PFLOG_PACKET(kif, h, m, AF_INET, dir, *reason, r, NULL, NULL, pd);
r 1047 net/pf_norm.c struct pf_rule *r;
r 1061 net/pf_norm.c r = TAILQ_FIRST(pf_main_ruleset.rules[PF_RULESET_SCRUB].active.ptr);
r 1062 net/pf_norm.c while (r != NULL) {
r 1063 net/pf_norm.c r->evaluations++;
r 1064 net/pf_norm.c if (pfi_kif_match(r->kif, kif) == r->ifnot)
r 1065 net/pf_norm.c r = r->skip[PF_SKIP_IFP].ptr;
r 1066 net/pf_norm.c else if (r->direction && r->direction != dir)
r 1067 net/pf_norm.c r = r->skip[PF_SKIP_DIR].ptr;
r 1068 net/pf_norm.c else if (r->af && r->af != AF_INET6)
r 1069 net/pf_norm.c r = r->skip[PF_SKIP_AF].ptr;
r 1071 net/pf_norm.c else if (r->proto && r->proto != h->ip6_nxt)
r 1072 net/pf_norm.c r = r->skip[PF_SKIP_PROTO].ptr;
r 1074 net/pf_norm.c else if (PF_MISMATCHAW(&r->src.addr,
r 1076 net/pf_norm.c r->src.neg, kif))
r 1077 net/pf_norm.c r = r->skip[PF_SKIP_SRC_ADDR].ptr;
r 1078 net/pf_norm.c else if (PF_MISMATCHAW(&r->dst.addr,
r 1080 net/pf_norm.c r->dst.neg, NULL))
r 1081 net/pf_norm.c r = r->skip[PF_SKIP_DST_ADDR].ptr;
r 1086 net/pf_norm.c if (r == NULL || r->action == PF_NOSCRUB)
r 1089 net/pf_norm.c r->packets[dir == PF_OUT]++;
r 1090 net/pf_norm.c r->bytes[dir == PF_OUT] += pd->tot_len;
r 1180 net/pf_norm.c if (r->min_ttl && h->ip6_hlim < r->min_ttl)
r 1181 net/pf_norm.c h->ip6_hlim = r->min_ttl;
r 1202 net/pf_norm.c if (r != NULL && r->log)
r 1203 net/pf_norm.c PFLOG_PACKET(kif, h, m, AF_INET6, dir, *reason, r, NULL, NULL, pd);
r 1208 net/pf_norm.c if (r != NULL && r->log)
r 1209 net/pf_norm.c PFLOG_PACKET(kif, h, m, AF_INET6, dir, *reason, r, NULL, NULL, pd);
r 1214 net/pf_norm.c if (r != NULL && r->log)
r 1215 net/pf_norm.c PFLOG_PACKET(kif, h, m, AF_INET6, dir, *reason, r, NULL, NULL, pd);
r 1224 net/pf_norm.c struct pf_rule *r, *rm = NULL;
r 1231 net/pf_norm.c r = TAILQ_FIRST(pf_main_ruleset.rules[PF_RULESET_SCRUB].active.ptr);
r 1232 net/pf_norm.c while (r != NULL) {
r 1233 net/pf_norm.c r->evaluations++;
r 1234 net/pf_norm.c if (pfi_kif_match(r->kif, kif) == r->ifnot)
r 1235 net/pf_norm.c r = r->skip[PF_SKIP_IFP].ptr;
r 1236 net/pf_norm.c else if (r->direction && r->direction != dir)
r 1237 net/pf_norm.c r = r->skip[PF_SKIP_DIR].ptr;
r 1238 net/pf_norm.c else if (r->af && r->af != af)
r 1239 net/pf_norm.c r = r->skip[PF_SKIP_AF].ptr;
r 1240 net/pf_norm.c else if (r->proto && r->proto != pd->proto)
r 1241 net/pf_norm.c r = r->skip[PF_SKIP_PROTO].ptr;
r 1242 net/pf_norm.c else if (PF_MISMATCHAW(&r->src.addr, pd->src, af,
r 1243 net/pf_norm.c r->src.neg, kif))
r 1244 net/pf_norm.c r = r->skip[PF_SKIP_SRC_ADDR].ptr;
r 1245 net/pf_norm.c else if (r->src.port_op && !pf_match_port(r->src.port_op,
r 1246 net/pf_norm.c r->src.port[0], r->src.port[1], th->th_sport))
r 1247 net/pf_norm.c r = r->skip[PF_SKIP_SRC_PORT].ptr;
r 1248 net/pf_norm.c else if (PF_MISMATCHAW(&r->dst.addr, pd->dst, af,
r 1249 net/pf_norm.c r->dst.neg, NULL))
r 1250 net/pf_norm.c r = r->skip[PF_SKIP_DST_ADDR].ptr;
r 1251 net/pf_norm.c else if (r->dst.port_op && !pf_match_port(r->dst.port_op,
r 1252 net/pf_norm.c r->dst.port[0], r->dst.port[1], th->th_dport))
r 1253 net/pf_norm.c r = r->skip[PF_SKIP_DST_PORT].ptr;
r 1254 net/pf_norm.c else if (r->os_fingerprint != PF_OSFP_ANY && !pf_osfp_match(
r 1256 net/pf_norm.c r->os_fingerprint))
r 1257 net/pf_norm.c r = TAILQ_NEXT(r, entries);
r 1259 net/pf_norm.c rm = r;
r 1267 net/pf_norm.c r->packets[dir == PF_OUT]++;
r 1268 net/pf_norm.c r->bytes[dir == PF_OUT] += pd->tot_len;
r 1319 net/pf_norm.c if (r->max_mss && pf_normalize_tcpopt(r, m, th, off))
r 1330 net/pf_norm.c if (rm != NULL && r->log)
r 1331 net/pf_norm.c PFLOG_PACKET(kif, h, m, AF_INET, dir, reason, r, NULL, NULL, pd);
r 1821 net/pf_norm.c pf_normalize_tcpopt(struct pf_rule *r, struct mbuf *m, struct tcphdr *th,
r 1850 net/pf_norm.c if ((ntohs(*mss)) > r->max_mss) {
r 1852 net/pf_norm.c *mss, htons(r->max_mss), 0);
r 1853 net/pf_norm.c *mss = htons(r->max_mss);
r 185 net/pf_ruleset.c char *p, *q, *r;
r 215 net/pf_ruleset.c while ((r = strchr(q, '/')) != NULL || *q) {
r 216 net/pf_ruleset.c if (r != NULL)
r 217 net/pf_ruleset.c *r = 0;
r 265 net/pf_ruleset.c if (r != NULL)
r 266 net/pf_ruleset.c q = r + 1;
r 303 net/pf_ruleset.c pf_anchor_setup(struct pf_rule *r, const struct pf_ruleset *s,
r 309 net/pf_ruleset.c r->anchor = NULL;
r 310 net/pf_ruleset.c r->anchor_relative = 0;
r 311 net/pf_ruleset.c r->anchor_wildcard = 0;
r 320 net/pf_ruleset.c r->anchor_relative = 1;
r 335 net/pf_ruleset.c r->anchor_relative++;
r 343 net/pf_ruleset.c r->anchor_wildcard = 1;
r 352 net/pf_ruleset.c r->anchor = ruleset->anchor;
r 353 net/pf_ruleset.c r->anchor->refcnt++;
r 358 net/pf_ruleset.c pf_anchor_copyout(const struct pf_ruleset *rs, const struct pf_rule *r,
r 362 net/pf_ruleset.c if (r->anchor == NULL)
r 364 net/pf_ruleset.c if (!r->anchor_relative) {
r 366 net/pf_ruleset.c strlcat(pr->anchor_call, r->anchor->path,
r 378 net/pf_ruleset.c for (i = 1; i < r->anchor_relative; ++i) {
r 385 net/pf_ruleset.c if (strncmp(a, r->anchor->path, strlen(a))) {
r 387 net/pf_ruleset.c r->anchor->path);
r 391 net/pf_ruleset.c if (strlen(r->anchor->path) > strlen(a))
r 392 net/pf_ruleset.c strlcat(pr->anchor_call, r->anchor->path + (a[0] ?
r 396 net/pf_ruleset.c if (r->anchor_wildcard)
r 403 net/pf_ruleset.c pf_anchor_remove(struct pf_rule *r)
r 405 net/pf_ruleset.c if (r->anchor == NULL)
r 407 net/pf_ruleset.c if (r->anchor->refcnt <= 0) {
r 409 net/pf_ruleset.c r->anchor = NULL;
r 412 net/pf_ruleset.c if (!--r->anchor->refcnt)
r 413 net/pf_ruleset.c pf_remove_if_empty_ruleset(&r->anchor->ruleset);
r 414 net/pf_ruleset.c r->anchor = NULL;
r 1162 net/pf_table.c struct pfr_ktable *p, *q, *r, key;
r 1192 net/pf_table.c r = RB_FIND(pfr_ktablehead, &pfr_ktables, &key);
r 1193 net/pf_table.c if (r != NULL) {
r 1194 net/pf_table.c p->pfrkt_root = r;
r 1204 net/pf_table.c r = pfr_create_ktable(&key.pfrkt_t, 0, 1);
r 1205 net/pf_table.c if (r == NULL)
r 1207 net/pf_table.c SLIST_INSERT_HEAD(&addq, r, pfrkt_workq);
r 1208 net/pf_table.c p->pfrkt_root = r;
r 242 net/ppp-deflate.c int proto, olen, wspace, r, flush;
r 299 net/ppp-deflate.c r = deflate(&state->strm, flush);
r 300 net/ppp-deflate.c if (r != Z_OK) {
r 302 net/ppp-deflate.c r, (state->strm.msg? state->strm.msg: ""));
r 491 net/ppp-deflate.c int seq, i, flush, r, decode_proto;
r 561 net/ppp-deflate.c r = inflate(&state->strm, flush);
r 562 net/ppp-deflate.c if (r != Z_OK) {
r 567 net/ppp-deflate.c state->unit, r, (state->strm.msg? state->strm.msg: ""));
r 637 net/ppp-deflate.c int rlen, proto, r;
r 663 net/ppp-deflate.c r = inflateIncomp(&state->strm);
r 664 net/ppp-deflate.c if (r != Z_OK) {
r 670 net/ppp-deflate.c state->unit, r, (state->strm.msg? state->strm.msg: ""));
r 1089 net/route.c #define RTTIMER_CALLOUT(r) { \
r 1090 net/route.c if (r->rtt_func != NULL) { \
r 1091 net/route.c (*r->rtt_func)(r->rtt_rt, r); \
r 1094 net/route.c (struct sockaddr *)rt_key(r->rtt_rt), \
r 1153 net/route.c struct rttimer *r;
r 1155 net/route.c while ((r = TAILQ_FIRST(&rtq->rtq_head)) != NULL) {
r 1156 net/route.c LIST_REMOVE(r, rtt_link);
r 1157 net/route.c TAILQ_REMOVE(&rtq->rtq_head, r, rtt_next);
r 1159 net/route.c RTTIMER_CALLOUT(r);
r 1160 net/route.c pool_put(&rttimer_pool, r);
r 1183 net/route.c struct rttimer *r;
r 1185 net/route.c while ((r = LIST_FIRST(&rt->rt_timer)) != NULL) {
r 1186 net/route.c LIST_REMOVE(r, rtt_link);
r 1187 net/route.c TAILQ_REMOVE(&r->rtt_queue->rtq_head, r, rtt_next);
r 1188 net/route.c if (r->rtt_queue->rtq_count > 0)
r 1189 net/route.c r->rtt_queue->rtq_count--;
r 1192 net/route.c pool_put(&rttimer_pool, r);
r 1200 net/route.c struct rttimer *r;
r 1210 net/route.c for (r = LIST_FIRST(&rt->rt_timer); r != NULL;
r 1211 net/route.c r = LIST_NEXT(r, rtt_link)) {
r 1212 net/route.c if (r->rtt_func == func) {
r 1213 net/route.c LIST_REMOVE(r, rtt_link);
r 1214 net/route.c TAILQ_REMOVE(&r->rtt_queue->rtq_head, r, rtt_next);
r 1215 net/route.c if (r->rtt_queue->rtq_count > 0)
r 1216 net/route.c r->rtt_queue->rtq_count--;
r 1219 net/route.c pool_put(&rttimer_pool, r);
r 1224 net/route.c r = pool_get(&rttimer_pool, PR_NOWAIT);
r 1225 net/route.c if (r == NULL)
r 1227 net/route.c Bzero(r, sizeof(*r));
r 1229 net/route.c r->rtt_rt = rt;
r 1230 net/route.c r->rtt_time = current_time;
r 1231 net/route.c r->rtt_func = func;
r 1232 net/route.c r->rtt_queue = queue;
r 1233 net/route.c LIST_INSERT_HEAD(&rt->rt_timer, r, rtt_link);
r 1234 net/route.c TAILQ_INSERT_TAIL(&queue->rtq_head, r, rtt_next);
r 1235 net/route.c r->rtt_queue->rtq_count++;
r 1263 net/route.c struct rttimer *r;
r 1272 net/route.c while ((r = TAILQ_FIRST(&rtq->rtq_head)) != NULL &&
r 1273 net/route.c (r->rtt_time + rtq->rtq_timeout) < current_time) {
r 1274 net/route.c LIST_REMOVE(r, rtt_link);
r 1275 net/route.c TAILQ_REMOVE(&rtq->rtq_head, r, rtt_next);
r 1276 net/route.c RTTIMER_CALLOUT(r);
r 1277 net/route.c pool_put(&rttimer_pool, r);
r 93 net/route.h #define RTTTOPRHZ(r) ((r) / (RTM_RTTUNIT / PR_SLOWHZ))
r 109 net/route.h #define rt_key(r) ((struct sockaddr *)((r)->rt_nodes->rn_key))
r 110 net/route.h #define rt_mask(r) ((struct sockaddr *)((r)->rt_nodes->rn_mask))
r 347 net/route.h #define rtalloc_mpath(r, s, t) rtalloc(r)
r 2867 net/zlib.c #define NEEDBYTE {if(z->avail_in==0)goto empty;r=Z_OK;}
r 2874 net/zlib.c int r;
r 2879 net/zlib.c r = Z_BUF_ERROR;
r 2918 net/zlib.c r = inflate_blocks(z->state->blocks, z, r);
r 2920 net/zlib.c r = inflate_packet_flush(z->state->blocks);
r 2921 net/zlib.c if (r == Z_DATA_ERROR)
r 2927 net/zlib.c if (r != Z_STREAM_END)
r 2928 net/zlib.c return r;
r 2929 net/zlib.c r = Z_OK;
r 2972 net/zlib.c return r;
r 3002 net/zlib.c uLong r, w; /* temporaries to save total_in and total_out */
r 3038 net/zlib.c r = z->total_in; w = z->total_out;
r 3040 net/zlib.c z->total_in = r; z->total_out = w;
r 3114 net/zlib.c #define LEAVE {UPDATE return inflate_flush(s,z,r);}
r 3117 net/zlib.c #define NEEDBYTE {if(n)r=Z_OK;else LEAVE}
r 3125 net/zlib.c #define FLUSH {UPDOUT r=inflate_flush(s,z,r); LOADOUT}
r 3126 net/zlib.c #define NEEDOUT {if(m==0){WRAP if(m==0){FLUSH WRAP if(m==0) LEAVE}}r=Z_OK;}
r 3269 net/zlib.c local int inflate_blocks(s, z, r)
r 3272 net/zlib.c int r;
r 3313 net/zlib.c r = Z_MEM_ERROR;
r 3332 net/zlib.c r = Z_DATA_ERROR;
r 3342 net/zlib.c r = Z_DATA_ERROR;
r 3375 net/zlib.c r = Z_DATA_ERROR;
r 3384 net/zlib.c r = Z_MEM_ERROR;
r 3406 net/zlib.c r = t;
r 3407 net/zlib.c if (r == Z_DATA_ERROR)
r 3449 net/zlib.c r = Z_DATA_ERROR;
r 3478 net/zlib.c r = t;
r 3486 net/zlib.c r = Z_MEM_ERROR;
r 3497 net/zlib.c if ((r = inflate_codes(s, z, r)) != Z_STREAM_END)
r 3498 net/zlib.c return inflate_flush(s, z, r);
r 3499 net/zlib.c r = Z_OK;
r 3526 net/zlib.c r = Z_STREAM_END;
r 3529 net/zlib.c r = Z_DATA_ERROR;
r 3532 net/zlib.c r = Z_STREAM_ERROR;
r 3736 net/zlib.c struct inflate_huft_s r; /* table entry for structure assignment */
r 3864 net/zlib.c r.bits = (Byte)l; /* bits to dump before this table */
r 3865 net/zlib.c r.exop = (Byte)j; /* bits in this table */
r 3866 net/zlib.c r.next = q; /* pointer to this table */
r 3868 net/zlib.c u[h-1][j] = r; /* connect to last table */
r 3873 net/zlib.c r.bits = (Byte)(k - w);
r 3875 net/zlib.c r.exop = 128 + 64; /* out of values--invalid code */
r 3878 net/zlib.c r.exop = (Byte)(*p < 256 ? 0 : 32 + 64); /* 256 is end-of-block */
r 3879 net/zlib.c r.base = *p++; /* simple code is just the value */
r 3883 net/zlib.c r.exop = (Byte)e[*p - s] + 16 + 64; /* non-simple--look up in lists */
r 3884 net/zlib.c r.base = d[*p++ - s];
r 3890 net/zlib.c q[j] = r;
r 3918 net/zlib.c int r;
r 3920 net/zlib.c r = huft_build(c, 19, 19, (uIntf*)Z_NULL, (uIntf*)Z_NULL, tb, bb, z);
r 3921 net/zlib.c if (r == Z_DATA_ERROR)
r 3923 net/zlib.c else if (r == Z_BUF_ERROR)
r 3927 net/zlib.c r = Z_DATA_ERROR;
r 3929 net/zlib.c return r;
r 3943 net/zlib.c int r;
r 3946 net/zlib.c if ((r = huft_build(c, nl, 257, cplens, cplext, tl, bl, z)) != Z_OK)
r 3948 net/zlib.c if (r == Z_DATA_ERROR)
r 3950 net/zlib.c else if (r == Z_BUF_ERROR)
r 3954 net/zlib.c r = Z_DATA_ERROR;
r 3956 net/zlib.c return r;
r 3960 net/zlib.c if ((r = huft_build(c + nl, nd, 0, cpdist, cpdext, td, bd, z)) != Z_OK)
r 3962 net/zlib.c if (r == Z_DATA_ERROR)
r 3964 net/zlib.c else if (r == Z_BUF_ERROR) {
r 3966 net/zlib.c r = Z_OK;
r 3971 net/zlib.c r = Z_DATA_ERROR;
r 3974 net/zlib.c return r;
r 4161 net/zlib.c local int inflate_codes(s, z, r)
r 4164 net/zlib.c int r;
r 4189 net/zlib.c r = inflate_fast(c->lbits, c->dbits, c->ltree, c->dtree, s, z);
r 4191 net/zlib.c if (r != Z_OK)
r 4193 net/zlib.c c->mode = r == Z_STREAM_END ? WASH : BADCODE;
r 4237 net/zlib.c r = Z_DATA_ERROR;
r 4269 net/zlib.c r = Z_DATA_ERROR;
r 4309 net/zlib.c r = Z_STREAM_END;
r 4312 net/zlib.c r = Z_DATA_ERROR;
r 4315 net/zlib.c r = Z_STREAM_ERROR;
r 4336 net/zlib.c local int inflate_flush(s, z, r)
r 4339 net/zlib.c int r;
r 4351 net/zlib.c if (n && r == Z_BUF_ERROR) r = Z_OK;
r 4379 net/zlib.c if (n && r == Z_BUF_ERROR) r = Z_OK;
r 4402 net/zlib.c return r;
r 4445 net/zlib.c Bytef *r; /* copy source pointer */
r 4496 net/zlib.c r = q - d;
r 4497 net/zlib.c *q++ = *r++; c--; /* minimum count is three, */
r 4498 net/zlib.c *q++ = *r++; c--; /* so unroll loop a little */
r 4503 net/zlib.c r = s->end - e; /* pointer to offset */
r 4508 net/zlib.c *q++ = *r++;
r 4510 net/zlib.c r = s->window; /* copy rest from start of window */
r 4514 net/zlib.c *q++ = *r++;
r 258 net80211/ieee80211.c int i, j, mode, rate, maxrate, mword, mopt, r;
r 315 net80211/ieee80211.c r = rate & IEEE80211_RATE_VAL;
r 317 net80211/ieee80211.c if (allrates.rs_rates[j] == r)
r 321 net80211/ieee80211.c allrates.rs_rates[j] = r;
r 825 net80211/ieee80211.c u_int r; /* if_media rate */
r 884 net80211/ieee80211.c return rates[i].r;
r 611 net80211/ieee80211_crypto.c u_int8_t *a, *r, ar[16];
r 624 net80211/ieee80211_crypto.c r = ct + 8;
r 627 net80211/ieee80211_crypto.c memcpy(ar + 8, r, 8);
r 631 net80211/ieee80211_crypto.c memcpy(r, &b[1], 8);
r 633 net80211/ieee80211_crypto.c r += 8;
r 643 net80211/ieee80211_crypto.c u_int8_t a[8], *r, b[16];
r 655 net80211/ieee80211_crypto.c r = pt + (len - 1) * 8;
r 659 net80211/ieee80211_crypto.c memcpy(&ar[1], r, 8);
r 662 net80211/ieee80211_crypto.c memcpy(r, b + 8, 8);
r 664 net80211/ieee80211_crypto.c r -= 8;
r 220 net80211/ieee80211_proto.c u_int8_t r;
r 242 net80211/ieee80211_proto.c r = nrs->rs_rates[i];
r 244 net80211/ieee80211_proto.c nrs->rs_rates[j] = r;
r 248 net80211/ieee80211_proto.c r = nrs->rs_rates[i] & IEEE80211_RATE_VAL;
r 249 net80211/ieee80211_proto.c badrate = r;
r 254 net80211/ieee80211_proto.c if (r == RV(srs->rs_rates[ic->ic_fixed_rate]))
r 255 net80211/ieee80211_proto.c fixedrate = r;
r 262 net80211/ieee80211_proto.c if (r == RV(srs->rs_rates[j])) {
r 957 netinet/ip_icmp.c icmp_mtudisc_timeout(struct rtentry *rt, struct rttimer *r)
r 1003 netinet/ip_icmp.c icmp_redirect_timeout(struct rtentry *rt, struct rttimer *r)
r 2812 netinet6/icmp6.c icmp6_mtudisc_timeout(rt, r)
r 2814 netinet6/icmp6.c struct rttimer *r;
r 2829 netinet6/icmp6.c icmp6_redirect_timeout(rt, r)
r 2831 netinet6/icmp6.c struct rttimer *r;
r 2138 netinet6/in6.c u_char *lim = s + 16, r;
r 2141 netinet6/in6.c if ((r = (*d++ ^ *s++)) != 0) {
r 2142 netinet6/in6.c while (r < 128) {
r 2144 netinet6/in6.c r <<= 1;
r 464 netinet6/ip6_input.c #define rt6_key(r) ((struct sockaddr_in6 *)((r)->rt_nodes->rn_key))
r 90 nfs/nfs_socket.c #define NFS_SRTT(r) (r)->r_nmp->nm_srtt[proct[(r)->r_procnum] - 1]
r 91 nfs/nfs_socket.c #define NFS_SDRTT(r) (r)->r_nmp->nm_sdrtt[proct[(r)->r_procnum] - 1]
r 443 nfs/nfsm_subs.h #define nfsm_srvpostop_attr(r, a) \
r 444 nfs/nfsm_subs.h nfsm_srvpostopattr(nfsd, (r), (a), &mb, &bpos)
r 262 ufs/ext2fs/ext2fs_balloc.c int r;
r 264 ufs/ext2fs/ext2fs_balloc.c r = bread(vp, indirs[unwindidx].in_lbn,
r 266 ufs/ext2fs/ext2fs_balloc.c if (r) {
r 267 ufs/ext2fs/ext2fs_balloc.c panic("Could not unwind indirect block, error %d", r);
r 408 ufs/ffs/ffs_balloc.c int r;
r 410 ufs/ffs/ffs_balloc.c r = bread(vp, indirs[unwindidx].in_lbn,
r 412 ufs/ffs/ffs_balloc.c if (r)
r 413 ufs/ffs/ffs_balloc.c panic("Could not unwind indirect block, error %d", r);
r 443 ufs/ffs/ffs_balloc.c int deallocated, osize, nsize, num, i, error, unwindidx, r;
r 857 ufs/ffs/ffs_balloc.c r = bread(vp, indirs[unwindidx].in_lbn,
r 859 ufs/ffs/ffs_balloc.c if (r)