Symbol: res
bin/cpdup/cpdup.c
1772
int res;
bin/cpdup/cpdup.c
1774
res = hc_remove(host, path);
bin/cpdup/cpdup.c
1776
if (res == -EPERM) {
bin/cpdup/cpdup.c
1781
res = hc_remove(host, path);
bin/cpdup/cpdup.c
1784
return(res);
bin/cpdup/cpdup.c
1790
int res;
bin/cpdup/cpdup.c
1792
res = hc_rmdir(host, path);
bin/cpdup/cpdup.c
1794
if (res == -EPERM) {
bin/cpdup/cpdup.c
1796
res = hc_rmdir(host, path);
bin/cpdup/cpdup.c
1799
return(res);
bin/cpdup/cpdup.c
1831
int res = 0;
bin/cpdup/cpdup.c
1835
res = 1;
bin/cpdup/cpdup.c
1837
res = 1;
bin/cpdup/cpdup.c
1839
res = 1;
bin/cpdup/cpdup.c
1841
return res;
bin/cpdup/hcproto.c
1092
int res;
bin/cpdup/hcproto.c
1097
res = remove(path);
bin/cpdup/hcproto.c
1098
if (res < 0)
bin/cpdup/hcproto.c
1099
res = -errno;
bin/cpdup/hcproto.c
1100
return(res);
bin/dd/args.c
181
uintmax_t res;
bin/dd/args.c
183
res = get_num(arg);
bin/dd/args.c
184
if (res < 1 || res > SSIZE_MAX)
bin/dd/args.c
186
in.dbsz = out.dbsz = (size_t)res;
bin/dd/args.c
192
uintmax_t res;
bin/dd/args.c
194
res = get_num(arg);
bin/dd/args.c
195
if (res < 1 || res > SSIZE_MAX)
bin/dd/args.c
197
cbsz = (size_t)res;
bin/dd/args.c
203
uintmax_t res;
bin/dd/args.c
205
res = get_num(arg);
bin/dd/args.c
206
if (res == UINTMAX_MAX)
bin/dd/args.c
208
if (res == 0)
bin/dd/args.c
211
cpy_cnt = res;
bin/dd/args.c
234
uintmax_t res;
bin/dd/args.c
237
res = get_num(arg);
bin/dd/args.c
238
if (res < 1 || res > SSIZE_MAX)
bin/dd/args.c
240
in.dbsz = (size_t)res;
bin/dd/args.c
253
uintmax_t res;
bin/dd/args.c
256
res = get_num(arg);
bin/dd/args.c
257
if (res < 1 || res > SSIZE_MAX)
bin/dd/args.c
259
out.dbsz = (size_t)res;
bin/dd/misc.c
57
double secs, res;
bin/dd/misc.c
65
res = ts_res.tv_sec + ts_res.tv_nsec * 1e-9;
bin/dd/misc.c
66
if (secs < res)
bin/dd/misc.c
67
secs = res;
bin/mkdir/mkdir.c
199
int res;
bin/mkdir/mkdir.c
202
res = mkdir(path, nmode);
bin/mkdir/mkdir.c
203
if (res < 0 && errno == EEXIST) {
bin/mkdir/mkdir.c
206
res = mkdir(path, nmode);
bin/mkdir/mkdir.c
208
return (res);
bin/pax/ar_io.c
1000
if (res < 0) {
bin/pax/ar_io.c
1036
while ((res = read(arfd, scbuf, sizeof(scbuf))) > 0)
bin/pax/ar_io.c
1038
if (res < 0) {
bin/pax/ar_io.c
411
int res;
bin/pax/ar_io.c
425
while ((res = read(arfd, drbuf, sizeof(drbuf))) > 0)
bin/pax/ar_io.c
427
lstrval = res;
bin/pax/ar_io.c
505
int res = 0;
bin/pax/ar_io.c
518
if ((res = read(arfd, buf, cnt)) > 0) {
bin/pax/ar_io.c
527
if (res != rdblksz) {
bin/pax/ar_io.c
537
rdblksz = res;
bin/pax/ar_io.c
541
return(res);
bin/pax/ar_io.c
556
if ((res = read(arfd, buf, cnt)) > 0) {
bin/pax/ar_io.c
558
return(res);
bin/pax/ar_io.c
566
lstrval = res;
bin/pax/ar_io.c
567
if (res < 0)
bin/pax/ar_io.c
571
return(res);
bin/pax/ar_io.c
588
int res;
bin/pax/ar_io.c
598
if ((res = write(arfd, buf, bsz)) == bsz) {
bin/pax/ar_io.c
607
if (res < 0)
bin/pax/ar_io.c
608
lstrval = res;
bin/pax/ar_io.c
614
if ((res > 0) && (res % BLKMULT)) {
bin/pax/ar_io.c
622
cpos -= (off_t)res;
bin/pax/ar_io.c
625
res = lstrval = 0;
bin/pax/ar_io.c
628
if (res >= 0)
bin/pax/ar_io.c
634
res = lstrval = 0;
bin/pax/ar_io.c
639
if (res >= 0)
bin/pax/ar_io.c
651
res = lstrval = 0;
bin/pax/ar_io.c
669
if (res >= 0) {
bin/pax/ar_io.c
670
if (res > 0)
bin/pax/ar_io.c
679
if (!wr_trail && (res <= 0)) {
bin/pax/ar_io.c
681
return(res);
bin/pax/ar_io.c
684
if (res == 0)
bin/pax/ar_io.c
686
else if (res < 0)
bin/pax/ar_io.c
688
else if (!frmt->blkalgn || ((res % frmt->blkalgn) == 0))
bin/pax/ar_io.c
692
return(res);
bin/pax/ar_io.c
984
int res;
bin/pax/ar_io.c
998
while ((res = read(arfd, scbuf, sizeof(scbuf))) > 0)
bin/pax/ar_io.c
999
padsz += res;
bin/pax/ar_subs.c
102
if ((res == 0) && (sel_chk(arcn) == 0)) {
bin/pax/ar_subs.c
1021
res = hsz;
bin/pax/ar_subs.c
1059
res = hsz;
bin/pax/ar_subs.c
1082
res = 1;
bin/pax/ar_subs.c
1118
int res;
bin/pax/ar_subs.c
113
if ((res = mod_name(arcn)) < 0)
bin/pax/ar_subs.c
1133
res = BLKMULT;
bin/pax/ar_subs.c
1141
i = rd_wrbuf(hdend, res);
bin/pax/ar_subs.c
115
if (res == 0)
bin/pax/ar_subs.c
1159
res = BLKMULT;
bin/pax/ar_subs.c
1212
res = BLKMULT - hdsz;
bin/pax/ar_subs.c
1215
res = BLKMULT;
bin/pax/ar_subs.c
147
int res;
bin/pax/ar_subs.c
183
if ((res = pat_match(arcn)) < 0)
bin/pax/ar_subs.c
186
if ((res > 0) || (sel_chk(arcn) != 0)) {
bin/pax/ar_subs.c
226
if ((pat_sel(arcn) < 0) || ((res = mod_name(arcn)) < 0))
bin/pax/ar_subs.c
228
if (res > 0) {
bin/pax/ar_subs.c
286
res = lnk_creat(arcn);
bin/pax/ar_subs.c
288
res = node_creat(arcn);
bin/pax/ar_subs.c
291
if (res < 0)
bin/pax/ar_subs.c
313
res = (*frmt->rd_data)(arcn, fd, &cnt);
bin/pax/ar_subs.c
319
if (!res)
bin/pax/ar_subs.c
352
int res;
bin/pax/ar_subs.c
403
if ((res = chk_ftime(arcn)) < 0)
bin/pax/ar_subs.c
405
if (res > 0)
bin/pax/ar_subs.c
436
if ((res = mod_name(arcn)) < 0) {
bin/pax/ar_subs.c
446
if ((res > 0) || (docrc && (set_crc(arcn, fd) < 0))) {
bin/pax/ar_subs.c
470
if ((res = (*wrf)(arcn)) < 0) {
bin/pax/ar_subs.c
475
if (res > 0) {
bin/pax/ar_subs.c
496
res = (*frmt->wr_data)(arcn, fd, &cnt);
bin/pax/ar_subs.c
502
if (res < 0)
bin/pax/ar_subs.c
556
int res;
bin/pax/ar_subs.c
634
if ((res = chk_ftime(arcn)) < 0)
bin/pax/ar_subs.c
636
if (res > 0) {
bin/pax/ar_subs.c
718
int res;
bin/pax/ar_subs.c
73
int res;
bin/pax/ar_subs.c
798
res = 1;
bin/pax/ar_subs.c
800
res = 0;
bin/pax/ar_subs.c
801
if ((arcn->nlen - res) > drem) {
bin/pax/ar_subs.c
806
strncpy(dest_pt, arcn->name + res, drem);
bin/pax/ar_subs.c
812
res = lstat(dirbuf, &sb);
bin/pax/ar_subs.c
815
if (res == 0) {
bin/pax/ar_subs.c
834
if ((chk_lnk(arcn) < 0) || ((res = mod_name(arcn)) < 0))
bin/pax/ar_subs.c
836
if ((res > 0) || (set_dest(arcn, dirbuf, dlen) < 0)) {
bin/pax/ar_subs.c
871
res = cross_lnk(arcn);
bin/pax/ar_subs.c
873
res = chk_same(arcn);
bin/pax/ar_subs.c
874
if (res <= 0) {
bin/pax/ar_subs.c
890
res = lnk_creat(arcn);
bin/pax/ar_subs.c
892
res = node_creat(arcn);
bin/pax/ar_subs.c
893
if (res < 0)
bin/pax/ar_subs.c
966
int res;
bin/pax/ar_subs.c
977
res = hsz = frmt->hsz;
bin/pax/ar_subs.c
986
if ((ret = rd_wrbuf(hdend, res)) == res)
bin/pax/ar_subs.c
99
if ((res = pat_match(arcn)) < 0)
bin/pax/buf_subs.c
206
int res;
bin/pax/buf_subs.c
256
if ((res = ar_read(bufpt, rdblksz)) <= 0)
bin/pax/buf_subs.c
258
bufpt += res;
bin/pax/buf_subs.c
306
int res;
bin/pax/buf_subs.c
329
if ((res = ar_read(buf, blksz)) > 0) {
bin/pax/buf_subs.c
334
bufend = buf + res;
bin/pax/buf_subs.c
335
rdcnt += res;
bin/pax/buf_subs.c
389
off_t res;
bin/pax/buf_subs.c
401
res = MIN((bufend - bufpt), skcnt);
bin/pax/buf_subs.c
402
bufpt += res;
bin/pax/buf_subs.c
403
skcnt -= res;
bin/pax/buf_subs.c
415
res = skcnt%rdblksz;
bin/pax/buf_subs.c
424
res += cnt - skipped;
bin/pax/buf_subs.c
431
while (res > 0L) {
bin/pax/buf_subs.c
440
cnt = MIN(cnt, res);
bin/pax/buf_subs.c
442
res -= cnt;
bin/pax/buf_subs.c
515
int res;
bin/pax/buf_subs.c
531
if ((res = cpcnt - incnt) > 0)
bin/pax/buf_subs.c
532
return(res);
bin/pax/buf_subs.c
602
int res = 0;
bin/pax/buf_subs.c
616
if ((res = read(ifd, bufpt, cnt)) <= 0)
bin/pax/buf_subs.c
618
size -= res;
bin/pax/buf_subs.c
619
bufpt += res;
bin/pax/buf_subs.c
626
if (res < 0)
bin/pax/buf_subs.c
664
int res = 0;
bin/pax/buf_subs.c
699
if ((res = file_write(ofd,bufpt,cnt,&rem,&isem,sz,fnm)) <= 0) {
bin/pax/buf_subs.c
708
cnt = res;
bin/pax/buf_subs.c
712
bufpt += res;
bin/pax/buf_subs.c
713
size -= res;
bin/pax/buf_subs.c
752
int res = 0;
bin/pax/buf_subs.c
785
res = write(fd2, buf, cnt);
bin/pax/buf_subs.c
787
res = file_write(fd2, buf, cnt, &rem, &isem, sz, fnm);
bin/pax/buf_subs.c
788
if (res != cnt)
bin/pax/buf_subs.c
796
if (res < 0)
bin/pax/file_subs.c
131
int res = 0;
bin/pax/file_subs.c
145
res = set_ids(arcn->name, arcn->sb.st_uid, arcn->sb.st_gid);
bin/pax/file_subs.c
152
if (!pmode || res)
bin/pax/file_subs.c
339
int res;
bin/pax/file_subs.c
357
res = mkdir(arcn->name, file_mode);
bin/pax/file_subs.c
359
res = 0;
bin/pax/file_subs.c
363
res = mknod(arcn->name, file_mode, arcn->sb.st_rdev);
bin/pax/file_subs.c
367
res = mknod(arcn->name, file_mode, arcn->sb.st_rdev);
bin/pax/file_subs.c
370
res = mkfifo(arcn->name, file_mode);
bin/pax/file_subs.c
381
res = symlink(arcn->ln_name, arcn->name);
bin/pax/file_subs.c
401
if (res == 0)
bin/pax/file_subs.c
424
res = ((arcn->type == PAX_SLK) ?
bin/pax/file_subs.c
428
res = 0;
bin/pax/file_subs.c
441
if (!pmode || res)
bin/pax/file_subs.c
922
int res;
bin/pax/file_subs.c
945
if ((res = read(fd, tbuf, size)) <= 0)
bin/pax/file_subs.c
947
cpcnt += res;
bin/pax/file_subs.c
948
for (i = 0; i < res; ++i)
bin/pax/pat_rep.c
122
if ((res = regcomp(&(rep->rcmp), str+1, 0)) != 0) {
bin/pax/pat_rep.c
123
regerror(res, &(rep->rcmp), rebuf, sizeof(rebuf));
bin/pax/pat_rep.c
586
int res = 0;
bin/pax/pat_rep.c
644
if ((res = rep_name(arcn->name, &(arcn->nlen), 1)) != 0)
bin/pax/pat_rep.c
645
return(res);
bin/pax/pat_rep.c
649
((res = rep_name(arcn->ln_name, &(arcn->ln_nlen), 0)) != 0))
bin/pax/pat_rep.c
650
return(res);
bin/pax/pat_rep.c
657
if ((res = tty_rename(arcn)) != 0)
bin/pax/pat_rep.c
658
return(res);
bin/pax/pat_rep.c
663
return(res);
bin/pax/pat_rep.c
680
int res;
bin/pax/pat_rep.c
726
res = add_name(arcn->name, arcn->nlen, tmpname);
bin/pax/pat_rep.c
729
if (res < 0)
bin/pax/pat_rep.c
841
int res;
bin/pax/pat_rep.c
893
if ((res = resub(&(pt->rcmp),pm,pt->nstr,outpt,endpt))
bin/pax/pat_rep.c
900
outpt += res;
bin/pax/pat_rep.c
92
int res;
bin/pax/tables.c
1231
int res;
bin/pax/tables.c
1250
res = len % sizeof(u_int);
bin/pax/tables.c
1268
if (res) {
bin/pax/tables.c
1270
end = pt + res;
bin/rm/rm.c
496
int res;
bin/rm/rm.c
571
perm_answer = choice->res;
bin/rm/rm.c
572
return (choice->res);
bin/test/test.c
197
int res;
bin/test/test.c
224
res = oexpr(t_lex(*t_wp));
bin/test/test.c
226
res = !oexpr(t_lex(*t_wp));
bin/test/test.c
231
return res;
bin/test/test.c
247
int res;
bin/test/test.c
249
res = aexpr(n);
bin/test/test.c
252
res;
bin/test/test.c
255
return res;
bin/test/test.c
261
int res;
bin/test/test.c
263
res = nexpr(n);
bin/test/test.c
266
res;
bin/test/test.c
269
return res;
bin/test/test.c
284
int res;
bin/test/test.c
295
res = oexpr(nn);
bin/test/test.c
299
return res;
crypto/libressl/apps/nc/atomicio.c
43
ssize_t res;
crypto/libressl/apps/nc/atomicio.c
49
res = (f) (fd, s + pos, n - pos);
crypto/libressl/apps/nc/atomicio.c
50
switch (res) {
crypto/libressl/apps/nc/atomicio.c
63
pos += (size_t)res;
crypto/libressl/apps/nc/netcat.c
1002
herr = getnameinfo(res->ai_addr, res->ai_addrlen,
crypto/libressl/apps/nc/netcat.c
1014
if (timeout_connect(s, res->ai_addr, res->ai_addrlen) == 0)
crypto/libressl/apps/nc/netcat.c
1075
struct addrinfo *res, *res0;
crypto/libressl/apps/nc/netcat.c
1095
for (res = res0; res; res = res->ai_next) {
crypto/libressl/apps/nc/netcat.c
1096
if ((s = socket(res->ai_family, res->ai_socktype,
crypto/libressl/apps/nc/netcat.c
1097
res->ai_protocol)) == -1)
crypto/libressl/apps/nc/netcat.c
1106
set_common_sockopts(s, res->ai_family);
crypto/libressl/apps/nc/netcat.c
1108
if (bind(s, (struct sockaddr *)res->ai_addr,
crypto/libressl/apps/nc/netcat.c
1109
res->ai_addrlen) == 0)
crypto/libressl/apps/nc/netcat.c
962
struct addrinfo *res, *res0;
crypto/libressl/apps/nc/netcat.c
972
for (res = res0; res; res = res->ai_next) {
crypto/libressl/apps/nc/netcat.c
973
if ((s = socket(res->ai_family, res->ai_socktype |
crypto/libressl/apps/nc/netcat.c
974
SOCK_NONBLOCK, res->ai_protocol)) == -1)
crypto/libressl/apps/nc/netcat.c
986
ahints.ai_family = res->ai_family;
crypto/libressl/apps/nc/netcat.c
999
set_common_sockopts(s, res->ai_family);
crypto/libressl/apps/nc/socks.c
66
struct addrinfo hints, *res;
crypto/libressl/apps/nc/socks.c
72
r = getaddrinfo(h, p, &hints, &res);
crypto/libressl/apps/nc/socks.c
81
if (addrlen < res->ai_addrlen) {
crypto/libressl/apps/nc/socks.c
82
freeaddrinfo(res);
crypto/libressl/apps/nc/socks.c
85
memcpy(addr, res->ai_addr, res->ai_addrlen);
crypto/libressl/apps/nc/socks.c
86
freeaddrinfo(res);
crypto/libressl/apps/openssl/apps.c
347
int res = 0;
crypto/libressl/apps/openssl/apps.c
359
res = strlen(password);
crypto/libressl/apps/openssl/apps.c
360
if (res > bufsiz)
crypto/libressl/apps/openssl/apps.c
361
res = bufsiz;
crypto/libressl/apps/openssl/apps.c
362
memcpy(buf, password, res);
crypto/libressl/apps/openssl/apps.c
363
return res;
crypto/libressl/apps/openssl/apps.c
393
res = strlen(buf);
crypto/libressl/apps/openssl/apps.c
398
res = 0;
crypto/libressl/apps/openssl/apps.c
403
res = 0;
crypto/libressl/apps/openssl/apps.c
408
return res;
crypto/libressl/crypto/bio/b_sock.c
128
struct addrinfo *res = NULL;
crypto/libressl/crypto/bio/b_sock.c
150
if ((error = getaddrinfo(h, p, &hints, &res)) != 0) {
crypto/libressl/crypto/bio/b_sock.c
156
struct sockaddr_in *sin = (struct sockaddr_in *)res->ai_addr;
crypto/libressl/crypto/bio/b_sock.c
173
if (bind(s, res->ai_addr, res->ai_addrlen) == -1) {
crypto/libressl/crypto/bio/b_sock.c
189
if (res != NULL)
crypto/libressl/crypto/bio/b_sock.c
190
freeaddrinfo(res);
crypto/libressl/crypto/bio/b_sock.c
40
struct addrinfo *res = NULL;
crypto/libressl/crypto/bio/b_sock.c
54
if ((error = getaddrinfo(str, NULL, &hints, &res)) != 0) {
crypto/libressl/crypto/bio/b_sock.c
60
*iap = (uint32_t)(((struct sockaddr_in *)(res->ai_addr))->sin_addr.s_addr);
crypto/libressl/crypto/bio/b_sock.c
61
freeaddrinfo(res);
crypto/libressl/crypto/bio/b_sock.c
68
struct addrinfo *res = NULL;
crypto/libressl/crypto/bio/b_sock.c
81
if ((error = getaddrinfo(NULL, str, &hints, &res)) != 0) {
crypto/libressl/crypto/bio/b_sock.c
86
*port_ptr = ntohs(((struct sockaddr_in *)(res->ai_addr))->sin_port);
crypto/libressl/crypto/bio/b_sock.c
87
freeaddrinfo(res);
crypto/libressl/crypto/bn/bn_div.c
124
BIGNUM *tmp, wnum, *snum, *sdiv, *res;
crypto/libressl/crypto/bn/bn_div.c
168
res = BN_CTX_get(ctx);
crypto/libressl/crypto/bn/bn_div.c
170
res = dv;
crypto/libressl/crypto/bn/bn_div.c
171
if (tmp == NULL || snum == NULL || sdiv == NULL || res == NULL)
crypto/libressl/crypto/bn/bn_div.c
225
res->neg = (num->neg ^ divisor->neg);
crypto/libressl/crypto/bn/bn_div.c
226
if (!bn_wexpand(res, (loop + 1)))
crypto/libressl/crypto/bn/bn_div.c
228
res->top = loop - no_branch;
crypto/libressl/crypto/bn/bn_div.c
229
resp = &(res->d[loop - 1]);
crypto/libressl/crypto/bn/bn_div.c
244
res->top--;
crypto/libressl/crypto/bn/bn_div.c
249
if (res->top == 0)
crypto/libressl/crypto/bn/bn_div.c
250
res->neg = 0;
crypto/libressl/crypto/bn/bn_div.c
371
bn_correct_top(res);
crypto/libressl/crypto/bn/bn_nist.c
1003
res = c_d;
crypto/libressl/crypto/bn/bn_nist.c
1004
res = (BN_ULONG *)(((uintptr_t)res & ~mask) | ((uintptr_t)r_d & mask));
crypto/libressl/crypto/bn/bn_nist.c
1005
nist_cp_bn(r_d, res, BN_NIST_256_TOP);
crypto/libressl/crypto/bn/bn_nist.c
1034
BN_ULONG *r_d, *res;
crypto/libressl/crypto/bn/bn_nist.c
1268
res = c_d;
crypto/libressl/crypto/bn/bn_nist.c
1269
res = (BN_ULONG *)(((uintptr_t)res & ~mask) | ((uintptr_t)r_d & mask));
crypto/libressl/crypto/bn/bn_nist.c
1270
nist_cp_bn(r_d, res, BN_NIST_384_TOP);
crypto/libressl/crypto/bn/bn_nist.c
1286
BN_ULONG *r_d, *res;
crypto/libressl/crypto/bn/bn_nist.c
1328
res = t_d;
crypto/libressl/crypto/bn/bn_nist.c
1329
res = (BN_ULONG *)(((uintptr_t)res & ~mask) | ((uintptr_t)r_d & mask));
crypto/libressl/crypto/bn/bn_nist.c
1330
nist_cp_bn(r_d, res, BN_NIST_521_TOP);
crypto/libressl/crypto/bn/bn_nist.c
470
BN_ULONG *r_d, *res;
crypto/libressl/crypto/bn/bn_nist.c
589
res = c_d;
crypto/libressl/crypto/bn/bn_nist.c
590
res = (BN_ULONG *)(((uintptr_t)res & ~mask) | ((uintptr_t)r_d & mask));
crypto/libressl/crypto/bn/bn_nist.c
591
nist_cp_bn(r_d, res, BN_NIST_192_TOP);
crypto/libressl/crypto/bn/bn_nist.c
618
BN_ULONG *r_d, *res;
crypto/libressl/crypto/bn/bn_nist.c
775
res = c_d;
crypto/libressl/crypto/bn/bn_nist.c
776
res = (BN_ULONG *)(((uintptr_t)res & ~mask) | ((uintptr_t)r_d & mask));
crypto/libressl/crypto/bn/bn_nist.c
777
nist_cp_bn(r_d, res, BN_NIST_224_TOP);
crypto/libressl/crypto/bn/bn_nist.c
802
BN_ULONG *r_d, *res;
crypto/libressl/crypto/ct/ct_x509v3.c
95
int res = SCT_set_source(sk_SCT_value(s, i), source);
crypto/libressl/crypto/ct/ct_x509v3.c
97
if (res != 1) {
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
135
size_t res;
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
137
if ((res = c->num)) {
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
138
res = SHA_CBLOCK - res;
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
139
if (len < res)
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
140
res = len;
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
141
SHA1_Update(c, ptr, res);
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
142
ptr += res;
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
143
len -= res;
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
146
res = len % SHA_CBLOCK;
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
147
len -= res;
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
159
if (res)
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
160
SHA1_Update(c, ptr, res);
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
259
unsigned int res, maxpad, pad, bitlen;
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
329
for (res = key->md.num, j = 0; j < len; j++) {
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
335
data->c[res++] = (unsigned char)c;
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
337
if (res != SHA_CBLOCK)
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
352
res = 0;
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
355
for (i = res; i < SHA_CBLOCK; i++, j++)
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
358
if (res > SHA_CBLOCK - 8) {
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
391
res = pmac->u[i];
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
392
pmac->c[4 * i + 0] = (unsigned char)(res >> 24);
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
393
pmac->c[4 * i + 1] = (unsigned char)(res >> 16);
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
394
pmac->c[4 * i + 2] = (unsigned char)(res >> 8);
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
395
pmac->c[4 * i + 3] = (unsigned char)res;
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
401
res = key->md.num;
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
408
inp_blocks = 1 + ((SHA_CBLOCK - 9 - res) >>
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
409
(sizeof(res) * 8 - 1));
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
410
res += (unsigned int)(len - inp_len);
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
411
pad_blocks = res / SHA_CBLOCK;
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
412
res %= SHA_CBLOCK;
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
413
pad_blocks += 1 + ((SHA_CBLOCK - 9 - res) >>
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
414
(sizeof(res) * 8 - 1));
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
435
for (res = 0, i = 0, j = 0; j < maxpad; j++) {
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
440
res |= (c ^ pad) & ~cmask; /* ... and padding */
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
443
res |= (c ^ pmac->c[i]) & cmask;
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
448
res = 0 - ((0 - res) >> (sizeof(res) * 8 - 1));
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
449
ret &= (int)~res;
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
452
for (res = 0, i = 0; i < SHA_DIGEST_LENGTH; i++)
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
453
res |= out[i] ^ pmac->c[i];
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
454
res = 0 - ((0 - res) >> (sizeof(res) * 8 - 1));
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
455
ret &= (int)~res;
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
458
pad = (pad & ~res) | (maxpad & res);
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
460
for (res = 0, i = 0; i < pad; i++)
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
461
res |= out[i] ^ pad;
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
463
res = (0 - res) >> (sizeof(res) * 8 - 1);
crypto/libressl/crypto/evp/e_aes_cbc_hmac_sha1.c
464
ret &= (int)~res;
crypto/libressl/crypto/modes/xts128.c
103
unsigned int carry,res;
crypto/libressl/crypto/modes/xts128.c
105
res = 0x87&(((int)tweak.d[3])>>31);
crypto/libressl/crypto/modes/xts128.c
107
tweak.u[0] = (tweak.u[0]<<1)^res;
crypto/libressl/crypto/modes/xts128.c
138
unsigned int carry,res;
crypto/libressl/crypto/modes/xts128.c
140
res = 0x87&(((int)tweak.d[3])>>31);
crypto/libressl/crypto/modes/xts128.c
142
tweak1.u[0] = (tweak.u[0]<<1)^res;
crypto/libressl/crypto/rsa/rsa_eay.c
353
BIGNUM *f, *ret, *res;
crypto/libressl/crypto/rsa/rsa_eay.c
453
res = f;
crypto/libressl/crypto/rsa/rsa_eay.c
455
res = ret;
crypto/libressl/crypto/rsa/rsa_eay.c
457
res = ret;
crypto/libressl/crypto/rsa/rsa_eay.c
461
j = BN_num_bytes(res);
crypto/libressl/crypto/rsa/rsa_eay.c
462
i = BN_bn2bin(res, &(to[num - j]));
crypto/libressl/crypto/x509/x509_genn.c
331
int res;
crypto/libressl/crypto/x509/x509_genn.c
345
res = ASN1_STRING_cmp(a->nameAssigner, b->nameAssigner);
crypto/libressl/crypto/x509/x509_genn.c
346
if (res != 0)
crypto/libressl/crypto/x509/x509_genn.c
347
return res;
crypto/libressl/tls/tls_client.c
124
for (res = res0; res; res = res->ai_next) {
crypto/libressl/tls/tls_client.c
125
s = socket(res->ai_family, res->ai_socktype, res->ai_protocol);
crypto/libressl/tls/tls_client.c
130
if (connect(s, res->ai_addr, res->ai_addrlen) == -1) {
crypto/libressl/tls/tls_client.c
62
struct addrinfo hints, *res, *res0;
crypto/libressl/tls/tls_ocsp.c
310
int size, res = -1;
crypto/libressl/tls/tls_ocsp.c
332
res = tls_ocsp_process_response_internal(ctx, raw, size);
crypto/libressl/tls/tls_ocsp.c
334
return (res == 0) ? 1 : 0;
crypto/openssh/atomicio.c
110
ssize_t res;
crypto/openssh/atomicio.c
128
res = (f) (fd, iov, iovcnt);
crypto/openssh/atomicio.c
129
switch (res) {
crypto/openssh/atomicio.c
147
rem = (size_t)res;
crypto/openssh/atomicio.c
166
if (cb != NULL && cb(cb_arg, (size_t)res) == -1) {
crypto/openssh/atomicio.c
56
ssize_t res;
crypto/openssh/atomicio.c
66
res = (f) (fd, s + pos, n - pos);
crypto/openssh/atomicio.c
67
switch (res) {
crypto/openssh/atomicio.c
85
pos += (size_t)res;
crypto/openssh/atomicio.c
86
if (cb != NULL && cb(cb_arg, (size_t)res) == -1) {
crypto/openssh/auth2-chall.c
294
int authenticated = 0, res;
crypto/openssh/auth2-chall.c
325
res = kbdintctxt->device->respond(kbdintctxt->ctxt, nresp, response);
crypto/openssh/auth2-chall.c
333
switch (res) {
crypto/openssh/dns.c
56
dns_result_totext(unsigned int res)
crypto/openssh/dns.c
58
switch (res) {
crypto/openssh/moduli.c
158
int res;
crypto/openssh/moduli.c
165
res = fprintf(ofile, "%04d%02d%02d%02d%02d%02d %u %u %u %u %x ",
crypto/openssh/moduli.c
170
if (res < 0)
crypto/openssh/moduli.c
176
res = fprintf(ofile, "\n");
crypto/openssh/moduli.c
179
return (res > 0 ? 0 : -1);
crypto/openssh/moduli.c
589
int res, is_prime;
crypto/openssh/moduli.c
620
res = 0;
crypto/openssh/moduli.c
794
res = -1;
crypto/openssh/moduli.c
813
return (res);
crypto/openssh/monitor.c
1566
int r, res, fd0;
crypto/openssh/monitor.c
1577
res = pty_allocate(&s->ptyfd, &s->ttyfd, s->tty, sizeof(s->tty));
crypto/openssh/monitor.c
1578
if (res == 0)
crypto/openssh/monitor.c
1653
int res, status;
crypto/openssh/monitor.c
1669
res = WIFEXITED(status) ? WEXITSTATUS(status) : 1;
crypto/openssh/monitor.c
1672
exit(res);
crypto/openssh/ssh.c
257
struct addrinfo hints, *res;
crypto/openssh/ssh.c
274
if ((gaierr = getaddrinfo(name, strport, &hints, &res)) != 0) {
crypto/openssh/ssh.c
281
if (cname != NULL && res->ai_canonname != NULL) {
crypto/openssh/ssh.c
282
if (!valid_domain(res->ai_canonname, 0, &errstr)) {
crypto/openssh/ssh.c
284
res->ai_canonname, name, errstr);
crypto/openssh/ssh.c
285
} else if (strlcpy(cname, res->ai_canonname, clen) >= clen) {
crypto/openssh/ssh.c
287
name, res->ai_canonname, (u_long)clen);
crypto/openssh/ssh.c
292
return res;
crypto/openssh/ssh.c
308
struct addrinfo hints, *res;
crypto/openssh/ssh.c
319
if (getaddrinfo(name, strport, &hints, &res) != 0)
crypto/openssh/ssh.c
321
if (res == NULL || res->ai_next != NULL) {
crypto/openssh/ssh.c
322
freeaddrinfo(res);
crypto/openssh/ssh.c
325
freeaddrinfo(res);
crypto/openssh/ssh.c
339
struct addrinfo hints, *res;
crypto/openssh/ssh.c
350
if ((gaierr = getaddrinfo(name, strport, &hints, &res)) != 0) {
crypto/openssh/ssh.c
355
if (res == NULL) {
crypto/openssh/ssh.c
359
if (res->ai_next != NULL) {
crypto/openssh/ssh.c
363
if ((gaierr = getnameinfo(res->ai_addr, res->ai_addrlen,
crypto/openssh/ssh.c
375
freeaddrinfo(res);
crypto/openssh/ssh.c
378
return res;
crypto/openssh/sshconnect.c
356
struct addrinfo hints, *res = NULL;
crypto/openssh/sshconnect.c
384
&hints, &res)) != 0) {
crypto/openssh/sshconnect.c
389
if (res == NULL) {
crypto/openssh/sshconnect.c
393
memcpy(&bindaddr, res->ai_addr, res->ai_addrlen);
crypto/openssh/sshconnect.c
394
bindaddrlen = res->ai_addrlen;
crypto/openssh/sshconnect.c
429
if (res != NULL)
crypto/openssh/sshconnect.c
430
freeaddrinfo(res);
crypto/openssh/umac.c
1103
static int uhash_final(uhash_ctx_t ctx, u_char *res)
crypto/openssh/umac.c
1114
ip_long(ctx, res);
crypto/openssh/umac.c
1117
ip_short(ctx,nh_result, res);
crypto/openssh/umac.c
1126
static int uhash(uhash_ctx_t ahc, u_char *msg, long len, u_char *res)
crypto/openssh/umac.c
1145
ip_short(ahc,nh_result, res);
crypto/openssh/umac.c
1164
ip_long(ahc, res);
crypto/openssh/umac.c
806
UINT64 X,T,res;
crypto/openssh/umac.c
812
res = (MUL64(key_hi, cur_hi) + x_hi) * 59 + MUL64(key_lo, cur_lo);
crypto/openssh/umac.c
815
res += T;
crypto/openssh/umac.c
816
if (res < T)
crypto/openssh/umac.c
817
res += 59;
crypto/openssh/umac.c
819
res += data;
crypto/openssh/umac.c
820
if (res < data)
crypto/openssh/umac.c
821
res += 59;
crypto/openssh/umac.c
823
return res;
crypto/openssh/umac.c
889
static void ip_short(uhash_ctx_t ahc, UINT8 *nh_res, u_char *res)
crypto/openssh/umac.c
895
STORE_UINT32_BIG((UINT32 *)res+0, ip_reduce_p36(t) ^ ahc->ip_trans[0]);
crypto/openssh/umac.c
898
STORE_UINT32_BIG((UINT32 *)res+1, ip_reduce_p36(t) ^ ahc->ip_trans[1]);
crypto/openssh/umac.c
902
STORE_UINT32_BIG((UINT32 *)res+2, ip_reduce_p36(t) ^ ahc->ip_trans[2]);
crypto/openssh/umac.c
906
STORE_UINT32_BIG((UINT32 *)res+3, ip_reduce_p36(t) ^ ahc->ip_trans[3]);
crypto/openssh/umac.c
914
static void ip_long(uhash_ctx_t ahc, u_char *res)
crypto/openssh/umac.c
924
STORE_UINT32_BIG((UINT32 *)res+i,
games/hack/hack.apply.c
129
return (res);
games/hack/hack.apply.c
438
int rx, ry, res = 0;
games/hack/hack.apply.c
449
res = 1;
games/hack/hack.apply.c
464
return (res);
games/hack/hack.apply.c
84
int res = 1;
games/hack/hack.apply.c
98
res = use_pick_axe(obj);
games/hack/hack.cmd.c
148
int res;
games/hack/hack.cmd.c
218
res = (*(tlist->f_funct)) ();
games/hack/hack.cmd.c
219
if (!res) {
games/hack/hack.mhitu.c
401
int tmp, res;
games/hack/hack.mhitu.c
436
res = 0;
games/hack/hack.mhitu.c
443
res = 1;
games/hack/hack.mhitu.c
446
return (res);
games/hack/hack.wield.c
101
res++;
games/hack/hack.wield.c
109
return (res);
games/hack/hack.wield.c
77
int res = 0;
games/hack/hack.wield.c
92
res++;
games/hack/hack.zap.c
145
int res = TRUE;
games/hack/hack.zap.c
148
res = FALSE;
games/hack/hack.zap.c
165
res = FALSE;
games/hack/hack.zap.c
180
res = revive(obj);
games/hack/hack.zap.c
187
res = FALSE;
games/hack/hack.zap.c
192
return (res);
include/resolv.h
203
#define RES_GETLAST(res) (((res)._flags & RES_F_LASTMASK) >> RES_F_LASTSHIFT)
lib/libalias/alias_proxy.c
550
char *res = buffer;
lib/libalias/alias_proxy.c
602
token = strsep(&res, " \t");
lib/libalias/alias_proxy.c
771
token = strsep(&res, " \t");
lib/libc/db/test/hash.tests/thash4.c
107
stat = (dbp->get)(dbp, &key, &res, 0);
lib/libc/db/test/hash.tests/thash4.c
53
DBT item, key, res;
lib/libc/db/test/hash.tests/tread2.c
54
DBT item, key, res;
lib/libc/db/test/hash.tests/tread2.c
84
stat = (dbp->get)(dbp, &key, &res,0);
lib/libc/db/test/hash.tests/tseq.c
51
DBT item, key, res;
lib/libc/db/test/hash.tests/tseq.c
65
for ( stat = (dbp->seq) (dbp, &res, &item, 1 );
lib/libc/db/test/hash.tests/tseq.c
67
stat = (dbp->seq) (dbp, &res, &item, 0 ) ) {
lib/libc/db/test/hash.tests/tseq.c
69
bcopy ( res.data, wp, res.size );
lib/libc/db/test/hash.tests/tseq.c
70
wp[res.size] = 0;
lib/libc/db/test/hash.tests/tverify.c
54
DBT key, res;
lib/libc/db/test/hash.tests/tverify.c
83
stat = (dbp->get)(dbp, &key, &res,0);
lib/libc/db/test/hash.tests/tverify.c
91
if ( memcmp ( res.data, wp2, res.size ) ) {
lib/libc/db/test/hash.tests/tverify.c
92
fprintf ( stderr, "data for %s is incorrect. Data was %s. Should have been %s\n", key.data, res.data, wp2 );
lib/libc/gen/getentropy.c
42
ssize_t res;
lib/libc/gen/getentropy.c
48
res = getrandom(buf, len, 0);
lib/libc/gen/getentropy.c
49
if (res == len)
lib/libc/gen/getentropy.c
51
if (res >= 0)
lib/libc/gen/getgrent.c
162
int res = NS_UNAVAIL;
lib/libc/gen/getgrent.c
173
res = NS_RETURN;
lib/libc/gen/getgrent.c
180
res = NS_SUCCESS;
lib/libc/gen/getgrent.c
186
res = NS_RETURN;
lib/libc/gen/getgrent.c
194
res = NS_SUCCESS;
lib/libc/gen/getgrent.c
203
return (res);
lib/libc/gen/getgrent.c
684
struct group *res;
lib/libc/gen/getgrent.c
693
rv = fn(key, &grp, grp_storage, grp_storage_size, &res);
lib/libc/gen/getgrent.c
694
if (res == NULL && rv == ERANGE) {
lib/libc/gen/getgrent.c
706
} while (res == NULL && rv == ERANGE);
lib/libc/gen/getgrent.c
709
return (res);
lib/libc/gen/getgrent.c
715
struct group **res)
lib/libc/gen/getgrent.c
717
return (getgrnam_r(key.name, grp, buffer, bufsize, res));
lib/libc/gen/getgrent.c
723
struct group **res)
lib/libc/gen/getgrent.c
725
return (getgrgid_r(key.gid, grp, buffer, bufsize, res));
lib/libc/gen/getgrent.c
731
size_t bufsize, struct group **res)
lib/libc/gen/getgrent.c
733
return (getgrent_r(grp, buffer, bufsize, res));
lib/libc/gen/getpwent.c
212
int res = NS_UNAVAIL;
lib/libc/gen/getpwent.c
222
res = NS_RETURN;
lib/libc/gen/getpwent.c
229
res = NS_SUCCESS;
lib/libc/gen/getpwent.c
235
res = NS_RETURN;
lib/libc/gen/getpwent.c
243
res = NS_SUCCESS;
lib/libc/gen/getpwent.c
252
return (res);
lib/libc/gen/getpwent.c
643
struct passwd *res;
lib/libc/gen/getpwent.c
652
rv = fn(key, &pwd, pwd_storage, pwd_storage_size, &res);
lib/libc/gen/getpwent.c
653
if (res == NULL && rv == ERANGE) {
lib/libc/gen/getpwent.c
665
} while (res == NULL && rv == ERANGE);
lib/libc/gen/getpwent.c
668
return (res);
lib/libc/gen/getpwent.c
674
size_t bufsize, struct passwd **res)
lib/libc/gen/getpwent.c
676
return (getpwnam_r(key.name, pwd, buffer, bufsize, res));
lib/libc/gen/getpwent.c
682
size_t bufsize, struct passwd **res)
lib/libc/gen/getpwent.c
684
return (getpwuid_r(key.uid, pwd, buffer, bufsize, res));
lib/libc/gen/getpwent.c
690
size_t bufsize, struct passwd **res)
lib/libc/gen/getpwent.c
692
return (getpwent_r(pwd, buffer, bufsize, res));
lib/libc/gen/getpwent.c
732
DB *res;
lib/libc/gen/getpwent.c
737
(res = dbopen(_PATH_SMP_DB, O_RDONLY, 0, DB_HASH, NULL)) == NULL)
lib/libc/gen/getpwent.c
738
res = dbopen(_PATH_MP_DB, O_RDONLY, 0, DB_HASH, NULL);
lib/libc/gen/getpwent.c
739
if (res == NULL)
lib/libc/gen/getpwent.c
743
rv = res->get(res, &key, &entry, 0);
lib/libc/gen/getpwent.c
751
res->close(res);
lib/libc/gen/getpwent.c
752
res = NULL;
lib/libc/gen/getpwent.c
754
return (res);
lib/libc/gen/ovsbrk.c
58
void *res;
lib/libc/gen/ovsbrk.c
60
res = _sbrk(incr);
lib/libc/gen/ovsbrk.c
61
if (res == (void *)-1 && errno == EOPNOTSUPP)
lib/libc/gen/ovsbrk.c
62
res = fake_sbrk(incr);
lib/libc/gen/ovsbrk.c
63
return res;
lib/libc/gen/posixshm.c
100
int res;
lib/libc/gen/posixshm.c
115
res = _unlinkat(dfd, path, 0);
lib/libc/gen/posixshm.c
118
res = -1;
lib/libc/gen/posixshm.c
120
return res;
lib/libc/gen/posixshm.c
132
int res = 0;
lib/libc/gen/posixshm.c
143
res = _mkdirat(dfd, buf, 01777);
lib/libc/gen/posixshm.c
144
if (res < 0 && errno != EEXIST)
lib/libc/gen/posixshm.c
147
return res;
lib/libc/include/nscache.h
100
if (res != 0) \
lib/libc/include/nscache.h
110
int res; \
lib/libc/include/nscache.h
112
res = name##_mp_getstate(&mp_state); \
lib/libc/include/nscache.h
113
if (res != 0) \
lib/libc/include/nscache.h
123
int res; \
lib/libc/include/nscache.h
125
res = name##_mp_getstate(&mp_state); \
lib/libc/include/nscache.h
126
if (res != 0) \
lib/libc/include/nscache.h
136
int res; \
lib/libc/include/nscache.h
138
res = name##_mp_getstate(&mp_state); \
lib/libc/include/nscache.h
139
if (res != 0) \
lib/libc/include/nscache.h
97
int res; \
lib/libc/include/nscache.h
99
res = name##_mp_getstate(&mp_state); \
lib/libc/locale/setlocale.c
291
getlocstr(const char *name, const char *str, char * const res)
lib/libc/locale/setlocale.c
307
strncpy(res, np, len);
lib/libc/locale/setlocale.c
308
res[len] = '\0';
lib/libc/locale/setlocale.c
325
__get_locale_str(int category, const char *str, char * const res)
lib/libc/locale/setlocale.c
330
check = getlocstr(categories[0], str, res);
lib/libc/locale/setlocale.c
334
check = getlocstr(categories[category], str, res);
lib/libc/locale/setlocale.c
338
check = getlocstr("LANG", str, res);
lib/libc/locale/setlocale.c
342
res[0] = 'C';
lib/libc/locale/setlocale.c
343
res[1] = '\0';
lib/libc/locale/setlocale.c
97
int __get_locale_str(int category, const char *str, char * const res);
lib/libc/locale/xlocale.c
71
int __get_locale_str(int category, const char *str, char * const res);
lib/libc/net/getaddrinfo.c
1039
struct addrinfo **res)
lib/libc/net/getaddrinfo.c
1046
*res = NULL;
lib/libc/net/getaddrinfo.c
1078
*res = ai;
lib/libc/net/getaddrinfo.c
1092
const char *servname, struct addrinfo **res,
lib/libc/net/getaddrinfo.c
1100
*res = NULL;
lib/libc/net/getaddrinfo.c
1149
*res = ai;
lib/libc/net/getaddrinfo.c
1164
const char *servname, struct addrinfo **res)
lib/libc/net/getaddrinfo.c
1167
return explore_numeric(pai, hostname, servname, res, hostname);
lib/libc/net/getaddrinfo.c
1186
return explore_numeric(pai, hostname, servname, res, hostname);
lib/libc/net/getaddrinfo.c
1190
return explore_numeric(pai, hostname, servname, res, hostname);
lib/libc/net/getaddrinfo.c
1203
error = explore_numeric(pai, addr, servname, res, hostname);
lib/libc/net/getaddrinfo.c
1207
for (cur = *res; cur; cur = cur->ai_next) {
lib/libc/net/getaddrinfo.c
1643
const char *servname, struct addrinfo **res)
lib/libc/net/getaddrinfo.c
1693
*res = result;
lib/libc/net/getaddrinfo.c
1710
const struct addrinfo *pai, res_state res)
lib/libc/net/getaddrinfo.c
1751
RES_SET_H_ERRNO(res, NO_RECOVERY);
lib/libc/net/getaddrinfo.c
1756
RES_SET_H_ERRNO(res, NO_RECOVERY);
lib/libc/net/getaddrinfo.c
1767
RES_SET_H_ERRNO(res, NO_RECOVERY);
lib/libc/net/getaddrinfo.c
1894
if (res->nsort && qtype == T_A) {
lib/libc/net/getaddrinfo.c
1895
if (addr4sort(&sentinel, res) < 0) {
lib/libc/net/getaddrinfo.c
1897
RES_SET_H_ERRNO(res, NO_RECOVERY);
lib/libc/net/getaddrinfo.c
1906
RES_SET_H_ERRNO(res, NETDB_SUCCESS);
lib/libc/net/getaddrinfo.c
1910
RES_SET_H_ERRNO(res, NO_RECOVERY);
lib/libc/net/getaddrinfo.c
1921
addr4sort(struct addrinfo *sentinel, res_state res)
lib/libc/net/getaddrinfo.c
1941
for (j = 0; (unsigned)j < res->nsort; j++) {
lib/libc/net/getaddrinfo.c
1942
if (res->sort_list[j].addr.s_addr ==
lib/libc/net/getaddrinfo.c
1943
(sin->sin_addr.s_addr & res->sort_list[j].mask))
lib/libc/net/getaddrinfo.c
1990
res_state res;
lib/libc/net/getaddrinfo.c
2046
res = __res_state();
lib/libc/net/getaddrinfo.c
2047
if ((res->options & RES_INIT) == 0 && res_ninit(res) == -1) {
lib/libc/net/getaddrinfo.c
2048
RES_SET_H_ERRNO(res, NETDB_INTERNAL);
lib/libc/net/getaddrinfo.c
2054
if (res_searchN(hostname, &q, res) < 0) {
lib/libc/net/getaddrinfo.c
2061
ai = getanswer(buf2, q2.n, q2.name, q2.qtype, pai, res);
lib/libc/net/getaddrinfo.c
2068
ai = getanswer(buf, q.n, q.name, q.qtype, pai, res);
lib/libc/net/getaddrinfo.c
2074
switch (res->res_h_errno) {
lib/libc/net/getaddrinfo.c
2109
struct addrinfo hints, *res0, *res;
lib/libc/net/getaddrinfo.c
2163
for (res = res0; res; res = res->ai_next) {
lib/libc/net/getaddrinfo.c
2165
res->ai_flags = pai->ai_flags;
lib/libc/net/getaddrinfo.c
2166
res->ai_socktype = pai->ai_socktype;
lib/libc/net/getaddrinfo.c
2167
res->ai_protocol = pai->ai_protocol;
lib/libc/net/getaddrinfo.c
2170
if (get_canonname(pai, res, cname) != 0) {
lib/libc/net/getaddrinfo.c
2215
struct addrinfo hints, *res, *res0;
lib/libc/net/getaddrinfo.c
2262
for (res = res0; res; res = res->ai_next) {
lib/libc/net/getaddrinfo.c
2264
res->ai_flags = pai->ai_flags;
lib/libc/net/getaddrinfo.c
2267
get_canonname(pai, res, canonname);
lib/libc/net/getaddrinfo.c
2358
res_queryN(const char *name, struct res_target *target, res_state res)
lib/libc/net/getaddrinfo.c
2373
RES_SET_H_ERRNO(res, NETDB_INTERNAL);
lib/libc/net/getaddrinfo.c
2390
oflags = res->_flags;
lib/libc/net/getaddrinfo.c
2396
if (res->options & RES_DEBUG)
lib/libc/net/getaddrinfo.c
2400
n = res_nmkquery(res, QUERY, name, class, type, NULL, 0, NULL,
lib/libc/net/getaddrinfo.c
2402
if (n > 0 && (res->_flags & RES_F_EDNS0ERR) == 0 &&
lib/libc/net/getaddrinfo.c
2403
(res->options & (RES_USE_EDNS0|RES_USE_DNSSEC)) != 0U)
lib/libc/net/getaddrinfo.c
2404
n = res_nopt(res, n, buf, MAXPACKET, anslen);
lib/libc/net/getaddrinfo.c
2407
if (res->options & RES_DEBUG)
lib/libc/net/getaddrinfo.c
2411
RES_SET_H_ERRNO(res, NO_RECOVERY);
lib/libc/net/getaddrinfo.c
2414
n = res_nsend(res, buf, n, answer, anslen);
lib/libc/net/getaddrinfo.c
2420
if ((res->options & (RES_USE_EDNS0|RES_USE_DNSSEC))
lib/libc/net/getaddrinfo.c
2422
((oflags ^ res->_flags) & RES_F_EDNS0ERR) != 0) {
lib/libc/net/getaddrinfo.c
2423
res->_flags |= RES_F_EDNS0ERR;
lib/libc/net/getaddrinfo.c
2424
if (res->options & RES_DEBUG)
lib/libc/net/getaddrinfo.c
2430
if (res->options & RES_DEBUG)
lib/libc/net/getaddrinfo.c
2441
if (res->options & RES_DEBUG)
lib/libc/net/getaddrinfo.c
2458
RES_SET_H_ERRNO(res, HOST_NOT_FOUND);
lib/libc/net/getaddrinfo.c
2461
RES_SET_H_ERRNO(res, TRY_AGAIN);
lib/libc/net/getaddrinfo.c
2464
RES_SET_H_ERRNO(res, NO_DATA);
lib/libc/net/getaddrinfo.c
2470
RES_SET_H_ERRNO(res, NO_RECOVERY);
lib/libc/net/getaddrinfo.c
2485
res_searchN(const char *name, struct res_target *target, res_state res)
lib/libc/net/getaddrinfo.c
2497
RES_SET_H_ERRNO(res, HOST_NOT_FOUND); /* default, if we never query */
lib/libc/net/getaddrinfo.c
2509
(cp = res_hostalias(res, name, abuf, sizeof(abuf))) != NULL)
lib/libc/net/getaddrinfo.c
2510
return (res_queryN(cp, target, res));
lib/libc/net/getaddrinfo.c
2518
if (dots >= res->ndots || trailing_dot) {
lib/libc/net/getaddrinfo.c
2519
ret = res_querydomainN(name, NULL, target, res);
lib/libc/net/getaddrinfo.c
2523
RES_SET_H_ERRNO(res, TRY_AGAIN);
lib/libc/net/getaddrinfo.c
2526
switch (res->res_h_errno) {
lib/libc/net/getaddrinfo.c
2537
saved_herrno = res->res_h_errno;
lib/libc/net/getaddrinfo.c
2547
if ((!dots && (res->options & RES_DEFNAMES)) ||
lib/libc/net/getaddrinfo.c
2548
(dots && !trailing_dot && (res->options & RES_DNSRCH))) {
lib/libc/net/getaddrinfo.c
2551
for (domain = (const char * const *)res->dnsrch;
lib/libc/net/getaddrinfo.c
2563
ret = res_querydomainN(name, *domain, target, res);
lib/libc/net/getaddrinfo.c
2581
RES_SET_H_ERRNO(res, TRY_AGAIN);
lib/libc/net/getaddrinfo.c
2585
switch (res->res_h_errno) {
lib/libc/net/getaddrinfo.c
2607
if (!(res->options & RES_DNSRCH))
lib/libc/net/getaddrinfo.c
2612
switch (res->res_h_errno) {
lib/libc/net/getaddrinfo.c
2628
if ((dots || !searched || !(res->options & RES_NOTLDQUERY)) &&
lib/libc/net/getaddrinfo.c
2630
ret = res_querydomainN(name, NULL, target, res);
lib/libc/net/getaddrinfo.c
2645
RES_SET_H_ERRNO(res, saved_herrno);
lib/libc/net/getaddrinfo.c
2647
RES_SET_H_ERRNO(res, NO_DATA);
lib/libc/net/getaddrinfo.c
2649
RES_SET_H_ERRNO(res, TRY_AGAIN);
lib/libc/net/getaddrinfo.c
2659
struct res_target *target, res_state res)
lib/libc/net/getaddrinfo.c
2666
if (res->options & RES_DEBUG)
lib/libc/net/getaddrinfo.c
2677
RES_SET_H_ERRNO(res, NO_RECOVERY);
lib/libc/net/getaddrinfo.c
2689
RES_SET_H_ERRNO(res, NO_RECOVERY);
lib/libc/net/getaddrinfo.c
2694
return (res_queryN(longname, target, res));
lib/libc/net/getaddrinfo.c
354
const struct addrinfo * __restrict hints, struct addrinfo ** __restrict res)
lib/libc/net/getaddrinfo.c
570
*res = sentinel.ai_next;
lib/libc/net/getaddrinfo.c
579
*res = NULL;
lib/libc/net/gethostbydns.c
107
dbg_printf(char *msg, int num, res_state res)
lib/libc/net/gethostbydns.c
109
if (res->options & RES_DEBUG) {
lib/libc/net/gethostbydns.c
117
# define dbg_printf(msg, num, res) /*nada*/
lib/libc/net/gethostbydns.c
693
addrsort(char **ap, int num, res_state res)
lib/libc/net/gethostbydns.c
702
for (j = 0 ; (unsigned)j < res->nsort; j++)
lib/libc/net/gethostbydns.c
703
if (res->sort_list[j].addr.s_addr ==
lib/libc/net/gethostbydns.c
704
(((struct in_addr *)(*p))->s_addr & res->sort_list[j].mask))
lib/libc/net/gethostnamadr.c
171
int res = NS_UNAVAIL;
lib/libc/net/gethostnamadr.c
188
res = NS_RETURN;
lib/libc/net/gethostnamadr.c
208
res = NS_SUCCESS;
lib/libc/net/gethostnamadr.c
220
res = NS_RETURN;
lib/libc/net/gethostnamadr.c
242
res = NS_SUCCESS;
lib/libc/net/gethostnamadr.c
251
return (res);
lib/libc/net/getnetnamadr.c
104
res = NS_SUCCESS;
lib/libc/net/getnetnamadr.c
113
return (res);
lib/libc/net/getnetnamadr.c
68
int res = NS_UNAVAIL;
lib/libc/net/getnetnamadr.c
78
res = NS_RETURN;
lib/libc/net/getnetnamadr.c
85
res = NS_SUCCESS;
lib/libc/net/getnetnamadr.c
94
res = NS_RETURN;
lib/libc/net/getprotoent.c
104
res = NS_RETURN;
lib/libc/net/getprotoent.c
111
res = NS_SUCCESS;
lib/libc/net/getprotoent.c
118
res = NS_RETURN;
lib/libc/net/getprotoent.c
126
res = NS_SUCCESS;
lib/libc/net/getprotoent.c
135
return (res);
lib/libc/net/getprotoent.c
94
int res = NS_UNAVAIL;
lib/libc/net/getservent.c
1113
size_t bufsize, struct servent **res)
lib/libc/net/getservent.c
1116
res));
lib/libc/net/getservent.c
1121
size_t bufsize, struct servent **res)
lib/libc/net/getservent.c
1124
res));
lib/libc/net/getservent.c
1129
size_t bufsize, struct servent **res)
lib/libc/net/getservent.c
1131
return (getservent_r(serv, buffer, bufsize, res));
lib/libc/net/getservent.c
1139
struct servent *res;
lib/libc/net/getservent.c
1155
rv = fn(key, &st->serv, st->buffer, st->bufsize, &res);
lib/libc/net/getservent.c
1156
if (res == NULL && rv == ERANGE) {
lib/libc/net/getservent.c
1168
} while (res == NULL && rv == ERANGE);
lib/libc/net/getservent.c
1172
return (res);
lib/libc/net/getservent.c
710
int res = NS_UNAVAIL;
lib/libc/net/getservent.c
727
res = NS_RETURN;
lib/libc/net/getservent.c
738
res = NS_SUCCESS;
lib/libc/net/getservent.c
752
res = NS_RETURN;
lib/libc/net/getservent.c
764
res = NS_SUCCESS;
lib/libc/net/getservent.c
773
return (res);
lib/libc/net/nscache.c
110
res = -1;
lib/libc/net/nscache.c
113
res = __cached_read(connection, cache_info->entry_name,
lib/libc/net/nscache.c
117
if (res == -2 && buffer_size < NSS_CACHE_BUFFER_SIZE_LIMIT) {
lib/libc/net/nscache.c
121
} while (res == -2);
lib/libc/net/nscache.c
123
if (res == 0) {
lib/libc/net/nscache.c
133
res = cache_info->unmarshal_func(buffer, buffer_size, retval,
lib/libc/net/nscache.c
137
if (res != NS_SUCCESS) {
lib/libc/net/nscache.c
142
return (res);
lib/libc/net/nscache.c
144
res = 0;
lib/libc/net/nscache.c
147
if (res == 0) {
lib/libc/net/nscache.c
154
return (res == 0 ? NS_SUCCESS : NS_NOTFOUND);
lib/libc/net/nscache.c
169
int res;
lib/libc/net/nscache.c
195
res = cache_info->marshal_func(buffer, &size, retval, ap_new,
lib/libc/net/nscache.c
199
if (res == NS_RETURN) {
lib/libc/net/nscache.c
207
} while (res == NS_RETURN);
lib/libc/net/nscache.c
209
if (res != NS_SUCCESS) {
lib/libc/net/nscache.c
213
return (res);
lib/libc/net/nscache.c
216
res = __cached_write(connection, cache_info->entry_name,
lib/libc/net/nscache.c
223
return (res == 0 ? NS_SUCCESS : NS_UNAVAIL);
lib/libc/net/nscache.c
231
int res;
lib/libc/net/nscache.c
251
res = __cached_write(connection, cache_info->entry_name,
lib/libc/net/nscache.c
256
return (res == 0 ? NS_SUCCESS : NS_UNAVAIL);
lib/libc/net/nscache.c
271
int res;
lib/libc/net/nscache.c
297
res = __cached_mp_read(rs, buffer, &buffer_size);
lib/libc/net/nscache.c
298
if (res == -2 && buffer_size < NSS_CACHE_BUFFER_SIZE_LIMIT) {
lib/libc/net/nscache.c
302
} while (res == -2);
lib/libc/net/nscache.c
304
if (res == 0) {
lib/libc/net/nscache.c
306
res = cache_info->unmarshal_func(buffer, buffer_size, retval,
lib/libc/net/nscache.c
310
if (res != NS_SUCCESS) {
lib/libc/net/nscache.c
312
return (res);
lib/libc/net/nscache.c
314
res = 0;
lib/libc/net/nscache.c
320
return (res == -1 ? NS_RETURN : NS_UNAVAIL);
lib/libc/net/nscache.c
324
return (res == 0 ? NS_SUCCESS : NS_NOTFOUND);
lib/libc/net/nscache.c
339
int res;
lib/libc/net/nscache.c
366
res = cache_info->marshal_func(buffer, &size, retval, ap_new,
lib/libc/net/nscache.c
370
if (res == NS_RETURN) {
lib/libc/net/nscache.c
378
} while (res == NS_RETURN);
lib/libc/net/nscache.c
380
if (res != NS_SUCCESS) {
lib/libc/net/nscache.c
382
return (res);
lib/libc/net/nscache.c
385
res = __cached_mp_write(ws, buffer, buffer_size);
lib/libc/net/nscache.c
388
return (res == 0 ? NS_SUCCESS : NS_UNAVAIL);
lib/libc/net/nscache.c
65
int res;
lib/libc/net/nscache.c
80
res = cache_info->id_func(cache_data->key, &size, ap_new,
lib/libc/net/nscache.c
83
if (res == NS_RETURN) {
lib/libc/net/nscache.c
93
} while (res == NS_RETURN);
lib/libc/net/nscache.c
95
if (res != NS_SUCCESS) {
lib/libc/net/nscache.c
99
return (res);
lib/libc/net/nscachedcli.c
148
int res __unused;
lib/libc/net/nscachedcli.c
174
res = _kevent(connection->write_queue, &eventlist, 1, NULL, 0, NULL);
lib/libc/net/nscachedcli.c
199
int res;
lib/libc/net/nscachedcli.c
210
res = _connect(client_socket, (struct sockaddr *)&client_address,
lib/libc/net/nscachedcli.c
212
if (res == -1) {
lib/libc/net/nscachedcli.c
228
res = _kevent(retval->write_queue, &eventlist, 1, NULL, 0, NULL);
lib/libc/net/nscachedcli.c
234
res = _kevent(retval->read_queue, &eventlist, 1, NULL, 0, NULL);
lib/libc/net/rcmd.c
119
error = getaddrinfo(*ahost, num, &hints, &res);
lib/libc/net/rcmd.c
129
if (res->ai_canonname &&
lib/libc/net/rcmd.c
130
strlen(res->ai_canonname) + 1 < sizeof(canonnamebuf)) {
lib/libc/net/rcmd.c
131
strncpy(canonnamebuf, res->ai_canonname, sizeof(canonnamebuf));
lib/libc/net/rcmd.c
135
for (ai = res; ai; ai = ai->ai_next)
lib/libc/net/rcmd.c
137
ai = res;
lib/libc/net/rcmd.c
155
freeaddrinfo(res);
lib/libc/net/rcmd.c
172
freeaddrinfo(res);
lib/libc/net/rcmd.c
194
ai = res;
lib/libc/net/rcmd.c
298
freeaddrinfo(res);
lib/libc/net/rcmd.c
306
freeaddrinfo(res);
lib/libc/net/rcmd.c
370
struct addrinfo hints, *res, *r;
lib/libc/net/rcmd.c
376
error = getaddrinfo(rhost, "0", &hints, &res);
lib/libc/net/rcmd.c
380
for (r = res; r; r = r->ai_next) {
lib/libc/net/rcmd.c
383
freeaddrinfo(res);
lib/libc/net/rcmd.c
387
freeaddrinfo(res);
lib/libc/net/rcmd.c
683
struct addrinfo hints, *res, *r;
lib/libc/net/rcmd.c
709
res = NULL;
lib/libc/net/rcmd.c
710
error = getaddrinfo(lhost, "0", &hints, &res);
lib/libc/net/rcmd.c
714
for (r = res; r ; r = r->ai_next) {
lib/libc/net/rcmd.c
720
freeaddrinfo(res);
lib/libc/net/rcmd.c
726
freeaddrinfo(res);
lib/libc/net/rcmd.c
82
struct addrinfo hints, *res, *ai;
lib/libc/net/rcmdsh.c
102
freeaddrinfo(res);
lib/libc/net/rcmdsh.c
66
struct addrinfo hints, *res;
lib/libc/net/rcmdsh.c
91
error = getaddrinfo(*ahost, num, &hints, &res);
lib/libc/net/rcmdsh.c
97
if (res->ai_canonname) {
lib/libc/net/rcmdsh.c
98
strncpy(hbuf, res->ai_canonname, sizeof(hbuf) - 1);
lib/libc/resolv/h_errno.c
43
__h_errno_set(res_state res, int err)
lib/libc/resolv/h_errno.c
45
h_errno = res->res_h_errno = err;
lib/libc/resolv/res_debug.c
1140
struct tm res;
lib/libc/resolv/res_debug.c
1142
time = gmtime_r(&clock, &res);
lib/libc/resolv/res_send.c
128
#define EXT(res) ((res)->_u._ext)
lib/libc/rpc/auth_time.c
398
int res;
lib/libc/rpc/auth_time.c
408
res = _select(_rpc_dtablesize(), &readfds,
lib/libc/rpc/auth_time.c
410
} while (res < 0 && errno == EINTR);
lib/libc/rpc/auth_time.c
411
if (res <= 0)
lib/libc/rpc/auth_time.c
414
res = _recvfrom(s, (char *)&thetime, sizeof(thetime), 0,
lib/libc/rpc/auth_time.c
416
if (res == -1) {
lib/libc/rpc/auth_time.c
422
int res;
lib/libc/rpc/auth_time.c
427
res = _connect(s, (struct sockaddr *)&sin, sizeof(sin));
lib/libc/rpc/auth_time.c
428
if (res == -1) {
lib/libc/rpc/auth_time.c
436
res = _read(s, (char *)&thetime, sizeof(thetime));
lib/libc/rpc/auth_time.c
437
if (res != sizeof(thetime)) {
lib/libc/rpc/clnt_bcast.c
126
struct addrinfo hints, *res;
lib/libc/rpc/clnt_bcast.c
137
if (getaddrinfo(NULL, "sunrpc", &hints, &res) != 0) {
lib/libc/rpc/clnt_bcast.c
161
(void *)res->ai_addr)->sin_port;
lib/libc/rpc/clnt_bcast.c
171
(void *)res->ai_addr)->sin6_port;
lib/libc/rpc/clnt_bcast.c
183
freeaddrinfo(res);
lib/libc/rpc/getpublickey.c
100
res = fgets(buf, sizeof(buf), fd);
lib/libc/rpc/getpublickey.c
101
if (res == NULL) {
lib/libc/rpc/getpublickey.c
105
if (res[0] == '#')
lib/libc/rpc/getpublickey.c
107
else if (res[0] == '+') {
lib/libc/rpc/getpublickey.c
140
mkey = strsep(&res, "\t ");
lib/libc/rpc/getpublickey.c
147
mval = strsep(&res, " \t#\n");
lib/libc/rpc/getpublickey.c
91
char *res;
lib/libc/rpc/getrpcent.c
597
int res = NS_UNAVAIL;
lib/libc/rpc/getrpcent.c
607
res = NS_RETURN;
lib/libc/rpc/getrpcent.c
614
res = NS_SUCCESS;
lib/libc/rpc/getrpcent.c
621
res = NS_RETURN;
lib/libc/rpc/getrpcent.c
629
res = NS_SUCCESS;
lib/libc/rpc/getrpcent.c
638
return (res);
lib/libc/rpc/getrpcent.c
907
size_t bufsize, struct rpcent **res)
lib/libc/rpc/getrpcent.c
909
return (getrpcbyname_r(key.name, rpc, buffer, bufsize, res));
lib/libc/rpc/getrpcent.c
914
size_t bufsize, struct rpcent **res)
lib/libc/rpc/getrpcent.c
916
return (getrpcbynumber_r(key.number, rpc, buffer, bufsize, res));
lib/libc/rpc/getrpcent.c
921
size_t bufsize, struct rpcent **res)
lib/libc/rpc/getrpcent.c
923
return (getrpcent_r(rpc, buffer, bufsize, res));
lib/libc/rpc/getrpcent.c
931
struct rpcent *res;
lib/libc/rpc/getrpcent.c
947
rv = fn(key, &st->rpc, st->buffer, st->bufsize, &res);
lib/libc/rpc/getrpcent.c
948
if (res == NULL && rv == ERANGE) {
lib/libc/rpc/getrpcent.c
960
} while (res == NULL && rv == ERANGE);
lib/libc/rpc/getrpcent.c
964
return (res);
lib/libc/rpc/key_call.c
139
cryptkeyres res;
lib/libc/rpc/key_call.c
145
(xdrproc_t)xdr_cryptkeyres, &res)) {
lib/libc/rpc/key_call.c
148
if (res.status != KEY_SUCCESS) {
lib/libc/rpc/key_call.c
152
*deskey = res.cryptkeyres_u.deskey;
lib/libc/rpc/key_call.c
160
cryptkeyres res;
lib/libc/rpc/key_call.c
166
(xdrproc_t)xdr_cryptkeyres, &res)) {
lib/libc/rpc/key_call.c
169
if (res.status != KEY_SUCCESS) {
lib/libc/rpc/key_call.c
173
*deskey = res.cryptkeyres_u.deskey;
lib/libc/rpc/key_call.c
181
cryptkeyres res;
lib/libc/rpc/key_call.c
186
(xdrproc_t)xdr_cryptkeyres, &res)) {
lib/libc/rpc/key_call.c
189
if (res.status != KEY_SUCCESS) {
lib/libc/rpc/key_call.c
193
*deskey = res.cryptkeyres_u.deskey;
lib/libc/rpc/key_call.c
201
cryptkeyres res;
lib/libc/rpc/key_call.c
206
(xdrproc_t)xdr_cryptkeyres, &res)) {
lib/libc/rpc/key_call.c
209
if (res.status != KEY_SUCCESS) {
lib/libc/rpc/key_call.c
213
*deskey = res.cryptkeyres_u.deskey;
lib/libc/rpc/key_call.c
249
cryptkeyres res;
lib/libc/rpc/key_call.c
252
(xdrproc_t)xdr_cryptkeyres, &res)) {
lib/libc/rpc/key_call.c
255
if (res.status != KEY_SUCCESS) {
lib/libc/rpc/key_call.c
259
*deskey = res.cryptkeyres_u.deskey;
lib/libc/rpc/key_call.c
410
cryptkeyres *res;
lib/libc/rpc/key_call.c
411
res = (*__key_encryptsession_pk_LOCAL)(geteuid(), arg);
lib/libc/rpc/key_call.c
412
*(cryptkeyres*)rslt = *res;
lib/libc/rpc/key_call.c
415
cryptkeyres *res;
lib/libc/rpc/key_call.c
416
res = (*__key_decryptsession_pk_LOCAL)(geteuid(), arg);
lib/libc/rpc/key_call.c
417
*(cryptkeyres*)rslt = *res;
lib/libc/rpc/key_call.c
420
des_block *res;
lib/libc/rpc/key_call.c
421
res = (*__key_gendes_LOCAL)(geteuid(), 0);
lib/libc/rpc/key_call.c
422
*(des_block*)rslt = *res;
lib/libc/rpc/netnamer.c
101
p = strsep(&res, "\n,");
lib/libc/rpc/netnamer.c
239
char *res;
lib/libc/rpc/netnamer.c
253
res = "+";
lib/libc/rpc/netnamer.c
262
res = fgets(buf, sizeof(buf), fd);
lib/libc/rpc/netnamer.c
263
if (res == NULL) {
lib/libc/rpc/netnamer.c
267
if (res[0] == '#')
lib/libc/rpc/netnamer.c
269
else if (res[0] == '+') {
lib/libc/rpc/netnamer.c
300
mkey = strsep(&res, "\t ");
lib/libc/rpc/netnamer.c
307
mval = strsep(&res, " \t#\n");
lib/libc/rpc/netnamer.c
89
char *res = val;
lib/libc/rpc/netnamer.c
91
p = strsep(&res, ":");
lib/libc/rpc/netnamer.c
95
p = strsep(&res, "\n,");
lib/libc/rpc/rpcb_clnt.c
304
struct addrinfo hints, *res, *tres;
lib/libc/rpc/rpcb_clnt.c
382
if (getaddrinfo(host, "sunrpc", &hints, &res) != 0) {
lib/libc/rpc/rpcb_clnt.c
388
for (tres = res; tres != NULL; tres = tres->ai_next) {
lib/libc/rpc/rpcb_clnt.c
430
if (res)
lib/libc/rpc/rpcb_clnt.c
431
freeaddrinfo(res);
lib/libc/rpc/rtime.c
106
res = _select(_rpc_dtablesize(), &readfds,
lib/libc/rpc/rtime.c
108
} while (res < 0 && errno == EINTR);
lib/libc/rpc/rtime.c
109
if (res <= 0) {
lib/libc/rpc/rtime.c
110
if (res == 0) {
lib/libc/rpc/rtime.c
117
res = _recvfrom(s, (char *)&thetime, sizeof(thetime), 0,
lib/libc/rpc/rtime.c
120
if (res < 0) {
lib/libc/rpc/rtime.c
128
res = _read(s, (char *)&thetime, sizeof(thetime));
lib/libc/rpc/rtime.c
130
if (res < 0) {
lib/libc/rpc/rtime.c
134
if (res != sizeof(thetime)) {
lib/libc/rpc/rtime.c
71
int res;
lib/libc/rpc/rtime.c
97
res = _sendto(s, (char *)&thetime, sizeof(thetime), 0,
lib/libc/rpc/rtime.c
99
if (res < 0) {
lib/libc/stdio/fopencookie.c
121
int res;
lib/libc/stdio/fopencookie.c
146
res = thunk->foc_io.seek(thunk->foc_cookie, &off64, whence);
lib/libc/stdio/fopencookie.c
147
if (res < 0)
lib/libc/stdio/fopencookie.c
148
return (res);
lib/libc/stdio/vfscanf.c
749
uintmax_t res;
lib/libc/stdio/vfscanf.c
753
res = strtoimax_l(buf, NULL, base, locale);
lib/libc/stdio/vfscanf.c
755
res = strtoumax_l(buf, NULL, base, locale);
lib/libc/stdio/vfscanf.c
758
(void *)(uintptr_t)res;
lib/libc/stdio/vfscanf.c
760
*va_arg(ap, char *) = res;
lib/libc/stdio/vfscanf.c
762
*va_arg(ap, short *) = res;
lib/libc/stdio/vfscanf.c
764
*va_arg(ap, long *) = res;
lib/libc/stdio/vfscanf.c
766
*va_arg(ap, long long *) = res;
lib/libc/stdio/vfscanf.c
768
*va_arg(ap, intmax_t *) = res;
lib/libc/stdio/vfscanf.c
770
*va_arg(ap, ptrdiff_t *) = res;
lib/libc/stdio/vfscanf.c
772
*va_arg(ap, size_t *) = res;
lib/libc/stdio/vfscanf.c
774
*va_arg(ap, int *) = res;
lib/libc/stdio/vfscanf.c
788
long double res = strtold_l(buf, NULL,
lib/libc/stdio/vfscanf.c
790
*va_arg(ap, long double *) = res;
lib/libc/stdio/vfscanf.c
792
double res = strtod_l(buf, NULL,
lib/libc/stdio/vfscanf.c
794
*va_arg(ap, double *) = res;
lib/libc/stdio/vfscanf.c
796
float res = strtof_l(buf, NULL, locale);
lib/libc/stdio/vfscanf.c
797
*va_arg(ap, float *) = res;
lib/libc/stdio/vfwscanf.c
725
uintmax_t res;
lib/libc/stdio/vfwscanf.c
729
res = wcstoimax(buf, NULL, base);
lib/libc/stdio/vfwscanf.c
731
res = wcstoumax(buf, NULL, base);
lib/libc/stdio/vfwscanf.c
734
(void *)(uintptr_t)res;
lib/libc/stdio/vfwscanf.c
736
*va_arg(ap, char *) = res;
lib/libc/stdio/vfwscanf.c
738
*va_arg(ap, short *) = res;
lib/libc/stdio/vfwscanf.c
740
*va_arg(ap, long *) = res;
lib/libc/stdio/vfwscanf.c
742
*va_arg(ap, long long *) = res;
lib/libc/stdio/vfwscanf.c
744
*va_arg(ap, intmax_t *) = res;
lib/libc/stdio/vfwscanf.c
746
*va_arg(ap, ptrdiff_t *) = res;
lib/libc/stdio/vfwscanf.c
748
*va_arg(ap, size_t *) = res;
lib/libc/stdio/vfwscanf.c
750
*va_arg(ap, int *) = res;
lib/libc/stdio/vfwscanf.c
765
long double res = wcstold(buf, NULL);
lib/libc/stdio/vfwscanf.c
766
*va_arg(ap, long double *) = res;
lib/libc/stdio/vfwscanf.c
768
double res = wcstod(buf, NULL);
lib/libc/stdio/vfwscanf.c
769
*va_arg(ap, double *) = res;
lib/libc/stdio/vfwscanf.c
771
float res = wcstof(buf, NULL);
lib/libc/stdio/vfwscanf.c
772
*va_arg(ap, float *) = res;
lib/libc/stdtime/localtime.c
325
int res;
lib/libc/stdtime/localtime.c
335
res = -1;
lib/libc/stdtime/localtime.c
619
res = 0;
lib/libc/stdtime/localtime.c
623
return (res);
lib/libc/string/timingsafe_memcmp.c
26
int res = 0, done = 0;
lib/libc/string/timingsafe_memcmp.c
39
res |= cmp & ~done;
lib/libc/string/timingsafe_memcmp.c
45
return (res);
lib/libc/upmap/ukp_clock.c
102
res = __sys_clock_gettime(clock_id, ts);
lib/libc/upmap/ukp_clock.c
106
res = __sys_clock_gettime(clock_id, ts);
lib/libc/upmap/ukp_clock.c
108
return res;
lib/libc/upmap/ukp_clock.c
65
int res;
lib/libc/upmap/ukp_clock.c
85
res = 0;
lib/libc/upmap/ukp_clock.c
99
res = 0;
lib/libc/upmap/ukp_gettimeofday.c
101
res = __sys_gettimeofday(tv, tz);
lib/libc/upmap/ukp_gettimeofday.c
102
return res;
lib/libc/upmap/ukp_gettimeofday.c
66
int res;
lib/libc/upmap/ukp_gettimeofday.c
83
res = 0;
lib/libc/upmap/ukp_gettimeofday.c
89
res = __sys_gettimeofday(tv, tz);
lib/libc/upmap/ukp_gettimeofday.c
91
return res;
lib/libc/upmap/ukp_gettimeofday.c
99
int res;
lib/libc/uuid/uuid_compare.c
51
int res;
lib/libc/uuid/uuid_compare.c
71
res = memcmp(a->node, b->node, sizeof(a->node));
lib/libc/uuid/uuid_compare.c
72
if (res)
lib/libc/uuid/uuid_compare.c
73
return ((res < 0) ? -1 : 1);
lib/libdevinfo/devinfo.c
457
int (* fn)(struct devinfo_dev *dev, struct devinfo_res *res, void *arg),
lib/libdevinfo/devinfo.c
476
int (* fn)(struct devinfo_res *res, void *arg),
lib/libdevinfo/devinfo.h
121
struct devinfo_res *res, void *arg),
lib/libdevinfo/devinfo.h
130
int (* fn)(struct devinfo_res *res, void *arg),
lib/libevtr/evtr.c
375
struct event_filter_unresolved *res;
lib/libevtr/evtr.c
377
if (!(res = malloc(sizeof(*res)))) {
lib/libevtr/evtr.c
381
res->filt = filt;
lib/libevtr/evtr.c
382
TAILQ_INSERT_TAIL(&q->unresolved_filtq, res, link);
lib/libfetch/common.c
315
struct addrinfo hints, *res;
lib/libfetch/common.c
369
if ((err = getaddrinfo(host, service, &hints, &res)) != 0) {
lib/libfetch/common.c
373
return (res);
lib/libfetch/common.c
866
struct addrinfo hints, *res;
lib/libfetch/common.c
878
if (getaddrinfo(host, "443", &hints, &res) != 0)
lib/libfetch/common.c
879
res = NULL;
lib/libfetch/common.c
881
return res;
lib/libftpio/ftpio.c
725
struct addrinfo hints, *res, *res0;
lib/libftpio/ftpio.c
761
for (res = res0; res; res = res->ai_next) {
lib/libftpio/ftpio.c
762
ai_unmapped(res);
lib/libftpio/ftpio.c
763
ftp->addrtype = res->ai_family;
lib/libftpio/ftpio.c
765
if ((s = socket(res->ai_family, res->ai_socktype,
lib/libftpio/ftpio.c
766
res->ai_protocol)) < 0)
lib/libftpio/ftpio.c
769
if (connect(s, res->ai_addr, res->ai_addrlen) < 0) {
lib/libnvmm/libnvmm_x86.c
2684
uint##sz##_t res; \
lib/libnvmm/libnvmm_x86.c
2690
: "=r" (*rflags), "=r" (res) \
lib/libnvmm/libnvmm_x86.c
2692
return res; \
lib/libpam/modules/pam_unix/pam_unix.c
158
struct addrinfo hints, *res;
lib/libpam/modules/pam_unix/pam_unix.c
244
if (getaddrinfo(rhost, NULL, &hints, &res) == 0) {
lib/libpam/modules/pam_unix/pam_unix.c
245
getnameinfo(res->ai_addr, res->ai_addrlen,
lib/libpam/modules/pam_unix/pam_unix.c
249
if (res != NULL)
lib/libpam/modules/pam_unix/pam_unix.c
250
freeaddrinfo(res);
lib/librpcsvc/yp_update.c
132
(xdrproc_t)xdr_u_int, &res, timeout)) != RPC_SUCCESS) {
lib/librpcsvc/yp_update.c
134
res = YPERR_ACCESS;
lib/librpcsvc/yp_update.c
136
res = YPERR_RPC;
lib/librpcsvc/yp_update.c
149
(xdrproc_t)xdr_u_int, &res, timeout)) != RPC_SUCCESS) {
lib/librpcsvc/yp_update.c
151
res = YPERR_ACCESS;
lib/librpcsvc/yp_update.c
153
res = YPERR_RPC;
lib/librpcsvc/yp_update.c
164
(xdrproc_t)xdr_u_int, &res, timeout)) != RPC_SUCCESS) {
lib/librpcsvc/yp_update.c
166
res = YPERR_ACCESS;
lib/librpcsvc/yp_update.c
168
res = YPERR_RPC;
lib/librpcsvc/yp_update.c
181
(xdrproc_t)xdr_u_int, &res, timeout)) != RPC_SUCCESS) {
lib/librpcsvc/yp_update.c
183
res = YPERR_ACCESS;
lib/librpcsvc/yp_update.c
185
res = YPERR_RPC;
lib/librpcsvc/yp_update.c
190
res = YPERR_BADARGS;
lib/librpcsvc/yp_update.c
199
return(res);
lib/librpcsvc/yp_update.c
64
unsigned int res;
lib/libssh/openbsd-compat/getrrsetbyname-ldns.c
237
*res = rrset;
lib/libssh/openbsd-compat/getrrsetbyname-ldns.c
65
struct rrsetinfo **res)
lib/libssh/openbsd-compat/sys-tree.h
648
struct type *res = NULL; \
lib/libssh/openbsd-compat/sys-tree.h
653
res = tmp; \
lib/libssh/openbsd-compat/sys-tree.h
661
return (res); \
lib/libthread_xu/thread/thr_umtx.h
69
int res;
lib/libthread_xu/thread/thr_umtx.h
75
res = __thr_umtx_lock(mtx, id, 0);
lib/libthread_xu/thread/thr_umtx.h
76
if (res && temporary)
lib/libthread_xu/thread/thr_umtx.h
78
return res;
lib/libthread_xu/thread/thr_umtx.h
85
int res;
lib/libthread_xu/thread/thr_umtx.h
92
res = __thr_umtx_timedlock(mtx, id, timeout);
lib/libthread_xu/thread/thr_umtx.h
93
if (res && temporary)
lib/libthread_xu/thread/thr_umtx.h
95
return res;
lib/libutil/login_cap.c
110
const char **res = NULL;
lib/libutil/login_cap.c
122
if ((res = allocarray(++i)) == NULL)
lib/libutil/login_cap.c
129
res[i++] = ptr;
lib/libutil/login_cap.c
134
res[i] = NULL;
lib/libutil/login_cap.c
141
return res;
lib/libutil/login_cap.c
361
char *res;
lib/libutil/login_cap.c
367
if ((ret = cgetstr(lc->lc_cap, cap, &res)) == -1)
lib/libutil/login_cap.c
369
return (ret >= 0) ? res : error;
lib/libutil/login_cap.c
536
char *res, *ep, *oval;
lib/libutil/login_cap.c
550
if ((r = cgetstr(lc->lc_cap, cap, &res)) == -1)
lib/libutil/login_cap.c
558
if (isinfinite(res))
lib/libutil/login_cap.c
568
oval = res;
lib/libutil/login_cap.c
569
while (*res) {
lib/libutil/login_cap.c
570
rlim_t tim = strtoq(res, &ep, 0);
lib/libutil/login_cap.c
573
if (ep == NULL || ep == res || errno != 0) {
lib/libutil/login_cap.c
605
res = ep;
lib/libutil/login_cap.c
627
char *ep, *res;
lib/libutil/login_cap.c
637
if ((r = cgetstr(lc->lc_cap, cap, &res)) == -1) {
lib/libutil/login_cap.c
651
if (isinfinite(res))
lib/libutil/login_cap.c
655
val = strtoq(res, &ep, 0);
lib/libutil/login_cap.c
656
if (ep == NULL || ep == res || errno != 0) {
lib/libutil/login_cap.c
658
lc->lc_class, cap, res);
lib/libutil/login_cap.c
679
char *ep, *res, *oval;
lib/libutil/login_cap.c
686
if ((r = cgetstr(lc->lc_cap, cap, &res)) == -1)
lib/libutil/login_cap.c
693
if (isinfinite(res))
lib/libutil/login_cap.c
698
oval = res;
lib/libutil/login_cap.c
699
while (*res) {
lib/libutil/login_cap.c
700
rlim_t siz = strtoq(res, &ep, 0);
lib/libutil/login_cap.c
703
if (ep == NULL || ep == res || errno != 0) {
lib/libutil/login_cap.c
732
res = ep;
lib/libutil/realhostname.c
130
struct addrinfo hints, *res, *ores;
lib/libutil/realhostname.c
138
error = getaddrinfo(buf, NULL, &hints, &res);
lib/libutil/realhostname.c
143
for (ores = res; ; res = res->ai_next) {
lib/libutil/realhostname.c
144
if (res == NULL) {
lib/libutil/realhostname.c
149
sa = res->ai_addr;
lib/libutil/trimdomain.c
101
res = 0;
lib/libutil/trimdomain.c
104
res = 1; /* NN */
lib/libutil/trimdomain.c
109
res = 1; /* NN.NN */
lib/libutil/trimdomain.c
112
return (res);
lib/libutil/trimdomain.c
98
int res;
libexec/atrun/atrun.c
101
pid_t res;
libexec/atrun/atrun.c
102
res = fork();
libexec/atrun/atrun.c
103
if (res == 0)
libexec/atrun/atrun.c
105
return res;
libexec/dma/dns.c
100
for (res = res0; res != NULL; res = res->ai_next) {
libexec/dma/dns.c
111
p->ai = *res;
libexec/dma/dns.c
113
bcopy(res->ai_addr, &p->sa, p->ai.ai_addrlen);
libexec/dma/dns.c
68
struct addrinfo hints, *res, *res0 = NULL;
libexec/dma/net.c
255
int len, res = 0;
libexec/dma/net.c
259
res = smtp_auth_md5(fd, login, password);
libexec/dma/net.c
260
if (res == 0) {
libexec/dma/net.c
262
} else if (res == -2) {
libexec/dma/net.c
293
res = read_remote(fd, 0, NULL);
libexec/dma/net.c
294
if (res != 3) {
libexec/dma/net.c
296
res == 5 ? "failed" : "deferred", neterr);
libexec/dma/net.c
297
return (res == 5 ? -1 : 1);
libexec/dma/net.c
306
res = read_remote(fd, 0, NULL);
libexec/dma/net.c
307
if (res != 2) {
libexec/dma/net.c
309
res == 5 ? "failed" : "deferred", neterr);
libexec/dma/net.c
310
return (res == 5 ? -1 : 1);
libexec/dma/net.c
385
int res = read_remote(fd, sizeof(buffer) - 1, buffer);
libexec/dma/net.c
388
if (res != 2)
libexec/dma/net.c
470
int fd, error = 0, do_auth = 0, res = 0;
libexec/dma/net.c
483
res = read_remote(fd, 0, NULL); \
libexec/dma/net.c
484
if (res == 5) { \
libexec/dma/net.c
491
} else if (res != exp) { \
libexec/ftpd/ftpcmd.y
226
struct addrinfo *res;
libexec/ftpd/ftpcmd.y
291
i = getaddrinfo(result[1], result[2], &hints, &res);
libexec/ftpd/ftpcmd.y
294
memcpy(&data_dest, res->ai_addr, res->ai_addrlen);
libexec/ftpd/ftpd.c
3337
struct addrinfo hints, *res, *r;
libexec/ftpd/ftpd.c
3345
error = getaddrinfo(bindname, bindport, &hints, &res);
libexec/ftpd/ftpd.c
3354
for (maxs = 0, r = res; r; r = r->ai_next, maxs++)
libexec/ftpd/ftpd.c
3358
freeaddrinfo(res);
libexec/ftpd/ftpd.c
3365
for (r = res; r; r = r->ai_next) {
libexec/ftpd/ftpd.c
3390
if (res)
libexec/ftpd/ftpd.c
3391
freeaddrinfo(res);
libexec/ftpd/ftpd.c
658
struct addrinfo hints, *res, *ai;
libexec/ftpd/ftpd.c
679
if (getaddrinfo(hrp->hostname, NULL, &hints, &res) == 0)
libexec/ftpd/ftpd.c
680
hrp->hostinfo = res;
libexec/ftpd/ftpd.c
751
if (getaddrinfo(vhost, NULL, &hints, &res) != 0)
libexec/ftpd/ftpd.c
753
for (ai = res; ai != NULL && ai->ai_addr != NULL;
libexec/ftpd/ftpd.c
778
if (hrp->hostinfo && hrp->hostinfo != res)
libexec/ftpd/ftpd.c
782
hrp->hostinfo = res;
libexec/getty/chat.c
137
char **res = NULL;
libexec/getty/chat.c
144
(res=malloc((l / 2 + 1) * sizeof(char *))) != NULL) {
libexec/getty/chat.c
223
res[l++] = p;
libexec/getty/chat.c
225
res[l] = NULL;
libexec/getty/chat.c
227
return res;
libexec/getty/chat.c
231
return res;
libexec/rtld-elf/malloc.c
325
char *res;
libexec/rtld-elf/malloc.c
376
if ((res = malloc(nbytes)) == NULL)
libexec/rtld-elf/malloc.c
378
if (cp != res) /* common optimization if "compacting" */
libexec/rtld-elf/malloc.c
379
bcopy(cp, res, (nbytes < onb) ? nbytes : onb);
libexec/rtld-elf/malloc.c
380
return (res);
libexec/rtld-elf/rtld.c
1614
int res;
libexec/rtld-elf/rtld.c
1651
res = symlook_default(&req, refobj);
libexec/rtld-elf/rtld.c
1652
if (res == 0) {
libexec/rtld-elf/rtld.c
2103
int res;
libexec/rtld-elf/rtld.c
2117
res = symlook_obj(&req, obj);
libexec/rtld-elf/rtld.c
2118
if (res == 0) {
libexec/rtld-elf/rtld.c
2809
char *res;
libexec/rtld-elf/rtld.c
2814
res = callback(trans, strlen(trans), arg);
libexec/rtld-elf/rtld.c
2816
res = callback(path, len, arg);
libexec/rtld-elf/rtld.c
2818
if (res != NULL)
libexec/rtld-elf/rtld.c
2819
return (res);
libexec/rtld-elf/rtld.c
3193
int res;
libexec/rtld-elf/rtld.c
3219
res = symlook_obj(&req, obj);
libexec/rtld-elf/rtld.c
3220
if (res == 0) {
libexec/rtld-elf/rtld.c
3230
res = symlook_obj(&req, obj);
libexec/rtld-elf/rtld.c
3231
if (res == 0) {
libexec/rtld-elf/rtld.c
3247
res = symlook_obj(&req, &obj_rtld);
libexec/rtld-elf/rtld.c
3248
if (res == 0) {
libexec/rtld-elf/rtld.c
3255
res = symlook_default(&req, obj);
libexec/rtld-elf/rtld.c
3256
if (res == 0) {
libexec/rtld-elf/rtld.c
3270
res = symlook_global(&req, &donelist);
libexec/rtld-elf/rtld.c
3271
if (res == 0) {
libexec/rtld-elf/rtld.c
3281
res = symlook_obj(&req, &obj_rtld);
libexec/rtld-elf/rtld.c
3282
if (res == 0) {
libexec/rtld-elf/rtld.c
3290
res = symlook_list(&req, &obj->dagmembers, &donelist);
libexec/rtld-elf/rtld.c
3291
if (res == 0) {
libexec/rtld-elf/rtld.c
3804
int res;
libexec/rtld-elf/rtld.c
3811
res = symlook_list(&req1, &list_main, donelist);
libexec/rtld-elf/rtld.c
3812
if (res == 0 && (req->defobj_out == NULL ||
libexec/rtld-elf/rtld.c
3825
res = symlook_list(&req1, &elm->obj->dagmembers, donelist);
libexec/rtld-elf/rtld.c
3826
if (res == 0 && (req->defobj_out == NULL ||
libexec/rtld-elf/rtld.c
3879
int res;
libexec/rtld-elf/rtld.c
3886
res = symlook_obj(&req1, refobj);
libexec/rtld-elf/rtld.c
3887
if (res == 0) {
libexec/rtld-elf/rtld.c
3901
res = symlook_list(&req1, &elm->obj->dagmembers, &donelist);
libexec/rtld-elf/rtld.c
3902
if (res == 0 && (req->sym_out == NULL ||
libexec/rtld-elf/rtld.c
3917
res = symlook_obj(&req1, &obj_rtld);
libexec/rtld-elf/rtld.c
3918
if (res == 0) {
libexec/rtld-elf/rtld.c
3935
int res;
libexec/rtld-elf/rtld.c
3943
if ((res = symlook_obj(&req1, elm->obj)) == 0) {
libexec/rtld-elf/rtld.c
3973
int res;
libexec/rtld-elf/rtld.c
3980
(res = symlook_list(&req1, &n->obj->dagmembers, dlp)) != 0)
libexec/rtld-elf/rtld.c
4011
int flags, res, mres;
libexec/rtld-elf/rtld.c
4030
res = symlook_needed(&req1, obj->needed_filtees, &donelist);
libexec/rtld-elf/rtld.c
4031
if (res == 0) {
libexec/rtld-elf/rtld.c
4035
return (res);
libexec/rtld-elf/rtld.c
4042
res = symlook_needed(&req1, obj->needed_aux_filtees, &donelist);
libexec/rtld-elf/rtld.c
4043
if (res == 0) {
libexec/rtld-elf/rtld.c
4046
return (res);
libexec/rtld-elf/rtld.c
894
char *p, *p1, *res, *resp;
libexec/rtld-elf/rtld.c
922
res = xmalloc(new_len + 1);
libexec/rtld-elf/rtld.c
927
for (p = real, resp = res, *resp = '\0';;) {
libexec/rtld-elf/rtld.c
946
return (res);
libexec/rtld-elf/x86_64/reloc.c
84
int res;
libexec/rtld-elf/x86_64/reloc.c
95
res = symlook_obj(&req, srcobj);
libexec/rtld-elf/x86_64/reloc.c
96
if (res == 0) {
libexec/telnetd/telnetd.c
310
struct addrinfo hints, *res;
libexec/telnetd/telnetd.c
323
error = getaddrinfo(NULL, service, &hints, &res);
libexec/telnetd/telnetd.c
332
s = socket(res->ai_family, res->ai_socktype, res->ai_protocol);
libexec/telnetd/telnetd.c
337
if (bind(s, res->ai_addr, res->ai_addrlen) < 0)
libexec/telnetd/telnetd.c
341
foo = res->ai_addrlen;
libexec/telnetd/telnetd.c
342
ns = accept(s, res->ai_addr, &foo);
libexec/telnetd/utility.c
354
char *res = editedhost;
libexec/telnetd/utility.c
368
*res++ = *host++;
libexec/telnetd/utility.c
372
*res++ = *pat;
libexec/telnetd/utility.c
375
if (res == &editedhost[sizeof editedhost - 1]) {
libexec/telnetd/utility.c
376
*res = '\0';
libexec/telnetd/utility.c
382
(void) strncpy(res, host,
libexec/telnetd/utility.c
383
sizeof editedhost - (res - editedhost) -1);
libexec/telnetd/utility.c
385
*res = '\0';
libexec/utmp_update/utmp_update.c
103
res = strunvis((char *)utx, argv[1]);
libexec/utmp_update/utmp_update.c
104
if (res != (int)sizeof(*utx))
libexec/utmp_update/utmp_update.c
105
logerr(0, "Decoding error %s %d != %zu", argv[1], res,
libexec/utmp_update/utmp_update.c
78
int res;
libexec/ypxfr/ypxfr_misc.c
128
int res;
libexec/ypxfr/ypxfr_misc.c
130
if ((res = yp_master(domain, map, &master))) {
libexec/ypxfr/ypxfr_misc.c
131
switch (res) {
libexec/ypxfr/ypxfr_misc.c
197
int res;
libexec/ypxfr/ypxfr_misc.c
198
if ((res = yp_order(domain, map, (int *)&order))) {
libexec/ypxfr/ypxfr_misc.c
199
switch (res) {
sbin/comcontrol/comcontrol.c
114
res = 1;
sbin/comcontrol/comcontrol.c
120
res = 1;
sbin/comcontrol/comcontrol.c
127
return res;
sbin/comcontrol/comcontrol.c
56
int res = 0;
sbin/comcontrol/comcontrol.c
76
res = 1;
sbin/comcontrol/comcontrol.c
83
res = 1;
sbin/fsck/pass1.c
352
int res = KEEPON;
sbin/fsck/pass1.c
374
res = SKIP;
sbin/fsck/pass1.c
419
return (res);
sbin/fsck/pass1b.c
102
return (res);
sbin/fsck/pass1b.c
83
int nfrags, res = KEEPON;
sbin/fsck/pass1b.c
88
res = SKIP;
sbin/fsck/pass4.c
121
int nfrags, res = KEEPON;
sbin/fsck/pass4.c
126
res = SKIP;
sbin/fsck/pass4.c
143
return (res);
sbin/hammer/cmd_cleanup.c
1254
int res;
sbin/hammer/cmd_cleanup.c
1296
res = 127;
sbin/hammer/cmd_cleanup.c
1302
res = WEXITSTATUS(status);
sbin/hammer/cmd_cleanup.c
1311
*resp = res;
sbin/hammer/cmd_cleanup.c
865
int res = 0;
sbin/hammer/cmd_cleanup.c
876
++res;
sbin/hammer/cmd_cleanup.c
896
res += snapshot.count;
sbin/hammer/cmd_cleanup.c
899
return (res);
sbin/hammer/cmd_history.c
260
test_strtol(int res, long val)
sbin/hammer/cmd_history.c
262
return(res == ERANGE && (val == LONG_MIN || val == LONG_MAX));
sbin/hammer/cmd_history.c
267
test_strtoll(int res, long long val)
sbin/hammer/cmd_history.c
269
return(res == ERANGE && (val == LLONG_MIN || val == LLONG_MAX));
sbin/hammer/cmd_history.c
50
static __inline int test_strtol(int res, long val);
sbin/hammer/cmd_history.c
51
static __inline int test_strtoll(int res, long long val);
sbin/hammer/cmd_mirror.c
520
int res;
sbin/hammer/cmd_mirror.c
658
res = 0;
sbin/hammer/cmd_mirror.c
659
(*histogram_ary)[res].tid = tid_beg;
sbin/hammer/cmd_mirror.c
660
(*histogram_ary)[res].bytes = tid_bytes[0];
sbin/hammer/cmd_mirror.c
662
if ((*histogram_ary)[res].bytes >= SplitupOpt) {
sbin/hammer/cmd_mirror.c
663
++res;
sbin/hammer/cmd_mirror.c
664
(*histogram_ary)[res].tid = tid_beg +
sbin/hammer/cmd_mirror.c
667
(*histogram_ary)[res].bytes = 0;
sbin/hammer/cmd_mirror.c
670
(*histogram_ary)[res].bytes += tid_bytes[i];
sbin/hammer/cmd_mirror.c
672
++res;
sbin/hammer/cmd_mirror.c
673
(*histogram_ary)[res].tid = tid_end;
sbin/hammer/cmd_mirror.c
674
(*histogram_ary)[res].bytes = -1;
sbin/hammer/cmd_mirror.c
680
res, (uintmax_t)total / (1024 * 1024));
sbin/hammer/cmd_mirror.c
682
res, (uintmax_t)total / (1024 * 1024));
sbin/hammer/cmd_mirror.c
683
for (i = 0; i < res && i < 3; ++i) {
sbin/hammer/cmd_mirror.c
689
if (i < res)
sbin/hammer/cmd_mirror.c
693
assert(res <= HIST_COUNT);
sbin/hammer/cmd_mirror.c
697
return(res);
sbin/hammer/cmd_snapshot.c
634
char *res;
sbin/hammer/cmd_snapshot.c
647
res = malloc(ptr - path + 1);
sbin/hammer/cmd_snapshot.c
648
bcopy(path, res, ptr - path);
sbin/hammer/cmd_snapshot.c
649
res[ptr - path] = 0;
sbin/hammer/cmd_snapshot.c
650
return(res);
sbin/hammer/misc.c
322
double res;
sbin/hammer/misc.c
325
res = ((double)(used * 100)) / (blocks << HAMMER_BIGBLOCK_BITS);
sbin/hammer/misc.c
327
res = 0;
sbin/hammer/misc.c
328
return(res);
sbin/hammer2/cmd_bulkfree.c
43
int res;
sbin/hammer2/cmd_bulkfree.c
61
res = ioctl(fd, HAMMER2IOC_BULKFREE_SCAN, &bfi);
sbin/hammer2/cmd_bulkfree.c
62
if (res) {
sbin/hammer2/cmd_bulkfree.c
76
int res;
sbin/hammer2/cmd_bulkfree.c
83
res = ioctl(fd, HAMMER2IOC_BULKFREE_ASYNC, &bfi);
sbin/hammer2/cmd_bulkfree.c
84
if (res) {
sbin/hammer2/cmd_debug.c
365
void *res;
sbin/hammer2/cmd_debug.c
377
pthread_join(thread, &res);
sbin/hammer2/cmd_recover.c
1124
int res;
sbin/hammer2/cmd_recover.c
1159
res = 1;
sbin/hammer2/cmd_recover.c
1164
res = dump_file_data(wfd, inode->meta.size,
sbin/hammer2/cmd_recover.c
1173
if (res) {
sbin/hammer2/cmd_recover.c
1216
return res;
sbin/hammer2/cmd_recover.c
1244
int res = 1;
sbin/hammer2/cmd_recover.c
1276
res = 0;
sbin/hammer2/cmd_recover.c
1282
res = 0;
sbin/hammer2/cmd_recover.c
1340
res = 0;
sbin/hammer2/cmd_recover.c
1357
res = 0;
sbin/hammer2/cmd_recover.c
1362
res = 0;
sbin/hammer2/cmd_recover.c
1370
if (res)
sbin/hammer2/cmd_recover.c
1371
res = rtmp;
sbin/hammer2/cmd_recover.c
1375
return res;
sbin/hammer2/cmd_recover.c
1392
int res = 1;
sbin/hammer2/cmd_recover.c
1414
res = 0;
sbin/hammer2/cmd_recover.c
1419
res = 0;
sbin/hammer2/cmd_recover.c
1424
res = 0;
sbin/hammer2/cmd_recover.c
1434
res = 0;
sbin/hammer2/cmd_recover.c
1442
if (res)
sbin/hammer2/cmd_recover.c
1443
res = res2;
sbin/hammer2/cmd_recover.c
1449
if (res)
sbin/hammer2/cmd_recover.c
1450
res = res2;
sbin/hammer2/cmd_recover.c
1469
if (res)
sbin/hammer2/cmd_recover.c
1470
res = rtmp;
sbin/hammer2/cmd_recover.c
1474
return res;
sbin/hammer2/cmd_service.c
698
void *res;
sbin/hammer2/cmd_service.c
727
pthread_join(ac->thread, &res);
sbin/hammer2/cmd_setcheck.c
100
int res;
sbin/hammer2/cmd_setcheck.c
104
res = 3;
sbin/hammer2/cmd_setcheck.c
107
res = ioctl(fd, HAMMER2IOC_INODE_GET, &inode);
sbin/hammer2/cmd_setcheck.c
108
if (res < 0) {
sbin/hammer2/cmd_setcheck.c
112
res = 3;
sbin/hammer2/cmd_setcheck.c
118
res = ioctl(fd, HAMMER2IOC_INODE_SET, &inode);
sbin/hammer2/cmd_setcheck.c
119
if (res < 0) {
sbin/hammer2/cmd_setcheck.c
123
res = 3;
sbin/hammer2/cmd_setcheck.c
126
res = 0;
sbin/hammer2/cmd_setcheck.c
149
return res;
sbin/hammer2/cmd_setcheck.c
47
int res;
sbin/hammer2/cmd_setcheck.c
78
res = cmd_setcheck_core(
sbin/hammer2/cmd_setcheck.c
82
if (res)
sbin/hammer2/cmd_setcheck.c
83
ecode = res;
sbin/hammer2/cmd_setcomp.c
112
res = cmd_setcomp_core(
sbin/hammer2/cmd_setcomp.c
117
if (res)
sbin/hammer2/cmd_setcomp.c
118
ecode = res;
sbin/hammer2/cmd_setcomp.c
136
int res;
sbin/hammer2/cmd_setcomp.c
140
res = 3;
sbin/hammer2/cmd_setcomp.c
143
res = ioctl(fd, HAMMER2IOC_INODE_GET, &inode);
sbin/hammer2/cmd_setcomp.c
144
if (res < 0) {
sbin/hammer2/cmd_setcomp.c
148
res = 3;
sbin/hammer2/cmd_setcomp.c
154
res = ioctl(fd, HAMMER2IOC_INODE_SET, &inode);
sbin/hammer2/cmd_setcomp.c
155
if (res < 0) {
sbin/hammer2/cmd_setcomp.c
159
res = 3;
sbin/hammer2/cmd_setcomp.c
162
res = 0;
sbin/hammer2/cmd_setcomp.c
185
return res;
sbin/hammer2/cmd_setcomp.c
224
int res = ioctl(fd, HAMMER2IOC_INODE_GET, &inode);
sbin/hammer2/cmd_setcomp.c
225
if (res < 0) {
sbin/hammer2/cmd_setcomp.c
236
res = ioctl(fd, HAMMER2IOC_INODE_SET, &inode);
sbin/hammer2/cmd_setcomp.c
237
if (res < 0) {
sbin/hammer2/cmd_setcomp.c
273
int res = ioctl(fd, HAMMER2IOC_INODE_GET, &inode);
sbin/hammer2/cmd_setcomp.c
274
if (res < 0) {
sbin/hammer2/cmd_setcomp.c
282
res = ioctl(fd, HAMMER2IOC_INODE_SET, &inode);
sbin/hammer2/cmd_setcomp.c
288
res = ioctl(fd, HAMMER2IOC_INODE_SET, &inode);
sbin/hammer2/cmd_setcomp.c
291
if (res < 0) {
sbin/hammer2/cmd_setcomp.c
48
int res;
sbin/hammer2/zlib/hammer2_zlib_trees.c
1164
register unsigned res = 0;
sbin/hammer2/zlib/hammer2_zlib_trees.c
1166
res |= code & 1;
sbin/hammer2/zlib/hammer2_zlib_trees.c
1167
code >>= 1, res <<= 1;
sbin/hammer2/zlib/hammer2_zlib_trees.c
1169
return res >> 1;
sbin/ifconfig/af_inet6.c
356
struct addrinfo hints, *res;
sbin/ifconfig/af_inet6.c
377
error = getaddrinfo(s, NULL, &hints, &res);
sbin/ifconfig/af_inet6.c
383
memcpy(sin, res->ai_addr, res->ai_addrlen);
sbin/init/init.c
519
char *res;
sbin/init/init.c
531
res = NULL;
sbin/init/init.c
553
res = strdup(sbuf + ichlen);
sbin/init/init.c
556
return (res);
sbin/ipfw/ipfw2.c
1317
long long res = 0;
sbin/ipfw/ipfw2.c
1323
res = a->len - b->len;
sbin/ipfw/ipfw2.c
1326
res = a->len_bytes - b->len_bytes;
sbin/ipfw/ipfw2.c
1330
res = a->tot_pkts - b->tot_pkts;
sbin/ipfw/ipfw2.c
1334
res = a->tot_bytes - b->tot_bytes;
sbin/ipfw/ipfw2.c
1337
if (res < 0)
sbin/ipfw/ipfw2.c
1338
res = -1;
sbin/ipfw/ipfw2.c
1339
if (res > 0)
sbin/ipfw/ipfw2.c
1340
res = 1;
sbin/ipfw/ipfw2.c
1341
return (int)(rev ? res : -res);
sbin/ipfw3/ipfw3dummynet.c
120
long long res = 0;
sbin/ipfw3/ipfw3dummynet.c
126
res = a->len - b->len;
sbin/ipfw3/ipfw3dummynet.c
129
res = a->len_bytes - b->len_bytes;
sbin/ipfw3/ipfw3dummynet.c
133
res = a->tot_pkts - b->tot_pkts;
sbin/ipfw3/ipfw3dummynet.c
137
res = a->tot_bytes - b->tot_bytes;
sbin/ipfw3/ipfw3dummynet.c
140
if (res < 0)
sbin/ipfw3/ipfw3dummynet.c
141
res = -1;
sbin/ipfw3/ipfw3dummynet.c
142
if (res > 0)
sbin/ipfw3/ipfw3dummynet.c
143
res = 1;
sbin/ipfw3/ipfw3dummynet.c
144
return (int)(rev ? res : -res);
sbin/iscontrol/fsm.c
132
for(res = res0; res; res = res->ai_next) {
sbin/iscontrol/fsm.c
133
soc = socket(res->ai_family, res->ai_socktype, res->ai_protocol);
sbin/iscontrol/fsm.c
144
if(connect(soc, res->ai_addr, res->ai_addrlen) == 0)
sbin/iscontrol/fsm.c
74
struct addrinfo *res, *res0, hints;
sbin/iscontrol/login.c
121
int res, l1, l2;
sbin/iscontrol/login.c
123
res = -1;
sbin/iscontrol/login.c
136
res = 0;
sbin/iscontrol/login.c
145
debug(3, "res=%d", res);
sbin/iscontrol/login.c
147
return res;
sbin/iscontrol/pdu.c
80
int res;
sbin/iscontrol/pdu.c
88
if((res = recvpdu(sess, pp)) != 0) {
sbin/iscontrol/pdu.c
90
return res;
sbin/iscontrol/pdu.c
92
res = hdlr(sess, pp);
sbin/iscontrol/pdu.c
94
return res;
sbin/jscan/jstream.c
427
int res;
sbin/jscan/jstream.c
431
res = 0;
sbin/jscan/jstream.c
437
if (res == 0)
sbin/jscan/jstream.c
438
res = -1;
sbin/jscan/jstream.c
440
res += n;
sbin/jscan/jstream.c
444
return(res);
sbin/jscan/subs.c
304
char *res;
sbin/jscan/subs.c
306
res = malloc(bytes + 1);
sbin/jscan/subs.c
307
bcopy(buf, res, bytes);
sbin/jscan/subs.c
308
res[bytes] = 0;
sbin/jscan/subs.c
310
return(res);
sbin/jscan/subs.c
319
char *res;
sbin/jscan/subs.c
322
res = malloc(bytes + 1);
sbin/jscan/subs.c
323
bcopy(buf, res, bytes);
sbin/jscan/subs.c
324
res[bytes] = 0;
sbin/jscan/subs.c
326
if (res[0] == '/') {
sbin/jscan/subs.c
327
fprintf(stderr, "Bad path: %s\n", res);
sbin/jscan/subs.c
328
free(res);
sbin/jscan/subs.c
331
scan = res;
sbin/jscan/subs.c
336
fprintf(stderr, "Bad path: %s\n", res);
sbin/jscan/subs.c
337
free(res);
sbin/jscan/subs.c
344
return(res);
sbin/mount/mount.c
750
char *res;
sbin/mount/mount.c
752
res = NULL;
sbin/mount/mount.c
754
res = catopt(res, (flags & MNT_RDONLY) ? "ro" : "rw");
sbin/mount/mount.c
756
if (flags & MNT_SYNCHRONOUS) res = catopt(res, "sync");
sbin/mount/mount.c
757
if (flags & MNT_NOEXEC) res = catopt(res, "noexec");
sbin/mount/mount.c
758
if (flags & MNT_NOSUID) res = catopt(res, "nosuid");
sbin/mount/mount.c
759
if (flags & MNT_NODEV) res = catopt(res, "nodev");
sbin/mount/mount.c
760
if (flags & MNT_ASYNC) res = catopt(res, "async");
sbin/mount/mount.c
761
if (flags & MNT_NOATIME) res = catopt(res, "noatime");
sbin/mount/mount.c
762
if (flags & MNT_NOCLUSTERR) res = catopt(res, "noclusterr");
sbin/mount/mount.c
763
if (flags & MNT_NOCLUSTERW) res = catopt(res, "noclusterw");
sbin/mount/mount.c
764
if (flags & MNT_NOSYMFOLLOW) res = catopt(res, "nosymfollow");
sbin/mount/mount.c
765
if (flags & MNT_SUIDDIR) res = catopt(res, "suiddir");
sbin/mount/mount.c
766
if (flags & MNT_IGNORE) res = catopt(res, "ignore");
sbin/mount/mount.c
768
return res;
sbin/mount_ufs/mount.c
707
char *res;
sbin/mount_ufs/mount.c
709
res = NULL;
sbin/mount_ufs/mount.c
711
res = catopt(res, (flags & MNT_RDONLY) ? "ro" : "rw");
sbin/mount_ufs/mount.c
713
if (flags & MNT_SYNCHRONOUS) res = catopt(res, "sync");
sbin/mount_ufs/mount.c
714
if (flags & MNT_NOEXEC) res = catopt(res, "noexec");
sbin/mount_ufs/mount.c
715
if (flags & MNT_NOSUID) res = catopt(res, "nosuid");
sbin/mount_ufs/mount.c
716
if (flags & MNT_NODEV) res = catopt(res, "nodev");
sbin/mount_ufs/mount.c
717
if (flags & MNT_ASYNC) res = catopt(res, "async");
sbin/mount_ufs/mount.c
718
if (flags & MNT_NOATIME) res = catopt(res, "noatime");
sbin/mount_ufs/mount.c
719
if (flags & MNT_NOCLUSTERR) res = catopt(res, "noclusterr");
sbin/mount_ufs/mount.c
720
if (flags & MNT_NOCLUSTERW) res = catopt(res, "noclusterw");
sbin/mount_ufs/mount.c
721
if (flags & MNT_NOSYMFOLLOW) res = catopt(res, "nosymfollow");
sbin/mount_ufs/mount.c
722
if (flags & MNT_SUIDDIR) res = catopt(res, "suiddir");
sbin/mount_ufs/mount.c
723
if (flags & MNT_IGNORE) res = catopt(res, "ignore");
sbin/mount_ufs/mount.c
725
return res;
sbin/mountd/mountd.c
467
struct addrinfo hints, *res = NULL;
sbin/mountd/mountd.c
574
res = malloc(sizeof(struct addrinfo));
sbin/mountd/mountd.c
575
if (res == NULL)
sbin/mountd/mountd.c
577
res->ai_flags = hints.ai_flags;
sbin/mountd/mountd.c
578
res->ai_family = hints.ai_family;
sbin/mountd/mountd.c
579
res->ai_protocol = hints.ai_protocol;
sbin/mountd/mountd.c
581
switch (res->ai_family) {
sbin/mountd/mountd.c
589
res->ai_addr = (struct sockaddr*) sin;
sbin/mountd/mountd.c
590
res->ai_addrlen = (socklen_t)
sbin/mountd/mountd.c
591
sizeof(res->ai_addr);
sbin/mountd/mountd.c
600
res->ai_addr = (struct sockaddr*) sin6;
sbin/mountd/mountd.c
601
res->ai_addrlen = (socklen_t)
sbin/mountd/mountd.c
602
sizeof(res->ai_addr);
sbin/mountd/mountd.c
609
&hints, &res)) != 0) {
sbin/mountd/mountd.c
619
&hints, &res)) != 0) {
sbin/mountd/mountd.c
637
r = bindresvport_sa(fd, res->ai_addr);
sbin/mountd/mountd.c
639
struct sockaddr_in *sin = (void *)res->ai_addr;
sbin/mountd/mountd.c
640
struct sockaddr_in6 *sin6 = (void *)res->ai_addr;
sbin/mountd/mountd.c
703
if (getnameinfo(res->ai_addr,
sbin/mountd/mountd.c
704
res->ai_addr->sa_len, NULL, NI_MAXHOST,
sbin/mountd/mountd.c
711
&res)) != 0) {
sbin/mountd/mountd.c
717
servaddr.buf = malloc(res->ai_addrlen);
sbin/mountd/mountd.c
718
memcpy(servaddr.buf, res->ai_addr, res->ai_addrlen);
sbin/mountd/mountd.c
719
servaddr.len = res->ai_addrlen;
sbin/mountd/mountd.c
725
freeaddrinfo(res);
sbin/ping6/ping6.c
182
struct addrinfo *res;
sbin/ping6/ping6.c
460
ret_ga = getaddrinfo(optarg, NULL, &hints, &res);
sbin/ping6/ping6.c
469
memcpy(&src, res->ai_addr, res->ai_addrlen);
sbin/ping6/ping6.c
470
srclen = res->ai_addrlen;
sbin/ping6/ping6.c
471
freeaddrinfo(res);
sbin/ping6/ping6.c
533
ret_ga = getaddrinfo(target, NULL, &hints, &res);
sbin/ping6/ping6.c
536
if (res->ai_canonname)
sbin/ping6/ping6.c
537
hostname = res->ai_canonname;
sbin/ping6/ping6.c
541
if (!res->ai_addr)
sbin/ping6/ping6.c
544
memcpy(&dst, res->ai_addr, res->ai_addrlen);
sbin/ping6/ping6.c
546
if ((s = socket(res->ai_family, res->ai_socktype,
sbin/ping6/ping6.c
547
res->ai_protocol)) < 0)
sbin/rconfig/client.c
102
rc = udp_transact(&sain, &rsin, &ufd, &res, &len, "TAG %s\r\n", tagName);
sbin/rconfig/client.c
103
if (rc != 101 || res == NULL) {
sbin/rconfig/client.c
104
printf("NO LUCK %s\n", (res ? res : ""));
sbin/rconfig/client.c
106
printf("%s -", res);
sbin/rconfig/client.c
157
if (res)
sbin/rconfig/client.c
158
free(res);
sbin/rconfig/client.c
58
char *res = NULL;
sbin/route/route.c
1096
struct addrinfo hints, *res;
sbin/route/route.c
1105
if (getaddrinfo(str, "0", &hints, &res) != 0 ||
sbin/route/route.c
1106
res->ai_family != AF_INET6 ||
sbin/route/route.c
1107
res->ai_addrlen != sizeof(su->sin6)) {
sbin/route/route.c
1110
memcpy(&su->sin6, res->ai_addr, sizeof(su->sin6));
sbin/route/route.c
1120
freeaddrinfo(res);
sbin/routed/output.c
184
res = sendto(soc, buf, size, flags,
sbin/routed/output.c
186
if (res < 0
sbin/routed/output.c
198
return res;
sbin/routed/output.c
210
struct auth *ap, *res;
sbin/routed/output.c
217
res = NULL;
sbin/routed/output.c
230
if (res == NULL || (u_long)ap->end > (u_long)res->end)
sbin/routed/output.c
231
res = ap;
sbin/routed/output.c
236
if (res == NULL || (u_long)res->end < (u_long)ap->end)
sbin/routed/output.c
237
res = ap;
sbin/routed/output.c
239
return res;
sbin/routed/output.c
97
int res;
sbin/routed/rtquery/rtquery.c
297
int res;
sbin/routed/rtquery/rtquery.c
323
res = 1;
sbin/routed/rtquery/rtquery.c
326
res = 0;
sbin/routed/rtquery/rtquery.c
328
exit(res);
sbin/slattach/slattach.c
268
int res;
sbin/slattach/slattach.c
269
if ((res = uu_lock(dvname)) != UU_LOCK_OK) {
sbin/slattach/slattach.c
270
if (res != UU_LOCK_INUSE)
sbin/slattach/slattach.c
271
syslog(LOG_ERR, "uu_lock: %s", uu_lockerr(res));
sbin/slattach/slattach.c
461
int res;
sbin/slattach/slattach.c
462
if ((res = uu_lock(dvname)) != UU_LOCK_OK) {
sbin/slattach/slattach.c
463
if (res != UU_LOCK_INUSE)
sbin/slattach/slattach.c
464
syslog(LOG_ERR, "uu_lock: %s", uu_lockerr(res));
sbin/startslip/startslip.c
284
int res;
sbin/startslip/startslip.c
285
if ((res = uu_lock(dvname)) != UU_LOCK_OK) {
sbin/startslip/startslip.c
286
if (res != UU_LOCK_INUSE)
sbin/startslip/startslip.c
287
syslog(LOG_ERR, "uu_lock: %s", uu_lockerr(res));
sbin/swapon/swapon.c
227
char *res;
sbin/swapon/swapon.c
235
asprintf(&res, "/dev/mapper/%s", id);
sbin/swapon/swapon.c
272
free(res);
sbin/swapon/swapon.c
274
res = strdup(fs_spec);
sbin/swapon/swapon.c
279
free (res);
sbin/swapon/swapon.c
280
res = NULL;
sbin/swapon/swapon.c
282
return res;
sbin/usched/usched.c
128
res = usched_set(pid, USCHED_SET_SCHEDULER,
sbin/usched/usched.c
130
if (res != 0) {
sbin/usched/usched.c
148
res = usched_set(pid, USCHED_SET_CPU, &cpuid, sizeof(int));
sbin/usched/usched.c
149
if (res != 0) {
sbin/usched/usched.c
166
res = usched_set(pid, USCHED_ADD_CPU,
sbin/usched/usched.c
168
if (res != 0) {
sbin/usched/usched.c
52
int res;
sbin/vquota/vquota.c
116
struct hl_node *hlp, *res;
sbin/vquota/vquota.c
127
res = RB_INSERT(hl_tree, &hl_root, hlp);
sbin/vquota/vquota.c
129
if (res != NULL) /* shouldn't happen */
sbin/vquota/vquota.c
216
struct ac_unode *unp, *res;
sbin/vquota/vquota.c
226
res = RB_INSERT(ac_utree, &ac_uroot, unp);
sbin/vquota/vquota.c
228
if (res != NULL) /* shouldn't happen */
sbin/vquota/vquota.c
237
struct ac_gnode *gnp, *res;
sbin/vquota/vquota.c
247
res = RB_INSERT(ac_gtree, &ac_groot, gnp);
sbin/vquota/vquota.c
249
if (res != NULL) /* shouldn't happen */
sbin/vquota/vquota.c
430
prop_object_t args, prop_dictionary_t *res)
sbin/vquota/vquota.c
474
error = prop_dictionary_recv_syscall(&pref, res);
sbin/vquota/vquota.c
481
prop_dictionary_externalize(*res));
sbin/vquota/vquota.c
490
prop_dictionary_t args, res;
sbin/vquota/vquota.c
500
res = prop_dictionary_create();
sbin/vquota/vquota.c
503
res = prop_dictionary_create();
sbin/vquota/vquota.c
504
if (res == NULL)
sbin/vquota/vquota.c
507
rv = send_command(path, "get usage all", args, &res);
sbin/vquota/vquota.c
513
reslist = prop_dictionary_get(res, "returned data");
sbin/vquota/vquota.c
557
prop_object_release(res);
sbin/vquota/vquota.c
564
prop_dictionary_t res, item;
sbin/vquota/vquota.c
573
res = prop_dictionary_create();
sbin/vquota/vquota.c
574
if (res == NULL)
sbin/vquota/vquota.c
610
if (send_command(dirname, "set usage all", args, &res) == false) {
sbin/vquota/vquota.c
616
prop_object_release(res);
sbin/vquota/vquota.c
624
prop_dictionary_t res, args;
sbin/vquota/vquota.c
630
res = prop_dictionary_create();
sbin/vquota/vquota.c
631
if (res == NULL)
sbin/vquota/vquota.c
636
if (send_command(dirname, "set limit", args, &res) == false) {
sbin/vquota/vquota.c
642
prop_object_release(res);
sbin/vquota/vquota.c
650
prop_dictionary_t res, args;
sbin/vquota/vquota.c
656
res = prop_dictionary_create();
sbin/vquota/vquota.c
657
if (res == NULL)
sbin/vquota/vquota.c
663
if (send_command(dirname, "set limit uid", args, &res) == false) {
sbin/vquota/vquota.c
669
prop_object_release(res);
sbin/vquota/vquota.c
677
prop_dictionary_t res, args;
sbin/vquota/vquota.c
683
res = prop_dictionary_create();
sbin/vquota/vquota.c
684
if (res == NULL)
sbin/vquota/vquota.c
690
if (send_command(dirname, "set limit gid", args, &res) == false) {
sbin/vquota/vquota.c
696
prop_object_release(res);
share/examples/sunrpc/dir/dir_proc.c
21
static readdir_res res; /* must be static! */
share/examples/sunrpc/dir/dir_proc.c
28
res.errno = errno;
share/examples/sunrpc/dir/dir_proc.c
29
return (&res);
share/examples/sunrpc/dir/dir_proc.c
35
xdr_free(xdr_readdir_res, &res);
share/examples/sunrpc/dir/dir_proc.c
40
nlp = &res.readdir_res_u.list;
share/examples/sunrpc/dir/dir_proc.c
52
res.errno = 0;
share/examples/sunrpc/dir/dir_proc.c
54
return (&res);
share/examples/sunrpc/sort/rsort.c
15
struct sortstrings args, res;
share/examples/sunrpc/sort/rsort.c
25
res.ss.ss_val = NULL;
share/examples/sunrpc/sort/rsort.c
28
xdr_sortstrings, &args, xdr_sortstrings, &res)))
share/examples/sunrpc/sort/rsort.c
36
for (i = 0; i < res.ss.ss_len; i++) {
share/examples/sunrpc/sort/rsort.c
37
printf("%s\n", res.ss.ss_val[i]);
stand/boot/common/commands.c
419
int res;
stand/boot/common/commands.c
422
res=0;
stand/boot/common/commands.c
424
for (i = 1; (i < argc) && (res == 0); i++) {
stand/boot/common/commands.c
428
res = page_file(argv[i]);
stand/boot/common/commands.c
429
if (!res) {
stand/boot/common/commands.c
431
res = pager_output(line);
stand/boot/common/commands.c
436
if (res == 0)
stand/boot/common/do_dloader.c
163
int res;
stand/boot/common/do_dloader.c
173
res=CMD_OK;
stand/boot/common/do_dloader.c
174
for (i = 1; (i < argc) && (res == CMD_OK); i++)
stand/boot/common/do_dloader.c
175
res = include(argvbuf[i]);
stand/boot/common/do_dloader.c
181
return(res);
stand/boot/common/do_dloader.c
226
int argc,res;
stand/boot/common/do_dloader.c
288
res = CMD_OK;
stand/boot/common/do_dloader.c
305
res=CMD_ERROR;
stand/boot/common/do_dloader.c
313
res=CMD_ERROR;
stand/boot/common/do_dloader.c
324
return(res);
stand/boot/common/load_elf_obj.c
194
int i, nsym, res, ret, shdrbytes, symstrindex;
stand/boot/common/load_elf_obj.c
298
res = __elfN(obj_parse_modmetadata)(fp, ef);
stand/boot/common/load_elf_obj.c
299
if (res != 0)
stand/boot/common/rel_open.c
135
res = CMD_OK;
stand/boot/common/rel_open.c
139
res = CMD_ERROR;
stand/boot/common/rel_open.c
141
return (res);
stand/boot/common/rel_open.c
189
int res;
stand/boot/common/rel_open.c
197
res = stat(ptr, st);
stand/boot/common/rel_open.c
200
res = stat(path, st);
stand/boot/common/rel_open.c
202
return(res);
stand/boot/common/rel_open.c
89
int res;
stand/boot/dloader/cmds.c
226
int res;
stand/boot/dloader/cmds.c
240
res = perform((argv[2] == NULL)?2:3, argv);
stand/boot/dloader/cmds.c
245
if (res != CMD_OK) {
stand/boot/dloader/cmds.c
247
return(res);
stand/boot/dloader/cmds.c
321
return(res);
stand/boot/dloader/cmds.c
393
int res;
stand/boot/dloader/cmds.c
426
res = menu_execute(c);
stand/boot/dloader/cmds.c
427
if (res >= 0) {
stand/boot/dloader/cmds.c
447
res = menu_execute(c);
stand/boot/dloader/cmds.c
448
if (res != CMD_OK)
stand/boot/dloader/cmds.c
450
return (res);
stand/boot/dloader/cmds.c
604
int res;
stand/boot/dloader/cmds.c
615
res = CMD_OK;
stand/boot/dloader/cmds.c
633
res = perform(dvar->count, dvar->data);
stand/boot/dloader/cmds.c
634
if (res != CMD_OK) {
stand/boot/dloader/cmds.c
648
return(res);
stand/lib/dosfs.c
374
size_t res;
stand/lib/dosfs.c
382
err = dos_read(fd, &dd, sizeof(dd), &res);
stand/lib/dosfs.c
385
if (res == sizeof(dd))
stand/lib/dosfs.h
83
u_char res; /* reserved */
stand/lib/hammer1.c
126
ssize_t res = pread(hfs->fd, be->data, HAMMER_BUFSIZE,
stand/lib/hammer1.c
128
if (res != HAMMER_BUFSIZE)
stand/lib/rpc.c
395
} *res;
stand/lib/rpc.c
402
struct res d;
stand/lib/rpc.c
427
res = &rdata.d;
stand/lib/rpc.c
430
args, sizeof(*args), res, sizeof(*res));
stand/lib/rpc.c
431
if (cc < sizeof(*res)) {
stand/lib/rpc.c
436
port = (int)ntohl(res->port);
stand/lib/tftp.c
202
ssize_t res;
stand/lib/tftp.c
220
res = sendrecv(h->iodesc, sendudp, &wbuf.t, wtail - (char *) &wbuf.t,
stand/lib/tftp.c
223
if (res == -1)
stand/lib/tftp.c
227
h->validsize = res;
stand/lib/tftp.c
229
if (res < SEGSIZE)
stand/lib/tftp.c
243
int res;
stand/lib/tftp.c
258
res = sendrecv(h->iodesc, sendudp, &wbuf.t, wtail - (char *) &wbuf.t,
stand/lib/tftp.c
261
if (res == -1) /* 0 is OK! */
stand/lib/tftp.c
265
h->validsize = res;
stand/lib/tftp.c
266
if (res < SEGSIZE)
stand/lib/tftp.c
276
int res;
stand/lib/tftp.c
302
res = tftp_makereq(tftpfile);
stand/lib/tftp.c
304
if (res) {
stand/lib/tftp.c
307
return (res);
stand/lib/tftp.c
337
int res;
stand/lib/tftp.c
339
res = tftp_getnextblock(tftpfile);
stand/lib/tftp.c
340
if (res) { /* no answer */
stand/lib/tftp.c
344
return (res);
stand/lib/zalloc_malloc.c
101
if (*((char *)res + res->ga_Bytes - 1) != -2) {
stand/lib/zalloc_malloc.c
104
res->ga_Bytes - MALLOCALIGN - 1,
stand/lib/zalloc_malloc.c
105
*((char *)res + res->ga_Bytes - 1));
stand/lib/zalloc_malloc.c
107
*((char *)res + res->ga_Bytes - 1) = -1;
stand/lib/zalloc_malloc.c
110
bytes = res->ga_Bytes;
stand/lib/zalloc_malloc.c
111
zfree(&MallocPool, res, bytes);
stand/lib/zalloc_malloc.c
123
void *res;
stand/lib/zalloc_malloc.c
125
if ((res = malloc(bytes)) != NULL) {
stand/lib/zalloc_malloc.c
126
bzero(res, bytes);
stand/lib/zalloc_malloc.c
128
return(res);
stand/lib/zalloc_malloc.c
140
void *res;
stand/lib/zalloc_malloc.c
143
if ((res = malloc(size)) != NULL) {
stand/lib/zalloc_malloc.c
150
bcopy(ptr, res, old);
stand/lib/zalloc_malloc.c
152
bcopy(ptr, res, size);
stand/lib/zalloc_malloc.c
165
return(res);
stand/lib/zalloc_malloc.c
171
void *res;
stand/lib/zalloc_malloc.c
173
if ((res = realloc(ptr, size)) == NULL)
stand/lib/zalloc_malloc.c
175
return(res);
stand/lib/zalloc_malloc.c
56
Guard *res;
stand/lib/zalloc_malloc.c
64
while ((res = znalloc(&MallocPool, bytes)) == NULL) {
stand/lib/zalloc_malloc.c
78
res->ga_Magic = GAMAGIC;
stand/lib/zalloc_malloc.c
80
res->ga_Bytes = bytes;
stand/lib/zalloc_malloc.c
82
*((char *)res + bytes - 1) = -2;
stand/lib/zalloc_malloc.c
84
return((char *)res + MALLOCALIGN);
stand/lib/zalloc_malloc.c
93
Guard *res = (void *)((char *)ptr - MALLOCALIGN);
stand/lib/zalloc_malloc.c
96
if (res->ga_Magic != GAMAGIC)
stand/lib/zalloc_malloc.c
98
res->ga_Magic = -1;
sys/bus/firewire/firewire.c
1679
u_int res, i, len, plen;
sys/bus/firewire/firewire.c
1694
res = rb->xfer->recv.pay_len;
sys/bus/firewire/firewire.c
1698
p != NULL && res >= sizeof(u_int32_t)) {
sys/bus/firewire/firewire.c
1711
if (res < len) {
sys/bus/firewire/firewire.c
1713
rb->xfer->recv.pay_len, len - res);
sys/bus/firewire/firewire.c
1714
len = res;
sys/bus/firewire/firewire.c
1718
res -= len;
sys/bus/firewire/firewire.c
1720
if (res == 0 || plen == 0)
sys/bus/firewire/firewire.c
1723
rb->xfer->recv.pay_len -= res;
sys/bus/firewire/fwohci.c
1047
status = FWOHCI_DMA_READ(db->db.desc.res) >> OHCI_STATUS_SHIFT;
sys/bus/firewire/fwohci.c
1641
FWOHCI_DMA_WRITE(db[ldesc].db.desc.res, 0);
sys/bus/firewire/fwohci.c
2103
stat = FWOHCI_DMA_READ(db[ldesc].db.desc.res)
sys/bus/firewire/fwohci.c
2107
count = FWOHCI_DMA_READ(db[ldesc].db.desc.res)
sys/bus/firewire/fwohci.c
2150
stat = FWOHCI_DMA_READ(db_tr->db[ldesc].db.desc.res)
sys/bus/firewire/fwohci.c
2328
u_int32_t cmd, res;
sys/bus/firewire/fwohci.c
2349
res = FWOHCI_DMA_READ(db[i].db.desc.res);
sys/bus/firewire/fwohci.c
2351
stat = res >> OHCI_STATUS_SHIFT;
sys/bus/firewire/fwohci.c
2362
(u_int)(res & OHCI_COUNT_MASK));
sys/bus/firewire/fwohci.c
2469
FWOHCI_DMA_WRITE(db[2].db.desc.res, 0);
sys/bus/firewire/fwohci.c
2526
FWOHCI_DMA_WRITE(db[0].db.desc.res, 0);
sys/bus/firewire/fwohci.c
2527
FWOHCI_DMA_WRITE(db[2].db.desc.res, 0);
sys/bus/firewire/fwohci.c
2571
FWOHCI_DMA_WRITE(db[i].db.desc.res, dsiz[i]);
sys/bus/firewire/fwohci.c
2664
FWOHCI_DMA_WRITE(db->db.desc.res, dbch->xferq.psize);
sys/bus/firewire/fwohci.c
2694
status = FWOHCI_DMA_READ(db_tr->db[0].db.desc.res) >> OHCI_STATUS_SHIFT;
sys/bus/firewire/fwohci.c
2695
resCount = FWOHCI_DMA_READ(db_tr->db[0].db.desc.res) & OHCI_COUNT_MASK;
sys/bus/firewire/fwohci.c
2864
status = FWOHCI_DMA_READ(db_tr->db[0].db.desc.res)
sys/bus/firewire/fwohci.c
2866
resCount = FWOHCI_DMA_READ(db_tr->db[0].db.desc.res)
sys/bus/firewire/fwohci.c
812
FWOHCI_DMA_WRITE(db->db.desc.res, 0);
sys/bus/firewire/fwohci.c
897
FWOHCI_DMA_WRITE(db->db.desc.res, 0);
sys/bus/firewire/fwohci.c
900
FWOHCI_DMA_WRITE(db->db.desc.res,
sys/bus/firewire/fwohcireg.h
112
u_int32_t res;
sys/bus/gpio/gpio_acpi/gpio_acpi.c
395
ACPI_RESOURCE *res, *end;
sys/bus/gpio/gpio_acpi/gpio_acpi.c
412
for (res = (ACPI_RESOURCE *)b.Pointer; res < end;
sys/bus/gpio/gpio_acpi/gpio_acpi.c
413
res = ACPI_NEXT_RESOURCE(res)) {
sys/bus/gpio/gpio_acpi/gpio_acpi.c
414
if (res->Type == ACPI_RESOURCE_TYPE_END_TAG) {
sys/bus/gpio/gpio_acpi/gpio_acpi.c
416
} else if (res->Type == ACPI_RESOURCE_TYPE_GPIO) {
sys/bus/gpio/gpio_acpi/gpio_acpi.c
420
res->Type);
sys/bus/gpio/gpio_acpi/gpio_acpi.c
428
for (res = (ACPI_RESOURCE *)b.Pointer; res < end && sc->num_aei < n;
sys/bus/gpio/gpio_acpi/gpio_acpi.c
429
res = ACPI_NEXT_RESOURCE(res)) {
sys/bus/gpio/gpio_acpi/gpio_acpi.c
430
if (res->Type == ACPI_RESOURCE_TYPE_END_TAG)
sys/bus/gpio/gpio_acpi/gpio_acpi.c
432
if (res->Type == ACPI_RESOURCE_TYPE_GPIO) {
sys/bus/gpio/gpio_acpi/gpio_acpi.c
433
gpio = (ACPI_RESOURCE_GPIO *)&res->Data;
sys/bus/isa/isa_common.c
116
struct resource *res[ISA_NMEM];
sys/bus/isa/isa_common.c
123
res[i] = NULL;
sys/bus/isa/isa_common.c
138
res[i] = bus_alloc_resource(child,
sys/bus/isa/isa_common.c
141
if (res[i]) {
sys/bus/isa/isa_common.c
154
if (!res[i]) {
sys/bus/isa/isa_common.c
161
if (res[i])
sys/bus/isa/isa_common.c
163
i, res[i]);
sys/bus/isa/isa_common.c
180
struct resource *res[ISA_NPORT];
sys/bus/isa/isa_common.c
187
res[i] = NULL;
sys/bus/isa/isa_common.c
202
res[i] = bus_alloc_resource(child,
sys/bus/isa/isa_common.c
205
if (res[i]) {
sys/bus/isa/isa_common.c
218
if (!res[i]) {
sys/bus/isa/isa_common.c
225
if (res[i])
sys/bus/isa/isa_common.c
227
i, res[i]);
sys/bus/isa/isa_common.c
267
struct resource *res[ISA_NIRQ];
sys/bus/isa/isa_common.c
274
res[i] = NULL;
sys/bus/isa/isa_common.c
287
res[i] = bus_alloc_resource(child,
sys/bus/isa/isa_common.c
290
if (res[i]) {
sys/bus/isa/isa_common.c
300
if (!res[i]) {
sys/bus/isa/isa_common.c
307
if (res[i])
sys/bus/isa/isa_common.c
309
i, res[i]);
sys/bus/isa/isa_common.c
326
struct resource *res[ISA_NDRQ];
sys/bus/isa/isa_common.c
333
res[i] = NULL;
sys/bus/isa/isa_common.c
346
res[i] = bus_alloc_resource(child,
sys/bus/isa/isa_common.c
349
if (res[i]) {
sys/bus/isa/isa_common.c
359
if (!res[i]) {
sys/bus/isa/isa_common.c
366
if (res[i])
sys/bus/isa/isa_common.c
368
i, res[i]);
sys/bus/isa/isa_common.c
503
if (!rle->res) {
sys/bus/isa/isa_common.c
806
if (!rle->res) {
sys/bus/isa/isa_common.c
851
if (rle->res)
sys/bus/isa/isa_common.c
855
rle->res);
sys/bus/isa/isa_common.c
870
if (!rle->res) {
sys/bus/isa/pnpparse.c
105
if (I16(res) == 0) {
sys/bus/isa/pnpparse.c
113
I16(res));
sys/bus/isa/pnpparse.c
114
config->ic_irqmask[config->ic_nirq] = I16(res);
sys/bus/isa/pnpparse.c
123
if (res[0] == 0) {
sys/bus/isa/pnpparse.c
131
res[0]);
sys/bus/isa/pnpparse.c
132
config->ic_drqmask[config->ic_ndrq] = res[0];
sys/bus/isa/pnpparse.c
141
if (res[6] == 0) {
sys/bus/isa/pnpparse.c
154
I16(res + 1),
sys/bus/isa/pnpparse.c
155
I16(res + 3) + res[6]-1,
sys/bus/isa/pnpparse.c
156
res[6], res[5]);
sys/bus/isa/pnpparse.c
159
I16(res + 1);
sys/bus/isa/pnpparse.c
161
I16(res + 3) + res[6] - 1;
sys/bus/isa/pnpparse.c
162
config->ic_port[config->ic_nport].ir_size = res[6];
sys/bus/isa/pnpparse.c
163
if (res[5] == 0) {
sys/bus/isa/pnpparse.c
165
res[5] = 1;
sys/bus/isa/pnpparse.c
167
config->ic_port[config->ic_nport].ir_align = res[5];
sys/bus/isa/pnpparse.c
178
if (res[2] == 0) {
sys/bus/isa/pnpparse.c
191
I16(res),
sys/bus/isa/pnpparse.c
192
I16(res) + res[2] - 1,
sys/bus/isa/pnpparse.c
193
res[2], 1);
sys/bus/isa/pnpparse.c
195
config->ic_port[config->ic_nport].ir_start = I16(res);
sys/bus/isa/pnpparse.c
197
I16(res) + res[2] - 1;
sys/bus/isa/pnpparse.c
198
config->ic_port[config->ic_nport].ir_size = res[2];
sys/bus/isa/pnpparse.c
226
bcopy(res, buf, len);
sys/bus/isa/pnpparse.c
242
if (I16(res + 7) == 0) {
sys/bus/isa/pnpparse.c
252
temp = I16(res + 7) << 8;
sys/bus/isa/pnpparse.c
256
I16(res + 1) << 8,
sys/bus/isa/pnpparse.c
257
(I16(res + 3) << 8) + temp - 1,
sys/bus/isa/pnpparse.c
258
temp, I16(res + 5));
sys/bus/isa/pnpparse.c
261
I16(res + 1) << 8;
sys/bus/isa/pnpparse.c
263
(I16(res + 3) << 8) + (I16(res + 7) << 8) - 1;
sys/bus/isa/pnpparse.c
265
I16(res + 7) << 8;
sys/bus/isa/pnpparse.c
266
config->ic_mem[config->ic_nmem].ir_align = I16(res + 5);
sys/bus/isa/pnpparse.c
278
if (I32(res + 13) == 0) {
sys/bus/isa/pnpparse.c
291
I32(res + 1),
sys/bus/isa/pnpparse.c
292
I32(res + 5) + I32(res + 13) - 1,
sys/bus/isa/pnpparse.c
293
I32(res + 13), I32(res + 9));
sys/bus/isa/pnpparse.c
295
config->ic_mem[config->ic_nmem].ir_start = I32(res + 1);
sys/bus/isa/pnpparse.c
297
I32(res + 5) + I32(res + 13) - 1;
sys/bus/isa/pnpparse.c
298
config->ic_mem[config->ic_nmem].ir_size = I32(res + 13);
sys/bus/isa/pnpparse.c
299
config->ic_mem[config->ic_nmem].ir_align = I32(res + 9);
sys/bus/isa/pnpparse.c
308
if (I32(res + 5) == 0) {
sys/bus/isa/pnpparse.c
319
I32(res + 1),
sys/bus/isa/pnpparse.c
320
I32(res + 1) + I32(res + 5) - 1,
sys/bus/isa/pnpparse.c
321
I32(res + 5));
sys/bus/isa/pnpparse.c
323
config->ic_mem[config->ic_nmem].ir_start = I32(res + 1);
sys/bus/isa/pnpparse.c
325
I32(res + 1) + I32(res + 5) - 1;
sys/bus/isa/pnpparse.c
326
config->ic_mem[config->ic_nmem].ir_size = I32(res + 5);
sys/bus/isa/pnpparse.c
350
u_char *res;
sys/bus/isa/pnpparse.c
352
res = pnp_scan_resources(dev, resources, len, config,
sys/bus/isa/pnpparse.c
354
return(res);
sys/bus/isa/pnpparse.c
61
pnp_parse_desc(device_t dev, u_char tag, u_char *res, int len,
sys/bus/isa/pnpparse.c
95
bcopy(res, &compat_id, 4);
sys/bus/isa/pnpvar.h
58
typedef int pnp_scan_cb(device_t dev, u_char tag, u_char *res, int len,
sys/bus/mmc/mmc.c
170
uint8_t value, uint8_t *res);
sys/bus/mmc/mmc.c
618
uint8_t *res)
sys/bus/mmc/mmc.c
626
memset(res, 0, 64);
sys/bus/mmc/mmc.c
636
data.data = res;
sys/bus/pccard/pccard.c
1126
if (rle == NULL || rle->res == NULL) {
sys/bus/pccard/pccard.c
1138
rle->res = r;
sys/bus/pccard/pccard.c
1144
if (rman_get_device(rle->res) != dev)
sys/bus/pccard/pccard.c
1146
rman_set_device(rle->res, child);
sys/bus/pccard/pccard.c
1148
BUS_ACTIVATE_RESOURCE(dev, child, type, *rid, rle->res);
sys/bus/pccard/pccard.c
1149
return (rle->res);
sys/bus/pccard/pccard.c
1177
if (!rle->res) {
sys/bus/pccard/pccard.c
1185
BUS_DEACTIVATE_RESOURCE(dev, child, type, rid, rle->res);
sys/bus/pccard/pccard.c
1186
rman_set_device(rle->res, dev);
sys/bus/pccard/pccard.c
449
rle->res = r;
sys/bus/pccard/pccard.c
472
rle->res = r;
sys/bus/pccard/pccard.c
491
rle->res = r;
sys/bus/pccard/pccard.c
524
if (rle->res) {
sys/bus/pccard/pccard.c
525
if (rman_get_device(rle->res) != pf->sc->dev)
sys/bus/pccard/pccard.c
531
rman_get_start(rle->res));
sys/bus/pccard/pccard.c
533
pf->sc->dev, rle->type, rle->rid, rle->res);
sys/bus/pccard/pccard.c
534
rle->res = NULL;
sys/bus/pccard/pccard.c
723
BUS_TEARDOWN_INTR(dev, pf->dev, rle->res,
sys/bus/pccard/pccard_cis.c
102
struct resource *res;
sys/bus/pccard/pccard_cis.c
130
res = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid, 0, ~0,
sys/bus/pccard/pccard_cis.c
132
if (res == NULL) {
sys/bus/pccard/pccard_cis.c
138
tuple.memt = rman_get_bustag(res);
sys/bus/pccard/pccard_cis.c
139
tuple.memh = rman_get_bushandle(res);
sys/bus/pccard/pccard_cis.c
143
(unsigned int) tuple.memh, rman_get_start(res)));
sys/bus/pccard/pccard_cis.c
441
bus_release_resource(dev, SYS_RES_MEMORY, rid, res);
sys/bus/pci/pci.c
1600
KASSERT(rle->res == NULL,
sys/bus/pci/pci.c
1649
if (rle != NULL && rle->res != NULL)
sys/bus/pci/pci.c
1672
if (rle == NULL || rle->res == NULL ||
sys/bus/pci/pci.c
1673
!(rman_get_flags(rle->res) & RF_ACTIVE))
sys/bus/pci/pci.c
1675
table_res = rle->res;
sys/bus/pci/pci.c
1679
if (rle == NULL || rle->res == NULL ||
sys/bus/pci/pci.c
1680
!(rman_get_flags(rle->res) & RF_ACTIVE))
sys/bus/pci/pci.c
1683
pba_res = rle->res;
sys/bus/pci/pci.c
1961
if (rle != NULL && rle->res != NULL)
sys/bus/pci/pci.c
2085
if (rle->res != NULL)
sys/bus/pci/pci.c
2539
struct resource *res;
sys/bus/pci/pci.c
2660
res = resource_list_alloc(rl, bus, dev, type, &reg, start, end, count,
sys/bus/pci/pci.c
2662
if (res == NULL) {
sys/bus/pci/pci.c
2686
start = rman_get_start(res);
sys/bus/pci/pci.c
2823
struct resource *res;
sys/bus/pci/pci.c
2829
res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, RF_ACTIVE);
sys/bus/pci/pci.c
2830
if (res == NULL)
sys/bus/pci/pci.c
2833
ctl = bus_read_4(res, OHCI_CONTROL);
sys/bus/pci/pci.c
2838
bus_write_4(res, OHCI_COMMAND_STATUS, OHCI_OCR);
sys/bus/pci/pci.c
2841
ctl = bus_read_4(res, OHCI_CONTROL);
sys/bus/pci/pci.c
2847
bus_write_4(res, OHCI_CONTROL, OHCI_HCFS_RESET);
sys/bus/pci/pci.c
2850
bus_write_4(res, OHCI_INTERRUPT_DISABLE, OHCI_ALL_INTRS);
sys/bus/pci/pci.c
2853
bus_release_resource(self, SYS_RES_MEMORY, rid, res);
sys/bus/pci/pci.c
2860
struct resource *res;
sys/bus/pci/pci.c
2873
res = bus_alloc_resource_any(self, SYS_RES_IOPORT, &rid, RF_ACTIVE);
sys/bus/pci/pci.c
2874
if (res != NULL) {
sys/bus/pci/pci.c
2875
bus_write_2(res, UHCI_INTR, 0);
sys/bus/pci/pci.c
2876
bus_release_resource(self, SYS_RES_IOPORT, rid, res);
sys/bus/pci/pci.c
2884
struct resource *res;
sys/bus/pci/pci.c
2894
res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, RF_ACTIVE);
sys/bus/pci/pci.c
2895
if (res == NULL)
sys/bus/pci/pci.c
2898
cparams = bus_read_4(res, EHCI_HCCPARAMS);
sys/bus/pci/pci.c
2930
offs = EHCI_CAPLENGTH(bus_read_4(res, EHCI_CAPLEN_HCIVERSION));
sys/bus/pci/pci.c
2931
bus_write_4(res, offs + EHCI_USBINTR, 0);
sys/bus/pci/pci.c
2933
bus_release_resource(self, SYS_RES_MEMORY, rid, res);
sys/bus/pci/pci.c
2940
struct resource *res;
sys/bus/pci/pci.c
2950
res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, RF_ACTIVE);
sys/bus/pci/pci.c
2951
if (res == NULL)
sys/bus/pci/pci.c
2954
cparams = bus_read_4(res, XHCI_HCSPARAMS0);
sys/bus/pci/pci.c
2961
eec = bus_read_4(res, eecp);
sys/bus/pci/pci.c
2966
bios_sem = bus_read_1(res, eecp + XHCI_XECP_BIOS_SEM);
sys/bus/pci/pci.c
2979
bus_write_1(res, eecp + XHCI_XECP_OS_SEM, 1);
sys/bus/pci/pci.c
2986
bios_sem = bus_read_1(res, eecp +
sys/bus/pci/pci.c
2997
bus_write_1(res, eecp + XHCI_XECP_BIOS_SEM, 0x00);
sys/bus/pci/pci.c
3005
offs = bus_read_1(res, XHCI_CAPLENGTH);
sys/bus/pci/pci.c
3006
bus_write_4(res, offs + XHCI_USBCMD, 0);
sys/bus/pci/pci.c
3007
bus_read_4(res, offs + XHCI_USBSTS);
sys/bus/pci/pci.c
3009
bus_release_resource(self, SYS_RES_MEMORY, rid, res);
sys/bus/pci/pci.c
3921
struct resource *res;
sys/bus/pci/pci.c
3932
res = NULL;
sys/bus/pci/pci.c
3985
res = BUS_ALLOC_RESOURCE(device_get_parent(dev), child, type, rid,
sys/bus/pci/pci.c
3987
if (res == NULL) {
sys/bus/pci/pci.c
3997
rle->res = res;
sys/bus/pci/pci.c
3998
rle->start = rman_get_start(res);
sys/bus/pci/pci.c
3999
rle->end = rman_get_end(res);
sys/bus/pci/pci.c
4004
count, *rid, type, rman_get_start(res));
sys/bus/pci/pci.c
4005
map = rman_get_start(res);
sys/bus/pci/pci.c
4010
return (res);
sys/bus/pci/pci.c
4074
if (rle != NULL && rle->res != NULL) {
sys/bus/pci/pci.c
4078
rman_get_size(rle->res), *rid, type,
sys/bus/pci/pci.c
4079
rman_get_start(rle->res));
sys/bus/pci/pci.c
4082
*rid, rle->res) != 0)
sys/bus/pci/pci.c
4084
return (rle->res);
sys/bus/pci/pci.c
4105
if (rle->res) {
sys/bus/pci/pci.c
4106
if (rman_get_device(rle->res) != dev ||
sys/bus/pci/pci.c
4107
rman_get_flags(rle->res) & RF_ACTIVE) {
sys/bus/pci/pci.c
4112
rman_get_start(rle->res));
sys/bus/pci/pci.c
4115
bus_release_resource(dev, type, rid, rle->res);
sys/bus/pci/pci_user.c
702
if (rle == NULL || rle->res == NULL) {
sys/bus/pci/pci_user.c
725
bio->pbi_base = rman_get_start(rle->res) | value;
sys/bus/pci/pci_user.c
726
bio->pbi_length = rman_get_size(rle->res);
sys/bus/pci/vga_pci.c
167
struct resource *res;
sys/bus/pci/vga_pci.c
217
res = vga_pci_alloc_resource(dev, NULL, SYS_RES_MEMORY, &rid, 0,
sys/bus/pci/vga_pci.c
220
if (res == NULL) {
sys/bus/pci/vga_pci.c
225
bios = rman_get_virtual(res);
sys/bus/pci/vga_pci.c
226
*size = rman_get_size(res);
sys/bus/pci/vga_pci.c
244
rom_addr |= rman_get_start(res) | 0x1;
sys/bus/pci/vga_pci.c
253
res = vga_pci_alloc_resource(dev, NULL, SYS_RES_MEMORY, &rid, 0,
sys/bus/pci/vga_pci.c
255
if (res == NULL) {
sys/bus/pci/vga_pci.c
259
bios = rman_get_virtual(res);
sys/bus/pci/vga_pci.c
260
*size = rman_get_size(res);
sys/bus/smbus/amdsmb/amdsmb.c
109
struct resource *res;
sys/bus/smbus/amdsmb/amdsmb.c
119
(bus_read_1(amdsmb->res, register))
sys/bus/smbus/amdsmb/amdsmb.c
121
(bus_write_1(amdsmb->res, register, value))
sys/bus/smbus/amdsmb/amdsmb.c
153
amdsmb_sc->res = bus_alloc_resource_any(dev, SYS_RES_IOPORT,
sys/bus/smbus/amdsmb/amdsmb.c
156
if (amdsmb_sc->res == NULL) {
sys/bus/smbus/amdsmb/amdsmb.c
186
if (amdsmb_sc->res)
sys/bus/smbus/amdsmb/amdsmb.c
188
amdsmb_sc->res);
sys/bus/u4b/audio/uaudio.c
1521
uint32_t res = UGETDW(data + 10 + (12 * x));
sys/bus/u4b/audio/uaudio.c
1523
if (res == 0) {
sys/bus/u4b/audio/uaudio.c
1525
res = 1;
sys/bus/u4b/audio/uaudio.c
1537
(((rate - min) % res) == 0)) {
sys/bus/u4b/audio/uaudio.c
3072
int32_t res;
sys/bus/u4b/audio/uaudio.c
3097
res = mc->maxval;
sys/bus/u4b/audio/uaudio.c
3099
mc->minval = res;
sys/bus/u4b/audio/uaudio.c
3108
res = uaudio_mixer_get(sc->sc_udev,
sys/bus/u4b/audio/uaudio.c
3111
DPRINTF("Resolution = %d\n", (int)res);
sys/bus/u4b/controller/uhci.c
1004
struct usb_page_search res;
sys/bus/u4b/controller/uhci.c
1044
usbd_get_page(td->fix_pc, 0, &res);
sys/bus/u4b/controller/uhci.c
1051
res.buffer, len);
sys/bus/u4b/controller/uhci.c
1071
struct usb_page_search res;
sys/bus/u4b/controller/uhci.c
1106
usbd_get_page(td->fix_pc, 0, &res);
sys/bus/u4b/controller/uhci.c
1116
xfer->frlengths[xfer->aframes], res.buffer, len);
sys/bus/u4b/input/uep.c
217
int res;
sys/bus/u4b/input/uep.c
225
res = pkt_len - sc->buf_len;
sys/bus/u4b/input/uep.c
226
memcpy(sc->buf + sc->buf_len, buf, res);
sys/bus/u4b/input/uep.c
230
p = buf + res;
sys/bus/u4b/input/uep.c
231
len -= res;
sys/bus/u4b/net/if_mos.c
421
int i, res, locked;
sys/bus/u4b/net/if_mos.c
442
res = mos_reg_read_2(sc, MOS_PHY_DATA);
sys/bus/u4b/net/if_mos.c
446
return (res);
sys/bus/u4b/net/if_urndis.c
189
int res;
sys/bus/u4b/net/if_urndis.c
192
res = usbd_lookup_id_by_uaa(urndis_host_devs,
sys/bus/u4b/net/if_urndis.c
194
if (res == 0)
sys/bus/u4b/serial/usb_serial.c
1847
struct usb_page_search res;
sys/bus/u4b/serial/usb_serial.c
1898
usbd_get_page(pc, offset, &res);
sys/bus/u4b/serial/usb_serial.c
1901
if (res.length > len) {
sys/bus/u4b/serial/usb_serial.c
1902
res.length = len;
sys/bus/u4b/serial/usb_serial.c
1906
cnt = clist_qtob(&tp->t_outq, res.buffer, len);
sys/bus/u4b/serial/usb_serial.c
1927
if (cnt < res.length) {
sys/bus/u4b/serial/usb_serial.c
1952
struct usb_page_search res;
sys/bus/u4b/serial/usb_serial.c
2004
usbd_get_page(pc, offset, &res);
sys/bus/u4b/serial/usb_serial.c
2006
if (res.length > len) {
sys/bus/u4b/serial/usb_serial.c
2007
res.length = len;
sys/bus/u4b/serial/usb_serial.c
2009
len -= res.length;
sys/bus/u4b/serial/usb_serial.c
2010
offset += res.length;
sys/bus/u4b/serial/usb_serial.c
2014
buf = res.buffer;
sys/bus/u4b/serial/usb_serial.c
2015
cnt = res.length;
sys/bus/u4b/serial/usb_serial.c
2060
for (cnt = 0; cnt != res.length; cnt++) {
sys/bus/u4b/serial/usb_serial.c
2073
for (; cnt != res.length; cnt++) {
sys/bus/u4b/serial/usb_serial.c
2089
"chars\n", tp, res.length - cnt);
sys/bus/u4b/storage/umass.c
2996
uint32_t res = UGETDW(csw->dCSWDataResidue);
sys/bus/u4b/storage/umass.c
3002
tag, res,
sys/bus/u4b/usb_busdma.c
105
res->length = USB_PAGE_SIZE - offset;
sys/bus/u4b/usb_busdma.c
106
res->physaddr = page->physaddr + offset;
sys/bus/u4b/usb_busdma.c
108
res->length = (usb_size_t)-1;
sys/bus/u4b/usb_busdma.c
109
res->physaddr = page->physaddr + offset;
sys/bus/u4b/usb_busdma.c
114
res->buffer = USB_ADD_BYTES(page->buffer, offset);
sys/bus/u4b/usb_busdma.c
121
res->buffer = USB_ADD_BYTES(pc->buffer, offset);
sys/bus/u4b/usb_busdma.c
122
res->length = (usb_size_t)-1;
sys/bus/u4b/usb_busdma.c
124
res->physaddr = 0;
sys/bus/u4b/usb_busdma.c
220
struct usb_page_search res;
sys/bus/u4b/usb_busdma.c
224
usbd_get_page(pc, pc_offset, &res);
sys/bus/u4b/usb_busdma.c
226
if (res.length > len) {
sys/bus/u4b/usb_busdma.c
227
res.length = len;
sys/bus/u4b/usb_busdma.c
233
error = uiomove(res.buffer, res.length, uio);
sys/bus/u4b/usb_busdma.c
238
pc_offset += res.length;
sys/bus/u4b/usb_busdma.c
239
len -= res.length;
sys/bus/u4b/usb_busdma.c
252
struct usb_page_search res;
sys/bus/u4b/usb_busdma.c
255
usbd_get_page(cache, offset, &res);
sys/bus/u4b/usb_busdma.c
257
if (res.length > len) {
sys/bus/u4b/usb_busdma.c
258
res.length = len;
sys/bus/u4b/usb_busdma.c
260
memcpy(ptr, res.buffer, res.length);
sys/bus/u4b/usb_busdma.c
262
offset += res.length;
sys/bus/u4b/usb_busdma.c
263
len -= res.length;
sys/bus/u4b/usb_busdma.c
264
ptr = USB_ADD_BYTES(ptr, res.length);
sys/bus/u4b/usb_busdma.c
280
struct usb_page_search res;
sys/bus/u4b/usb_busdma.c
284
usbd_get_page(cache, offset, &res);
sys/bus/u4b/usb_busdma.c
286
if (res.length > len) {
sys/bus/u4b/usb_busdma.c
287
res.length = len;
sys/bus/u4b/usb_busdma.c
289
error = copyout(res.buffer, ptr, res.length);
sys/bus/u4b/usb_busdma.c
293
offset += res.length;
sys/bus/u4b/usb_busdma.c
294
len -= res.length;
sys/bus/u4b/usb_busdma.c
295
ptr = USB_ADD_BYTES(ptr, res.length);
sys/bus/u4b/usb_busdma.c
308
struct usb_page_search res;
sys/bus/u4b/usb_busdma.c
311
usbd_get_page(cache, offset, &res);
sys/bus/u4b/usb_busdma.c
313
if (res.length > len) {
sys/bus/u4b/usb_busdma.c
314
res.length = len;
sys/bus/u4b/usb_busdma.c
316
memset(res.buffer, 0, res.length);
sys/bus/u4b/usb_busdma.c
318
offset += res.length;
sys/bus/u4b/usb_busdma.c
319
len -= res.length;
sys/bus/u4b/usb_busdma.c
81
struct usb_page_search *res)
sys/bus/u4b/usb_busdma.c
92
res->buffer = USB_ADD_BYTES(pc->buffer, offset);
sys/bus/u4b/usb_hub.c
1629
struct hub_result *res)
sys/bus/u4b/usb_hub.c
1648
res->iface_index = i;
sys/bus/u4b/usb_hub.c
1649
res->udev = udev;
sys/bus/u4b/usb_hub.c
1650
res->portno = x + 1;
sys/bus/u4b/usb_hub.c
1655
res->iface_index = 0;
sys/bus/u4b/usb_hub.c
1656
res->udev = NULL;
sys/bus/u4b/usb_hub.c
1657
res->portno = 0;
sys/bus/u4b/usb_hub.c
1666
struct hub_result res;
sys/bus/u4b/usb_hub.c
1677
uhub_find_iface_index(hub, child, &res);
sys/bus/u4b/usb_hub.c
1678
if (!res.udev) {
sys/bus/u4b/usb_hub.c
1690
, device_get_unit(res.udev->bus->bdev)
sys/bus/u4b/usb_hub.c
1691
, (res.udev->parent_hub != NULL) ?
sys/bus/u4b/usb_hub.c
1692
res.udev->parent_hub->device_index : 0
sys/bus/u4b/usb_hub.c
1693
, res.portno, res.udev->device_index, res.iface_index
sys/bus/u4b/usb_hub.c
1695
, res.udev->ugen_name
sys/bus/u4b/usb_hub.c
1709
struct hub_result res;
sys/bus/u4b/usb_hub.c
1720
uhub_find_iface_index(hub, child, &res);
sys/bus/u4b/usb_hub.c
1721
if (!res.udev) {
sys/bus/u4b/usb_hub.c
1728
iface = usbd_get_iface(res.udev, res.iface_index);
sys/bus/u4b/usb_hub.c
1737
UGETW(res.udev->ddesc.idVendor),
sys/bus/u4b/usb_hub.c
1738
UGETW(res.udev->ddesc.idProduct),
sys/bus/u4b/usb_hub.c
1739
res.udev->ddesc.bDeviceClass,
sys/bus/u4b/usb_hub.c
1740
res.udev->ddesc.bDeviceSubClass,
sys/bus/u4b/usb_hub.c
1741
usb_get_serial(res.udev),
sys/bus/u4b/usb_hub.c
1742
UGETW(res.udev->ddesc.bcdDevice),
sys/bus/u4b/usb_hub.c
1743
(res.udev->flags.usb_mode == USB_MODE_HOST) ? "host" : "device",
sys/bus/u4b/usbdi.h
583
struct usb_page_search *res);
sys/bus/u4b/uvc/uvc_buf.c
134
int res;
sys/bus/u4b/uvc/uvc_buf.c
138
res = uvc_buf_queue_mmap_locked(bq, paddr, offset);
sys/bus/u4b/uvc/uvc_buf.c
142
return (res);
sys/bus/u4b/uvc/uvc_v4l2.c
707
int res;
sys/bus/u4b/uvc/uvc_v4l2.c
709
res = uvc_buf_queue_mmap(&v->bq, &paddr, offset);
sys/bus/u4b/uvc/uvc_v4l2.c
712
return res;
sys/bus/u4b/wlan/if_urtwn.c
1806
#define URTWN_CHK(res) do { \
sys/bus/u4b/wlan/if_urtwn.c
1807
if ((error = res) != 0) \
sys/cpu/x86_64/include/atomic.h
141
u_long res;
sys/cpu/x86_64/include/atomic.h
143
res = 0;
sys/cpu/x86_64/include/atomic.h
147
: "+r" (res), /* 0 */
sys/cpu/x86_64/include/atomic.h
151
return (res);
sys/cpu/x86_64/include/atomic.h
157
u_int res;
sys/cpu/x86_64/include/atomic.h
159
res = 0;
sys/cpu/x86_64/include/atomic.h
163
: "+r" (res), /* 0 */
sys/cpu/x86_64/include/atomic.h
167
return (res);
sys/cpu/x86_64/include/atomic.h
385
u_int res = _old;
sys/cpu/x86_64/include/atomic.h
388
: "+a" (res), "=m" (*_dst) \
sys/cpu/x86_64/include/atomic.h
391
return (res);
sys/cpu/x86_64/include/atomic.h
397
u_int res = _old;
sys/cpu/x86_64/include/atomic.h
402
: "+a" (res), "=m" (*_dst) \
sys/cpu/x86_64/include/atomic.h
405
return (res);
sys/cpu/x86_64/include/atomic.h
411
u_short res = _old;
sys/cpu/x86_64/include/atomic.h
414
: "+a" (res), "=m" (*_dst) \
sys/cpu/x86_64/include/atomic.h
417
return (res == _old);
sys/cpu/x86_64/include/atomic.h
423
u_char res = *_old;
sys/cpu/x86_64/include/atomic.h
430
return (res == *_old);
sys/cpu/x86_64/include/atomic.h
436
u_short res = *_old;
sys/cpu/x86_64/include/atomic.h
443
return (res == *_old);
sys/cpu/x86_64/include/atomic.h
449
u_int res = _old;
sys/cpu/x86_64/include/atomic.h
452
: "+a" (res), "=m" (*_dst) \
sys/cpu/x86_64/include/atomic.h
455
return (res == _old);
sys/cpu/x86_64/include/atomic.h
461
u_int res = *_old;
sys/cpu/x86_64/include/atomic.h
468
return (res == *_old);
sys/cpu/x86_64/include/atomic.h
474
u_int res = _old;
sys/cpu/x86_64/include/atomic.h
477
: "+a" (res), "=m" (*_dst) \
sys/cpu/x86_64/include/atomic.h
480
return (res == _old);
sys/cpu/x86_64/include/atomic.h
486
u_int res = _old;
sys/cpu/x86_64/include/atomic.h
489
: "+a" (res), "=m" (*_dst) \
sys/cpu/x86_64/include/atomic.h
492
return (res == _old);
sys/cpu/x86_64/include/atomic.h
498
u_long res = _old;
sys/cpu/x86_64/include/atomic.h
501
: "+a" (res), "=m" (*_dst) \
sys/cpu/x86_64/include/atomic.h
504
return (res == _old);
sys/cpu/x86_64/include/atomic.h
510
u_long res = *_old;
sys/cpu/x86_64/include/atomic.h
517
return (res == *_old);
sys/cpu/x86_64/include/atomic.h
523
u_long res = _old;
sys/cpu/x86_64/include/atomic.h
526
: "+a" (res), "=m" (*_dst) \
sys/cpu/x86_64/include/atomic.h
529
return (res == _old);
sys/cpu/x86_64/include/atomic.h
535
u_long res = _old;
sys/cpu/x86_64/include/atomic.h
538
: "+a" (res), "=m" (*_dst) \
sys/cpu/x86_64/include/atomic.h
541
return (res == _old);
sys/cpu/x86_64/include/atomic.h
621
u_char res;
sys/cpu/x86_64/include/atomic.h
628
: "=q" (res), /* 0 */
sys/cpu/x86_64/include/atomic.h
632
return (res);
sys/cpu/x86_64/include/atomic.h
638
u_char res;
sys/cpu/x86_64/include/atomic.h
645
: "=q" (res), /* 0 */
sys/cpu/x86_64/include/atomic.h
649
return (res);
sys/cpu/x86_64/include/atomic.h
655
u_char res;
sys/cpu/x86_64/include/atomic.h
662
: "=q" (res), /* 0 */
sys/cpu/x86_64/include/atomic.h
666
return (res);
sys/cpu/x86_64/include/atomic.h
672
u_char res;
sys/cpu/x86_64/include/atomic.h
679
: "=q" (res), /* 0 */
sys/cpu/x86_64/include/atomic.h
683
return (res);
sys/cpu/x86_64/include/atomic.h
690
u_##TYPE res; /* accumulator can be anything */ \
sys/cpu/x86_64/include/atomic.h
693
: "=a" (res), /* 0 */ \
sys/cpu/x86_64/include/atomic.h
698
return (res); \
sys/dev/acpica/acpi.c
1054
struct resource *res;
sys/dev/acpica/acpi.c
1077
if (rle->res != NULL) {
sys/dev/acpica/acpi.c
1095
res = BUS_ALLOC_RESOURCE(device_get_parent(dev), dev, rle->type,
sys/dev/acpica/acpi.c
1098
if (res != NULL) {
sys/dev/acpica/acpi.c
1099
rman_manage_region(rm, rman_get_start(res), rman_get_end(res));
sys/dev/acpica/acpi.c
1100
rle->res = res;
sys/dev/acpica/acpi.c
1116
struct resource *res;
sys/dev/acpica/acpi.c
1119
res = NULL;
sys/dev/acpica/acpi.c
1156
res = rman_reserve_resource(rm, start, end, count, flags & ~RF_ACTIVE,
sys/dev/acpica/acpi.c
1158
if (res == NULL) {
sys/dev/acpica/acpi.c
1159
res = BUS_ALLOC_RESOURCE(device_get_parent(bus), child, type, rid,
sys/dev/acpica/acpi.c
1162
rman_set_rid(res, *rid);
sys/dev/acpica/acpi.c
1166
if (bus_activate_resource(child, type, *rid, res) != 0) {
sys/dev/acpica/acpi.c
1167
rman_release_resource(res);
sys/dev/acpica/acpi.c
1168
res = NULL;
sys/dev/acpica/acpi.c
1173
if (res != NULL && device_get_parent(child) == bus)
sys/dev/acpica/acpi.c
1186
acpi_lookup_irq_resource(child, *rid, res, &ares))) {
sys/dev/acpica/acpi.c
1196
return (res);
sys/dev/acpica/acpi.c
1252
struct resource **res, u_int flags)
sys/dev/acpica/acpi.c
1257
if (type == NULL || rid == NULL || gas == NULL || res == NULL)
sys/dev/acpica/acpi.c
1285
*res = bus_alloc_resource_any(dev, res_type, rid, RF_ACTIVE | flags);
sys/dev/acpica/acpi.c
1286
if (*res != NULL) {
sys/dev/acpica/acpi.c
2293
acpi_AppendBufferResource(ACPI_BUFFER *buf, ACPI_RESOURCE *res)
sys/dev/acpica/acpi.c
2307
if (res == NULL)
sys/dev/acpica/acpi.c
2337
res->Length + ACPI_RS_SIZE_NO_DATA +
sys/dev/acpica/acpi.c
2350
bcopy(res, rp, res->Length + ACPI_RS_SIZE_NO_DATA);
sys/dev/acpica/acpi.c
2888
ACPI_OBJECT *res, *res2;
sys/dev/acpica/acpi.c
2904
res = (ACPI_OBJECT *)prw_buffer.Pointer;
sys/dev/acpica/acpi.c
2905
if (res == NULL)
sys/dev/acpica/acpi.c
2907
if (!ACPI_PKG_VALID(res, 2))
sys/dev/acpica/acpi.c
2916
if (acpi_PkgInt32(res, 1, &prw->lowest_wake) != 0)
sys/dev/acpica/acpi.c
2922
switch (res->Package.Elements[0].Type) {
sys/dev/acpica/acpi.c
2931
prw->gpe_bit = res->Package.Elements[0].Integer.Value;
sys/dev/acpica/acpi.c
2948
res2 = &res->Package.Elements[0];
sys/dev/acpica/acpi.c
2963
power_count = res->Package.Count - 2;
sys/dev/acpica/acpi.c
2970
prw->power_res[i] = res->Package.Elements[i];
sys/dev/acpica/acpi_asus/acpi_asus.c
815
ACPI_STATUS res;
sys/dev/acpica/acpi_asus/acpi_asus.c
818
res = AcpiGetHandle((sc->model->lcdd[0] == '\\' ?
sys/dev/acpica/acpi_asus/acpi_asus.c
820
if (ACPI_SUCCESS(res)) {
sys/dev/acpica/acpi_cmbat.c
245
ACPI_OBJECT *res;
sys/dev/acpica/acpi_cmbat.c
269
res = (ACPI_OBJECT *)bst_buffer.Pointer;
sys/dev/acpica/acpi_cmbat.c
270
if (!ACPI_PKG_VALID(res, 4)) {
sys/dev/acpica/acpi_cmbat.c
276
if (acpi_PkgInt32(res, 0, &sc->bst.state) != 0)
sys/dev/acpica/acpi_cmbat.c
278
if (acpi_PkgInt32(res, 1, &sc->bst.rate) != 0)
sys/dev/acpica/acpi_cmbat.c
280
if (acpi_PkgInt32(res, 2, &sc->bst.cap) != 0)
sys/dev/acpica/acpi_cmbat.c
282
if (acpi_PkgInt32(res, 3, &sc->bst.volt) != 0)
sys/dev/acpica/acpi_cmbat.c
321
ACPI_OBJECT *res;
sys/dev/acpica/acpi_cmbat.c
345
res = (ACPI_OBJECT *)info_buffer.Pointer;
sys/dev/acpica/acpi_cmbat.c
346
if (!ACPI_PKG_VALID(res, sc->bix_present ? 20 : 13)) {
sys/dev/acpica/acpi_cmbat.c
354
if (acpi_PkgInt32(res, i++, &sc->bif.units) != 0)
sys/dev/acpica/acpi_cmbat.c
356
if (acpi_PkgInt32(res, i++, &sc->bif.dcap) != 0)
sys/dev/acpica/acpi_cmbat.c
358
if (acpi_PkgInt32(res, i++, &sc->bif.lfcap) != 0)
sys/dev/acpica/acpi_cmbat.c
360
if (acpi_PkgInt32(res, i++, &sc->bif.btech) != 0)
sys/dev/acpica/acpi_cmbat.c
362
if (acpi_PkgInt32(res, i++, &sc->bif.dvol) != 0)
sys/dev/acpica/acpi_cmbat.c
364
if (acpi_PkgInt32(res, i++, &sc->bif.wcap) != 0)
sys/dev/acpica/acpi_cmbat.c
366
if (acpi_PkgInt32(res, i++, &sc->bif.lcap) != 0)
sys/dev/acpica/acpi_cmbat.c
370
if (acpi_PkgInt32(res, i++, &sc->bif.gra1) != 0)
sys/dev/acpica/acpi_cmbat.c
372
if (acpi_PkgInt32(res, i++, &sc->bif.gra2) != 0)
sys/dev/acpica/acpi_cmbat.c
374
if (acpi_PkgStr(res, i++, sc->bif.model, ACPI_CMBAT_MAXSTRLEN) != 0)
sys/dev/acpica/acpi_cmbat.c
376
if (acpi_PkgStr(res, i++, sc->bif.serial, ACPI_CMBAT_MAXSTRLEN) != 0)
sys/dev/acpica/acpi_cmbat.c
378
if (acpi_PkgStr(res, i++, sc->bif.type, ACPI_CMBAT_MAXSTRLEN) != 0)
sys/dev/acpica/acpi_cmbat.c
380
if (acpi_PkgStr(res, i++, sc->bif.oeminfo, ACPI_CMBAT_MAXSTRLEN) != 0)
sys/dev/acpica/acpi_cpu_cstate.c
1388
if (cx->res != NULL)
sys/dev/acpica/acpi_cpu_cstate.c
1389
bus_release_resource(sc->cst_dev, cx->res_type, cx->rid, cx->res);
sys/dev/acpica/acpi_cpu_cstate.c
420
&cx_ptr->gas, &cx_ptr->res, RF_SHAREABLE);
sys/dev/acpica/acpi_cpu_cstate.c
421
if (cx_ptr->res != NULL) {
sys/dev/acpica/acpi_cpu_cstate.c
426
cx_ptr->btag = rman_get_bustag(cx_ptr->res);
sys/dev/acpica/acpi_cpu_cstate.c
427
cx_ptr->bhand = rman_get_bushandle(cx_ptr->res);
sys/dev/acpica/acpi_cpu_cstate.c
448
&cx_ptr->gas, &cx_ptr->res, RF_SHAREABLE);
sys/dev/acpica/acpi_cpu_cstate.c
449
if (cx_ptr->res != NULL) {
sys/dev/acpica/acpi_cpu_cstate.c
454
cx_ptr->btag = rman_get_bustag(cx_ptr->res);
sys/dev/acpica/acpi_cpu_cstate.c
455
cx_ptr->bhand = rman_get_bushandle(cx_ptr->res);
sys/dev/acpica/acpi_cpu_cstate.c
580
KASSERT(cx_ptr->res == NULL, ("still has res"));
sys/dev/acpica/acpi_cpu_cstate.c
594
&cx_ptr->gas, &cx_ptr->res, RF_SHAREABLE);
sys/dev/acpica/acpi_cpu_cstate.c
595
if (cx_ptr->res != NULL) {
sys/dev/acpica/acpi_cpu_cstate.c
602
cx_ptr->btag = rman_get_bustag(cx_ptr->res);
sys/dev/acpica/acpi_cpu_cstate.c
603
cx_ptr->bhand = rman_get_bushandle(cx_ptr->res);
sys/dev/acpica/acpi_cpu_cstate.h
47
struct resource *res;
sys/dev/acpica/acpi_cpu_pstate.c
1497
struct acpi_pst_res *res)
sys/dev/acpica/acpi_cpu_pstate.c
1503
error = acpi_PkgRawGas(obj, idx, &res->pr_gas);
sys/dev/acpica/acpi_cpu_pstate.c
1508
res->pr_rid = sc->pst_parent->cpu_next_rid;
sys/dev/acpica/acpi_cpu_pstate.c
1509
acpi_bus_alloc_gas(dev, &type, &res->pr_rid, &res->pr_gas, &res->pr_res, 0);
sys/dev/acpica/acpi_cpu_pstate.c
1510
if (res->pr_res != NULL) {
sys/dev/acpica/acpi_cpu_pstate.c
1512
res->pr_bt = rman_get_bustag(res->pr_res);
sys/dev/acpica/acpi_cpu_pstate.c
1513
res->pr_bh = rman_get_bushandle(res->pr_res);
sys/dev/acpica/acpi_cpu_pstate.c
1515
res->pr_rid = 0;
sys/dev/acpica/acpi_package.c
103
acpi_PkgGas(device_t dev, ACPI_OBJECT *res, int idx, int *type, int *rid,
sys/dev/acpica/acpi_package.c
109
obj = &res->Package.Elements[idx];
sys/dev/acpica/acpi_package.c
120
acpi_PkgRawGas(ACPI_OBJECT *res, int idx, ACPI_GENERIC_ADDRESS *gas)
sys/dev/acpica/acpi_package.c
123
obj = &res->Package.Elements[idx];
sys/dev/acpica/acpi_package.c
44
acpi_PkgInt(ACPI_OBJECT *res, int idx, UINT64 *dst)
sys/dev/acpica/acpi_package.c
48
obj = &res->Package.Elements[idx];
sys/dev/acpica/acpi_package.c
57
acpi_PkgInt32(ACPI_OBJECT *res, int idx, uint32_t *dst)
sys/dev/acpica/acpi_package.c
62
error = acpi_PkgInt(res, idx, &tmp);
sys/dev/acpica/acpi_package.c
70
acpi_PkgStr(ACPI_OBJECT *res, int idx, void *dst, size_t size)
sys/dev/acpica/acpi_package.c
76
obj = &res->Package.Elements[idx];
sys/dev/acpica/acpi_panasonic/acpi_panasonic.c
270
ACPI_OBJECT *res;
sys/dev/acpica/acpi_panasonic/acpi_panasonic.c
278
res = (ACPI_OBJECT *)buf.Pointer;
sys/dev/acpica/acpi_panasonic/acpi_panasonic.c
279
if (res->Type == ACPI_TYPE_PACKAGE)
sys/dev/acpica/acpi_panasonic/acpi_panasonic.c
280
ret = res->Package.Elements[index].Integer.Value;
sys/dev/acpica/acpi_panasonic/acpi_panasonic.c
394
ACPI_OBJECT *res;
sys/dev/acpica/acpi_panasonic/acpi_panasonic.c
404
res = (ACPI_OBJECT *)buf.Pointer;
sys/dev/acpica/acpi_panasonic/acpi_panasonic.c
405
if (res->Type != ACPI_TYPE_INTEGER) {
sys/dev/acpica/acpi_panasonic/acpi_panasonic.c
409
val = res->Integer.Value;
sys/dev/acpica/acpi_pci_link.c
168
acpi_count_irq_resources(ACPI_RESOURCE *res, void *context)
sys/dev/acpica/acpi_pci_link.c
173
switch (res->Type) {
sys/dev/acpica/acpi_pci_link.c
205
link_add_crs(ACPI_RESOURCE *res, void *context)
sys/dev/acpica/acpi_pci_link.c
212
switch (res->Type) {
sys/dev/acpica/acpi_pci_link.c
239
link->l_crs_type = res->Type;
sys/dev/acpica/acpi_pci_link.c
248
if (res->Type == ACPI_RESOURCE_TYPE_IRQ) {
sys/dev/acpica/acpi_pci_link.c
249
if (res->Data.Irq.InterruptCount == 1)
sys/dev/acpica/acpi_pci_link.c
250
link->l_irq = res->Data.Irq.Interrupts[0];
sys/dev/acpica/acpi_pci_link.c
251
} else if (res->Data.ExtendedIrq.InterruptCount == 1)
sys/dev/acpica/acpi_pci_link.c
252
link->l_irq = res->Data.ExtendedIrq.Interrupts[0];
sys/dev/acpica/acpi_pci_link.c
270
link_add_prs(ACPI_RESOURCE *res, void *context)
sys/dev/acpica/acpi_pci_link.c
281
switch (res->Type) {
sys/dev/acpica/acpi_pci_link.c
328
bcopy(res, tmp, ACPI_RS_SIZE(tmp->Data.ExtendedIrq));
sys/dev/acpica/acpi_pci_link.c
339
res->Data.ExtendedIrq.InterruptCount;
sys/dev/acpica/acpi_pci_link.c
340
ext_irqs = res->Data.ExtendedIrq.Interrupts;
sys/dev/acpica/acpi_pci_link.c
342
bcopy(res, tmp, ACPI_RS_SIZE(tmp->Data.Irq));
sys/dev/acpica/acpi_pci_link.c
343
link->l_num_irqs = res->Data.Irq.InterruptCount;
sys/dev/acpica/acpi_pci_link.c
344
irqs = res->Data.Irq.Interrupts;
sys/dev/acpica/acpi_pci_link.c
718
ACPI_RESOURCE *end, *res;
sys/dev/acpica/acpi_pci_link.c
742
res = (ACPI_RESOURCE *)srsbuf->Pointer;
sys/dev/acpica/acpi_pci_link.c
745
switch (res->Type) {
sys/dev/acpica/acpi_pci_link.c
768
res->Data.Irq.InterruptCount = 1;
sys/dev/acpica/acpi_pci_link.c
773
res->Data.Irq.Interrupts[0] = link->l_irq;
sys/dev/acpica/acpi_pci_link.c
775
res->Data.Irq.Interrupts[0] = 0;
sys/dev/acpica/acpi_pci_link.c
781
res->Data.ExtendedIrq.InterruptCount = 1;
sys/dev/acpica/acpi_pci_link.c
783
res->Data.ExtendedIrq.Interrupts[0] =
sys/dev/acpica/acpi_pci_link.c
786
res->Data.ExtendedIrq.Interrupts[0] = 0;
sys/dev/acpica/acpi_pci_link.c
791
if (res->Type == ACPI_RESOURCE_TYPE_END_TAG)
sys/dev/acpica/acpi_pci_link.c
793
res = ACPI_NEXT_RESOURCE(res);
sys/dev/acpica/acpi_pci_link.c
794
if (res >= end)
sys/dev/acpica/acpi_powerres.c
103
static ACPI_STATUS acpi_pwr_register_resource(ACPI_HANDLE res);
sys/dev/acpica/acpi_powerres.c
105
static ACPI_STATUS acpi_pwr_deregister_resource(ACPI_HANDLE res);
sys/dev/acpica/acpi_powerres.c
113
*acpi_pwr_find_resource(ACPI_HANDLE res);
sys/dev/acpica/acpi_powerres.c
133
acpi_pwr_register_resource(ACPI_HANDLE res)
sys/dev/acpica/acpi_powerres.c
147
if (acpi_pwr_find_resource(res) != NULL)
sys/dev/acpica/acpi_powerres.c
156
rp->ap_resource = res;
sys/dev/acpica/acpi_powerres.c
160
if (ACPI_FAILURE(status = AcpiEvaluateObject(res, NULL, NULL, &buf))) {
sys/dev/acpica/acpi_powerres.c
168
acpi_name(res)));
sys/dev/acpica/acpi_powerres.c
193
"registered power resource %s\n", acpi_name(res)));
sys/dev/acpica/acpi_powerres.c
208
acpi_pwr_deregister_resource(ACPI_HANDLE res)
sys/dev/acpica/acpi_powerres.c
218
if ((rp = acpi_pwr_find_resource(res)) == NULL)
sys/dev/acpica/acpi_powerres.c
230
acpi_name(res)));
sys/dev/acpica/acpi_powerres.c
576
ACPI_HANDLE res;
sys/dev/acpica/acpi_powerres.c
582
res = acpi_GetReference(NULL, obj);
sys/dev/acpica/acpi_powerres.c
583
if (res == NULL) {
sys/dev/acpica/acpi_powerres.c
591
if (ACPI_FAILURE(status = acpi_pwr_register_resource(res))) {
sys/dev/acpica/acpi_powerres.c
597
if ((rp = acpi_pwr_find_resource(res)) == NULL) {
sys/dev/acpica/acpi_powerres.c
751
acpi_pwr_find_resource(ACPI_HANDLE res)
sys/dev/acpica/acpi_powerres.c
759
if (rp->ap_resource == res)
sys/dev/acpica/acpi_resource.c
101
req.res = res;
sys/dev/acpica/acpi_resource.c
113
acpi_config_intr(device_t dev, ACPI_RESOURCE *res)
sys/dev/acpica/acpi_resource.c
120
switch (res->Type) {
sys/dev/acpica/acpi_resource.c
122
KASSERT(res->Data.Irq.InterruptCount == 1,
sys/dev/acpica/acpi_resource.c
124
irq = res->Data.Irq.Interrupts[0];
sys/dev/acpica/acpi_resource.c
125
trig = res->Data.Irq.Triggering;
sys/dev/acpica/acpi_resource.c
126
pol = res->Data.Irq.Polarity;
sys/dev/acpica/acpi_resource.c
129
KASSERT(res->Data.ExtendedIrq.InterruptCount == 1,
sys/dev/acpica/acpi_resource.c
131
irq = res->Data.ExtendedIrq.Interrupts[0];
sys/dev/acpica/acpi_resource.c
132
trig = res->Data.ExtendedIrq.Triggering;
sys/dev/acpica/acpi_resource.c
133
pol = res->Data.ExtendedIrq.Polarity;
sys/dev/acpica/acpi_resource.c
136
panic("%s: bad resource type %u", __func__, res->Type);
sys/dev/acpica/acpi_resource.c
190
acpi_parse_resource(ACPI_RESOURCE *res, void *context)
sys/dev/acpica/acpi_resource.c
204
switch (res->Type) {
sys/dev/acpica/acpi_resource.c
209
if (res->Data.FixedIo.AddressLength <= 0)
sys/dev/acpica/acpi_resource.c
212
res->Data.FixedIo.Address, res->Data.FixedIo.AddressLength));
sys/dev/acpica/acpi_resource.c
213
set->set_ioport(dev, arc->context, res->Data.FixedIo.Address,
sys/dev/acpica/acpi_resource.c
214
res->Data.FixedIo.AddressLength);
sys/dev/acpica/acpi_resource.c
217
if (res->Data.Io.AddressLength <= 0)
sys/dev/acpica/acpi_resource.c
219
if (res->Data.Io.Minimum == res->Data.Io.Maximum) {
sys/dev/acpica/acpi_resource.c
221
res->Data.Io.Minimum, res->Data.Io.AddressLength));
sys/dev/acpica/acpi_resource.c
222
set->set_ioport(dev, arc->context, res->Data.Io.Minimum,
sys/dev/acpica/acpi_resource.c
223
res->Data.Io.AddressLength);
sys/dev/acpica/acpi_resource.c
226
res->Data.Io.Minimum, res->Data.Io.Maximum,
sys/dev/acpica/acpi_resource.c
227
res->Data.Io.AddressLength));
sys/dev/acpica/acpi_resource.c
228
set->set_iorange(dev, arc->context, res->Data.Io.Minimum,
sys/dev/acpica/acpi_resource.c
229
res->Data.Io.Maximum, res->Data.Io.AddressLength,
sys/dev/acpica/acpi_resource.c
230
res->Data.Io.Alignment);
sys/dev/acpica/acpi_resource.c
234
if (res->Data.FixedMemory32.AddressLength <= 0)
sys/dev/acpica/acpi_resource.c
237
res->Data.FixedMemory32.Address,
sys/dev/acpica/acpi_resource.c
238
res->Data.FixedMemory32.AddressLength));
sys/dev/acpica/acpi_resource.c
239
set->set_memory(dev, arc->context, res->Data.FixedMemory32.Address,
sys/dev/acpica/acpi_resource.c
240
res->Data.FixedMemory32.AddressLength);
sys/dev/acpica/acpi_resource.c
243
if (res->Data.Memory32.AddressLength <= 0)
sys/dev/acpica/acpi_resource.c
245
if (res->Data.Memory32.Minimum == res->Data.Memory32.Maximum) {
sys/dev/acpica/acpi_resource.c
247
res->Data.Memory32.Minimum, res->Data.Memory32.AddressLength));
sys/dev/acpica/acpi_resource.c
248
set->set_memory(dev, arc->context, res->Data.Memory32.Minimum,
sys/dev/acpica/acpi_resource.c
249
res->Data.Memory32.AddressLength);
sys/dev/acpica/acpi_resource.c
252
res->Data.Memory32.Minimum, res->Data.Memory32.Maximum,
sys/dev/acpica/acpi_resource.c
253
res->Data.Memory32.AddressLength));
sys/dev/acpica/acpi_resource.c
254
set->set_memoryrange(dev, arc->context, res->Data.Memory32.Minimum,
sys/dev/acpica/acpi_resource.c
255
res->Data.Memory32.Maximum, res->Data.Memory32.AddressLength,
sys/dev/acpica/acpi_resource.c
256
res->Data.Memory32.Alignment);
sys/dev/acpica/acpi_resource.c
260
if (res->Data.Memory24.AddressLength <= 0)
sys/dev/acpica/acpi_resource.c
262
if (res->Data.Memory24.Minimum == res->Data.Memory24.Maximum) {
sys/dev/acpica/acpi_resource.c
264
res->Data.Memory24.Minimum, res->Data.Memory24.AddressLength));
sys/dev/acpica/acpi_resource.c
265
set->set_memory(dev, arc->context, res->Data.Memory24.Minimum,
sys/dev/acpica/acpi_resource.c
266
res->Data.Memory24.AddressLength);
sys/dev/acpica/acpi_resource.c
269
res->Data.Memory24.Minimum, res->Data.Memory24.Maximum,
sys/dev/acpica/acpi_resource.c
270
res->Data.Memory24.AddressLength));
sys/dev/acpica/acpi_resource.c
271
set->set_memoryrange(dev, arc->context, res->Data.Memory24.Minimum,
sys/dev/acpica/acpi_resource.c
272
res->Data.Memory24.Maximum, res->Data.Memory24.AddressLength,
sys/dev/acpica/acpi_resource.c
273
res->Data.Memory24.Alignment);
sys/dev/acpica/acpi_resource.c
282
set->set_irq(dev, arc->context, res->Data.Irq.Interrupts,
sys/dev/acpica/acpi_resource.c
283
res->Data.Irq.InterruptCount, res->Data.Irq.Triggering,
sys/dev/acpica/acpi_resource.c
284
res->Data.Irq.Polarity);
sys/dev/acpica/acpi_resource.c
292
set->set_drq(dev, arc->context, res->Data.Dma.Channels,
sys/dev/acpica/acpi_resource.c
293
res->Data.Dma.ChannelCount);
sys/dev/acpica/acpi_resource.c
298
res->Data.StartDpf.CompatibilityPriority);
sys/dev/acpica/acpi_resource.c
308
switch (res->Type) {
sys/dev/acpica/acpi_resource.c
310
gran = res->Data.Address16.Address.Granularity;
sys/dev/acpica/acpi_resource.c
311
min = res->Data.Address16.Address.Minimum;
sys/dev/acpica/acpi_resource.c
312
max = res->Data.Address16.Address.Maximum;
sys/dev/acpica/acpi_resource.c
313
length = res->Data.Address16.Address.AddressLength;
sys/dev/acpica/acpi_resource.c
319
gran = res->Data.Address32.Address.Granularity;
sys/dev/acpica/acpi_resource.c
320
min = res->Data.Address32.Address.Minimum;
sys/dev/acpica/acpi_resource.c
321
max = res->Data.Address32.Address.Maximum;
sys/dev/acpica/acpi_resource.c
322
length = res->Data.Address32.Address.AddressLength;
sys/dev/acpica/acpi_resource.c
328
gran = res->Data.Address64.Address.Granularity;
sys/dev/acpica/acpi_resource.c
329
min = res->Data.Address64.Address.Minimum;
sys/dev/acpica/acpi_resource.c
330
max = res->Data.Address64.Address.Maximum;
sys/dev/acpica/acpi_resource.c
331
length = res->Data.Address64.Address.AddressLength;
sys/dev/acpica/acpi_resource.c
337
KASSERT(res->Type == ACPI_RESOURCE_TYPE_EXTENDED_ADDRESS64,
sys/dev/acpica/acpi_resource.c
339
gran = res->Data.ExtAddress64.Address.Granularity;
sys/dev/acpica/acpi_resource.c
340
min = res->Data.ExtAddress64.Address.Minimum;
sys/dev/acpica/acpi_resource.c
341
max = res->Data.ExtAddress64.Address.Maximum;
sys/dev/acpica/acpi_resource.c
342
length = res->Data.ExtAddress64.Address.AddressLength;
sys/dev/acpica/acpi_resource.c
350
if (res->Data.Address.ProducerConsumer != ACPI_CONSUMER) {
sys/dev/acpica/acpi_resource.c
353
acpi_address_range_name(res->Data.Address.ResourceType)));
sys/dev/acpica/acpi_resource.c
356
if (res->Data.Address.ResourceType != ACPI_MEMORY_RANGE &&
sys/dev/acpica/acpi_resource.c
357
res->Data.Address.ResourceType != ACPI_IO_RANGE) {
sys/dev/acpica/acpi_resource.c
362
if (res->Data.Address.MinAddressFixed == ACPI_ADDRESS_FIXED &&
sys/dev/acpica/acpi_resource.c
363
res->Data.Address.MaxAddressFixed == ACPI_ADDRESS_FIXED) {
sys/dev/acpica/acpi_resource.c
364
if (res->Data.Address.ResourceType == ACPI_MEMORY_RANGE) {
sys/dev/acpica/acpi_resource.c
374
if (res->Data.Address32.ResourceType == ACPI_MEMORY_RANGE) {
sys/dev/acpica/acpi_resource.c
387
if (res->Data.ExtendedIrq.ProducerConsumer != ACPI_CONSUMER) {
sys/dev/acpica/acpi_resource.c
391
set->set_ext_irq(dev, arc->context, res->Data.ExtendedIrq.Interrupts,
sys/dev/acpica/acpi_resource.c
392
res->Data.ExtendedIrq.InterruptCount,
sys/dev/acpica/acpi_resource.c
393
res->Data.ExtendedIrq.Triggering, res->Data.ExtendedIrq.Polarity);
sys/dev/acpica/acpi_resource.c
51
struct resource *res;
sys/dev/acpica/acpi_resource.c
58
acpi_lookup_irq_handler(ACPI_RESOURCE *res, void *context)
sys/dev/acpica/acpi_resource.c
65
switch (res->Type) {
sys/dev/acpica/acpi_resource.c
67
irqnum = res->Data.Irq.InterruptCount;
sys/dev/acpica/acpi_resource.c
68
irq = res->Data.Irq.Interrupts[0];
sys/dev/acpica/acpi_resource.c
72
irqnum = res->Data.ExtendedIrq.InterruptCount;
sys/dev/acpica/acpi_resource.c
73
irq = res->Data.ExtendedIrq.Interrupts[0];
sys/dev/acpica/acpi_resource.c
87
KASSERT(irq == rman_get_start(req->res),
sys/dev/acpica/acpi_resource.c
89
bcopy(res, req->acpi_res, len);
sys/dev/acpica/acpi_resource.c
94
acpi_lookup_irq_resource(device_t dev, int rid, struct resource *res,
sys/dev/acpica/acpi_toshiba/acpi_toshiba.c
415
ACPI_OBJECT *res;
sys/dev/acpica/acpi_toshiba/acpi_toshiba.c
436
res = (ACPI_OBJECT *)results.Pointer;
sys/dev/acpica/acpi_toshiba/acpi_toshiba.c
437
if (!ACPI_PKG_VALID(res, HCI_WORDS)) {
sys/dev/acpica/acpi_toshiba/acpi_toshiba.c
442
acpi_PkgInt32(res, HCI_REG_AX, &ret);
sys/dev/acpica/acpi_toshiba/acpi_toshiba.c
445
acpi_PkgInt32(res, HCI_REG_CX, arg);
sys/dev/acpica/acpi_video/acpi_video.c
926
ACPI_OBJECT *res;
sys/dev/acpica/acpi_video/acpi_video.c
940
res = (ACPI_OBJECT *)dod_buf.Pointer;
sys/dev/acpica/acpi_video/acpi_video.c
941
if (!ACPI_PKG_VALID(res, 1)) {
sys/dev/acpica/acpi_video/acpi_video.c
948
argset.count = res->Package.Count;
sys/dev/acpica/acpi_video/acpi_video.c
953
argset.dod_pkg = res;
sys/dev/acpica/acpi_video/acpi_video.c
971
ACPI_OBJECT *res;
sys/dev/acpica/acpi_video/acpi_video.c
983
res = (ACPI_OBJECT *)bcl_buf.Pointer;
sys/dev/acpica/acpi_video/acpi_video.c
984
if (!ACPI_PKG_VALID(res, 2)) {
sys/dev/acpica/acpi_video/acpi_video.c
989
num = res->Package.Count;
sys/dev/acpica/acpi_video/acpi_video.c
996
if (acpi_PkgInt32(res, i, &levels[n]) == 0)
sys/dev/acpica/acpivar.h
368
ACPI_RESOURCE *res);
sys/dev/acpica/acpivar.h
379
ACPI_GENERIC_ADDRESS *gas, struct resource **res,
sys/dev/acpica/acpivar.h
409
void acpi_config_intr(device_t dev, ACPI_RESOURCE *res);
sys/dev/acpica/acpivar.h
411
struct resource *res, ACPI_RESOURCE *acpi_res);
sys/dev/acpica/acpivar.h
496
int acpi_PkgInt(ACPI_OBJECT *res, int idx, UINT64 *dst);
sys/dev/acpica/acpivar.h
497
int acpi_PkgInt32(ACPI_OBJECT *res, int idx, uint32_t *dst);
sys/dev/acpica/acpivar.h
498
int acpi_PkgStr(ACPI_OBJECT *res, int idx, void *dst, size_t size);
sys/dev/acpica/acpivar.h
499
int acpi_PkgGas(device_t dev, ACPI_OBJECT *res, int idx, int *type,
sys/dev/acpica/acpivar.h
501
int acpi_PkgRawGas(ACPI_OBJECT *res, int idx,
sys/dev/agp/intel-gtt.c
1442
struct intel_gtt res;
sys/dev/agp/intel-gtt.c
1445
res.stolen_size = sc->stolen_size;
sys/dev/agp/intel-gtt.c
1446
res.gtt_total_entries = sc->gtt_total_entries;
sys/dev/agp/intel-gtt.c
1447
res.gtt_mappable_entries = sc->gtt_mappable_entries;
sys/dev/agp/intel-gtt.c
1448
res.do_idle_maps = 0;
sys/dev/agp/intel-gtt.c
1449
res.scratch_page_dma = VM_PAGE_TO_PHYS(bogus_page);
sys/dev/agp/intel-gtt.c
1450
return (res);
sys/dev/crypto/tpm/tpm_crb.c
125
tpmcrb_fix_buff_offsets(ACPI_RESOURCE *res, void *arg)
sys/dev/crypto/tpm/tpm_crb.c
133
if (res->Type != ACPI_RESOURCE_TYPE_FIXED_MEMORY32)
sys/dev/crypto/tpm/tpm_crb.c
136
base_addr = res->Data.FixedMemory32.Address;
sys/dev/crypto/tpm/tpm_crb.c
137
length = res->Data.FixedMemory32.AddressLength;
sys/dev/crypto/tpm/tpm_crb.c
93
static ACPI_STATUS tpmcrb_fix_buff_offsets(ACPI_RESOURCE *res, void *arg);
sys/dev/crypto/tpm/tpm_tis.c
184
tpmtis_get_SIRQ_channel(ACPI_RESOURCE *res, void *arg)
sys/dev/crypto/tpm/tpm_tis.c
191
switch (res->Type) {
sys/dev/crypto/tpm/tpm_tis.c
193
channel = res->Data.Irq.Interrupts[0];
sys/dev/crypto/tpm/tpm_tis.c
196
channel = res->Data.ExtendedIrq.Interrupts[0];
sys/dev/crypto/tpm/tpm_tis.c
84
static ACPI_STATUS tpmtis_get_SIRQ_channel(ACPI_RESOURCE *res, void *arg);
sys/dev/disk/advansys/advansys.c
582
sghead.res = 0;
sys/dev/disk/advansys/advlib.c
176
u_int8_t res;
sys/dev/disk/advansys/advlib.h
693
u_int8_t res;
sys/dev/disk/advansys/advlib.h
718
u_int16_t res;
sys/dev/disk/ahci/ahci.h
625
int which, u_int32_t *res);
sys/dev/disk/mpt/mpt_user.c
478
struct mpt_user_raid_action_result *res;
sys/dev/disk/mpt/mpt_user.c
486
res = (struct mpt_user_raid_action_result *)
sys/dev/disk/mpt/mpt_user.c
488
res->action_status = reply->ActionStatus;
sys/dev/disk/mpt/mpt_user.c
489
res->volume_status = reply->VolumeStatus;
sys/dev/disk/mpt/mpt_user.c
490
bcopy(&reply->ActionData, res->action_data,
sys/dev/disk/mpt/mpt_user.c
491
sizeof(res->action_data));
sys/dev/disk/mpt/mpt_user.c
521
struct mpt_user_raid_action_result *res;
sys/dev/disk/mpt/mpt_user.c
571
res = (struct mpt_user_raid_action_result *)
sys/dev/disk/mpt/mpt_user.c
573
raid_act->volume_status = res->volume_status;
sys/dev/disk/mpt/mpt_user.c
574
raid_act->action_status = res->action_status;
sys/dev/disk/mpt/mpt_user.c
575
bcopy(res->action_data, raid_act->action_data,
sys/dev/disk/mpt/mpt_user.c
576
sizeof(res->action_data));
sys/dev/disk/nata/ata-all.c
728
ch->r_io[ATA_ERROR].res = ch->r_io[ATA_FEATURE].res;
sys/dev/disk/nata/ata-all.c
730
ch->r_io[ATA_IREASON].res = ch->r_io[ATA_COUNT].res;
sys/dev/disk/nata/ata-all.c
732
ch->r_io[ATA_STATUS].res = ch->r_io[ATA_COMMAND].res;
sys/dev/disk/nata/ata-all.c
734
ch->r_io[ATA_ALTSTAT].res = ch->r_io[ATA_CONTROL].res;
sys/dev/disk/nata/ata-all.h
496
struct resource *res;
sys/dev/disk/nata/ata-all.h
627
#define ATA_INB(res, offset) \
sys/dev/disk/nata/ata-all.h
628
bus_space_read_1(rman_get_bustag((res)), \
sys/dev/disk/nata/ata-all.h
629
rman_get_bushandle((res)), (offset))
sys/dev/disk/nata/ata-all.h
631
#define ATA_INW(res, offset) \
sys/dev/disk/nata/ata-all.h
632
bus_space_read_2(rman_get_bustag((res)), \
sys/dev/disk/nata/ata-all.h
633
rman_get_bushandle((res)), (offset))
sys/dev/disk/nata/ata-all.h
634
#define ATA_INL(res, offset) \
sys/dev/disk/nata/ata-all.h
635
bus_space_read_4(rman_get_bustag((res)), \
sys/dev/disk/nata/ata-all.h
636
rman_get_bushandle((res)), (offset))
sys/dev/disk/nata/ata-all.h
637
#define ATA_INSW(res, offset, addr, count) \
sys/dev/disk/nata/ata-all.h
638
bus_space_read_multi_2(rman_get_bustag((res)), \
sys/dev/disk/nata/ata-all.h
639
rman_get_bushandle((res)), \
sys/dev/disk/nata/ata-all.h
641
#define ATA_INSW_STRM(res, offset, addr, count) \
sys/dev/disk/nata/ata-all.h
642
bus_space_read_multi_stream_2(rman_get_bustag((res)), \
sys/dev/disk/nata/ata-all.h
643
rman_get_bushandle((res)), \
sys/dev/disk/nata/ata-all.h
645
#define ATA_INSL(res, offset, addr, count) \
sys/dev/disk/nata/ata-all.h
646
bus_space_read_multi_4(rman_get_bustag((res)), \
sys/dev/disk/nata/ata-all.h
647
rman_get_bushandle((res)), \
sys/dev/disk/nata/ata-all.h
649
#define ATA_INSL_STRM(res, offset, addr, count) \
sys/dev/disk/nata/ata-all.h
650
bus_space_read_multi_stream_4(rman_get_bustag((res)), \
sys/dev/disk/nata/ata-all.h
651
rman_get_bushandle((res)), \
sys/dev/disk/nata/ata-all.h
653
#define ATA_OUTB(res, offset, value) \
sys/dev/disk/nata/ata-all.h
654
bus_space_write_1(rman_get_bustag((res)), \
sys/dev/disk/nata/ata-all.h
655
rman_get_bushandle((res)), (offset), (value))
sys/dev/disk/nata/ata-all.h
656
#define ATA_OUTW(res, offset, value) \
sys/dev/disk/nata/ata-all.h
657
bus_space_write_2(rman_get_bustag((res)), \
sys/dev/disk/nata/ata-all.h
658
rman_get_bushandle((res)), (offset), (value))
sys/dev/disk/nata/ata-all.h
659
#define ATA_OUTL(res, offset, value) \
sys/dev/disk/nata/ata-all.h
660
bus_space_write_4(rman_get_bustag((res)), \
sys/dev/disk/nata/ata-all.h
661
rman_get_bushandle((res)), (offset), (value))
sys/dev/disk/nata/ata-all.h
662
#define ATA_OUTSW(res, offset, addr, count) \
sys/dev/disk/nata/ata-all.h
663
bus_space_write_multi_2(rman_get_bustag((res)), \
sys/dev/disk/nata/ata-all.h
664
rman_get_bushandle((res)), \
sys/dev/disk/nata/ata-all.h
666
#define ATA_OUTSW_STRM(res, offset, addr, count) \
sys/dev/disk/nata/ata-all.h
667
bus_space_write_multi_stream_2(rman_get_bustag((res)), \
sys/dev/disk/nata/ata-all.h
668
rman_get_bushandle((res)), \
sys/dev/disk/nata/ata-all.h
670
#define ATA_OUTSL(res, offset, addr, count) \
sys/dev/disk/nata/ata-all.h
671
bus_space_write_multi_4(rman_get_bustag((res)), \
sys/dev/disk/nata/ata-all.h
672
rman_get_bushandle((res)), \
sys/dev/disk/nata/ata-all.h
674
#define ATA_OUTSL_STRM(res, offset, addr, count) \
sys/dev/disk/nata/ata-all.h
675
bus_space_write_multi_stream_4(rman_get_bustag((res)), \
sys/dev/disk/nata/ata-all.h
676
rman_get_bushandle((res)), \
sys/dev/disk/nata/ata-all.h
680
ATA_INB(ch->r_io[idx].res, ch->r_io[idx].offset)
sys/dev/disk/nata/ata-all.h
683
ATA_INW(ch->r_io[idx].res, ch->r_io[idx].offset)
sys/dev/disk/nata/ata-all.h
686
ATA_INL(ch->r_io[idx].res, ch->r_io[idx].offset)
sys/dev/disk/nata/ata-all.h
689
ATA_INSW(ch->r_io[idx].res, ch->r_io[idx].offset, addr, count)
sys/dev/disk/nata/ata-all.h
692
ATA_INSW_STRM(ch->r_io[idx].res, ch->r_io[idx].offset, addr, count)
sys/dev/disk/nata/ata-all.h
695
ATA_INSL(ch->r_io[idx].res, ch->r_io[idx].offset, addr, count)
sys/dev/disk/nata/ata-all.h
698
ATA_INSL_STRM(ch->r_io[idx].res, ch->r_io[idx].offset, addr, count)
sys/dev/disk/nata/ata-all.h
701
ATA_OUTB(ch->r_io[idx].res, ch->r_io[idx].offset, value)
sys/dev/disk/nata/ata-all.h
704
ATA_OUTW(ch->r_io[idx].res, ch->r_io[idx].offset, value)
sys/dev/disk/nata/ata-all.h
707
ATA_OUTL(ch->r_io[idx].res, ch->r_io[idx].offset, value)
sys/dev/disk/nata/ata-all.h
710
ATA_OUTSW(ch->r_io[idx].res, ch->r_io[idx].offset, addr, count)
sys/dev/disk/nata/ata-all.h
713
ATA_OUTSW_STRM(ch->r_io[idx].res, ch->r_io[idx].offset, addr, count)
sys/dev/disk/nata/ata-all.h
716
ATA_OUTSL(ch->r_io[idx].res, ch->r_io[idx].offset, addr, count)
sys/dev/disk/nata/ata-all.h
719
ATA_OUTSL_STRM(ch->r_io[idx].res, ch->r_io[idx].offset, addr, count)
sys/dev/disk/nata/ata-card.c
104
ch->r_io[ATA_CONTROL].res = io;
sys/dev/disk/nata/ata-card.c
113
ch->r_io[i].res = NULL;
sys/dev/disk/nata/ata-card.c
116
ch->r_io[ATA_CONTROL].res = ctlio;
sys/dev/disk/nata/ata-card.c
138
if (ch->r_io[ATA_CONTROL].res != ch->r_io[ATA_DATA].res)
sys/dev/disk/nata/ata-card.c
140
ch->r_io[ATA_CONTROL].res);
sys/dev/disk/nata/ata-card.c
142
ch->r_io[ATA_DATA].res);
sys/dev/disk/nata/ata-card.c
144
ch->r_io[i].res = NULL;
sys/dev/disk/nata/ata-card.c
94
ch->r_io[i].res = io;
sys/dev/disk/nata/ata-card.c
97
ch->r_io[ATA_IDX_ADDR].res = io;
sys/dev/disk/nata/ata-isa.c
87
ch->r_io[i].res = io;
sys/dev/disk/nata/ata-isa.c
90
ch->r_io[ATA_CONTROL].res = ctlio;
sys/dev/disk/nata/ata-isa.c
92
ch->r_io[ATA_IDX_ADDR].res = io;
sys/dev/disk/nata/ata-pci.c
285
struct resource *res = NULL;
sys/dev/disk/nata/ata-pci.c
297
res = BUS_ALLOC_RESOURCE(device_get_parent(dev), dev,
sys/dev/disk/nata/ata-pci.c
309
res = BUS_ALLOC_RESOURCE(device_get_parent(dev), dev,
sys/dev/disk/nata/ata-pci.c
320
res = BUS_ALLOC_RESOURCE(device_get_parent(dev), child,
sys/dev/disk/nata/ata-pci.c
325
res = controller->r_irq;
sys/dev/disk/nata/ata-pci.c
327
return res;
sys/dev/disk/nata/ata-pci.c
428
ch->r_io[i].res = io;
sys/dev/disk/nata/ata-pci.c
431
ch->r_io[ATA_CONTROL].res = ctlio;
sys/dev/disk/nata/ata-pci.c
433
ch->r_io[ATA_IDX_ADDR].res = io;
sys/dev/disk/nata/ata-pci.c
437
ch->r_io[i].res = ctlr->r_res1;
sys/dev/disk/nata/ata-sata.c
193
if (ch->r_io[ATA_SSTATUS].res &&
sys/dev/disk/nata/chipsets/ata-acard.c
213
int res;
sys/dev/disk/nata/chipsets/ata-acard.c
253
res = serial->locked_ch;
sys/dev/disk/nata/chipsets/ata-acard.c
255
return res;
sys/dev/disk/nata/chipsets/ata-acerlabs.c
165
ch->r_io[i].res = io;
sys/dev/disk/nata/chipsets/ata-acerlabs.c
168
ch->r_io[ATA_CONTROL].res = ctlio;
sys/dev/disk/nata/chipsets/ata-acerlabs.c
170
ch->r_io[ATA_IDX_ADDR].res = io;
sys/dev/disk/nata/chipsets/ata-acerlabs.c
174
ch->r_io[i].res = ctlr->r_res1;
sys/dev/disk/nata/chipsets/ata-ahci.c
166
ch->r_io[ATA_SSTATUS].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-ahci.c
168
ch->r_io[ATA_SERROR].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-ahci.c
170
ch->r_io[ATA_SCONTROL].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-ahci.c
172
ch->r_io[ATA_SACTIVE].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-cyrix.c
89
ATA_OUTL(ch->r_io[ATA_BMCMD_PORT].res,
sys/dev/disk/nata/chipsets/ata-cyrix.c
93
ATA_OUTL(ch->r_io[ATA_BMCMD_PORT].res,
sys/dev/disk/nata/chipsets/ata-cyrix.c
97
ATA_OUTL(ch->r_io[ATA_BMCMD_PORT].res,
sys/dev/disk/nata/chipsets/ata-highpoint.c
184
u_int8_t reg, val, res;
sys/dev/disk/nata/chipsets/ata-highpoint.c
196
res = pci_read_config(gparent, 0x5a, 1) & (ch->unit ? 0x1:0x2);
sys/dev/disk/nata/chipsets/ata-highpoint.c
199
if (mode > ATA_UDMA2 && res) {
sys/dev/disk/nata/chipsets/ata-intel.c
210
ch->r_io[ATA_IDX_ADDR].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-intel.c
212
ch->r_io[ATA_IDX_DATA].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-intel.c
393
ch->r_io[i].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-marvell.c
217
ch->r_io[i].res = ctlr->r_res1;
sys/dev/disk/nata/chipsets/ata-marvell.c
220
ch->r_io[ATA_CONTROL].res = ctlr->r_res1;
sys/dev/disk/nata/chipsets/ata-marvell.c
222
ch->r_io[ATA_IDX_ADDR].res = ctlr->r_res1;
sys/dev/disk/nata/chipsets/ata-marvell.c
228
ch->r_io[ATA_SSTATUS].res = ctlr->r_res1;
sys/dev/disk/nata/chipsets/ata-marvell.c
230
ch->r_io[ATA_SERROR].res = ctlr->r_res1;
sys/dev/disk/nata/chipsets/ata-marvell.c
232
ch->r_io[ATA_SCONTROL].res = ctlr->r_res1;
sys/dev/disk/nata/chipsets/ata-marvell.c
238
ch->r_io[ATA_SSTATUS].res = ctlr->r_res1;
sys/dev/disk/nata/chipsets/ata-marvell.c
240
ch->r_io[ATA_SERROR].res = ctlr->r_res1;
sys/dev/disk/nata/chipsets/ata-marvell.c
242
ch->r_io[ATA_SCONTROL].res = ctlr->r_res1;
sys/dev/disk/nata/chipsets/ata-marvell.c
244
ch->r_io[ATA_SACTIVE].res = ctlr->r_res1;
sys/dev/disk/nata/chipsets/ata-marvell.c
447
int res;
sys/dev/disk/nata/chipsets/ata-marvell.c
484
res = ATA_OP_FINISHED;
sys/dev/disk/nata/chipsets/ata-marvell.c
489
res = ata_end_transaction(request);
sys/dev/disk/nata/chipsets/ata-marvell.c
494
return res;
sys/dev/disk/nata/chipsets/ata-nvidia.c
229
ch->r_io[ATA_SSTATUS].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-nvidia.c
231
ch->r_io[ATA_SERROR].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-nvidia.c
233
ch->r_io[ATA_SCONTROL].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-promise.c
529
ch->r_io[i].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-promise.c
532
ch->r_io[ATA_CONTROL].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-promise.c
534
ch->r_io[ATA_IDX_ADDR].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-promise.c
538
ch->r_io[ATA_SSTATUS].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-promise.c
540
ch->r_io[ATA_SERROR].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-promise.c
542
ch->r_io[ATA_SCONTROL].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-serverworks.c
131
ch->r_io[i].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-siliconimage.c
286
ch->r_io[i].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-siliconimage.c
289
ch->r_io[ATA_CONTROL].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-siliconimage.c
291
ch->r_io[ATA_IDX_ADDR].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-siliconimage.c
294
ch->r_io[ATA_BMCMD_PORT].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-siliconimage.c
296
ch->r_io[ATA_BMSTAT_PORT].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-siliconimage.c
298
ch->r_io[ATA_BMDTP_PORT].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-siliconimage.c
302
ch->r_io[ATA_SSTATUS].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-siliconimage.c
304
ch->r_io[ATA_SERROR].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-siliconimage.c
306
ch->r_io[ATA_SCONTROL].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-siliconimage.c
450
ch->r_io[ATA_SSTATUS].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-siliconimage.c
452
ch->r_io[ATA_SERROR].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-siliconimage.c
454
ch->r_io[ATA_SCONTROL].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-siliconimage.c
456
ch->r_io[ATA_SACTIVE].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-sis.c
190
ch->r_io[ATA_SSTATUS].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-sis.c
192
ch->r_io[ATA_SERROR].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-sis.c
194
ch->r_io[ATA_SCONTROL].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-via.c
178
ch->r_io[i].res = r_io;
sys/dev/disk/nata/chipsets/ata-via.c
181
ch->r_io[ATA_CONTROL].res = r_io;
sys/dev/disk/nata/chipsets/ata-via.c
183
ch->r_io[ATA_IDX_ADDR].res = r_io;
sys/dev/disk/nata/chipsets/ata-via.c
186
ch->r_io[i].res = ctlr->r_res1;
sys/dev/disk/nata/chipsets/ata-via.c
199
ch->r_io[ATA_SSTATUS].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-via.c
201
ch->r_io[ATA_SERROR].res = ctlr->r_res2;
sys/dev/disk/nata/chipsets/ata-via.c
203
ch->r_io[ATA_SCONTROL].res = ctlr->r_res2;
sys/dev/disk/nvme/nvme.c
559
code = NVME_COMQ_STATUS_CODE_GET(req->res.tail.status);
sys/dev/disk/nvme/nvme.c
595
code = NVME_COMQ_STATUS_CODE_GET(req->res.tail.status);
sys/dev/disk/nvme/nvme.c
664
nvme_allres_t *res;
sys/dev/disk/nvme/nvme.c
675
res = &comq->kcomq[comq->comq_tail];
sys/dev/disk/nvme/nvme.c
676
if ((res->tail.status ^ comq->phase) & NVME_COMQ_STATUS_PHASE)
sys/dev/disk/nvme/nvme.c
713
subq = &sc->subqueues[res->tail.subq_id];
sys/dev/disk/nvme/nvme.c
714
subq->subq_head = res->tail.subq_head_ptr;
sys/dev/disk/nvme/nvme.c
715
req = &subq->reqary[res->tail.cmd_id];
sys/dev/disk/nvme/nvme.c
724
req->res = *res;
sys/dev/disk/nvme/nvme.h
99
nvme_allres_t res; /* hw completion structure for entry */
sys/dev/disk/nvme/nvme_admin.c
331
sc->niosubqs = 1 + (req->res.setfeat.dw0 & 0xFFFFU);
sys/dev/disk/nvme/nvme_admin.c
332
sc->niocomqs = 1 + ((req->res.setfeat.dw0 >> 16) & 0xFFFFU);
sys/dev/disk/nvme/nvme_disk.c
402
code = NVME_COMQ_STATUS_CODE_GET(req->res.tail.status);
sys/dev/disk/nvme/nvme_disk.c
403
type = NVME_COMQ_STATUS_TYPE_GET(req->res.tail.status);
sys/dev/disk/sdhci/sdhci.c
256
uint32_t res;
sys/dev/disk/sdhci/sdhci.c
294
res = clk_base;
sys/dev/disk/sdhci/sdhci.c
296
if (res <= clock)
sys/dev/disk/sdhci/sdhci.c
298
res >>= 1;
sys/dev/disk/sili/sili.h
903
int which, u_int32_t *res);
sys/dev/drm/amd/amdgpu/amdgpu_afmt.c
100
amdgpu_afmt_calc_cts(clock, &res.cts_32khz, &res.n_32khz, 32000);
sys/dev/drm/amd/amdgpu/amdgpu_afmt.c
101
amdgpu_afmt_calc_cts(clock, &res.cts_44_1khz, &res.n_44_1khz, 44100);
sys/dev/drm/amd/amdgpu/amdgpu_afmt.c
102
amdgpu_afmt_calc_cts(clock, &res.cts_48khz, &res.n_48khz, 48000);
sys/dev/drm/amd/amdgpu/amdgpu_afmt.c
104
return res;
sys/dev/drm/amd/amdgpu/amdgpu_afmt.c
90
struct amdgpu_afmt_acr res;
sys/dev/drm/amd/amdgpu/amdgpu_device.c
1262
int res = -1;
sys/dev/drm/amd/amdgpu/amdgpu_device.c
1267
res = kstrtol(pciaddname_tmp, 10,
sys/dev/drm/amd/amdgpu/amdgpu_device.c
1270
if (!res) {
sys/dev/drm/amd/amdgpu/amdgpu_device.c
672
struct resource *res;
sys/dev/drm/amd/amdgpu/amdgpu_device.c
686
pci_bus_for_each_resource(root, res, i) {
sys/dev/drm/amd/amdgpu/amdgpu_device.c
687
if (res && res->flags & (IORESOURCE_MEM | IORESOURCE_MEM_64) &&
sys/dev/drm/amd/amdgpu/amdgpu_device.c
688
res->start > 0x100000000ull)
sys/dev/drm/amd/amdgpu/amdgpu_device.c
693
if (!res)
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
3643
int res = -EPERM;
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
3647
res = drm_universal_plane_init(
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
3657
res = drm_universal_plane_init(
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
3667
res = drm_universal_plane_init(
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
3685
return res;
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
3695
int res = -ENOMEM;
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
3702
res = amdgpu_dm_plane_init(dm, cursor_plane, 0);
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
3708
res = drm_crtc_init_with_planes(
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
3715
if (res)
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
3741
return res;
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
4031
int *res)
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
4063
int res = 0;
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
4073
i2c = create_i2c(link->ddc, link->link_index, &res);
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
4080
res = i2c_add_adapter(&i2c->base);
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
4082
if (res) {
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
4089
res = drm_connector_init(
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
4095
if (res) {
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
4120
res = connector_debugfs_init(aconnector);
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
4121
if (res) {
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
4132
if (res) {
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
4136
return res;
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
4164
int res = drm_encoder_init(dev,
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
4172
if (!res)
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
4179
return res;
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
65
bool res)
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
74
res ? "OK" : "Fail");
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
76
if (res) {
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
111
res.value = (long long)res_value;
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
114
res.value = -res.value;
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
116
return res;
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
121
struct fixed31_32 res;
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
137
res.value = arg1_int * arg2_int;
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
139
ASSERT(res.value <= LONG_MAX);
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
141
res.value <<= FIXED31_32_BITS_PER_FRACTIONAL_PART;
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
145
ASSERT(tmp <= (unsigned long long)(LLONG_MAX - res.value));
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
147
res.value += tmp;
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
151
ASSERT(tmp <= (unsigned long long)(LLONG_MAX - res.value));
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
153
res.value += tmp;
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
160
ASSERT(tmp <= (unsigned long long)(LLONG_MAX - res.value));
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
162
res.value += tmp;
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
165
res.value = -res.value;
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
167
return res;
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
172
struct fixed31_32 res;
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
182
res.value = arg_int * arg_int;
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
184
ASSERT(res.value <= LONG_MAX);
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
186
res.value <<= FIXED31_32_BITS_PER_FRACTIONAL_PART;
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
190
ASSERT(tmp <= (unsigned long long)(LLONG_MAX - res.value));
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
192
res.value += tmp;
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
194
ASSERT(tmp <= (unsigned long long)(LLONG_MAX - res.value));
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
196
res.value += tmp;
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
203
ASSERT(tmp <= (unsigned long long)(LLONG_MAX - res.value));
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
205
res.value += tmp;
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
207
return res;
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
228
struct fixed31_32 res = dc_fixpt_one;
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
249
res = dc_fixpt_sub(
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
254
res),
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
261
res = dc_fixpt_div(
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
262
dc_fixpt_mul(res, arg_norm),
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
265
return res;
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
281
struct fixed31_32 res = dc_fixpt_one;
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
286
res = dc_fixpt_sub(
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
291
res),
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
297
return res;
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
311
struct fixed31_32 res = dc_fixpt_from_fraction(
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
319
res = dc_fixpt_add(
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
324
res),
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
332
res));
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
380
struct fixed31_32 res = dc_fixpt_neg(dc_fixpt_one);
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
392
res,
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
396
dc_fixpt_exp(res)));
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
399
res,
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
402
res = res1;
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
406
return res;
sys/dev/drm/amd/display/dc/basics/fixpt31_32.c
69
struct fixed31_32 res;
sys/dev/drm/amd/display/dc/calcs/bw_fixed.c
105
res.value = (int64_t)(res_value);
sys/dev/drm/amd/display/dc/calcs/bw_fixed.c
108
res.value = -res.value;
sys/dev/drm/amd/display/dc/calcs/bw_fixed.c
109
return res;
sys/dev/drm/amd/display/dc/calcs/bw_fixed.c
145
struct bw_fixed res;
sys/dev/drm/amd/display/dc/calcs/bw_fixed.c
161
res.value = arg1_int * arg2_int;
sys/dev/drm/amd/display/dc/calcs/bw_fixed.c
163
ASSERT(res.value <= BW_FIXED_MAX_I32);
sys/dev/drm/amd/display/dc/calcs/bw_fixed.c
165
res.value <<= BW_FIXED_BITS_PER_FRACTIONAL_PART;
sys/dev/drm/amd/display/dc/calcs/bw_fixed.c
169
ASSERT(tmp <= (uint64_t)(MAX_I64 - res.value));
sys/dev/drm/amd/display/dc/calcs/bw_fixed.c
171
res.value += tmp;
sys/dev/drm/amd/display/dc/calcs/bw_fixed.c
175
ASSERT(tmp <= (uint64_t)(MAX_I64 - res.value));
sys/dev/drm/amd/display/dc/calcs/bw_fixed.c
177
res.value += tmp;
sys/dev/drm/amd/display/dc/calcs/bw_fixed.c
184
ASSERT(tmp <= (uint64_t)(MAX_I64 - res.value));
sys/dev/drm/amd/display/dc/calcs/bw_fixed.c
186
res.value += tmp;
sys/dev/drm/amd/display/dc/calcs/bw_fixed.c
189
res.value = -res.value;
sys/dev/drm/amd/display/dc/calcs/bw_fixed.c
190
return res;
sys/dev/drm/amd/display/dc/calcs/bw_fixed.c
51
struct bw_fixed res;
sys/dev/drm/amd/display/dc/calcs/bw_fixed.c
53
res.value = value << BW_FIXED_BITS_PER_FRACTIONAL_PART;
sys/dev/drm/amd/display/dc/calcs/bw_fixed.c
54
return res;
sys/dev/drm/amd/display/dc/calcs/bw_fixed.c
59
struct bw_fixed res;
sys/dev/drm/amd/display/dc/calcs/dcn_calcs.c
1356
bool res;
sys/dev/drm/amd/display/dc/calcs/dcn_calcs.c
1361
res = dm_pp_get_clock_levels_by_type_with_voltage(
sys/dev/drm/amd/display/dc/calcs/dcn_calcs.c
1364
if (res)
sys/dev/drm/amd/display/dc/calcs/dcn_calcs.c
1365
res = verify_clock_values(&fclks);
sys/dev/drm/amd/display/dc/calcs/dcn_calcs.c
1367
if (res) {
sys/dev/drm/amd/display/dc/calcs/dcn_calcs.c
1382
res = dm_pp_get_clock_levels_by_type_with_voltage(
sys/dev/drm/amd/display/dc/calcs/dcn_calcs.c
1385
if (res)
sys/dev/drm/amd/display/dc/calcs/dcn_calcs.c
1386
res = verify_clock_values(&dcfclks);
sys/dev/drm/amd/display/dc/calcs/dcn_calcs.c
1388
if (res && dcfclks.num_levels >= 3) {
sys/dev/drm/amd/display/dc/core/dc_link_ddc.c
649
int res = -1;
sys/dev/drm/amd/display/dc/core/dc_link_ddc.c
671
res = aux_engine->funcs->read_channel_reply(aux_engine, size,
sys/dev/drm/amd/display/dc/core/dc_link_ddc.c
676
res = 0;
sys/dev/drm/amd/display/dc/core/dc_link_ddc.c
681
res = -1;
sys/dev/drm/amd/display/dc/core/dc_link_ddc.c
685
return res;
sys/dev/drm/amd/display/dc/core/dc_resource.c
1109
bool res = false;
sys/dev/drm/amd/display/dc/core/dc_resource.c
1147
res = pipe_ctx->plane_res.xfm->funcs->transform_get_optimal_number_of_taps(
sys/dev/drm/amd/display/dc/core/dc_resource.c
1151
res = pipe_ctx->plane_res.dpp->funcs->dpp_get_optimal_number_of_taps(
sys/dev/drm/amd/display/dc/core/dc_resource.c
1153
if (!res) {
sys/dev/drm/amd/display/dc/core/dc_resource.c
1158
res = pipe_ctx->plane_res.xfm->funcs->transform_get_optimal_number_of_taps(
sys/dev/drm/amd/display/dc/core/dc_resource.c
1164
res = pipe_ctx->plane_res.dpp->funcs->dpp_get_optimal_number_of_taps(
sys/dev/drm/amd/display/dc/core/dc_resource.c
1170
if (res)
sys/dev/drm/amd/display/dc/core/dc_resource.c
1191
return res;
sys/dev/drm/amd/display/dc/core/dc_resource.c
1826
enum dc_status res;
sys/dev/drm/amd/display/dc/core/dc_resource.c
1837
res = dc->res_pool->funcs->add_stream_to_ctx(dc, new_ctx, stream);
sys/dev/drm/amd/display/dc/core/dc_resource.c
1838
if (res != DC_OK)
sys/dev/drm/amd/display/dc/core/dc_resource.c
1839
DC_ERROR("Adding stream %p to context failed with err %d!\n", stream, res);
sys/dev/drm/amd/display/dc/core/dc_resource.c
1841
return res;
sys/dev/drm/amd/display/dc/core/dc_resource.c
2869
enum dc_status res = DC_OK;
sys/dev/drm/amd/display/dc/core/dc_resource.c
2874
res = DC_FAIL_CONTROLLER_VALIDATE;
sys/dev/drm/amd/display/dc/core/dc_resource.c
2876
if (res == DC_OK)
sys/dev/drm/amd/display/dc/core/dc_resource.c
2879
res = DC_FAIL_ENC_VALIDATE;
sys/dev/drm/amd/display/dc/core/dc_resource.c
2883
if (res == DC_OK)
sys/dev/drm/amd/display/dc/core/dc_resource.c
2884
res = dc_link_validate_mode_timing(stream,
sys/dev/drm/amd/display/dc/core/dc_resource.c
2888
return res;
sys/dev/drm/amd/display/dc/core/dc_resource.c
2893
enum dc_status res = DC_OK;
sys/dev/drm/amd/display/dc/core/dc_resource.c
2899
return res;
sys/dev/drm/amd/display/dc/inc/bw_fixed.h
104
struct bw_fixed res;
sys/dev/drm/amd/display/dc/inc/bw_fixed.h
106
res.value = arg1.value + arg2.value;
sys/dev/drm/amd/display/dc/inc/bw_fixed.h
108
return res;
sys/dev/drm/amd/display/dc/inc/bw_fixed.h
113
struct bw_fixed res;
sys/dev/drm/amd/display/dc/inc/bw_fixed.h
115
res.value = arg1.value - arg2.value;
sys/dev/drm/amd/display/dc/inc/bw_fixed.h
117
return res;
sys/dev/drm/amd/display/dc/inc/bw_fixed.h
128
struct bw_fixed res;
sys/dev/drm/amd/display/dc/inc/bw_fixed.h
130
div64_u64_rem(arg1.value, arg2.value, (u64 *)&res.value);
sys/dev/drm/amd/display/dc/inc/bw_fixed.h
131
return res;
sys/dev/drm/amd/display/dc/inc/bw_fixed.h
72
struct bw_fixed res;
sys/dev/drm/amd/display/dc/inc/bw_fixed.h
74
res.value = value << BW_FIXED_BITS_PER_FRACTIONAL_PART;
sys/dev/drm/amd/display/dc/inc/bw_fixed.h
75
return res;
sys/dev/drm/amd/display/include/fixed31_32.h
113
struct fixed31_32 res;
sys/dev/drm/amd/display/include/fixed31_32.h
115
res.value = -arg.value;
sys/dev/drm/amd/display/include/fixed31_32.h
117
return res;
sys/dev/drm/amd/display/include/fixed31_32.h
253
struct fixed31_32 res;
sys/dev/drm/amd/display/include/fixed31_32.h
258
res.value = arg1.value + arg2.value;
sys/dev/drm/amd/display/include/fixed31_32.h
260
return res;
sys/dev/drm/amd/display/include/fixed31_32.h
278
struct fixed31_32 res;
sys/dev/drm/amd/display/include/fixed31_32.h
283
res.value = arg1.value - arg2.value;
sys/dev/drm/amd/display/include/fixed31_32.h
285
return res;
sys/dev/drm/amd/display/include/fixed31_32.h
95
struct fixed31_32 res;
sys/dev/drm/amd/display/include/fixed31_32.h
97
res.value = (long long) arg << FIXED31_32_BITS_PER_FRACTIONAL_PART;
sys/dev/drm/amd/display/include/fixed31_32.h
99
return res;
sys/dev/drm/amd/powerplay/hwmgr/processpptables.c
896
int res = 0;
sys/dev/drm/amd/powerplay/hwmgr/processpptables.c
932
res = func(hwmgr, &ps->hardware, i, pclock_info);
sys/dev/drm/amd/powerplay/hwmgr/processpptables.c
933
if ((0 == result) && (0 != res))
sys/dev/drm/amd/powerplay/hwmgr/processpptables.c
934
result = res;
sys/dev/drm/amd/powerplay/hwmgr/processpptables.c
959
int res = func(hwmgr, &ps->hardware, i, pclock_info);
sys/dev/drm/amd/powerplay/hwmgr/processpptables.c
961
if ((0 == result) && (0 != res))
sys/dev/drm/amd/powerplay/hwmgr/processpptables.c
962
result = res;
sys/dev/drm/amd/powerplay/smumgr/ci_smumgr.c
1791
int res;
sys/dev/drm/amd/powerplay/smumgr/ci_smumgr.c
1795
res = ci_convert_mc_reg_table_entry_to_smc(
sys/dev/drm/amd/powerplay/smumgr/ci_smumgr.c
1801
if (0 != res)
sys/dev/drm/amd/powerplay/smumgr/ci_smumgr.c
1802
result = res;
sys/dev/drm/amd/powerplay/smumgr/ci_smumgr.c
2131
int res;
sys/dev/drm/amd/powerplay/smumgr/ci_smumgr.c
2193
res = ci_copy_bytes_to_smc(hwmgr, ci_data->fan_table_start, (uint8_t *)&fan_table, (uint32_t)sizeof(fan_table), SMC_RAM_END);
sys/dev/drm/amd/powerplay/smumgr/fiji_smumgr.c
2142
int res;
sys/dev/drm/amd/powerplay/smumgr/fiji_smumgr.c
2217
res = smu7_copy_bytes_to_smc(hwmgr, smu_data->smu7_data.fan_table_start,
sys/dev/drm/amd/powerplay/smumgr/fiji_smumgr.c
2221
if (!res && hwmgr->thermal_controller.
sys/dev/drm/amd/powerplay/smumgr/fiji_smumgr.c
2223
res = smum_send_msg_to_smc_with_parameter(hwmgr,
sys/dev/drm/amd/powerplay/smumgr/fiji_smumgr.c
2228
if (!res && hwmgr->thermal_controller.
sys/dev/drm/amd/powerplay/smumgr/fiji_smumgr.c
2230
res = smum_send_msg_to_smc_with_parameter(hwmgr,
sys/dev/drm/amd/powerplay/smumgr/fiji_smumgr.c
2235
if (res)
sys/dev/drm/amd/powerplay/smumgr/iceland_smumgr.c
1758
int res;
sys/dev/drm/amd/powerplay/smumgr/iceland_smumgr.c
1762
res = iceland_convert_mc_reg_table_entry_to_smc(
sys/dev/drm/amd/powerplay/smumgr/iceland_smumgr.c
1768
if (0 != res)
sys/dev/drm/amd/powerplay/smumgr/iceland_smumgr.c
1769
result = res;
sys/dev/drm/amd/powerplay/smumgr/iceland_smumgr.c
2094
int res;
sys/dev/drm/amd/powerplay/smumgr/iceland_smumgr.c
2158
res = smu7_copy_bytes_to_smc(hwmgr, smu7_data->fan_table_start, (uint8_t *)&fan_table, (uint32_t)sizeof(fan_table), SMC_RAM_END);
sys/dev/drm/amd/powerplay/smumgr/polaris10_smumgr.c
2019
int res;
sys/dev/drm/amd/powerplay/smumgr/polaris10_smumgr.c
2094
res = smu7_copy_bytes_to_smc(hwmgr, smu_data->smu7_data.fan_table_start,
sys/dev/drm/amd/powerplay/smumgr/polaris10_smumgr.c
2098
if (!res && hwmgr->thermal_controller.
sys/dev/drm/amd/powerplay/smumgr/polaris10_smumgr.c
2100
res = smum_send_msg_to_smc_with_parameter(hwmgr,
sys/dev/drm/amd/powerplay/smumgr/polaris10_smumgr.c
2105
if (!res && hwmgr->thermal_controller.
sys/dev/drm/amd/powerplay/smumgr/polaris10_smumgr.c
2107
res = smum_send_msg_to_smc_with_parameter(hwmgr,
sys/dev/drm/amd/powerplay/smumgr/polaris10_smumgr.c
2112
if (res)
sys/dev/drm/amd/powerplay/smumgr/tonga_smumgr.c
2137
int res;
sys/dev/drm/amd/powerplay/smumgr/tonga_smumgr.c
2141
res = tonga_convert_mc_reg_table_entry_to_smc(
sys/dev/drm/amd/powerplay/smumgr/tonga_smumgr.c
2147
if (0 != res)
sys/dev/drm/amd/powerplay/smumgr/tonga_smumgr.c
2148
result = res;
sys/dev/drm/amd/powerplay/smumgr/tonga_smumgr.c
2469
int res;
sys/dev/drm/amd/powerplay/smumgr/tonga_smumgr.c
2542
res = smu7_copy_bytes_to_smc(hwmgr,
sys/dev/drm/drm_context.c
327
struct drm_ctx_res *res = data;
sys/dev/drm/drm_context.c
335
if (res->count >= DRM_RESERVED_CONTEXTS) {
sys/dev/drm/drm_context.c
339
if (copy_to_user(&res->contexts[i], &ctx, sizeof(ctx)))
sys/dev/drm/drm_context.c
343
res->count = DRM_RESERVED_CONTEXTS;
sys/dev/drm/drm_dp_aux_dev.c
107
ssize_t res;
sys/dev/drm/drm_dp_aux_dev.c
114
res = sprintf(buf, "%s\n", aux_dev->aux->name);
sys/dev/drm/drm_dp_aux_dev.c
117
return res;
sys/dev/drm/drm_dp_aux_dev.c
149
ssize_t res = 0;
sys/dev/drm/drm_dp_aux_dev.c
161
res = -ERESTARTSYS;
sys/dev/drm/drm_dp_aux_dev.c
165
res = drm_dp_dpcd_read(aux_dev->aux, pos, buf, todo);
sys/dev/drm/drm_dp_aux_dev.c
166
if (res <= 0)
sys/dev/drm/drm_dp_aux_dev.c
169
if (copy_to_iter(buf, res, to) != res) {
sys/dev/drm/drm_dp_aux_dev.c
170
res = -EFAULT;
sys/dev/drm/drm_dp_aux_dev.c
174
pos += res;
sys/dev/drm/drm_dp_aux_dev.c
178
res = pos - iocb->ki_pos;
sys/dev/drm/drm_dp_aux_dev.c
184
return res;
sys/dev/drm/drm_dp_aux_dev.c
191
ssize_t res = 0;
sys/dev/drm/drm_dp_aux_dev.c
203
res = -ERESTARTSYS;
sys/dev/drm/drm_dp_aux_dev.c
208
res = -EFAULT;
sys/dev/drm/drm_dp_aux_dev.c
212
res = drm_dp_dpcd_write(aux_dev->aux, pos, buf, todo);
sys/dev/drm/drm_dp_aux_dev.c
213
if (res <= 0)
sys/dev/drm/drm_dp_aux_dev.c
216
pos += res;
sys/dev/drm/drm_dp_aux_dev.c
220
res = pos - iocb->ki_pos;
sys/dev/drm/drm_dp_aux_dev.c
226
return res;
sys/dev/drm/drm_dp_aux_dev.c
297
int res;
sys/dev/drm/drm_dp_aux_dev.c
307
res = PTR_ERR(aux_dev->dev);
sys/dev/drm/drm_dp_aux_dev.c
317
return res;
sys/dev/drm/drm_dp_aux_dev.c
322
int res;
sys/dev/drm/drm_dp_aux_dev.c
330
res = register_chrdev(0, "aux", &auxdev_fops);
sys/dev/drm/drm_dp_aux_dev.c
331
if (res < 0)
sys/dev/drm/drm_dp_aux_dev.c
333
drm_dev_major = res;
sys/dev/drm/drm_dp_aux_dev.c
338
return res;
sys/dev/drm/drm_dragonfly.c
198
struct resource *res;
sys/dev/drm/drm_dragonfly.c
214
res = bus_alloc_resource_any(dev->dev->bsddev, SYS_RES_MEMORY, &rid,
sys/dev/drm/drm_dragonfly.c
217
if (res == NULL) {
sys/dev/drm/drm_dragonfly.c
225
dev->pcir[resource] = res;
sys/dev/drm/i915/i915_gem_stolen.c
101
res = kmalloc(sizeof(*res), M_DRM, GFP_KERNEL);
sys/dev/drm/i915/i915_gem_stolen.c
102
return res;
sys/dev/drm/i915/i915_gem_stolen.c
89
struct linux_resource *res;
sys/dev/drm/i915/i915_sysfs.c
46
u64 res;
sys/dev/drm/i915/i915_sysfs.c
49
res = intel_rc6_residency_us(dev_priv, reg);
sys/dev/drm/i915/i915_sysfs.c
52
return DIV_ROUND_CLOSEST_ULL(res, 1000);
sys/dev/drm/i915/intel_lpe_audio.c
109
pinfo.res = rsc;
sys/dev/drm/include/drm/drm_fixed.h
151
s64 res;
sys/dev/drm/include/drm/drm_fixed.h
182
res = (s64) res_abs;
sys/dev/drm/include/drm/drm_fixed.h
184
res = -res;
sys/dev/drm/include/drm/drm_fixed.h
185
return res;
sys/dev/drm/include/linux/idr.h
107
void *res = NULL;
sys/dev/drm/include/linux/idr.h
112
res = idr_find(idp, id);
sys/dev/drm/include/linux/idr.h
113
if (res == NULL)
sys/dev/drm/include/linux/idr.h
120
return res;
sys/dev/drm/include/linux/kernel.h
155
kstrtouint(const char *s, unsigned int base, unsigned int *res)
sys/dev/drm/include/linux/kernel.h
157
*(res) = strtol(s,0,base);
sys/dev/drm/include/linux/kernel.h
216
kstrtol(const char *cp, unsigned int base, long *res)
sys/dev/drm/include/linux/kernel.h
220
*res = strtol(cp, &end, base);
sys/dev/drm/include/linux/pci.h
274
struct resource *res;
sys/dev/drm/include/linux/pci.h
278
res = bus_alloc_resource_any(pdev->dev.bsddev, SYS_RES_MEMORY, &rid, RF_SHAREABLE);
sys/dev/drm/include/linux/pci.h
279
if (res == NULL) {
sys/dev/drm/include/linux/pci.h
284
return rman_get_start(res);
sys/dev/drm/include/linux/pci.h
296
return rman_get_size(rle->res);
sys/dev/drm/include/linux/pci.h
633
resource_size(const struct linux_resource *res)
sys/dev/drm/include/linux/pci.h
635
return res->end - res->start + 1;
sys/dev/drm/include/linux/stop_machine.h
41
int res;
sys/dev/drm/include/linux/stop_machine.h
46
res = (*fn)(data);
sys/dev/drm/include/linux/stop_machine.h
49
return res;
sys/dev/drm/linux_dma-buf.c
102
*res = newoff;
sys/dev/drm/linux_dma-buf.c
79
dmabuf_seek(struct file *fp, off_t offset, int whence, off_t *res)
sys/dev/drm/linux_irq.c
113
struct resource *res = ddev->pdev->_irqr;
sys/dev/drm/linux_irq.c
129
bus_teardown_intr(bsddev, res, irq_entry->cookiep);
sys/dev/drm/linux_irq.c
130
bus_release_resource(bsddev, SYS_RES_IRQ, irq_entry->rid, res);
sys/dev/drm/radeon/radeon_audio.c
598
static struct radeon_hdmi_acr res;
sys/dev/drm/radeon/radeon_audio.c
622
radeon_audio_calc_cts(clock, &res.cts_32khz, &res.n_32khz, 32000);
sys/dev/drm/radeon/radeon_audio.c
623
radeon_audio_calc_cts(clock, &res.cts_44_1khz, &res.n_44_1khz, 44100);
sys/dev/drm/radeon/radeon_audio.c
624
radeon_audio_calc_cts(clock, &res.cts_48khz, &res.n_48khz, 48000);
sys/dev/drm/radeon/radeon_audio.c
626
return &res;
sys/dev/drm/ttm/ttm_page_alloc_dma.c
537
static void ttm_dma_pool_release(struct device *dev, void *res)
sys/dev/drm/ttm/ttm_page_alloc_dma.c
539
struct dma_pool *pool = *(struct dma_pool **)res;
sys/dev/drm/ttm/ttm_page_alloc_dma.c
545
static int ttm_dma_pool_match(struct device *dev, void *res, void *match_data)
sys/dev/drm/ttm/ttm_page_alloc_dma.c
547
return *(struct dma_pool **)res == match_data;
sys/dev/misc/amdsbwd/amdsbwd.c
130
pmio_read(struct resource *res, uint8_t reg)
sys/dev/misc/amdsbwd/amdsbwd.c
132
bus_write_1(res, 0, reg); /* Index */
sys/dev/misc/amdsbwd/amdsbwd.c
133
return (bus_read_1(res, 1)); /* Data */
sys/dev/misc/amdsbwd/amdsbwd.c
137
pmio_write(struct resource *res, uint8_t reg, uint8_t val)
sys/dev/misc/amdsbwd/amdsbwd.c
139
bus_write_1(res, 0, reg); /* Index */
sys/dev/misc/amdsbwd/amdsbwd.c
140
bus_write_1(res, 1, val); /* Data */
sys/dev/misc/amdsbwd/amdsbwd.c
452
struct resource *res;
sys/dev/misc/amdsbwd/amdsbwd.c
487
res = bus_alloc_resource(dev, pmtype, &rid, 0ul, ~0ul, pmwidth,
sys/dev/misc/amdsbwd/amdsbwd.c
489
if (res == NULL) {
sys/dev/misc/amdsbwd/amdsbwd.c
495
amdsbwd_probe_sb7xx(dev, res, &addr);
sys/dev/misc/amdsbwd/amdsbwd.c
500
amdsbwd_probe_sb8xx(dev, res, &addr);
sys/dev/misc/amdsbwd/amdsbwd.c
503
rc = amdsbwd_probe_fch41(dev, res, &addr,
sys/dev/misc/amdsbwd/amdsbwd.c
507
bus_release_resource(dev, pmtype, rid, res);
sys/dev/misc/cpuctl/cpuctl.c
373
uint64_t rev0, rev1, res;
sys/dev/misc/cpuctl/cpuctl.c
422
rdmsr_safe(0x1205, &res);
sys/dev/misc/cpuctl/cpuctl.c
423
res &= 0xff;
sys/dev/misc/cpuctl/cpuctl.c
429
(unsigned)(rev0 >> 32), (unsigned)(rev1 >> 32), (unsigned)res);
sys/dev/misc/cpuctl/cpuctl.c
431
if (res != 0x01)
sys/dev/misc/evdev/evdev.c
153
int res;
sys/dev/misc/evdev/evdev.c
159
bit_ffs_at(evdev->ev_key_flags, KEY_OK, KEY_CNT - KEY_OK, &res);
sys/dev/misc/evdev/evdev.c
160
if (res == -1)
sys/dev/misc/evdev/evdev.c
161
bit_ffs(evdev->ev_key_flags, BTN_MISC, &res);
sys/dev/misc/evdev/evdev.c
162
size += (res != -1);
sys/dev/misc/evdev/evdev.c
163
bit_count(evdev->ev_key_flags, BTN_MISC, KEY_OK - BTN_MISC, &res);
sys/dev/misc/evdev/evdev.c
164
size += res;
sys/dev/misc/evdev/evdev.c
167
bit_count(evdev->ev_rel_flags, 0, REL_CNT, &res);
sys/dev/misc/evdev/evdev.c
168
size += res;
sys/dev/misc/evdev/evdev.c
175
bit_count(evdev->ev_abs_flags, 0, ABS_CNT, &res);
sys/dev/misc/evdev/evdev.c
176
size += res;
sys/dev/misc/evdev/evdev.c
177
bit_count(evdev->ev_abs_flags, ABS_MT_FIRST, MT_CNT, &res);
sys/dev/misc/evdev/evdev.c
178
if (res > 0) {
sys/dev/misc/evdev/evdev.c
179
res++; /* ABS_MT_SLOT or SYN_MT_REPORT */
sys/dev/misc/evdev/evdev.c
182
size += res * MAXIMAL_MT_SLOT(evdev);
sys/dev/misc/evdev/evdev.c
185
size += res * (MAX_MT_REPORTS - 1);
sys/dev/misc/evdev/evdev.c
190
bit_count(evdev->ev_msc_flags, 0, MSC_CNT, &res);
sys/dev/misc/evdev/evdev.c
191
size += res;
sys/dev/misc/evdev/evdev.c
194
bit_count(evdev->ev_led_flags, 0, LED_CNT, &res);
sys/dev/misc/evdev/evdev.c
195
size += res;
sys/dev/misc/evdev/evdev.c
198
bit_ffs(evdev->ev_snd_flags, SND_CNT, &res);
sys/dev/misc/evdev/evdev.c
199
size += (res != -1);
sys/dev/misc/evdev/evdev.c
201
bit_ffs(evdev->ev_sw_flags, SW_CNT, &res);
sys/dev/misc/evdev/evdev.c
202
size += (res != -1);
sys/dev/misc/joy/joy.c
124
struct resource *res;
sys/dev/misc/joy/joy.c
127
res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0, 1, RF_ACTIVE);
sys/dev/misc/joy/joy.c
128
if (res == NULL)
sys/dev/misc/joy/joy.c
130
joy->bt = rman_get_bustag(res);
sys/dev/misc/joy/joy.c
131
joy->port = rman_get_bushandle(res);
sys/dev/misc/kbd/atkbdc.c
633
int res = -1;
sys/dev/misc/kbd/atkbdc.c
638
res = wait_for_kbd_ack(p);
sys/dev/misc/kbd/atkbdc.c
639
if (res == KBD_ACK)
sys/dev/misc/kbd/atkbdc.c
642
return res;
sys/dev/misc/kbd/atkbdc.c
650
int res = -1;
sys/dev/misc/kbd/atkbdc.c
665
res = wait_for_aux_ack(p);
sys/dev/misc/kbd/atkbdc.c
666
if (res == PSM_ACK)
sys/dev/misc/kbd/atkbdc.c
669
return res;
sys/dev/misc/kbd/atkbdc.c
677
int res = -1;
sys/dev/misc/kbd/atkbdc.c
682
res = wait_for_kbd_ack(p);
sys/dev/misc/kbd/atkbdc.c
683
if (res == KBD_ACK)
sys/dev/misc/kbd/atkbdc.c
685
else if (res != KBD_RESEND)
sys/dev/misc/kbd/atkbdc.c
686
return res;
sys/dev/misc/kbd/atkbdc.c
689
return res;
sys/dev/misc/kbd/atkbdc.c
691
for (retry = KBD_MAXRETRY, res = -1; retry > 0; --retry) {
sys/dev/misc/kbd/atkbdc.c
694
res = wait_for_kbd_ack(p);
sys/dev/misc/kbd/atkbdc.c
695
if (res != KBD_RESEND)
sys/dev/misc/kbd/atkbdc.c
698
return res;
sys/dev/misc/kbd/atkbdc.c
706
int res = -1;
sys/dev/misc/kbd/atkbdc.c
712
res = wait_for_aux_ack(p);
sys/dev/misc/kbd/atkbdc.c
713
if (res == PSM_ACK)
sys/dev/misc/kbd/atkbdc.c
715
else if (res != PSM_RESEND)
sys/dev/misc/kbd/atkbdc.c
716
return res;
sys/dev/misc/kbd/atkbdc.c
719
return res;
sys/dev/misc/kbd/atkbdc.c
721
for (retry = KBD_MAXRETRY, res = -1; retry > 0; --retry) {
sys/dev/misc/kbd/atkbdc.c
724
res = wait_for_aux_ack(p);
sys/dev/misc/kbd/atkbdc.c
725
if (res != PSM_RESEND)
sys/dev/misc/kbd/atkbdc.c
728
return res;
sys/dev/misc/musycc/musycc.c
1417
struct resource *res;
sys/dev/misc/musycc/musycc.c
1451
res = bus_alloc_resource(self, SYS_RES_MEMORY, &rid,
sys/dev/misc/musycc/musycc.c
1453
if (res == NULL) {
sys/dev/misc/musycc/musycc.c
1457
csc->virbase[f] = (u_char *)rman_get_virtual(res);
sys/dev/misc/musycc/musycc.c
1458
csc->physbase[f] = rman_get_start(res);
sys/dev/misc/orm/orm.c
108
res = bus_alloc_resource_any(child, SYS_RES_MEMORY, &rid,
sys/dev/misc/orm/orm.c
110
if (res == NULL) {
sys/dev/misc/orm/orm.c
115
bt = rman_get_bustag(res);
sys/dev/misc/orm/orm.c
116
bh = rman_get_bushandle(res);
sys/dev/misc/orm/orm.c
130
bus_release_resource(child, SYS_RES_MEMORY, rid, res);
sys/dev/misc/orm/orm.c
140
res = bus_alloc_resource_any(child, SYS_RES_MEMORY, &rid, 0);
sys/dev/misc/orm/orm.c
141
if (res == NULL) {
sys/dev/misc/orm/orm.c
147
sc->res[sc->rnum] = res;
sys/dev/misc/orm/orm.c
174
sc->res[i]);
sys/dev/misc/orm/orm.c
61
struct resource *res[MAX_ROMS];
sys/dev/misc/orm/orm.c
83
struct resource *res;
sys/dev/misc/pcfclock/pcfclock.c
147
int res;
sys/dev/misc/pcfclock/pcfclock.c
152
if ((res = ppb_request_bus(ppbus, pcfclockdev,
sys/dev/misc/pcfclock/pcfclock.c
154
return (res);
sys/dev/misc/ppi/ppi.c
250
int res;
sys/dev/misc/ppi/ppi.c
256
if ((res = ppb_request_bus(ppbus, ppidev,
sys/dev/misc/ppi/ppi.c
259
return (res);
sys/dev/misc/psm/psm.c
5324
static int mouse_id_proc1(KBDC kbdc, int res, int scale, int *status)
sys/dev/misc/psm/psm.c
5327
if (set_mouse_resolution(kbdc, res) != res)
sys/dev/misc/psm/psm.c
7080
int res, readcmd, retidx;
sys/dev/misc/psm/psm.c
7086
res = send_aux_command(kbdc, ELANTECH_CUSTOM_CMD) != PSM_ACK;
sys/dev/misc/psm/psm.c
7087
res |= send_aux_command(kbdc, readcmd) != PSM_ACK;
sys/dev/misc/psm/psm.c
7088
res |= send_aux_command(kbdc, ELANTECH_CUSTOM_CMD) != PSM_ACK;
sys/dev/misc/psm/psm.c
7089
res |= send_aux_command(kbdc, reg) != PSM_ACK;
sys/dev/misc/psm/psm.c
7090
res |= get_mouse_status(kbdc, resp, 0, 3) != 3;
sys/dev/misc/psm/psm.c
7092
if (res == 0)
sys/dev/misc/psm/psm.c
7095
return (res);
sys/dev/misc/psm/psm.c
7101
int res, writecmd;
sys/dev/misc/psm/psm.c
7105
res = send_aux_command(kbdc, ELANTECH_CUSTOM_CMD) != PSM_ACK;
sys/dev/misc/psm/psm.c
7106
res |= send_aux_command(kbdc, writecmd) != PSM_ACK;
sys/dev/misc/psm/psm.c
7107
res |= send_aux_command(kbdc, ELANTECH_CUSTOM_CMD) != PSM_ACK;
sys/dev/misc/psm/psm.c
7108
res |= send_aux_command(kbdc, reg) != PSM_ACK;
sys/dev/misc/psm/psm.c
7110
res |= send_aux_command(kbdc, ELANTECH_CUSTOM_CMD) != PSM_ACK;
sys/dev/misc/psm/psm.c
7111
res |= send_aux_command(kbdc, writecmd) != PSM_ACK;
sys/dev/misc/psm/psm.c
7113
res |= send_aux_command(kbdc, ELANTECH_CUSTOM_CMD) != PSM_ACK;
sys/dev/misc/psm/psm.c
7114
res |= send_aux_command(kbdc, val) != PSM_ACK;
sys/dev/misc/psm/psm.c
7115
res |= set_mouse_scaling(kbdc, 1) == 0;
sys/dev/misc/psm/psm.c
7117
return (res);
sys/dev/misc/psm/psm.c
7123
int res;
sys/dev/misc/psm/psm.c
7126
res = set_mouse_scaling(kbdc, 1) == 0;
sys/dev/misc/psm/psm.c
7127
res |= mouse_ext_command(kbdc, cmd) == 0;
sys/dev/misc/psm/psm.c
7129
res = send_aux_command(kbdc, ELANTECH_CUSTOM_CMD) != PSM_ACK;
sys/dev/misc/psm/psm.c
7130
res |= send_aux_command(kbdc, cmd) != PSM_ACK;
sys/dev/misc/psm/psm.c
7132
res |= get_mouse_status(kbdc, resp, 0, 3) != 3;
sys/dev/misc/psm/psm.c
7134
return (res);
sys/dev/misc/psm/psm.c
7140
int i, val, res, hwversion, reg10;
sys/dev/misc/psm/psm.c
7148
res = elantech_write_1(kbdc, hwversion, 0x10, reg10);
sys/dev/misc/psm/psm.c
7149
if (res)
sys/dev/misc/psm/psm.c
7151
res = elantech_write_1(kbdc, hwversion, 0x11, 0x8A);
sys/dev/misc/psm/psm.c
7155
res = elantech_write_1(kbdc, hwversion, 0x10, reg10);
sys/dev/misc/psm/psm.c
7158
res = elantech_write_1(kbdc, hwversion, 0x07, 0x01);
sys/dev/misc/psm/psm.c
7161
res = 1;
sys/dev/misc/psm/psm.c
7165
if (res == 0 && reg10 >= 0) {
sys/dev/misc/psm/psm.c
7172
res = 1;
sys/dev/misc/psm/psm.c
7175
if (res)
sys/dev/misc/psm/psm.c
7178
return (res);
sys/dev/misc/psm/psm.c
7586
struct resource *res;
sys/dev/misc/psm/psm.c
7615
res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_SHAREABLE);
sys/dev/misc/psm/psm.c
7616
bus_release_resource(dev, SYS_RES_IRQ, rid, res);
sys/dev/misc/psm/psm.c
7622
return ((res == NULL) ? ENXIO : 0);
sys/dev/misc/psm/psm.c
793
int res;
sys/dev/misc/psm/psm.c
795
res = send_aux_command(kbdc, PSMC_ENABLE_DEV);
sys/dev/misc/psm/psm.c
796
VLOG(2, (LOG_DEBUG, "psm: ENABLE_DEV return code:%04x\n", res));
sys/dev/misc/psm/psm.c
798
return (res == PSM_ACK);
sys/dev/misc/psm/psm.c
805
int res;
sys/dev/misc/psm/psm.c
807
res = send_aux_command(kbdc, PSMC_DISABLE_DEV);
sys/dev/misc/psm/psm.c
808
VLOG(2, (LOG_DEBUG, "psm: DISABLE_DEV return code:%04x\n", res));
sys/dev/misc/psm/psm.c
810
return (res == PSM_ACK);
sys/dev/misc/psm/psm.c
818
int res;
sys/dev/misc/psm/psm.c
831
res = send_aux_command(kbdc, cmd);
sys/dev/misc/psm/psm.c
833
(flag == 1) ? "DATA" : "STATUS", res));
sys/dev/misc/psm/psm.c
834
if (res != PSM_ACK)
sys/dev/misc/psm/psm.c
855
int res;
sys/dev/misc/psm/psm.c
859
res = send_aux_command(kbdc, PSMC_SEND_DEV_ID);
sys/dev/misc/psm/psm.c
860
VLOG(2, (LOG_DEBUG, "psm: SEND_DEV_ID return code:%04x\n", res));
sys/dev/misc/psm/psm.c
861
if (res != PSM_ACK)
sys/dev/misc/psm/psm.c
877
int res;
sys/dev/misc/psm/psm.c
879
res = send_aux_command_and_data(kbdc, PSMC_SET_SAMPLING_RATE, rate);
sys/dev/misc/psm/psm.c
880
VLOG(2, (LOG_DEBUG, "psm: SET_SAMPLING_RATE (%d) %04x\n", rate, res));
sys/dev/misc/psm/psm.c
882
return ((res == PSM_ACK) ? rate : -1);
sys/dev/misc/psm/psm.c
889
int res;
sys/dev/misc/psm/psm.c
900
res = send_aux_command(kbdc, scale);
sys/dev/misc/psm/psm.c
902
(scale == PSMC_SET_SCALING21) ? "21" : "11", res));
sys/dev/misc/psm/psm.c
904
return (res == PSM_ACK);
sys/dev/misc/psm/psm.c
912
int res;
sys/dev/misc/psm/psm.c
914
res = send_aux_command_and_data(kbdc, PSMC_SET_RESOLUTION, val);
sys/dev/misc/psm/psm.c
915
VLOG(2, (LOG_DEBUG, "psm: SET_RESOLUTION (%d) %04x\n", val, res));
sys/dev/misc/psm/psm.c
917
return ((res == PSM_ACK) ? val : -1);
sys/dev/misc/psm/psm.c
928
int res;
sys/dev/misc/psm/psm.c
930
res = send_aux_command(kbdc, PSMC_SET_STREAM_MODE);
sys/dev/misc/psm/psm.c
931
VLOG(2, (LOG_DEBUG, "psm: SET_STREAM_MODE return code:%04x\n", res));
sys/dev/misc/psm/psm.c
933
return (res == PSM_ACK);
sys/dev/misc/puc/puc.c
109
struct resource *res;
sys/dev/misc/puc/puc.c
174
puc_probe_ilr(struct puc_softc *sc, struct resource *res)
sys/dev/misc/puc/puc.c
181
sc->ilr_st = rman_get_bustag(res);
sys/dev/misc/puc/puc.c
182
sc->ilr_sh = rman_get_bushandle(res);
sys/dev/misc/puc/puc.c
210
struct resource *res;
sys/dev/misc/puc/puc.c
229
res = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, 0, ~0, 1,
sys/dev/misc/puc/puc.c
231
if (!res)
sys/dev/misc/puc/puc.c
234
sc->irqres = res;
sys/dev/misc/puc/puc.c
236
irq_setup = BUS_SETUP_INTR(device_get_parent(dev), dev, res,
sys/dev/misc/puc/puc.c
249
if (sc->sc_bar_mappings[bidx].res != NULL)
sys/dev/misc/puc/puc.c
251
res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid,
sys/dev/misc/puc/puc.c
253
if (res == NULL) {
sys/dev/misc/puc/puc.c
257
sc->sc_bar_mappings[bidx].res = res;
sys/dev/misc/puc/puc.c
260
sc->ilr_enabled = puc_probe_ilr(sc, res);
sys/dev/misc/puc/puc.c
268
(u_int)rman_get_bustag(res), (u_int)rman_get_start(res),
sys/dev/misc/puc/puc.c
269
(u_int)rman_get_end(res));
sys/dev/misc/puc/puc.c
278
if (sc->sc_bar_mappings[bidx].res == NULL)
sys/dev/misc/puc/puc.c
298
rle->res = sc->irqres;
sys/dev/misc/puc/puc.c
301
res = sc->sc_bar_mappings[bidx].res;
sys/dev/misc/puc/puc.c
303
rman_get_start(res) + sc->sc_desc->ports[i].offset,
sys/dev/misc/puc/puc.c
304
rman_get_end(res) + sc->sc_desc->ports[i].offset + 8 - 1,
sys/dev/misc/puc/puc.c
309
rle->res = sc->sc_bar_mappings[bidx].res;
sys/dev/misc/puc/puc.c
311
rle->res = kmalloc(sizeof(struct resource), M_DEVBUF,
sys/dev/misc/puc/puc.c
314
rle->res->r_start = rman_get_start(res) +
sys/dev/misc/puc/puc.c
316
rle->res->r_end = rle->res->r_start + 8 - 1;
sys/dev/misc/puc/puc.c
317
rle->res->r_bustag = rman_get_bustag(res);
sys/dev/misc/puc/puc.c
318
bus_space_subregion(rle->res->r_bustag,
sys/dev/misc/puc/puc.c
319
rman_get_bushandle(res),
sys/dev/misc/puc/puc.c
321
&rle->res->r_bushandle);
sys/dev/misc/puc/puc.c
330
bus_space_unmap(rman_get_bustag(rle->res),
sys/dev/misc/puc/puc.c
331
rman_get_bushandle(rle->res),
sys/dev/misc/puc/puc.c
333
kfree(rle->res, M_DEVBUF);
sys/dev/misc/puc/puc.c
353
bus_space_unmap(rman_get_bustag(rle->res),
sys/dev/misc/puc/puc.c
354
rman_get_bushandle(rle->res),
sys/dev/misc/puc/puc.c
356
kfree(rle->res, M_DEVBUF);
sys/dev/misc/puc/puc.c
446
puc_config_win877(sc->sc_bar_mappings[0].res);
sys/dev/misc/puc/puc.c
488
puc_config_win877(struct resource *res)
sys/dev/misc/puc/puc.c
495
bst = rman_get_bustag(res);
sys/dev/misc/puc/puc.c
496
bsh = rman_get_bushandle(res);
sys/dev/misc/puc/puc.c
630
retval = rle->res;
sys/dev/misc/puc/puc.c
639
struct resource *res)
sys/dev/netif/bwn/siba/siba_core.c
1003
updown[i].res);
sys/dev/netif/bwn/siba/siba_core.c
1011
depend[i].res);
sys/dev/netif/bwn/siba/sibavar.h
210
uint8_t res;
sys/dev/netif/bwn/siba/sibavar.h
219
uint8_t res;
sys/dev/netif/de/if_de.c
4162
struct resource *res;
sys/dev/netif/de/if_de.c
4240
res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE);
sys/dev/netif/de/if_de.c
4243
res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE);
sys/dev/netif/de/if_de.c
4245
if (!res)
sys/dev/netif/de/if_de.c
4247
sc->tulip_csrs_bst = rman_get_bustag(res);
sys/dev/netif/de/if_de.c
4248
sc->tulip_csrs_bsh = rman_get_bushandle(res);
sys/dev/netif/de/if_de.c
4300
res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid,
sys/dev/netif/de/if_de.c
4302
if (res == NULL || bus_setup_intr(dev, res, INTR_MPSAFE,
sys/dev/netif/de/if_de.c
4312
ifq_set_cpuid(&sc->arpcom.ac_if.if_snd, rman_get_cpuid(res));
sys/dev/netif/iwn/if_iwn.c
3259
int ackfailcnt = 0, i, lastidx, qid, *res, shift;
sys/dev/netif/iwn/if_iwn.c
3272
res = NULL;
sys/dev/netif/iwn/if_iwn.c
3275
res = tap->txa_private;
sys/dev/netif/iwn/if_iwn.c
3299
if (txq->queued == 0 && res != NULL) {
sys/dev/netif/iwn/if_iwn.c
3304
kfree(res, M_DEVBUF);
sys/dev/netif/iwn/if_iwn.c
3755
int bit, i, lastidx, *res, seqno, shift, start;
sys/dev/netif/iwn/if_iwn.c
3842
res = NULL;
sys/dev/netif/iwn/if_iwn.c
3845
res = tap->txa_private;
sys/dev/netif/iwn/if_iwn.c
3870
if (ring->queued == 0 && res != NULL) {
sys/dev/netif/iwn/if_iwn.c
3875
kfree(res, M_DEVBUF);
sys/dev/netif/mn/if_mn.c
1285
struct resource *res;
sys/dev/netif/mn/if_mn.c
1302
res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, RF_ACTIVE);
sys/dev/netif/mn/if_mn.c
1303
if (res == NULL) {
sys/dev/netif/mn/if_mn.c
1307
sc->m0v = rman_get_virtual(res);
sys/dev/netif/mn/if_mn.c
1308
sc->m0p = rman_get_start(res);
sys/dev/netif/mn/if_mn.c
1311
res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, RF_ACTIVE);
sys/dev/netif/mn/if_mn.c
1312
if (res == NULL) {
sys/dev/netif/mn/if_mn.c
1316
sc->m1v = rman_get_virtual(res);
sys/dev/netif/mn/if_mn.c
1317
sc->m1p = rman_get_start(res);
sys/dev/netif/tx/if_tx.c
219
sc->res = bus_alloc_resource_any(dev, EPIC_RES, &rid, RF_ACTIVE);
sys/dev/netif/tx/if_tx.c
221
if (sc->res == NULL) {
sys/dev/netif/tx/if_tx.c
227
sc->sc_st = rman_get_bustag(sc->res);
sys/dev/netif/tx/if_tx.c
228
sc->sc_sh = rman_get_bushandle(sc->res);
sys/dev/netif/tx/if_tx.c
315
if (sc->res)
sys/dev/netif/tx/if_tx.c
316
bus_release_resource(dev, EPIC_RES, EPIC_RID, sc->res);
sys/dev/netif/tx/if_txvar.h
63
struct resource *res;
sys/dev/netif/wpi/if_wpi.c
1360
#define WPI_CHK(res) do { \
sys/dev/netif/wpi/if_wpi.c
1361
if ((error = res) != 0) \
sys/dev/netif/xl/if_xl.c
1160
int error = 0, rid, res;
sys/dev/netif/xl/if_xl.c
1254
res = SYS_RES_MEMORY;
sys/dev/netif/xl/if_xl.c
1257
sc->xl_res = bus_alloc_resource_any(dev, res, &rid, RF_ACTIVE);
sys/dev/netif/xl/if_xl.c
1266
res = SYS_RES_IOPORT;
sys/dev/netif/xl/if_xl.c
1267
sc->xl_res = bus_alloc_resource_any(dev, res, &rid, RF_ACTIVE);
sys/dev/netif/xl/if_xl.c
1557
int rid, res;
sys/dev/netif/xl/if_xl.c
1564
res = SYS_RES_MEMORY;
sys/dev/netif/xl/if_xl.c
1567
res = SYS_RES_IOPORT;
sys/dev/netif/xl/if_xl.c
1591
bus_release_resource(dev, res, rid, sc->xl_res);
sys/dev/pccard/cardbus/cardbus.c
301
if (rle->res) {
sys/dev/pccard/cardbus/cardbus.c
303
cbdev, rle->type, rle->rid, rle->res);
sys/dev/pccard/cardbus/cardbus.c
304
rle->res = NULL;
sys/dev/pccard/cardbus/cardbus_cis.c
101
static int cardbus_read_tuple_mem(device_t cbdev, struct resource *res,
sys/dev/pccard/cardbus/cardbus_cis.c
105
struct resource *res, uint32_t start, uint32_t *off,
sys/dev/pccard/cardbus/cardbus_cis.c
108
int rid, struct resource *res);
sys/dev/pccard/cardbus/cardbus_cis.c
441
cardbus_read_tuple_mem(device_t cbdev, struct resource *res, uint32_t start,
sys/dev/pccard/cardbus/cardbus_cis.c
448
bt = rman_get_bustag(res);
sys/dev/pccard/cardbus/cardbus_cis.c
449
bh = rman_get_bushandle(res);
sys/dev/pccard/cardbus/cardbus_cis.c
460
cardbus_read_tuple(device_t cbdev, device_t child, struct resource *res,
sys/dev/pccard/cardbus/cardbus_cis.c
464
if (res == (struct resource*)~0UL) {
sys/dev/pccard/cardbus/cardbus_cis.c
468
return (cardbus_read_tuple_mem(cbdev, res, start, off,
sys/dev/pccard/cardbus/cardbus_cis.c
475
struct resource *res)
sys/dev/pccard/cardbus/cardbus_cis.c
477
if (res != (struct resource*)~0UL) {
sys/dev/pccard/cardbus/cardbus_cis.c
478
bus_release_resource(cbdev, SYS_RES_MEMORY, rid, res);
sys/dev/pccard/cardbus/cardbus_cis.c
490
struct resource *res;
sys/dev/pccard/cardbus/cardbus_cis.c
538
res = bus_alloc_resource(cbdev, SYS_RES_MEMORY, rid, 0, ~0, size,
sys/dev/pccard/cardbus/cardbus_cis.c
540
if (res == NULL) {
sys/dev/pccard/cardbus/cardbus_cis.c
546
rman_get_start(res) | ((*rid == CARDBUS_ROM_REG)?
sys/dev/pccard/cardbus/cardbus_cis.c
562
bt = rman_get_bustag(res);
sys/dev/pccard/cardbus/cardbus_cis.c
563
bh = rman_get_bushandle(res);
sys/dev/pccard/cardbus/cardbus_cis.c
574
*rid, res);
sys/dev/pccard/cardbus/cardbus_cis.c
611
*rid, res);
sys/dev/pccard/cardbus/cardbus_cis.c
622
return (res);
sys/dev/pccard/cardbus/cardbus_cis.c
653
struct resource *res;
sys/dev/pccard/cardbus/cardbus_cis.c
664
res = cardbus_read_tuple_init(cbdev, child, &start, &rid);
sys/dev/pccard/cardbus/cardbus_cis.c
665
if (res == NULL) {
sys/dev/pccard/cardbus/cardbus_cis.c
671
if (0 != cardbus_read_tuple(cbdev, child, res, start, &off,
sys/dev/pccard/cardbus/cardbus_cis.c
674
cardbus_read_tuple_finish(cbdev, child, rid, res);
sys/dev/pccard/cardbus/cardbus_cis.c
681
cardbus_read_tuple_finish(cbdev, child, rid, res);
sys/dev/pccard/cardbus/cardbus_cis.c
689
cardbus_read_tuple_finish(cbdev, child, rid, res);
sys/dev/pccard/cardbus/cardbus_cis.c
693
cardbus_read_tuple_finish(cbdev, child, rid, res);
sys/dev/pccard/exca/exca.c
246
exca_mem_map(struct exca_softc *sc, int kind, struct resource *res)
sys/dev/pccard/exca/exca.c
258
if (((rman_get_start(res) >> EXCA_MEMREG_WIN_SHIFT) & 0xff) != 0 &&
sys/dev/pccard/exca/exca.c
265
sc->mem[win].memt = rman_get_bustag(res);
sys/dev/pccard/exca/exca.c
266
sc->mem[win].memh = rman_get_bushandle(res);
sys/dev/pccard/exca/exca.c
267
sc->mem[win].addr = rman_get_start(res);
sys/dev/pccard/exca/exca.c
268
sc->mem[win].size = rman_get_end(res) - sc->mem[win].addr + 1;
sys/dev/pccard/exca/exca.c
306
exca_mem_findmap(struct exca_softc *sc, struct resource *res)
sys/dev/pccard/exca/exca.c
311
if (sc->mem[win].memt == rman_get_bustag(res) &&
sys/dev/pccard/exca/exca.c
312
sc->mem[win].addr == rman_get_start(res) &&
sys/dev/pccard/exca/exca.c
313
sc->mem[win].size == rman_get_size(res))
sys/dev/pccard/exca/exca.c
329
exca_mem_set_flags(struct exca_softc *sc, struct resource *res, uint32_t flags)
sys/dev/pccard/exca/exca.c
333
win = exca_mem_findmap(sc, res);
sys/dev/pccard/exca/exca.c
350
exca_mem_unmap_res(struct exca_softc *sc, struct resource *res)
sys/dev/pccard/exca/exca.c
354
win = exca_mem_findmap(sc, res);
sys/dev/pccard/exca/exca.c
368
exca_mem_set_offset(struct exca_softc *sc, struct resource *res,
sys/dev/pccard/exca/exca.c
374
win = exca_mem_findmap(sc, res);
sys/dev/pccard/exca/exca.c
510
exca_io_findmap(struct exca_softc *sc, struct resource *res)
sys/dev/pccard/exca/exca.c
515
if (sc->io[win].iot == rman_get_bustag(res) &&
sys/dev/pccard/exca/exca.c
516
sc->io[win].addr == rman_get_start(res) &&
sys/dev/pccard/exca/exca.c
517
sc->io[win].size == rman_get_size(res))
sys/dev/pccard/exca/exca.c
525
exca_io_unmap_res(struct exca_softc *sc, struct resource *res)
sys/dev/pccard/exca/exca.c
529
win = exca_io_findmap(sc, res);
sys/dev/pccard/exca/exca.c
781
int rid, struct resource *res)
sys/dev/pccard/exca/exca.c
784
if (!(rman_get_flags(res) & RF_ACTIVE)) { /* not already activated */
sys/dev/pccard/exca/exca.c
787
err = exca_io_map(exca, PCCARD_WIDTH_AUTO, res);
sys/dev/pccard/exca/exca.c
790
err = exca_mem_map(exca, PCCARD_A_MEM_COM, res);
sys/dev/pccard/exca/exca.c
801
type, rid, res));
sys/dev/pccard/exca/exca.c
806
int rid, struct resource *res)
sys/dev/pccard/exca/exca.c
808
if (rman_get_flags(res) & RF_ACTIVE) { /* if activated */
sys/dev/pccard/exca/exca.c
811
if (exca_io_unmap_res(exca, res))
sys/dev/pccard/exca/exca.c
815
if (exca_mem_unmap_res(exca, res))
sys/dev/pccard/exca/exca.c
821
type, rid, res));
sys/dev/pccard/exca/exca.c
829
struct resource *res = NULL;
sys/dev/pccard/exca/exca.c
859
res = BUS_ALLOC_RESOURCE(up, child, type, rid,
sys/dev/pccard/exca/exca.c
861
if (res == NULL)
sys/dev/pccard/exca/exca.c
863
cbb_insert_res(sc, res, type, *rid);
sys/dev/pccard/exca/exca.c
865
if (bus_activate_resource(child, type, *rid, res) != 0) {
sys/dev/pccard/exca/exca.c
866
bus_release_resource(child, type, *rid, res);
sys/dev/pccard/exca/exca.c
871
return (res);
sys/dev/pccard/exca/exca.c
876
int rid, struct resource *res)
sys/dev/pccard/exca/exca.c
880
if (rman_get_flags(res) & RF_ACTIVE) {
sys/dev/pccard/exca/exca.c
881
error = bus_deactivate_resource(child, type, rid, res);
sys/dev/pccard/exca/exca.c
885
cbb_remove_res(sc, res);
sys/dev/pccard/exca/exca.c
887
type, rid, res));
sys/dev/pccard/exca/excavar.h
110
int exca_io_unmap_res(struct exca_softc *sc, struct resource *res);
sys/dev/pccard/exca/excavar.h
112
int exca_mem_map(struct exca_softc *sc, int kind, struct resource *res);
sys/dev/pccard/exca/excavar.h
113
int exca_mem_set_flags(struct exca_softc *sc, struct resource *res,
sys/dev/pccard/exca/excavar.h
115
int exca_mem_set_offset(struct exca_softc *sc, struct resource *res,
sys/dev/pccard/exca/excavar.h
117
int exca_mem_unmap_res(struct exca_softc *sc, struct resource *res);
sys/dev/pccard/exca/excavar.h
125
int rid, struct resource *res);
sys/dev/pccard/exca/excavar.h
127
int rid, struct resource *res);
sys/dev/pccard/pccbb/pccbb.c
1028
else if (rle->res == NULL) {
sys/dev/pccard/pccbb/pccbb.c
1031
rle->type, rman_get_start(rle->res));
sys/dev/pccard/pccbb/pccbb.c
1032
} else if (!(rman_get_flags(rle->res) & RF_ACTIVE)) {
sys/dev/pccard/pccbb/pccbb.c
1035
starts[0] = rman_get_start(rle->res);
sys/dev/pccard/pccbb/pccbb.c
1036
ends[0] = rman_get_end(rle->res);
sys/dev/pccard/pccbb/pccbb.c
1038
rman_get_flags(rle->res) & RF_PREFETCHABLE;
sys/dev/pccard/pccbb/pccbb.c
1039
} else if (rman_get_end(rle->res) > ends[0] &&
sys/dev/pccard/pccbb/pccbb.c
1040
rman_get_start(rle->res) - ends[0] <
sys/dev/pccard/pccbb/pccbb.c
1042
(rman_get_flags(rle->res) & RF_PREFETCHABLE)) {
sys/dev/pccard/pccbb/pccbb.c
1043
ends[0] = rman_get_end(rle->res);
sys/dev/pccard/pccbb/pccbb.c
1044
} else if (rman_get_start(rle->res) < starts[0] &&
sys/dev/pccard/pccbb/pccbb.c
1045
starts[0] - rman_get_end(rle->res) <
sys/dev/pccard/pccbb/pccbb.c
1047
(rman_get_flags(rle->res) & RF_PREFETCHABLE)) {
sys/dev/pccard/pccbb/pccbb.c
1048
starts[0] = rman_get_start(rle->res);
sys/dev/pccard/pccbb/pccbb.c
1050
starts[1] = rman_get_start(rle->res);
sys/dev/pccard/pccbb/pccbb.c
1051
ends[1] = rman_get_end(rle->res);
sys/dev/pccard/pccbb/pccbb.c
1053
rman_get_flags(rle->res) & RF_PREFETCHABLE;
sys/dev/pccard/pccbb/pccbb.c
1054
} else if (rman_get_end(rle->res) > ends[1] &&
sys/dev/pccard/pccbb/pccbb.c
1055
rman_get_start(rle->res) - ends[1] <
sys/dev/pccard/pccbb/pccbb.c
1057
(rman_get_flags(rle->res) & RF_PREFETCHABLE)) {
sys/dev/pccard/pccbb/pccbb.c
1058
ends[1] = rman_get_end(rle->res);
sys/dev/pccard/pccbb/pccbb.c
1059
} else if (rman_get_start(rle->res) < starts[1] &&
sys/dev/pccard/pccbb/pccbb.c
1060
starts[1] - rman_get_end(rle->res) <
sys/dev/pccard/pccbb/pccbb.c
1062
(rman_get_flags(rle->res) & RF_PREFETCHABLE)) {
sys/dev/pccard/pccbb/pccbb.c
1063
starts[1] = rman_get_start(rle->res);
sys/dev/pccard/pccbb/pccbb.c
1069
if (rman_get_start(rle->res) > ends[0])
sys/dev/pccard/pccbb/pccbb.c
1070
diffs[0] = rman_get_start(rle->res) - ends[0];
sys/dev/pccard/pccbb/pccbb.c
1071
else if (rman_get_end(rle->res) < starts[0])
sys/dev/pccard/pccbb/pccbb.c
1072
diffs[0] = starts[0] - rman_get_end(rle->res);
sys/dev/pccard/pccbb/pccbb.c
1073
if (rman_get_start(rle->res) > ends[1])
sys/dev/pccard/pccbb/pccbb.c
1074
diffs[1] = rman_get_start(rle->res) - ends[1];
sys/dev/pccard/pccbb/pccbb.c
1075
else if (rman_get_end(rle->res) < starts[1])
sys/dev/pccard/pccbb/pccbb.c
1076
diffs[1] = starts[1] - rman_get_end(rle->res);
sys/dev/pccard/pccbb/pccbb.c
1079
if (rman_get_start(rle->res) > ends[win])
sys/dev/pccard/pccbb/pccbb.c
1080
ends[win] = rman_get_end(rle->res);
sys/dev/pccard/pccbb/pccbb.c
1081
else if (rman_get_end(rle->res) < starts[win])
sys/dev/pccard/pccbb/pccbb.c
1082
starts[win] = rman_get_start(rle->res);
sys/dev/pccard/pccbb/pccbb.c
1083
if (!(rman_get_flags(rle->res) & RF_PREFETCHABLE))
sys/dev/pccard/pccbb/pccbb.c
1114
int rid, struct resource *res)
sys/dev/pccard/pccbb/pccbb.c
1119
type, rid, res);
sys/dev/pccard/pccbb/pccbb.c
1128
int rid, struct resource *res)
sys/dev/pccard/pccbb/pccbb.c
1133
type, rid, res);
sys/dev/pccard/pccbb/pccbb.c
1146
struct resource *res;
sys/dev/pccard/pccbb/pccbb.c
1183
res = BUS_ALLOC_RESOURCE(device_get_parent(brdev), child, type, rid,
sys/dev/pccard/pccbb/pccbb.c
1185
if (res == NULL) {
sys/dev/pccard/pccbb/pccbb.c
1189
cbb_insert_res(sc, res, type, *rid);
sys/dev/pccard/pccbb/pccbb.c
1191
if (bus_activate_resource(child, type, *rid, res) != 0) {
sys/dev/pccard/pccbb/pccbb.c
1192
bus_release_resource(child, type, *rid, res);
sys/dev/pccard/pccbb/pccbb.c
1196
return (res);
sys/dev/pccard/pccbb/pccbb.c
1201
int rid, struct resource *res)
sys/dev/pccard/pccbb/pccbb.c
1206
if (rman_get_flags(res) & RF_ACTIVE) {
sys/dev/pccard/pccbb/pccbb.c
1207
error = bus_deactivate_resource(child, type, rid, res);
sys/dev/pccard/pccbb/pccbb.c
1211
cbb_remove_res(sc, res);
sys/dev/pccard/pccbb/pccbb.c
1213
type, rid, res));
sys/dev/pccard/pccbb/pccbb.c
1283
struct resource *res)
sys/dev/pccard/pccbb/pccbb.c
1286
return (exca_activate_resource(&sc->exca[0], child, type, rid, res));
sys/dev/pccard/pccbb/pccbb.c
1291
int rid, struct resource *res)
sys/dev/pccard/pccbb/pccbb.c
1294
return (exca_deactivate_resource(&sc->exca[0], child, type, rid, res));
sys/dev/pccard/pccbb/pccbb.c
1301
struct resource *res = NULL;
sys/dev/pccard/pccbb/pccbb.c
1339
res = BUS_ALLOC_RESOURCE(device_get_parent(brdev), child, type, rid,
sys/dev/pccard/pccbb/pccbb.c
1341
if (res == NULL)
sys/dev/pccard/pccbb/pccbb.c
1343
cbb_insert_res(sc, res, type, *rid);
sys/dev/pccard/pccbb/pccbb.c
1345
if (bus_activate_resource(child, type, *rid, res) != 0) {
sys/dev/pccard/pccbb/pccbb.c
1346
bus_release_resource(child, type, *rid, res);
sys/dev/pccard/pccbb/pccbb.c
1351
return (res);
sys/dev/pccard/pccbb/pccbb.c
1356
int rid, struct resource *res)
sys/dev/pccard/pccbb/pccbb.c
1361
if (rman_get_flags(res) & RF_ACTIVE) {
sys/dev/pccard/pccbb/pccbb.c
1362
error = bus_deactivate_resource(child, type, rid, res);
sys/dev/pccard/pccbb/pccbb.c
1366
cbb_remove_res(sc, res);
sys/dev/pccard/pccbb/pccbb.c
1368
type, rid, res));
sys/dev/pccard/pccbb/pccbb.c
1380
struct resource *res;
sys/dev/pccard/pccbb/pccbb.c
1384
res = cbb_find_res(sc, type, rid);
sys/dev/pccard/pccbb/pccbb.c
1385
if (res == NULL) {
sys/dev/pccard/pccbb/pccbb.c
1390
return (exca_mem_set_flags(&sc->exca[0], res, flags));
sys/dev/pccard/pccbb/pccbb.c
1398
struct resource *res;
sys/dev/pccard/pccbb/pccbb.c
1400
res = cbb_find_res(sc, SYS_RES_MEMORY, rid);
sys/dev/pccard/pccbb/pccbb.c
1401
if (res == NULL) {
sys/dev/pccard/pccbb/pccbb.c
1406
return (exca_mem_set_offset(&sc->exca[0], res, cardaddr, deltap));
sys/dev/pccard/pccbb/pccbb.c
167
int type, int rid, struct resource *res);
sys/dev/pccard/pccbb/pccbb.c
169
device_t child, int type, int rid, struct resource *res);
sys/dev/pccard/pccbb/pccbb.c
174
int type, int rid, struct resource *res);
sys/dev/pccard/pccbb/pccbb.c
182
cbb_remove_res(struct cbb_softc *sc, struct resource *res)
sys/dev/pccard/pccbb/pccbb.c
187
if (rle->res == res) {
sys/dev/pccard/pccbb/pccbb.c
202
return (rle->res);
sys/dev/pccard/pccbb/pccbb.c
207
cbb_insert_res(struct cbb_softc *sc, struct resource *res, int type,
sys/dev/pccard/pccbb/pccbb.c
219
rle->res = res;
sys/dev/pccard/pccbb/pccbb.c
234
rman_get_start(rle->res));
sys/dev/pccard/pccbb/pccbb_isa.c
100
struct resource *res;
sys/dev/pccard/pccbb/pccbb_isa.c
106
res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE);
sys/dev/pccard/pccbb/pccbb_isa.c
107
if (res == NULL) {
sys/dev/pccard/pccbb/pccbb_isa.c
116
res = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, i, i,
sys/dev/pccard/pccbb/pccbb_isa.c
118
if (res != NULL)
sys/dev/pccard/pccbb/pccbb_isa.c
121
if (res == NULL)
sys/dev/pccard/pccbb/pccbb_isa.c
123
bus_release_resource(dev, SYS_RES_IRQ, rid, res);
sys/dev/pccard/pccbb/pccbb_isa.c
126
bus_release_resource(dev, SYS_RES_IRQ, rid, res);
sys/dev/pccard/pccbb/pccbb_isa.c
128
if (res == NULL) {
sys/dev/pccard/pccbb/pccbbvar.h
45
struct resource *res;
sys/dev/powermng/alpm/alpm.c
121
struct resource *res;
sys/dev/powermng/alpm/alpm.c
207
alpm->res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid,
sys/dev/powermng/alpm/alpm.c
210
if (alpm->res == NULL) {
sys/dev/powermng/alpm/alpm.c
214
alpm->smbst = rman_get_bustag(alpm->res);
sys/dev/powermng/alpm/alpm.c
215
alpm->smbsh = rman_get_bushandle(alpm->res);
sys/dev/powermng/alpm/alpm.c
240
if (alpm->res)
sys/dev/powermng/alpm/alpm.c
241
bus_release_resource(dev, SYS_RES_IOPORT, SMBBA, alpm->res);
sys/dev/powermng/amdpm/amdpm.c
122
struct resource *res;
sys/dev/powermng/amdpm/amdpm.c
132
(bus_read_1(amdpm->res, register))
sys/dev/powermng/amdpm/amdpm.c
134
(bus_write_1(amdpm->res, register, value))
sys/dev/powermng/amdpm/amdpm.c
136
(bus_read_2(amdpm->res, register))
sys/dev/powermng/amdpm/amdpm.c
138
(bus_write_2(amdpm->res, register, value))
sys/dev/powermng/amdpm/amdpm.c
203
amdpm_sc->res = bus_alloc_resource_any(dev, SYS_RES_IOPORT,
sys/dev/powermng/amdpm/amdpm.c
206
if (amdpm_sc->res == NULL) {
sys/dev/powermng/amdpm/amdpm.c
236
if (amdpm_sc->res)
sys/dev/powermng/amdpm/amdpm.c
238
amdpm_sc->res);
sys/dev/powermng/corepower/corepower.c
400
uint64_t a, res;
sys/dev/powermng/corepower/corepower.c
404
res = (0x100000000ULL - sens->energy) + a;
sys/dev/powermng/corepower/corepower.c
406
res = a - sens->energy;
sys/dev/powermng/corepower/corepower.c
409
sens->sensor.value = corepower_energy_to_uwatts(sc, res, 1);
sys/dev/powermng/intpm/intpm.c
125
amd_pmio_read(struct resource *res, uint8_t reg)
sys/dev/powermng/intpm/intpm.c
127
bus_write_1(res, 0, reg); /* Index */
sys/dev/powermng/intpm/intpm.c
128
return (bus_read_1(res, 1)); /* Data */
sys/dev/powermng/intpm/intpm.c
136
struct resource *res;
sys/dev/powermng/intpm/intpm.c
152
res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid,
sys/dev/powermng/intpm/intpm.c
154
if (res == NULL) {
sys/dev/powermng/intpm/intpm.c
164
addr = amd_pmio_read(res, AMDSB8_PM_SMBUS_EN + 1);
sys/dev/powermng/intpm/intpm.c
166
addr |= amd_pmio_read(res, AMDSB8_PM_SMBUS_EN);
sys/dev/powermng/intpm/intpm.c
170
addr = amd_pmio_read(res, AMDFCH41_PM_DECODE_EN0);
sys/dev/powermng/intpm/intpm.c
172
addr = amd_pmio_read(res, AMDFCH41_PM_DECODE_EN1);
sys/dev/powermng/intpm/intpm.c
176
bus_release_resource(dev, SYS_RES_IOPORT, rid, res);
sys/dev/raid/hpt27xx/hpt27xx_os_bsd.c
113
hba->pcibar[index].res = bus_alloc_resource(hba->pcidev,
sys/dev/raid/hpt27xx/hpt27xx_os_bsd.c
118
hba->pcibar[index].res = bus_alloc_resource(hba->pcidev,
sys/dev/raid/hpt27xx/hpt27xx_os_bsd.c
120
hba->pcibar[index].base = (char *)rman_get_virtual(hba->pcibar[index].res) + offset;
sys/dev/raid/hpt27xx/hpt27xx_os_bsd.c
134
hba->pcibar[index].rid, hba->pcibar[index].res);
sys/dev/raid/hpt27xx/os_bsd.h
138
struct resource *res;
sys/dev/raid/hptrr/hptrr_os_bsd.c
101
hba->pcibar[index].res = bus_alloc_resource_any(hba->pcidev,
sys/dev/raid/hptrr/hptrr_os_bsd.c
104
hba->pcibar[index].base = (char *)rman_get_virtual(hba->pcibar[index].res) + offset;
sys/dev/raid/hptrr/hptrr_os_bsd.c
116
hba->pcibar[index].rid, hba->pcibar[index].res);
sys/dev/raid/hptrr/os_bsd.h
139
struct resource *res;
sys/dev/raid/mfi/mfi.c
2891
int i, res;
sys/dev/raid/mfi/mfi.c
3008
res = mfi_stp_cmd(sc, cm, arg);
sys/dev/raid/mfi/mfi.c
3009
if (res != 0)
sys/dev/raid/mpr/mpr_sas.c
1766
int i, res;
sys/dev/raid/mpr/mpr_sas.c
1805
res = 1;
sys/dev/raid/mpr/mpr_sas.c
1813
res = -EINVAL;
sys/dev/raid/twa/tw_cl_fwif.h
395
#define BUILD_RES__OPCODE(res, opcode) \
sys/dev/raid/twa/tw_cl_fwif.h
396
((res << 5) & 0xE0) | (opcode & 0x1F) /* 3:5 */
sys/dev/raid/twa/tw_cl_fwif.h
401
#define BUILD_RES__SEVERITY(res, severity) \
sys/dev/raid/twa/tw_cl_fwif.h
402
((res << 3) & 0xF8) | (severity & 0x7) /* 5:3 */
sys/dev/raid/tws/tws_hdm.h
185
#define BUILD_RES__OPCODE(res, opcode) \
sys/dev/raid/tws/tws_hdm.h
186
((res << 5) & 0xE0) | (opcode & 0x1F) /* 3:5 */
sys/dev/sound/pci/hda/hdaa.c
1001
config = hdaa_widget_pin_patch(config, res);
sys/dev/sound/pci/hda/hdaa.c
1359
const char *res = NULL;
sys/dev/sound/pci/hda/hdaa.c
1372
device_get_unit(devinfo->dev), "config", &res) == 0) {
sys/dev/sound/pci/hda/hdaa.c
1373
if (res != NULL && strlen(res) > 0)
sys/dev/sound/pci/hda/hdaa.c
1374
hdaa_config_fetch(res, &quirks_on, &quirks_off);
sys/dev/sound/pci/hda/hdaa.c
1388
device_get_unit(devinfo->dev), "gpio_config", &res) == 0) {
sys/dev/sound/pci/hda/hdaa.c
1389
if (strncmp(res, "0x", 2) == 0) {
sys/dev/sound/pci/hda/hdaa.c
1390
devinfo->gpio = strtol(res + 2, NULL, 16);
sys/dev/sound/pci/hda/hdaa.c
1392
devinfo->gpio = hdaa_gpio_patch(devinfo->gpio, res);
sys/dev/sound/pci/hda/hdaa.c
1417
uint32_t res;
sys/dev/sound/pci/hda/hdaa.c
1424
res = hda_command(w->devinfo->dev,
sys/dev/sound/pci/hda/hdaa.c
1427
ents = HDA_PARAM_CONN_LIST_LENGTH_LIST_LENGTH(res);
sys/dev/sound/pci/hda/hdaa.c
1432
entnum = HDA_PARAM_CONN_LIST_LENGTH_LONG_FORM(res) ? 2 : 4;
sys/dev/sound/pci/hda/hdaa.c
1443
res = hda_command(w->devinfo->dev,
sys/dev/sound/pci/hda/hdaa.c
1446
cnid = CONN_CNID(res, entnum, j);
sys/dev/sound/pci/hda/hdaa.c
1454
ents, w->nconns, res);
sys/dev/sound/pci/hda/hdaa.c
1465
nid, j, entnum, i, res);
sys/dev/sound/pci/hda/hdaa.c
1468
if (CONN_RANGE(res, entnum, j) == 0)
sys/dev/sound/pci/hda/hdaa.c
1476
cnid, res);
sys/dev/sound/pci/hda/hdaa.c
2719
uint32_t res = 0;
sys/dev/sound/pci/hda/hdaa.c
2737
res |= hdaa_audio_ctl_recsel_comm(pdevinfo, src,
sys/dev/sound/pci/hda/hdaa.c
2740
res |= cw->ossmask;
sys/dev/sound/pci/hda/hdaa.c
2782
return (res);
sys/dev/sound/pci/hda/hdaa.c
2957
uint32_t res;
sys/dev/sound/pci/hda/hdaa.c
2963
res = hda_command(devinfo->dev,
sys/dev/sound/pci/hda/hdaa.c
2965
devinfo->gpio_cap = res;
sys/dev/sound/pci/hda/hdaa.c
2981
res = hda_command(devinfo->dev,
sys/dev/sound/pci/hda/hdaa.c
2983
devinfo->supp_stream_formats = res;
sys/dev/sound/pci/hda/hdaa.c
2985
res = hda_command(devinfo->dev,
sys/dev/sound/pci/hda/hdaa.c
2987
devinfo->supp_pcm_size_rate = res;
sys/dev/sound/pci/hda/hdaa.c
2989
res = hda_command(devinfo->dev,
sys/dev/sound/pci/hda/hdaa.c
2991
devinfo->outamp_cap = res;
sys/dev/sound/pci/hda/hdaa.c
2993
res = hda_command(devinfo->dev,
sys/dev/sound/pci/hda/hdaa.c
2995
devinfo->inamp_cap = res;
sys/dev/sound/pci/hda/hdaa.c
3584
nid_t min, res;
sys/dev/sound/pci/hda/hdaa.c
3605
res = hdaa_audio_trace_dac(devinfo, as, i,
sys/dev/sound/pci/hda/hdaa.c
3607
if (res == 0) {
sys/dev/sound/pci/hda/hdaa.c
3623
ases[as].pins[i], res);
sys/dev/sound/pci/hda/hdaa.c
3632
ases[as].pins[i], hpredir, min, res, 0);
sys/dev/sound/pci/hda/hdaa.c
3633
ases[as].dacs[0][i] = res;
sys/dev/sound/pci/hda/hdaa.c
3640
min = res + 1;
sys/dev/sound/pci/hda/hdaa.c
3863
nid_t min, res;
sys/dev/sound/pci/hda/hdaa.c
3881
res = hdaa_audio_trace_adc(devinfo, as, i,
sys/dev/sound/pci/hda/hdaa.c
3883
if (res == 0) {
sys/dev/sound/pci/hda/hdaa.c
3897
ases[as].pins[i], res);
sys/dev/sound/pci/hda/hdaa.c
3901
ases[as].pins[i], 0, min, res, 0, &length, length);
sys/dev/sound/pci/hda/hdaa.c
3902
ases[as].dacs[0][i] = res;
sys/dev/sound/pci/hda/hdaa.c
3909
min = res + 1;
sys/dev/sound/pci/hda/hdaa.c
3922
nid_t res = 0;
sys/dev/sound/pci/hda/hdaa.c
3977
res = 1;
sys/dev/sound/pci/hda/hdaa.c
3986
if (res && w->bindas == -1)
sys/dev/sound/pci/hda/hdaa.c
3992
depth + 1, "", w->nid, res);
sys/dev/sound/pci/hda/hdaa.c
3994
return (res);
sys/dev/sound/pci/hda/hdaa.c
4892
int j, res;
sys/dev/sound/pci/hda/hdaa.c
4904
res = hdaa_audio_trace_as_out(devinfo, j, 0);
sys/dev/sound/pci/hda/hdaa.c
4905
if (res == 0 && as[j].hpredir >= 0 &&
sys/dev/sound/pci/hda/hdaa.c
4913
res = hdaa_audio_trace_as_in(devinfo, j);
sys/dev/sound/pci/hda/hdaa.c
4915
res = hdaa_audio_trace_as_in_mch(devinfo, j, 0);
sys/dev/sound/pci/hda/hdaa.c
4916
if (res) {
sys/dev/sound/pci/hda/hdaa.c
568
uint32_t res;
sys/dev/sound/pci/hda/hdaa.c
579
res = hda_command(devinfo->dev, HDA_CMD_GET_PIN_SENSE(0, w->nid));
sys/dev/sound/pci/hda/hdaa.c
580
connected = (res & HDA_CMD_GET_PIN_SENSE_PRESENCE_DETECT) != 0;
sys/dev/sound/pci/hda/hdaa.c
591
w->nid, res, !connected ? "dis" : "");
sys/dev/sound/pci/hda/hdaa.c
6076
uint32_t res, pincap, delay;
sys/dev/sound/pci/hda/hdaa.c
6102
res = hda_command(dev,
sys/dev/sound/pci/hda/hdaa.c
6104
if (res != 0x7fffffff && res != 0xffffffff)
sys/dev/sound/pci/hda/hdaa.c
6110
res = hda_command(dev, HDA_CMD_GET_PIN_SENSE(0,
sys/dev/sound/pci/hda/hdaa.c
6113
kprintf(" Sense: 0x%08x (%sconnected%s)", res,
sys/dev/sound/pci/hda/hdaa.c
6114
(res & HDA_CMD_GET_PIN_SENSE_PRESENCE_DETECT) ?
sys/dev/sound/pci/hda/hdaa.c
6117
(res & HDA_CMD_GET_PIN_SENSE_ELD_VALID)) ?
sys/dev/sound/pci/hda/hdaa.c
6616
uint32_t res;
sys/dev/sound/pci/hda/hdaa.c
6629
res = hda_command(dev,
sys/dev/sound/pci/hda/hdaa.c
6633
devinfo->nodecnt = HDA_PARAM_SUB_NODE_COUNT_TOTAL(res);
sys/dev/sound/pci/hda/hdaa.c
6634
devinfo->startnode = HDA_PARAM_SUB_NODE_COUNT_START(res);
sys/dev/sound/pci/hda/hdaa.c
720
uint32_t res;
sys/dev/sound/pci/hda/hdaa.c
731
res = hda_command(devinfo->dev, HDA_CMD_GET_PIN_SENSE(0, w->nid));
sys/dev/sound/pci/hda/hdaa.c
732
if ((w->eld != 0) == ((res & HDA_CMD_GET_PIN_SENSE_ELD_VALID) != 0))
sys/dev/sound/pci/hda/hdaa.c
743
w->nid, res,
sys/dev/sound/pci/hda/hdaa.c
744
(res & HDA_CMD_GET_PIN_SENSE_PRESENCE_DETECT) ? "" : "dis",
sys/dev/sound/pci/hda/hdaa.c
745
(res & HDA_CMD_GET_PIN_SENSE_ELD_VALID) ? "" : "in");
sys/dev/sound/pci/hda/hdaa.c
747
if ((res & HDA_CMD_GET_PIN_SENSE_ELD_VALID) == 0)
sys/dev/sound/pci/hda/hdaa.c
750
res = hda_command(devinfo->dev,
sys/dev/sound/pci/hda/hdaa.c
752
if (res == HDA_INVALID)
sys/dev/sound/pci/hda/hdaa.c
754
w->eld_len = res & 0xff;
sys/dev/sound/pci/hda/hdaa.c
763
res = hda_command(devinfo->dev,
sys/dev/sound/pci/hda/hdaa.c
765
if (res & 0x80000000)
sys/dev/sound/pci/hda/hdaa.c
766
w->eld[i] = res & 0xff;
sys/dev/sound/pci/hda/hdaa.c
978
const char *res = NULL;
sys/dev/sound/pci/hda/hdaa.c
988
buf, &res) == 0) {
sys/dev/sound/pci/hda/hdaa.c
989
if (strncmp(res, "0x", 2) == 0) {
sys/dev/sound/pci/hda/hdaa.c
990
config = strtol(res + 2, NULL, 16);
sys/dev/sound/pci/hda/hdaa.c
992
config = hdaa_widget_pin_patch(config, res);
sys/dev/sound/pci/hda/hdaa.c
997
buf, &res) == 0) {
sys/dev/sound/pci/hda/hdaa.c
998
if (strncmp(res, "0x", 2) == 0) {
sys/dev/sound/pci/hda/hdaa.c
999
config = strtol(res + 2, NULL, 16);
sys/dev/sound/pci/hda/hdac.c
280
const char *res = NULL;
sys/dev/sound/pci/hda/hdac.c
284
device_get_unit(sc->dev), "config", &res) != 0)
sys/dev/sound/pci/hda/hdac.c
286
if (!(res != NULL && strlen(res) > 0))
sys/dev/sound/pci/hda/hdac.c
292
while (res[i] != '\0' &&
sys/dev/sound/pci/hda/hdac.c
293
(res[i] == ',' || isspace(res[i]) != 0))
sys/dev/sound/pci/hda/hdac.c
295
if (res[i] == '\0') {
sys/dev/sound/pci/hda/hdac.c
302
while (res[j] != '\0' &&
sys/dev/sound/pci/hda/hdac.c
303
!(res[j] == ',' || isspace(res[j]) != 0))
sys/dev/sound/pci/hda/hdac.c
306
if (len > 2 && strncmp(res + i, "no", 2) == 0)
sys/dev/sound/pci/hda/hdac.c
311
if (strncmp(res + i + inv,
sys/dev/sound/pcm/sound.c
121
snd_setup_intr(device_t dev, struct resource *res, int flags, driver_intr_t hand, void *param, void **cookiep)
sys/dev/sound/pcm/sound.c
130
return bus_setup_intr(dev, res, flags, hand, param, cookiep, NULL);
sys/dev/sound/pcm/sound.h
353
int snd_setup_intr(device_t dev, struct resource *res, int flags,
sys/dev/virtual/amazon/ena/ena.c
1928
irq->res = bus_alloc_resource_any(adapter->pdev, SYS_RES_IRQ,
sys/dev/virtual/amazon/ena/ena.c
1931
if (unlikely(irq->res == NULL)) {
sys/dev/virtual/amazon/ena/ena.c
1939
irq->vector, irq->res);
sys/dev/virtual/amazon/ena/ena.c
1946
rc = bus_setup_intr(adapter->pdev, irq->res,
sys/dev/virtual/amazon/ena/ena.c
1952
rman_get_start(irq->res), rc);
sys/dev/virtual/amazon/ena/ena.c
1963
irq->vector, irq->res);
sys/dev/virtual/amazon/ena/ena.c
1968
irq->res = NULL;
sys/dev/virtual/amazon/ena/ena.c
2000
irq->res = bus_alloc_resource_any(adapter->pdev, SYS_RES_IRQ,
sys/dev/virtual/amazon/ena/ena.c
2002
if (unlikely(irq->res == NULL)) {
sys/dev/virtual/amazon/ena/ena.c
2013
rc = bus_setup_intr(adapter->pdev, irq->res,
sys/dev/virtual/amazon/ena/ena.c
2019
rman_get_start(irq->res), rc);
sys/dev/virtual/amazon/ena/ena.c
2044
rcc = bus_teardown_intr(adapter->pdev, irq->res, irq->cookie);
sys/dev/virtual/amazon/ena/ena.c
2054
if (irq->res != NULL) {
sys/dev/virtual/amazon/ena/ena.c
2056
irq->vector, irq->res);
sys/dev/virtual/amazon/ena/ena.c
2063
irq->res = NULL;
sys/dev/virtual/amazon/ena/ena.c
2079
rc = bus_teardown_intr(adapter->pdev, irq->res, irq->cookie);
sys/dev/virtual/amazon/ena/ena.c
2086
if (irq->res != NULL) {
sys/dev/virtual/amazon/ena/ena.c
2090
irq->vector, irq->res);
sys/dev/virtual/amazon/ena/ena.c
2092
irq->res = NULL;
sys/dev/virtual/amazon/ena/ena.c
2110
rc = bus_teardown_intr(adapter->pdev, irq->res,
sys/dev/virtual/amazon/ena/ena.c
2119
if (irq->res != NULL) {
sys/dev/virtual/amazon/ena/ena.c
2123
irq->vector, irq->res);
sys/dev/virtual/amazon/ena/ena.c
2125
irq->res = NULL;
sys/dev/virtual/amazon/ena/ena.h
167
struct resource *res;
sys/dev/virtual/nvmm/x86/nvmm_x86_vmx.c
3307
uint64_t set_one, uint64_t set_zero, uint64_t *res)
sys/dev/virtual/nvmm/x86/nvmm_x86_vmx.c
3330
*res &= ~__BIT(i);
sys/dev/virtual/nvmm/x86/nvmm_x86_vmx.c
3334
*res |= __BIT(i);
sys/dev/virtual/nvmm/x86/nvmm_x86_vmx.c
3337
*res &= ~__BIT(i);
sys/dev/virtual/nvmm/x86/nvmm_x86_vmx.c
3339
*res |= __BIT(i);
sys/dev/virtual/nvmm/x86/nvmm_x86_vmx.c
3341
*res &= ~__BIT(i);
sys/dev/virtual/nvmm/x86/nvmm_x86_vmx.c
3343
*res &= ~__BIT(i);
sys/dev/virtual/nvmm/x86/nvmm_x86_vmx.c
3345
*res |= __BIT(i);
sys/dev/virtual/virtio/mmio/virtio_mmio.c
114
#define vtmmio_write_config_1(sc, o, v) bus_write_1((sc)->res[0], (o), (v))
sys/dev/virtual/virtio/mmio/virtio_mmio.c
115
#define vtmmio_write_config_2(sc, o, v) bus_write_2((sc)->res[0], (o), (v))
sys/dev/virtual/virtio/mmio/virtio_mmio.c
116
#define vtmmio_write_config_4(sc, o, v) bus_write_4((sc)->res[0], (o), (v))
sys/dev/virtual/virtio/mmio/virtio_mmio.c
118
#define vtmmio_read_config_1(sc, o) bus_read_1((sc)->res[0], (o))
sys/dev/virtual/virtio/mmio/virtio_mmio.c
119
#define vtmmio_read_config_2(sc, o) bus_read_2((sc)->res[0], (o))
sys/dev/virtual/virtio/mmio/virtio_mmio.c
120
#define vtmmio_read_config_4(sc, o) bus_read_4((sc)->res[0], (o))
sys/dev/virtual/virtio/mmio/virtio_mmio.c
192
sc->res[0] = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid,
sys/dev/virtual/virtio/mmio/virtio_mmio.c
194
if (sc->res[0] == NULL) {
sys/dev/virtual/virtio/mmio/virtio_mmio.c
203
bus_release_resource(dev, SYS_RES_MEMORY, rid, sc->res[0]);
sys/dev/virtual/virtio/mmio/virtio_mmio.c
204
sc->res[0] = NULL;
sys/dev/virtual/virtio/mmio/virtio_mmio.c
211
bus_release_resource(dev, SYS_RES_MEMORY, rid, sc->res[0]);
sys/dev/virtual/virtio/mmio/virtio_mmio.c
212
sc->res[0] = NULL;
sys/dev/virtual/virtio/mmio/virtio_mmio.c
217
bus_release_resource(dev, SYS_RES_MEMORY, rid, sc->res[0]);
sys/dev/virtual/virtio/mmio/virtio_mmio.c
218
sc->res[0] = NULL;
sys/dev/virtual/virtio/mmio/virtio_mmio.c
222
bus_release_resource(dev, SYS_RES_MEMORY, rid, sc->res[0]);
sys/dev/virtual/virtio/mmio/virtio_mmio.c
223
sc->res[0] = NULL;
sys/dev/virtual/virtio/mmio/virtio_mmio.c
241
sc->res[0] = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid,
sys/dev/virtual/virtio/mmio/virtio_mmio.c
243
if (sc->res[0] == NULL) {
sys/dev/virtual/virtio/mmio/virtio_mmio.c
293
if (sc->res[0] != NULL) {
sys/dev/virtual/virtio/mmio/virtio_mmio.c
294
bus_release_resource(dev, SYS_RES_MEMORY, 0, sc->res[0]);
sys/dev/virtual/virtio/mmio/virtio_mmio.c
295
sc->res[0] = NULL;
sys/dev/virtual/virtio/mmio/virtio_mmio.h
49
struct resource *res[1]; /* MMIO register window */
sys/kern/imgact_elf.c
1265
void *res = NULL;
sys/kern/imgact_elf.c
1271
res = target->buf + target->off;
sys/kern/imgact_elf.c
1274
return (res);
sys/kern/kern_caps.c
116
base.res = SYSCAP_RESOURCE_EOF;
sys/kern/kern_caps.c
125
res = (int)(cred->cr_caps.caps[__SYSCAP_INDEX(cap)] >>
sys/kern/kern_caps.c
127
res &= __SYSCAP_BITS_MASK;
sys/kern/kern_caps.c
128
sysmsg->sysmsg_result = res;
sys/kern/kern_caps.c
146
int res;
sys/kern/kern_caps.c
186
res = (int)(cred->cr_caps.caps[__SYSCAP_INDEX(cap)] >>
sys/kern/kern_caps.c
188
res &= __SYSCAP_BITS_MASK;
sys/kern/kern_caps.c
198
if (res != (res | flags)) {
sys/kern/kern_caps.c
207
sysmsg->sysmsg_result = res | uap->flags;
sys/kern/kern_caps.c
271
int res;
sys/kern/kern_caps.c
276
res = (int)(cred->cr_caps.caps[__SYSCAP_INDEX(cap)] >>
sys/kern/kern_caps.c
278
res &= __SYSCAP_BITS_MASK;
sys/kern/kern_caps.c
280
return res;
sys/kern/kern_caps.c
313
int res, gcap;
sys/kern/kern_caps.c
333
res = caps_check_cred(cred, cap);
sys/kern/kern_caps.c
336
res |= caps_check_cred(cred, gcap);
sys/kern/kern_caps.c
338
if (res & __SYSCAP_SELF)
sys/kern/kern_caps.c
81
int res;
sys/kern/kern_descrip.c
1041
kern_dup(int flags, int old, int new, int *res)
sys/kern/kern_descrip.c
1082
*res = new;
sys/kern/kern_descrip.c
1206
*res = new;
sys/kern/kern_descrip.c
3385
int res;
sys/kern/kern_descrip.c
3387
res = callback(fp, data);
sys/kern/kern_descrip.c
3388
if (res < 0)
sys/kern/kern_descrip.c
3602
badfo_seek(struct file *fp, off_t offset, int whence, off_t *res)
sys/kern/kern_dmsg.c
432
ssize_t res;
sys/kern/kern_dmsg.c
483
msg->hdr_size, &res, UIO_SYSSPACE);
sys/kern/kern_dmsg.c
484
if (error || res != msg->hdr_size) {
sys/kern/kern_dmsg.c
495
&res, UIO_SYSSPACE);
sys/kern/kern_dmsg.c
496
if (error || res != abytes) {
sys/kern/kern_event.c
751
kevent_copyout(void *arg, struct kevent *kevp, int count, int *res)
sys/kern/kern_event.c
761
*res += count;
sys/kern/kern_event.c
763
*res = -1;
sys/kern/kern_event.c
796
kern_kevent(struct kqueue *kq, int nevents, int *res, void *uap,
sys/kern/kern_event.c
815
*res = 0;
sys/kern/kern_event.c
849
lres = *res;
sys/kern/kern_event.c
850
kevent_copyoutfn(uap, kevp, 1, res);
sys/kern/kern_event.c
851
if (*res < 0) {
sys/kern/kern_event.c
853
} else if (lres != *res) {
sys/kern/kern_event.c
912
lres = *res;
sys/kern/kern_event.c
913
error = kevent_copyoutfn(uap, kev, i, res);
sys/kern/kern_event.c
914
total += *res - lres;
sys/kern/kern_event.c
927
if (i < n && *res)
sys/kern/kern_event.c
938
if (i != n && kq->kq_count == 0 && *res == 0) {
sys/kern/kern_exit.c
1001
struct __wrusage *wrusage, siginfo_t *info, int *res)
sys/kern/kern_exit.c
1213
*res = p->p_pid;
sys/kern/kern_exit.c
1371
*res = p->p_pid;
sys/kern/kern_exit.c
1401
*res = p->p_pid;
sys/kern/kern_exit.c
1428
*res = 0;
sys/kern/kern_fp.c
204
fp_pread(file_t fp, void *buf, size_t nbytes, off_t offset, ssize_t *res,
sys/kern/kern_fp.c
212
if (res)
sys/kern/kern_fp.c
213
*res = 0;
sys/kern/kern_fp.c
237
if (res)
sys/kern/kern_fp.c
238
*res = count;
sys/kern/kern_fp.c
243
fp_read(file_t fp, void *buf, size_t nbytes, ssize_t *res, int all,
sys/kern/kern_fp.c
251
if (res)
sys/kern/kern_fp.c
252
*res = 0;
sys/kern/kern_fp.c
295
if (res)
sys/kern/kern_fp.c
296
*res = nbytes - auio.uio_resid;
sys/kern/kern_fp.c
301
fp_pwrite(file_t fp, void *buf, size_t nbytes, off_t offset, ssize_t *res,
sys/kern/kern_fp.c
309
if (res)
sys/kern/kern_fp.c
310
*res = 0;
sys/kern/kern_fp.c
334
if (res)
sys/kern/kern_fp.c
335
*res = count;
sys/kern/kern_fp.c
341
fp_write(file_t fp, void *buf, size_t nbytes, ssize_t *res, enum uio_seg seg)
sys/kern/kern_fp.c
348
if (res)
sys/kern/kern_fp.c
349
*res = 0;
sys/kern/kern_fp.c
373
if (res)
sys/kern/kern_fp.c
374
*res = count;
sys/kern/kern_kmalloc.c
144
struct kmalloc_slab *res;
sys/kern/kern_kmalloc.c
151
res = NULL;
sys/kern/kern_kmalloc.c
152
resp = &res;
sys/kern/kern_kmalloc.c
236
return res;
sys/kern/kern_mutex.c
427
int res = 0;
sys/kern/kern_mutex.c
447
res = EAGAIN;
sys/kern/kern_mutex.c
452
return res;
sys/kern/kern_timeout.c
863
int res;
sys/kern/kern_timeout.c
926
res = ((c->flags & CALLOUT_PREVENTED) != 0);
sys/kern/kern_timeout.c
929
return res;
sys/kern/kern_uuid.c
237
int res;
sys/kern/kern_uuid.c
254
res = bcmp(a->node, b->node, sizeof(a->node));
sys/kern/kern_uuid.c
255
if (res)
sys/kern/kern_uuid.c
256
return ((res < 0) ? -1 : 1);
sys/kern/subr_bus.c
2250
struct config_resource *res;
sys/kern/subr_bus.c
2252
for (j = 0, res = devtab[i].resources;
sys/kern/subr_bus.c
2253
j < devtab[i].resource_count; j++, res++)
sys/kern/subr_bus.c
2254
if (!strcmp(res->name, resname)
sys/kern/subr_bus.c
2255
&& res->type == RES_STRING
sys/kern/subr_bus.c
2256
&& !strcmp(res->u.stringval, value))
sys/kern/subr_bus.c
2266
struct config_resource *res;
sys/kern/subr_bus.c
2275
res = devtab[i].resources;
sys/kern/subr_bus.c
2276
for (j = 0; j < devtab[i].resource_count; j++, res++)
sys/kern/subr_bus.c
2277
if (!strcmp(res->name, resname)) {
sys/kern/subr_bus.c
2278
*result = res;
sys/kern/subr_bus.c
2289
res = devtab[i].resources;
sys/kern/subr_bus.c
2290
for (j = 0; j < devtab[i].resource_count; j++, res++)
sys/kern/subr_bus.c
2291
if (!strcmp(res->name, resname)) {
sys/kern/subr_bus.c
2292
*result = res;
sys/kern/subr_bus.c
2330
struct config_resource *res;
sys/kern/subr_bus.c
2338
if ((error = resource_find(name, unit, resname, &res)) != 0)
sys/kern/subr_bus.c
2340
if (res->type != RES_INT)
sys/kern/subr_bus.c
2342
*result = res->u.intval;
sys/kern/subr_bus.c
2350
struct config_resource *res;
sys/kern/subr_bus.c
2358
if ((error = resource_find(name, unit, resname, &res)) != 0)
sys/kern/subr_bus.c
2360
if (res->type != RES_LONG)
sys/kern/subr_bus.c
2362
*result = res->u.longval;
sys/kern/subr_bus.c
2371
struct config_resource *res;
sys/kern/subr_bus.c
2393
if ((error = resource_find(name, unit, resname, &res)) != 0)
sys/kern/subr_bus.c
2395
if (res->type != RES_STRING)
sys/kern/subr_bus.c
2397
*result = res->u.stringval;
sys/kern/subr_bus.c
2450
struct config_resource *res = NULL;
sys/kern/subr_bus.c
2454
res = devtab[i].resources;
sys/kern/subr_bus.c
2457
if (res == NULL) {
sys/kern/subr_bus.c
2461
res = devtab[i].resources;
sys/kern/subr_bus.c
2463
for (j = 0; j < devtab[i].resource_count; j++, res++)
sys/kern/subr_bus.c
2464
if (!strcmp(res->name, resname)) {
sys/kern/subr_bus.c
2465
*result = res;
sys/kern/subr_bus.c
2471
res = &devtab[i].resources[j];
sys/kern/subr_bus.c
2472
*result = res;
sys/kern/subr_bus.c
2480
struct config_resource *res;
sys/kern/subr_bus.c
2482
error = resource_create(name, unit, resname, RES_INT, &res);
sys/kern/subr_bus.c
2485
if (res->type != RES_INT)
sys/kern/subr_bus.c
2487
res->u.intval = value;
sys/kern/subr_bus.c
2495
struct config_resource *res;
sys/kern/subr_bus.c
2497
error = resource_create(name, unit, resname, RES_LONG, &res);
sys/kern/subr_bus.c
2500
if (res->type != RES_LONG)
sys/kern/subr_bus.c
2502
res->u.longval = value;
sys/kern/subr_bus.c
2511
struct config_resource *res;
sys/kern/subr_bus.c
2513
error = resource_create(name, unit, resname, RES_STRING, &res);
sys/kern/subr_bus.c
2516
if (res->type != RES_STRING)
sys/kern/subr_bus.c
2518
if (res->u.stringval)
sys/kern/subr_bus.c
2519
kfree(res->u.stringval, M_TEMP);
sys/kern/subr_bus.c
2520
res->u.stringval = kmalloc(strlen(value) + 1, M_TEMP, M_INTWAIT);
sys/kern/subr_bus.c
2521
if (res->u.stringval == NULL)
sys/kern/subr_bus.c
2523
strcpy(res->u.stringval, value);
sys/kern/subr_bus.c
2530
struct config_resource *res, *cfgres;
sys/kern/subr_bus.c
2552
&res);
sys/kern/subr_bus.c
2558
if (res->type != type) {
sys/kern/subr_bus.c
2560
name, unit, res->type, type);
sys/kern/subr_bus.c
2565
res->u.intval = cfgres[j].u.intval;
sys/kern/subr_bus.c
2568
res->u.longval = cfgres[j].u.longval;
sys/kern/subr_bus.c
2571
if (res->u.stringval)
sys/kern/subr_bus.c
2572
kfree(res->u.stringval, M_TEMP);
sys/kern/subr_bus.c
2574
res->u.stringval = kmalloc(strlen(stringval) + 1,
sys/kern/subr_bus.c
2576
if (res->u.stringval == NULL)
sys/kern/subr_bus.c
2578
strcpy(res->u.stringval, stringval);
sys/kern/subr_bus.c
2606
if (rle->res)
sys/kern/subr_bus.c
2626
rle->res = NULL;
sys/kern/subr_bus.c
2630
if (rle->res)
sys/kern/subr_bus.c
2665
if (rle->res != NULL)
sys/kern/subr_bus.c
2694
if (rle->res)
sys/kern/subr_bus.c
2704
rle->res = BUS_ALLOC_RESOURCE(device_get_parent(bus), child,
sys/kern/subr_bus.c
2711
if (rle->res) {
sys/kern/subr_bus.c
2712
rle->start = rman_get_start(rle->res);
sys/kern/subr_bus.c
2713
rle->end = rman_get_end(rle->res);
sys/kern/subr_bus.c
2717
return(rle->res);
sys/kern/subr_bus.c
2723
int type, int rid, struct resource *res)
sys/kern/subr_bus.c
2731
type, rid, res));
sys/kern/subr_bus.c
2738
if (!rle->res)
sys/kern/subr_bus.c
2742
type, rid, res);
sys/kern/subr_bus.c
2746
rle->res = NULL;
sys/kern/subr_bus.c
3261
struct resource **res)
sys/kern/subr_bus.c
3266
res[i] = NULL;
sys/kern/subr_bus.c
3268
res[i] = bus_alloc_resource_any(dev,
sys/kern/subr_bus.c
3270
if (res[i] == NULL) {
sys/kern/subr_bus.c
3271
bus_release_resources(dev, rs, res);
sys/kern/subr_bus.c
3280
struct resource **res)
sys/kern/subr_bus.c
3285
if (res[i] != NULL) {
sys/kern/subr_bus.c
3287
dev, rs[i].type, rs[i].rid, res[i]);
sys/kern/subr_bus.c
3288
res[i] = NULL;
sys/kern/subr_disklabel32.c
411
disklabel_t res;
sys/kern/subr_disklabel32.c
458
res.lab32 = lp;
sys/kern/subr_disklabel32.c
459
return (res);
sys/kern/subr_disklabel64.c
390
disklabel_t res;
sys/kern/subr_disklabel64.c
427
res.lab64 = lp;
sys/kern/subr_disklabel64.c
428
return (res);
sys/kern/subr_prf.c
359
int res;
sys/kern/subr_prf.c
371
res = 1;
sys/kern/subr_prf.c
373
res = 0;
sys/kern/subr_prf.c
375
return res;
sys/kern/subr_rman.c
652
struct resource *res;
sys/kern/subr_rman.c
700
TAILQ_FOREACH(res, &rm->rm_list, r_link) {
sys/kern/subr_rman.c
702
ures.r_handle = (uintptr_t)res;
sys/kern/subr_rman.c
703
ures.r_parent = (uintptr_t)res->r_rm;
sys/kern/subr_rman.c
704
ures.r_device = (uintptr_t)res->r_dev;
sys/kern/subr_rman.c
705
if (res->r_dev != NULL) {
sys/kern/subr_rman.c
706
if (device_get_name(res->r_dev) != NULL) {
sys/kern/subr_rman.c
709
device_get_name(res->r_dev),
sys/kern/subr_rman.c
710
device_get_unit(res->r_dev));
sys/kern/subr_rman.c
718
ures.r_start = res->r_start;
sys/kern/subr_rman.c
719
ures.r_size = res->r_end - res->r_start + 1;
sys/kern/subr_rman.c
720
ures.r_flags = res->r_flags;
sys/kern/subr_scanf.c
512
u_quad_t res;
sys/kern/subr_scanf.c
515
res = (*ccfn)(buf, NULL, base);
sys/kern/subr_scanf.c
518
(void *)(uintptr_t)res;
sys/kern/subr_scanf.c
520
*__va_arg(ap, char *) = res;
sys/kern/subr_scanf.c
522
*__va_arg(ap, short *) = res;
sys/kern/subr_scanf.c
524
*__va_arg(ap, long *) = res;
sys/kern/subr_scanf.c
526
*__va_arg(ap, quad_t *) = res;
sys/kern/subr_scanf.c
528
*__va_arg(ap, int *) = res;
sys/kern/subr_taskqueue.c
249
int res;
sys/kern/subr_taskqueue.c
252
res = taskqueue_enqueue_locked(queue, task);
sys/kern/subr_taskqueue.c
255
return (res);
sys/kern/subr_taskqueue.c
268
int res;
sys/kern/subr_taskqueue.c
317
res = taskqueue_enqueue_locked(queue, task);
sys/kern/subr_taskqueue.c
320
return (res);
sys/kern/subr_taskqueue.c
344
int res;
sys/kern/subr_taskqueue.c
351
res = timeout_task->t.ta_pending;
sys/kern/subr_taskqueue.c
357
res++;
sys/kern/subr_taskqueue.c
366
return (res);
sys/kern/sys_generic.c
1033
*res = -1;
sys/kern/sys_generic.c
1056
*res = -1;
sys/kern/sys_generic.c
1086
++*res;
sys/kern/sys_generic.c
111
struct timespec *ts, int *res);
sys/kern/sys_generic.c
113
int *res, int flags);
sys/kern/sys_generic.c
1145
struct timespec *ts, int *res)
sys/kern/sys_generic.c
1154
*res = 0;
sys/kern/sys_generic.c
1195
error = kern_kevent(&kap->lwp->lwp_kqueue, 0x7FFFFFFF, res, kap,
sys/kern/sys_generic.c
1430
poll_copyout(void *arg, struct kevent *kevp, int count, int *res)
sys/kern/sys_generic.c
1485
++*res;
sys/kern/sys_generic.c
1511
++*res;
sys/kern/sys_generic.c
1598
++*res;
sys/kern/sys_generic.c
1620
dopoll(int nfds, struct pollfd *fds, struct timespec *ts, int *res, int flags)
sys/kern/sys_generic.c
1629
*res = 0;
sys/kern/sys_generic.c
1656
error = kern_kevent(&ka.lwp->lwp_kqueue, 0x7FFFFFFF, res, &ka,
sys/kern/sys_generic.c
1677
socket_wait_copyout(void *arg, struct kevent *kevp, int count, int *res)
sys/kern/sys_generic.c
1679
++*res;
sys/kern/sys_generic.c
1690
socket_wait(struct socket *so, struct timespec *ts, int *res)
sys/kern/sys_generic.c
1718
error = kern_kevent(&kq, 1, res, NULL, socket_wait_copyin,
sys/kern/sys_generic.c
252
kern_preadv(int fd, struct uio *auio, int flags, size_t *res)
sys/kern/sys_generic.c
264
error = dofileread(fd, fp, auio, flags, res);
sys/kern/sys_generic.c
278
dofileread(int fd, struct file *fp, struct uio *auio, int flags, size_t *res)
sys/kern/sys_generic.c
318
*res = len - auio->uio_resid;
sys/kern/sys_generic.c
456
kern_pwritev(int fd, struct uio *auio, int flags, size_t *res)
sys/kern/sys_generic.c
468
error = dofilewrite(fd, fp, auio, flags, res);
sys/kern/sys_generic.c
482
dofilewrite(int fd, struct file *fp, struct uio *auio, int flags, size_t *res)
sys/kern/sys_generic.c
526
*res = len - auio->uio_resid;
sys/kern/sys_generic.c
990
select_copyout(void *arg, struct kevent *kevp, int count, int *res)
sys/kern/sys_process.c
134
int data, int *res)
sys/kern/sys_process.c
300
*res = 0;
sys/kern/sys_process.c
424
*res = tmp;
sys/kern/tty.c
2668
int res;
sys/kern/tty.c
2684
res = 1;
sys/kern/tty.c
2687
res = 0;
sys/kern/tty.c
2690
res = (p2->p_pid > p1->p_pid); /* tie - return highest pid */
sys/kern/tty.c
2704
res = 1;
sys/kern/tty.c
2708
res = 0;
sys/kern/tty.c
2717
res = 0;
sys/kern/tty.c
2720
res = 1;
sys/kern/tty.c
2727
res = 1;
sys/kern/tty.c
2729
res = 0;
sys/kern/tty.c
2731
res = (p2->p_pid > p1->p_pid); /* tie - ret highest */
sys/kern/tty.c
2741
res = 0;
sys/kern/tty.c
2745
res = 1;
sys/kern/tty.c
2753
res = 1;
sys/kern/tty.c
2756
res = 0;
sys/kern/tty.c
2758
res = (p2->p_pid > p1->p_pid); /* tie - return highest pid */
sys/kern/tty.c
2764
return (res);
sys/kern/uipc_syscalls.c
1024
*res = len - auio->uio_resid;
sys/kern/uipc_syscalls.c
134
*res = fd;
sys/kern/uipc_syscalls.c
284
kern_accept(int s, int fflags, struct sockaddr **name, int *namelen, int *res,
sys/kern/uipc_syscalls.c
298
*res = -1;
sys/kern/uipc_syscalls.c
427
*res = fd;
sys/kern/uipc_syscalls.c
785
struct mbuf *control, int flags, size_t *res)
sys/kern/uipc_syscalls.c
837
*res = len - auio->uio_resid;
sys/kern/uipc_syscalls.c
94
kern_socket(int domain, int type, int protocol, int *res)
sys/kern/uipc_syscalls.c
968
struct mbuf **control, int *flags, size_t *res)
sys/kern/vfs_bio.c
2494
int res = 1;
sys/kern/vfs_bio.c
2511
res = 0;
sys/kern/vfs_bio.c
2519
res = 0;
sys/kern/vfs_bio.c
2524
return (res);
sys/kern/vfs_cache.c
2890
int res = 0;
sys/kern/vfs_cache.c
2931
return res;
sys/kern/vfs_cache.c
2966
return res;
sys/kern/vfs_cache.c
2999
res = 1;
sys/kern/vfs_jops.c
464
int buflen, int *res)
sys/kern/vfs_jops.c
471
*res = 0;
sys/kern/vfs_jops.c
483
if (*res)
sys/kern/vfs_jops.c
500
*res += sizeof(*rstat);
sys/kern/vfs_jops.c
90
int buflen, int *res);
sys/kern/vfs_journal.c
173
size_t res;
sys/kern/vfs_journal.c
234
res = 0;
sys/kern/vfs_journal.c
236
while (res < bytes && rawp->begmagic == JREC_BEGMAGIC) {
sys/kern/vfs_journal.c
237
res += (rawp->recsize + 15) & ~15;
sys/kern/vfs_journal.c
238
if (res >= avail) {
sys/kern/vfs_journal.c
239
KKASSERT(res == avail);
sys/kern/vfs_journal.c
260
bytes = res;
sys/kern/vfs_journal.c
265
bytes, &res, UIO_SYSSPACE);
sys/kern/vfs_journal.c
270
KKASSERT(res == bytes);
sys/kern/vfs_mount.c
741
int res;
sys/kern/vfs_mount.c
750
res = 0;
sys/kern/vfs_mount.c
777
res += count;
sys/kern/vfs_mount.c
805
res += count;
sys/kern/vfs_mount.c
817
return(res);
sys/kern/vfs_quota.c
101
struct ac_gnode *gnp, *res;
sys/kern/vfs_quota.c
106
res = RB_INSERT(ac_gtree, &mp->mnt_acct.ac_groot, gnp);
sys/kern/vfs_quota.c
107
KASSERT(res == NULL, ("gnode_insert(): RB_INSERT didn't return NULL"));
sys/kern/vfs_quota.c
87
struct ac_unode *unp, *res;
sys/kern/vfs_quota.c
92
res = RB_INSERT(ac_utree, &mp->mnt_acct.ac_uroot, unp);
sys/kern/vfs_quota.c
93
KASSERT(res == NULL, ("unode_insert(): RB_INSERT didn't return NULL"));
sys/kern/vfs_syscalls.c
1356
void *buf, int buflen, int *res)
sys/kern/vfs_syscalls.c
1364
*res = 0;
sys/kern/vfs_syscalls.c
1409
buf, buflen, res);
sys/kern/vfs_syscalls.c
2164
kern_open(struct nlookupdata *nd, int oflags, int mode, int *res)
sys/kern/vfs_syscalls.c
2283
*res = indx;
sys/kern/vfs_syscalls.c
2859
kern_lseek(int fd, off_t offset, int whence, off_t *res)
sys/kern/vfs_syscalls.c
2869
error = fo_seek(fp, offset, whence, res);
sys/kern/vfs_syscalls.c
3186
kern_readlink(struct nlookupdata *nd, char *buf, int count, int *res)
sys/kern/vfs_syscalls.c
3215
*res = count - auio.uio_resid;
sys/kern/vfs_syscalls.c
4614
kern_getdirentries(int fd, char *buf, u_int count, long *basep, int *res,
sys/kern/vfs_syscalls.c
4658
*res = count - auio.uio_resid;
sys/kern/vfs_vnops.c
1279
vn_seek(struct file *fp, off_t offset, int whence, off_t *res)
sys/kern/vfs_vnops.c
1348
*res = fp->f_offset;
sys/kern/vfs_vnops.c
75
static int vn_seek (struct file *fp, off_t offset, int whence, off_t *res);
sys/kern/vfs_vopops.c
1294
const void *ctl, int ctllen, void *buf, int buflen, int *res)
sys/kern/vfs_vopops.c
1308
ap.a_res = res;
sys/libkern/linux_idr.c
109
void *res = idr_find(&idr, id);
sys/libkern/linux_idr.c
110
printf("find %d res %p\n", id, res);
sys/libprop/prop_dictionary.c
879
int res;
sys/libprop/prop_dictionary.c
890
res = strcmp(key, pde->pde_key->pdk_key);
sys/libprop/prop_dictionary.c
891
if (res == 0) {
sys/libprop/prop_dictionary.c
896
if (res > 0) { /* key > pdk_key: move right */
sys/net/altq/altq_rmclass.h
100
++((res)->tv_sec); \
sys/net/altq/altq_rmclass.h
103
(res)->tv_usec = xxus; \
sys/net/altq/altq_rmclass.h
95
#define TV_ADD_DELTA(a, delta, res) { \
sys/net/altq/altq_rmclass.h
98
(res)->tv_sec = (a)->tv_sec; \
sys/net/toeplitz.c
118
uint32_t res = 0;
sys/net/toeplitz.c
123
res ^= key[b];
sys/net/toeplitz.c
125
cache[i][val] = res;
sys/net/wg/selftest/cookie.c
224
int res, i;
sys/net/wg/selftest/cookie.c
262
res = 0;
sys/net/wg/selftest/cookie.c
264
res |= cm.mac2[i];
sys/net/wg/selftest/cookie.c
265
if (res != 0)
sys/net/wg/selftest/cookie.c
304
res = 0;
sys/net/wg/selftest/cookie.c
306
res |= cm.mac2[i];
sys/net/wg/selftest/cookie.c
307
if (res == 0)
sys/net/zlib.c
2937
unsigned res = 0;
sys/net/zlib.c
2939
res |= code & 1;
sys/net/zlib.c
2940
code >>= 1, res <<= 1;
sys/net/zlib.c
2942
return res >> 1;
sys/netgraph7/deflate/ng_deflate.c
257
int res;
sys/netgraph7/deflate/ng_deflate.c
259
if ((res = deflateInit2(&priv->cx,
sys/netgraph7/deflate/ng_deflate.c
265
res, priv->cx.msg);
sys/netgraph7/deflate/ng_deflate.c
270
if ((res = inflateInit2(&priv->cx,
sys/netgraph7/deflate/ng_deflate.c
274
res, priv->cx.msg);
sys/netgraph7/ng_nat.c
817
unsigned int res = 0;
sys/netgraph7/ng_nat.c
820
res |= PKT_ALIAS_LOG;
sys/netgraph7/ng_nat.c
822
res |= PKT_ALIAS_DENY_INCOMING;
sys/netgraph7/ng_nat.c
824
res |= PKT_ALIAS_SAME_PORTS;
sys/netgraph7/ng_nat.c
826
res |= PKT_ALIAS_UNREGISTERED_ONLY;
sys/netgraph7/ng_nat.c
828
res |= PKT_ALIAS_RESET_ON_ADDR_CHANGE;
sys/netgraph7/ng_nat.c
830
res |= PKT_ALIAS_PROXY_ONLY;
sys/netgraph7/ng_nat.c
832
res |= PKT_ALIAS_REVERSE;
sys/netgraph7/ng_nat.c
834
return (res);
sys/netgraph7/tcpmss/ng_tcpmss.c
417
int res = 0;
sys/netgraph7/tcpmss/ng_tcpmss.c
439
res = 1;
sys/netgraph7/tcpmss/ng_tcpmss.c
444
return (res);
sys/netproto/802_11/wlan/ieee80211_mesh.c
3363
uint64_t res;
sys/netproto/802_11/wlan/ieee80211_mesh.c
3383
res = (overhead + (nbits / rate)) *
sys/netproto/802_11/wlan/ieee80211_mesh.c
3386
return (uint32_t)(res >> S_FACTOR);
sys/netproto/smb/smb_trantcp.c
209
int error, rplen, res;
sys/netproto/smb/smb_trantcp.c
226
error = socket_wait(nbp->nbp_tso, &nbp->nbp_timo, &res);
sys/platform/pc64/acpica/acpi_pstate_machdep.c
609
acpi_pst_md_res_read(const struct acpi_pst_res *res)
sys/platform/pc64/acpica/acpi_pstate_machdep.c
613
KKASSERT(res->pr_res != NULL);
sys/platform/pc64/acpica/acpi_pstate_machdep.c
614
asz = acpi_pst_md_gas_asz(&res->pr_gas);
sys/platform/pc64/acpica/acpi_pstate_machdep.c
615
reg = res->pr_gas.BitOffset / NBBY;
sys/platform/pc64/acpica/acpi_pstate_machdep.c
619
return bus_space_read_1(res->pr_bt, res->pr_bh, reg);
sys/platform/pc64/acpica/acpi_pstate_machdep.c
621
return bus_space_read_2(res->pr_bt, res->pr_bh, reg);
sys/platform/pc64/acpica/acpi_pstate_machdep.c
623
return bus_space_read_4(res->pr_bt, res->pr_bh, reg);
sys/platform/pc64/acpica/acpi_pstate_machdep.c
632
acpi_pst_md_res_write(const struct acpi_pst_res *res, uint32_t val)
sys/platform/pc64/acpica/acpi_pstate_machdep.c
636
KKASSERT(res->pr_res != NULL);
sys/platform/pc64/acpica/acpi_pstate_machdep.c
637
asz = acpi_pst_md_gas_asz(&res->pr_gas);
sys/platform/pc64/acpica/acpi_pstate_machdep.c
638
reg = res->pr_gas.BitOffset / NBBY;
sys/platform/pc64/acpica/acpi_pstate_machdep.c
642
bus_space_write_1(res->pr_bt, res->pr_bh, reg, val);
sys/platform/pc64/acpica/acpi_pstate_machdep.c
645
bus_space_write_2(res->pr_bt, res->pr_bh, reg, val);
sys/platform/pc64/acpica/acpi_pstate_machdep.c
648
bus_space_write_4(res->pr_bt, res->pr_bh, reg, val);
sys/platform/pc64/x86_64/nexus.c
655
struct resource *res;
sys/platform/pc64/x86_64/nexus.c
687
res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid,
sys/platform/pc64/x86_64/nexus.c
689
if (res == NULL) {
sys/platform/pc64/x86_64/nexus.c
718
res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, 0);
sys/platform/pc64/x86_64/nexus.c
719
if (res == NULL)
sys/platform/pc64/x86_64/pmap.c
1931
int res;
sys/platform/pc64/x86_64/pmap.c
1938
res = 1;
sys/platform/pc64/x86_64/pmap.c
1941
res = (*ptep != 0);
sys/platform/pc64/x86_64/pmap.c
1946
return res;
sys/platform/pc64/x86_64/pmap.c
1959
int res;
sys/platform/pc64/x86_64/pmap.c
1967
res = 1;
sys/platform/pc64/x86_64/pmap.c
1970
res = (*ptep != 0);
sys/platform/pc64/x86_64/pmap.c
1975
return res;
sys/platform/pc64/x86_64/pmap.c
5746
int res = FALSE;
sys/platform/pc64/x86_64/pmap.c
5781
res = TRUE;
sys/platform/pc64/x86_64/pmap.c
5786
return res;
sys/platform/pc64/x86_64/pmap.c
6049
boolean_t res;
sys/platform/pc64/x86_64/pmap.c
6051
res = pmap_testbit(m, PG_M_IDX);
sys/platform/pc64/x86_64/pmap.c
6052
return (res);
sys/platform/pc64/x86_64/uwrapper.c
11
return curthread->td_proc->p_vmspace->vm_pmap.copyinstr(udaddr, kaddr, len, res);
sys/platform/pc64/x86_64/uwrapper.c
9
copyinstr(const void *udaddr, void *kaddr, size_t len, size_t *res)
sys/platform/vkernel64/platform/copyio.c
108
res = oldval;
sys/platform/vkernel64/platform/copyio.c
110
: "+a" (res), "=m" (*dest) \
sys/platform/vkernel64/platform/copyio.c
119
return res;
sys/platform/vkernel64/platform/copyio.c
128
uint64_t res;
sys/platform/vkernel64/platform/copyio.c
144
res = atomic_swap_long((uint64_t *)(kva + ((vm_offset_t)p & PAGE_MASK)),
sys/platform/vkernel64/platform/copyio.c
151
return res;
sys/platform/vkernel64/platform/copyio.c
160
u_int res;
sys/platform/vkernel64/platform/copyio.c
176
res = atomic_swap_int((u_int *)(kva + ((vm_offset_t)p & PAGE_MASK)),
sys/platform/vkernel64/platform/copyio.c
183
return res;
sys/platform/vkernel64/platform/copyio.c
192
uint64_t res;
sys/platform/vkernel64/platform/copyio.c
208
res = atomic_fetchadd_long((uint64_t *)(kva + ((vm_offset_t)p & PAGE_MASK)),
sys/platform/vkernel64/platform/copyio.c
215
return res;
sys/platform/vkernel64/platform/copyio.c
224
u_int res;
sys/platform/vkernel64/platform/copyio.c
240
res = atomic_fetchadd_int((u_int *)(kva + ((vm_offset_t)p & PAGE_MASK)),
sys/platform/vkernel64/platform/copyio.c
247
return res;
sys/platform/vkernel64/platform/copyio.c
273
copyinstr(const void *udaddr, void *kaddr, size_t len, size_t *res)
sys/platform/vkernel64/platform/copyio.c
280
if (res)
sys/platform/vkernel64/platform/copyio.c
281
*res = 0;
sys/platform/vkernel64/platform/copyio.c
291
if (res)
sys/platform/vkernel64/platform/copyio.c
292
++*res;
sys/platform/vkernel64/platform/copyio.c
53
uint64_t res;
sys/platform/vkernel64/platform/copyio.c
70
res = oldval;
sys/platform/vkernel64/platform/copyio.c
72
: "+a" (res), "=m" (*dest) \
sys/platform/vkernel64/platform/copyio.c
81
return res;
sys/platform/vkernel64/platform/copyio.c
91
u_int res;
sys/platform/vkernel64/platform/pmap.c
3080
boolean_t res;
sys/platform/vkernel64/platform/pmap.c
3082
res = pmap_testbit(m, VPTE_M);
sys/platform/vkernel64/platform/pmap.c
3084
return (res);
sys/platform/vkernel64/platform/pmap.c
798
int res;
sys/platform/vkernel64/platform/pmap.c
807
res = 1;
sys/platform/vkernel64/platform/pmap.c
810
res = (*ptep != 0);
sys/platform/vkernel64/platform/pmap.c
816
return res;
sys/platform/vkernel64/platform/pmap.c
827
int res;
sys/platform/vkernel64/platform/pmap.c
834
res = 1;
sys/platform/vkernel64/platform/pmap.c
837
res = (*ptep != 0);
sys/platform/vkernel64/platform/pmap.c
841
return res;
sys/sys/bus.h
140
struct resource *res; /* the real resource when allocated */
sys/sys/bus.h
214
int type, int rid, struct resource *res);
sys/sys/bus.h
309
struct resource **res);
sys/sys/bus.h
311
struct resource **res);
sys/sys/caps.h
69
size_t res; /* resource type, EOF ends list */
sys/sys/event.h
251
int *res);
sys/sys/event.h
254
int kern_kevent(struct kqueue *kq, int nevents, int *res, void *uap,
sys/sys/file.h
175
int badfo_seek(struct file *fp, off_t offset, int whence, off_t *res);
sys/sys/file.h
88
int (*fo_seek) (struct file *fp, off_t offset, int whence, off_t *res);
sys/sys/file2.h
119
fo_seek(struct file *fp, off_t offset, int whence, off_t *res)
sys/sys/file2.h
121
return ((*fp->f_ops->fo_seek)(fp, offset, whence, res));
sys/sys/kern_syscall.h
110
int kern_accept(int s, int fflags, struct sockaddr **name, int *namelen, int *res,
sys/sys/kern_syscall.h
119
struct mbuf **control, int *flags, size_t *res);
sys/sys/kern_syscall.h
124
struct mbuf *control, int flags, size_t *res);
sys/sys/kern_syscall.h
126
int kern_socket(int domain, int type, int protocol, int *res);
sys/sys/kern_syscall.h
147
int kern_getdirentries(int fd, char *buf, u_int count, long *basep, int *res,
sys/sys/kern_syscall.h
150
int kern_lseek(int fd, off_t offset, int whence, off_t *res);
sys/sys/kern_syscall.h
153
void *buf, int buflen, int *res);
sys/sys/kern_syscall.h
157
int kern_open(struct nlookupdata *nd, int flags, int mode, int *res);
sys/sys/kern_syscall.h
160
int kern_readlink(struct nlookupdata *nd, char *buf, int count, int *res);
sys/sys/kern_syscall.h
191
int prot, int flags, int fd, off_t pos, void **res);
sys/sys/kern_syscall.h
69
int kern_dup(int flags, int old, int new, int *res);
sys/sys/kern_syscall.h
83
struct __wrusage *wrusage, siginfo_t *info, int *res);
sys/sys/kern_syscall.h
98
int kern_preadv(int fd, struct uio *auio, int flags, size_t *res);
sys/sys/kern_syscall.h
99
int kern_pwritev(int fd, struct uio *auio, int flags, size_t *res);
sys/sys/ptrace.h
85
int data, int *res);
sys/sys/socketvar.h
432
int socket_wait (struct socket *so, struct timespec *ts, int *res);
sys/sys/vfsops.h
862
void *buf, int buflen, int *res);
sys/vfs/autofs/autofs_vnops.c
437
int res = 0;
sys/vfs/autofs/autofs_vnops.c
446
res = vop_stdmountctl(ap);
sys/vfs/autofs/autofs_vnops.c
451
return (res);
sys/vfs/devfs/devfs_helper.c
139
int res;
sys/vfs/devfs/devfs_helper.c
149
res = !((bitmap->bitmap[chunk]) & (1UL << unit));
sys/vfs/devfs/devfs_helper.c
152
return res;
sys/vfs/devfs/devfs_helper.c
173
int res;
sys/vfs/devfs/devfs_helper.c
183
res = 0;
sys/vfs/devfs/devfs_helper.c
185
res = -1;
sys/vfs/devfs/devfs_helper.c
189
return res;
sys/vfs/devfs/devfs_vnops.c
1620
devfs_fo_seek(struct file *fp, off_t offset, int whence, off_t *res)
sys/vfs/devfs/devfs_vnops.c
1672
*res = fp->f_offset;
sys/vfs/ext2fs/ext2_subr.c
100
if (res)
sys/vfs/ext2fs/ext2_subr.c
101
*res = (char *)bp->b_data + blkoff(fs, offset);
sys/vfs/ext2fs/ext2_subr.c
78
ext2_blkatoff(struct vnode *vp, off_t offset, char **res, struct buf **bpp)
sys/vfs/fuse/fuse_util.c
100
res = (len == sizeof(struct fuse_attr_out));
sys/vfs/fuse/fuse_util.c
103
res = (len == sizeof(struct fuse_attr_out));
sys/vfs/fuse/fuse_util.c
106
res = (len <= PAGE_SIZE);
sys/vfs/fuse/fuse_util.c
109
res = (len == sizeof(struct fuse_entry_out));
sys/vfs/fuse/fuse_util.c
112
res = (len == sizeof(struct fuse_entry_out));
sys/vfs/fuse/fuse_util.c
115
res = (len == sizeof(struct fuse_entry_out));
sys/vfs/fuse/fuse_util.c
118
res = (len == 0);
sys/vfs/fuse/fuse_util.c
121
res = (len == 0);
sys/vfs/fuse/fuse_util.c
124
res = (len == 0);
sys/vfs/fuse/fuse_util.c
127
res = (len == sizeof(struct fuse_entry_out));
sys/vfs/fuse/fuse_util.c
130
res = (len == sizeof(struct fuse_open_out));
sys/vfs/fuse/fuse_util.c
133
res = (len <= ((struct fuse_read_in*)(ihd + 1))->size);
sys/vfs/fuse/fuse_util.c
136
res = (len == sizeof(struct fuse_write_out));
sys/vfs/fuse/fuse_util.c
139
res = (len == sizeof(struct fuse_statfs_out));
sys/vfs/fuse/fuse_util.c
142
res = (len == 0);
sys/vfs/fuse/fuse_util.c
145
res = (len == 0);
sys/vfs/fuse/fuse_util.c
148
res = (len == 0);
sys/vfs/fuse/fuse_util.c
151
res = true;
sys/vfs/fuse/fuse_util.c
154
res = true;
sys/vfs/fuse/fuse_util.c
157
res = (len == 0);
sys/vfs/fuse/fuse_util.c
160
res = (len == 0);
sys/vfs/fuse/fuse_util.c
163
res = (len == sizeof(struct fuse_init_out));
sys/vfs/fuse/fuse_util.c
166
res = (len == sizeof(struct fuse_open_out));
sys/vfs/fuse/fuse_util.c
169
res = (len <= ((struct fuse_read_in*)(ihd + 1))->size);
sys/vfs/fuse/fuse_util.c
172
res = (len == 0);
sys/vfs/fuse/fuse_util.c
175
res = (len == 0);
sys/vfs/fuse/fuse_util.c
178
res = false;
sys/vfs/fuse/fuse_util.c
181
res = false;
sys/vfs/fuse/fuse_util.c
184
res = false;
sys/vfs/fuse/fuse_util.c
187
res = (len == 0);
sys/vfs/fuse/fuse_util.c
190
res = (len == sizeof(struct fuse_entry_out) +
sys/vfs/fuse/fuse_util.c
194
res = false;
sys/vfs/fuse/fuse_util.c
197
res = false;
sys/vfs/fuse/fuse_util.c
200
res = (len == 0);
sys/vfs/fuse/fuse_util.c
203
res = false;
sys/vfs/fuse/fuse_util.c
206
res = false;
sys/vfs/fuse/fuse_util.c
209
res = false;
sys/vfs/fuse/fuse_util.c
212
res = false;
sys/vfs/fuse/fuse_util.c
215
res = false;
sys/vfs/fuse/fuse_util.c
218
res = false;
sys/vfs/fuse/fuse_util.c
221
res = false;
sys/vfs/fuse/fuse_util.c
224
res = false;
sys/vfs/fuse/fuse_util.c
227
res = false;
sys/vfs/fuse/fuse_util.c
234
if (!res)
sys/vfs/fuse/fuse_util.c
90
bool res;
sys/vfs/fuse/fuse_util.c
94
res = (len == sizeof(struct fuse_entry_out));
sys/vfs/fuse/fuse_util.c
97
res = true;
sys/vfs/fuse/fuse_vnops.c
1809
int res = 0;
sys/vfs/fuse/fuse_vnops.c
1819
res = vop_stdmountctl(ap);
sys/vfs/fuse/fuse_vnops.c
1824
return res;
sys/vfs/hammer/hammer_btree.c
2782
const char *s, int res)
sys/vfs/hammer/hammer_btree.c
2797
res);
sys/vfs/hammer/hammer_btree.c
94
hammer_btree_elm_t elm, const char *s, int res);
sys/vfs/hammer/hammer_inode.c
1171
int res;
sys/vfs/hammer/hammer_inode.c
1179
res = 0;
sys/vfs/hammer/hammer_inode.c
1187
res = 0;
sys/vfs/hammer/hammer_inode.c
1189
res = -1; /* stop, someone is using the inode */
sys/vfs/hammer/hammer_inode.c
1192
return(res);
sys/vfs/hammer/hammer_inode.c
1198
int res;
sys/vfs/hammer/hammer_inode.c
1201
for (try = res = 0; try < 4; ++try) {
sys/vfs/hammer/hammer_inode.c
1202
res = hammer_ino_rb_tree_RB_SCAN(&trans->hmp->rb_inos_root,
sys/vfs/hammer/hammer_inode.c
1206
if (res == 0 && try > 1)
sys/vfs/hammer/hammer_inode.c
1210
if (res != 0)
sys/vfs/hammer/hammer_inode.c
1211
res = ENOTEMPTY;
sys/vfs/hammer/hammer_inode.c
1212
return(res);
sys/vfs/hammer/hammer_inode.c
1703
int res = -1;
sys/vfs/hammer/hammer_inode.c
1710
res = 0;
sys/vfs/hammer/hammer_inode.c
1723
res = 0;
sys/vfs/hammer/hammer_inode.c
1727
return res;
sys/vfs/hammer2/zlib/hammer2_zlib_trees.c
1164
register unsigned res = 0;
sys/vfs/hammer2/zlib/hammer2_zlib_trees.c
1166
res |= code & 1;
sys/vfs/hammer2/zlib/hammer2_zlib_trees.c
1167
code >>= 1, res <<= 1;
sys/vfs/hammer2/zlib/hammer2_zlib_trees.c
1169
return res >> 1;
sys/vfs/hpfs/hpfs_lookup.c
157
res = hpfs_cmpfname(hpmp, name, namelen,
sys/vfs/hpfs/hpfs_lookup.c
159
if (res == 0) {
sys/vfs/hpfs/hpfs_lookup.c
170
} else if (res < 0)
sys/vfs/hpfs/hpfs_lookup.c
68
int error, res;
sys/vfs/hpfs/hpfs_lookup.c
87
res = hpfs_cmpfname(hpmp, name, namelen,
sys/vfs/hpfs/hpfs_lookup.c
89
if (res == 0) {
sys/vfs/hpfs/hpfs_lookup.c
93
} else if (res < 0)
sys/vfs/hpfs/hpfs_subr.c
177
int i, res;
sys/vfs/hpfs/hpfs_subr.c
180
res = hpfs_toupper(hpmp, hpfs_u2d(hpmp, uname[i]), cp) -
sys/vfs/hpfs/hpfs_subr.c
182
if (res)
sys/vfs/hpfs/hpfs_subr.c
183
return res;
sys/vfs/hpfs/hpfs_subr.c
198
int i, res;
sys/vfs/hpfs/hpfs_subr.c
201
res = (int)hpfs_toupper(hpmp, ((u_char *)str1)[i], str1cp) -
sys/vfs/hpfs/hpfs_subr.c
203
if (res)
sys/vfs/hpfs/hpfs_subr.c
204
return res;
sys/vfs/isofs/cd9660/cd9660_lookup.c
110
int res;
sys/vfs/isofs/cd9660/cd9660_lookup.c
233
} else if (!(res = isofncmp(name, len,
sys/vfs/isofs/cd9660/cd9660_lookup.c
248
else if (res < 0)
sys/vfs/isofs/cd9660/cd9660_lookup.c
250
else if (res > 0 && numdirpasses == 2)
sys/vfs/isofs/cd9660/cd9660_lookup.c
386
cd9660_blkatoff(struct vnode *vp, off_t offset, char **res, struct buf **bpp)
sys/vfs/isofs/cd9660/cd9660_lookup.c
428
if (res)
sys/vfs/isofs/cd9660/cd9660_lookup.c
429
*res = (char *)bp->b_data + blkoff(imp, offset);
sys/vfs/isofs/cd9660/cd9660_lookup.c
449
cd9660_devblkatoff(struct vnode *vp, off_t offset, char **res, struct buf **bpp)
sys/vfs/isofs/cd9660/cd9660_lookup.c
473
if (res)
sys/vfs/isofs/cd9660/cd9660_lookup.c
474
*res = (char *)bp->b_data + blkoff(imp, offset);
sys/vfs/isofs/cd9660/cd9660_node.h
115
int cd9660_blkatoff(struct vnode *vp, off_t offset, char **res, struct buf **bpp);
sys/vfs/isofs/cd9660/cd9660_node.h
116
int cd9660_devblkatoff(struct vnode *vp, off_t offset, char **res, struct buf **bpp);
sys/vfs/ntfs/ntfs_subr.c
645
int res;
sys/vfs/ntfs/ntfs_subr.c
658
res = ((int) NTFS_TOUPPER(ustr[i])) -
sys/vfs/ntfs/ntfs_subr.c
663
if (res)
sys/vfs/ntfs/ntfs_subr.c
664
return res;
sys/vfs/ntfs/ntfs_subr.c
672
res = ((int) NTFS_TOUPPER(NTFS_82U(NTFS_U28(ustr[i]), &len))) -
sys/vfs/ntfs/ntfs_subr.c
674
if (res)
sys/vfs/ntfs/ntfs_subr.c
675
return res;
sys/vfs/ntfs/ntfs_subr.c
690
int res;
sys/vfs/ntfs/ntfs_subr.c
694
res = 0;
sys/vfs/ntfs/ntfs_subr.c
699
res = (int) (u - astr[j++]);
sys/vfs/ntfs/ntfs_subr.c
702
res = (res<<8) + (int) (l - astr[j]);
sys/vfs/ntfs/ntfs_subr.c
703
if (res)
sys/vfs/ntfs/ntfs_subr.c
704
return res;
sys/vfs/ntfs/ntfs_subr.c
850
int error, res, anamelen, fnamelen;
sys/vfs/ntfs/ntfs_subr.c
911
res = NTFS_UASTRICMP(iep->ie_fname, iep->ie_fnamelen,
sys/vfs/ntfs/ntfs_subr.c
913
if (res > 0) break;
sys/vfs/ntfs/ntfs_subr.c
914
if (res < 0) continue;
sys/vfs/ntfs/ntfs_subr.c
919
res = NTFS_UASTRCMP(iep->ie_fname,
sys/vfs/ntfs/ntfs_subr.c
921
if (res != 0) continue;
sys/vfs/procfs/procfs_vnops.c
1010
res = procfs_readdir_root_callback(NULL, &info);
sys/vfs/procfs/procfs_vnops.c
1011
if (res < 0)
sys/vfs/procfs/procfs_vnops.c
1014
if (res >= 0)
sys/vfs/procfs/procfs_vnops.c
997
int res;
sys/vfs/procfs/procfs_vnops.c
999
res = 0;
sys/vfs/ufs/ffs_subr.c
150
if (res)
sys/vfs/ufs/ffs_subr.c
151
*res = (char *)bp->b_data + (int)(uoffset - base_loffset);
sys/vfs/ufs/ffs_subr.c
60
ffs_blkatoff(struct vnode *vp, off_t uoffset, char **res, struct buf **bpp)
sys/vfs/ufs/ffs_subr.c
79
if (res)
sys/vfs/ufs/ffs_subr.c
80
*res = (char *)bp->b_data + blkoff(fs, uoffset);
sys/vfs/ufs/ffs_subr.c
93
ffs_blkatoff_ra(struct vnode *vp, off_t uoffset, char **res, struct buf **bpp,
sys/vm/vm_mmap.c
128
int uprot, int uflags, int fd, off_t upos, void **res)
sys/vm/vm_mmap.c
394
*res = (void *)(addr + pageoff);
test/testcases/compiler/div128/div128.c
8
__uint128_t res = num / denom;
test/testcases/compiler/div128/div128.c
9
printf("Result = %ju\n", (uintmax_t)res);
test/testcases/libnvmm/h_io_assist.c
298
char *res;
test/testcases/libnvmm/h_io_assist.c
318
res = databuf;
test/testcases/libnvmm/h_io_assist.c
320
res = iobuf;
test/testcases/libnvmm/h_io_assist.c
323
if (!strcmp(res, test->wanted)) {
test/testcases/libnvmm/h_io_assist.c
327
test->wanted, res);
test/testcases/libnvmm/h_mem_assist.c
149
uint64_t *res;
test/testcases/libnvmm/h_mem_assist.c
159
res = (uint64_t *)(mmiobuf + test->off);
test/testcases/libnvmm/h_mem_assist.c
160
if (*res == test->wanted) {
test/testcases/libnvmm/h_mem_assist.c
164
test->wanted, *res);
tools/tools/net80211/stumbler/stumbler.c
122
static char res[14];
tools/tools/net80211/stumbler/stumbler.c
174
memset(res, ' ', sizeof(res));
tools/tools/net80211/stumbler/stumbler.c
175
assert(strlen(wep) < sizeof(res));
tools/tools/net80211/stumbler/stumbler.c
176
memcpy(res, wep, strlen(wep));
tools/tools/net80211/stumbler/stumbler.c
177
res[sizeof(res)-1] = 0;
tools/tools/net80211/stumbler/stumbler.c
178
return res;
tools/tools/net80211/stumbler/stumbler.c
182
static char res[24];
tools/tools/net80211/stumbler/stumbler.c
184
memset(res, ' ', sizeof(res));
tools/tools/net80211/stumbler/stumbler.c
185
res[0] = '[';
tools/tools/net80211/stumbler/stumbler.c
186
strcpy(&res[sizeof(res)-2], "]");
tools/tools/net80211/stumbler/stumbler.c
189
int left = sizeof(res) - 3;
tools/tools/net80211/stumbler/stumbler.c
193
memcpy(&res[1], node->ssid, left);
tools/tools/net80211/stumbler/stumbler.c
196
memcpy(&res[1], "<client>", 8);
tools/tools/net80211/stumbler/stumbler.c
198
return res;
tools/tools/netrate/accept_connect/connect_client/connect_client.c
120
mainloop(const struct sockaddr_in *in, long dur, u_long *res)
tools/tools/netrate/accept_connect/connect_client/connect_client.c
148
*res = count;
tools/tools/netrate/accept_connect/kq_connect_client/kq_connect_client.c
184
long dur, u_long *res, int do_udp, int inst)
tools/tools/netrate/accept_connect/kq_connect_client/kq_connect_client.c
305
*res = ((double)count * 1000000.0) / time_us;
tools/tools/netrate/netblast/netblast.c
145
struct addrinfo hints, *res, *res0;
tools/tools/netrate/netblast/netblast.c
195
for (res = res0; res; res = res->ai_next) {
tools/tools/netrate/netblast/netblast.c
196
s = socket(res->ai_family, res->ai_socktype, 0);
tools/tools/netrate/netblast/netblast.c
202
if (connect(s, res->ai_addr, res->ai_addrlen) < 0) {
tools/tools/netrate/netperf/tcp_cc/tcp_cc.c
132
double res, arg5;
tools/tools/netrate/netperf/tcp_cc/tcp_cc.c
135
&arg1, &arg2, &arg3, &arg4, &arg5, &res);
tools/tools/netrate/netperf/tcp_cc/tcp_cc.c
137
result += res;
tools/tools/netrate/netperf/tcp_stream/tcp_stream.c
260
double res, arg4;
tools/tools/netrate/netperf/tcp_stream/tcp_stream.c
263
&arg1, &arg2, &arg3, &arg4, &res);
tools/tools/netrate/netperf/tcp_stream/tcp_stream.c
266
res_max = res;
tools/tools/netrate/netperf/tcp_stream/tcp_stream.c
267
res_min = res;
tools/tools/netrate/netperf/tcp_stream/tcp_stream.c
270
if (res > res_max)
tools/tools/netrate/netperf/tcp_stream/tcp_stream.c
271
res_max = res;
tools/tools/netrate/netperf/tcp_stream/tcp_stream.c
272
if (res < res_min)
tools/tools/netrate/netperf/tcp_stream/tcp_stream.c
273
res_min = res;
tools/tools/netrate/netperf/tcp_stream/tcp_stream.c
275
jain += (res * res);
tools/tools/netrate/netperf/tcp_stream/tcp_stream.c
276
result += res;
tools/tools/toeplitz/toeplitz.c
100
res ^= hash_table[6][(daddr >> 16) & 0xff];
tools/tools/toeplitz/toeplitz.c
101
res ^= hash_table[7][(daddr >> 24) & 0xff];
tools/tools/toeplitz/toeplitz.c
103
res ^= hash_table[8][(sport >> 0) & 0xff];
tools/tools/toeplitz/toeplitz.c
104
res ^= hash_table[9][(sport >> 8) & 0xff];
tools/tools/toeplitz/toeplitz.c
105
res ^= hash_table[10][(dport >> 0) & 0xff];
tools/tools/toeplitz/toeplitz.c
106
res ^= hash_table[11][(dport >> 8) & 0xff];
tools/tools/toeplitz/toeplitz.c
109
printf("0x%08x, masked 0x%08x", res, res & mask);
tools/tools/toeplitz/toeplitz.c
113
printf(", modulo %u\n", (res & HASHMASK) % divisor);
tools/tools/toeplitz/toeplitz.c
154
uint32_t res = 0;
tools/tools/toeplitz/toeplitz.c
159
res ^= key[b];
tools/tools/toeplitz/toeplitz.c
161
cache[i][val] = res;
tools/tools/toeplitz/toeplitz.c
41
uint32_t res, mask, divisor;
tools/tools/toeplitz/toeplitz.c
94
res = hash_table[0][(saddr >> 0) & 0xff];
tools/tools/toeplitz/toeplitz.c
95
res ^= hash_table[1][(saddr >> 8) & 0xff];
tools/tools/toeplitz/toeplitz.c
96
res ^= hash_table[2][(saddr >> 16) & 0xff];
tools/tools/toeplitz/toeplitz.c
97
res ^= hash_table[3][(saddr >> 24) & 0xff];
tools/tools/toeplitz/toeplitz.c
98
res ^= hash_table[4][(daddr >> 0) & 0xff];
tools/tools/toeplitz/toeplitz.c
99
res ^= hash_table[5][(daddr >> 8) & 0xff];
usr.bin/dsynth/build.c
776
int res;
usr.bin/dsynth/build.c
784
res = buildCalculateDepiDepth(scan);
usr.bin/dsynth/build.c
785
if (best_depth < res)
usr.bin/dsynth/build.c
786
best_depth = res;
usr.bin/dsynth/repo.c
503
int res;
usr.bin/dsynth/repo.c
513
res = strcmp(spath, item->spath);
usr.bin/dsynth/repo.c
514
if (res == 0)
usr.bin/dsynth/repo.c
516
if (res < 0) {
usr.bin/dsynth/subs.c
326
size_t res;
usr.bin/dsynth/subs.c
330
res = sizeof(*msg);
usr.bin/dsynth/subs.c
332
while (res) {
usr.bin/dsynth/subs.c
333
r = read(fd, ptr, res);
usr.bin/dsynth/subs.c
339
res -= (size_t)r;
usr.bin/dsynth/subs.c
348
size_t res;
usr.bin/dsynth/subs.c
352
res = sizeof(*msg);
usr.bin/dsynth/subs.c
354
while (res) {
usr.bin/dsynth/subs.c
355
r = write(fd, ptr, res);
usr.bin/dsynth/subs.c
361
res -= (size_t)r;
usr.bin/dsynth/subs.c
372
int res = 0;
usr.bin/dsynth/subs.c
385
res = 1;
usr.bin/dsynth/subs.c
389
res = 0;
usr.bin/dsynth/subs.c
394
return res;
usr.bin/limits/limits.c
531
rlim_t res = RLIM_INFINITY;
usr.bin/limits/limits.c
544
res = 0;
usr.bin/limits/limits.c
571
res += tim;
usr.bin/limits/limits.c
582
res = 0;
usr.bin/limits/limits.c
611
res += (tim * mult);
usr.bin/limits/limits.c
616
res = strtoq(s, &e, 0);
usr.bin/limits/limits.c
625
return res;
usr.bin/localedef/collate.c
144
res_t res;
usr.bin/localedef/collate.c
274
prilist[i].res = UNKNOWN;
usr.bin/localedef/collate.c
293
set_pri(int32_t ref, int32_t v, res_t res)
usr.bin/localedef/collate.c
299
if ((res == REFER) && ((v < 0) || (v >= numpri))) {
usr.bin/localedef/collate.c
304
if ((res == REFER) && (ref == v)) {
usr.bin/localedef/collate.c
306
res = RESOLVED;
usr.bin/localedef/collate.c
309
if (pri->res != UNKNOWN) {
usr.bin/localedef/collate.c
316
pri->res = res;
usr.bin/localedef/collate.c
327
while (pri->res == REFER) {
usr.bin/localedef/collate.c
342
if (pri->res == UNKNOWN) {
usr.bin/localedef/collate.c
345
if (pri->res != RESOLVED)
usr.bin/logger/logger.c
163
struct addrinfo hints, *res, *r;
usr.bin/logger/logger.c
177
error = getaddrinfo(host, "syslog", &hints, &res);
usr.bin/logger/logger.c
180
error = getaddrinfo(host, "514", &hints, &res);
usr.bin/logger/logger.c
185
for (maxs = 0, r = res; r; r = r->ai_next, maxs++);
usr.bin/logger/logger.c
189
for (r = res; r; r = r->ai_next) {
usr.bin/logger/logger.c
198
freeaddrinfo(res);
usr.bin/mail/quit.c
334
writeback(FILE *res)
usr.bin/mail/quit.c
346
if (res != NULL)
usr.bin/mail/quit.c
347
while ((c = getc(res)) != EOF)
usr.bin/mail/quit.c
360
if (res != NULL)
usr.bin/mail/quit.c
361
while ((c = getc(res)) != EOF)
usr.bin/mail/quit.c
371
if (res != NULL)
usr.bin/mail/quit.c
372
Fclose(res);
usr.bin/mail/quit.c
39
static int writeback(FILE *res);
usr.bin/mkesdb/yacc.y
219
set_prop_string(const char *res, char **store, char **data)
usr.bin/mkesdb/yacc.y
225
"%s is duplicated. ignored the one", res);
usr.bin/rpcgen/rpc_main.c
218
char *res;
usr.bin/rpcgen/rpc_main.c
226
res = xmalloc(strlen(file) + strlen(ext) + 1);
usr.bin/rpcgen/rpc_main.c
230
strcpy(res, file);
usr.bin/rpcgen/rpc_main.c
231
strcpy(res + (p - file), ext);
usr.bin/rpcgen/rpc_main.c
232
return(res);
usr.bin/rpcinfo/rpcinfo.c
1565
struct addrinfo hints, *res;
usr.bin/rpcinfo/rpcinfo.c
1570
if (getaddrinfo(host, "rpcbind", &hints, &res) != 0) {
usr.bin/rpcinfo/rpcinfo.c
1574
addr.len = addr.maxlen = res->ai_addrlen;
usr.bin/rpcinfo/rpcinfo.c
1575
addr.buf = res->ai_addr;
usr.bin/rpcinfo/rpcinfo.c
1602
freeaddrinfo(res);
usr.bin/rpcinfo/rpcinfo.c
544
struct addrinfo hints, *res;
usr.bin/rpcinfo/rpcinfo.c
556
if ((error = getaddrinfo(host, "rpcbind", &hints, &res))
usr.bin/rpcinfo/rpcinfo.c
560
memcpy(addr, res->ai_addr, res->ai_addrlen);
usr.bin/rpcinfo/rpcinfo.c
561
freeaddrinfo(res);
usr.bin/rpcinfo/rpcinfo.c
579
reply_proc(void *res, struct netbuf *who, struct netconfig *nconf)
usr.bin/rwall/rwall.c
105
(xdrproc_t)xdr_void, &res, tv) != RPC_SUCCESS) {
usr.bin/rwall/rwall.c
65
char *res;
usr.bin/setcaps/setcaps.c
128
res = syscap_set(i | __SYSCAP_INPARENT, flags, NULL, 0);
usr.bin/setcaps/setcaps.c
129
if (res < 0) {
usr.bin/setcaps/setcaps.c
135
if (res & __SYSCAP_EXEC)
usr.bin/setcaps/setcaps.c
137
if (res & __SYSCAP_SELF)
usr.bin/setcaps/setcaps.c
172
int res;
usr.bin/setcaps/setcaps.c
174
res = syscap_get(i | __SYSCAP_INPARENT, NULL, 0);
usr.bin/setcaps/setcaps.c
175
if (res < 0)
usr.bin/setcaps/setcaps.c
177
if (res) {
usr.bin/setcaps/setcaps.c
181
printf("0x%04x ", res);
usr.bin/setcaps/setcaps.c
183
if (res & __SYSCAP_EXEC)
usr.bin/setcaps/setcaps.c
185
if (res & __SYSCAP_SELF)
usr.bin/setcaps/setcaps.c
95
int res;
usr.bin/sort/bwstring.c
582
int res = 0;
usr.bin/sort/bwstring.c
611
res = memcmp(s1, s2, cmp_len);
usr.bin/sort/bwstring.c
619
res = memcmp(s1, s2, SIZEOF_WCHAR_STRING(cmp_len));
usr.bin/sort/bwstring.c
624
if (res == 0) {
usr.bin/sort/bwstring.c
626
res = -1;
usr.bin/sort/bwstring.c
628
res = +1;
usr.bin/sort/bwstring.c
631
return (res);
usr.bin/sort/bwstring.c
638
int res;
usr.bin/sort/bwstring.c
651
res = bwsncmp(bws1, bws2, offset, cmp_len);
usr.bin/sort/bwstring.c
653
if (res == 0) {
usr.bin/sort/bwstring.c
655
res = -1;
usr.bin/sort/bwstring.c
657
res = +1;
usr.bin/sort/bwstring.c
660
return (res);
usr.bin/sort/bwstring.c
705
int res = 0;
usr.bin/sort/bwstring.c
708
res = memcmp(s1, s2, len2);
usr.bin/sort/bwstring.c
709
if (!res)
usr.bin/sort/bwstring.c
710
res = +1;
usr.bin/sort/bwstring.c
712
res = memcmp(s1, s2, len1);
usr.bin/sort/bwstring.c
713
if (!res)
usr.bin/sort/bwstring.c
714
res = -1;
usr.bin/sort/bwstring.c
716
res = memcmp(s1, s2, len1);
usr.bin/sort/bwstring.c
718
return (res);
usr.bin/sort/bwstring.c
721
int res = 0;
usr.bin/sort/bwstring.c
748
res = strcoll((const char*)(s1 + i), (const char*)(s2 + i));
usr.bin/sort/bwstring.c
749
if (res)
usr.bin/sort/bwstring.c
750
return (res);
usr.bin/sort/bwstring.c
782
int res = 0;
usr.bin/sort/bwstring.c
812
res = wide_str_coll(s1 + i, s2 + i);
usr.bin/sort/bwstring.c
813
if (res)
usr.bin/sort/bwstring.c
814
return (res);
usr.bin/sort/coll.c
485
int res = 0;
usr.bin/sort/coll.c
491
res = sm->func(&(ps2->key[i]), &(ps1->key[i]), offset);
usr.bin/sort/coll.c
493
res = sm->func(&(ps1->key[i]), &(ps2->key[i]), offset);
usr.bin/sort/coll.c
495
if (res)
usr.bin/sort/coll.c
501
return (res);
usr.bin/sort/file.c
1568
int res = pthread_create(&pth, &attr,
usr.bin/sort/file.c
1571
if (res >= 0)
usr.bin/sort/file.c
406
int res;
usr.bin/sort/file.c
414
res = 0;
usr.bin/sort/file.c
463
res = 1;
usr.bin/sort/file.c
525
if (res)
usr.bin/sort/file.c
526
exit(res);
usr.bin/sort/radixsort.c
622
int res = pthread_create(&pth, &attr,
usr.bin/sort/radixsort.c
624
if (res >= 0)
usr.bin/sort/sort.c
330
int res;
usr.bin/sort/sort.c
332
res = mbtowc(wc, c, MB_CUR_MAX);
usr.bin/sort/sort.c
333
if (res < 1)
usr.bin/tail/extern.h
33
ssize_t res; \
usr.bin/tail/extern.h
34
res = write(STDOUT_FILENO, p, size); \
usr.bin/tail/extern.h
35
if (res != (ssize_t)size) { \
usr.bin/tail/extern.h
36
if (res == -1) \
usr.bin/telnet/authenc.c
88
char *res;
usr.bin/telnet/authenc.c
93
res = fgets(result, length, stdin);
usr.bin/telnet/authenc.c
94
} else if ((res = getpass(prom))) {
usr.bin/telnet/authenc.c
95
strncpy(result, res, length);
usr.bin/telnet/authenc.c
96
res = result;
usr.bin/telnet/authenc.c
99
return(res);
usr.bin/telnet/commands.c
2117
struct addrinfo hints, *res, *res0 = NULL, *src_res, *src_res0 = NULL;
usr.bin/telnet/commands.c
2247
error = getaddrinfo(hostname, portp, &hints, &res);
usr.bin/telnet/commands.c
2250
error = getaddrinfo(hostname, portp, &hints, &res);
usr.bin/telnet/commands.c
2264
gni_err = getnameinfo(res->ai_addr, res->ai_addr->sa_len,
usr.bin/telnet/commands.c
2275
else if (res->ai_canonname != NULL)
usr.bin/telnet/commands.c
2276
strcpy(_hostname, res->ai_canonname);
usr.bin/telnet/commands.c
2282
res0 = res;
usr.bin/telnet/commands.c
2295
result = sourceroute(res, hostp, &srp, &srlen, &proto, &opt);
usr.bin/telnet/commands.c
2299
switch_af(&res) == 1) {
usr.bin/telnet/commands.c
2313
printf("Trying %s...\n", sockaddr_ntop(res->ai_addr));
usr.bin/telnet/commands.c
2314
net = socket(res->ai_family, res->ai_socktype, res->ai_protocol);
usr.bin/telnet/commands.c
2319
switch_af(&res) == 1) {
usr.bin/telnet/commands.c
2330
if (res->ai_family == PF_INET) {
usr.bin/telnet/commands.c
2352
if (src_res->ai_family == res->ai_family)
usr.bin/telnet/commands.c
2359
switch_af(&res) == 1) {
usr.bin/telnet/commands.c
2371
if (connect(net, res->ai_addr, res->ai_addrlen) < 0) {
usr.bin/telnet/commands.c
2374
next = res->ai_next;
usr.bin/telnet/commands.c
2377
while (next != NULL && next->ai_family != res->ai_family)
usr.bin/telnet/commands.c
2379
warn("connect to address %s", sockaddr_ntop(res->ai_addr));
usr.bin/telnet/commands.c
2381
res = next;
usr.bin/telnet/commands.c
2779
struct addrinfo hints, *res;
usr.bin/telnet/commands.c
2790
switch (res->ai_family) {
usr.bin/telnet/commands.c
2887
error = getaddrinfo(cp, NULL, &hints, &res);
usr.bin/telnet/commands.c
2890
error = getaddrinfo(cp, NULL, &hints, &res);
usr.bin/telnet/commands.c
2901
if (res->ai_family == AF_INET6) {
usr.bin/telnet/commands.c
2906
_sin = (struct sockaddr_in *)res->ai_addr;
usr.bin/telnet/commands.c
2919
if (res->ai_family == AF_INET6) {
usr.bin/telnet/commands.c
2928
freeaddrinfo(res);
usr.bin/telnet/commands.c
2931
if (res->ai_family == AF_INET6) {
usr.bin/telnet/commands.c
2946
freeaddrinfo(res);
usr.bin/tftp/main.c
164
struct addrinfo hints, *res0, *res;
usr.bin/tftp/main.c
188
for (res = res0; res; res = res->ai_next) {
usr.bin/tftp/main.c
189
if (res->ai_addrlen > sizeof(peeraddr))
usr.bin/tftp/main.c
191
f = socket(res->ai_family, res->ai_socktype, res->ai_protocol);
usr.bin/tftp/main.c
198
ss.ss_family = res->ai_family;
usr.bin/tftp/main.c
199
ss.ss_len = res->ai_addrlen;
usr.bin/tftp/main.c
214
memcpy(&peeraddr, res->ai_addr, res->ai_addrlen);
usr.bin/tftp/main.c
215
if (res->ai_canonname) {
usr.bin/tftp/main.c
216
(void) strncpy(hostname, res->ai_canonname,
usr.bin/tip/hunt.c
53
int res;
usr.bin/tip/hunt.c
62
if ((res = uu_lock(uucplock)) != UU_LOCK_OK) {
usr.bin/tip/hunt.c
63
if (res != UU_LOCK_INUSE)
usr.bin/tip/hunt.c
64
fprintf(stderr, "uu_lock: %s\n", uu_lockerr(res));
usr.bin/whois/whois.c
220
struct addrinfo hints, *res;
usr.bin/whois/whois.c
227
error = getaddrinfo(host, port, &hints, &res);
usr.bin/whois/whois.c
237
return (res);
usr.bin/whois/whois.c
261
struct addrinfo *hostres, *res;
usr.bin/whois/whois.c
267
for (res = hostres; res; res = res->ai_next) {
usr.bin/whois/whois.c
268
s = socket(res->ai_family, res->ai_socktype, res->ai_protocol);
usr.bin/whois/whois.c
271
if (connect(s, res->ai_addr, res->ai_addrlen) == 0)
usr.bin/whois/whois.c
276
if (res == NULL)
usr.bin/xinstall/xinstall.c
1089
int res;
usr.bin/xinstall/xinstall.c
1092
res = mkdir(path, nmode);
usr.bin/xinstall/xinstall.c
1093
if (res < 0 && errno == EEXIST) {
usr.bin/xinstall/xinstall.c
1096
res = mkdir(path, nmode);
usr.bin/xinstall/xinstall.c
1098
return (res);
usr.sbin/bootparamd/bootparamd/bootparamd.c
101
return(&res);
usr.sbin/bootparamd/bootparamd/bootparamd.c
114
static bp_getfile_res res;
usr.sbin/bootparamd/bootparamd/bootparamd.c
140
bcopy( he->h_addr, &res.server_address.bp_address_u.ip_addr, 4);
usr.sbin/bootparamd/bootparamd/bootparamd.c
141
res.server_name = hostname;
usr.sbin/bootparamd/bootparamd/bootparamd.c
142
res.server_path = path;
usr.sbin/bootparamd/bootparamd/bootparamd.c
143
res.server_address.address_type = IP_ADDR_TYPE;
usr.sbin/bootparamd/bootparamd/bootparamd.c
147
res.server_name = "";
usr.sbin/bootparamd/bootparamd/bootparamd.c
148
res.server_path = "";
usr.sbin/bootparamd/bootparamd/bootparamd.c
149
res.server_address.address_type = IP_ADDR_TYPE;
usr.sbin/bootparamd/bootparamd/bootparamd.c
150
bzero(&res.server_address.bp_address_u.ip_addr,4);
usr.sbin/bootparamd/bootparamd/bootparamd.c
155
res.server_name, res.server_path,
usr.sbin/bootparamd/bootparamd/bootparamd.c
156
255 & res.server_address.bp_address_u.ip_addr.net,
usr.sbin/bootparamd/bootparamd/bootparamd.c
157
255 & res.server_address.bp_address_u.ip_addr.host,
usr.sbin/bootparamd/bootparamd/bootparamd.c
158
255 & res.server_address.bp_address_u.ip_addr.lh,
usr.sbin/bootparamd/bootparamd/bootparamd.c
159
255 & res.server_address.bp_address_u.ip_addr.impno);
usr.sbin/bootparamd/bootparamd/bootparamd.c
162
res.server_name, res.server_path,
usr.sbin/bootparamd/bootparamd/bootparamd.c
163
255 & res.server_address.bp_address_u.ip_addr.net,
usr.sbin/bootparamd/bootparamd/bootparamd.c
164
255 & res.server_address.bp_address_u.ip_addr.host,
usr.sbin/bootparamd/bootparamd/bootparamd.c
165
255 & res.server_address.bp_address_u.ip_addr.lh,
usr.sbin/bootparamd/bootparamd/bootparamd.c
166
255 & res.server_address.bp_address_u.ip_addr.impno);
usr.sbin/bootparamd/bootparamd/bootparamd.c
167
return(&res);
usr.sbin/bootparamd/bootparamd/bootparamd.c
193
int ch, pch, fid_len, res = 0;
usr.sbin/bootparamd/bootparamd/bootparamd.c
248
while ( ! res && (fscanf(bpf,"%s", info)) > 0) { /* read a string */
usr.sbin/bootparamd/bootparamd/bootparamd.c
255
res = 1; break;
usr.sbin/bootparamd/bootparamd/bootparamd.c
261
res = -1; break; /* but host is there */
usr.sbin/bootparamd/bootparamd/bootparamd.c
273
if ( res == -1) buffer[0] = '\0'; /* host found, file not */
usr.sbin/bootparamd/bootparamd/bootparamd.c
286
int res = 0;
usr.sbin/bootparamd/bootparamd/bootparamd.c
305
res = 1;
usr.sbin/bootparamd/bootparamd/bootparamd.c
312
res = 1;
usr.sbin/bootparamd/bootparamd/bootparamd.c
329
res = 1;
usr.sbin/bootparamd/bootparamd/bootparamd.c
335
return(res);
usr.sbin/bootparamd/bootparamd/bootparamd.c
347
return(res);
usr.sbin/bootparamd/bootparamd/bootparamd.c
50
static bp_whoami_res res;
usr.sbin/bootparamd/bootparamd/bootparamd.c
76
res.client_name = hostname;
usr.sbin/bootparamd/bootparamd/bootparamd.c
78
res.domain_name = domain_name;
usr.sbin/bootparamd/bootparamd/bootparamd.c
80
if ( res.router_address.address_type != IP_ADDR_TYPE ) {
usr.sbin/bootparamd/bootparamd/bootparamd.c
81
res.router_address.address_type = IP_ADDR_TYPE;
usr.sbin/bootparamd/bootparamd/bootparamd.c
82
bcopy( &route_addr, &res.router_address.bp_address_u.ip_addr, sizeof(in_addr_t));
usr.sbin/bootparamd/bootparamd/bootparamd.c
86
res.client_name,
usr.sbin/bootparamd/bootparamd/bootparamd.c
87
res.domain_name,
usr.sbin/bootparamd/bootparamd/bootparamd.c
88
255 & res.router_address.bp_address_u.ip_addr.net,
usr.sbin/bootparamd/bootparamd/bootparamd.c
89
255 & res.router_address.bp_address_u.ip_addr.host,
usr.sbin/bootparamd/bootparamd/bootparamd.c
90
255 & res.router_address.bp_address_u.ip_addr.lh,
usr.sbin/bootparamd/bootparamd/bootparamd.c
91
255 & res.router_address.bp_address_u.ip_addr.impno);
usr.sbin/bootparamd/bootparamd/bootparamd.c
94
res.client_name,
usr.sbin/bootparamd/bootparamd/bootparamd.c
95
res.domain_name,
usr.sbin/bootparamd/bootparamd/bootparamd.c
96
255 & res.router_address.bp_address_u.ip_addr.net,
usr.sbin/bootparamd/bootparamd/bootparamd.c
97
255 & res.router_address.bp_address_u.ip_addr.host,
usr.sbin/bootparamd/bootparamd/bootparamd.c
98
255 & res.router_address.bp_address_u.ip_addr.lh,
usr.sbin/bootparamd/bootparamd/bootparamd.c
99
255 & res.router_address.bp_address_u.ip_addr.impno);
usr.sbin/bootparamd/callbootd/callbootd.c
160
printwhoami(bp_whoami_res *res)
usr.sbin/bootparamd/callbootd/callbootd.c
162
if ( res) {
usr.sbin/bootparamd/callbootd/callbootd.c
164
res->client_name, res->domain_name);
usr.sbin/bootparamd/callbootd/callbootd.c
166
255 & res->router_address.bp_address_u.ip_addr.net,
usr.sbin/bootparamd/callbootd/callbootd.c
167
255 & res->router_address.bp_address_u.ip_addr.host,
usr.sbin/bootparamd/callbootd/callbootd.c
168
255 & res->router_address.bp_address_u.ip_addr.lh,
usr.sbin/bootparamd/callbootd/callbootd.c
169
255 & res->router_address.bp_address_u.ip_addr.impno);
usr.sbin/bootparamd/callbootd/callbootd.c
181
printgetfile(bp_getfile_res *res)
usr.sbin/bootparamd/callbootd/callbootd.c
183
if (res) {
usr.sbin/bootparamd/callbootd/callbootd.c
185
res->server_name,
usr.sbin/bootparamd/callbootd/callbootd.c
186
inet_ntoa(*(struct in_addr *)&res->server_address.bp_address_u.ip_addr),
usr.sbin/bootparamd/callbootd/callbootd.c
187
res->server_path);
usr.sbin/burncd/burncd.c
498
int res;
usr.sbin/burncd/burncd.c
507
if ((res = write(fd, buf, count)) != count) {
usr.sbin/burncd/burncd.c
509
res, count, errno);
usr.sbin/cpucontrol/amd.h
78
uint16_t res;
usr.sbin/dconschat/dconschat.c
118
struct addrinfo *res;
usr.sbin/dconschat/dconschat.c
502
struct addrinfo hints, *res;
usr.sbin/dconschat/dconschat.c
550
error = getaddrinfo(host, service, &hints, &res);
usr.sbin/dconschat/dconschat.c
553
p->res = res;
usr.sbin/dconschat/dconschat.c
554
p->s = socket(res->ai_family, res->ai_socktype, res->ai_protocol);
usr.sbin/dconschat/dconschat.c
559
if (bind(p->s, p->res->ai_addr, p->res->ai_addrlen) < 0) {
usr.sbin/dconschat/dconschat.c
578
foo = p->res->ai_addrlen;
usr.sbin/dconschat/dconschat.c
579
ns = accept(p->s, p->res->ai_addr, &foo);
usr.sbin/dconschat/dconschat.c
960
freeaddrinfo(dc->port[i].res);
usr.sbin/devinfo/devinfo.c
177
print_rman_resource(struct devinfo_res *res, void *arg __unused)
usr.sbin/devinfo/devinfo.c
182
print_resource(res);
usr.sbin/devinfo/devinfo.c
183
dev = devinfo_handle_to_device(res->dr_device);
usr.sbin/devinfo/devinfo.c
61
print_resource(struct devinfo_res *res)
usr.sbin/devinfo/devinfo.c
66
rman = devinfo_handle_to_rman(res->dr_rman);
usr.sbin/devinfo/devinfo.c
68
printf(hexmode ? "0x%lx" : "%lu", res->dr_start);
usr.sbin/devinfo/devinfo.c
69
if (res->dr_size > 1)
usr.sbin/devinfo/devinfo.c
71
res->dr_start + res->dr_size - 1);
usr.sbin/devinfo/devinfo.c
82
print_device_matching_resource(struct devinfo_res *res, void *arg)
usr.sbin/devinfo/devinfo.c
88
if (devinfo_handle_to_device(res->dr_device) == dev) {
usr.sbin/devinfo/devinfo.c
94
print_resource(res);
usr.sbin/dntpd/socket.c
43
struct addrinfo hints, *res, *res0;
usr.sbin/dntpd/socket.c
63
for (res = res0; res; res = res->ai_next) {
usr.sbin/dntpd/socket.c
64
fd = socket(res->ai_family, res->ai_socktype,
usr.sbin/dntpd/socket.c
65
res->ai_protocol);
usr.sbin/dntpd/socket.c
78
if (connect(fd, res->ai_addr, res->ai_addrlen) < 0) {
usr.sbin/dntpd/socket.c
92
memcpy(sam, res->ai_addr, res->ai_addr->sa_len);
usr.sbin/fstyp/hammer2.c
185
find_pfs(FILE *fp, const hammer2_blockref_t *bref, const char *pfs, bool *res)
usr.sbin/fstyp/hammer2.c
211
*res = true;
usr.sbin/fstyp/hammer2.c
216
*res = true;
usr.sbin/fstyp/hammer2.c
236
if (find_pfs(fp, &bscan[i], pfs, res) == -1) {
usr.sbin/fstyp/hammer2.c
283
bool res = false;
usr.sbin/fstyp/hammer2.c
354
if (find_pfs(fp, bref, pfs, &res) == 0 && res) {
usr.sbin/ftp-proxy/ftp-proxy.c
622
struct addrinfo hints, *res;
usr.sbin/ftp-proxy/ftp-proxy.c
730
error = getaddrinfo(fixed_proxy, NULL, &hints, &res);
usr.sbin/ftp-proxy/ftp-proxy.c
734
memcpy(&fixed_proxy_ss, res->ai_addr, res->ai_addrlen);
usr.sbin/ftp-proxy/ftp-proxy.c
737
freeaddrinfo(res);
usr.sbin/ftp-proxy/ftp-proxy.c
745
&res);
usr.sbin/ftp-proxy/ftp-proxy.c
749
memcpy(&fixed_server_ss, res->ai_addr, res->ai_addrlen);
usr.sbin/ftp-proxy/ftp-proxy.c
752
freeaddrinfo(res);
usr.sbin/ftp-proxy/ftp-proxy.c
760
error = getaddrinfo(listen_ip, listen_port, &hints, &res);
usr.sbin/ftp-proxy/ftp-proxy.c
764
if ((listenfd = socket(res->ai_family, SOCK_STREAM, IPPROTO_TCP)) == -1)
usr.sbin/ftp-proxy/ftp-proxy.c
770
if (bind(listenfd, (struct sockaddr *)res->ai_addr,
usr.sbin/ftp-proxy/ftp-proxy.c
771
(socklen_t)res->ai_addrlen) != 0)
usr.sbin/ftp-proxy/ftp-proxy.c
775
freeaddrinfo(res);
usr.sbin/fwcontrol/fwcontrol.c
115
u_int32_t *qld, res;
usr.sbin/fwcontrol/fwcontrol.c
142
res = qld[3];
usr.sbin/fwcontrol/fwcontrol.c
145
return ntohl(res);
usr.sbin/inetd/inetd.c
315
struct addrinfo hints, *res;
usr.sbin/inetd/inetd.c
379
error = getaddrinfo(hostname, servname, &hints, &res);
usr.sbin/inetd/inetd.c
387
if (res->ai_addr == NULL) {
usr.sbin/inetd/inetd.c
391
switch (res->ai_addr->sa_family) {
usr.sbin/inetd/inetd.c
395
bind_sa4 = (struct sockaddr_in *)res->ai_addr;
usr.sbin/inetd/inetd.c
404
bind_sa6 = (struct sockaddr_in6 *)res->ai_addr;
usr.sbin/inetd/inetd.c
417
} while ((res = res->ai_next) != NULL);
usr.sbin/installer/dfuibe_installer/fn_subpart_hammer.c
899
char *res;
usr.sbin/installer/dfuibe_installer/fn_subpart_hammer.c
903
res = strdup("ROOT");
usr.sbin/installer/dfuibe_installer/fn_subpart_hammer.c
909
res = malloc(strlen(mtpt) + 1);
usr.sbin/installer/dfuibe_installer/fn_subpart_hammer.c
911
res[i] = toupper(mtpt[i]);
usr.sbin/installer/dfuibe_installer/fn_subpart_hammer.c
912
res[i] = 0;
usr.sbin/installer/dfuibe_installer/fn_subpart_hammer.c
914
return res;
usr.sbin/ip6addrctl/ip6addrctl.c
262
struct addrinfo hints, *res;
usr.sbin/ip6addrctl/ip6addrctl.c
277
if ((e = getaddrinfo(prefix, NULL, &hints, &res)) != 0) {
usr.sbin/ip6addrctl/ip6addrctl.c
282
memcpy(&pol->addr, res->ai_addr, res->ai_addrlen);
usr.sbin/ip6addrctl/ip6addrctl.c
283
freeaddrinfo(res);
usr.sbin/keyserv/keyserv.c
340
static cryptkeyres res;
usr.sbin/keyserv/keyserv.c
347
res.cryptkeyres_u.deskey = arg->deskey;
usr.sbin/keyserv/keyserv.c
348
res.status = pk_encrypt(uid, arg->remotename, &(arg->remotekey),
usr.sbin/keyserv/keyserv.c
349
&res.cryptkeyres_u.deskey);
usr.sbin/keyserv/keyserv.c
351
if (res.status == KEY_SUCCESS) {
usr.sbin/keyserv/keyserv.c
353
res.cryptkeyres_u.deskey.key.high,
usr.sbin/keyserv/keyserv.c
354
res.cryptkeyres_u.deskey.key.low);
usr.sbin/keyserv/keyserv.c
356
fprintf(stderr, "%s\n", strstatus(res.status));
usr.sbin/keyserv/keyserv.c
360
return (&res);
usr.sbin/keyserv/keyserv.c
366
static cryptkeyres res;
usr.sbin/keyserv/keyserv.c
373
res.cryptkeyres_u.deskey = arg->deskey;
usr.sbin/keyserv/keyserv.c
374
res.status = pk_decrypt(uid, arg->remotename, &(arg->remotekey),
usr.sbin/keyserv/keyserv.c
375
&res.cryptkeyres_u.deskey);
usr.sbin/keyserv/keyserv.c
377
if (res.status == KEY_SUCCESS) {
usr.sbin/keyserv/keyserv.c
379
res.cryptkeyres_u.deskey.key.high,
usr.sbin/keyserv/keyserv.c
380
res.cryptkeyres_u.deskey.key.low);
usr.sbin/keyserv/keyserv.c
382
fprintf(stderr, "%s\n", strstatus(res.status));
usr.sbin/keyserv/keyserv.c
386
return (&res);
usr.sbin/keyserv/keyserv.c
441
static cryptkeyres res;
usr.sbin/keyserv/keyserv.c
448
res.status = pk_get_conv_key(uid, arg, &res);
usr.sbin/keyserv/keyserv.c
451
if (res.status == KEY_SUCCESS) {
usr.sbin/keyserv/keyserv.c
453
res.cryptkeyres_u.deskey.key.high,
usr.sbin/keyserv/keyserv.c
454
res.cryptkeyres_u.deskey.key.low);
usr.sbin/keyserv/keyserv.c
456
fprintf(stderr, "%s\n", strstatus(res.status));
usr.sbin/keyserv/keyserv.c
460
return (&res);
usr.sbin/keyserv/keyserv.c
467
static cryptkeyres res;
usr.sbin/keyserv/keyserv.c
474
res.cryptkeyres_u.deskey = arg->deskey;
usr.sbin/keyserv/keyserv.c
475
res.status = pk_encrypt(uid, arg->remotename, NULL,
usr.sbin/keyserv/keyserv.c
476
&res.cryptkeyres_u.deskey);
usr.sbin/keyserv/keyserv.c
478
if (res.status == KEY_SUCCESS) {
usr.sbin/keyserv/keyserv.c
480
res.cryptkeyres_u.deskey.key.high,
usr.sbin/keyserv/keyserv.c
481
res.cryptkeyres_u.deskey.key.low);
usr.sbin/keyserv/keyserv.c
483
fprintf(stderr, "%s\n", strstatus(res.status));
usr.sbin/keyserv/keyserv.c
487
return (&res);
usr.sbin/keyserv/keyserv.c
493
static cryptkeyres res;
usr.sbin/keyserv/keyserv.c
500
res.cryptkeyres_u.deskey = arg->deskey;
usr.sbin/keyserv/keyserv.c
501
res.status = pk_decrypt(uid, arg->remotename, NULL,
usr.sbin/keyserv/keyserv.c
502
&res.cryptkeyres_u.deskey);
usr.sbin/keyserv/keyserv.c
504
if (res.status == KEY_SUCCESS) {
usr.sbin/keyserv/keyserv.c
506
res.cryptkeyres_u.deskey.key.high,
usr.sbin/keyserv/keyserv.c
507
res.cryptkeyres_u.deskey.key.low);
usr.sbin/keyserv/keyserv.c
509
fprintf(stderr, "%s\n", strstatus(res.status));
usr.sbin/keyserv/keyserv.c
513
return (&res);
usr.sbin/keyserv/keyserv.c
542
static getcredres res;
usr.sbin/keyserv/keyserv.c
546
cred = &res.getcredres_u.cred;
usr.sbin/keyserv/keyserv.c
550
res.status = KEY_UNKNOWN;
usr.sbin/keyserv/keyserv.c
552
res.status = KEY_SUCCESS;
usr.sbin/keyserv/keyserv.c
556
if (res.status == KEY_SUCCESS) {
usr.sbin/keyserv/keyserv.c
560
fprintf(stderr, "%s\n", strstatus(res.status));
usr.sbin/keyserv/keyserv.c
564
return (&res);
usr.sbin/lpr/common_source/common.c
273
int chres, errsav, fd, res, statres;
usr.sbin/lpr/common_source/common.c
338
res = 0;
usr.sbin/lpr/common_source/common.c
345
res = SQS_CHGOK;
usr.sbin/lpr/common_source/common.c
347
res = SQS_CHGFAIL;
usr.sbin/lpr/common_source/common.c
354
res = SQS_SKIPCREOK;
usr.sbin/lpr/common_source/common.c
368
res = SQS_CREFAIL;
usr.sbin/lpr/common_source/common.c
370
res = SQS_CREOK;
usr.sbin/lpr/common_source/common.c
375
switch (res) {
usr.sbin/lpr/common_source/common.c
391
return (res);
usr.sbin/lpr/common_source/ctlinfo.c
394
int chk3rd, newfd, nogood, res;
usr.sbin/lpr/common_source/ctlinfo.c
403
res = stat(TRIGGERTEST_FNAME, &tstat);
usr.sbin/lpr/common_source/ctlinfo.c
404
if (res == -1) {
usr.sbin/lpr/common_source/ctlinfo.c
412
res = link(tfname, cfname2);
usr.sbin/lpr/common_source/ctlinfo.c
413
if (res < 0) {
usr.sbin/lpr/common_source/ctlinfo.c
619
res = fclose(newcf);
usr.sbin/lpr/common_source/ctlinfo.c
621
if (res != 0) {
usr.sbin/lpr/common_source/ctlinfo.c
630
res = link(tfname2, cfname2);
usr.sbin/lpr/common_source/ctlinfo.c
631
if (res != 0) {
usr.sbin/lpr/common_source/ctlinfo.c
644
res = stat(tfname, &tfstat);
usr.sbin/lpr/common_source/ctlinfo.c
647
res = stat(tfname2, &tfstat);
usr.sbin/lpr/common_source/net.c
101
&hints, &res);
usr.sbin/lpr/common_source/net.c
105
((struct sockaddr_in *) res->ai_addr)->sin_port = htons(rport);
usr.sbin/lpr/common_source/net.c
110
ai = res;
usr.sbin/lpr/common_source/net.c
125
ai = res;
usr.sbin/lpr/common_source/net.c
129
freeaddrinfo(res);
usr.sbin/lpr/common_source/net.c
157
ai = res;
usr.sbin/lpr/common_source/net.c
160
freeaddrinfo(res);
usr.sbin/lpr/common_source/net.c
163
freeaddrinfo(res);
usr.sbin/lpr/common_source/net.c
87
struct addrinfo hints, *res, *ai;
usr.sbin/lpr/lpc/cmds.c
270
int errsav, killres, lockres, res;
usr.sbin/lpr/lpc/cmds.c
276
res = KQT_NODAEMON;
usr.sbin/lpr/lpc/cmds.c
284
res = KQT_LFERROR;
usr.sbin/lpr/lpc/cmds.c
309
res = KQT_LFERROR;
usr.sbin/lpr/lpc/cmds.c
318
res = KQT_KILLOK;
usr.sbin/lpr/lpc/cmds.c
321
res = KQT_NODAEMON;
usr.sbin/lpr/lpc/cmds.c
323
res = KQT_KILLFAIL;
usr.sbin/lpr/lpc/cmds.c
329
switch (res) {
usr.sbin/lpr/lpc/cmds.c
346
return (res);
usr.sbin/lpr/lpc/cmds.c
482
int cat_a, cat_b, ch, res, seq_a, seq_b;
usr.sbin/lpr/lpc/cmds.c
536
res = strcmp(fname_a, fname_b);
usr.sbin/lpr/lpc/cmds.c
538
res = a_lt_b;
usr.sbin/lpr/lpc/cmds.c
540
res = a_gt_b;
usr.sbin/lpr/lpc/cmds.c
548
res = strcmp(jnum_a, jnum_b);
usr.sbin/lpr/lpc/cmds.c
549
if (res != 0)
usr.sbin/lpr/lpc/cmds.c
557
res = a_lt_b;
usr.sbin/lpr/lpc/cmds.c
560
res = a_gt_b;
usr.sbin/lpr/lpc/cmds.c
569
res = a_lt_b;
usr.sbin/lpr/lpc/cmds.c
572
res = a_gt_b;
usr.sbin/lpr/lpc/cmds.c
586
res = 0;
usr.sbin/lpr/lpc/cmds.c
589
return res;
usr.sbin/lpr/lpc/cmds.c
770
int res;
usr.sbin/lpr/lpc/cmds.c
780
res = lstat(name, &stbuf);
usr.sbin/lpr/lpc/cmds.c
782
if (res < 0) {
usr.sbin/lpr/lpc/cmds.c
804
res = readlink(name, linkbuf, sizeof(linkbuf));
usr.sbin/lpr/lpc/cmds.c
806
if (res < 0) {
usr.sbin/lpr/lpc/cmds.c
811
if (res == sizeof(linkbuf))
usr.sbin/lpr/lpc/cmds.c
812
res--;
usr.sbin/lpr/lpc/cmds.c
813
linkbuf[res] = '\0';
usr.sbin/lpr/lpc/cmds.c
826
res = unlink(name);
usr.sbin/lpr/lpc/cmds.c
828
if (res < 0)
usr.sbin/lpr/lpd/lpd.c
643
struct addrinfo hints, *res, *r;
usr.sbin/lpr/lpd/lpd.c
703
if (getaddrinfo(from_host, NULL, &hints, &res) == 0) {
usr.sbin/lpr/lpd/lpd.c
704
freeaddrinfo(res);
usr.sbin/lpr/lpd/lpd.c
718
error = getaddrinfo(from_host, NULL, &hints, &res);
usr.sbin/lpr/lpd/lpd.c
728
for (r = res; good == 0 && r; r = r->ai_next) {
usr.sbin/lpr/lpd/lpd.c
734
if (res)
usr.sbin/lpr/lpd/lpd.c
735
freeaddrinfo(res);
usr.sbin/lpr/lpd/lpd.c
848
struct addrinfo hints, *res, *r;
usr.sbin/lpr/lpd/lpd.c
856
error = getaddrinfo(NULL, "printer", &hints, &res);
usr.sbin/lpr/lpd/lpd.c
863
for (maxs = 0, r = res; r; r = r->ai_next, maxs++)
usr.sbin/lpr/lpd/lpd.c
873
for (r = res; r; r = r->ai_next) {
usr.sbin/lpr/lpd/lpd.c
912
if (res)
usr.sbin/lpr/lpd/lpd.c
913
freeaddrinfo(res);
usr.sbin/makefs/hammer2/zlib/hammer2_zlib_trees.c
1164
register unsigned res = 0;
usr.sbin/makefs/hammer2/zlib/hammer2_zlib_trees.c
1166
res |= code & 1;
usr.sbin/makefs/hammer2/zlib/hammer2_zlib_trees.c
1167
code >>= 1, res <<= 1;
usr.sbin/makefs/hammer2/zlib/hammer2_zlib_trees.c
1169
return res >> 1;
usr.sbin/makefs/mtree.c
157
char *res, *rp[MAKEFS_MAX_TREE_DEPTH];
usr.sbin/makefs/mtree.c
180
res = estrdup(sbuf_data(sb));
usr.sbin/makefs/mtree.c
182
if (res == NULL)
usr.sbin/makefs/mtree.c
184
return res;
usr.sbin/makefs/mtree.c
193
char *res, *var = NULL;
usr.sbin/makefs/mtree.c
210
res = estrdup(spec + quoted);
usr.sbin/makefs/mtree.c
212
res[len - 2] = '\0';
usr.sbin/makefs/mtree.c
213
return (res);
usr.sbin/makefs/mtree.c
270
res = getcwd(NULL, 0);
usr.sbin/makefs/mtree.c
271
if (res == NULL)
usr.sbin/makefs/mtree.c
274
res = estrdup(getprogname());
usr.sbin/makefs/mtree.c
278
res = estrdup(v);
usr.sbin/makefs/mtree.c
280
res = NULL;
usr.sbin/makefs/mtree.c
284
if (res != NULL) {
usr.sbin/makefs/mtree.c
285
sbuf_cat(sb, res);
usr.sbin/makefs/mtree.c
286
free(res);
usr.sbin/makefs/mtree.c
294
res = (error == 0) ? strdup(sbuf_data(sb)) : NULL;
usr.sbin/makefs/mtree.c
296
if (res == NULL)
usr.sbin/makefs/mtree.c
298
return (res);
usr.sbin/makefs/mtree.c
463
read_number(const char *tok, u_int base, intmax_t *res, intmax_t min,
usr.sbin/makefs/mtree.c
474
*res = val;
usr.sbin/ndp/ndp.c
383
struct addrinfo hints, *res;
usr.sbin/ndp/ndp.c
396
gai_error = getaddrinfo(host, NULL, &hints, &res);
usr.sbin/ndp/ndp.c
402
sin->sin6_addr = ((struct sockaddr_in6 *)res->ai_addr)->sin6_addr;
usr.sbin/ndp/ndp.c
406
htons(((struct sockaddr_in6 *)res->ai_addr)->sin6_scope_id);
usr.sbin/ndp/ndp.c
462
struct addrinfo hints, *res;
usr.sbin/ndp/ndp.c
468
gai_error = getaddrinfo(host, NULL, &hints, &res);
usr.sbin/ndp/ndp.c
474
sin->sin6_addr = ((struct sockaddr_in6 *)res->ai_addr)->sin6_addr;
usr.sbin/ndp/ndp.c
478
htons(((struct sockaddr_in6 *)res->ai_addr)->sin6_scope_id);
usr.sbin/ndp/ndp.c
500
struct addrinfo hints, *res;
usr.sbin/ndp/ndp.c
508
gai_error = getaddrinfo(host, NULL, &hints, &res);
usr.sbin/ndp/ndp.c
514
sin->sin6_addr = ((struct sockaddr_in6 *)res->ai_addr)->sin6_addr;
usr.sbin/ndp/ndp.c
518
htons(((struct sockaddr_in6 *)res->ai_addr)->sin6_scope_id);
usr.sbin/newsyslog/newsyslog.c
1082
int eol, ptm_opts, res, special;
usr.sbin/newsyslog/newsyslog.c
1142
res = glob(q, GLOB_NOCHECK, NULL, &pglob);
usr.sbin/newsyslog/newsyslog.c
1143
if (res != 0) {
usr.sbin/newsyslog/newsyslog.c
1145
res, q);
usr.sbin/newsyslog/newsyslog.c
1279
res = ptime_relparse(working->trim_at, ptm_opts,
usr.sbin/newsyslog/newsyslog.c
1281
if (res == -2)
usr.sbin/newsyslog/newsyslog.c
1284
else if (res < 0)
usr.sbin/newsyslog/newsyslog.c
2540
int c, res;
usr.sbin/newsyslog/newsyslog.c
2542
res = link(from, to);
usr.sbin/newsyslog/newsyslog.c
2543
if (res == 0)
usr.sbin/newsyslog/newsyslog.c
2568
int res;
usr.sbin/newsyslog/newsyslog.c
2581
res = lstat(mkdirpath, &st);
usr.sbin/newsyslog/newsyslog.c
2582
if (res != 0) {
usr.sbin/newsyslog/newsyslog.c
2586
res = mkdir(mkdirpath, 0755);
usr.sbin/newsyslog/newsyslog.c
2587
if (res != 0)
usr.sbin/newsyslog/newsyslog.c
775
int res;
usr.sbin/newsyslog/newsyslog.c
783
res = ptime_relparse(dbg_timenow, PTM_PARSE_ISO8601,
usr.sbin/newsyslog/newsyslog.c
785
if (res == -2) {
usr.sbin/newsyslog/newsyslog.c
788
} else if (res < 0) {
usr.sbin/nscd/agent.c
102
res = bsearch(&model_p, at->agents, at->agents_num,
usr.sbin/nscd/agent.c
106
return ( res == NULL ? NULL : *res);
usr.sbin/nscd/agent.c
40
int res;
usr.sbin/nscd/agent.c
42
res = strcmp(ap1->name, ap2->name);
usr.sbin/nscd/agent.c
43
if (res == 0) {
usr.sbin/nscd/agent.c
45
res = 0;
usr.sbin/nscd/agent.c
47
res = -1;
usr.sbin/nscd/agent.c
49
res = 1;
usr.sbin/nscd/agent.c
52
return (res);
usr.sbin/nscd/agent.c
95
struct agent **res;
usr.sbin/nscd/config.c
112
int res;
usr.sbin/nscd/config.c
124
res = pthread_mutex_init(&retval->positive_cache_lock, NULL);
usr.sbin/nscd/config.c
125
if (res != 0) {
usr.sbin/nscd/config.c
133
res = pthread_mutex_init(&retval->negative_cache_lock, NULL);
usr.sbin/nscd/config.c
134
if (res != 0) {
usr.sbin/nscd/config.c
143
res = pthread_mutex_init(&retval->mp_cache_lock, NULL);
usr.sbin/nscd/config.c
144
if (res != 0) {
usr.sbin/nscd/config.c
194
struct configuration_entry *res = NULL;
usr.sbin/nscd/config.c
226
res = create_configuration_entry(name, &default_common_timeout,
usr.sbin/nscd/config.c
231
return (res);
usr.sbin/nscd/mp_rs_query.c
167
int res;
usr.sbin/nscd/mp_rs_query.c
252
res = mp_agent->mp_lookup_func(&buffer,
usr.sbin/nscd/mp_rs_query.c
256
if ((res & NS_TERMINATE) &&
usr.sbin/nscd/mp_rs_query.c
284
} while ((res & NS_TERMINATE) &&
usr.sbin/nscd/nscd.c
105
int res;
usr.sbin/nscd/nscd.c
120
res = register_cache_entry(retval, (struct cache_entry_params *)
usr.sbin/nscd/nscd.c
127
res = register_cache_entry(retval, (struct cache_entry_params *)
usr.sbin/nscd/nscd.c
232
int res;
usr.sbin/nscd/nscd.c
265
res = kevent(env->queue, eventlist, 2, NULL, 0, &timeout);
usr.sbin/nscd/nscd.c
266
if (res < 0)
usr.sbin/nscd/nscd.c
280
int eof_res, res;
usr.sbin/nscd/nscd.c
286
res = 0;
usr.sbin/nscd/nscd.c
346
res = qstate->process_func(qstate);
usr.sbin/nscd/nscd.c
349
(res == 0));
usr.sbin/nscd/nscd.c
351
if (res != 0)
usr.sbin/nscd/nscd.c
373
(eof_res != 0) || (res != 0)) {
usr.sbin/nscd/nscd.c
565
struct timespec res;
usr.sbin/nscd/nscd.c
566
memset(&res, 0, sizeof(struct timespec));
usr.sbin/nscd/nscd.c
567
clock_gettime(CLOCK_MONOTONIC, &res);
usr.sbin/nscd/nscd.c
569
time->tv_sec = res.tv_sec;
usr.sbin/nscd/nscd.c
598
int i, res;
usr.sbin/nscd/nscd.c
621
while ((res = getopt(argc, argv, "nstdi:I:")) != -1) {
usr.sbin/nscd/nscd.c
622
switch (res) {
usr.sbin/nscd/nscd.c
749
res = daemon(0, trace_mode_enabled == 0 ? 0 : 1);
usr.sbin/nscd/nscd.c
750
if (res != 0) {
usr.sbin/nscd/nscd.c
786
res = parse_config_file(s_configuration, config_file, &error_str,
usr.sbin/nscd/nscd.c
788
if ((res != 0) && (error_str == NULL)) {
usr.sbin/nscd/nscd.c
790
res = parse_config_file(s_configuration, config_file,
usr.sbin/nscd/nscd.c
794
if (res != 0) {
usr.sbin/nscd/nscdcli.c
131
int res;
usr.sbin/nscd/nscdcli.c
158
res = kevent(connection->write_queue, &eventlist, 1, NULL, 0, NULL);
usr.sbin/nscd/nscdcli.c
182
int res;
usr.sbin/nscd/nscdcli.c
194
res = connect(client_socket, (struct sockaddr *)&client_address,
usr.sbin/nscd/nscdcli.c
196
if (res == -1) {
usr.sbin/nscd/nscdcli.c
213
res = kevent(retval->write_queue, &eventlist, 1, NULL, 0, NULL);
usr.sbin/nscd/nscdcli.c
220
res = kevent(retval->read_queue, &eventlist, 1, NULL, 0, NULL);
usr.sbin/nscd/parser.c
281
int res = 0;
usr.sbin/nscd/parser.c
286
res = strtol(str, &end, 10);
usr.sbin/nscd/parser.c
290
if (((res >= low) || (low == -1)) &&
usr.sbin/nscd/parser.c
291
((res <= max) || (max == -1)))
usr.sbin/nscd/parser.c
292
return (res);
usr.sbin/nscd/parser.c
339
int res;
usr.sbin/nscd/parser.c
351
res = 0;
usr.sbin/nscd/parser.c
354
while ((res == 0) && (fgets(buffer, sizeof(buffer) - 1, fin) != NULL)) {
usr.sbin/nscd/parser.c
466
res = -1;
usr.sbin/nscd/parser.c
471
return (res);
usr.sbin/nscd/parser.c
91
int res;
usr.sbin/nscd/parser.c
98
res = add_configuration_entry(config, entry);
usr.sbin/nscd/parser.c
99
assert(res == 0);
usr.sbin/nscd/query.c
664
int res;
usr.sbin/nscd/query.c
761
res = c_agent->lookup_func(
usr.sbin/nscd/query.c
769
if (res == NS_SUCCESS) {
usr.sbin/nscd/query.c
782
} else if ((res == NS_NOTFOUND) ||
usr.sbin/nscd/query.c
783
(res == NS_RETURN)) {
usr.sbin/pfctl/pfctl.c
388
struct addrinfo hints, *res;
usr.sbin/pfctl/pfctl.c
402
if ((ret_ga = getaddrinfo(addr, NULL, &hints, &res))) {
usr.sbin/pfctl/pfctl.c
407
if (res->ai_family == AF_INET && prefix > 32)
usr.sbin/pfctl/pfctl.c
409
else if (res->ai_family == AF_INET6 && prefix > 128)
usr.sbin/pfctl/pfctl.c
414
switch (res->ai_family) {
usr.sbin/pfctl/pfctl.c
429
freeaddrinfo(res);
usr.sbin/pfctl/pfctl.c
436
struct addrinfo *res[2], *resp[2];
usr.sbin/pfctl/pfctl.c
451
if ((ret_ga = getaddrinfo(src_node_kill[0], NULL, NULL, &res[0]))) {
usr.sbin/pfctl/pfctl.c
455
for (resp[0] = res[0]; resp[0]; resp[0] = resp[0]->ai_next) {
usr.sbin/pfctl/pfctl.c
484
&res[1]))) {
usr.sbin/pfctl/pfctl.c
489
for (resp[1] = res[1]; resp[1];
usr.sbin/pfctl/pfctl.c
519
freeaddrinfo(res[1]);
usr.sbin/pfctl/pfctl.c
527
freeaddrinfo(res[0]);
usr.sbin/pfctl/pfctl.c
539
struct addrinfo *res[2], *resp[2];
usr.sbin/pfctl/pfctl.c
557
if ((ret_ga = getaddrinfo(state_kill[0], NULL, NULL, &res[0]))) {
usr.sbin/pfctl/pfctl.c
561
for (resp[0] = res[0]; resp[0]; resp[0] = resp[0]->ai_next) {
usr.sbin/pfctl/pfctl.c
590
&res[1]))) {
usr.sbin/pfctl/pfctl.c
595
for (resp[1] = res[1]; resp[1];
usr.sbin/pfctl/pfctl.c
625
freeaddrinfo(res[1]);
usr.sbin/pfctl/pfctl.c
633
freeaddrinfo(res[0]);
usr.sbin/pfctl/pfctl_parser.c
1533
struct addrinfo hints, *res;
usr.sbin/pfctl/pfctl_parser.c
1540
if (getaddrinfo(s, "0", &hints, &res) == 0) {
usr.sbin/pfctl/pfctl_parser.c
1547
&((struct sockaddr_in6 *)res->ai_addr)->sin6_addr,
usr.sbin/pfctl/pfctl_parser.c
1550
((struct sockaddr_in6 *)res->ai_addr)->sin6_scope_id;
usr.sbin/pfctl/pfctl_parser.c
1552
freeaddrinfo(res);
usr.sbin/pfctl/pfctl_parser.c
1563
struct addrinfo hints, *res0, *res;
usr.sbin/pfctl/pfctl_parser.c
1584
for (res = res0; res; res = res->ai_next) {
usr.sbin/pfctl/pfctl_parser.c
1585
if (res->ai_family != AF_INET &&
usr.sbin/pfctl/pfctl_parser.c
1586
res->ai_family != AF_INET6)
usr.sbin/pfctl/pfctl_parser.c
1589
if (res->ai_family == AF_INET) {
usr.sbin/pfctl/pfctl_parser.c
1603
n->af = res->ai_family;
usr.sbin/pfctl/pfctl_parser.c
1604
if (res->ai_family == AF_INET) {
usr.sbin/pfctl/pfctl_parser.c
1607
res->ai_addr)->sin_addr.s_addr,
usr.sbin/pfctl/pfctl_parser.c
1613
res->ai_addr)->sin6_addr.s6_addr,
usr.sbin/pfctl/pfctl_parser.c
1617
res->ai_addr)->sin6_scope_id;
usr.sbin/pflogd/privsep.c
308
ssize_t res;
usr.sbin/pflogd/privsep.c
312
res = read(fd, s + pos, n - pos);
usr.sbin/pflogd/privsep.c
313
switch (res) {
usr.sbin/pflogd/privsep.c
321
pos += res;
usr.sbin/pflogd/privsep.c
333
ssize_t res;
usr.sbin/pflogd/privsep.c
337
res = read(fd, s + pos, n - pos);
usr.sbin/pflogd/privsep.c
338
switch (res) {
usr.sbin/pflogd/privsep.c
346
pos += res;
usr.sbin/pflogd/privsep.c
357
ssize_t res;
usr.sbin/pflogd/privsep.c
361
res = write(fd, s + pos, n - pos);
usr.sbin/pflogd/privsep.c
362
switch (res) {
usr.sbin/pflogd/privsep.c
370
pos += res;
usr.sbin/ppp/bundle.c
1617
int res;
usr.sbin/ppp/bundle.c
1622
if (lock && (res = ID0uu_lock_txfr(lock, newpid)) != UU_LOCK_OK)
usr.sbin/ppp/bundle.c
1623
log_Printf(LogERROR, "uu_lock_txfr: %s\n", uu_lockerr(res));
usr.sbin/ppp/command.c
1409
int res = -1;
usr.sbin/ppp/command.c
1478
res = server_LocalOpen(arg->bundle, port, imask);
usr.sbin/ppp/command.c
1503
res = server_TcpOpen(arg->bundle, iport);
usr.sbin/ppp/command.c
1505
res = -1;
usr.sbin/ppp/command.c
1509
return res;
usr.sbin/ppp/command.c
1623
int mode, dummyint, f, first, res;
usr.sbin/ppp/command.c
1636
res = 0;
usr.sbin/ppp/command.c
1679
res = 1;
usr.sbin/ppp/command.c
1687
res = 1;
usr.sbin/ppp/command.c
1700
res = 1;
usr.sbin/ppp/command.c
1710
res = 1;
usr.sbin/ppp/command.c
1745
res = 1;
usr.sbin/ppp/command.c
1752
res = -1;
usr.sbin/ppp/command.c
1769
res = -1;
usr.sbin/ppp/command.c
1784
res = -1;
usr.sbin/ppp/command.c
1806
res = 1;
usr.sbin/ppp/command.c
1814
res = -1;
usr.sbin/ppp/command.c
1828
res = 1;
usr.sbin/ppp/command.c
1834
res = 1;
usr.sbin/ppp/command.c
1837
if (res != 0)
usr.sbin/ppp/command.c
1842
res = 1;
usr.sbin/ppp/command.c
1846
res = 1;
usr.sbin/ppp/command.c
1858
res = -1;
usr.sbin/ppp/command.c
1868
res = 1;
usr.sbin/ppp/command.c
1874
res = -1;
usr.sbin/ppp/command.c
1882
res = 1;
usr.sbin/ppp/command.c
1887
res = -1;
usr.sbin/ppp/command.c
1890
if (res != 0)
usr.sbin/ppp/command.c
1897
res = 1;
usr.sbin/ppp/command.c
1901
res = 1;
usr.sbin/ppp/command.c
1915
res = -1;
usr.sbin/ppp/command.c
1925
res = 1;
usr.sbin/ppp/command.c
1931
res = -1;
usr.sbin/ppp/command.c
1939
res = 1;
usr.sbin/ppp/command.c
1944
res = -1;
usr.sbin/ppp/command.c
1948
if (res != 0)
usr.sbin/ppp/command.c
1953
res = 1;
usr.sbin/ppp/command.c
1957
res = 1;
usr.sbin/ppp/command.c
1973
res = 1;
usr.sbin/ppp/command.c
2001
res = 1;
usr.sbin/ppp/command.c
2004
res = 1;
usr.sbin/ppp/command.c
2021
res = 1;
usr.sbin/ppp/command.c
2027
res = SetRetry(arg->argc - arg->argn, arg->argv + arg->argn,
usr.sbin/ppp/command.c
2034
res = SetRetry(arg->argc - arg->argn, arg->argv + arg->argn,
usr.sbin/ppp/command.c
2040
res = SetRetry(arg->argc - arg->argn, arg->argv + arg->argn,
usr.sbin/ppp/command.c
2046
res = SetRetry(arg->argc - arg->argn, arg->argv + arg->argn,
usr.sbin/ppp/command.c
2052
res = SetRetry(arg->argc - arg->argn, arg->argv + arg->argn,
usr.sbin/ppp/command.c
2060
res = SetRetry(arg->argc - arg->argn, arg->argv + arg->argn,
usr.sbin/ppp/command.c
2117
res = -1;
usr.sbin/ppp/command.c
2169
res = 1;
usr.sbin/ppp/command.c
2199
res = physical_SetParity(arg->cx->physical, argp);
usr.sbin/ppp/command.c
2202
res = 1;
usr.sbin/ppp/command.c
2213
res = 1;
usr.sbin/ppp/command.c
2261
return res;
usr.sbin/ppp/command.c
389
int res;
usr.sbin/ppp/command.c
399
if (arg->argc > arg->argn && (res = LoadCommand(arg)) != 0)
usr.sbin/ppp/command.c
400
return res;
usr.sbin/ppp/deflate.c
113
if ((res = deflate(&state->cx, flush)) != Z_OK) {
usr.sbin/ppp/deflate.c
114
if (res == Z_STREAM_END)
usr.sbin/ppp/deflate.c
117
res, state->cx.msg ? state->cx.msg : "");
usr.sbin/ppp/deflate.c
206
int seq, flush, res, first;
usr.sbin/ppp/deflate.c
258
if ((res = inflate(&state->cx, flush)) != Z_OK) {
usr.sbin/ppp/deflate.c
259
if (res == Z_STREAM_END)
usr.sbin/ppp/deflate.c
262
res, state->cx.msg ? state->cx.msg : "");
usr.sbin/ppp/deflate.c
341
int res, flush, expect_error;
usr.sbin/ppp/deflate.c
381
if ((res = inflate(&state->cx, flush)) != Z_OK) {
usr.sbin/ppp/deflate.c
382
if (res == Z_STREAM_END)
usr.sbin/ppp/deflate.c
384
if (expect_error && res == Z_BUF_ERROR)
usr.sbin/ppp/deflate.c
387
res, state->cx.msg ? state->cx.msg : "");
usr.sbin/ppp/deflate.c
75
int olen, ilen, len, res, flush;
usr.sbin/ppp/iface.c
211
int res;
usr.sbin/ppp/iface.c
215
res = 0;
usr.sbin/ppp/iface.c
236
res = ID0ioctl(s, SIOCDIFADDR, &ifra);
usr.sbin/ppp/iface.c
242
ifra.ifra_name, buf, ncpaddr_ntoa(&addr->peer), res);
usr.sbin/ppp/iface.c
261
res = ID0ioctl(s, SIOCDIFADDR_IN6, &ifra6);
usr.sbin/ppp/iface.c
266
if (res == -1) {
usr.sbin/ppp/iface.c
284
return res != -1;
usr.sbin/ppp/iface.c
296
int res;
usr.sbin/ppp/iface.c
300
res = 0;
usr.sbin/ppp/iface.c
321
res = ID0ioctl(s, SIOCAIFADDR, &ifra);
usr.sbin/ppp/iface.c
327
ifra.ifra_name, buf, ncpaddr_ntoa(&addr->peer), res);
usr.sbin/ppp/iface.c
346
res = ID0ioctl(s, SIOCAIFADDR_IN6, &ifra6);
usr.sbin/ppp/iface.c
351
if (res == -1) {
usr.sbin/ppp/iface.c
369
return res != -1;
usr.sbin/ppp/iface.c
520
int res, s;
usr.sbin/ppp/iface.c
527
for (n = res = 0; n < iface->addrs; n++) {
usr.sbin/ppp/iface.c
535
res = 1;
usr.sbin/ppp/iface.c
543
return res;
usr.sbin/ppp/libradius/radlib.c
1387
int res;
usr.sbin/ppp/libradius/radlib.c
1405
res = put_raw_attr(h, RAD_VENDOR_SPECIFIC, attr, len + 6);
usr.sbin/ppp/libradius/radlib.c
1407
if (res == 0 && vendor == RAD_VENDOR_MICROSOFT
usr.sbin/ppp/libradius/radlib.c
1412
return (res);
usr.sbin/ppp/libradius/radlib.c
506
char *res, *host_dup;
usr.sbin/ppp/libradius/radlib.c
584
res = host_dup;
usr.sbin/ppp/libradius/radlib.c
585
host = strsep(&res, ":");
usr.sbin/ppp/libradius/radlib.c
586
port_str = strsep(&res, ":");
usr.sbin/ppp/log.c
438
int i, res, argc, local;
usr.sbin/ppp/log.c
443
res = 0;
usr.sbin/ppp/log.c
500
res = -1;
usr.sbin/ppp/log.c
504
return res;
usr.sbin/ppp/mppe.c
580
int res = MODE_ACK;
usr.sbin/ppp/mppe.c
596
res = MODE_NAK;
usr.sbin/ppp/mppe.c
601
res = MODE_NAK;
usr.sbin/ppp/mppe.c
608
res = MODE_NAK;
usr.sbin/ppp/mppe.c
617
return peer == mval ? res : MODE_NAK;
usr.sbin/ppp/mppe.c
627
res = MODE_NAK;
usr.sbin/ppp/mppe.c
642
return res;
usr.sbin/ppp/nat_cmd.c
347
int res;
usr.sbin/ppp/nat_cmd.c
353
res = StrToPort(str, low, proto);
usr.sbin/ppp/nat_cmd.c
358
if (res == 0) {
usr.sbin/ppp/nat_cmd.c
360
res = StrToPort(minus + 1, high, proto);
usr.sbin/ppp/nat_cmd.c
365
return res;
usr.sbin/ppp/nat_cmd.c
373
int res;
usr.sbin/ppp/nat_cmd.c
382
res = StrToAddr(str, addr);
usr.sbin/ppp/nat_cmd.c
384
if (res != 0)
usr.sbin/ppp/ncp.c
143
int res = 0;
usr.sbin/ppp/ncp.c
150
res++;
usr.sbin/ppp/ncp.c
157
res++;
usr.sbin/ppp/ncp.c
161
return res;
usr.sbin/ppp/ncp.c
331
int res;
usr.sbin/ppp/ncp.c
335
if ((res = ipcp_PushPacket(&bundle->ncp.ipcp, l)))
usr.sbin/ppp/ncp.c
338
res = ipv6cp_PushPacket(&bundle->ncp.ipv6cp, l);
usr.sbin/ppp/ncp.c
340
if ((res = ipv6cp_PushPacket(&bundle->ncp.ipv6cp, l)))
usr.sbin/ppp/ncp.c
343
res = ipcp_PushPacket(&bundle->ncp.ipcp, l);
usr.sbin/ppp/ncp.c
346
res = ipcp_PushPacket(&bundle->ncp.ipcp, l);
usr.sbin/ppp/ncp.c
349
return res;
usr.sbin/ppp/ncpaddr.c
374
static char res[NCP_ASCIIBUFFERSIZE];
usr.sbin/ppp/ncpaddr.c
381
snprintf(res, sizeof res, "%s", inet_ntoa(addr->ncpaddr_ip4addr));
usr.sbin/ppp/ncpaddr.c
382
return res;
usr.sbin/ppp/ncpaddr.c
394
if (getnameinfo((struct sockaddr *)&sin6, sizeof sin6, res, sizeof(res),
usr.sbin/ppp/ncpaddr.c
397
if (getnameinfo((struct sockaddr *)&sin6, sizeof sin6, res, sizeof(res),
usr.sbin/ppp/ncpaddr.c
402
return res;
usr.sbin/ppp/ncpaddr.c
406
snprintf(res, sizeof res, "<AF_UNSPEC>");
usr.sbin/ppp/ncpaddr.c
407
return res;
usr.sbin/ppp/ncpaddr.c
853
char *res;
usr.sbin/ppp/ncpaddr.c
860
res = ncpaddr_ntowa(&addr);
usr.sbin/ppp/ncpaddr.c
861
len = strlen(res);
usr.sbin/ppp/ncpaddr.c
863
return res;
usr.sbin/ppp/ncpaddr.c
869
for (; len >= 3; res[len -= 2] = '\0')
usr.sbin/ppp/ncpaddr.c
870
if (strcmp(res + len - 2, ".0"))
usr.sbin/ppp/ncpaddr.c
872
snprintf(res + len, strlen(res) - len, "&0x%08lx",
usr.sbin/ppp/ncpaddr.c
875
snprintf(res + len, strlen(res) - len, "/%d", range->ncprange_ip4width);
usr.sbin/ppp/ncpaddr.c
877
return res;
usr.sbin/ppp/ncpaddr.c
882
snprintf(res + len, strlen(res) - len, "/%d", range->ncprange_ip6width);
usr.sbin/ppp/ncpaddr.c
884
return res;
usr.sbin/ppp/physical.c
295
int res;
usr.sbin/ppp/physical.c
298
(res = ID0uu_lock(p->name.base)) != UU_LOCK_OK) {
usr.sbin/ppp/physical.c
299
if (res == UU_LOCK_INUSE)
usr.sbin/ppp/physical.c
303
p->link.name, p->name.full, uu_lockerr(res));
usr.sbin/ppp/physical.c
742
int res;
usr.sbin/ppp/physical.c
744
if ((res = ID0uu_lock_txfr(p->name.base, newpid)) != UU_LOCK_OK)
usr.sbin/ppp/physical.c
745
log_Printf(LogPHASE, "uu_lock_txfr: %s\n", uu_lockerr(res));
usr.sbin/ppp/radius.c
226
int argc, addrs, res, width;
usr.sbin/ppp/radius.c
292
while ((res = rad_get_attr(r->cx.rad, &data, &len)) > 0) {
usr.sbin/ppp/radius.c
293
switch (res) {
usr.sbin/ppp/radius.c
405
if ((res = rad_get_vendor_attr(&vendor, &data, &len)) <= 0) {
usr.sbin/ppp/radius.c
415
switch (res) {
usr.sbin/ppp/radius.c
498
"RADIUS attribute %d\n", res);
usr.sbin/ppp/radius.c
505
(unsigned long)vendor, res);
usr.sbin/ppp/radius.c
511
log_Printf(LogDEBUG, "Dropping RADIUS attribute %d\n", res);
usr.sbin/ppp/radius.c
516
if (res == -1) {
usr.sbin/rip6query/rip6query.c
119
error = getaddrinfo(argv[0], pbuf, &hints, &res);
usr.sbin/rip6query/rip6query.c
124
if (res->ai_next) {
usr.sbin/rip6query/rip6query.c
128
if (sizeof(sin6) != res->ai_addrlen) {
usr.sbin/rip6query/rip6query.c
132
memcpy(&sin6, res->ai_addr, res->ai_addrlen);
usr.sbin/rip6query/rip6query.c
84
struct addrinfo hints, *res;
usr.sbin/route6d/route6d.c
559
struct addrinfo hints, *res;
usr.sbin/route6d/route6d.c
572
error = getaddrinfo(NULL, port, &hints, &res);
usr.sbin/route6d/route6d.c
577
if (res->ai_next) {
usr.sbin/route6d/route6d.c
583
ripsock = socket(res->ai_family, res->ai_socktype, res->ai_protocol);
usr.sbin/route6d/route6d.c
588
if (bind(ripsock, res->ai_addr, res->ai_addrlen) < 0) {
usr.sbin/route6d/route6d.c
621
error = getaddrinfo(RIP6_DEST, port, &hints, &res);
usr.sbin/route6d/route6d.c
626
if (res->ai_next) {
usr.sbin/route6d/route6d.c
630
memcpy(&ripsin, res->ai_addr, res->ai_addrlen);
usr.sbin/rpc.lockd/lock_proc.c
1000
res.stat.stat = (enum nlm4_stats)unlock(&arg->alock, LOCK_V4);
usr.sbin/rpc.lockd/lock_proc.c
1001
res.cookie = arg->cookie;
usr.sbin/rpc.lockd/lock_proc.c
1003
transmit4_result(NLM4_UNLOCK_RES, &res, getrpcaddr(rqstp));
usr.sbin/rpc.lockd/lock_proc.c
1028
static nlm4_res res;
usr.sbin/rpc.lockd/lock_proc.c
1034
res.cookie = arg->cookie;
usr.sbin/rpc.lockd/lock_proc.c
1036
res.stat.stat = nlm4_granted;
usr.sbin/rpc.lockd/lock_proc.c
1037
return (&res);
usr.sbin/rpc.lockd/lock_proc.c
1043
static nlm4_res res;
usr.sbin/rpc.lockd/lock_proc.c
1048
res.cookie = arg->cookie;
usr.sbin/rpc.lockd/lock_proc.c
1049
res.stat.stat = nlm4_granted;
usr.sbin/rpc.lockd/lock_proc.c
1050
transmit4_result(NLM4_GRANTED_RES, &res,
usr.sbin/rpc.lockd/lock_proc.c
1139
static nlm4_shareres res;
usr.sbin/rpc.lockd/lock_proc.c
1144
res.cookie = arg->cookie;
usr.sbin/rpc.lockd/lock_proc.c
1145
res.stat = nlm4_granted;
usr.sbin/rpc.lockd/lock_proc.c
1146
res.sequence = 1234356; /* X/Open says this field is ignored? */
usr.sbin/rpc.lockd/lock_proc.c
1147
return (&res);
usr.sbin/rpc.lockd/lock_proc.c
1159
static nlm4_shareres res;
usr.sbin/rpc.lockd/lock_proc.c
1164
res.cookie = arg->cookie;
usr.sbin/rpc.lockd/lock_proc.c
1165
res.stat = nlm4_granted;
usr.sbin/rpc.lockd/lock_proc.c
1166
res.sequence = 1234356; /* X/Open says this field is ignored? */
usr.sbin/rpc.lockd/lock_proc.c
1167
return (&res);
usr.sbin/rpc.lockd/lock_proc.c
1183
static nlm4_res res;
usr.sbin/rpc.lockd/lock_proc.c
1189
res.cookie = arg->cookie;
usr.sbin/rpc.lockd/lock_proc.c
1190
res.stat.stat = nlm4_granted;
usr.sbin/rpc.lockd/lock_proc.c
1191
return (&res);
usr.sbin/rpc.lockd/lock_proc.c
383
static nlm_testres res;
usr.sbin/rpc.lockd/lock_proc.c
399
res.cookie = arg->cookie;
usr.sbin/rpc.lockd/lock_proc.c
401
res.stat.stat = nlm_granted;
usr.sbin/rpc.lockd/lock_proc.c
403
res.stat.stat = nlm_denied;
usr.sbin/rpc.lockd/lock_proc.c
404
memcpy(&res.stat.nlm_testrply_u.holder, holder,
usr.sbin/rpc.lockd/lock_proc.c
406
res.stat.nlm_testrply_u.holder.l_offset = holder->l_offset;
usr.sbin/rpc.lockd/lock_proc.c
407
res.stat.nlm_testrply_u.holder.l_len = holder->l_len;
usr.sbin/rpc.lockd/lock_proc.c
409
return (&res);
usr.sbin/rpc.lockd/lock_proc.c
415
nlm_testres res;
usr.sbin/rpc.lockd/lock_proc.c
431
res.cookie = arg->cookie;
usr.sbin/rpc.lockd/lock_proc.c
433
res.stat.stat = nlm_granted;
usr.sbin/rpc.lockd/lock_proc.c
435
res.stat.stat = nlm_denied;
usr.sbin/rpc.lockd/lock_proc.c
436
memcpy(&res.stat.nlm_testrply_u.holder, holder,
usr.sbin/rpc.lockd/lock_proc.c
438
res.stat.nlm_testrply_u.holder.l_offset = holder->l_offset;
usr.sbin/rpc.lockd/lock_proc.c
439
res.stat.nlm_testrply_u.holder.l_len = holder->l_len;
usr.sbin/rpc.lockd/lock_proc.c
452
(xdrproc_t)xdr_nlm_testres, &res,
usr.sbin/rpc.lockd/lock_proc.c
470
static nlm_res res;
usr.sbin/rpc.lockd/lock_proc.c
483
res.cookie = arg->cookie;
usr.sbin/rpc.lockd/lock_proc.c
485
res.stat.stat = getlock(&arg4, rqstp, LOCK_MON);
usr.sbin/rpc.lockd/lock_proc.c
486
return (&res);
usr.sbin/rpc.lockd/lock_proc.c
492
static nlm_res res;
usr.sbin/rpc.lockd/lock_proc.c
505
res.cookie = arg->cookie;
usr.sbin/rpc.lockd/lock_proc.c
506
res.stat.stat = getlock(&arg4, rqstp, LOCK_ASYNC | LOCK_MON);
usr.sbin/rpc.lockd/lock_proc.c
507
transmit_result(NLM_LOCK_RES, &res, getrpcaddr(rqstp));
usr.sbin/rpc.lockd/lock_proc.c
521
static nlm_res res;
usr.sbin/rpc.lockd/lock_proc.c
530
res.cookie = arg->cookie;
usr.sbin/rpc.lockd/lock_proc.c
536
res.stat.stat = unlock(&arg4, LOCK_CANCEL);
usr.sbin/rpc.lockd/lock_proc.c
537
return (&res);
usr.sbin/rpc.lockd/lock_proc.c
543
static nlm_res res;
usr.sbin/rpc.lockd/lock_proc.c
551
res.cookie = arg->cookie;
usr.sbin/rpc.lockd/lock_proc.c
556
res.stat.stat = unlock(&arg4, LOCK_CANCEL);
usr.sbin/rpc.lockd/lock_proc.c
557
transmit_result(NLM_CANCEL_RES, &res, getrpcaddr(rqstp));
usr.sbin/rpc.lockd/lock_proc.c
572
static nlm_res res;
usr.sbin/rpc.lockd/lock_proc.c
580
res.stat.stat = unlock(&arg4, 0);
usr.sbin/rpc.lockd/lock_proc.c
581
res.cookie = arg->cookie;
usr.sbin/rpc.lockd/lock_proc.c
583
return (&res);
usr.sbin/rpc.lockd/lock_proc.c
589
static nlm_res res;
usr.sbin/rpc.lockd/lock_proc.c
597
res.stat.stat = unlock(&arg4, 0);
usr.sbin/rpc.lockd/lock_proc.c
598
res.cookie = arg->cookie;
usr.sbin/rpc.lockd/lock_proc.c
600
transmit_result(NLM_UNLOCK_RES, &res, getrpcaddr(rqstp));
usr.sbin/rpc.lockd/lock_proc.c
625
static nlm_res res;
usr.sbin/rpc.lockd/lock_proc.c
631
res.cookie = arg->cookie;
usr.sbin/rpc.lockd/lock_proc.c
633
res.stat.stat = nlm_granted;
usr.sbin/rpc.lockd/lock_proc.c
634
return (&res);
usr.sbin/rpc.lockd/lock_proc.c
640
static nlm_res res;
usr.sbin/rpc.lockd/lock_proc.c
645
res.cookie = arg->cookie;
usr.sbin/rpc.lockd/lock_proc.c
646
res.stat.stat = nlm_granted;
usr.sbin/rpc.lockd/lock_proc.c
647
transmit_result(NLM_GRANTED_RES, &res,
usr.sbin/rpc.lockd/lock_proc.c
736
static nlm_shareres res;
usr.sbin/rpc.lockd/lock_proc.c
741
res.cookie = arg->cookie;
usr.sbin/rpc.lockd/lock_proc.c
742
res.stat = nlm_granted;
usr.sbin/rpc.lockd/lock_proc.c
743
res.sequence = 1234356; /* X/Open says this field is ignored? */
usr.sbin/rpc.lockd/lock_proc.c
744
return (&res);
usr.sbin/rpc.lockd/lock_proc.c
756
static nlm_shareres res;
usr.sbin/rpc.lockd/lock_proc.c
761
res.cookie = arg->cookie;
usr.sbin/rpc.lockd/lock_proc.c
762
res.stat = nlm_granted;
usr.sbin/rpc.lockd/lock_proc.c
763
res.sequence = 1234356; /* X/Open says this field is ignored? */
usr.sbin/rpc.lockd/lock_proc.c
764
return (&res);
usr.sbin/rpc.lockd/lock_proc.c
780
static nlm_res res;
usr.sbin/rpc.lockd/lock_proc.c
786
res.cookie = arg->cookie;
usr.sbin/rpc.lockd/lock_proc.c
787
res.stat.stat = nlm_granted;
usr.sbin/rpc.lockd/lock_proc.c
788
return (&res);
usr.sbin/rpc.lockd/lock_proc.c
821
static nlm4_testres res;
usr.sbin/rpc.lockd/lock_proc.c
836
res.cookie = arg->cookie;
usr.sbin/rpc.lockd/lock_proc.c
838
res.stat.stat = nlm4_granted;
usr.sbin/rpc.lockd/lock_proc.c
840
res.stat.stat = nlm4_denied;
usr.sbin/rpc.lockd/lock_proc.c
841
memcpy(&res.stat.nlm4_testrply_u.holder, holder,
usr.sbin/rpc.lockd/lock_proc.c
844
return (&res);
usr.sbin/rpc.lockd/lock_proc.c
850
nlm4_testres res;
usr.sbin/rpc.lockd/lock_proc.c
863
res.cookie = arg->cookie;
usr.sbin/rpc.lockd/lock_proc.c
865
res.stat.stat = nlm4_granted;
usr.sbin/rpc.lockd/lock_proc.c
867
res.stat.stat = nlm4_denied;
usr.sbin/rpc.lockd/lock_proc.c
868
memcpy(&res.stat.nlm4_testrply_u.holder, holder,
usr.sbin/rpc.lockd/lock_proc.c
882
(xdrproc_t)xdr_nlm4_testres, &res,
usr.sbin/rpc.lockd/lock_proc.c
900
static nlm4_res res;
usr.sbin/rpc.lockd/lock_proc.c
906
res.cookie = arg->cookie;
usr.sbin/rpc.lockd/lock_proc.c
908
res.stat.stat = (enum nlm4_stats)getlock(arg, rqstp, LOCK_MON | LOCK_V4);
usr.sbin/rpc.lockd/lock_proc.c
909
return (&res);
usr.sbin/rpc.lockd/lock_proc.c
915
static nlm4_res res;
usr.sbin/rpc.lockd/lock_proc.c
920
res.cookie = arg->cookie;
usr.sbin/rpc.lockd/lock_proc.c
921
res.stat.stat = (enum nlm4_stats)getlock(arg, rqstp, LOCK_MON | LOCK_ASYNC | LOCK_V4);
usr.sbin/rpc.lockd/lock_proc.c
922
transmit4_result(NLM4_LOCK_RES, &res, getrpcaddr(rqstp));
usr.sbin/rpc.lockd/lock_proc.c
936
static nlm4_res res;
usr.sbin/rpc.lockd/lock_proc.c
942
res.cookie = arg->cookie;
usr.sbin/rpc.lockd/lock_proc.c
948
res.stat.stat = (enum nlm4_stats)unlock(&arg->alock, LOCK_CANCEL);
usr.sbin/rpc.lockd/lock_proc.c
949
return (&res);
usr.sbin/rpc.lockd/lock_proc.c
955
static nlm4_res res;
usr.sbin/rpc.lockd/lock_proc.c
960
res.cookie = arg->cookie;
usr.sbin/rpc.lockd/lock_proc.c
965
res.stat.stat = (enum nlm4_stats)unlock(&arg->alock, LOCK_CANCEL | LOCK_V4);
usr.sbin/rpc.lockd/lock_proc.c
966
transmit4_result(NLM4_CANCEL_RES, &res, getrpcaddr(rqstp));
usr.sbin/rpc.lockd/lock_proc.c
981
static nlm4_res res;
usr.sbin/rpc.lockd/lock_proc.c
986
res.stat.stat = (enum nlm4_stats)unlock(&arg->alock, LOCK_V4);
usr.sbin/rpc.lockd/lock_proc.c
987
res.cookie = arg->cookie;
usr.sbin/rpc.lockd/lock_proc.c
989
return (&res);
usr.sbin/rpc.lockd/lock_proc.c
995
static nlm4_res res;
usr.sbin/rpc.lockd/lockd.c
273
struct addrinfo hints, *res = NULL;
usr.sbin/rpc.lockd/lockd.c
363
res = malloc(sizeof(struct addrinfo));
usr.sbin/rpc.lockd/lockd.c
364
if (res == NULL)
usr.sbin/rpc.lockd/lockd.c
366
res->ai_flags = hints.ai_flags;
usr.sbin/rpc.lockd/lockd.c
367
res->ai_family = hints.ai_family;
usr.sbin/rpc.lockd/lockd.c
368
res->ai_protocol = hints.ai_protocol;
usr.sbin/rpc.lockd/lockd.c
369
switch (res->ai_family) {
usr.sbin/rpc.lockd/lockd.c
377
res->ai_addr = (struct sockaddr*) sin;
usr.sbin/rpc.lockd/lockd.c
378
res->ai_addrlen = (socklen_t)
usr.sbin/rpc.lockd/lockd.c
379
sizeof(res->ai_addr);
usr.sbin/rpc.lockd/lockd.c
388
res->ai_addr = (struct sockaddr*) sin6;
usr.sbin/rpc.lockd/lockd.c
389
res->ai_addrlen = (socklen_t) sizeof(res->ai_addr);
usr.sbin/rpc.lockd/lockd.c
396
&hints, &res)) != 0) {
usr.sbin/rpc.lockd/lockd.c
406
&hints, &res)) != 0) {
usr.sbin/rpc.lockd/lockd.c
414
r = bindresvport_sa(fd, res->ai_addr);
usr.sbin/rpc.lockd/lockd.c
465
if (getnameinfo(res->ai_addr,
usr.sbin/rpc.lockd/lockd.c
466
res->ai_addr->sa_len, NULL, NI_MAXHOST,
usr.sbin/rpc.lockd/lockd.c
473
&res)) != 0) {
usr.sbin/rpc.lockd/lockd.c
479
servaddr.buf = malloc(res->ai_addrlen);
usr.sbin/rpc.lockd/lockd.c
480
memcpy(servaddr.buf, res->ai_addr, res->ai_addrlen);
usr.sbin/rpc.lockd/lockd.c
481
servaddr.len = res->ai_addrlen;
usr.sbin/rpc.lockd/lockd.c
489
freeaddrinfo(res);
usr.sbin/rpc.lockd/lockd_lock.c
530
static nlm4_testargs res;
usr.sbin/rpc.lockd/lockd_lock.c
531
res.cookie = fl->client_cookie;
usr.sbin/rpc.lockd/lockd_lock.c
532
res.exclusive = fl->client.exclusive;
usr.sbin/rpc.lockd/lockd_lock.c
533
res.alock.caller_name = fl->client_name;
usr.sbin/rpc.lockd/lockd_lock.c
534
res.alock.fh.n_len = sizeof(fhandle_t);
usr.sbin/rpc.lockd/lockd_lock.c
535
res.alock.fh.n_bytes = (char*)&fl->filehandle;
usr.sbin/rpc.lockd/lockd_lock.c
536
res.alock.oh = fl->client.oh;
usr.sbin/rpc.lockd/lockd_lock.c
537
res.alock.svid = fl->client.svid;
usr.sbin/rpc.lockd/lockd_lock.c
538
res.alock.l_offset = fl->client.l_offset;
usr.sbin/rpc.lockd/lockd_lock.c
539
res.alock.l_len = fl->client.l_len;
usr.sbin/rpc.lockd/lockd_lock.c
544
(xdrproc_t)xdr_nlm4_testargs, &res,
usr.sbin/rpc.lockd/lockd_lock.c
548
(xdrproc_t)xdr_nlm4_testargs, &res,
usr.sbin/rpc.lockd/lockd_lock.c
552
static nlm_testargs res;
usr.sbin/rpc.lockd/lockd_lock.c
554
res.cookie = fl->client_cookie;
usr.sbin/rpc.lockd/lockd_lock.c
555
res.exclusive = fl->client.exclusive;
usr.sbin/rpc.lockd/lockd_lock.c
556
res.alock.caller_name = fl->client_name;
usr.sbin/rpc.lockd/lockd_lock.c
557
res.alock.fh.n_len = sizeof(fhandle_t);
usr.sbin/rpc.lockd/lockd_lock.c
558
res.alock.fh.n_bytes = (char*)&fl->filehandle;
usr.sbin/rpc.lockd/lockd_lock.c
559
res.alock.oh = fl->client.oh;
usr.sbin/rpc.lockd/lockd_lock.c
560
res.alock.svid = fl->client.svid;
usr.sbin/rpc.lockd/lockd_lock.c
561
res.alock.l_offset = fl->client.l_offset;
usr.sbin/rpc.lockd/lockd_lock.c
562
res.alock.l_len = fl->client.l_len;
usr.sbin/rpc.lockd/lockd_lock.c
567
(xdrproc_t)xdr_nlm_testargs, &res,
usr.sbin/rpc.lockd/lockd_lock.c
571
(xdrproc_t)xdr_nlm_testargs, &res,
usr.sbin/rpc.lockd/lockd_lock.c
664
struct sm_stat_res res;
usr.sbin/rpc.lockd/lockd_lock.c
689
(char*)&my_mon, (xdrproc_t)xdr_sm_stat_res, (char*)&res)) != 0) {
usr.sbin/rpc.lockd/lockd_lock.c
695
if (res.res_stat == stat_fail) {
usr.sbin/rpc.lockd/test.c
101
bzero((char *)&res, sizeof(res));
usr.sbin/rpc.lockd/test.c
106
return ((void *)&res);
usr.sbin/rpc.lockd/test.c
113
static char res;
usr.sbin/rpc.lockd/test.c
115
bzero((char *)&res, sizeof(res));
usr.sbin/rpc.lockd/test.c
116
if (clnt_call(clnt, NLM_CANCEL_MSG, xdr_nlm_cancargs, argp, xdr_void, &res, TIMEOUT) != RPC_SUCCESS) {
usr.sbin/rpc.lockd/test.c
119
return ((void *)&res);
usr.sbin/rpc.lockd/test.c
126
static char res;
usr.sbin/rpc.lockd/test.c
128
bzero((char *)&res, sizeof(res));
usr.sbin/rpc.lockd/test.c
129
if (clnt_call(clnt, NLM_UNLOCK_MSG, xdr_nlm_unlockargs, argp, xdr_void, &res, TIMEOUT) != RPC_SUCCESS) {
usr.sbin/rpc.lockd/test.c
132
return ((void *)&res);
usr.sbin/rpc.lockd/test.c
139
static char res;
usr.sbin/rpc.lockd/test.c
141
bzero((char *)&res, sizeof(res));
usr.sbin/rpc.lockd/test.c
142
if (clnt_call(clnt, NLM_GRANTED_MSG, xdr_nlm_testargs, argp, xdr_void, &res, TIMEOUT) != RPC_SUCCESS) {
usr.sbin/rpc.lockd/test.c
145
return ((void *)&res);
usr.sbin/rpc.lockd/test.c
152
static char res;
usr.sbin/rpc.lockd/test.c
154
bzero((char *)&res, sizeof(res));
usr.sbin/rpc.lockd/test.c
155
if (clnt_call(clnt, NLM_TEST_RES, xdr_nlm_testres, argp, xdr_void, &res, TIMEOUT) != RPC_SUCCESS) {
usr.sbin/rpc.lockd/test.c
158
return ((void *)&res);
usr.sbin/rpc.lockd/test.c
165
static char res;
usr.sbin/rpc.lockd/test.c
167
bzero((char *)&res, sizeof(res));
usr.sbin/rpc.lockd/test.c
168
if (clnt_call(clnt, NLM_LOCK_RES, xdr_nlm_res, argp, xdr_void, &res, TIMEOUT) != RPC_SUCCESS) {
usr.sbin/rpc.lockd/test.c
171
return ((void *)&res);
usr.sbin/rpc.lockd/test.c
178
static char res;
usr.sbin/rpc.lockd/test.c
18
static nlm_testres res;
usr.sbin/rpc.lockd/test.c
180
bzero((char *)&res, sizeof(res));
usr.sbin/rpc.lockd/test.c
181
if (clnt_call(clnt, NLM_CANCEL_RES, xdr_nlm_res, argp, xdr_void, &res, TIMEOUT) != RPC_SUCCESS) {
usr.sbin/rpc.lockd/test.c
184
return ((void *)&res);
usr.sbin/rpc.lockd/test.c
191
static char res;
usr.sbin/rpc.lockd/test.c
193
bzero((char *)&res, sizeof(res));
usr.sbin/rpc.lockd/test.c
194
if (clnt_call(clnt, NLM_UNLOCK_RES, xdr_nlm_res, argp, xdr_void, &res, TIMEOUT) != RPC_SUCCESS) {
usr.sbin/rpc.lockd/test.c
197
return ((void *)&res);
usr.sbin/rpc.lockd/test.c
20
bzero((char *)&res, sizeof(res));
usr.sbin/rpc.lockd/test.c
204
static char res;
usr.sbin/rpc.lockd/test.c
206
bzero((char *)&res, sizeof(res));
usr.sbin/rpc.lockd/test.c
207
if (clnt_call(clnt, NLM_GRANTED_RES, xdr_nlm_res, argp, xdr_void, &res, TIMEOUT) != RPC_SUCCESS) {
usr.sbin/rpc.lockd/test.c
21
if (clnt_call(clnt, NLM_TEST, xdr_nlm_testargs, argp, xdr_nlm_testres, &res, TIMEOUT) != RPC_SUCCESS) {
usr.sbin/rpc.lockd/test.c
210
return ((void *)&res);
usr.sbin/rpc.lockd/test.c
217
static nlm_shareres res;
usr.sbin/rpc.lockd/test.c
219
bzero((char *)&res, sizeof(res));
usr.sbin/rpc.lockd/test.c
220
if (clnt_call(clnt, NLM_SHARE, xdr_nlm_shareargs, argp, xdr_nlm_shareres, &res, TIMEOUT) != RPC_SUCCESS) {
usr.sbin/rpc.lockd/test.c
223
return (&res);
usr.sbin/rpc.lockd/test.c
230
static nlm_shareres res;
usr.sbin/rpc.lockd/test.c
232
bzero((char *)&res, sizeof(res));
usr.sbin/rpc.lockd/test.c
233
if (clnt_call(clnt, NLM_UNSHARE, xdr_nlm_shareargs, argp, xdr_nlm_shareres, &res, TIMEOUT) != RPC_SUCCESS) {
usr.sbin/rpc.lockd/test.c
236
return (&res);
usr.sbin/rpc.lockd/test.c
24
return (&res);
usr.sbin/rpc.lockd/test.c
243
static nlm_res res;
usr.sbin/rpc.lockd/test.c
245
bzero((char *)&res, sizeof(res));
usr.sbin/rpc.lockd/test.c
246
if (clnt_call(clnt, NLM_NM_LOCK, xdr_nlm_lockargs, argp, xdr_nlm_res, &res, TIMEOUT) != RPC_SUCCESS) {
usr.sbin/rpc.lockd/test.c
249
return (&res);
usr.sbin/rpc.lockd/test.c
256
static char res;
usr.sbin/rpc.lockd/test.c
258
bzero((char *)&res, sizeof(res));
usr.sbin/rpc.lockd/test.c
259
if (clnt_call(clnt, NLM_FREE_ALL, xdr_nlm_notify, argp, xdr_void, &res, TIMEOUT) != RPC_SUCCESS) {
usr.sbin/rpc.lockd/test.c
262
return ((void *)&res);
usr.sbin/rpc.lockd/test.c
32
static nlm_res res;
usr.sbin/rpc.lockd/test.c
34
bzero((char *)&res, sizeof(res));
usr.sbin/rpc.lockd/test.c
35
if (st = clnt_call(clnt, NLM_LOCK, xdr_nlm_lockargs, argp, xdr_nlm_res, &res, TIMEOUT) != RPC_SUCCESS) {
usr.sbin/rpc.lockd/test.c
40
return (&res);
usr.sbin/rpc.lockd/test.c
47
static nlm_res res;
usr.sbin/rpc.lockd/test.c
49
bzero((char *)&res, sizeof(res));
usr.sbin/rpc.lockd/test.c
50
if (clnt_call(clnt, NLM_CANCEL, xdr_nlm_cancargs, argp, xdr_nlm_res, &res, TIMEOUT) != RPC_SUCCESS) {
usr.sbin/rpc.lockd/test.c
53
return (&res);
usr.sbin/rpc.lockd/test.c
60
static nlm_res res;
usr.sbin/rpc.lockd/test.c
62
bzero((char *)&res, sizeof(res));
usr.sbin/rpc.lockd/test.c
63
if (clnt_call(clnt, NLM_UNLOCK, xdr_nlm_unlockargs, argp, xdr_nlm_res, &res, TIMEOUT) != RPC_SUCCESS) {
usr.sbin/rpc.lockd/test.c
66
return (&res);
usr.sbin/rpc.lockd/test.c
73
static nlm_res res;
usr.sbin/rpc.lockd/test.c
75
bzero((char *)&res, sizeof(res));
usr.sbin/rpc.lockd/test.c
76
if (clnt_call(clnt, NLM_GRANTED, xdr_nlm_testargs, argp, xdr_nlm_res, &res, TIMEOUT) != RPC_SUCCESS) {
usr.sbin/rpc.lockd/test.c
79
return (&res);
usr.sbin/rpc.lockd/test.c
86
static char res;
usr.sbin/rpc.lockd/test.c
88
bzero((char *)&res, sizeof(res));
usr.sbin/rpc.lockd/test.c
89
if (clnt_call(clnt, NLM_TEST_MSG, xdr_nlm_testargs, argp, xdr_void, &res, TIMEOUT) != RPC_SUCCESS) {
usr.sbin/rpc.lockd/test.c
92
return ((void *)&res);
usr.sbin/rpc.lockd/test.c
99
static char res;
usr.sbin/rpc.statd/procs.c
124
res.res_stat = stat_succ; /* Report success */
usr.sbin/rpc.statd/procs.c
128
return (&res);
usr.sbin/rpc.statd/procs.c
182
static sm_stat res;
usr.sbin/rpc.statd/procs.c
205
res.state = status_info->ourState;
usr.sbin/rpc.statd/procs.c
207
return (&res);
usr.sbin/rpc.statd/procs.c
221
static sm_stat res;
usr.sbin/rpc.statd/procs.c
237
res.state = status_info->ourState;
usr.sbin/rpc.statd/procs.c
239
return (&res);
usr.sbin/rpc.statd/procs.c
56
static sm_stat_res res;
usr.sbin/rpc.statd/procs.c
60
if (gethostbyname(arg->mon_name)) res.res_stat = stat_succ;
usr.sbin/rpc.statd/procs.c
64
res.res_stat = stat_fail;
usr.sbin/rpc.statd/procs.c
67
res.state = status_info->ourState;
usr.sbin/rpc.statd/procs.c
68
return (&res);
usr.sbin/rpc.statd/procs.c
83
static sm_stat_res res;
usr.sbin/rpc.statd/procs.c
96
res.res_stat = stat_fail; /* Assume fail until set otherwise */
usr.sbin/rpc.statd/procs.c
97
res.state = status_info->ourState;
usr.sbin/rpc.statd/test.c
111
struct sm_stat_res *res;
usr.sbin/rpc.statd/test.c
112
if (res = sm_mon_1(&mon, cli))
usr.sbin/rpc.statd/test.c
17
static struct sm_stat_res res;
usr.sbin/rpc.statd/test.c
19
bzero((char *)&res, sizeof(res));
usr.sbin/rpc.statd/test.c
20
if (clnt_call(clnt, SM_STAT, xdr_sm_name, argp, xdr_sm_stat_res, &res, TIMEOUT) != RPC_SUCCESS) {
usr.sbin/rpc.statd/test.c
23
return (&res);
usr.sbin/rpc.statd/test.c
30
static struct sm_stat_res res;
usr.sbin/rpc.statd/test.c
32
bzero((char *)&res, sizeof(res));
usr.sbin/rpc.statd/test.c
33
if (clnt_call(clnt, SM_MON, xdr_mon, argp, xdr_sm_stat_res, &res, TIMEOUT) != RPC_SUCCESS) {
usr.sbin/rpc.statd/test.c
36
return (&res);
usr.sbin/rpc.statd/test.c
43
static struct sm_stat res;
usr.sbin/rpc.statd/test.c
45
bzero((char *)&res, sizeof(res));
usr.sbin/rpc.statd/test.c
46
if (clnt_call(clnt, SM_UNMON, xdr_mon_id, argp, xdr_sm_stat, &res, TIMEOUT) != RPC_SUCCESS) {
usr.sbin/rpc.statd/test.c
49
return (&res);
usr.sbin/rpc.statd/test.c
56
static struct sm_stat res;
usr.sbin/rpc.statd/test.c
58
bzero((char *)&res, sizeof(res));
usr.sbin/rpc.statd/test.c
59
if (clnt_call(clnt, SM_UNMON_ALL, xdr_my_id, argp, xdr_sm_stat, &res, TIMEOUT) != RPC_SUCCESS) {
usr.sbin/rpc.statd/test.c
62
return (&res);
usr.sbin/rpc.statd/test.c
69
static char res;
usr.sbin/rpc.statd/test.c
71
bzero((char *)&res, sizeof(res));
usr.sbin/rpc.statd/test.c
72
if (clnt_call(clnt, SM_SIMU_CRASH, xdr_void, argp, xdr_void, &res, TIMEOUT) != RPC_SUCCESS) {
usr.sbin/rpc.statd/test.c
75
return ((void *)&res);
usr.sbin/rpc.ypupdated/ypupdated_server.c
100
res = 0;
usr.sbin/rpc.ypupdated/ypupdated_server.c
106
return(&res);
usr.sbin/rpc.ypupdated/ypupdated_server.c
112
res = localupdate(netname, "/etc/publickey", YPOP_CHANGE,
usr.sbin/rpc.ypupdated/ypupdated_server.c
116
if (res)
usr.sbin/rpc.ypupdated/ypupdated_server.c
117
return (&res);
usr.sbin/rpc.ypupdated/ypupdated_server.c
119
res = ypmap_update(netname, args->mapname, YPOP_CHANGE,
usr.sbin/rpc.ypupdated/ypupdated_server.c
123
return (&res);
usr.sbin/rpc.ypupdated/ypupdated_server.c
130
static int res;
usr.sbin/rpc.ypupdated/ypupdated_server.c
134
res = 0;
usr.sbin/rpc.ypupdated/ypupdated_server.c
140
return(&res);
usr.sbin/rpc.ypupdated/ypupdated_server.c
146
res = localupdate(netname, "/etc/publickey", YPOP_INSERT,
usr.sbin/rpc.ypupdated/ypupdated_server.c
150
if (res)
usr.sbin/rpc.ypupdated/ypupdated_server.c
151
return (&res);
usr.sbin/rpc.ypupdated/ypupdated_server.c
153
res = ypmap_update(netname, args->mapname, YPOP_INSERT,
usr.sbin/rpc.ypupdated/ypupdated_server.c
157
return (&res);
usr.sbin/rpc.ypupdated/ypupdated_server.c
164
static int res;
usr.sbin/rpc.ypupdated/ypupdated_server.c
168
res = 0;
usr.sbin/rpc.ypupdated/ypupdated_server.c
174
return(&res);
usr.sbin/rpc.ypupdated/ypupdated_server.c
180
res = localupdate(netname, "/etc/publickey", YPOP_DELETE,
usr.sbin/rpc.ypupdated/ypupdated_server.c
184
if (res)
usr.sbin/rpc.ypupdated/ypupdated_server.c
185
return (&res);
usr.sbin/rpc.ypupdated/ypupdated_server.c
187
res = ypmap_update(netname, args->mapname, YPOP_DELETE,
usr.sbin/rpc.ypupdated/ypupdated_server.c
191
return (&res);
usr.sbin/rpc.ypupdated/ypupdated_server.c
198
static int res;
usr.sbin/rpc.ypupdated/ypupdated_server.c
202
res = 0;
usr.sbin/rpc.ypupdated/ypupdated_server.c
208
return(&res);
usr.sbin/rpc.ypupdated/ypupdated_server.c
214
res = localupdate(netname, "/etc/publickey", YPOP_STORE,
usr.sbin/rpc.ypupdated/ypupdated_server.c
218
if (res)
usr.sbin/rpc.ypupdated/ypupdated_server.c
219
return (&res);
usr.sbin/rpc.ypupdated/ypupdated_server.c
221
res = ypmap_update(netname, args->mapname, YPOP_STORE,
usr.sbin/rpc.ypupdated/ypupdated_server.c
225
return (&res);
usr.sbin/rpc.ypupdated/ypupdated_server.c
96
static int res;
usr.sbin/rpcbind/rpcbind.c
232
struct addrinfo hints, *res = NULL;
usr.sbin/rpcbind/rpcbind.c
394
servname, &hints, &res)) != 0) {
usr.sbin/rpcbind/rpcbind.c
400
addrlen = res->ai_addrlen;
usr.sbin/rpcbind/rpcbind.c
401
sa = (struct sockaddr *)res->ai_addr;
usr.sbin/rpcbind/rpcbind.c
408
if (res != NULL)
usr.sbin/rpcbind/rpcbind.c
409
freeaddrinfo(res);
usr.sbin/rpcbind/rpcbind.c
422
if (res != NULL)
usr.sbin/rpcbind/rpcbind.c
423
freeaddrinfo(res);
usr.sbin/rpcbind/rpcbind.c
461
if (res != NULL)
usr.sbin/rpcbind/rpcbind.c
462
freeaddrinfo(res);
usr.sbin/rpcbind/rpcbind.c
473
if (res != NULL)
usr.sbin/rpcbind/rpcbind.c
474
freeaddrinfo(res);
usr.sbin/rpcbind/util.c
300
struct addrinfo hints, *res;
usr.sbin/rpcbind/util.c
304
if ((ecode = getaddrinfo(NULL, "sunrpc", &hints, &res))) {
usr.sbin/rpcbind/util.c
314
memcpy(local_in4, res->ai_addr, sizeof *local_in4);
usr.sbin/rpcbind/util.c
319
if ((ecode = getaddrinfo(NULL, "sunrpc", &hints, &res))) {
usr.sbin/rpcbind/util.c
329
memcpy(local_in6, res->ai_addr, sizeof *local_in6);
usr.sbin/rrenumd/parser.y
189
struct addrinfo hints, *res;
usr.sbin/rrenumd/parser.y
197
error = getaddrinfo($1.cp, 0, &hints, &res);
usr.sbin/rrenumd/parser.y
206
memcpy(ss, res->ai_addr, res->ai_addr->sa_len);
usr.sbin/rrenumd/parser.y
207
freeaddrinfo(res);
usr.sbin/syslogd/syslogd.c
1764
struct addrinfo hints, *res;
usr.sbin/syslogd/syslogd.c
1959
p ? p : "syslog", &hints, &res);
usr.sbin/syslogd/syslogd.c
1964
f->f_un.f_forw.f_addr = res;
usr.sbin/syslogd/syslogd.c
2192
struct addrinfo hints, *res;
usr.sbin/syslogd/syslogd.c
2248
if (getaddrinfo(s, NULL, &hints, &res) == 0) {
usr.sbin/syslogd/syslogd.c
2250
memcpy(&ap.a_addr, res->ai_addr, res->ai_addrlen);
usr.sbin/syslogd/syslogd.c
2252
ap.a_mask.ss_family = res->ai_family;
usr.sbin/syslogd/syslogd.c
2253
if (res->ai_family == AF_INET) {
usr.sbin/syslogd/syslogd.c
2272
freeaddrinfo(res);
usr.sbin/syslogd/syslogd.c
2279
else if (res->ai_family == AF_INET6 && masklen <= 128) {
usr.sbin/syslogd/syslogd.c
2301
freeaddrinfo(res);
usr.sbin/syslogd/syslogd.c
2304
freeaddrinfo(res);
usr.sbin/syslogd/syslogd.c
2362
struct addrinfo hints, *res;
usr.sbin/syslogd/syslogd.c
2374
if (getaddrinfo(name, NULL, &hints, &res) == 0)
usr.sbin/syslogd/syslogd.c
2375
freeaddrinfo(res);
usr.sbin/syslogd/syslogd.c
2618
struct addrinfo hints, *res, *r;
usr.sbin/syslogd/syslogd.c
2656
error = getaddrinfo(bindhostname, bindservice, &hints, &res);
usr.sbin/syslogd/syslogd.c
2664
for (maxs = 0, r = res; r; r = r->ai_next, maxs++);
usr.sbin/syslogd/syslogd.c
2673
for (r = res; r; r = r->ai_next) {
usr.sbin/syslogd/syslogd.c
2726
if (res)
usr.sbin/syslogd/syslogd.c
2727
freeaddrinfo(res);
usr.sbin/traceroute6/traceroute6.c
338
struct addrinfo hints, *res;
usr.sbin/traceroute6/traceroute6.c
547
error = getaddrinfo(*argv, NULL, &hints, &res);
usr.sbin/traceroute6/traceroute6.c
553
if (res->ai_addrlen != sizeof(Dst)) {
usr.sbin/traceroute6/traceroute6.c
558
memcpy(&Dst, res->ai_addr, res->ai_addrlen);
usr.sbin/traceroute6/traceroute6.c
559
hostname = res->ai_canonname ? strdup(res->ai_canonname) : *argv;
usr.sbin/traceroute6/traceroute6.c
564
if (res->ai_next) {
usr.sbin/traceroute6/traceroute6.c
565
if (getnameinfo(res->ai_addr, res->ai_addrlen, hbuf,
usr.sbin/traceroute6/traceroute6.c
654
struct addrinfo hints, *res;
usr.sbin/traceroute6/traceroute6.c
661
error = getaddrinfo(source, "0", &hints, &res);
usr.sbin/traceroute6/traceroute6.c
667
if (res->ai_addrlen > sizeof(Src)) {
usr.sbin/traceroute6/traceroute6.c
672
memcpy(&Src, res->ai_addr, res->ai_addrlen);
usr.sbin/traceroute6/traceroute6.c
673
freeaddrinfo(res);
usr.sbin/watch/watch.c
287
int res, idata, rv;
usr.sbin/watch/watch.c
356
res = select(snp_io + 1, &fd_s, NULL, NULL, NULL);
usr.sbin/watch/watch.c
359
if ((res = ioctl(std_in, FIONREAD, &nread)) != 0)
usr.sbin/watch/watch.c
396
if ((res = ioctl(snp_io, FIONREAD, &idata)) != 0)
usr.sbin/ypbind/ypbind.c
157
static char res;
usr.sbin/ypbind/ypbind.c
159
bzero(&res, sizeof(res));
usr.sbin/ypbind/ypbind.c
160
return &res;
usr.sbin/ypbind/ypbind.c
166
static struct ypbind_resp res;
usr.sbin/ypbind/ypbind.c
170
bzero(&res, sizeof res);
usr.sbin/ypbind/ypbind.c
171
res.ypbind_status = YPBIND_FAIL_VAL;
usr.sbin/ypbind/ypbind.c
172
res.ypbind_resp_u.ypbind_error = YPBIND_ERR_NOSERV;
usr.sbin/ypbind/ypbind.c
177
return(&res);
usr.sbin/ypbind/ypbind.c
188
return (&res);
usr.sbin/ypbind/ypbind.c
194
res.ypbind_resp_u.ypbind_error = YPBIND_ERR_RESC;
usr.sbin/ypbind/ypbind.c
195
return (&res);
usr.sbin/ypbind/ypbind.c
200
res.ypbind_resp_u.ypbind_error = YPBIND_ERR_RESC;
usr.sbin/ypbind/ypbind.c
201
return (&res);
usr.sbin/ypbind/ypbind.c
218
return (&res);
usr.sbin/ypbind/ypbind.c
221
res.ypbind_status = YPBIND_SUCC_VAL;
usr.sbin/ypbind/ypbind.c
222
res.ypbind_resp_u.ypbind_error = 0; /* Success */
usr.sbin/ypbind/ypbind.c
223
*(u_int32_t *)&res.ypbind_resp_u.ypbind_bindinfo.ypbind_binding_addr =
usr.sbin/ypbind/ypbind.c
225
*(u_short *)&res.ypbind_resp_u.ypbind_bindinfo.ypbind_binding_port =
usr.sbin/ypbind/ypbind.c
230
return (&res);