usr/src/cmd/acctadm/aconf.c
478
aconf_get_bool(const char *pgname, const char *propname, uint8_t *rval)
usr/src/cmd/acctadm/aconf.c
497
scf_value_get_boolean(value, rval) == -1)
usr/src/cmd/audio/audioctl/audioctl.c
1003
int rval = 0;
usr/src/cmd/audio/audioctl/audioctl.c
1069
rval = rval ? rval : rv;
usr/src/cmd/audio/audioctl/audioctl.c
1074
return (rval);
usr/src/cmd/audio/audioctl/audioctl.c
1081
int rval = 0;
usr/src/cmd/audio/audioctl/audioctl.c
1155
rval = rval ? rval : rv;
usr/src/cmd/audio/audioctl/audioctl.c
1163
return (rval);
usr/src/cmd/audio/audioctl/audioctl.c
609
int lval, rval;
usr/src/cmd/audio/audioctl/audioctl.c
635
rval = atoi(rstr);
usr/src/cmd/audio/audioctl/audioctl.c
642
rval = lval;
usr/src/cmd/audio/audioctl/audioctl.c
645
cval.value = AUDIO_CTRL_STEREO_VAL(lval, rval);
usr/src/cmd/audio/audioctl/audioctl.c
875
int rval = 0;
usr/src/cmd/audio/audioctl/audioctl.c
912
rval = rval ? rval : rv;
usr/src/cmd/audio/audioctl/audioctl.c
914
return (rval);
usr/src/cmd/audio/audioctl/audioctl.c
924
rval = rval ? rval : rv;
usr/src/cmd/audio/audioctl/audioctl.c
931
rval = rval ? rval : ENODEV;
usr/src/cmd/audio/audioctl/audioctl.c
935
return (rval);
usr/src/cmd/audio/audioctl/audioctl.c
942
int rval = 0;
usr/src/cmd/audio/audioctl/audioctl.c
990
rval = rval ? rval : rv;
usr/src/cmd/audio/audioctl/audioctl.c
996
return (rval);
usr/src/cmd/awk_xpg4/awk3.c
2085
REAL rval;
usr/src/cmd/awk_xpg4/awk3.c
2087
rval = isstring(t) ? exprreal(np) : np->n_real;
usr/src/cmd/awk_xpg4/awk3.c
2088
return (rval != 0.0);
usr/src/cmd/bhyve/common/mem.c
155
mem_read(struct vcpu *vcpu, uint64_t gpa, uint64_t *rval, int size, void *arg)
usr/src/cmd/bhyve/common/mem.c
160
error = (*mr->handler)(vcpu, MEM_F_READ, gpa, size, rval, mr->arg1,
usr/src/cmd/bhyve/common/mem.c
276
read_mem(struct vcpu *vcpu, uint64_t gpa, uint64_t *rval, int size)
usr/src/cmd/bhyve/common/mem.c
280
rma.val = rval;
usr/src/cmd/bhyve/common/mem.h
57
int read_mem(struct vcpu *vpu, uint64_t gpa, uint64_t *rval, int size);
usr/src/cmd/bnu/account.c
335
time_t rval;
usr/src/cmd/bnu/account.c
339
rval = ((tbuf.tms_utime-utime) + (tbuf.tms_stime-stime))*1000/HZ;
usr/src/cmd/bnu/account.c
342
return(rval);
usr/src/cmd/bnu/conn.c
739
int rval;
usr/src/cmd/bnu/conn.c
743
while((rval = read(dcf, buff, BUFSIZ)) > 0);
usr/src/cmd/bnu/conn.c
745
if (rval < 0) {
usr/src/cmd/bnu/cu.c
1228
int line_ok = 1, rval;
usr/src/cmd/bnu/cu.c
1236
rval = r_char(Cn);
usr/src/cmd/bnu/cu.c
1237
if (rval == NO) {
usr/src/cmd/bnu/cu.c
1241
if (rval == HUNGUP) {
usr/src/cmd/bnu/logent.c
188
time_t now, rval;
usr/src/cmd/bnu/logent.c
193
rval = 0;
usr/src/cmd/bnu/logent.c
197
rval = (now - past) / HZ * 1000;
usr/src/cmd/bnu/logent.c
199
rval = (now - past) * 1000 / HZ;
usr/src/cmd/bnu/logent.c
202
return(rval);
usr/src/cmd/bnu/logent.c
212
time_t rval;
usr/src/cmd/bnu/logent.c
216
rval = 0;
usr/src/cmd/bnu/logent.c
220
rval = (tbuf.time - tbuf1.time) * 1000
usr/src/cmd/bnu/logent.c
224
return(rval);
usr/src/cmd/bnu/strsave.c
42
register char *rval;
usr/src/cmd/bnu/strsave.c
44
rval = (char *)malloc(strlen(str) + 1);
usr/src/cmd/bnu/strsave.c
45
if (rval != 0)
usr/src/cmd/bnu/strsave.c
46
strcpy(rval, str);
usr/src/cmd/bnu/strsave.c
47
return(rval);
usr/src/cmd/boot/bootadm/bootadm.c
2782
int n, rval;
usr/src/cmd/boot/bootadm/bootadm.c
2843
rval = read_one_list(root, flistp, BOOT_FILE_LIST);
usr/src/cmd/boot/bootadm/bootadm.c
2844
if (rval != BAM_SUCCESS)
usr/src/cmd/boot/bootadm/bootadm.c
2845
return (rval);
usr/src/cmd/boot/bootadm/bootadm.c
5568
int rval, pno, ext_partno = PARTNO_NOTFOUND;
usr/src/cmd/boot/bootadm/bootadm.c
5590
if ((rval = libfdisk_init(&epp, wholedisk, NULL, FDISK_READ_DISK))
usr/src/cmd/boot/bootadm/bootadm.c
5592
switch (rval) {
usr/src/cmd/boot/bootadm/bootadm.c
5650
rval = fdisk_get_solaris_part(epp, &pno, &secnum, &numsec);
usr/src/cmd/boot/bootadm/bootadm.c
5651
if (rval == FDISK_SUCCESS) {
usr/src/cmd/boot/installboot/i386/installboot.c
1311
int fd, rval, pno;
usr/src/cmd/boot/installboot/i386/installboot.c
1351
rval = libfdisk_init(&epp, pl->pl_devname, part, FDISK_READ_DISK);
usr/src/cmd/boot/installboot/i386/installboot.c
1352
if (rval != FDISK_SUCCESS) {
usr/src/cmd/boot/installboot/i386/installboot.c
1353
switch (rval) {
usr/src/cmd/boot/installboot/i386/installboot.c
1363
"Aborting operation. %d\n"), rval);
usr/src/cmd/boot/installboot/i386/installboot.c
1383
rval = fdisk_get_solaris_part(epp, &pno, &secnum, &numsec);
usr/src/cmd/boot/installboot/i386/installboot.c
1385
if (rval != FDISK_SUCCESS) {
usr/src/cmd/boot/installgrub/installgrub.c
729
int i, pno, rval, log_part = 0;
usr/src/cmd/boot/installgrub/installgrub.c
814
if ((rval = libfdisk_init(&epp, device->path_p0, NULL, FDISK_READ_DISK))
usr/src/cmd/boot/installgrub/installgrub.c
816
switch (rval) {
usr/src/cmd/boot/installgrub/installgrub.c
841
rval = fdisk_get_solaris_part(epp, &pno, &secnum, &numsec);
usr/src/cmd/boot/installgrub/installgrub.c
843
if (rval != FDISK_SUCCESS) {
usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_door.c
172
ipmgmt_getprop_rval_t rval, *rvalp = &rval;
usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_door.c
191
ipmgmt_retval_t rval;
usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_door.c
222
rval.ir_err = err;
usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_door.c
223
(void) door_return((char *)&rval, sizeof (rval), NULL, 0);
usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_door.c
331
ipmgmt_retval_t rval;
usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_door.c
361
rval.ir_err = err;
usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_door.c
362
(void) door_return((char *)&rval, sizeof (rval), NULL, 0);
usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_door.c
381
ipmgmt_retval_t rval;
usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_door.c
422
rvalp = &rval;
usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_door.c
434
rvalp = &rval;
usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_door.c
522
rvalp = &rval;
usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_door.c
585
ipmgmt_retval_t rval;
usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_door.c
587
rval.ir_err = ipmgmt_persist_if(argp);
usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_door.c
588
(void) door_return((char *)&rval, sizeof (rval), NULL, 0);
usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_door.c
600
ipmgmt_retval_t rval;
usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_door.c
619
rval.ir_err = err;
usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_door.c
620
(void) door_return((char *)&rval, sizeof (rval), NULL, 0);
usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_door.c
632
ipmgmt_retval_t rval;
usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_door.c
658
rval.ir_err = err;
usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_door.c
659
(void) door_return((char *)&rval, sizeof (rval), NULL, 0);
usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_door.c
686
ipmgmt_retval_t rval;
usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_door.c
690
rval.ir_err = ipmgmt_db_walk(ipmgmt_db_resetprop, pargp,
usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_door.c
692
(void) door_return((char *)&rval, sizeof (rval), NULL, 0);
usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_door.c
723
ipmgmt_get_rval_t rval, *rvalp = &rval;
usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_door.c
829
ipmgmt_get_rval_t rval, *rvalp = &rval;
usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_door.c
888
ipmgmt_retval_t rval;
usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_door.c
956
rval.ir_err = err;
usr/src/cmd/cmd-inet/lib/ipmgmtd/ipmgmt_door.c
957
(void) door_return((char *)&rval, sizeof (rval), NULL, 0);
usr/src/cmd/cmd-inet/usr.lib/in.mpathd/mpd_main.c
2915
int rval;
usr/src/cmd/cmd-inet/usr.lib/in.mpathd/mpd_main.c
2965
rval = getmsg(mibfd, &ctlbuf, NULL, &flags);
usr/src/cmd/cmd-inet/usr.lib/in.mpathd/mpd_main.c
2966
if (rval & MORECTL || rval < 0) {
usr/src/cmd/cmd-inet/usr.lib/in.mpathd/mpd_main.c
2970
rval, errno);
usr/src/cmd/cmd-inet/usr.lib/in.mpathd/mpd_main.c
3016
if (rval == 0) {
usr/src/cmd/cmd-inet/usr.lib/in.mpathd/mpd_main.c
3055
if ((rval = getmsg(mibfd, NULL, &databuf,
usr/src/cmd/cmd-inet/usr.lib/in.mpathd/mpd_main.c
3057
if (rval < 0 && errno == EINTR)
usr/src/cmd/cmd-inet/usr.lib/in.mpathd/mpd_probe.c
224
int rval;
usr/src/cmd/cmd-inet/usr.lib/in.mpathd/mpd_probe.c
300
rval = sendto(pii->pii_probe_sock, &probe_pkt, sizeof (probe_pkt), 0,
usr/src/cmd/cmd-inet/usr.lib/in.mpathd/mpd_probe.c
308
if (rval == sizeof (probe_pkt) ||
usr/src/cmd/cmd-inet/usr.lib/in.mpathd/mpd_probe.c
309
(rval == -1 && errno == EWOULDBLOCK)) {
usr/src/cmd/cmd-inet/usr.lib/inetd/inetd.c
590
boolean_t rval = B_TRUE;
usr/src/cmd/cmd-inet/usr.lib/inetd/inetd.c
625
rval = B_FALSE;
usr/src/cmd/cmd-inet/usr.lib/inetd/inetd.c
632
rval = B_FALSE;
usr/src/cmd/cmd-inet/usr.lib/inetd/inetd.c
641
return (rval);
usr/src/cmd/cmd-inet/usr.lib/inetd/repval.c
283
rep_val_t *rval;
usr/src/cmd/cmd-inet/usr.lib/inetd/repval.c
285
for (rval = uu_list_first(vals); rval != NULL;
usr/src/cmd/cmd-inet/usr.lib/inetd/repval.c
286
rval = uu_list_next(vals, rval)) {
usr/src/cmd/cmd-inet/usr.lib/inetd/repval.c
287
if (rval->scf_val != NULL) {
usr/src/cmd/cmd-inet/usr.lib/inetd/repval.c
288
scf_value_destroy(rval->scf_val);
usr/src/cmd/cmd-inet/usr.lib/inetd/repval.c
289
rval->scf_val = NULL;
usr/src/cmd/cmd-inet/usr.lib/inetd/repval.c
306
rep_val_t *rval;
usr/src/cmd/cmd-inet/usr.lib/inetd/repval.c
308
for (rval = uu_list_first(vals); rval != NULL;
usr/src/cmd/cmd-inet/usr.lib/inetd/repval.c
309
rval = uu_list_next(vals, rval)) {
usr/src/cmd/cmd-inet/usr.lib/inetd/repval.c
311
assert(rval->scf_val == NULL);
usr/src/cmd/cmd-inet/usr.lib/inetd/repval.c
312
if ((rval->scf_val = scf_value_create(hdl)) == NULL) {
usr/src/cmd/cmd-inet/usr.lib/inetd/repval.c
317
scf_value_set_integer(rval->scf_val, rval->val);
usr/src/cmd/cmd-inet/usr.lib/inetd/repval.c
319
if (scf_entry_add_value(entry, rval->scf_val) < 0) {
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
2788
int rval;
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
2803
rval = strcmp(arg, NONE_STR);
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
2804
if (rval != 0) {
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
2821
if (rval == 0)
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
2839
int n, numifs, rval = 0;
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
2907
rval = ioctl(s, SIOCGLIFSRCOF, (char *)&lifs);
usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c
2908
if (rval < 0) {
usr/src/cmd/cmd-inet/usr.sbin/inetconv/inetconv.c
1045
scf_error_t rval;
usr/src/cmd/cmd-inet/usr.sbin/inetconv/inetconv.c
1075
if ((rval = store_inetd_hash(hashstr)) != SCF_ERROR_NONE) {
usr/src/cmd/cmd-inet/usr.sbin/inetconv/inetconv.c
1078
progname, scf_strerror(rval));
usr/src/cmd/cmd-inet/usr.sbin/inetconv/inetconv.c
1408
int c, rval, convert_err, import_err = 0, enable_err = 0;
usr/src/cmd/cmd-inet/usr.sbin/inetconv/inetconv.c
1483
rval = scf_simple_walk_instances(SCF_STATE_ALL, iconf,
usr/src/cmd/cmd-inet/usr.sbin/inetconv/inetconv.c
1486
if (rval == SCF_FAILED) {
usr/src/cmd/cmd-inet/usr.sbin/inetconv/inetconv.c
1499
if ((rval = open_dstfile(destdir, overwrite, iconf, &dstfinfo))
usr/src/cmd/cmd-inet/usr.sbin/inetconv/inetconv.c
1505
if (rval == -2)
usr/src/cmd/cmd-inet/usr.sbin/inetconv/inetconv.c
1510
rval = print_manifest(dstfinfo->fp, dstfinfo->filename, iconf);
usr/src/cmd/cmd-inet/usr.sbin/inetconv/inetconv.c
1512
if (rval == 0) {
usr/src/cmd/cmd-inet/usr.sbin/route.c
407
int rval;
usr/src/cmd/cmd-inet/usr.sbin/route.c
521
rval = 0;
usr/src/cmd/cmd-inet/usr.sbin/route.c
523
rval = newroute(argv);
usr/src/cmd/cmd-inet/usr.sbin/route.c
525
if (perm_flag && (rval == 0 || rval == EEXIST ||
usr/src/cmd/cmd-inet/usr.sbin/route.c
526
rval == ESRCH)) {
usr/src/cmd/cmd-inet/usr.sbin/route.c
530
return (rval);
usr/src/cmd/cron/cron.c
3256
int r = 0, rval = 0;
usr/src/cmd/cron/cron.c
3263
rval = VUC_BADUSER;
usr/src/cmd/cron/cron.c
3272
rval = VUC_EXPIRED;
usr/src/cmd/cron/cron.c
3276
rval = VUC_NEW_AUTH;
usr/src/cmd/cron/cron.c
3280
rval = VUC_BADUSER;
usr/src/cmd/cron/cron.c
3294
rval = VUC_BADUSER;
usr/src/cmd/cron/cron.c
3298
return (rval);
usr/src/cmd/dfs.cmds/sharectl/sharectl.c
58
int rval;
usr/src/cmd/dfs.cmds/sharectl/sharectl.c
91
rval = run_command(command, argc - optind, argv + optind, handle);
usr/src/cmd/dfs.cmds/sharectl/sharectl.c
94
return (rval);
usr/src/cmd/dfs.cmds/sharemgr/sharemgr_main.c
118
rval = run_command(command, argc, argv, protocol, handle);
usr/src/cmd/dfs.cmds/sharemgr/sharemgr_main.c
121
return (rval);
usr/src/cmd/dfs.cmds/sharemgr/sharemgr_main.c
58
int rval;
usr/src/cmd/dladm/dladm.c
7306
int rval;
usr/src/cmd/dladm/dladm.c
7312
rval = convert_secobj(buf, len, obj_val, obj_lenp, class);
usr/src/cmd/dladm/dladm.c
7313
if (rval == 0) {
usr/src/cmd/dladm/dladm.c
7316
rval = ENOTSUP;
usr/src/cmd/dladm/dladm.c
7318
return (rval);
usr/src/cmd/dladm/dladm.c
7403
int option, rval;
usr/src/cmd/dladm/dladm.c
7472
rval = get_secobj_val(obj_name, obj_val, &obj_len, class, filep);
usr/src/cmd/dladm/dladm.c
7473
if (rval != 0) {
usr/src/cmd/dladm/dladm.c
7474
switch (rval) {
usr/src/cmd/dladm/dladm.c
7485
die("invalid secure object: %s", strerror(rval));
usr/src/cmd/eject/eject.c
422
boolean_t rval = B_FALSE;
usr/src/cmd/eject/eject.c
427
rval = B_TRUE;
usr/src/cmd/eject/eject.c
436
return (rval);
usr/src/cmd/eject/eject.c
551
int rval; /* FDGETCHANGE return value */
usr/src/cmd/eject/eject.c
568
rval = 0;
usr/src/cmd/eject/eject.c
569
if (ioctl(fd, FDGETCHANGE, &rval) >= 0) {
usr/src/cmd/eject/eject.c
572
if (!(rval & FDGC_CURRENT)) {
usr/src/cmd/eject/eject.c
579
if (rval & FDGC_CURRENT) {
usr/src/cmd/fcinfo/fcadm-list.c
955
int rval = 0;
usr/src/cmd/fcinfo/fcadm-list.c
984
status = Sun_HBA_ForceLip(handle, &rval);
usr/src/cmd/fcinfo/fcadm-list.c
985
if ((status != HBA_STATUS_OK) || (rval != 0)) {
usr/src/cmd/fdisk/fdisk.c
1178
if ((rval = libfdisk_init(&epp, Dfltdev, &Table[0], lf_op_flag))
usr/src/cmd/fdisk/fdisk.c
1180
switch (rval) {
usr/src/cmd/fdisk/fdisk.c
2665
int rval;
usr/src/cmd/fdisk/fdisk.c
2739
rval = fdisk_commit_ext_part(epp);
usr/src/cmd/fdisk/fdisk.c
2740
switch (rval) {
usr/src/cmd/fdisk/fdisk.c
5371
int rval;
usr/src/cmd/fdisk/fdisk.c
5383
rval = ext_read_valid_partition_start(&begsec);
usr/src/cmd/fdisk/fdisk.c
5384
switch (rval) {
usr/src/cmd/fdisk/fdisk.c
716
int rval;
usr/src/cmd/fdisk/fdisk.c
733
rval = fdisk_commit_ext_part(epp);
usr/src/cmd/fdisk/fdisk.c
734
switch (rval) {
usr/src/cmd/fdisk/fdisk.c
744
exit(rval);
usr/src/cmd/fdisk/fdisk.c
766
int rval;
usr/src/cmd/fm/eversholt/common/check.c
193
int rval = 0;
usr/src/cmd/fm/eversholt/common/check.c
197
rval = 1;
usr/src/cmd/fm/eversholt/common/check.c
208
rval = 1;
usr/src/cmd/fm/eversholt/common/check.c
215
rval = 1;
usr/src/cmd/fm/eversholt/common/check.c
218
return (rval);
usr/src/cmd/fm/fmd/common/fmd_asru.c
1370
int *rval = (int *)arg;
usr/src/cmd/fm/fmd/common/fmd_asru.c
1374
*rval = 0;
usr/src/cmd/fm/modules/common/eversholt/eval.c
1393
struct evalue rval;
usr/src/cmd/fm/modules/common/eversholt/eval.c
1430
arrowp, try, &rval))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1443
gval->t = rval.t;
usr/src/cmd/fm/modules/common/eversholt/eval.c
1444
gval->v = rval.v;
usr/src/cmd/fm/modules/common/eversholt/eval.c
1481
croot, arrowp, try, &rval))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1489
gval->t = rval.t;
usr/src/cmd/fm/modules/common/eversholt/eval.c
1490
gval->v = rval.v;
usr/src/cmd/fm/modules/common/eversholt/eval.c
1491
valuep->t = rval.t;
usr/src/cmd/fm/modules/common/eversholt/eval.c
1492
valuep->v = rval.v;
usr/src/cmd/fm/modules/common/eversholt/eval.c
1501
arrowp, try, &rval))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1503
if (rval.t == UINT64 || lval.t == UINT64) {
usr/src/cmd/fm/modules/common/eversholt/eval.c
1504
if (check_expr_args(&lval, &rval, UINT64, np))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1507
if (check_expr_args(&lval, &rval, UNDEFINED, np))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1512
valuep->v = (lval.v == rval.v);
usr/src/cmd/fm/modules/common/eversholt/eval.c
1520
arrowp, try, &rval))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1522
if (check_expr_args(&lval, &rval, UINT64, np))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1526
valuep->v = (lval.v < rval.v);
usr/src/cmd/fm/modules/common/eversholt/eval.c
1534
arrowp, try, &rval))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1536
if (check_expr_args(&lval, &rval, UINT64, np))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1540
valuep->v = (lval.v <= rval.v);
usr/src/cmd/fm/modules/common/eversholt/eval.c
1548
arrowp, try, &rval))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1550
if (check_expr_args(&lval, &rval, UINT64, np))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1554
valuep->v = (lval.v > rval.v);
usr/src/cmd/fm/modules/common/eversholt/eval.c
1562
arrowp, try, &rval))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1564
if (check_expr_args(&lval, &rval, UINT64, np))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1568
valuep->v = (lval.v >= rval.v);
usr/src/cmd/fm/modules/common/eversholt/eval.c
1576
arrowp, try, &rval))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1578
if (check_expr_args(&lval, &rval, UINT64, np))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1582
valuep->v = (lval.v & rval.v);
usr/src/cmd/fm/modules/common/eversholt/eval.c
1590
arrowp, try, &rval))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1592
if (check_expr_args(&lval, &rval, UINT64, np))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1596
valuep->v = (lval.v | rval.v);
usr/src/cmd/fm/modules/common/eversholt/eval.c
1604
arrowp, try, &rval))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1606
if (check_expr_args(&lval, &rval, UINT64, np))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1610
valuep->v = (lval.v ^ rval.v);
usr/src/cmd/fm/modules/common/eversholt/eval.c
1630
arrowp, try, &rval))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1632
if (check_expr_args(&lval, &rval, UINT64, np))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1636
valuep->v = (lval.v << rval.v);
usr/src/cmd/fm/modules/common/eversholt/eval.c
1644
arrowp, try, &rval))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1646
if (check_expr_args(&lval, &rval, UINT64, np))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1650
valuep->v = (lval.v >> rval.v);
usr/src/cmd/fm/modules/common/eversholt/eval.c
1710
arrowp, try, &rval))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1712
if (rval.t == UINT64 || lval.t == UINT64) {
usr/src/cmd/fm/modules/common/eversholt/eval.c
1713
if (check_expr_args(&lval, &rval, UINT64, np))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1716
if (check_expr_args(&lval, &rval, UNDEFINED, np))
usr/src/cmd/fm/modules/common/eversholt/eval.c
172
struct evalue rval;
usr/src/cmd/fm/modules/common/eversholt/eval.c
1721
valuep->v = (lval.v != rval.v);
usr/src/cmd/fm/modules/common/eversholt/eval.c
180
arrowp, try, &rval))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1807
arrowp, try, &rval))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1809
if (check_expr_args(&lval, &rval, UINT64, np))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1813
valuep->v = lval.v + rval.v;
usr/src/cmd/fm/modules/common/eversholt/eval.c
1821
arrowp, try, &rval))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1823
if (check_expr_args(&lval, &rval, UINT64, np))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1827
if (lval.v < rval.v) {
usr/src/cmd/fm/modules/common/eversholt/eval.c
183
(char *)(uintptr_t)rval.v);
usr/src/cmd/fm/modules/common/eversholt/eval.c
1833
valuep->v = lval.v - rval.v;
usr/src/cmd/fm/modules/common/eversholt/eval.c
1841
arrowp, try, &rval))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1843
if (check_expr_args(&lval, &rval, UINT64, np))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1847
valuep->v = lval.v * rval.v;
usr/src/cmd/fm/modules/common/eversholt/eval.c
1855
arrowp, try, &rval))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1857
if (check_expr_args(&lval, &rval, UINT64, np))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1861
if (rval.v == 0) {
usr/src/cmd/fm/modules/common/eversholt/eval.c
1867
valuep->v = lval.v / rval.v;
usr/src/cmd/fm/modules/common/eversholt/eval.c
187
(char *)(uintptr_t)rval.v);
usr/src/cmd/fm/modules/common/eversholt/eval.c
1875
arrowp, try, &rval))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1877
if (check_expr_args(&lval, &rval, UINT64, np))
usr/src/cmd/fm/modules/common/eversholt/eval.c
1881
if (rval.v == 0) {
usr/src/cmd/fm/modules/common/eversholt/eval.c
1887
valuep->v = lval.v % rval.v;
usr/src/cmd/fm/modules/common/eversholt/eval.c
190
(char *)(uintptr_t)rval.v, s);
usr/src/cmd/fm/modules/common/io-retire/rio_main.c
132
int rval = 0;
usr/src/cmd/fm/modules/common/io-retire/rio_main.c
214
rval = -1;
usr/src/cmd/fm/modules/common/io-retire/rio_main.c
225
rval = -1;
usr/src/cmd/fm/modules/common/io-retire/rio_main.c
288
if (strcmp(class, FM_LIST_SUSPECT_CLASS) == 0 && rval == 0) {
usr/src/cmd/fm/modules/common/io-retire/rio_main.c
299
if (strcmp(class, FM_LIST_REPAIRED_CLASS) == 0 && rval == 0 &&
usr/src/cmd/fm/modules/common/ses-log-transport/ses_log_transport.c
478
char *rval;
usr/src/cmd/fm/modules/common/ses-log-transport/ses_log_transport.c
482
rval = FATAL_ERROR;
usr/src/cmd/fm/modules/common/ses-log-transport/ses_log_transport.c
486
rval = NON_FATAL_ERROR;
usr/src/cmd/fm/modules/common/ses-log-transport/ses_log_transport.c
490
rval = NULL;
usr/src/cmd/fm/modules/common/ses-log-transport/ses_log_transport.c
494
return (rval);
usr/src/cmd/fm/modules/common/ses-log-transport/ses_log_transport.c
689
int rval = 0;
usr/src/cmd/fm/modules/common/ses-log-transport/ses_log_transport.c
691
if ((rval = nvpair_value_nvlist(entry, &entry_data)) != 0) {
usr/src/cmd/fm/modules/common/ses-log-transport/ses_log_transport.c
693
return (rval);
usr/src/cmd/fm/modules/common/ses-log-transport/ses_log_transport.c
696
if ((rval = nvlist_lookup_string(entry_data, ENTRY_SEVERITY, &severity))
usr/src/cmd/fm/modules/common/ses-log-transport/ses_log_transport.c
707
if ((rval = nvlist_lookup_string(entry_data, ENTRY_CODE,
usr/src/cmd/fm/modules/common/ses-log-transport/ses_log_transport.c
711
"Error retrieving code: %d", rval);
usr/src/cmd/fm/modules/common/ses-log-transport/ses_log_transport.c
712
return (rval);
usr/src/cmd/fm/modules/common/ses-log-transport/ses_log_transport.c
740
return (rval);
usr/src/cmd/fm/modules/common/ses-log-transport/ses_log_transport.c
748
if ((rval = nvlist_lookup_string(entry_data, ENTRY_LOG,
usr/src/cmd/fm/modules/common/ses-log-transport/ses_log_transport.c
760
return (rval);
usr/src/cmd/fm/schemes/dev/scheme.c
90
int err, rval;
usr/src/cmd/fm/schemes/dev/scheme.c
96
rval = topo_fmri_replaced(thp, nvl, &err);
usr/src/cmd/fm/schemes/dev/scheme.c
99
return (rval);
usr/src/cmd/fm/schemes/mem/mem.c
302
int page_err, rval = page_isretired(nvlcp, &page_err);
usr/src/cmd/fm/schemes/mem/mem.c
303
if (rval == FMD_AGENT_RETIRE_DONE && page_err == EINVAL)
usr/src/cmd/fm/schemes/mem/mem.c
405
int page_err, rval = page_isretired(nvlcp, &page_err);
usr/src/cmd/fm/schemes/mem/mem.c
406
if (rval == FMD_AGENT_RETIRE_DONE && page_err == EINVAL)
usr/src/cmd/format/auto_sense.c
468
int rval = -1;
usr/src/cmd/format/auto_sense.c
586
rval = 0;
usr/src/cmd/format/auto_sense.c
594
rval = -1;
usr/src/cmd/format/auto_sense.c
606
return (rval);
usr/src/cmd/format/defect.c
496
int rval;
usr/src/cmd/format/defect.c
502
rval = sz ? ((sz * sizeof (struct defect_entry) +
usr/src/cmd/format/defect.c
505
return (rval);
usr/src/cmd/format/menu_fdisk.c
1003
int rval, lf_op_flag = 0;
usr/src/cmd/format/menu_fdisk.c
1008
if ((rval = libfdisk_init(epp, p0_path, NULL, lf_op_flag)) !=
usr/src/cmd/format/menu_fdisk.c
1010
switch (rval) {
usr/src/cmd/format/menu_fdisk.c
492
int pno, rval, ext_part_found = 0;
usr/src/cmd/format/menu_fdisk.c
535
rval = fdisk_get_solaris_part(epp, &pno, &relsec,
usr/src/cmd/format/menu_fdisk.c
537
if (rval == FDISK_SUCCESS) {
usr/src/cmd/format/menu_fdisk.c
690
int pno, rval, ext_part_found = 0;
usr/src/cmd/format/menu_fdisk.c
765
rval = fdisk_get_solaris_part(epp, &pno, &relsec,
usr/src/cmd/format/menu_fdisk.c
767
if (rval == FDISK_SUCCESS) {
usr/src/cmd/format/menu_fdisk.c
845
int pno, rval, ext_part_found = 0;
usr/src/cmd/format/menu_fdisk.c
890
rval = fdisk_get_solaris_part(epp, &pno, &relsec,
usr/src/cmd/format/menu_fdisk.c
892
if (rval == FDISK_SUCCESS) {
usr/src/cmd/fs.d/mount.c
881
int rval = 0;
usr/src/cmd/fs.d/mount.c
899
rval = 1;
usr/src/cmd/fs.d/mount.c
904
return (rval);
usr/src/cmd/fs.d/pcfs/mkfs/mkfs_main.c
474
int rval;
usr/src/cmd/fs.d/pcfs/mkfs/mkfs_main.c
478
rval = 12;
usr/src/cmd/fs.d/pcfs/mkfs/mkfs_main.c
484
rval = 16;
usr/src/cmd/fs.d/pcfs/mkfs/mkfs_main.c
488
rval = 32;
usr/src/cmd/fs.d/pcfs/mkfs/mkfs_main.c
493
rval = -1;
usr/src/cmd/fs.d/pcfs/mkfs/mkfs_main.c
497
return (rval);
usr/src/cmd/fs.d/ufs/fsck/dir.c
513
int rval;
usr/src/cmd/fs.d/ufs/fsck/dir.c
616
rval = do_reconnect(orphan, parentdir, name);
usr/src/cmd/fs.d/ufs/fsck/dir.c
618
return (rval);
usr/src/cmd/fs.d/ufs/fsck/fsck.h
437
#define LFDIR_LINK_RANGE_RVAL(text, current, offset, idp, rval) { \
usr/src/cmd/fs.d/ufs/fsck/fsck.h
443
return (rval); \
usr/src/cmd/fs.d/ufs/fsck/utilities.c
388
rwerror(caddr_t mesg, diskaddr_t blk, int rval)
usr/src/cmd/fs.d/ufs/fsck/utilities.c
395
if (rval == -1)
usr/src/cmd/fs.d/ufs/fsck/utilities.c
81
static void rwerror(caddr_t, diskaddr_t, int rval);
usr/src/cmd/fs.d/ufs/fsck/utilities.c
847
int rval = 0;
usr/src/cmd/fs.d/ufs/fsck/utilities.c
861
rval = ALTERED;
usr/src/cmd/fs.d/ufs/fsck/utilities.c
869
rval = ALTERED;
usr/src/cmd/fs.d/ufs/fsck/utilities.c
873
rval = ALTERED;
usr/src/cmd/fs.d/ufs/fsck/utilities.c
884
return (rval);
usr/src/cmd/fwflash/common/fwflash.c
254
int rval = FWFLASH_SUCCESS;
usr/src/cmd/fwflash/common/fwflash.c
371
return (rval);
usr/src/cmd/fwflash/common/fwflash.c
493
rval = errno;
usr/src/cmd/fwflash/common/fwflash.c
498
return (rval);
usr/src/cmd/ipdadm/ipdadm.c
108
int fd, rval;
usr/src/cmd/ipdadm/ipdadm.c
127
rval = ipd_status_read(fd, &hdl);
usr/src/cmd/ipdadm/ipdadm.c
130
if (rval != 0) {
usr/src/cmd/ipdadm/ipdadm.c
146
int rval, fd;
usr/src/cmd/ipdadm/ipdadm.c
159
rval = ipd_status_read(fd, &hdl);
usr/src/cmd/ipdadm/ipdadm.c
161
if (rval != 0) {
usr/src/cmd/ipdadm/ipdadm.c
228
int rval, fd;
usr/src/cmd/ipdadm/ipdadm.c
249
rval = ipd_ctl(fd, g_zid, &ic);
usr/src/cmd/ipdadm/ipdadm.c
252
if (rval != 0) {
usr/src/cmd/ipdadm/ipdadm.c
265
int fd, rval;
usr/src/cmd/ipdadm/ipdadm.c
285
rval = ipd_ctl(fd, g_zid, &ic);
usr/src/cmd/ipdadm/ipdadm.c
288
if (rval != 0) {
usr/src/cmd/ipdadm/ipdadm.c
301
int fd, rval;
usr/src/cmd/ipdadm/ipdadm.c
321
rval = ipd_ctl(fd, g_zid, &ic);
usr/src/cmd/ipdadm/ipdadm.c
324
if (rval != 0) {
usr/src/cmd/ipdadm/ipdadm.c
352
int rval, fd;
usr/src/cmd/ipdadm/ipdadm.c
371
if ((rval = ipdadm_remove_valid(cur)) == 0) {
usr/src/cmd/ipdadm/ipdadm.c
376
ic.ic_mask |= rval;
usr/src/cmd/ipdadm/ipdadm.c
380
if ((rval = ipdadm_remove_valid(cur)) == 0) {
usr/src/cmd/ipdadm/ipdadm.c
385
ic.ic_mask |= rval;
usr/src/cmd/ipdadm/ipdadm.c
393
rval = ipd_ctl(fd, g_zid, &ic);
usr/src/cmd/ipdadm/ipdadm.c
395
if (rval == -1) {
usr/src/cmd/ipf/tools/lexer.c
176
int c, n, isbuilding, rval, lnext, nokey = 0;
usr/src/cmd/ipf/tools/lexer.c
181
rval = 0;
usr/src/cmd/ipf/tools/lexer.c
246
rval = YY_COMMENT;
usr/src/cmd/ipf/tools/lexer.c
257
rval = -2;
usr/src/cmd/ipf/tools/lexer.c
301
rval = -2;
usr/src/cmd/ipf/tools/lexer.c
309
rval = YY_STR;
usr/src/cmd/ipf/tools/lexer.c
329
rval = c;
usr/src/cmd/ipf/tools/lexer.c
333
rval = c;
usr/src/cmd/ipf/tools/lexer.c
354
rval = '-';
usr/src/cmd/ipf/tools/lexer.c
364
rval = YY_CMP_NE;
usr/src/cmd/ipf/tools/lexer.c
368
rval = '!';
usr/src/cmd/ipf/tools/lexer.c
380
rval = YY_CMP_LE;
usr/src/cmd/ipf/tools/lexer.c
384
rval = YY_RANGE_OUT;
usr/src/cmd/ipf/tools/lexer.c
388
rval = YY_CMP_LT;
usr/src/cmd/ipf/tools/lexer.c
400
rval = YY_CMP_GE;
usr/src/cmd/ipf/tools/lexer.c
404
rval = YY_RANGE_IN;
usr/src/cmd/ipf/tools/lexer.c
408
rval = YY_CMP_GT;
usr/src/cmd/ipf/tools/lexer.c
442
rval = YY_IPV6;
usr/src/cmd/ipf/tools/lexer.c
456
rval = ':';
usr/src/cmd/ipf/tools/lexer.c
467
rval = YY_HEX;
usr/src/cmd/ipf/tools/lexer.c
481
rval = YY_NUMBER;
usr/src/cmd/ipf/tools/lexer.c
509
rval = w->w_value;
usr/src/cmd/ipf/tools/lexer.c
511
rval = YY_STR;
usr/src/cmd/ipf/tools/lexer.c
514
if (rval == YY_STR && yysavedepth > 0)
usr/src/cmd/ipf/tools/lexer.c
517
yytokentype = rval;
usr/src/cmd/ipf/tools/lexer.c
521
string_end, pos, rval, yysavedepth);
usr/src/cmd/ipf/tools/lexer.c
523
switch (rval) {
usr/src/cmd/ipf/tools/lexer.c
547
return (rval);
usr/src/cmd/iscsiadm/iscsiadm_main.c
625
int rval;
usr/src/cmd/iscsiadm/iscsiadm_main.c
661
rval = inet_pton(addressType, tmpStrPtr,
usr/src/cmd/iscsiadm/iscsiadm_main.c
664
if (rval != 1) {
usr/src/cmd/iscsid/iscsid.c
135
uint32_t rval;
usr/src/cmd/iscsid/iscsid.c
266
ISCSI_SMF_OFFLINE, &rval);
usr/src/cmd/iscsid/iscsid.c
278
if (rval == B_FALSE) {
usr/src/cmd/kvmstat/kvmstat.c
106
int rval;
usr/src/cmd/kvmstat/kvmstat.c
108
if ((rval = strcmp(l->ksi_name, r->ksi_name)) != 0)
usr/src/cmd/kvmstat/kvmstat.c
109
return (rval);
usr/src/cmd/logadm/opts.c
218
off_t *rval;
usr/src/cmd/logadm/opts.c
221
rval = MALLOC(sizeof (off_t));
usr/src/cmd/logadm/opts.c
225
*rval = (*info->oi_parser)(o, optarg);
usr/src/cmd/logadm/opts.c
226
opts->op_ints = lut_add(opts->op_ints, o, (void *)rval);
usr/src/cmd/lp/lib/msgs/getmessage.c
48
int rval;
usr/src/cmd/lp/lib/msgs/getmessage.c
57
rval = _getmessage(buf, type, arg);
usr/src/cmd/lp/lib/msgs/getmessage.c
59
return(rval);
usr/src/cmd/lp/lib/msgs/msend.c
47
int rval;
usr/src/cmd/lp/lib/msgs/msend.c
51
if ((rval = mwrite(lp_Md, msgbuf)) < 0)
usr/src/cmd/lp/lib/msgs/msend.c
66
while (rval < 0 && errno == EINTR);
usr/src/cmd/lp/lib/msgs/msend.c
68
return(rval);
usr/src/cmd/lp/lib/msgs/streamio.c
153
int rval;
usr/src/cmd/lp/lib/msgs/streamio.c
162
rval = write_fifo(md->writefd, tmpbuf, size + EXCESS_3_2_LEN);
usr/src/cmd/lp/lib/msgs/streamio.c
167
return (rval);
usr/src/cmd/luxadm/g_adm.c
1857
int i, rval, al_pa, path_index = 0, err = 0;
usr/src/cmd/luxadm/g_adm.c
1961
if (rval = l_new_name(path_phys, name)) {
usr/src/cmd/luxadm/g_adm.c
1962
(void) print_errString(rval, path_phys);
usr/src/cmd/mdb/common/kmdb/kmdb_kvm.c
400
uintptr_t *call_argv, rval;
usr/src/cmd/mdb/common/kmdb/kmdb_kvm.c
461
rval = kmdb_dpi_call(addr, argc, call_argv);
usr/src/cmd/mdb/common/kmdb/kmdb_kvm.c
465
mdb_printf("%p\n", rval);
usr/src/cmd/mdb/common/kmdb/kmdb_kvm.c
468
mdb_printf("%p = %a(", rval, addr);
usr/src/cmd/mdb/common/mdb/mdb_kvm.c
776
ssize_t rval;
usr/src/cmd/mdb/common/mdb/mdb_kvm.c
778
if ((rval = kt->k_kb_ops->kb_aread(kt->k_cookie, addr, buf,
usr/src/cmd/mdb/common/mdb/mdb_kvm.c
782
return (rval);
usr/src/cmd/mdb/common/mdb/mdb_kvm.c
790
ssize_t rval;
usr/src/cmd/mdb/common/mdb/mdb_kvm.c
792
if ((rval = kt->k_kb_ops->kb_awrite(kt->k_cookie, addr, buf,
usr/src/cmd/mdb/common/mdb/mdb_kvm.c
796
return (rval);
usr/src/cmd/mdb/common/mdb/mdb_kvm.c
803
ssize_t rval;
usr/src/cmd/mdb/common/mdb/mdb_kvm.c
805
if ((rval = kt->k_kb_ops->kb_kread(kt->k_cookie, addr, buf,
usr/src/cmd/mdb/common/mdb/mdb_kvm.c
809
return (rval);
usr/src/cmd/mdb/common/mdb/mdb_kvm.c
816
ssize_t rval;
usr/src/cmd/mdb/common/mdb/mdb_kvm.c
818
if ((rval = kt->k_kb_ops->kb_kwrite(kt->k_cookie, addr, buf,
usr/src/cmd/mdb/common/mdb/mdb_kvm.c
822
return (rval);
usr/src/cmd/mdb/common/mdb/mdb_kvm.c
841
ssize_t rval;
usr/src/cmd/mdb/common/mdb/mdb_kvm.c
843
if ((rval = kt->k_kb_ops->kb_pread(kt->k_cookie, addr, buf,
usr/src/cmd/mdb/common/mdb/mdb_kvm.c
847
return (rval);
usr/src/cmd/mdb/common/mdb/mdb_kvm.c
854
ssize_t rval;
usr/src/cmd/mdb/common/mdb/mdb_kvm.c
856
if ((rval = kt->k_kb_ops->kb_pwrite(kt->k_cookie, addr, buf,
usr/src/cmd/mdb/common/mdb/mdb_kvm.c
860
return (rval);
usr/src/cmd/mdb/common/mdb/mdb_modapi.c
632
int status, rval = 0;
usr/src/cmd/mdb/common/mdb/mdb_modapi.c
650
rval = set_errno(EMDB_WALKINIT);
usr/src/cmd/mdb/common/mdb/mdb_modapi.c
669
return (rval);
usr/src/cmd/mdb/common/modules/dtrace/dtrace.c
1076
int rval = DCMD_ERR;
usr/src/cmd/mdb/common/modules/dtrace/dtrace.c
1198
rval = DCMD_OK;
usr/src/cmd/mdb/common/modules/dtrace/dtrace.c
1202
return (rval);
usr/src/cmd/mdb/common/modules/dtrace/dtrace.c
1366
int rval;
usr/src/cmd/mdb/common/modules/dtrace/dtrace.c
1407
rval = wsp->walk_callback(addr, ht, wsp->walk_cbdata);
usr/src/cmd/mdb/common/modules/dtrace/dtrace.c
1409
if (rval != WALK_NEXT)
usr/src/cmd/mdb/common/modules/dtrace/dtrace.c
1410
return (rval);
usr/src/cmd/mdb/common/modules/dtrace/dtrace.c
1619
int rval;
usr/src/cmd/mdb/common/modules/dtrace/dtrace.c
1634
rval = wsp->walk_callback(statep, &state, wsp->walk_cbdata);
usr/src/cmd/mdb/common/modules/dtrace/dtrace.c
1637
return (rval);
usr/src/cmd/mdb/common/modules/fctl/fctl.c
1098
int rval = DCMD_OK;
usr/src/cmd/mdb/common/modules/fctl/fctl.c
1117
rval = fc_dump_logmsg((fc_trace_dmsg_t *)logq.il_msgh, pktstart,
usr/src/cmd/mdb/common/modules/fctl/fctl.c
1120
rval = fc_dump_old_logmsg((fc_trace_dmsgv1_t *)logq.il_msgh,
usr/src/cmd/mdb/common/modules/fctl/fctl.c
1124
if (rval != DCMD_OK) {
usr/src/cmd/mdb/common/modules/fctl/fctl.c
1125
return (rval);
usr/src/cmd/mdb/common/modules/fctl/fctl.c
1133
return (rval);
usr/src/cmd/mdb/common/modules/genunix/cyclic.c
502
int i, ndx, new_ndx, lev, rval;
usr/src/cmd/mdb/common/modules/genunix/cyclic.c
532
rval = wsp->walk_callback(addr, &buf->cyt_buf[ndx], wsp->walk_cbdata);
usr/src/cmd/mdb/common/modules/genunix/cyclic.c
542
return (rval);
usr/src/cmd/mdb/common/modules/genunix/findstack.c
289
int rval;
usr/src/cmd/mdb/common/modules/genunix/findstack.c
301
(rval = strcmp(lbuf, rbuf)) != 0)
usr/src/cmd/mdb/common/modules/genunix/findstack.c
302
return (rval);
usr/src/cmd/mdb/common/modules/genunix/genunix.c
3192
int nflaglines = 0, flagline = 0, bspl, rval = WALK_NEXT;
usr/src/cmd/mdb/common/modules/genunix/genunix.c
3208
rval = WALK_DONE;
usr/src/cmd/mdb/common/modules/genunix/genunix.c
3414
return (rval);
usr/src/cmd/mdb/common/modules/genunix/kmem.c
3407
int rval;
usr/src/cmd/mdb/common/modules/genunix/kmem.c
3412
rval = wsp->walk_callback(vp->vn_addr, &vp->vn_vmem, wsp->walk_cbdata);
usr/src/cmd/mdb/common/modules/genunix/kmem.c
3416
return (rval);
usr/src/cmd/mdb/common/modules/genunix/kmem.c
3424
return (rval);
usr/src/cmd/mdb/common/modules/genunix/kmem.c
3438
int rval;
usr/src/cmd/mdb/common/modules/genunix/kmem.c
3469
rval = wsp->walk_callback(vp->vn_addr, &vp->vn_vmem, wsp->walk_cbdata);
usr/src/cmd/mdb/common/modules/genunix/kmem.c
3471
return (rval);
usr/src/cmd/mdb/common/modules/genunix/kmem.c
3560
int rval;
usr/src/cmd/mdb/common/modules/genunix/kmem.c
3579
rval = WALK_NEXT;
usr/src/cmd/mdb/common/modules/genunix/kmem.c
3581
rval = wsp->walk_callback(addr, &seg, wsp->walk_cbdata);
usr/src/cmd/mdb/common/modules/genunix/kmem.c
3587
return (rval);
usr/src/cmd/mdb/common/modules/genunix/leaky_subr.c
605
int rval;
usr/src/cmd/mdb/common/modules/genunix/leaky_subr.c
610
if (rval = strcmp(lbuf, rbuf))
usr/src/cmd/mdb/common/modules/genunix/leaky_subr.c
611
return (rval);
usr/src/cmd/mdb/common/modules/genunix/typegraph.c
1222
ssize_t rval;
usr/src/cmd/mdb/common/modules/genunix/typegraph.c
1253
if ((rval = mdb_vread(buf, size, addr)) != size) {
usr/src/cmd/mdb/common/modules/genunix/typegraph.c
1255
addr, size, rval);
usr/src/cmd/mdb/common/modules/libc/libc.c
1071
int rval = stacks(addr, flags, argc, argv);
usr/src/cmd/mdb/common/modules/libc/libc.c
1082
return (rval);
usr/src/cmd/mdb/common/modules/libumem/leaky_subr.c
679
int rval;
usr/src/cmd/mdb/common/modules/libumem/leaky_subr.c
684
if (rval = strcmp(lbuf, rbuf))
usr/src/cmd/mdb/common/modules/libumem/leaky_subr.c
685
return (rval);
usr/src/cmd/mdb/common/modules/libumem/umem.c
1038
int rval;
usr/src/cmd/mdb/common/modules/libumem/umem.c
1050
if ((rval = mdb_walk(walk,
usr/src/cmd/mdb/common/modules/libumem/umem.c
1059
return (rval);
usr/src/cmd/mdb/common/modules/libumem/umem.c
125
int rval;
usr/src/cmd/mdb/common/modules/libumem/umem.c
143
rval = wsp->walk_callback(this, &this, wsp->walk_cbdata);
usr/src/cmd/mdb/common/modules/libumem/umem.c
145
if (rval != WALK_NEXT)
usr/src/cmd/mdb/common/modules/libumem/umem.c
146
return (rval);
usr/src/cmd/mdb/common/modules/libumem/umem.c
3025
int rval;
usr/src/cmd/mdb/common/modules/libumem/umem.c
3030
rval = wsp->walk_callback(vp->vn_addr, &vp->vn_vmem, wsp->walk_cbdata);
usr/src/cmd/mdb/common/modules/libumem/umem.c
3034
return (rval);
usr/src/cmd/mdb/common/modules/libumem/umem.c
3042
return (rval);
usr/src/cmd/mdb/common/modules/libumem/umem.c
3056
int rval;
usr/src/cmd/mdb/common/modules/libumem/umem.c
3087
rval = wsp->walk_callback(vp->vn_addr, &vp->vn_vmem, wsp->walk_cbdata);
usr/src/cmd/mdb/common/modules/libumem/umem.c
3089
return (rval);
usr/src/cmd/mdb/common/modules/libumem/umem.c
3178
int rval;
usr/src/cmd/mdb/common/modules/libumem/umem.c
3197
rval = WALK_NEXT;
usr/src/cmd/mdb/common/modules/libumem/umem.c
3199
rval = wsp->walk_callback(addr, &seg, wsp->walk_cbdata);
usr/src/cmd/mdb/common/modules/libumem/umem.c
3205
return (rval);
usr/src/cmd/mdb/common/modules/mm/mm.c
64
int rval = WALK_NEXT;
usr/src/cmd/mdb/common/modules/mm/mm.c
72
rval = wsp->walk_callback(kw->kmlw_addr + ((uintptr_t)ent -
usr/src/cmd/mdb/common/modules/mm/mm.c
76
if (rval == WALK_NEXT && kw->kmlw_entry == kw->kmlw_oldest)
usr/src/cmd/mdb/common/modules/mm/mm.c
79
return (rval);
usr/src/cmd/mdb/common/modules/pmcs/pmcs.c
192
int rval = DCMD_ERR;
usr/src/cmd/mdb/common/modules/pmcs/pmcs.c
202
return (rval);
usr/src/cmd/mdb/common/modules/pmcs/pmcs.c
206
return (rval);
usr/src/cmd/mdb/common/modules/pmcs/pmcs.c
211
return (rval);
usr/src/cmd/mdb/common/modules/pmcs/pmcs.c
215
return (rval);
usr/src/cmd/mdb/common/modules/pmcs/pmcs.c
219
return (rval);
usr/src/cmd/mdb/common/modules/pmcs/pmcs.c
223
return (rval);
usr/src/cmd/mdb/common/modules/pmcs/pmcs.c
233
rval = mdb_call_dcmd("damap", dam0, DCMD_ADDRSPEC, 0, NULL);
usr/src/cmd/mdb/common/modules/pmcs/pmcs.c
235
if (rval != DCMD_OK) {
usr/src/cmd/mdb/common/modules/pmcs/pmcs.c
236
return (rval);
usr/src/cmd/mdb/common/modules/pmcs/pmcs.c
241
rval = mdb_call_dcmd("damap", dam1, DCMD_ADDRSPEC, 0, NULL);
usr/src/cmd/mdb/common/modules/pmcs/pmcs.c
245
return (rval);
usr/src/cmd/mdb/common/modules/pmcs/pmcs.c
2765
int rval = DCMD_OK;
usr/src/cmd/mdb/common/modules/pmcs/pmcs.c
2784
rval = DCMD_ERR;
usr/src/cmd/mdb/common/modules/pmcs/pmcs.c
2793
rval = DCMD_ERR;
usr/src/cmd/mdb/common/modules/pmcs/pmcs.c
2800
rval = DCMD_ERR;
usr/src/cmd/mdb/common/modules/pmcs/pmcs.c
2812
return (rval);
usr/src/cmd/mdb/common/modules/pmcs/pmcs.c
306
int rval = DCMD_ERR;
usr/src/cmd/mdb/common/modules/pmcs/pmcs.c
314
return (rval);
usr/src/cmd/mdb/common/modules/pmcs/pmcs.c
328
rval = mdb_pwalk("devinfo_siblings", display_iport_di_cb,
usr/src/cmd/mdb/common/modules/pmcs/pmcs.c
341
return (rval);
usr/src/cmd/mdb/common/modules/pmcs/pmcs.c
346
return (rval);
usr/src/cmd/mdb/common/modules/pmcs/pmcs.c
350
rval = mdb_pwalk("mdipi_phci_list", display_iport_pi_cb,
usr/src/cmd/mdb/common/modules/pmcs/pmcs.c
353
return (rval);
usr/src/cmd/mdb/common/modules/qlc/qlc.c
1041
int rval = DCMD_ABORT;
usr/src/cmd/mdb/common/modules/qlc/qlc.c
1051
rval = DCMD_OK;
usr/src/cmd/mdb/common/modules/qlc/qlc.c
1055
return (rval);
usr/src/cmd/mdb/common/modules/qlc/qlc.c
1075
int rval = DCMD_ABORT;
usr/src/cmd/mdb/common/modules/qlc/qlc.c
1085
rval = DCMD_OK;
usr/src/cmd/mdb/common/modules/qlc/qlc.c
1089
return (rval);
usr/src/cmd/mdb/common/modules/smartpqi/smartpqi.c
271
int rval;
usr/src/cmd/mdb/common/modules/smartpqi/smartpqi.c
282
rval = mdb_vread(structp, sz, (uintptr_t)current->list_next);
usr/src/cmd/mdb/common/modules/smartpqi/smartpqi.c
283
if (rval == -1 || (size_t)rval != sz) {
usr/src/cmd/mdb/common/modules/smartpqi/smartpqi.c
306
int rval;
usr/src/cmd/mdb/common/modules/smartpqi/smartpqi.c
313
rval = mdb_vread((void *)dev, sizeof (struct pqi_device),
usr/src/cmd/mdb/common/modules/smartpqi/smartpqi.c
315
if (rval == -1) {
usr/src/cmd/mdb/common/modules/smartpqi/smartpqi.c
327
int rval;
usr/src/cmd/mdb/common/modules/smartpqi/smartpqi.c
333
rval = mdb_vread(cmdp, sizeof (struct pqi_cmd),
usr/src/cmd/mdb/common/modules/smartpqi/smartpqi.c
335
if (rval == -1) {
usr/src/cmd/mdb/common/modules/smartpqi/smartpqi.c
339
return (rval);
usr/src/cmd/mdb/common/modules/smartpqi/smartpqi.c
393
int rval;
usr/src/cmd/mdb/common/modules/smartpqi/smartpqi.c
409
rval = pqi_device_list_head(s_devnodes,
usr/src/cmd/mdb/common/modules/smartpqi/smartpqi.c
427
rval = pqi_cmd_list_head(d.pd_cmd_list,
usr/src/cmd/mdb/common/modules/smartpqi/smartpqi.c
429
if (rval == -1) {
usr/src/cmd/mdb/common/modules/smartpqi/smartpqi.c
444
rval = display_cmd(cmdp);
usr/src/cmd/mdb/common/modules/smartpqi/smartpqi.c
445
if (rval != DCMD_OK) {
usr/src/cmd/mdb/common/modules/smartpqi/smartpqi.c
448
rval);
usr/src/cmd/mdb/common/modules/smartpqi/smartpqi.c
576
int rval;
usr/src/cmd/mdb/common/modules/smartpqi/smartpqi.c
600
rval = pqi_getopts(addr, argc, argv, &instance, &print_devices);
usr/src/cmd/mdb/common/modules/smartpqi/smartpqi.c
601
if (rval != DCMD_OK) {
usr/src/cmd/mdb/common/modules/smartpqi/smartpqi.c
602
return (rval);
usr/src/cmd/mdb/i86pc/modules/unix/unix.c
138
int rval, i, recsize = sizeof (trap_trace_rec_t);
usr/src/cmd/mdb/i86pc/modules/unix/unix.c
176
rval = wsp->walk_callback(ttc->ttc_current, &rec, wsp->walk_cbdata);
usr/src/cmd/mdb/i86pc/modules/unix/unix.c
183
return (rval);
usr/src/cmd/mdb/intel/mdb/proc_amd64dep.c
396
ushort_t rd_flags, mdb_tgt_reg_t rval)
usr/src/cmd/mdb/intel/mdb/proc_ia32dep.c
313
ushort_t rd_flags, mdb_tgt_reg_t rval)
usr/src/cmd/mdb/intel/modules/sata/sata.c
213
int rval = DCMD_OK;
usr/src/cmd/mdb/intel/modules/sata/sata.c
245
rval = sata_dmsg_dump((sata_trace_dmsg_t *)rbuf.dmsgh,
usr/src/cmd/mdb/intel/modules/sata/sata.c
248
if (rval != DCMD_OK) {
usr/src/cmd/mdb/intel/modules/sata/sata.c
249
return (rval);
usr/src/cmd/mdb/intel/modules/sata/sata.c
257
return (rval);
usr/src/cmd/modload/add_drv.c
582
int rval = 0;
usr/src/cmd/modload/add_drv.c
591
return (rval);
usr/src/cmd/modload/update_drv.c
104
int rval;
usr/src/cmd/modload/update_drv.c
266
rval = devfs_add_minor_perm(driver_name,
usr/src/cmd/modload/update_drv.c
268
if (rval) {
usr/src/cmd/modload/update_drv.c
396
rval = devfs_rm_minor_perm(driver_name,
usr/src/cmd/modload/update_drv.c
398
if (rval) {
usr/src/cmd/modload/update_drv.c
416
rval = devfs_add_minor_perm(driver_name,
usr/src/cmd/modload/update_drv.c
418
if (rval) {
usr/src/cmd/modload/update_drv.c
449
rval = aliases_exist(aliases);
usr/src/cmd/modload/update_drv.c
450
if (rval == ERROR && (force_flag == 0)) {
usr/src/cmd/modload/update_drv.c
455
err = rval;
usr/src/cmd/modload/update_drv.c
457
if (rval == NOERR)
usr/src/cmd/pcitool/pcitool.c
1059
int rval = SUCCESS; /* Return status. */
usr/src/cmd/pcitool/pcitool.c
1098
if (((rval = ioctl(fd, cmd, &local_prg)) != SUCCESS) &&
usr/src/cmd/pcitool/pcitool.c
1134
if (rval != SUCCESS) { /* Read error occurred */
usr/src/cmd/pcitool/pcitool.c
1154
rval = EIO;
usr/src/cmd/pcitool/pcitool.c
1228
return (rval);
usr/src/cmd/pcitool/pcitool.c
1269
int rval;
usr/src/cmd/pcitool/pcitool.c
1281
if ((rval = ioctl(fd, cmd, prg_p)) != SUCCESS) {
usr/src/cmd/pcitool/pcitool.c
1289
return (rval);
usr/src/cmd/pcitool/pcitool.c
1312
return (rval);
usr/src/cmd/pcitool/pcitool.c
1328
int rval = SUCCESS; /* Return status. */
usr/src/cmd/pcitool/pcitool.c
1381
rval = bytedump_get(fd, read_cmd, &prg, input_args_p);
usr/src/cmd/pcitool/pcitool.c
1387
rval = do_single_access(
usr/src/cmd/pcitool/pcitool.c
1391
if ((rval == SUCCESS) && (read_cmd != 0)) {
usr/src/cmd/pcitool/pcitool.c
1392
rval = do_single_access(
usr/src/cmd/pcitool/pcitool.c
1396
} while ((IS_LOOP(input_args_p->flags)) && (rval == SUCCESS) &&
usr/src/cmd/pcitool/pcitool.c
1399
return (rval != SUCCESS ? errno : SUCCESS);
usr/src/cmd/pcitool/pcitool.c
1514
int rval = SUCCESS; /* Return status. */
usr/src/cmd/pcitool/pcitool.c
1530
rval = get_single_interrupt(fd, &iget_p, input_args_p);
usr/src/cmd/pcitool/pcitool.c
1550
((msi < intr_info.num_intr) && (rval == SUCCESS));
usr/src/cmd/pcitool/pcitool.c
1557
rval = get_single_interrupt(
usr/src/cmd/pcitool/pcitool.c
1565
rval = get_single_interrupt(fd, &iget_p, input_args_p);
usr/src/cmd/pcitool/pcitool.c
1578
return (rval);
usr/src/cmd/pcitool/pcitool.c
1587
((cpu_id < intr_info.num_cpu) && (rval == SUCCESS));
usr/src/cmd/pcitool/pcitool.c
1591
(rval == SUCCESS));
usr/src/cmd/pcitool/pcitool.c
1599
rval = get_single_interrupt(
usr/src/cmd/pcitool/pcitool.c
1605
(ino < intr_info.num_intr) && (rval == SUCCESS);
usr/src/cmd/pcitool/pcitool.c
1613
rval = get_single_interrupt(
usr/src/cmd/pcitool/pcitool.c
1621
return (rval);
usr/src/cmd/pcitool/pcitool.c
1630
int rval = SUCCESS;
usr/src/cmd/pcitool/pcitool.c
1637
rval = errno;
usr/src/cmd/pcitool/pcitool.c
1681
return (rval);
usr/src/cmd/pcitool/pcitool.c
1695
int rval = SUCCESS; /* Return status. */
usr/src/cmd/pcitool/pcitool.c
1723
rval = errno;
usr/src/cmd/pcitool/pcitool.c
1751
return (rval);
usr/src/cmd/pcitool/pcitool.c
1784
int rval = SUCCESS; /* Return status value. */
usr/src/cmd/pcitool/pcitool.c
1801
rval = do_probe_walk(&input_args,
usr/src/cmd/pcitool/pcitool.c
1808
rval = do_device_or_nexus(fd, &input_args);
usr/src/cmd/pcitool/pcitool.c
1810
rval = do_interrupts(fd, &input_args);
usr/src/cmd/pcitool/pcitool.c
1814
rval = ENOTTY;
usr/src/cmd/pcitool/pcitool.c
1820
return (rval);
usr/src/cmd/pcitool/pcitool.c
440
int rval = SUCCESS;
usr/src/cmd/pcitool/pcitool.c
454
if ((rval =
usr/src/cmd/pcitool/pcitool.c
460
return (rval);
usr/src/cmd/pcitool/pcitool.c
597
int rval = SUCCESS;
usr/src/cmd/pcitool/pcitool.c
646
if (((rval = ioctl(fd, PCITOOL_DEVICE_GET_REG, prg_p)) != 0) ||
usr/src/cmd/pcitool/pcitool.c
690
rval = SUCCESS;
usr/src/cmd/pcitool/pcitool.c
698
rval = SUCCESS;
usr/src/cmd/pcitool/pcitool.c
704
if ((rval = get_config_header(fd, prg_p->bus_no,
usr/src/cmd/pcitool/pcitool.c
720
rval = ECANCELED;
usr/src/cmd/pcitool/pcitool.c
737
return (rval);
usr/src/cmd/pcitool/pcitool.c
758
int rval = SUCCESS;
usr/src/cmd/pcitool/pcitool.c
826
for (bus = first_bus; ((bus <= last_bus) && (rval == SUCCESS)); bus++) {
usr/src/cmd/pcitool/pcitool.c
840
((dev <= last_dev) && (rval == SUCCESS)); dev++) {
usr/src/cmd/pcitool/pcitool.c
842
rval = probe_dev(fd, &prg, input_args_p);
usr/src/cmd/pcitool/pcitool.c
849
if (rval == ECANCELED) {
usr/src/cmd/pcitool/pcitool.c
850
rval = SUCCESS;
usr/src/cmd/pcitool/pcitool.c
854
return (rval);
usr/src/cmd/pcitool/pcitool.c
942
int rval = SUCCESS;
usr/src/cmd/pcitool/pcitool.c
947
rval = errno;
usr/src/cmd/pcitool/pcitool.c
953
rval = errno;
usr/src/cmd/pcitool/pcitool.c
971
return (rval);
usr/src/cmd/pcitool/pcitool_ui.c
1103
int rval = SUCCESS;
usr/src/cmd/pcitool/pcitool_ui.c
1105
while ((*input != '\0') && (rval == SUCCESS)) {
usr/src/cmd/pcitool/pcitool_ui.c
1112
if ((rval = extract_bdf(value, &bvalue, &dvalue,
usr/src/cmd/pcitool/pcitool_ui.c
1121
if ((rval = extract_bdf_arg(bvalue, "bus",
usr/src/cmd/pcitool/pcitool_ui.c
1125
if ((rval = extract_bdf_arg(dvalue, "dev",
usr/src/cmd/pcitool/pcitool_ui.c
1129
rval = extract_bdf_arg(fvalue, "func",
usr/src/cmd/pcitool/pcitool_ui.c
1135
rval = extract_bdf_arg(value, "bus", BUS_SPEC_FLAG,
usr/src/cmd/pcitool/pcitool_ui.c
1141
rval = extract_bdf_arg(value, "dev", DEV_SPEC_FLAG,
usr/src/cmd/pcitool/pcitool_ui.c
1147
rval = extract_bdf_arg(value, "func", FUNC_SPEC_FLAG,
usr/src/cmd/pcitool/pcitool_ui.c
1155
rval = FAILURE;
usr/src/cmd/pcitool/pcitool_ui.c
1158
if ((rval = get_value64(value, &recv64, HEX_ONLY)) !=
usr/src/cmd/pcitool/pcitool_ui.c
1163
if (rval || (*bank_arg != recv64)) {
usr/src/cmd/pcitool/pcitool_ui.c
1166
rval = FAILURE;
usr/src/cmd/pcitool/pcitool_ui.c
1176
rval = FAILURE;
usr/src/cmd/pcitool/pcitool_ui.c
1187
rval = FAILURE;
usr/src/cmd/pcitool/pcitool_ui.c
1198
rval = FAILURE;
usr/src/cmd/pcitool/pcitool_ui.c
1209
rval = FAILURE;
usr/src/cmd/pcitool/pcitool_ui.c
1220
rval = FAILURE;
usr/src/cmd/pcitool/pcitool_ui.c
1231
rval = FAILURE;
usr/src/cmd/pcitool/pcitool_ui.c
1242
rval = FAILURE;
usr/src/cmd/pcitool/pcitool_ui.c
1253
rval = FAILURE;
usr/src/cmd/pcitool/pcitool_ui.c
1262
rval = FAILURE;
usr/src/cmd/pcitool/pcitool_ui.c
1270
rval = FAILURE;
usr/src/cmd/pcitool/pcitool_ui.c
1278
return (rval);
usr/src/cmd/pcitool/pcitool_ui.c
1295
int rval = SUCCESS;
usr/src/cmd/pcitool/pcitool_ui.c
1303
rval = FAILURE;
usr/src/cmd/pcitool/pcitool_ui.c
1306
if ((rval = get_value64(input, &value, HEX_ONLY)) == SUCCESS)
usr/src/cmd/pcitool/pcitool_ui.c
1312
rval = FAILURE;
usr/src/cmd/pcitool/pcitool_ui.c
1318
if ((rval =
usr/src/cmd/pcitool/pcitool_ui.c
1329
if ((rval = get_value64(input, &value, HEX_ONLY)) == SUCCESS)
usr/src/cmd/pcitool/pcitool_ui.c
1335
rval = FAILURE;
usr/src/cmd/pcitool/pcitool_ui.c
1342
rval = FAILURE;
usr/src/cmd/pcitool/pcitool_ui.c
1345
return (rval);
usr/src/cmd/pcitool/pcitool_ui.c
1360
int rval = SUCCESS;
usr/src/cmd/pcitool/pcitool_ui.c
1365
if ((rval = get_value64(input, &value, HEX_ONLY)) == SUCCESS)
usr/src/cmd/pcitool/pcitool_ui.c
1371
rval = FAILURE;
usr/src/cmd/pcitool/pcitool_ui.c
1382
if ((rval = get_value64(input, &value, HEX_ONLY)) == SUCCESS)
usr/src/cmd/pcitool/pcitool_ui.c
1388
rval = FAILURE;
usr/src/cmd/pcitool/pcitool_ui.c
1395
rval = FAILURE;
usr/src/cmd/pcitool/pcitool_ui.c
1398
return (rval);
usr/src/cmd/pcitool/pcitool_ui.c
1413
int rval = SUCCESS;
usr/src/cmd/pcitool/pcitool_ui.c
1415
if ((rval = get_value64(input, &value, HEX_ONLY)) == SUCCESS) {
usr/src/cmd/pcitool/pcitool_ui.c
1420
rval = FAILURE;
usr/src/cmd/pcitool/pcitool_ui.c
1428
rval = FAILURE;
usr/src/cmd/pcitool/pcitool_ui.c
1431
return (rval);
usr/src/cmd/pcitool/pcitool_ui.c
1457
int rval = SUCCESS;
usr/src/cmd/pcitool/pcitool_ui.c
1459
while ((*input != '\0') && (rval == SUCCESS)) {
usr/src/cmd/pcitool/pcitool_ui.c
1466
if ((rval = extract_bdf(value, &bvalue, &dvalue,
usr/src/cmd/pcitool/pcitool_ui.c
1471
if ((rval = extract_bdf_arg(bvalue, "bus",
usr/src/cmd/pcitool/pcitool_ui.c
1477
if ((rval = extract_bdf_arg(dvalue, "dev",
usr/src/cmd/pcitool/pcitool_ui.c
1483
rval = extract_bdf_arg(fvalue, "func",
usr/src/cmd/pcitool/pcitool_ui.c
1489
rval = extract_bdf_arg(value, "bus", BUS_SPEC_FLAG,
usr/src/cmd/pcitool/pcitool_ui.c
1495
rval = extract_bdf_arg(value, "dev", DEV_SPEC_FLAG,
usr/src/cmd/pcitool/pcitool_ui.c
1501
rval = extract_bdf_arg(value, "func", FUNC_SPEC_FLAG,
usr/src/cmd/pcitool/pcitool_ui.c
1507
rval = FAILURE;
usr/src/cmd/pcitool/pcitool_ui.c
1512
return (rval);
usr/src/cmd/pcitool/pcitool_ui.c
916
int rval = SUCCESS;
usr/src/cmd/pcitool/pcitool_ui.c
923
while ((*input != '\0') && (rval == SUCCESS)) {
usr/src/cmd/pcitool/pcitool_ui.c
929
rval = FAILURE;
usr/src/cmd/pcitool/pcitool_ui.c
935
rval = FAILURE;
usr/src/cmd/pcitool/pcitool_ui.c
940
rval = FAILURE;
usr/src/cmd/pcitool/pcitool_ui.c
943
if ((rval = get_value64(value, &recv64, HEX_ONLY)) !=
usr/src/cmd/pcitool/pcitool_ui.c
951
rval = FAILURE;
usr/src/cmd/pcitool/pcitool_ui.c
961
rval = FAILURE;
usr/src/cmd/pcitool/pcitool_ui.c
967
rval = FAILURE;
usr/src/cmd/pcitool/pcitool_ui.c
973
rval = FAILURE;
usr/src/cmd/pcitool/pcitool_ui.c
976
if ((rval = get_value64(value, base_addr_arg,
usr/src/cmd/pcitool/pcitool_ui.c
985
rval = FAILURE;
usr/src/cmd/pcitool/pcitool_ui.c
990
return (rval);
usr/src/cmd/picl/plugins/common/piclevent/picl_slm.c
301
int rval;
usr/src/cmd/picl/plugins/common/piclevent/picl_slm.c
351
rval = piclslm_add_ec_devfs_args(nvl, dupev);
usr/src/cmd/picl/plugins/common/piclevent/picl_slm.c
354
rval = piclslm_add_ec_dr_req_args(nvl, dupev);
usr/src/cmd/picl/plugins/common/piclevent/picl_slm.c
356
rval = piclslm_add_ec_dr_args(nvl, dupev);
usr/src/cmd/picl/plugins/common/piclevent/picl_slm.c
360
if (rval != 0) {
usr/src/cmd/picl/plugins/common/piclevent/picl_slm.c
364
return ((rval == EAGAIN) ? EAGAIN : 0);
usr/src/cmd/power/conf.c
493
int rval = 0;
usr/src/cmd/power/conf.c
551
rval = write_conf();
usr/src/cmd/power/conf.c
555
if (rval == 0)
usr/src/cmd/power/conf.c
556
rval = (update_cprconfig() || restart_powerd());
usr/src/cmd/power/conf.c
558
return (rval);
usr/src/cmd/praudit/token.c
1120
rval_t rval;
usr/src/cmd/praudit/token.c
1177
&rval.r_vals, 1)) != 0)
usr/src/cmd/praudit/token.c
1179
pa_retval(number, rval.r_val1, pb, sizeof (pb));
usr/src/cmd/praudit/token.c
1196
&rval.r_vals, 1)) != 0)
usr/src/cmd/praudit/token.c
1198
uval.int32_val = rval.r_val1;
usr/src/cmd/printf/printf.c
128
rval = end = 0;
usr/src/cmd/printf/printf.c
147
fmt = doformat(fmt, &rval);
usr/src/cmd/printf/printf.c
166
return (rval);
usr/src/cmd/printf/printf.c
176
doformat(char *fmt, int *rval)
usr/src/cmd/printf/printf.c
360
exit(*rval);
usr/src/cmd/printf/printf.c
387
*rval = 1;
usr/src/cmd/printf/printf.c
401
*rval = 1;
usr/src/cmd/printf/printf.c
541
int rval;
usr/src/cmd/printf/printf.c
545
rval = 0;
usr/src/cmd/printf/printf.c
548
rval = 1;
usr/src/cmd/printf/printf.c
551
return (rval);
usr/src/cmd/printf/printf.c
558
int rval;
usr/src/cmd/printf/printf.c
571
rval = 0;
usr/src/cmd/printf/printf.c
579
rval = 1;
usr/src/cmd/printf/printf.c
582
rval = 1;
usr/src/cmd/printf/printf.c
586
rval = 1;
usr/src/cmd/printf/printf.c
589
return (rval);
usr/src/cmd/printf/printf.c
596
int rval;
usr/src/cmd/printf/printf.c
606
rval = 0;
usr/src/cmd/printf/printf.c
614
rval = 1;
usr/src/cmd/printf/printf.c
617
rval = 1;
usr/src/cmd/printf/printf.c
621
rval = 1;
usr/src/cmd/printf/printf.c
624
return (rval);
usr/src/cmd/printf/printf.c
95
int end, rval;
usr/src/cmd/ptools/ptime/ptime.c
193
int rval = 0;
usr/src/cmd/ptools/ptime/ptime.c
211
rval = perr("read usage");
usr/src/cmd/ptools/ptime/ptime.c
247
return (rval);
usr/src/cmd/rcap/common/rcapd_conf.c
168
int rval, ret = E_ERROR;
usr/src/cmd/rcap/common/rcapd_conf.c
220
if ((rval = scf_transaction_commit(tx)) == -1)
usr/src/cmd/rcap/common/rcapd_conf.c
223
if (rval == 0) {
usr/src/cmd/rcap/common/rcapd_conf.c
231
} while (rval == 0);
usr/src/cmd/rcm_daemon/common/rcm_script.c
1049
int rval = 0;
usr/src/cmd/rcm_daemon/common/rcm_script.c
1067
rval = -2;
usr/src/cmd/rcm_daemon/common/rcm_script.c
1074
rval = -2;
usr/src/cmd/rcm_daemon/common/rcm_script.c
1079
rval = -1;
usr/src/cmd/rcm_daemon/common/rcm_script.c
1091
rval = -3;
usr/src/cmd/rcm_daemon/common/rcm_script.c
1096
rval = -1;
usr/src/cmd/rcm_daemon/common/rcm_script.c
1110
fdname, rval, *buflen, buf);
usr/src/cmd/rcm_daemon/common/rcm_script.c
1111
return (rval);
usr/src/cmd/rcm_daemon/common/rcm_script.c
1339
int rval, child_status, token;
usr/src/cmd/rcm_daemon/common/rcm_script.c
1372
rval = get_line(rsi->pipe1[PARENT_END_OF_PIPE],
usr/src/cmd/rcm_daemon/common/rcm_script.c
1429
if (rval == -3) {
usr/src/cmd/rcm_daemon/common/rcm_script.c
1461
if (rval == -1) {
usr/src/cmd/rcm_daemon/common/rcm_script.c
1467
if (rval == -2) {
usr/src/cmd/rcm_daemon/common/rcm_subr.c
1895
int rval;
usr/src/cmd/rcm_daemon/common/rcm_subr.c
1900
rval = v1_ops->rcmop_get_info(hdl, alias, pid, flag, info,
usr/src/cmd/rcm_daemon/common/rcm_subr.c
1902
if (rval != RCM_SUCCESS && *info != NULL)
usr/src/cmd/rcm_daemon/common/rcm_subr.c
1904
return (rval);
usr/src/cmd/rcm_daemon/common/rcm_subr.c
631
int rval = RCM_SUCCESS;
usr/src/cmd/rcm_daemon/common/rcm_subr.c
696
rval = call_getinfo(ops, hdl, client->alias, client->pid,
usr/src/cmd/rcm_daemon/common/rcm_subr.c
731
rval = ops->rcmop_request_suspend(hdl, client->alias,
usr/src/cmd/rcm_daemon/common/rcm_subr.c
737
if (rval == RCM_SUCCESS) {
usr/src/cmd/rcm_daemon/common/rcm_subr.c
743
if (rval == RCM_SUCCESS) {
usr/src/cmd/rcm_daemon/common/rcm_subr.c
756
rval = ops->rcmop_notify_resume(hdl, client->alias, client->pid,
usr/src/cmd/rcm_daemon/common/rcm_subr.c
794
rval = ops->rcmop_request_offline(hdl, client->alias,
usr/src/cmd/rcm_daemon/common/rcm_subr.c
814
if (rval == RCM_SUCCESS) {
usr/src/cmd/rcm_daemon/common/rcm_subr.c
820
if (rval == RCM_SUCCESS) {
usr/src/cmd/rcm_daemon/common/rcm_subr.c
836
rval = ops->rcmop_notify_online(hdl, client->alias, client->pid,
usr/src/cmd/rcm_daemon/common/rcm_subr.c
844
rval = ops->rcmop_notify_remove(hdl, client->alias, client->pid,
usr/src/cmd/rcm_daemon/common/rcm_subr.c
853
rval = ops->rcmop_request_capacity_change(hdl,
usr/src/cmd/rcm_daemon/common/rcm_subr.c
862
rval = ops->rcmop_notify_capacity_change(hdl,
usr/src/cmd/rcm_daemon/common/rcm_subr.c
871
rval = ops->rcmop_notify_event(hdl, client->alias,
usr/src/cmd/rcm_daemon/common/rcm_subr.c
879
rval = RCM_FAILURE;
usr/src/cmd/rcm_daemon/common/rcm_subr.c
884
if (rval != RCM_SUCCESS)
usr/src/cmd/rcm_daemon/common/rcm_subr.c
885
targ->retcode = rval;
usr/src/cmd/rcm_daemon/common/rcm_subr.c
891
((rval != RCM_SUCCESS) ||
usr/src/cmd/rcm_daemon/common/rcm_subr.c
925
return (rval);
usr/src/cmd/rcm_daemon/common/rcm_subr.c
934
int error, rval = RCM_SUCCESS;
usr/src/cmd/rcm_daemon/common/rcm_subr.c
957
rval = error;
usr/src/cmd/rcm_daemon/common/rcm_subr.c
961
return (rval);
usr/src/cmd/rmformat/rmf_menu.c
488
int32_t rval;
usr/src/cmd/rmformat/rmf_menu.c
492
if ((rval = smedia_get_protection_status((handle), &wps)) < 0) {
usr/src/cmd/rmformat/rmf_menu.c
508
rval = smedia_set_protection_status(handle,
usr/src/cmd/rmformat/rmf_menu.c
510
if (rval == -1)
usr/src/cmd/rmformat/rmf_menu.c
533
rval = smedia_set_protection_status(handle,
usr/src/cmd/rmformat/rmf_menu.c
535
if (rval == -1)
usr/src/cmd/rmformat/rmf_menu.c
558
int32_t rval;
usr/src/cmd/rmformat/rmf_menu.c
564
if ((rval = smedia_get_protection_status((handle), &wps)) < 0) {
usr/src/cmd/rmformat/rmf_menu.c
581
rval = smedia_set_protection_status(handle,
usr/src/cmd/rmformat/rmf_menu.c
583
if (rval == -1) {
usr/src/cmd/rmformat/rmf_menu.c
593
rval = smedia_set_protection_status(handle,
usr/src/cmd/rmformat/rmf_menu.c
595
if (rval == -1) {
usr/src/cmd/rmformat/rmf_menu.c
619
rval = smedia_set_protection_status(handle,
usr/src/cmd/rmformat/rmf_menu.c
621
if (rval == -1) {
usr/src/cmd/rmformat/rmf_menu.c
650
int32_t rval;
usr/src/cmd/rmformat/rmf_menu.c
656
if ((rval = smedia_get_protection_status((handle), &wps)) < 0) {
usr/src/cmd/rmformat/rmf_menu.c
673
rval = smedia_set_protection_status(handle,
usr/src/cmd/rmformat/rmf_menu.c
675
if (rval == -1)
usr/src/cmd/rmformat/rmf_menu.c
684
rval = smedia_set_protection_status(handle,
usr/src/cmd/rmformat/rmf_menu.c
686
if (rval == -1) {
usr/src/cmd/rmformat/rmf_menu.c
710
rval = smedia_set_protection_status(handle,
usr/src/cmd/rmformat/rmf_menu.c
712
if (rval == -1) {
usr/src/cmd/rmformat/rmf_misc.c
1024
int rval; /* proc's return value */
usr/src/cmd/rmformat/rmf_misc.c
1060
rval = 0;
usr/src/cmd/rmformat/rmf_misc.c
1061
if (waitpid(pid, &rval, 0) == pid) {
usr/src/cmd/rmformat/rmf_misc.c
1062
if (WIFEXITED(rval)) {
usr/src/cmd/rmformat/rmf_misc.c
1063
if (WEXITSTATUS(rval) == 0) {
usr/src/cmd/rmformat/rmf_misc.c
1075
int pid, rval;
usr/src/cmd/rmformat/rmf_misc.c
1106
} else if (waitpid(pid, &rval, 0) == pid) {
usr/src/cmd/rmformat/rmf_misc.c
1107
if (WIFEXITED(rval)) {
usr/src/cmd/rmformat/rmf_misc.c
1108
if (WEXITSTATUS(rval) == 0) {
usr/src/cmd/rmt/rmt.c
158
offset_t rval;
usr/src/cmd/rmt/rmt.c
215
rval = llseek(tape, atoll(count), atoi(pos));
usr/src/cmd/rmt/rmt.c
219
respond(rval, saverr);
usr/src/cmd/rmt/rmt.c
265
rval = (offset_t)mtop.mt_count;
usr/src/cmd/rmt/rmt.c
267
rval = (offset_t)ioctl(tape, MTIOCTOP,
usr/src/cmd/rmt/rmt.c
273
respond(rval < 0 ?
usr/src/cmd/rmt/rmt.c
274
rval : (offset_t)mtop.mt_count,
usr/src/cmd/rmt/rmt.c
292
rval = (offset_t)ioctl(tape, MTIOCGET, (char *)&mtget);
usr/src/cmd/rmt/rmt.c
296
if (rval < 0)
usr/src/cmd/rmt/rmt.c
297
respond(rval, saverr);
usr/src/cmd/rmt/rmt.c
373
rval = (offset_t)write(tape, record, n);
usr/src/cmd/rmt/rmt.c
377
respond(rval, saverr);
usr/src/cmd/rmt/rmt.c
387
rval = (offset_t)read(tape, record, n);
usr/src/cmd/rmt/rmt.c
391
respond(rval, saverr);
usr/src/cmd/rmt/rmt.c
392
(void) write(1, record, (size_t)rval);
usr/src/cmd/rmt/rmt.c
420
rval = (offset_t)close(tape);
usr/src/cmd/rmt/rmt.c
421
respond(rval, errno);
usr/src/cmd/rmt/rmt.c
463
respond(offset_t rval, int Errno)
usr/src/cmd/rmt/rmt.c
468
if (rval < 0) {
usr/src/cmd/rmt/rmt.c
472
(void) snprintf(resp, SSIZE, "A%lld\n", rval);
usr/src/cmd/rmt/rmt.c
473
DEBUG1("rmtd: A %lld\n", rval);
usr/src/cmd/rpcsvc/rwall_subr.c
64
int rval;
usr/src/cmd/rpcsvc/rwall_subr.c
84
rval = stat(WALL_PROG, &wall);
usr/src/cmd/rpcsvc/rwall_subr.c
89
if (rval == -1 || (wall.st_mode & S_IXUSR) == 0 ||
usr/src/cmd/sed/main.c
203
return (rval);
usr/src/cmd/sed/main.c
453
rval = 1;
usr/src/cmd/sed/main.c
95
static int rval; /* Exit status */
usr/src/cmd/sendmail/libsmutil/safefile.c
690
int rval;
usr/src/cmd/sendmail/libsmutil/safefile.c
721
rval = safefile(fn, RunAsUid, RunAsGid, RunAsUserName,
usr/src/cmd/sendmail/libsmutil/safefile.c
724
rval = safefile(fn, RealUid, RealGid, RealUserName,
usr/src/cmd/sendmail/libsmutil/safefile.c
726
if (rval != 0)
usr/src/cmd/sendmail/libsmutil/safefile.c
728
errno = rval;
usr/src/cmd/sendmail/src/conf.c
2141
bool rval;
usr/src/cmd/sendmail/src/conf.c
2167
rval = pri > (QueueFactor / (CurrentLA - QueueLA + 1));
usr/src/cmd/sendmail/src/conf.c
2169
sm_dprintf("%s (by calculation)\n", rval ? "true" : "false");
usr/src/cmd/sendmail/src/conf.c
2170
return rval;
usr/src/cmd/sendmail/src/conf.c
3704
int rval;
usr/src/cmd/sendmail/src/conf.c
3717
rval = fpathconf(fd, _PC_CHOWN_RESTRICTED);
usr/src/cmd/sendmail/src/conf.c
3719
return errno == 0 && rval IS_SAFE_CHOWN;
usr/src/cmd/sendmail/src/conf.c
3721
return safedir && errno == 0 && rval IS_SAFE_CHOWN;
usr/src/cmd/sendmail/src/control.c
180
int rval;
usr/src/cmd/sendmail/src/control.c
188
rval = safefile(ControlSocketName, RunAsUid, RunAsGid,
usr/src/cmd/sendmail/src/control.c
192
if (rval != 0)
usr/src/cmd/sendmail/src/control.c
66
int rval;
usr/src/cmd/sendmail/src/control.c
79
rval = safefile(ControlSocketName, RunAsUid, RunAsGid, RunAsUserName,
usr/src/cmd/sendmail/src/control.c
83
if (rval != 0)
usr/src/cmd/sendmail/src/control.c
85
errno = rval;
usr/src/cmd/sendmail/src/daemon.c
1066
int rval;
usr/src/cmd/sendmail/src/daemon.c
1070
rval = safefile(d->d_addr.sunix.sun_path,
usr/src/cmd/sendmail/src/daemon.c
1074
if (rval != 0)
usr/src/cmd/sendmail/src/daemon.c
2917
int rval, save_errno;
usr/src/cmd/sendmail/src/daemon.c
2922
rval = safefile(mux_path, RunAsUid, RunAsGid, RunAsUserName,
usr/src/cmd/sendmail/src/daemon.c
2925
if (rval != 0)
usr/src/cmd/sendmail/src/daemon.c
2930
errno = rval;
usr/src/cmd/sendmail/src/daemon.c
3048
int rval;
usr/src/cmd/sendmail/src/daemon.c
3052
rval = safefile(Daemons[i].d_addr.sunix.sun_path,
usr/src/cmd/sendmail/src/daemon.c
3056
if (rval == 0 &&
usr/src/cmd/sendmail/src/headers.c
482
unsigned long rval;
usr/src/cmd/sendmail/src/headers.c
506
rval = dochompheader(xbp, pflag, hdrp, e);
usr/src/cmd/sendmail/src/headers.c
511
rval = dochompheader(line, pflag, hdrp, e);
usr/src/cmd/sendmail/src/headers.c
513
return rval;
usr/src/cmd/sendmail/src/main.c
3692
int rval = EX_OK;
usr/src/cmd/sendmail/src/main.c
3731
rval = EX_OSERR;
usr/src/cmd/sendmail/src/main.c
3750
rval = EX_OSERR;
usr/src/cmd/sendmail/src/main.c
3758
rval = EX_OSERR;
usr/src/cmd/sendmail/src/main.c
3766
rval = EX_OSERR;
usr/src/cmd/sendmail/src/main.c
3772
if (rval == EX_OK && (to_real_uid || RunAsGid != 0))
usr/src/cmd/sendmail/src/main.c
3778
rval = EX_OSERR;
usr/src/cmd/sendmail/src/main.c
3781
if (rval == EX_OK && getegid() != RunAsGid)
usr/src/cmd/sendmail/src/main.c
3785
rval = EX_OSERR;
usr/src/cmd/sendmail/src/main.c
3819
rval = EX_OSERR;
usr/src/cmd/sendmail/src/main.c
3825
rval = EX_OSERR;
usr/src/cmd/sendmail/src/main.c
3833
rval = EX_OSERR;
usr/src/cmd/sendmail/src/main.c
3847
rval = EX_OSERR;
usr/src/cmd/sendmail/src/main.c
3858
rval = EX_OSERR;
usr/src/cmd/sendmail/src/main.c
3863
rval == EX_OK && RunAsGid != EffGid &&
usr/src/cmd/sendmail/src/main.c
3871
rval = EX_OSERR;
usr/src/cmd/sendmail/src/main.c
3883
sm_dprintf("drop_privileges: rval = %d\n", rval);
usr/src/cmd/sendmail/src/main.c
3885
return rval;
usr/src/cmd/sendmail/src/map.c
6319
char *rval;
usr/src/cmd/sendmail/src/map.c
6367
rval = NULL;
usr/src/cmd/sendmail/src/map.c
6374
rval = NULL;
usr/src/cmd/sendmail/src/map.c
6385
rval = map_rewrite(map, name, strlen(name), NULL);
usr/src/cmd/sendmail/src/map.c
6387
rval = map_rewrite(map, buf, strlen(buf), av);
usr/src/cmd/sendmail/src/map.c
6406
rval = NULL;
usr/src/cmd/sendmail/src/map.c
6411
rval = NULL;
usr/src/cmd/sendmail/src/map.c
6418
rval = NULL;
usr/src/cmd/sendmail/src/map.c
6420
return rval;
usr/src/cmd/sendmail/src/map.c
7883
char *replybuf, *rval, *value, *status, *key;
usr/src/cmd/sendmail/src/map.c
7888
rval = NULL;
usr/src/cmd/sendmail/src/map.c
7981
rval = map_rewrite(map, key, strlen(key), NULL);
usr/src/cmd/sendmail/src/map.c
7983
rval = map_rewrite(map, value, strlen(value), av);
usr/src/cmd/sendmail/src/map.c
8009
return rval;
usr/src/cmd/sendmail/src/map.c
8016
return rval;
usr/src/cmd/sendmail/src/recipient.c
1438
int rval = 0;
usr/src/cmd/sendmail/src/recipient.c
1514
rval = EAGAIN;
usr/src/cmd/sendmail/src/recipient.c
1527
rval = EAGAIN;
usr/src/cmd/sendmail/src/recipient.c
1535
rval = EAGAIN;
usr/src/cmd/sendmail/src/recipient.c
1544
rval = EAGAIN;
usr/src/cmd/sendmail/src/recipient.c
1553
rval = EAGAIN;
usr/src/cmd/sendmail/src/recipient.c
1578
rval = E_SM_OPENTIMEOUT;
usr/src/cmd/sendmail/src/recipient.c
1653
rval = safefile(fname, uid, gid, user, sfflags, S_IREAD, &st);
usr/src/cmd/sendmail/src/recipient.c
1654
if (rval != 0)
usr/src/cmd/sendmail/src/recipient.c
1659
(int) uid, sm_errstring(rval));
usr/src/cmd/sendmail/src/recipient.c
1664
rval = errno;
usr/src/cmd/sendmail/src/recipient.c
1666
sm_dprintf("include: open: %s\n", sm_errstring(rval));
usr/src/cmd/sendmail/src/recipient.c
1670
rval = E_SM_FILECHANGE;
usr/src/cmd/sendmail/src/recipient.c
1709
if (rval == E_SM_OPENTIMEOUT)
usr/src/cmd/sendmail/src/recipient.c
1713
return rval;
usr/src/cmd/sendmail/src/recipient.c
1717
rval = errno;
usr/src/cmd/sendmail/src/recipient.c
1720
return rval;
usr/src/cmd/sendmail/src/recipient.c
1788
return rval;
usr/src/cmd/sendmail/src/recipient.c
1900
return rval;
usr/src/cmd/stat/kstat/kstat.c
442
int rval;
usr/src/cmd/stat/kstat/kstat.c
444
rval = strcasecmp(l_arg->ks_module, r_arg->ks_module);
usr/src/cmd/stat/kstat/kstat.c
445
if (rval == 0) {
usr/src/cmd/stat/kstat/kstat.c
454
return (rval);
usr/src/cmd/stmsboot/stmsboot_util.c
1440
int rv = -1, rval = -1;
usr/src/cmd/stmsboot/stmsboot_util.c
1509
rval = nvlist_lookup_string(mapnvl, prefixt,
usr/src/cmd/stmsboot/stmsboot_util.c
1511
if (rval) {
usr/src/cmd/sulogin/sulogin.c
662
char *rval = input;
usr/src/cmd/sulogin/sulogin.c
680
rval = NULL;
usr/src/cmd/sulogin/sulogin.c
695
return (rval == NULL ? NULL : strdup(rval));
usr/src/cmd/syseventadm/syseventadm.c
112
int rval;
usr/src/cmd/syseventadm/syseventadm.c
153
rval = add_cmd();
usr/src/cmd/syseventadm/syseventadm.c
155
rval = list_remove_cmd(CMD_LIST);
usr/src/cmd/syseventadm/syseventadm.c
157
rval = list_remove_cmd(CMD_REMOVE);
usr/src/cmd/syseventadm/syseventadm.c
159
rval = restart_cmd();
usr/src/cmd/syseventadm/syseventadm.c
161
rval = usage();
usr/src/cmd/syseventadm/syseventadm.c
166
return (rval);
usr/src/cmd/syseventadm/syseventadm.c
174
int rval;
usr/src/cmd/syseventadm/syseventadm.c
194
rval = usage_gen();
usr/src/cmd/syseventadm/syseventadm.c
195
return (rval);
usr/src/cmd/syseventadm/syseventadm.c
211
rval = serve_syseventdotconf(argc, argv, cmd);
usr/src/cmd/syseventadm/syseventadm.c
213
rval = usage_gen();
usr/src/cmd/syseventadm/syseventadm.c
215
return (rval);
usr/src/cmd/syseventadm/syseventadm.c
440
int rval;
usr/src/cmd/syseventadm/syseventadm.c
496
rval = EXIT_NO_MATCH;
usr/src/cmd/syseventadm/syseventadm.c
507
if (rval == EXIT_NO_MATCH &&
usr/src/cmd/syseventadm/syseventadm.c
509
rval = result;
usr/src/cmd/syseventadm/syseventadm.c
512
return (rval);
usr/src/cmd/syseventadm/syseventadm.c
522
int rval = EXIT_NO_MATCH;
usr/src/cmd/syseventadm/syseventadm.c
538
rval = EXIT_OK;
usr/src/cmd/syseventadm/syseventadm.c
546
return (rval);
usr/src/cmd/syseventd/daemons/syseventd/syseventd.c
518
int rval;
usr/src/cmd/syseventd/daemons/syseventd/syseventd.c
523
rval = EINVAL;
usr/src/cmd/syseventd/daemons/syseventd/syseventd.c
529
rval = door_upcall_retval = EAGAIN;
usr/src/cmd/syseventd/daemons/syseventd/syseventd.c
544
rval = 0;
usr/src/cmd/syseventd/daemons/syseventd/syseventd.c
553
(void) door_return((void *)&rval, sizeof (rval), NULL, 0);
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
1794
int rval;
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
1796
rval = sysevent_send_event(confd_handle, event);
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
1797
if (rval != 0) {
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
1805
rval = errno;
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
1819
rval = EAGAIN;
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
1830
rval = EAGAIN;
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
1832
rval = errno;
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
1838
rval = errno;
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
1850
return (rval);
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
1886
int rval;
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
1893
rval = transport_event(cmd->event);
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
1895
if (rval != 0) {
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
1896
switch (rval) {
usr/src/cmd/tail/extern.h
76
extern int Fflag, fflag, qflag, rflag, rval, no_files;
usr/src/cmd/tail/misc.c
50
rval = 1;
usr/src/cmd/tail/reverse.c
238
rval = 1;
usr/src/cmd/tail/tail.c
231
exit(rval);
usr/src/cmd/tail/tail.c
50
int Fflag, fflag, qflag, rflag, rval, no_files;
usr/src/cmd/th_tools/th_define.c
1283
int rval;
usr/src/cmd/th_tools/th_define.c
1312
rval = errno;
usr/src/cmd/th_tools/th_define.c
1332
} while (rval == 0 && errstate->log.entries < ls);
usr/src/cmd/th_tools/th_define.c
343
int rval = elem_cmp(p1, p2);
usr/src/cmd/th_tools/th_define.c
345
if (rval == 0)
usr/src/cmd/th_tools/th_define.c
353
return (rval);
usr/src/cmd/truss/actions.c
733
switch (stp->rval[0]) {
usr/src/cmd/truss/actions.c
762
switch (stp->rval[1]) {
usr/src/cmd/truss/fcall.c
1202
show_function_return(private_t *pri, long rval, int stret,
usr/src/cmd/truss/fcall.c
1218
if (rval >= (64 * 1024) || -rval >= (64 * 1024))
usr/src/cmd/truss/fcall.c
1219
(void) printf("0x%lx\n", rval);
usr/src/cmd/truss/fcall.c
1221
(void) printf("%ld\n", rval);
usr/src/cmd/truss/fcall.c
1223
int rval32 = (int)rval;
usr/src/cmd/truss/fcall.c
1250
int rval = 0;
usr/src/cmd/truss/fcall.c
1372
rval = 1;
usr/src/cmd/truss/fcall.c
1378
rval = 1;
usr/src/cmd/truss/fcall.c
1401
if (rval || clear) { /* leave process stopped and abandoned */
usr/src/cmd/truss/fcall.c
1407
if (rval && instr == 0x55) { /* pushl %ebp */
usr/src/cmd/truss/fcall.c
1433
return (rval);
usr/src/cmd/truss/main.c
1026
int rval;
usr/src/cmd/truss/main.c
1029
rval = function_trace(pri, first, 0, dotrace);
usr/src/cmd/truss/main.c
1030
if (rval == 1)
usr/src/cmd/truss/main.c
1032
if (rval >= 0)
usr/src/cmd/truss/systable.h
45
char rval[2]; /* return value types */
usr/src/cmd/tsol/setlabel/setlabel.c
102
return (rval);
usr/src/cmd/tsol/setlabel/setlabel.c
114
rval = setlabel(filename, blabel);
usr/src/cmd/tsol/setlabel/setlabel.c
115
if (rval == 0)
usr/src/cmd/tsol/setlabel/setlabel.c
117
return (rval);
usr/src/cmd/tsol/setlabel/setlabel.c
123
int rval;
usr/src/cmd/tsol/setlabel/setlabel.c
125
rval = setflabel(filename, label);
usr/src/cmd/tsol/setlabel/setlabel.c
127
if (rval) {
usr/src/cmd/tsol/setlabel/setlabel.c
131
return (rval);
usr/src/cmd/tsol/setlabel/setlabel.c
89
int rval = 0;
usr/src/cmd/tsol/setlabel/setlabel.c
98
rval = getlabel(filename, blabel);
usr/src/cmd/tsol/setlabel/setlabel.c
99
if (rval) {
usr/src/cmd/ttymon/tmttydefs.c
442
char *rval;
usr/src/cmd/ttymon/tmttydefs.c
445
if ((rval = malloc(1)) == NULL) {
usr/src/cmd/ttymon/tmttydefs.c
449
*rval = '\0';
usr/src/cmd/ttymon/tmttydefs.c
451
if ((rval = malloc(strlen(str) + 1)) == NULL) {
usr/src/cmd/ttymon/tmttydefs.c
455
(void) strcpy(rval, str);
usr/src/cmd/ttymon/tmttydefs.c
457
return (rval);
usr/src/cmd/vt/vtdaemon.c
405
ssize_t rval;
usr/src/cmd/vt/vtdaemon.c
407
rval = read(eventstream[channel], pevt, sizeof (vt_evt_t));
usr/src/cmd/vt/vtdaemon.c
408
return (rval > 0);
usr/src/cmd/vt/vtdaemon.c
427
int rval = 0;
usr/src/cmd/vt/vtdaemon.c
431
while (rval == 0) {
usr/src/cmd/vt/vtdaemon.c
432
rval = fstat(eventstream[0], &buf);
usr/src/cmd/vt/vtdaemon.c
433
if (rval != -1 && buf.st_size > 0)
usr/src/cmd/zfs/zfs_iter.c
303
nvlist_t *lval, *rval;
usr/src/cmd/zfs/zfs_iter.c
311
psc->sc_user_prop, &rval) == 0);
usr/src/cmd/zfs/zfs_iter.c
317
verify(nvlist_lookup_string(rval,
usr/src/cmd/zoneadmd/vplat.c
4903
zoneid_t rval = -1;
usr/src/cmd/zoneadmd/vplat.c
5133
rval = zoneid;
usr/src/cmd/zoneadmd/vplat.c
5149
return (rval);
usr/src/cmd/zoneadmd/zoneadmd.c
1217
int rval = -1;
usr/src/cmd/zoneadmd/zoneadmd.c
1342
rval = -1;
usr/src/cmd/zoneadmd/zoneadmd.c
1371
rval = zone_ready(zlogp, Z_MNT_BOOT, zstate);
usr/src/cmd/zoneadmd/zoneadmd.c
1372
if (rval == 0)
usr/src/cmd/zoneadmd/zoneadmd.c
1378
if ((rval = zone_ready(zlogp, Z_MNT_BOOT, zstate))
usr/src/cmd/zoneadmd/zoneadmd.c
1380
rval = zone_bootup(zlogp, zargp->bootbuf,
usr/src/cmd/zoneadmd/zoneadmd.c
1383
audit_put_record(zlogp, uc, rval, "boot");
usr/src/cmd/zoneadmd/zoneadmd.c
1384
if (rval != 0) {
usr/src/cmd/zoneadmd/zoneadmd.c
1402
rval = 0;
usr/src/cmd/zoneadmd/zoneadmd.c
1410
rval = -1;
usr/src/cmd/zoneadmd/zoneadmd.c
1437
rval = zone_ready(zlogp,
usr/src/cmd/zoneadmd/zoneadmd.c
1440
if (rval != 0)
usr/src/cmd/zoneadmd/zoneadmd.c
1451
rval = -1;
usr/src/cmd/zoneadmd/zoneadmd.c
1464
rval = brand_platform_iter_mounts(bh,
usr/src/cmd/zoneadmd/zoneadmd.c
1475
if (rval == 0)
usr/src/cmd/zoneadmd/zoneadmd.c
1476
rval = mount_early_fs(&cb,
usr/src/cmd/zoneadmd/zoneadmd.c
1483
rval = 0;
usr/src/cmd/zoneadmd/zoneadmd.c
1498
rval = 0;
usr/src/cmd/zoneadmd/zoneadmd.c
1505
rval = zone_bootup(zlogp, zargp->bootbuf, zstate);
usr/src/cmd/zoneadmd/zoneadmd.c
1506
audit_put_record(zlogp, uc, rval, "boot");
usr/src/cmd/zoneadmd/zoneadmd.c
1507
if (rval != 0) {
usr/src/cmd/zoneadmd/zoneadmd.c
1518
if ((rval = zone_halt(zlogp, B_FALSE, B_FALSE, zstate))
usr/src/cmd/zoneadmd/zoneadmd.c
1534
rval = -1;
usr/src/cmd/zoneadmd/zoneadmd.c
1544
rval = zone_halt(zlogp, B_TRUE, B_FALSE, zstate);
usr/src/cmd/zoneadmd/zoneadmd.c
1545
if (rval == 0) {
usr/src/cmd/zoneadmd/zoneadmd.c
1556
rval = -1;
usr/src/cmd/zoneadmd/zoneadmd.c
1566
if ((rval = zone_halt(zlogp, B_FALSE, B_TRUE, zstate))
usr/src/cmd/zoneadmd/zoneadmd.c
1569
if ((rval = zone_ready(zlogp, Z_MNT_BOOT, zstate)) == 0)
usr/src/cmd/zoneadmd/zoneadmd.c
1583
rval = 0;
usr/src/cmd/zoneadmd/zoneadmd.c
1586
if ((rval = zone_halt(zlogp, B_FALSE, B_FALSE, zstate))
usr/src/cmd/zoneadmd/zoneadmd.c
1595
if ((rval = zone_halt(zlogp, B_FALSE, B_TRUE, zstate))
usr/src/cmd/zoneadmd/zoneadmd.c
1601
if ((rval = zone_ready(zlogp, Z_MNT_BOOT, zstate))
usr/src/cmd/zoneadmd/zoneadmd.c
1607
rval = zone_bootup(zlogp, zargp->bootbuf, zstate);
usr/src/cmd/zoneadmd/zoneadmd.c
1608
audit_put_record(zlogp, uc, rval, "reboot");
usr/src/cmd/zoneadmd/zoneadmd.c
1609
if (rval != 0) {
usr/src/cmd/zoneadmd/zoneadmd.c
1617
if ((rval = zone_graceful_shutdown(zlogp)) == 0) {
usr/src/cmd/zoneadmd/zoneadmd.c
1628
rval = -1;
usr/src/cmd/zoneadmd/zoneadmd.c
1648
rval = zone_wait_shutdown(zlogp);
usr/src/cmd/zoneadmd/zoneadmd.c
1654
rvalp->rval = rval;
usr/src/common/ctf/ctf_types.c
725
int rval;
usr/src/common/ctf/ctf_types.c
728
rval = -1;
usr/src/common/ctf/ctf_types.c
730
rval = 1;
usr/src/common/ctf/ctf_types.c
732
rval = 0;
usr/src/common/ctf/ctf_types.c
735
return (rval);
usr/src/common/ctf/ctf_types.c
749
return (rval);
usr/src/common/devid/devid.c
111
int rval;
usr/src/common/devid/devid.c
122
if ((rval = bcmp(id1, id2, 4)) != 0) {
usr/src/common/devid/devid.c
123
return (rval);
usr/src/common/devid/devid.c
166
rval = bcmp(i_id1->did_id, i_id2->did_id, DEVID_GETLEN(i_id1));
usr/src/common/devid/devid.c
168
return (rval);
usr/src/common/devid/devid.c
490
int rval = DEVID_FAILURE;
usr/src/common/devid/devid.c
515
rval = DEVID_FUNC(devid_compare)(devid1, devid2);
usr/src/common/devid/devid.c
522
return (rval);
usr/src/common/devid/devid_scsi.c
164
int rval = DEVID_FAILURE;
usr/src/common/devid/devid_scsi.c
177
return (rval);
usr/src/common/devid/devid_scsi.c
182
return (rval);
usr/src/common/devid/devid_scsi.c
282
rval = devid_scsi_init(driver_name,
usr/src/common/devid/devid_scsi.c
285
rval = DEVID_RETRY;
usr/src/common/devid/devid_scsi.c
290
return (rval);
usr/src/common/ficl/loader.c
568
int nLine = 0, rval = FICL_VM_STATUS_OUT_OF_TEXT;
usr/src/common/ficl/loader.c
595
rval = ficlVmExecuteString(pVM, s);
usr/src/common/ficl/loader.c
596
if (rval != FICL_VM_STATUS_QUIT &&
usr/src/common/ficl/loader.c
597
rval != FICL_VM_STATUS_USER_EXIT &&
usr/src/common/ficl/loader.c
598
rval != FICL_VM_STATUS_OUT_OF_TEXT) {
usr/src/common/ficl/loader.c
601
return (rval);
usr/src/common/ficl/loader.c
612
if (rval == FICL_VM_STATUS_USER_EXIT)
usr/src/common/ficl/loader.c
615
return (rval);
usr/src/common/fs/ufsops.c
510
int rval;
usr/src/common/fs/ufsops.c
512
if ((rval = cf_read(filep, buf, count)) < 0)
usr/src/common/fs/ufsops.c
514
j = (size_t)rval;
usr/src/common/iscsi/utils.c
259
boolean_t rval = B_FALSE; /* Default */
usr/src/common/iscsi/utils.c
308
rval = B_TRUE;
usr/src/common/iscsi/utils.c
315
return (rval);
usr/src/lib/brand/shared/brand/common/brand_util.c
161
sysret_t rval;
usr/src/lib/brand/shared/brand/common/brand_util.c
173
(void) __systemcall(&rval, SYS_lwp_kill + 1024, _lwp_self(), SIGKILL);
usr/src/lib/brand/shared/brand/common/brand_util.c
179
sysret_t rval;
usr/src/lib/brand/shared/brand/common/brand_util.c
181
if (__systemcall(&rval, SYS_uucopy + 1024, from, to, size) != 0)
usr/src/lib/brand/shared/brand/common/brand_util.c
192
sysret_t rval;
usr/src/lib/brand/shared/brand/common/brand_util.c
194
if (__systemcall(&rval, SYS_uucopystr + 1024, from, to, size) != 0)
usr/src/lib/brand/shared/brand/common/brand_util.c
209
sysret_t rval;
usr/src/lib/brand/shared/brand/common/brand_util.c
230
(void) __systemcall(&rval, SYS_lwp_kill + 1024, _lwp_self(), SIGSYS);
usr/src/lib/brand/shared/brand/common/brand_util.c
332
sysret_t rval;
usr/src/lib/brand/shared/brand/common/brand_util.c
353
if ((err = __systemcall(&rval, SYS_brand, B_REGISTER, ®)) != 0) {
usr/src/lib/brand/shared/brand/common/brand_util.c
360
if ((err = __systemcall(&rval, SYS_brand + 1024,
usr/src/lib/brand/shared/brand/sys/brand_misc.h
179
#define B_TRUSS_POINT_5(rval, syscall_num, err, a0, a1, a2, a3, a4) \
usr/src/lib/brand/shared/brand/sys/brand_misc.h
180
__systemcall(rval, SYS_brand + 1024, \
usr/src/lib/brand/shared/brand/sys/brand_misc.h
184
#define B_TRUSS_POINT_4(rval, syscall_num, err, a0, a1, a2, a3) \
usr/src/lib/brand/shared/brand/sys/brand_misc.h
185
B_TRUSS_POINT_5(rval, (syscall_num), (err), (a0), (a1), (a2), (a3), 0)
usr/src/lib/brand/shared/brand/sys/brand_misc.h
187
#define B_TRUSS_POINT_3(rval, syscall_num, err, a0, a1, a2) \
usr/src/lib/brand/shared/brand/sys/brand_misc.h
188
B_TRUSS_POINT_5(rval, (syscall_num), (err), (a0), (a1), (a2), 0, 0)
usr/src/lib/brand/shared/brand/sys/brand_misc.h
190
#define B_TRUSS_POINT_2(rval, syscall_num, err, a0, a1) \
usr/src/lib/brand/shared/brand/sys/brand_misc.h
191
B_TRUSS_POINT_5(rval, (syscall_num), (err), (a0), (a1), 0, 0, 0)
usr/src/lib/brand/shared/brand/sys/brand_misc.h
193
#define B_TRUSS_POINT_1(rval, syscall_num, err, a0) \
usr/src/lib/brand/shared/brand/sys/brand_misc.h
194
B_TRUSS_POINT_5(rval, (syscall_num), (err), (a0), 0, 0, 0, 0)
usr/src/lib/brand/shared/brand/sys/brand_misc.h
196
#define B_TRUSS_POINT_0(rval, syscall_num, err) \
usr/src/lib/brand/shared/brand/sys/brand_misc.h
197
B_TRUSS_POINT_5(rval, (syscall_num), (err), 0, 0, 0, 0, 0)
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1082
sysret_t rval;
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1102
if ((err = __systemcall(&rval, SYS_fstatat64 + 1024, AT_FDCWD,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1106
if ((err = __systemcall(&rval, SYS_fstatat64 + 1024, fd,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1144
s10_acl(sysret_t *rval, const char *fname, int cmd, int nentries, void *aclbufp)
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1148
res = __systemcall(rval, SYS_acl + 1024, fname, cmd, nentries, aclbufp);
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1153
rval->sys_rval1, fname, 0)) {
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1154
rval->sys_rval1 = S10_TRIVIAL_ACL_CNT;
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1162
rval->sys_rval1 = S10_TRIVIAL_ACL_CNT;
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1171
s10_facl(sysret_t *rval, int fdes, int cmd, int nentries, void *aclbufp)
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1175
res = __systemcall(rval, SYS_facl + 1024, fdes, cmd, nentries, aclbufp);
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1180
rval->sys_rval1, NULL, fdes)) {
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1181
rval->sys_rval1 = S10_TRIVIAL_ACL_CNT;
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1189
rval->sys_rval1 = S10_TRIVIAL_ACL_CNT;
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1208
s10_acctctl(sysret_t *rval, int cmd, void *buf, size_t bufsz)
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1224
return (B_TRUSS_POINT_3(rval, SYS_acctctl, EINVAL, cmd, buf,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1228
return (__systemcall(rval, SYS_acctctl + 1024, mode | option, buf,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1267
s10_auditsys(sysret_t *rval, int bsmcmd, intptr_t a0, intptr_t a1, intptr_t a2)
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1273
return (__systemcall(rval, SYS_auditsys + 1024, bsmcmd, a0, a1,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1277
if ((err = __systemcall(rval, SYS_auditsys + 1024, bsmcmd, a0,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1289
return (__systemcall(rval, SYS_auditsys + 1024, bsmcmd, a0, &m,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1292
if ((err = __systemcall(rval, SYS_auditsys + 1024, bsmcmd, a0,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1305
return (__systemcall(rval, SYS_auditsys + 1024, bsmcmd, a0, &m,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1309
return (__systemcall(rval, SYS_auditsys + 1024, bsmcmd, a0, a1, a2));
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1320
s10_exec_native(sysret_t *rval, const char *fname, const char **argp,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1347
err = __systemcall(rval, SYS_brand + 1024, B_EXEC_NATIVE, filename,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1357
s10_exec(sysret_t *rval, const char *fname, const char **argp)
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1361
if ((err = s10_exec_native(rval, fname, argp, NULL)) != 0)
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1365
err = __systemcall(rval, SYS_execve + 1024, fname, argp, NULL, 0);
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1374
s10_execve(sysret_t *rval, const char *fname, const char **argp,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1379
if ((err = s10_exec_native(rval, fname, argp, envp)) != 0)
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1383
err = __systemcall(rval, SYS_execve + 1024, fname, argp, envp, 0);
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
139
sysret_t *rval, int fdes, int cmd, intptr_t arg)
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1392
s10_fcntl(sysret_t *rval, int fd, int cmd, intptr_t arg)
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1394
return (__systemcall(rval, SYS_fcntl + 1024, fd, cmd, arg, 0));
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1408
s10_fdsync(sysret_t *rval, int fd, int flag)
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1420
return (__systemcall(rval, SYS_fdsync + 1024, fd, level));
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1427
s10_issetugid(sysret_t *rval)
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1429
return (__systemcall(rval, SYS_privsys + 1024, PRIVSYS_ISSETUGID,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1437
s10_so_socket(sysret_t *rval, int domain, int type, int protocol,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
144
if ((*err = __systemcall(rval, SYS_fstatat + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1444
return (__systemcall(rval, SYS_so_socket + 1024, domain, type,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1452
s10_pipe(sysret_t *rval)
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1455
if ((err = __systemcall(rval, SYS_pipe + 1024, fds, 0)) != 0)
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1458
rval->sys_rval1 = fds[0];
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1459
rval->sys_rval2 = fds[1];
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1467
s10_accept(sysret_t *rval, int sock, struct sockaddr *addr, uint_t *addrlen,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1470
return (__systemcall(rval, SYS_accept + 1024, sock, addr, addrlen,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
151
if ((*err = __systemcall(rval, SYS_fstatat + 1024, fdes,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
159
*err = (__systemcall(rval, SYS_ioctl + 1024, fdes, cmd, arg));
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1599
sysret_t rval;
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1606
(void) __systemcall(&rval, SYS_brand + 1024, B_S10_FSREGCORRECTION);
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1665
s10_lwp_create_correct_fs(sysret_t *rval, ucontext_t *ucp, int flags,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1693
return (__systemcall(rval, SYS_lwp_create + 1024, &s10_uc,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1707
s10_lwp_private(sysret_t *rval, int cmd, int which, uintptr_t base)
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
172
sysret_t rval;
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1722
if ((err = __systemcall(rval, SYS_lwp_private + 1024, cmd, which,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1740
return (__systemcall(rval, SYS_brand + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1745
return (__systemcall(rval, SYS_lwp_private + 1024, cmd, which, base));
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1758
s10_lwp_mutex_timedlock(sysret_t *rval, lwp_mutex_t *lp, timespec_t *tsp)
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1760
return (__systemcall(rval, SYS_lwp_mutex_timedlock + 1024, lp, tsp, 0));
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1764
s10_lwp_mutex_trylock(sysret_t *rval, lwp_mutex_t *lp)
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1766
return (__systemcall(rval, SYS_lwp_mutex_trylock + 1024, lp, 0));
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1777
s10_zone(sysret_t *rval, int cmd, void *arg1, void *arg2, void *arg3,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1792
return (__systemcall(rval, SYS_zone + 1024, cmd, arg1, arg2,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1797
(void) B_TRUSS_POINT_1(rval, SYS_zone, 0, cmd);
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1798
rval->sys_rval1 = GLOBAL_ZONEID;
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1799
rval->sys_rval2 = 0;
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
182
if ((err = __systemcall(&rval, SYS_brand,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1832
(void) B_TRUSS_POINT_5(rval, SYS_zone, 0, cmd, zid, attr,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1856
rval->sys_rval1 = len;
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1857
rval->sys_rval2 = 0;
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1865
return (__systemcall(rval, SYS_zone + 1024, cmd, arg1, arg2, arg3,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1873
sysret_t rval;
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1888
err = __systemcall(&rval, SYS_zone, ZONE_LOOKUP, NULL);
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1890
zoneid = (zoneid_t)rval.sys_rval1;
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1893
if ((err = __systemcall(&rval, SYS_zone, ZONE_GETATTR, zoneid,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
291
mntfs_ioctl(sysret_t *rval, int fdes, int cmd, intptr_t arg)
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
300
return (__systemcall(rval, SYS_ioctl + 1024, fdes, cmd, arg));
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
303
if ((err = __systemcall(rval, SYS_fstatat + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
307
return (__systemcall(rval, SYS_ioctl + 1024, fdes, cmd, arg));
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
329
if ((err = __systemcall(rval, SYS_ioctl + 1024, fdes,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
333
if (rval->sys_rval1 == MNTFS_TOOLONG) {
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
452
crypto_ioctl(sysret_t *rval, int fdes, int cmd, intptr_t arg)
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
460
rval, fdes, cmd, arg) == 1)
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
467
if ((err = __systemcall(rval, SYS_ioctl + 1024, fdes, cmd,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
577
ctfs_ioctl(sysret_t *rval, int fdes, int cmd, intptr_t arg)
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
584
if ((err = __systemcall(rval, SYS_fstatat + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
588
return (__systemcall(rval, SYS_ioctl + 1024, fdes, cmd, arg));
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
595
if ((err = __systemcall(rval, SYS_ioctl + 1024, fdes, cmd, ¶m))
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
613
zfs_ioctl(sysret_t *rval, int fdes, int cmd, intptr_t arg)
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
619
rval, fdes, cmd, arg) == 1)
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
634
lofi_ioctl(sysret_t *rval, int fdes, int cmd, intptr_t arg)
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
642
rval, fdes, cmd, arg) == 1)
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
669
err = __systemcall(rval, SYS_ioctl + 1024, fdes, cmd, &native_param);
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
682
s10_ioctl(sysret_t *rval, int fdes, int cmd, intptr_t arg)
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
686
return (crypto_ioctl(rval, fdes, cmd, arg));
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
690
return (ctfs_ioctl(rval, fdes, cmd, arg));
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
696
return (mntfs_ioctl(rval, fdes, cmd, arg));
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
701
return (zfs_ioctl(rval, fdes, cmd, arg));
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
704
return (lofi_ioctl(rval, fdes, cmd, arg));
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
710
return (__systemcall(rval, SYS_ioctl + 1024, fdes, cmd, arg));
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
726
s10_pwrite(sysret_t *rval, int fd, const void *bufferp, size_t num_bytes,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
731
if ((err = __systemcall(rval, SYS_fcntl + 1024, fd, F_GETFL, 0, 0)) !=
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
735
if (rval->sys_rval1 & O_APPEND)
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
736
return (__systemcall(rval, SYS_write + 1024, fd, bufferp,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
738
return (__systemcall(rval, SYS_pwrite + 1024, fd, bufferp, num_bytes,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
749
s10_pwrite64(sysret_t *rval, int fd, const void *bufferp, size32_t num_bytes,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
754
if ((err = __systemcall(rval, SYS_fcntl + 1024, fd, F_GETFL, 0, 0)) !=
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
758
if (rval->sys_rval1 & O_APPEND)
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
759
return (__systemcall(rval, SYS_write + 1024, fd, bufferp,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
761
return (__systemcall(rval, SYS_pwrite64 + 1024, fd, bufferp,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
789
s10_getdents_common(sysret_t *rval, int fd, char *buf, size_t nbyte,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
804
if ((err = __systemcall(rval, SYS_brand + 1024, B_S10_ISFDXATTRDIR,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
807
if (rval->sys_rval1 == 0)
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
808
return (__systemcall(rval, getdents_syscall_id + 1024, fd, buf,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
829
(void) B_TRUSS_POINT_3(rval, getdents_syscall_id, ENOMEM, fd,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
831
rval->sys_rval1 = -1;
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
832
rval->sys_rval2 = 0;
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
843
if ((err = __systemcall(rval, getdents_syscall_id + 1024, fd, local_buf,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
848
buf_size = rval->sys_rval1;
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
891
rval->sys_rval1 = -1;
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
892
rval->sys_rval2 = 0;
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
895
rval->sys_rval1 = buf_size;
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
926
s10_getdents(sysret_t *rval, int fd, struct dirent *buf, size_t nbyte)
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
928
return (s10_getdents_common(rval, fd, (char *)buf, nbyte, SYS_getdents,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
940
s10_getdents64(sysret_t *rval, int fd, struct dirent64 *buf, size_t nbyte)
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
942
return (s10_getdents_common(rval, fd, (char *)buf, nbyte,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
959
sysret_t rval;
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
963
err = __systemcall(&rval, SYS_pathconf + 1024, fname,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
966
err = __systemcall(&rval, SYS_fpathconf + 1024, fd,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
968
if (err != 0 || rval.sys_rval1 != _ACL_ACE_ENABLED)
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
977
if (__systemcall(&rval, SYS_acl + 1024, fname,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
981
if (__systemcall(&rval, SYS_facl + 1024, fd,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
985
cnt = rval.sys_rval1;
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
992
if (__systemcall(&rval, SYS_acl + 1024, fname, ACE_GETACL, cnt,
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
996
if (__systemcall(&rval, SYS_facl + 1024, fd, ACE_GETACL, cnt,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
103
s10_fstat64(sysret_t *rval, int filedes, struct stat64 *sb)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
105
return (__systemcall(rval, SYS_fstatat64 + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
112
s10_openat(sysret_t *rval, int fd, const char *path, int oflag, mode_t mode)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
114
return (__systemcall(rval, SYS_openat + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
119
s10_open(sysret_t *rval, char *path, int oflag, mode_t mode)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
121
return (__systemcall(rval, SYS_openat + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
126
s10_creat(sysret_t *rval, char *path, mode_t mode)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
128
return (__systemcall(rval, SYS_openat + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
135
s10_openat64(sysret_t *rval, int fd, const char *path, int oflag, mode_t mode)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
137
return (__systemcall(rval, SYS_openat64 + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
142
s10_open64(sysret_t *rval, char *path, int oflag, mode_t mode)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
144
return (__systemcall(rval, SYS_openat64 + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
149
s10_creat64(sysret_t *rval, char *path, mode_t mode)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
151
return (__systemcall(rval, SYS_openat64 + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
158
s10_fork1(sysret_t *rval)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
160
return (__systemcall(rval, SYS_forksys + 1024, 0, 0));
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
164
s10_forkall(sysret_t *rval)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
166
return (__systemcall(rval, SYS_forksys + 1024, 1, 0));
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
170
s10_dup(sysret_t *rval, int fd)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
172
return (__systemcall(rval, SYS_fcntl + 1024, fd, F_DUPFD, 0, 0));
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
176
s10_poll(sysret_t *rval, struct pollfd *fds, nfds_t nfd, int timeout)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
189
return (__systemcall(rval, SYS_pollsys + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
194
s10_lwp_mutex_lock(sysret_t *rval, void *mp)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
196
return (__systemcall(rval, SYS_lwp_mutex_timedlock + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
201
s10_lwp_sema_wait(sysret_t *rval, void *sp)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
203
return (__systemcall(rval, SYS_lwp_sema_timedwait + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
208
s10_chmod(sysret_t *rval, const char *name, mode_t mode)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
210
return (__systemcall(rval, SYS_fchmodat + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
215
s10_fchmod(sysret_t *rval, int filedes, mode_t mode)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
217
return (__systemcall(rval, SYS_fchmodat + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
222
s10_fchownat(sysret_t *rval,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
225
return (__systemcall(rval, SYS_fchownat + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
230
s10_chown(sysret_t *rval, const char *name, uid_t uid, gid_t gid)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
232
return (__systemcall(rval, SYS_fchownat + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
237
s10_lchown(sysret_t *rval, const char *name, uid_t uid, gid_t gid)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
239
return (__systemcall(rval, SYS_fchownat + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
244
s10_fchown(sysret_t *rval, int filedes, uid_t uid, gid_t gid)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
246
return (__systemcall(rval, SYS_fchownat + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
251
s10_mkdir(sysret_t *rval, const char *dname, int dmode)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
253
return (__systemcall(rval, SYS_mkdirat + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
258
s10_mknod(sysret_t *rval, const char *fname, int fmode, dev_t dev)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
260
return (__systemcall(rval, SYS_mknodat + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
265
s10_link(sysret_t *rval, const char *path1, const char *path2)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
267
return (__systemcall(rval, SYS_linkat + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
272
s10_unlinkat(sysret_t *rval, int fd, const char *name, int flags)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
274
return (__systemcall(rval, SYS_unlinkat + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
279
s10_unlink(sysret_t *rval, const char *name)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
281
return (__systemcall(rval, SYS_unlinkat + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
286
s10_rmdir(sysret_t *rval, const char *name)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
288
return (__systemcall(rval, SYS_unlinkat + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
293
s10_renameat(sysret_t *rval,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
296
return (__systemcall(rval, SYS_renameat + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
301
s10_rename(sysret_t *rval, const char *oldname, const char *newname)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
303
return (__systemcall(rval, SYS_renameat + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
308
s10_symlink(sysret_t *rval, const char *path1, const char *path2)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
310
return (__systemcall(rval, SYS_symlinkat + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
315
s10_readlink(sysret_t *rval, const char *path, char *buf, size_t bufsize)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
317
return (__systemcall(rval, SYS_readlinkat + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
322
s10_faccessat(sysret_t *rval, int fd, const char *fname, int amode, int flag)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
324
return (__systemcall(rval, SYS_faccessat + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
329
s10_access(sysret_t *rval, const char *fname, int amode)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
331
return (__systemcall(rval, SYS_faccessat + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
336
s10_utime(sysret_t *rval, const char *path, const struct utimbuf *times)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
354
return (__systemcall(rval, SYS_utimesys + 1024, 1,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
359
s10_utimes(sysret_t *rval, const char *path, const struct timeval times[2])
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
377
return (__systemcall(rval, SYS_utimesys + 1024, 1,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
382
s10_futimesat(sysret_t *rval,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
402
return (__systemcall(rval, SYS_utimesys + 1024, 0, fd, tsp));
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
404
return (__systemcall(rval, SYS_utimesys + 1024, 1, fd, path, tsp, 0));
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
411
s10_xstat(sysret_t *rval, int version, const char *path, struct stat *statb)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
418
return (__systemcall(rval, SYS_fstatat + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
425
s10_lxstat(sysret_t *rval, int version, const char *path, struct stat *statb)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
432
return (__systemcall(rval, SYS_fstatat + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
439
s10_fxstat(sysret_t *rval, int version, int fd, struct stat *statb)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
446
return (__systemcall(rval, SYS_fstatat + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
453
s10_xmknod(sysret_t *rval, int version, const char *path,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
461
return (__systemcall(rval, SYS_mknodat + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
473
s10_fsat(sysret_t *rval,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
479
return (s10_openat(rval, (int)arg1,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
485
return (s10_openat64(rval, (int)arg1,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
492
return (s10_fstatat64(rval, (int)arg1,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
496
return (s10_fstatat(rval, (int)arg1,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
499
return (s10_fchownat(rval, (int)arg1, (char *)arg2,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
50
s10_fstatat(sysret_t *rval,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
502
return (s10_unlinkat(rval, (int)arg1, (char *)arg2,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
505
return (s10_futimesat(rval, (int)arg1,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
508
return (s10_renameat(rval, (int)arg1, (char *)arg2,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
511
return (s10_faccessat(rval, (int)arg1, (char *)arg2,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
514
return (s10_openat(rval, (int)arg1,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
524
s10_umount(sysret_t *rval, const char *path)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
526
return (__systemcall(rval, SYS_umount2 + 1024, path, 0));
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
53
return (__systemcall(rval, SYS_fstatat + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
58
s10_stat(sysret_t *rval, const char *path, struct stat *sb)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
60
return (__systemcall(rval, SYS_fstatat + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
65
s10_lstat(sysret_t *rval, const char *path, struct stat *sb)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
67
return (__systemcall(rval, SYS_fstatat + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
72
s10_fstat(sysret_t *rval, int filedes, struct stat *sb)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
74
return (__systemcall(rval, SYS_fstatat + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
81
s10_fstatat64(sysret_t *rval,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
84
return (__systemcall(rval, SYS_fstatat64 + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
89
s10_stat64(sysret_t *rval, const char *path, struct stat64 *sb)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
91
return (__systemcall(rval, SYS_fstatat64 + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
96
s10_lstat64(sysret_t *rval, const char *path, struct stat64 *sb)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
98
return (__systemcall(rval, SYS_fstatat64 + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
114
sysret_t rval;
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
118
sigrtmin = __systemcall(&rval, SYS_sysconfig + 1024, _CONFIG_SIGRT_MIN)?
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
119
_SIGRTMIN : (int)rval.sys_rval1;
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
127
sysret_t rval;
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
131
sigrtmax = __systemcall(&rval, SYS_sysconfig + 1024, _CONFIG_SIGRT_MAX)?
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
132
_SIGRTMAX : (int)rval.sys_rval1;
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
340
s10_lwp_sigmask(sysret_t *rval, int how, uint_t bits0, uint_t bits1)
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
353
err = __systemcall(rval, SYS_lwp_sigmask + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
363
native_blockset.__sigbits[0] = (int)rval->sys_rval1;
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
364
native_blockset.__sigbits[1] = (int)rval->sys_rval2;
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
370
rval->sys_rval1 = s10_blockset.__sigbits[0];
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
371
rval->sys_rval2 = s10_blockset.__sigbits[1];
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
380
s10_sigprocmask(sysret_t *rval, int how, const sigset_t *set, sigset_t *oset)
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
393
if ((err = __systemcall(rval, SYS_sigprocmask + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
408
s10_sigsuspend(sysret_t *rval, const sigset_t *set)
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
414
(void) B_TRUSS_POINT_1(rval, SYS_sigsuspend, err, set);
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
418
return (__systemcall(rval, SYS_sigsuspend + 1024, &sigset_set));
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
440
s10_sigaction(sysret_t *rval,
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
449
(void) B_TRUSS_POINT_3(rval, SYS_sigaction, EINVAL,
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
464
(void) B_TRUSS_POINT_3(rval, SYS_sigaction, err,
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
478
if ((err = __systemcall(rval, SYS_sigaction + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
527
s10_sigpending(sysret_t *rval, int flag, sigset_t *set)
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
532
if ((err = __systemcall(rval, SYS_sigpending + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
546
s10_sigsendsys(sysret_t *rval, procset_t *psp, int sig)
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
551
(void) B_TRUSS_POINT_2(rval, SYS_sigsendsys, EINVAL,
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
556
return (__systemcall(rval, SYS_sigsendsys + 1024, psp, nativesig));
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
593
s10_wait(sysret_t *rval)
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
598
err = s10_waitid(rval, P_ALL, 0, &info, WEXITED | WTRAPPED);
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
602
rval->sys_rval1 = info.si_pid;
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
603
rval->sys_rval2 = wstat(info.si_code, info.si_status);
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
612
s10_waitid(sysret_t *rval,
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
617
err = __systemcall(rval, SYS_waitid + 1024, idtype, id, infop, options);
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
642
s10_sigtimedwait(sysret_t *rval,
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
649
(void) B_TRUSS_POINT_3(rval, SYS_sigtimedwait, err,
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
654
if ((err = __systemcall(rval, SYS_sigtimedwait + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
677
if ((sig = nativesig_to_s10((int)rval->sys_rval1)) > 0)
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
678
rval->sys_rval1 = sig;
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
687
s10_sigqueue(sysret_t *rval, pid_t pid, int signo, void *value, int si_code)
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
692
(void) B_TRUSS_POINT_4(rval, SYS_sigqueue, EINVAL,
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
706
return (__systemcall(rval, SYS_sigqueue + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
714
s10_signotify(sysret_t *rval,
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
729
(void) B_TRUSS_POINT_3(rval, SYS_signotify, EINVAL,
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
738
return (__systemcall(rval, SYS_signotify + 1024, cmd, infop, sn_id));
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
745
s10_kill(sysret_t *rval, pid_t pid, int sig)
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
750
(void) B_TRUSS_POINT_2(rval, SYS_kill, EINVAL, pid, sig);
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
757
return (__systemcall(rval, SYS_kill + 1024, pid, nativesig));
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
767
s10_lwp_create(sysret_t *rval, ucontext_t *ucp, int flags, id_t *new_lwp)
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
778
return (__systemcall(rval, SYS_lwp_create + 1024,
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
786
s10_lwp_kill(sysret_t *rval, id_t lwpid, int sig)
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
791
(void) B_TRUSS_POINT_2(rval, SYS_lwp_kill, EINVAL,
usr/src/lib/brand/solaris10/s10_brand/common/s10_signal.c
796
return (__systemcall(rval, SYS_lwp_kill + 1024, lwpid, nativesig));
usr/src/lib/brand/solaris10/s10_npreload/common/s10_npreload.c
56
sysret_t rval;
usr/src/lib/brand/solaris10/s10_npreload/common/s10_npreload.c
80
(void) __systemcall(&rval, SYS_brand, B_S10_NATIVE, cmd_buf, arg_buf);
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
1550
fpcfga_ret_t rval = FPCFGA_OK;
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
1602
rval = unconf_any_devinfo_nodes(apidt, flags, errstring,
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
1606
if (rval == FPCFGA_OK) {
usr/src/lib/cfgadm_plugins/ib/common/cfga_conf.c
1066
return (ib_cleanup_file(rval));
usr/src/lib/cfgadm_plugins/ib/common/cfga_conf.c
1085
int rval = CFGA_IB_OK;
usr/src/lib/cfgadm_plugins/ib/common/cfga_conf.c
1091
if ((rval = ib_init_file(errmsg)) != CFGA_IB_OK) {
usr/src/lib/cfgadm_plugins/ib/common/cfga_conf.c
1093
return (rval);
usr/src/lib/cfgadm_plugins/ib/common/cfga_conf.c
689
ib_cleanup_file(int rval)
usr/src/lib/cfgadm_plugins/ib/common/cfga_conf.c
691
int rv = rval;
usr/src/lib/cfgadm_plugins/ib/common/cfga_conf.c
810
int rval;
usr/src/lib/cfgadm_plugins/ib/common/cfga_conf.c
817
if ((rval = ib_init_file(errmsg)) != CFGA_IB_OK) {
usr/src/lib/cfgadm_plugins/ib/common/cfga_conf.c
819
return (rval);
usr/src/lib/cfgadm_plugins/ib/common/cfga_conf.c
898
return (ib_cleanup_file(rval));
usr/src/lib/cfgadm_plugins/ib/common/cfga_conf.c
917
int rval;
usr/src/lib/cfgadm_plugins/ib/common/cfga_conf.c
930
if ((rval = ib_init_file(errmsg)) != CFGA_IB_OK) {
usr/src/lib/cfgadm_plugins/ib/common/cfga_conf.c
932
return (rval);
usr/src/lib/cfgadm_plugins/ib/common/cfga_ib.c
2083
int rval;
usr/src/lib/cfgadm_plugins/ib/common/cfga_ib.c
2091
rval = (*confp->confirm)(confp->appdata_ptr, msg);
usr/src/lib/cfgadm_plugins/ib/common/cfga_ib.c
2092
DPRINTF("ib_confirm: %d\n", rval);
usr/src/lib/cfgadm_plugins/ib/common/cfga_ib.c
2094
return (rval);
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
1150
fixup_slotname(int rval, int *intp, struct searcharg *slotarg)
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
1168
if ((slotarg->slt_name_src == PROM_SLT_NAME) && (rval == -1)) {
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
1175
rval = (rval -1) * 4;
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
1212
int *intp, rval;
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
1237
rval = di_prop_lookup_ints(DDI_DEV_T_ANY,
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
1241
return (fixup_slotname(rval, intp, slotarg));
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
1254
rval = di_prom_prop_lookup_ints(ph,
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
1258
return (fixup_slotname(rval, intp, slotarg));
usr/src/lib/cfgadm_plugins/sata/common/cfga_sata.c
2090
int rval;
usr/src/lib/cfgadm_plugins/sata/common/cfga_sata.c
2095
rval = (*confp->confirm)(confp->appdata_ptr, msg);
usr/src/lib/cfgadm_plugins/sata/common/cfga_sata.c
2097
return (rval);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
1112
int rval;
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
1125
while ((rval = fcntl(fd, F_SETLKW, &lock)) == -1 && errno == EINTR) {
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
1134
if (rval != -1) {
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
1153
pid_t rval;
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
1159
while ((rval = waitpid(cpid, &status, 0)) != cpid) {
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
1167
": errno: %s\n", s_getpid(), (int)rval,
usr/src/lib/cfgadm_plugins/shp/common/shp.c
1039
fixup_slotname(int rval, int *intp, struct searcharg *slotarg)
usr/src/lib/cfgadm_plugins/shp/common/shp.c
1041
if ((slotarg->slt_name_src == PROM_SLT_NAME) && (rval == -1)) {
usr/src/lib/cfgadm_plugins/shp/common/shp.c
1048
rval = (rval -1) * 4;
usr/src/lib/cfgadm_plugins/shp/common/shp.c
1085
int *intp, rval;
usr/src/lib/cfgadm_plugins/shp/common/shp.c
1110
rval = di_prop_lookup_ints(DDI_DEV_T_ANY,
usr/src/lib/cfgadm_plugins/shp/common/shp.c
1114
return (fixup_slotname(rval, intp, slotarg));
usr/src/lib/cfgadm_plugins/shp/common/shp.c
1127
rval = di_prom_prop_lookup_ints(ph,
usr/src/lib/cfgadm_plugins/shp/common/shp.c
1131
return (fixup_slotname(rval, intp, slotarg));
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
727
int rval = CFGA_USB_OK;
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
788
rval = CFGA_USB_CONFIG_FILE;
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
794
rval = CFGA_USB_ALLOC_FAIL;
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
800
rval = CFGA_USB_CONFIG_FILE;
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
858
rval = CFGA_USB_CONFIG_FILE;
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
867
rval = CFGA_USB_CONFIG_FILE;
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
876
rval = CFGA_USB_CONFIG_FILE;
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
923
rval = CFGA_USB_CONFIG_FILE;
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
932
rval = CFGA_USB_CONFIG_FILE;
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
941
rval = CFGA_USB_CONFIG_FILE;
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
947
if (rval == CFGA_USB_OK) {
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
959
rval = CFGA_USB_LOCK_FILE;
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
966
return (rval);
usr/src/lib/cfgadm_plugins/usb/common/cfga_usb.c
1731
int rval;
usr/src/lib/cfgadm_plugins/usb/common/cfga_usb.c
1737
rval = (*confp->confirm)(confp->appdata_ptr, msg);
usr/src/lib/cfgadm_plugins/usb/common/cfga_usb.c
1738
DPRINTF("usb_confirm: %d\n", rval);
usr/src/lib/cfgadm_plugins/usb/common/cfga_usb.c
1740
return (rval);
usr/src/lib/fm/topo/libtopo/common/dev.c
459
uint32_t rval;
usr/src/lib/fm/topo/libtopo/common/dev.c
491
rval = FMD_OBJ_STATE_UNKNOWN;
usr/src/lib/fm/topo/libtopo/common/dev.c
493
rval = FMD_OBJ_STATE_UNKNOWN;
usr/src/lib/fm/topo/libtopo/common/dev.c
496
rval = FMD_OBJ_STATE_UNKNOWN;
usr/src/lib/fm/topo/libtopo/common/dev.c
498
rval = FMD_OBJ_STATE_UNKNOWN;
usr/src/lib/fm/topo/libtopo/common/dev.c
503
rval = FMD_OBJ_STATE_UNKNOWN;
usr/src/lib/fm/topo/libtopo/common/dev.c
505
rval = FMD_OBJ_STATE_UNKNOWN;
usr/src/lib/fm/topo/libtopo/common/dev.c
509
rval = FMD_OBJ_STATE_UNKNOWN;
usr/src/lib/fm/topo/libtopo/common/dev.c
512
rval = FMD_OBJ_STATE_REPLACED;
usr/src/lib/fm/topo/libtopo/common/dev.c
514
rval = FMD_OBJ_STATE_STILL_PRESENT;
usr/src/lib/fm/topo/libtopo/common/dev.c
524
if (nvlist_add_uint32(*out, TOPO_METH_REPLACED_RET, rval) != 0) {
usr/src/lib/fm/topo/libtopo/common/hc.c
1788
uint32_t rval = FMD_OBJ_STATE_UNKNOWN;
usr/src/lib/fm/topo/libtopo/common/hc.c
1829
rval = hc_auth_changed(hap->ha_fmri, rsrc,
usr/src/lib/fm/topo/libtopo/common/hc.c
1831
if (rval != FMD_OBJ_STATE_REPLACED)
usr/src/lib/fm/topo/libtopo/common/hc.c
1832
rval = hc_auth_changed(hap->ha_fmri, rsrc,
usr/src/lib/fm/topo/libtopo/common/hc.c
1839
TOPO_METH_REPLACED_RET, rval) != 0) {
usr/src/lib/fm/topo/modules/common/disk/disk_common.c
469
dev_di_node_t *dnode, const char *name, topo_instance_t i, tnode_t **rval)
usr/src/lib/fm/topo/modules/common/disk/disk_common.c
478
*rval = NULL;
usr/src/lib/fm/topo/modules/common/disk/disk_common.c
548
*rval = dtn;
usr/src/lib/fm/topo/modules/common/disk/disk_common.c
557
int rval;
usr/src/lib/fm/topo/modules/common/disk/disk_common.c
559
rval = disk_tnode_create(mod, parent, dnode, DISK, 0, &dtn);
usr/src/lib/fm/topo/modules/common/disk/disk_common.c
561
if (rval == 0)
usr/src/lib/fm/topo/modules/common/ses/ses.c
3871
int rval;
usr/src/lib/fm/topo/modules/common/ses/ses.c
3879
if ((rval = topo_mod_register(mod, &ses_info, TOPO_VERSION)) == 0)
usr/src/lib/fm/topo/modules/common/ses/ses.c
3882
return (rval);
usr/src/lib/fm/topo/modules/common/ses/ses.c
739
int tfd, len, rval;
usr/src/lib/fm/topo/modules/common/ses/ses.c
757
if ((rval = ct_dev_tmpl_set_minor(tfd, &link_path[13])) != 0)
usr/src/lib/fm/topo/modules/common/ses/ses.c
759
&link_path[13], rval);
usr/src/lib/fm/topo/modules/common/ses/ses.c
760
else if ((rval = ct_tmpl_create(tfd, &stp->set_ctid)) != 0)
usr/src/lib/fm/topo/modules/common/ses/ses.c
761
topo_mod_dprintf(mod, "failed to create ctid rval = %d", rval);
usr/src/lib/fm/topo/modules/common/usb/topo_usb.c
1610
int i, rval;
usr/src/lib/fm/topo/modules/common/usb/topo_usb.c
1634
rval = topo_prop_set_string_array(tn, TOPO_PGROUP_USB_PROPS,
usr/src/lib/fm/topo/modules/common/usb/topo_usb.c
1638
if (rval != 0) {
usr/src/lib/hbaapi/common/HBAAPILIB-sun.c
848
Sun_HBA_ForceLip(HBA_HANDLE handle, int *rval)
usr/src/lib/hbaapi/common/HBAAPILIB-sun.c
862
status = ((DoForceLipFunc)(vendorHandle, rval));
usr/src/lib/hbaapi/common/hbaapi-sun.h
145
int *rval);
usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/bt_seq.c
279
int exact, rval;
usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/bt_seq.c
315
if ((rval = __bt_first(t, &c->key, ep, &exact)) == RET_ERROR)
usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/bt_seq.c
318
return (rval);
usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/bt_split.c
623
PAGE *rval;
usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/bt_split.c
736
rval = l;
usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/bt_split.c
738
rval = r;
usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/bt_split.c
781
return (rval);
usr/src/lib/libbe/common/be_utils.c
3359
int rval = BE_SUCCESS;
usr/src/lib/libbe/common/be_utils.c
3370
rval = BE_ERR_NOMEM;
usr/src/lib/libbe/common/be_utils.c
3378
rval = BE_ERR_EXTCMD;
usr/src/lib/libbe/common/be_utils.c
3385
rval = BE_ERR_EXTCMD;
usr/src/lib/libbe/common/be_utils.c
3393
rval = BE_ERR_EXTCMD;
usr/src/lib/libbe/common/be_utils.c
3413
rval = BE_ERR_EXTCMD;
usr/src/lib/libbe/common/be_utils.c
3425
rval = BE_ERR_EXTCMD;
usr/src/lib/libbe/common/be_utils.c
3432
rval = BE_ERR_EXTCMD;
usr/src/lib/libbe/common/be_utils.c
3439
return (rval);
usr/src/lib/libbsm/common/audit_scf.c
1098
boolean_t rval = B_TRUE;
usr/src/lib/libbsm/common/audit_scf.c
1155
rval = B_FALSE;
usr/src/lib/libbsm/common/audit_scf.c
1164
rval = B_FALSE;
usr/src/lib/libbsm/common/audit_scf.c
1172
rval = B_FALSE;
usr/src/lib/libbsm/common/audit_scf.c
1182
rval = B_FALSE;
usr/src/lib/libbsm/common/audit_scf.c
1194
rval = B_FALSE;
usr/src/lib/libbsm/common/audit_scf.c
1206
rval = B_FALSE;
usr/src/lib/libbsm/common/audit_scf.c
1227
rval = B_FALSE;
usr/src/lib/libbsm/common/audit_scf.c
1239
rval = B_FALSE;
usr/src/lib/libbsm/common/audit_scf.c
1245
return (rval);
usr/src/lib/libc/port/aio/aio.c
1520
int rval = 0;
usr/src/lib/libc/port/aio/aio.c
1544
rval = 1;
usr/src/lib/libc/port/aio/aio.c
1551
if (rval != 0)
usr/src/lib/libc/port/aio/aio.c
1553
return (rval);
usr/src/lib/libc/port/gen/isastream.c
49
int rval;
usr/src/lib/libc/port/gen/isastream.c
51
rval = ioctl(fd, I_CANPUT, 0);
usr/src/lib/libc/port/gen/isastream.c
52
if (rval == -1 && errno == EBADF)
usr/src/lib/libc/port/gen/isastream.c
56
if (rval == 0 || rval == 1)
usr/src/lib/libc/port/gen/ndbm.c
467
datum rval;
usr/src/lib/libc/port/gen/ndbm.c
472
rval = dbm_firsthash(db, 0L);
usr/src/lib/libc/port/gen/ndbm.c
474
return (rval);
usr/src/lib/libc/port/gen/tcsetattr.c
46
int rval;
usr/src/lib/libc/port/gen/tcsetattr.c
52
rval = ioctl(fildes, TCSETS, termios_p);
usr/src/lib/libc/port/gen/tcsetattr.c
57
rval = ioctl(fildes, TCSETSW, termios_p);
usr/src/lib/libc/port/gen/tcsetattr.c
62
rval = ioctl(fildes, TCSETSF, termios_p);
usr/src/lib/libc/port/gen/tcsetattr.c
67
rval = -1;
usr/src/lib/libc/port/gen/tcsetattr.c
70
return (rval);
usr/src/lib/libc/port/gen/truncate.c
74
int rval = 0;
usr/src/lib/libc/port/gen/truncate.c
84
rval = -1;
usr/src/lib/libc/port/gen/truncate.c
88
return (rval);
usr/src/lib/libc/port/locale/mblen.c
41
size_t rval;
usr/src/lib/libc/port/locale/mblen.c
47
rval = mbrtowc_l(NULL, s, n, &mbs, loc);
usr/src/lib/libc/port/locale/mblen.c
48
if (rval == (size_t)-1 || rval == (size_t)-2)
usr/src/lib/libc/port/locale/mblen.c
50
return ((int)rval);
usr/src/lib/libc/port/locale/mbtowc.c
42
size_t rval;
usr/src/lib/libc/port/locale/mbtowc.c
48
rval = mbrtowc_l(pwc, s, n, &mbs, loc);
usr/src/lib/libc/port/locale/mbtowc.c
49
switch (rval) {
usr/src/lib/libc/port/locale/mbtowc.c
56
return ((int)rval);
usr/src/lib/libc/port/locale/wctomb.c
40
size_t rval;
usr/src/lib/libc/port/locale/wctomb.c
46
if ((rval = wcrtomb_l(s, wchar, &mbs, loc)) == (size_t)-1)
usr/src/lib/libc/port/locale/wctomb.c
48
return ((int)rval);
usr/src/lib/libc/port/rt/mqueue.c
1063
rval = 0; /* success */
usr/src/lib/libc/port/rt/mqueue.c
1069
rval = -1;
usr/src/lib/libc/port/rt/mqueue.c
1071
return (rval);
usr/src/lib/libc/port/rt/mqueue.c
941
int rval = -1;
usr/src/lib/libc/port/sys/exacctsys.c
39
sysret_t rval;
usr/src/lib/libc/port/sys/exacctsys.c
42
error = __systemcall(&rval, SYS_exacctsys,
usr/src/lib/libc/port/sys/exacctsys.c
46
return ((size_t)rval.sys_rval1);
usr/src/lib/libc/port/sys/lwp_rwlock.c
101
error = __systemcall(&rval, SYS_lwp_rwlock_sys,
usr/src/lib/libc/port/sys/lwp_rwlock.c
42
sysret_t rval;
usr/src/lib/libc/port/sys/lwp_rwlock.c
45
error = __systemcall(&rval, SYS_lwp_rwlock_sys,
usr/src/lib/libc/port/sys/lwp_rwlock.c
56
sysret_t rval;
usr/src/lib/libc/port/sys/lwp_rwlock.c
59
error = __systemcall(&rval, SYS_lwp_rwlock_sys,
usr/src/lib/libc/port/sys/lwp_rwlock.c
70
sysret_t rval;
usr/src/lib/libc/port/sys/lwp_rwlock.c
73
error = __systemcall(&rval, SYS_lwp_rwlock_sys,
usr/src/lib/libc/port/sys/lwp_rwlock.c
84
sysret_t rval;
usr/src/lib/libc/port/sys/lwp_rwlock.c
87
error = __systemcall(&rval, SYS_lwp_rwlock_sys,
usr/src/lib/libc/port/sys/lwp_rwlock.c
98
sysret_t rval;
usr/src/lib/libc/port/sys/msgsys.c
102
error = __systemcall(&rval, SYS_msgsys, MSGSND, msqid,
usr/src/lib/libc/port/sys/msgsys.c
106
return ((int)rval.sys_rval1);
usr/src/lib/libc/port/sys/msgsys.c
77
sysret_t rval;
usr/src/lib/libc/port/sys/msgsys.c
85
error = __systemcall(&rval, SYS_msgsys, MSGRCV, msqid,
usr/src/lib/libc/port/sys/msgsys.c
89
return ((ssize_t)rval.sys_rval1);
usr/src/lib/libc/port/sys/msgsys.c
99
sysret_t rval;
usr/src/lib/libc/port/sys/rctlsys.c
54
sysret_t rval;
usr/src/lib/libc/port/sys/rctlsys.c
57
error = __systemcall(&rval, SYS_rctlsys, 2, NULL, list_buf, NULL,
usr/src/lib/libc/port/sys/rctlsys.c
62
return ((size_t)rval.sys_rval1);
usr/src/lib/libc/port/sys/readlink.c
34
sysret_t rval;
usr/src/lib/libc/port/sys/readlink.c
37
error = __systemcall(&rval, SYS_readlinkat, fd, path, buf, bufsize);
usr/src/lib/libc/port/sys/readlink.c
40
return ((ssize_t)rval.sys_rval1);
usr/src/lib/libc/port/sys/readlink.c
48
sysret_t rval;
usr/src/lib/libc/port/sys/readlink.c
51
error = __systemcall(&rval, SYS_readlink, path, buf, bufsize);
usr/src/lib/libc/port/sys/readlink.c
54
return ((ssize_t)rval.sys_rval1);
usr/src/lib/libc/port/sys/shmsys.c
49
sysret_t rval;
usr/src/lib/libc/port/sys/shmsys.c
52
error = __systemcall(&rval, SYS_shmsys, SHMAT, shmid, shmaddr, shmflg);
usr/src/lib/libc/port/sys/shmsys.c
55
return ((void *)rval.sys_rval1);
usr/src/lib/libc/port/sys/signal.c
162
int rval;
usr/src/lib/libc/port/sys/signal.c
175
rval = sigsuspend(&set);
usr/src/lib/libc/port/sys/signal.c
177
return (rval);
usr/src/lib/libc/port/sys/time.c
38
time_t rval;
usr/src/lib/libc/port/sys/time.c
40
rval = __time();
usr/src/lib/libc/port/sys/time.c
42
*tloc = rval;
usr/src/lib/libc/port/sys/time.c
43
return (rval);
usr/src/lib/libc/port/sys/timerfd.c
55
int rval;
usr/src/lib/libc/port/sys/timerfd.c
66
rval = ioctl(fd, TIMERFDIOC_SETTIME, &st);
usr/src/lib/libc/port/sys/timerfd.c
68
if (rval == -1 && errno == ENOTTY) {
usr/src/lib/libc/port/sys/timerfd.c
77
return (rval);
usr/src/lib/libc/port/sys/timerfd.c
83
int rval = ioctl(fd, TIMERFDIOC_GETTIME, curr_value);
usr/src/lib/libc/port/sys/timerfd.c
85
if (rval == -1 && errno == ENOTTY) {
usr/src/lib/libc/port/sys/timerfd.c
92
return (rval);
usr/src/lib/libc/port/sys/zone.c
87
sysret_t rval;
usr/src/lib/libc/port/sys/zone.c
90
error = __systemcall(&rval, SYS_zone, ZONE_GETATTR, zoneid,
usr/src/lib/libc/port/sys/zone.c
94
return ((ssize_t)rval.sys_rval1);
usr/src/lib/libc/port/threads/alloc.c
116
if (__systemcall6(&rval, SYS_mmap, CHUNKSIZE, BASE_SIZE,
usr/src/lib/libc/port/threads/alloc.c
120
base = (void *)rval.sys_rval1;
usr/src/lib/libc/port/threads/alloc.c
99
sysret_t rval;
usr/src/lib/libc/port/threads/rwlock.c
145
int rval = 0;
usr/src/lib/libc/port/threads/rwlock.c
166
rval = 1;
usr/src/lib/libc/port/threads/rwlock.c
173
return (rval);
usr/src/lib/libc/port/threads/rwlock.c
186
int rval;
usr/src/lib/libc/port/threads/rwlock.c
192
rval = ((readers & URW_WRITE_LOCKED) &&
usr/src/lib/libc/port/threads/rwlock.c
198
return (rval);
usr/src/lib/libc/port/threads/thr.c
1020
rval = NULL;
usr/src/lib/libc/port/threads/thr.c
1052
rval = ulwp->ul_rval;
usr/src/lib/libc/port/threads/thr.c
1071
*status = rval;
usr/src/lib/libc/port/threads/thr.c
993
void *rval;
usr/src/lib/libcurses/screen/idlok.c
103
if ((tmp = _MIN(idp->_wy, idp->_sy)) < rval)
usr/src/lib/libcurses/screen/idlok.c
104
rval = tmp;
usr/src/lib/libcurses/screen/idlok.c
106
return (rval);
usr/src/lib/libcurses/screen/idlok.c
98
int rval = scrli;
usr/src/lib/libdevinfo/devfsinfo.c
1388
int rval;
usr/src/lib/libdevinfo/devfsinfo.c
1390
rval = devfs_dev_to_prom_names(dev_path, prom_path, MAXPATHLEN);
usr/src/lib/libdevinfo/devfsinfo.c
1392
if (rval < 0)
usr/src/lib/libdevinfo/devfsinfo.c
1393
return (rval);
usr/src/lib/libdladm/common/libdllink.c
748
dladm_status_t rval;
usr/src/lib/libdladm/common/libdllink.c
792
del_phys_arg->rval = status;
usr/src/lib/libdladm/common/libdllink.c
808
return (arg.rval);
usr/src/lib/libdtrace/common/dt_aggregate.c
1024
int i, rval;
usr/src/lib/libdtrace/common/dt_aggregate.c
1040
if ((rval = dt_aggregate_keycmp(&lh[i], &rh[i])) != 0)
usr/src/lib/libdtrace/common/dt_aggregate.c
1041
return (rval);
usr/src/lib/libdtrace/common/dt_aggregate.c
1061
if ((rval = dt_aggregate_valcmp(&lh[i], &rh[i])) != 0)
usr/src/lib/libdtrace/common/dt_aggregate.c
1062
return (rval);
usr/src/lib/libdtrace/common/dt_aggregate.c
1073
int rval, i;
usr/src/lib/libdtrace/common/dt_aggregate.c
1091
rval = dtrace_getopt(dtp, "aggsize", &size);
usr/src/lib/libdtrace/common/dt_aggregate.c
1092
assert(rval == 0);
usr/src/lib/libdtrace/common/dt_aggregate.c
1106
rval = dtrace_getopt(dtp, "cpu", &cpu);
usr/src/lib/libdtrace/common/dt_aggregate.c
1107
assert(rval == 0 && cpu != DTRACEOPT_UNSET);
usr/src/lib/libdtrace/common/dt_aggregate.c
1128
dt_aggwalk_rval(dtrace_hdl_t *dtp, dt_ahashent_t *h, int rval)
usr/src/lib/libdtrace/common/dt_aggregate.c
1136
switch (rval) {
usr/src/lib/libdtrace/common/dt_aggregate.c
1533
int rval = -1;
usr/src/lib/libdtrace/common/dt_aggregate.c
1585
rval = 0;
usr/src/lib/libdtrace/common/dt_aggregate.c
1594
return (rval);
usr/src/lib/libdtrace/common/dt_aggregate.c
1679
int rval = -1, *map, *remap = NULL;
usr/src/lib/libdtrace/common/dt_aggregate.c
1778
rval = 0;
usr/src/lib/libdtrace/common/dt_aggregate.c
2090
if ((rval = func(data, naggvars + 1, arg)) == -1)
usr/src/lib/libdtrace/common/dt_aggregate.c
2094
rval = 0;
usr/src/lib/libdtrace/common/dt_aggregate.c
2109
return (rval);
usr/src/lib/libdtrace/common/dt_aggregate.c
437
int i, j, rval;
usr/src/lib/libdtrace/common/dt_aggregate.c
500
if ((rval = dt_aggid_lookup(dtp, id, &agg)) != 0)
usr/src/lib/libdtrace/common/dt_aggregate.c
501
return (rval);
usr/src/lib/libdtrace/common/dt_aggregate.c
702
int i, rval;
usr/src/lib/libdtrace/common/dt_aggregate.c
723
if (rval = dt_aggregate_snap_cpu(dtp, agp->dtat_cpus[i]))
usr/src/lib/libdtrace/common/dt_aggregate.c
724
return (rval);
usr/src/lib/libdtrace/common/dt_aggregate.c
775
int rval, i, j, keypos, nrecs;
usr/src/lib/libdtrace/common/dt_aggregate.c
777
if ((rval = dt_aggregate_hashcmp(lhs, rhs)) != 0)
usr/src/lib/libdtrace/common/dt_aggregate.c
778
return (rval);
usr/src/lib/libdtrace/common/dt_aggregate.c
786
uint64_t lval, rval;
usr/src/lib/libdtrace/common/dt_aggregate.c
809
rval = *((uint64_t *)rdata);
usr/src/lib/libdtrace/common/dt_aggregate.c
816
rval = *((uint32_t *)rdata);
usr/src/lib/libdtrace/common/dt_aggregate.c
823
rval = *((uint16_t *)rdata);
usr/src/lib/libdtrace/common/dt_aggregate.c
828
rval = *((uint8_t *)rdata);
usr/src/lib/libdtrace/common/dt_aggregate.c
840
rval = ((uint64_t *)rdata)[j];
usr/src/lib/libdtrace/common/dt_aggregate.c
842
if (lval < rval)
usr/src/lib/libdtrace/common/dt_aggregate.c
845
if (lval > rval)
usr/src/lib/libdtrace/common/dt_aggregate.c
854
rval = ((uint8_t *)rdata)[j];
usr/src/lib/libdtrace/common/dt_aggregate.c
856
if (lval < rval)
usr/src/lib/libdtrace/common/dt_aggregate.c
859
if (lval > rval)
usr/src/lib/libdtrace/common/dt_aggregate.c
867
if (lval < rval)
usr/src/lib/libdtrace/common/dt_aggregate.c
870
if (lval > rval)
usr/src/lib/libdtrace/common/dt_aggregate.c
888
int rval;
usr/src/lib/libdtrace/common/dt_aggregate.c
902
rval = dt_aggregate_averagecmp(laddr, raddr);
usr/src/lib/libdtrace/common/dt_aggregate.c
906
rval = dt_aggregate_stddevcmp(laddr, raddr);
usr/src/lib/libdtrace/common/dt_aggregate.c
910
rval = dt_aggregate_quantizedcmp(laddr, raddr);
usr/src/lib/libdtrace/common/dt_aggregate.c
914
rval = dt_aggregate_lquantizedcmp(laddr, raddr);
usr/src/lib/libdtrace/common/dt_aggregate.c
918
rval = dt_aggregate_llquantizedcmp(laddr, raddr);
usr/src/lib/libdtrace/common/dt_aggregate.c
925
rval = dt_aggregate_countcmp(laddr, raddr);
usr/src/lib/libdtrace/common/dt_aggregate.c
932
return (rval);
usr/src/lib/libdtrace/common/dt_aggregate.c
938
int rval;
usr/src/lib/libdtrace/common/dt_aggregate.c
940
if ((rval = dt_aggregate_valcmp(lhs, rhs)) != 0)
usr/src/lib/libdtrace/common/dt_aggregate.c
941
return (rval);
usr/src/lib/libdtrace/common/dt_aggregate.c
954
int rval;
usr/src/lib/libdtrace/common/dt_aggregate.c
956
if ((rval = dt_aggregate_keycmp(lhs, rhs)) != 0)
usr/src/lib/libdtrace/common/dt_aggregate.c
957
return (rval);
usr/src/lib/libdtrace/common/dt_aggregate.c
965
int rval;
usr/src/lib/libdtrace/common/dt_aggregate.c
967
if ((rval = dt_aggregate_varcmp(lhs, rhs)) != 0)
usr/src/lib/libdtrace/common/dt_aggregate.c
968
return (rval);
usr/src/lib/libdtrace/common/dt_aggregate.c
976
int rval;
usr/src/lib/libdtrace/common/dt_aggregate.c
978
if ((rval = dt_aggregate_valkeycmp(lhs, rhs)) != 0)
usr/src/lib/libdtrace/common/dt_aggregate.c
979
return (rval);
usr/src/lib/libdtrace/common/dt_aggregate.c
987
int rval;
usr/src/lib/libdtrace/common/dt_aggregate.c
989
if ((rval = dt_aggregate_varcmp(lhs, rhs)) != 0)
usr/src/lib/libdtrace/common/dt_aggregate.c
990
return (rval);
usr/src/lib/libdtrace/common/dt_consume.c
2055
int len, rval;
usr/src/lib/libdtrace/common/dt_consume.c
2069
if ((rval = dt_handle_setopt(dtp, &optdata)) != 0)
usr/src/lib/libdtrace/common/dt_consume.c
2070
return (rval);
usr/src/lib/libdtrace/common/dt_consume.c
2082
if ((rval = dt_handle_liberr(dtp, data, msg)) == 0)
usr/src/lib/libdtrace/common/dt_consume.c
2085
return (rval);
usr/src/lib/libdtrace/common/dt_consume.c
2097
int rval, i, n;
usr/src/lib/libdtrace/common/dt_consume.c
2126
if ((rval = dt_epid_lookup(dtp, id, &data.dtpda_edesc,
usr/src/lib/libdtrace/common/dt_consume.c
2128
return (rval);
usr/src/lib/libdtrace/common/dt_consume.c
2134
rval = dt_handle(dtp, &data);
usr/src/lib/libdtrace/common/dt_consume.c
2136
if (rval == DTRACE_CONSUME_NEXT)
usr/src/lib/libdtrace/common/dt_consume.c
2139
if (rval == DTRACE_CONSUME_ERROR)
usr/src/lib/libdtrace/common/dt_consume.c
2147
rval = (*efunc)(&data, arg);
usr/src/lib/libdtrace/common/dt_consume.c
2154
if (rval == DTRACE_CONSUME_NEXT)
usr/src/lib/libdtrace/common/dt_consume.c
2157
if (rval == DTRACE_CONSUME_ABORT)
usr/src/lib/libdtrace/common/dt_consume.c
2160
if (rval != DTRACE_CONSUME_THIS)
usr/src/lib/libdtrace/common/dt_consume.c
2277
rval = (*rfunc)(&data, rec, arg);
usr/src/lib/libdtrace/common/dt_consume.c
2279
if (rval == DTRACE_CONSUME_NEXT)
usr/src/lib/libdtrace/common/dt_consume.c
2282
if (rval == DTRACE_CONSUME_ABORT)
usr/src/lib/libdtrace/common/dt_consume.c
2285
if (rval != DTRACE_CONSUME_THIS)
usr/src/lib/libdtrace/common/dt_consume.c
2521
rval = (*rfunc)(&data, NULL, arg);
usr/src/lib/libdtrace/common/dt_consume.c
2756
int rval, i;
usr/src/lib/libdtrace/common/dt_consume.c
2773
rval = dt_consume_cpu(dtp, fp, cpu, buf, B_FALSE,
usr/src/lib/libdtrace/common/dt_consume.c
2776
return (rval);
usr/src/lib/libdtrace/common/dt_consume.c
2793
rval = dt_consume_cpu(dtp, fp, cpu, buf, B_FALSE,
usr/src/lib/libdtrace/common/dt_consume.c
2799
if (rval != 0) {
usr/src/lib/libdtrace/common/dt_consume.c
2801
return (rval);
usr/src/lib/libdtrace/common/dt_consume.c
2819
rval = dt_consume_cpu(dtp, fp, i, nbuf, B_FALSE,
usr/src/lib/libdtrace/common/dt_consume.c
2822
if (rval != 0) {
usr/src/lib/libdtrace/common/dt_consume.c
2824
return (rval);
usr/src/lib/libdtrace/common/dt_consume.c
2842
rval = dt_consume_cpu(dtp, fp, cpu, buf, B_FALSE,
usr/src/lib/libdtrace/common/dt_consume.c
2848
return (rval);
usr/src/lib/libdtrace/common/dt_consume.c
2879
int i, rval;
usr/src/lib/libdtrace/common/dt_consume.c
2916
(rval = dt_consume_begin(dtp, fp, pf, rf, arg)) != 0)
usr/src/lib/libdtrace/common/dt_consume.c
2917
return (rval);
usr/src/lib/libdtrace/common/dt_consume.c
2938
rval = dt_consume_cpu(dtp, fp, i,
usr/src/lib/libdtrace/common/dt_consume.c
2941
if (rval != 0)
usr/src/lib/libdtrace/common/dt_consume.c
2942
return (rval);
usr/src/lib/libdtrace/common/dt_consume.c
2952
rval = dt_consume_cpu(dtp, fp, dtp->dt_endedon,
usr/src/lib/libdtrace/common/dt_consume.c
2955
return (rval);
usr/src/lib/libdtrace/common/dt_consume.c
3032
if ((rval = dt_consume_cpu(dtp, fp,
usr/src/lib/libdtrace/common/dt_consume.c
3034
return (rval);
usr/src/lib/libdtrace/common/dt_consume.c
416
int rval;
usr/src/lib/libdtrace/common/dt_consume.c
472
if ((rval = dt_epid_lookup(dtp, next, &nepd, &npd)) != 0)
usr/src/lib/libdtrace/common/dt_consume.c
473
return (rval);
usr/src/lib/libdtrace/common/dt_consume.c
60
int rval = 1;
usr/src/lib/libdtrace/common/dt_consume.c
65
rval++;
usr/src/lib/libdtrace/common/dt_consume.c
69
rval++;
usr/src/lib/libdtrace/common/dt_consume.c
73
return (rval < 4 ? 4 : rval);
usr/src/lib/libdtrace/common/dt_handle.c
464
int rval;
usr/src/lib/libdtrace/common/dt_handle.c
468
rval = dt_handle_err(dtp, data);
usr/src/lib/libdtrace/common/dt_handle.c
475
if (rval == 0)
usr/src/lib/libdtrace/common/dt_map.c
114
int rval, i;
usr/src/lib/libdtrace/common/dt_map.c
159
rval = dt_set_errno(dtp, errno);
usr/src/lib/libdtrace/common/dt_map.c
161
return (rval);
usr/src/lib/libdtrace/common/dt_map.c
178
rval = dt_ioctl(dtp, DTRACEIOC_EPROBE, enabled);
usr/src/lib/libdtrace/common/dt_map.c
180
if (rval == -1) {
usr/src/lib/libdtrace/common/dt_map.c
181
rval = dt_set_errno(dtp, errno);
usr/src/lib/libdtrace/common/dt_map.c
183
return (rval);
usr/src/lib/libdtrace/common/dt_map.c
195
rval = dt_set_errno(dtp, errno);
usr/src/lib/libdtrace/common/dt_map.c
205
rval = -1;
usr/src/lib/libdtrace/common/dt_map.c
212
rval = -1;
usr/src/lib/libdtrace/common/dt_map.c
233
return (rval);
usr/src/lib/libdtrace/common/dt_map.c
240
int rval;
usr/src/lib/libdtrace/common/dt_map.c
243
if ((rval = dt_epid_add(dtp, epid)) != 0)
usr/src/lib/libdtrace/common/dt_map.c
244
return (rval);
usr/src/lib/libdtrace/common/dt_map.c
318
int rval;
usr/src/lib/libdtrace/common/dt_map.c
351
rval = dt_set_errno(dtp, errno);
usr/src/lib/libdtrace/common/dt_map.c
353
return (rval);
usr/src/lib/libdtrace/common/dt_map.c
369
rval = dt_ioctl(dtp, DTRACEIOC_AGGDESC, agg);
usr/src/lib/libdtrace/common/dt_map.c
371
if (rval == -1) {
usr/src/lib/libdtrace/common/dt_map.c
372
rval = dt_set_errno(dtp, errno);
usr/src/lib/libdtrace/common/dt_map.c
374
return (rval);
usr/src/lib/libdtrace/common/dt_map.c
402
if ((rval = dt_epid_add(dtp, epid)) != 0) {
usr/src/lib/libdtrace/common/dt_map.c
404
return (rval);
usr/src/lib/libdtrace/common/dt_map.c
418
int rval;
usr/src/lib/libdtrace/common/dt_map.c
421
if ((rval = dt_aggid_add(dtp, aggid)) != 0)
usr/src/lib/libdtrace/common/dt_map.c
422
return (rval);
usr/src/lib/libdtrace/common/dt_options.c
638
dt_optval_parse(const char *arg, dtrace_optval_t *rval)
usr/src/lib/libdtrace/common/dt_options.c
669
*rval = strtoull(arg, &end, 0) * mul;
usr/src/lib/libdtrace/common/dt_options.c
672
*rval < 0 || errno != 0)
usr/src/lib/libdtrace/common/dt_printf.c
1353
int rval;
usr/src/lib/libdtrace/common/dt_printf.c
1368
if ((rval = dt_printf(dtp, fp, tmp)) < 0)
usr/src/lib/libdtrace/common/dt_printf.c
1369
return (rval);
usr/src/lib/libdtrace/common/dt_printf.c
1569
int rval;
usr/src/lib/libdtrace/common/dt_printf.c
1571
rval = dtrace_getopt(dtp, "strsize", &size);
usr/src/lib/libdtrace/common/dt_printf.c
1572
assert(rval == 0);
usr/src/lib/libdtrace/common/dt_printf.c
1583
rval = dt_printf_format(dtp, fp, fmtdata, recp, nrecs, buf, len,
usr/src/lib/libdtrace/common/dt_printf.c
1587
if (rval == -1)
usr/src/lib/libdtrace/common/dt_printf.c
1590
return (rval);
usr/src/lib/libdtrace/common/dt_printf.c
1599
int rval = dtrace_sprintf(dtp, fp, fmtdata, recp, nrecs, buf, len);
usr/src/lib/libdtrace/common/dt_printf.c
1601
if (rval == -1)
usr/src/lib/libdtrace/common/dt_printf.c
1602
return (rval);
usr/src/lib/libdtrace/common/dt_printf.c
1614
return (rval);
usr/src/lib/libdtrace/common/dt_printf.c
1624
int rval, errval;
usr/src/lib/libdtrace/common/dt_printf.c
1628
rval = dtrace_sprintf(dtp, fp, fmtdata, recp, nrecs, buf, len);
usr/src/lib/libdtrace/common/dt_printf.c
1630
if (rval == -1 || fp == NULL)
usr/src/lib/libdtrace/common/dt_printf.c
1631
return (rval);
usr/src/lib/libdtrace/common/dt_printf.c
1650
return (rval);
usr/src/lib/libdtrace/common/dt_printf.c
1687
return (rval);
usr/src/lib/libdtrace/common/dt_printf.c
1714
return (rval);
usr/src/lib/libdtrace/common/dt_subr.c
578
int needed, rval;
usr/src/lib/libdtrace/common/dt_subr.c
605
rval = dt_set_errno(dtp, errno);
usr/src/lib/libdtrace/common/dt_subr.c
607
return (rval);
usr/src/lib/libdtrace/common/dt_subr.c
636
rval = dt_set_errno(dtp, errno);
usr/src/lib/libdtrace/common/dt_subr.c
638
return (rval);
usr/src/lib/libdtrace/common/dt_work.c
252
dtrace_workstatus_t rval;
usr/src/lib/libdtrace/common/dt_work.c
265
rval = DTRACE_WORKSTATUS_DONE;
usr/src/lib/libdtrace/common/dt_work.c
270
rval = DTRACE_WORKSTATUS_OKAY;
usr/src/lib/libdtrace/common/dt_work.c
285
assert(rval == DTRACE_WORKSTATUS_OKAY);
usr/src/lib/libdtrace/common/dt_work.c
286
return (rval);
usr/src/lib/libdtrace/common/dt_work.c
295
return (rval);
usr/src/lib/libefi/common/rdwr_efi.c
1003
int rval;
usr/src/lib/libefi/common/rdwr_efi.c
1007
rval = efi_alloc_and_read(fd, &efi_label);
usr/src/lib/libefi/common/rdwr_efi.c
1008
if (rval < 0) {
usr/src/lib/libefi/common/rdwr_efi.c
1009
return (rval);
usr/src/lib/libefi/common/rdwr_efi.c
1012
rval = efi_use_whole_disk_get_last(efi_label, &last_p, &last_lba);
usr/src/lib/libefi/common/rdwr_efi.c
1013
if (rval < 0) {
usr/src/lib/libefi/common/rdwr_efi.c
1087
rval = efi_write(fd, efi_label);
usr/src/lib/libefi/common/rdwr_efi.c
1088
if (rval < 0) {
usr/src/lib/libefi/common/rdwr_efi.c
1092
rval);
usr/src/lib/libefi/common/rdwr_efi.c
1095
return (rval);
usr/src/lib/libefi/common/rdwr_efi.c
237
int rval;
usr/src/lib/libefi/common/rdwr_efi.c
280
rval = efi_read(fd, *vtoc);
usr/src/lib/libefi/common/rdwr_efi.c
282
if ((rval == VT_EINVAL) && (*vtoc)->efi_nparts > nparts) {
usr/src/lib/libefi/common/rdwr_efi.c
294
rval = efi_read(fd, *vtoc);
usr/src/lib/libefi/common/rdwr_efi.c
298
if (rval < 0) {
usr/src/lib/libefi/common/rdwr_efi.c
301
"read of EFI table failed, rval=%d\n", rval);
usr/src/lib/libefi/common/rdwr_efi.c
307
return (rval);
usr/src/lib/libefi/common/rdwr_efi.c
373
int rval = 0;
usr/src/lib/libefi/common/rdwr_efi.c
448
if ((rval = check_label(fd, &dk_ioc)) == VT_EINVAL) {
usr/src/lib/libefi/common/rdwr_efi.c
466
rval = check_label(fd, &dk_ioc);
usr/src/lib/libefi/common/rdwr_efi.c
467
if (rval == VT_EINVAL) {
usr/src/lib/libefi/common/rdwr_efi.c
474
rval = check_label(fd, &dk_ioc);
usr/src/lib/libefi/common/rdwr_efi.c
475
if (rval == 0) {
usr/src/lib/libefi/common/rdwr_efi.c
484
if ((efi_debug) && (rval == 0))
usr/src/lib/libefi/common/rdwr_efi.c
490
if (rval == 0) {
usr/src/lib/libefi/common/rdwr_efi.c
515
rval = VT_EINVAL;
usr/src/lib/libefi/common/rdwr_efi.c
520
rval = efi_ioctl(fd, DKIOCGETEFI, &dk_ioc);
usr/src/lib/libefi/common/rdwr_efi.c
524
} else if (rval == 0) {
usr/src/lib/libefi/common/rdwr_efi.c
531
rval = efi_ioctl(fd, DKIOCGETEFI, &dk_ioc);
usr/src/lib/libefi/common/rdwr_efi.c
533
} else if (vdc_flag && rval == VT_ERROR && errno == EINVAL) {
usr/src/lib/libefi/common/rdwr_efi.c
546
rval = check_label(fd, &dk_ioc);
usr/src/lib/libefi/common/rdwr_efi.c
549
if (rval < 0) {
usr/src/lib/libefi/common/rdwr_efi.c
551
return (rval);
usr/src/lib/libfakekernel/common/ksocket.c
532
int rval;
usr/src/lib/libfakekernel/common/ksocket.c
540
rval = ioctl(KSTOSO(ks), cmd, arg);
usr/src/lib/libfakekernel/common/ksocket.c
542
*rvp = rval;
usr/src/lib/libfakekernel/common/ksocket.c
544
if (rval != 0)
usr/src/lib/libfakekernel/common/ksocket.c
545
rval = errno;
usr/src/lib/libfakekernel/common/ksocket.c
547
return (rval);
usr/src/lib/libfdisk/common/libfdisk.c
1207
int rval;
usr/src/lib/libfdisk/common/libfdisk.c
1238
rval = read_modify_write_ebr(epp, ebr_buf,
usr/src/lib/libfdisk/common/libfdisk.c
1240
if (rval) {
usr/src/lib/libfdisk/common/libfdisk.c
1253
if ((rval = fdisk_mounted_logical_drives(epp)) != 0) {
usr/src/lib/libfdisk/common/libfdisk.c
1258
return (rval);
usr/src/lib/libfdisk/common/libfdisk.c
1264
rval = read_modify_write_ebr(epp, ebr_buf, NULL,
usr/src/lib/libfdisk/common/libfdisk.c
1266
if (rval) {
usr/src/lib/libfdisk/common/libfdisk.c
1298
rval = read_modify_write_ebr(epp, ebr_buf,
usr/src/lib/libfdisk/common/libfdisk.c
1300
if (rval) {
usr/src/lib/libfdisk/common/libfdisk.c
1322
rval = FDISK_SUCCESS;
usr/src/lib/libfdisk/common/libfdisk.c
1328
rval = ioctl(epp->dev_fd, DKIOCSETEXTPART);
usr/src/lib/libfdisk/common/libfdisk.c
1335
rval = FDISK_SUCCESS;
usr/src/lib/libfdisk/common/libfdisk.c
1341
return (rval);
usr/src/lib/libfdisk/common/libfdisk.c
157
int rval = FDISK_SUCCESS;
usr/src/lib/libfdisk/common/libfdisk.c
189
rval = EINVAL;
usr/src/lib/libfdisk/common/libfdisk.c
197
rval = EINVAL;
usr/src/lib/libfdisk/common/libfdisk.c
205
rval = EINVAL;
usr/src/lib/libfdisk/common/libfdisk.c
210
if ((rval = fdisk_init_master_part_table(temp)) !=
usr/src/lib/libfdisk/common/libfdisk.c
217
if (rval != FDISK_EBADMAGIC)
usr/src/lib/libfdisk/common/libfdisk.c
226
if ((rval = fdisk_init_disk_geom(temp)) != FDISK_SUCCESS) {
usr/src/lib/libfdisk/common/libfdisk.c
237
rval = fdisk_read_extpart(*epp);
usr/src/lib/libfdisk/common/libfdisk.c
239
return (rval);
usr/src/lib/libfdisk/common/libfdisk.c
244
return (rval);
usr/src/lib/libfdisk/common/libfdisk.c
250
int rval = FDISK_SUCCESS;
usr/src/lib/libfdisk/common/libfdisk.c
258
rval = fdisk_read_extpart(epp);
usr/src/lib/libfdisk/common/libfdisk.c
260
return (rval);
usr/src/lib/libfdisk/common/libfdisk.c
279
int rval = -1;
usr/src/lib/libfdisk/common/libfdisk.c
305
rval = EIO;
usr/src/lib/libfdisk/common/libfdisk.c
309
if ((rval = read(epp->dev_fd, buf, sec_sz)) < sec_sz) {
usr/src/lib/libfdisk/common/libfdisk.c
310
rval = EIO;
usr/src/lib/libfdisk/common/libfdisk.c
317
rval = -1;
usr/src/lib/libfdisk/common/libfdisk.c
331
rval = EIO;
usr/src/lib/libfdisk/common/libfdisk.c
335
if ((rval = read(epp->dev_fd, buf, sec_sz)) < sec_sz) {
usr/src/lib/libfdisk/common/libfdisk.c
336
rval = EIO;
usr/src/lib/libfdisk/common/libfdisk.c
345
rval = 0;
usr/src/lib/libfdisk/common/libfdisk.c
354
return (rval);
usr/src/lib/libfdisk/common/libfdisk.c
364
int rval = -1;
usr/src/lib/libfdisk/common/libfdisk.c
377
rval = FDISK_SUCCESS;
usr/src/lib/libfdisk/common/libfdisk.c
380
return (rval);
usr/src/lib/libfdisk/common/libfdisk.c
740
int rval;
usr/src/lib/libfdisk/common/libfdisk.c
744
rval = fdisk_read_master_part_table(epp);
usr/src/lib/libfdisk/common/libfdisk.c
745
if (rval) {
usr/src/lib/libfdisk/common/libfdisk.c
746
return (rval);
usr/src/lib/libfdisk/common/libfdisk.c
846
int rval;
usr/src/lib/libfdisk/common/libfdisk.c
848
rval = fdisk_ext_find_first_free_sec(epp, &first_free_sec);
usr/src/lib/libfdisk/common/libfdisk.c
849
if (rval != FDISK_SUCCESS) {
usr/src/lib/libfdisk/common/libfdisk.c
850
return (rval);
usr/src/lib/libgrubmgmt/common/libgrub_fs.c
157
int rval;
usr/src/lib/libgrubmgmt/common/libgrub_fs.c
159
rval = fdisk_get_solaris_part(epp, &pno, &begs, &nums);
usr/src/lib/libgrubmgmt/common/libgrub_fs.c
163
if (rval == FDISK_SUCCESS)
usr/src/lib/libinetsvc/common/inetsvc.c
1425
scf_error_t rval = SCF_ERROR_NONE;
usr/src/lib/libinetsvc/common/inetsvc.c
1484
rval = scf_error();
usr/src/lib/libinetsvc/common/inetsvc.c
1494
return (rval);
usr/src/lib/libipadm/common/ipadm_addr.c
212
ipmgmt_aobjop_rval_t rval, *rvalp;
usr/src/lib/libipadm/common/ipadm_addr.c
2143
ipmgmt_aobjop_rval_t rval, *rvalp;
usr/src/lib/libipadm/common/ipadm_addr.c
2155
rvalp = &rval;
usr/src/lib/libipadm/common/ipadm_addr.c
2157
sizeof (rval), B_FALSE);
usr/src/lib/libipadm/common/ipadm_addr.c
2165
ipaddr->ipadm_lifnum = rval.ir_lnum;
usr/src/lib/libipadm/common/ipadm_addr.c
2168
rval.ir_aobjname,
usr/src/lib/libipadm/common/ipadm_addr.c
2186
ipmgmt_retval_t rval, *rvalp;
usr/src/lib/libipadm/common/ipadm_addr.c
220
rvalp = &rval;
usr/src/lib/libipadm/common/ipadm_addr.c
2201
rvalp = &rval;
usr/src/lib/libipadm/common/ipadm_addr.c
2203
sizeof (rval), B_FALSE);
usr/src/lib/libipadm/common/ipadm_addr.c
222
sizeof (rval), B_FALSE);
usr/src/lib/libipadm/common/ipadm_addr.c
225
(void) strlcpy(ipaddr->ipadm_ifname, rval.ir_ifname,
usr/src/lib/libipadm/common/ipadm_addr.c
227
ipaddr->ipadm_lifnum = rval.ir_lnum;
usr/src/lib/libipadm/common/ipadm_addr.c
228
ipaddr->ipadm_atype = rval.ir_atype;
usr/src/lib/libipadm/common/ipadm_addr.c
229
ipaddr->ipadm_af = rval.ir_family;
usr/src/lib/libipadm/common/ipadm_addr.c
230
ipaddr->ipadm_flags = rval.ir_flags;
usr/src/lib/libipadm/common/ipadm_addr.c
231
switch (rval.ir_atype) {
usr/src/lib/libipadm/common/ipadm_addr.c
233
ipaddr->ipadm_intfid = rval.ipmgmt_ir_intfid;
usr/src/lib/libipadm/common/ipadm_addr.c
236
if (strlcpy(ipaddr->ipadm_reqhost, rval.ipmgmt_ir_reqhost,
usr/src/lib/libipadm/common/ipadm_addr.c
322
ipmgmt_aobjop_rval_t rval, *rvalp;
usr/src/lib/libipadm/common/ipadm_addr.c
331
rvalp = &rval;
usr/src/lib/libipadm/common/ipadm_addr.c
333
sizeof (rval), B_FALSE);
usr/src/lib/libipadm/common/ipadm_addr.c
336
(void) strlcpy(addrobj->ipadm_aobjname, rval.ir_aobjname,
usr/src/lib/libipadm/common/ipadm_addr.c
338
addrobj->ipadm_atype = rval.ir_atype;
usr/src/lib/libipadm/common/ipadm_addr.c
339
addrobj->ipadm_flags = rval.ir_flags;
usr/src/lib/libipadm/common/ipadm_prop.c
1654
ipmgmt_getprop_rval_t rval, *rvalp;
usr/src/lib/libipadm/common/ipadm_prop.c
1662
rvalp = &rval;
usr/src/lib/libipadm/common/ipadm_prop.c
1664
sizeof (rval), B_FALSE);
usr/src/lib/libipadm/common/ipadm_prop.c
1667
assert(rvalp == &rval);
usr/src/lib/libipadm/common/libipadm.c
898
ipmgmt_retval_t rval, *rvalp;
usr/src/lib/libipadm/common/libipadm.c
902
rvalp = &rval;
usr/src/lib/libipadm/common/libipadm.c
904
rsize = sizeof (rval);
usr/src/lib/libipp/libipp.c
708
int rval;
usr/src/lib/libipp/libipp.c
841
&rval)) != 0) {
usr/src/lib/libipp/libipp.c
890
if (rval != 0) {
usr/src/lib/libipp/libipp.c
891
DBG1(DBG_IO, "kernel return code = %d\n", rval);
usr/src/lib/libipp/libipp.c
892
errno = rval;
usr/src/lib/libkvm/common/kvm.c
231
int fd, rval;
usr/src/lib/libkvm/common/kvm.c
259
rval = write(fd, (caddr_t)((uintptr_t)kd->kvm_core +
usr/src/lib/libkvm/common/kvm.c
261
} while (rval < dump->dump_ksyms_size && errno == EINTR);
usr/src/lib/libkvm/common/kvm.c
263
if (rval < dump->dump_ksyms_size) {
usr/src/lib/libkvm/common/kvm.c
354
ssize_t rval;
usr/src/lib/libkvm/common/kvm.c
364
rval = prw(procfd, buf, size, addr);
usr/src/lib/libkvm/common/kvm.c
366
return (rval);
usr/src/lib/libnisdb/ldap_nisdbquery.c
1006
freeValue(rval, 1);
usr/src/lib/libnisdb/ldap_nisdbquery.c
1015
freeValue(rval, 1);
usr/src/lib/libnisdb/ldap_nisdbquery.c
692
__nis_value_t *rval, *lval;
usr/src/lib/libnisdb/ldap_nisdbquery.c
712
rval = buildRvalue(&t->ruleFromLDAP[r]->rhs,
usr/src/lib/libnisdb/ldap_nisdbquery.c
714
if (rval == 0)
usr/src/lib/libnisdb/ldap_nisdbquery.c
717
litem = buildLvalue(&t->ruleFromLDAP[r]->lhs, &rval,
usr/src/lib/libnisdb/ldap_nisdbquery.c
720
freeValue(rval, 1);
usr/src/lib/libnisdb/ldap_nisdbquery.c
748
stat = storeLDAP(&litem[i], i, numItems, rval,
usr/src/lib/libnisdb/ldap_nisdbquery.c
773
if (lval == 0 || lval->numVals <= 0 || rval->numVals <= 0) {
usr/src/lib/libnisdb/ldap_nisdbquery.c
775
freeValue(rval, 1);
usr/src/lib/libnisdb/ldap_nisdbquery.c
801
if (rval->numVals > 1) {
usr/src/lib/libnisdb/ldap_nisdbquery.c
803
nrq = rval->numVals;
usr/src/lib/libnisdb/ldap_nisdbquery.c
804
else if (lval->numVals > 1 && rval->repeat)
usr/src/lib/libnisdb/ldap_nisdbquery.c
805
nrq = 1 + ((rval->numVals-1)/lval->numVals);
usr/src/lib/libnisdb/ldap_nisdbquery.c
826
freeValue(rval, 1);
usr/src/lib/libnisdb/ldap_nisdbquery.c
862
freeValue(rval, 1);
usr/src/lib/libnisdb/ldap_nisdbquery.c
895
freeValue(rval, 1);
usr/src/lib/libnisdb/ldap_nisdbquery.c
930
ir = (j < rval->numVals) ?
usr/src/lib/libnisdb/ldap_nisdbquery.c
931
j : rval->numVals - 1;
usr/src/lib/libnisdb/ldap_nisdbquery.c
944
&rval->val[ir],
usr/src/lib/libnisdb/ldap_nisdbquery.c
982
l = rval->val[ir].length;
usr/src/lib/libnisdb/ldap_nisdbquery.c
983
v = rval->val[ir].value;
usr/src/lib/libnisdb/ldap_nisdbquery.c
984
if (rval->type == vt_string &&
usr/src/lib/libnisdb/ldap_ruleval.c
476
buildLvalue(__nis_mapping_rlhs_t *rl, __nis_value_t **rval, int *numItems) {
usr/src/lib/libnisdb/ldap_ruleval.c
485
if (rval != 0) {
usr/src/lib/libnisdb/ldap_ruleval.c
486
r = *rval;
usr/src/lib/libnisdb/ldap_ruleval.c
524
if (rval != 0) {
usr/src/lib/libnisdb/ldap_ruleval.c
527
*rval = val;
usr/src/lib/libnisdb/ldap_ruleval.c
616
__nis_value_t *rval, *lval;
usr/src/lib/libnisdb/ldap_ruleval.c
645
rval = buildRvalue(&r->rhs, rnative, rv, stat);
usr/src/lib/libnisdb/ldap_ruleval.c
650
if (rval == 0)
usr/src/lib/libnisdb/ldap_ruleval.c
659
if (rval->numVals == 1 && rval->val[0].value == 0) {
usr/src/lib/libnisdb/ldap_ruleval.c
660
freeValue(rval, 1);
usr/src/lib/libnisdb/ldap_ruleval.c
665
litem = buildLvalue(&r->lhs, &rval, &numItems);
usr/src/lib/libnisdb/ldap_ruleval.c
667
freeValue(rval, 1);
usr/src/lib/libnisdb/ldap_ruleval.c
695
stat = storeLDAP(&litem[i], i, numItems, rval,
usr/src/lib/libnisdb/ldap_ruleval.c
728
freeValue(rval, 1);
usr/src/lib/libnisdb/ldap_ruleval.c
734
if (rval->numVals < 0) {
usr/src/lib/libnisdb/ldap_ruleval.c
735
(void) addAttr2RuleValue(rval->type,
usr/src/lib/libnisdb/ldap_ruleval.c
740
if (j >= rval->numVals)
usr/src/lib/libnisdb/ldap_ruleval.c
741
j = (rval->numVals > 0) ? rval->numVals-1 : 0;
usr/src/lib/libnisdb/ldap_ruleval.c
742
for (; j < rval->numVals; j++) {
usr/src/lib/libnisdb/ldap_ruleval.c
748
lastChar(&rval->val[j]) == ',' &&
usr/src/lib/libnisdb/ldap_ruleval.c
755
t->objectDN->write.base, &rval->val[j],
usr/src/lib/libnisdb/ldap_ruleval.c
758
sfree(rval->val[j].value);
usr/src/lib/libnisdb/ldap_ruleval.c
759
rval->val[j].value = nval;
usr/src/lib/libnisdb/ldap_ruleval.c
760
rval->val[j].length = nlen;
usr/src/lib/libnisdb/ldap_ruleval.c
763
(void) addAttr2RuleValue(rval->type,
usr/src/lib/libnisdb/ldap_ruleval.c
764
lval->val[i].value, rval->val[j].value,
usr/src/lib/libnisdb/ldap_ruleval.c
765
rval->val[j].length, rv);
usr/src/lib/libnisdb/ldap_ruleval.c
780
freeValue(rval, 1);
usr/src/lib/libnisdb/ldap_ruleval.h
66
__nis_value_t **rval, int *numItems);
usr/src/lib/libnisdb/yptol/dit_access_utils.c
650
__nis_value_t *rval;
usr/src/lib/libnisdb/yptol/dit_access_utils.c
683
rval = buildRvalue(&rl->rhs, mit_ldap, rv, NULL);
usr/src/lib/libnisdb/yptol/dit_access_utils.c
688
if (rval == 0) {
usr/src/lib/libnisdb/yptol/dit_access_utils.c
692
if (rval->numVals <= 0) {
usr/src/lib/libnisdb/yptol/dit_access_utils.c
694
freeValue(rval, 1);
usr/src/lib/libnisdb/yptol/dit_access_utils.c
698
litem = buildLvalue(&rl->lhs, &rval, &numItems);
usr/src/lib/libnisdb/yptol/dit_access_utils.c
701
freeValue(rval, 1);
usr/src/lib/libnisdb/yptol/dit_access_utils.c
705
if (rval->numVals > 1) {
usr/src/lib/libnisdb/yptol/dit_access_utils.c
707
nrq = rval->numVals;
usr/src/lib/libnisdb/yptol/dit_access_utils.c
708
else if (numItems > 1 && rval->repeat)
usr/src/lib/libnisdb/yptol/dit_access_utils.c
709
nrq = 1 + ((rval->numVals-1)/numItems);
usr/src/lib/libnisdb/yptol/dit_access_utils.c
740
freeValue(rval, 1);
usr/src/lib/libnisdb/yptol/dit_access_utils.c
749
if (k >= rval->numVals) {
usr/src/lib/libnisdb/yptol/dit_access_utils.c
753
value = rval->val[k].value;
usr/src/lib/libnisdb/yptol/dit_access_utils.c
754
len = rval->val[k].length;
usr/src/lib/libnisdb/yptol/dit_access_utils.c
764
freeValue(rval, 1);
usr/src/lib/libnisdb/yptol/dit_access_utils.c
770
freeValue(rval, 1);
usr/src/lib/libnisdb/yptol/dit_access_utils.c
771
rval = 0;
usr/src/lib/libnsl/dial/conn.c
544
int rval;
usr/src/lib/libnsl/dial/conn.c
548
while ((rval = read(dcf, buff, BUFSIZ)) > 0)
usr/src/lib/libnsl/dial/conn.c
551
if (rval < 0)
usr/src/lib/libnsl/dial/strsave.c
39
char *rval;
usr/src/lib/libnsl/dial/strsave.c
41
rval = malloc(strlen(str) + 1);
usr/src/lib/libnsl/dial/strsave.c
42
if (rval != 0)
usr/src/lib/libnsl/dial/strsave.c
43
(void) strcpy(rval, str);
usr/src/lib/libnsl/dial/strsave.c
44
return (rval);
usr/src/lib/libnsl/nsl/_utility.c
1069
rval = _t_do_ioctl(fd, ioctlbuf,
usr/src/lib/libnsl/nsl/_utility.c
1073
if (rval < 0) {
usr/src/lib/libnsl/nsl/_utility.c
1451
int rval, retlen;
usr/src/lib/libnsl/nsl/_utility.c
1457
rval = _t_do_ioctl(fd, ioctlbuf,
usr/src/lib/libnsl/nsl/_utility.c
1459
} while (rval < 0 && errno == EINTR);
usr/src/lib/libnsl/nsl/_utility.c
1461
if (rval < 0)
usr/src/lib/libnsl/nsl/_utility.c
1643
int retlen, rval;
usr/src/lib/libnsl/nsl/_utility.c
1654
rval = _t_do_ioctl(fd, (char *)ioctlbuf,
usr/src/lib/libnsl/nsl/_utility.c
1658
if (rval < 0)
usr/src/lib/libnsl/nsl/_utility.c
873
int retlen, rstate, sv_errno, rval;
usr/src/lib/libnsl/nsl/_utility.c
893
rval = _t_do_ioctl(fd, (char *)ioctlbuf,
usr/src/lib/libnsl/nsl/_utility.c
897
if (rval < 0) {
usr/src/lib/libnsl/rpc/rpc_td.c
44
int rval = 0;
usr/src/lib/libnsl/rpc/rpc_td.c
90
rval = t_optmgmt(fd, &t_optreq, &t_optret);
usr/src/lib/libnsl/rpc/rpc_td.c
93
return (rval);
usr/src/lib/libpctx/common/libpctx.c
875
sysret_t rval;
usr/src/lib/libpctx/common/libpctx.c
976
error = Psyscall(pctx->Pr, &rval, SYS_cpc, 5, &argd[0]);
usr/src/lib/libpctx/common/libpctx.c
982
return (rval.sys_rval1);
usr/src/lib/libproc/common/Pcontrol.c
2960
ssize_t rval;
usr/src/lib/libproc/common/Pcontrol.c
2981
if ((rval = pread(fd, Lhp, size, 0)) < 0 ||
usr/src/lib/libproc/common/Pcontrol.c
2982
rval <= sizeof (prheader_t)) {
usr/src/lib/libproc/common/Pcontrol.c
2987
if (rval < size)
usr/src/lib/libproc/common/Psyscall.c
299
sysret_t *rval, /* syscall return values */
usr/src/lib/libproc/common/Psyscall.c
318
rval->sys_rval1 = 0; /* initialize return values */
usr/src/lib/libproc/common/Psyscall.c
319
rval->sys_rval2 = 0;
usr/src/lib/libproc/common/Psyscall.c
386
rval->sys_rval1 = i; /* in case of error */
usr/src/lib/libproc/common/Psyscall.c
416
rval->sys_rval1 = 0; /* in case of error */
usr/src/lib/libproc/common/Psyscall.c
442
rval->sys_rval1 = i; /* in case of error */
usr/src/lib/libproc/common/Psyscall.c
451
rval->sys_rval1 = 0; /* in case of error */
usr/src/lib/libproc/common/Psyscall.c
476
rval->sys_rval1 = rval->sys_rval2 = 0;
usr/src/lib/libproc/common/Psyscall.c
497
rval->sys_rval1 = i; /* in case of error */
usr/src/lib/libproc/common/Psyscall.c
515
rval->sys_rval1 = -1L;
usr/src/lib/libproc/common/Psyscall.c
516
rval->sys_rval2 = -1L;
usr/src/lib/libproc/common/Psyscall.c
520
rval->sys_rval1 = P->status.pr_lwp.pr_rval1;
usr/src/lib/libproc/common/Psyscall.c
521
rval->sys_rval2 = P->status.pr_lwp.pr_rval2;
usr/src/lib/libproc/common/pr_door.c
40
sysret_t rval; /* return value from door_info() */
usr/src/lib/libproc/common/pr_door.c
89
error = Psyscall(Pr, &rval, SYS_door, 6, &argd[0]);
usr/src/lib/libproc/common/pr_exit.c
101
return (rval.sys_rval1);
usr/src/lib/libproc/common/pr_exit.c
39
sysret_t rval; /* return value from exit() */
usr/src/lib/libproc/common/pr_exit.c
56
error = Psyscall(Pr, &rval, SYS_exit, 1, &argd[0]);
usr/src/lib/libproc/common/pr_exit.c
67
return (rval.sys_rval1);
usr/src/lib/libproc/common/pr_exit.c
82
sysret_t rval; /* return value from lwp_exit() */
usr/src/lib/libproc/common/pr_exit.c
90
error = Psyscall(Pr, &rval, SYS_lwp_exit, 0, NULL);
usr/src/lib/libproc/common/pr_fcntl.c
138
error = Psyscall(Pr, &rval, SYS_fcntl, 4, &argd[0]);
usr/src/lib/libproc/common/pr_fcntl.c
144
return (rval.sys_rval1);
usr/src/lib/libproc/common/pr_fcntl.c
40
sysret_t rval; /* return value from fcntl() */
usr/src/lib/libproc/common/pr_getitimer.c
158
error = Psyscall(Pr, &rval, SYS_setitimer, 3, &argd[0]);
usr/src/lib/libproc/common/pr_getitimer.c
169
return (rval.sys_rval1);
usr/src/lib/libproc/common/pr_getitimer.c
39
sysret_t rval; /* return value from getitimer() */
usr/src/lib/libproc/common/pr_getitimer.c
75
error = Psyscall(Pr, &rval, SYS_getitimer, 2, &argd[0]);
usr/src/lib/libproc/common/pr_getitimer.c
86
return (rval.sys_rval1);
usr/src/lib/libproc/common/pr_getitimer.c
96
sysret_t rval; /* return value from setitimer() */
usr/src/lib/libproc/common/pr_getrctl.c
108
error = Psyscall(Pr, &rval, SYS_rctlsys, 6, &argd[0]);
usr/src/lib/libproc/common/pr_getrctl.c
114
return (rval.sys_rval1);
usr/src/lib/libproc/common/pr_getrctl.c
124
sysret_t rval;
usr/src/lib/libproc/common/pr_getrctl.c
190
error = Psyscall(Pr, &rval, SYS_rctlsys, 6, &argd[0]);
usr/src/lib/libproc/common/pr_getrctl.c
196
return (rval.sys_rval1);
usr/src/lib/libproc/common/pr_getrctl.c
206
sysret_t rval;
usr/src/lib/libproc/common/pr_getrctl.c
265
error = Psyscall(Pr, &rval, SYS_rctlsys, 6, &argd[0]);
usr/src/lib/libproc/common/pr_getrctl.c
271
return (rval.sys_rval1);
usr/src/lib/libproc/common/pr_getrctl.c
42
sysret_t rval;
usr/src/lib/libproc/common/pr_getrlimit.c
122
error = Psyscall(Pr, &rval, sysnum, 2, &argd[0]);
usr/src/lib/libproc/common/pr_getrlimit.c
128
return (rval.sys_rval1);
usr/src/lib/libproc/common/pr_getrlimit.c
138
sysret_t rval; /* return value from getrlimit() */
usr/src/lib/libproc/common/pr_getrlimit.c
170
error = Psyscall(Pr, &rval, sysnum, 2, &argd[0]);
usr/src/lib/libproc/common/pr_getrlimit.c
176
return (rval.sys_rval1);
usr/src/lib/libproc/common/pr_getrlimit.c
186
sysret_t rval; /* return value from setrlimit() */
usr/src/lib/libproc/common/pr_getrlimit.c
218
error = Psyscall(Pr, &rval, sysnum, 2, &argd[0]);
usr/src/lib/libproc/common/pr_getrlimit.c
224
return (rval.sys_rval1);
usr/src/lib/libproc/common/pr_getrlimit.c
42
sysret_t rval; /* return value from getrlimit() */
usr/src/lib/libproc/common/pr_getrlimit.c
74
error = Psyscall(Pr, &rval, sysnum, 2, &argd[0]);
usr/src/lib/libproc/common/pr_getrlimit.c
80
return (rval.sys_rval1);
usr/src/lib/libproc/common/pr_getrlimit.c
90
sysret_t rval; /* return value from setrlimit() */
usr/src/lib/libproc/common/pr_getsockname.c
120
sysret_t rval; /* return value from getsockopt() */
usr/src/lib/libproc/common/pr_getsockname.c
163
error = Psyscall(Pr, &rval, SYS_getsockopt, 5, &argd[0]);
usr/src/lib/libproc/common/pr_getsockname.c
178
sysret_t rval; /* return value from getpeerucred() */
usr/src/lib/libproc/common/pr_getsockname.c
214
error = Psyscall(Pr, &rval, SYS_ucredsys, 3, &argd[0]);
usr/src/lib/libproc/common/pr_getsockname.c
43
sysret_t rval; /* return value from get{sock|peer}name() */
usr/src/lib/libproc/common/pr_getsockname.c
76
error = Psyscall(Pr, &rval, syscall, 4, &argd[0]);
usr/src/lib/libproc/common/pr_ioctl.c
39
sysret_t rval; /* return value from ioctl() */
usr/src/lib/libproc/common/pr_ioctl.c
75
error = Psyscall(Pr, &rval, SYS_ioctl, 3, &argd[0]);
usr/src/lib/libproc/common/pr_ioctl.c
81
return (rval.sys_rval1);
usr/src/lib/libproc/common/pr_lseek.c
102
offset = rval.sys_rval1;
usr/src/lib/libproc/common/pr_lseek.c
104
off.half[0] = (uint32_t)rval.sys_rval1;
usr/src/lib/libproc/common/pr_lseek.c
105
off.half[1] = (uint32_t)rval.sys_rval2;
usr/src/lib/libproc/common/pr_lseek.c
121
sysret_t rval; /* return value from llseek() */
usr/src/lib/libproc/common/pr_lseek.c
169
error = Psyscall(Pr, &rval, syscall, nargs, &argd[0]);
usr/src/lib/libproc/common/pr_lseek.c
177
offset = rval.sys_rval1;
usr/src/lib/libproc/common/pr_lseek.c
179
off.half[0] = (uint32_t)rval.sys_rval1;
usr/src/lib/libproc/common/pr_lseek.c
180
off.half[1] = (uint32_t)rval.sys_rval2;
usr/src/lib/libproc/common/pr_lseek.c
46
sysret_t rval; /* return value from lseek() */
usr/src/lib/libproc/common/pr_lseek.c
94
error = Psyscall(Pr, &rval, syscall, nargs, &argd[0]);
usr/src/lib/libproc/common/pr_memcntl.c
107
error = Psyscall(Pr, &rval, SYS_memcntl, 6, &argd[0]);
usr/src/lib/libproc/common/pr_memcntl.c
42
sysret_t rval; /* return value from memcntl() */
usr/src/lib/libproc/common/pr_meminfo.c
154
error = Psyscall(Pr, &rval, SYS_meminfosys, 3, &argd[0]);
usr/src/lib/libproc/common/pr_meminfo.c
174
retval = rval.sys_rval1;
usr/src/lib/libproc/common/pr_meminfo.c
45
sysret_t rval;
usr/src/lib/libproc/common/pr_mmap.c
105
sysret_t rval; /* return value from munmap() */
usr/src/lib/libproc/common/pr_mmap.c
127
error = Psyscall(Pr, &rval, SYS_munmap, 2, &argd[0]);
usr/src/lib/libproc/common/pr_mmap.c
133
return (rval.sys_rval1);
usr/src/lib/libproc/common/pr_mmap.c
40
sysret_t rval; /* return value from mmap() */
usr/src/lib/libproc/common/pr_mmap.c
90
error = Psyscall(Pr, &rval, SYS_mmap, 6, &argd[0]);
usr/src/lib/libproc/common/pr_mmap.c
96
return ((void *)rval.sys_rval1);
usr/src/lib/libproc/common/pr_open.c
127
error = Psyscall(Pr, &rval, SYS_openat, 4, &argd[0]);
usr/src/lib/libproc/common/pr_open.c
133
return (rval.sys_rval1);
usr/src/lib/libproc/common/pr_open.c
142
sysret_t rval; /* return value from close() */
usr/src/lib/libproc/common/pr_open.c
157
error = Psyscall(Pr, &rval, SYS_close, 1, &argd[0]);
usr/src/lib/libproc/common/pr_open.c
163
return (rval.sys_rval1);
usr/src/lib/libproc/common/pr_open.c
172
sysret_t rval; /* return from access() */
usr/src/lib/libproc/common/pr_open.c
208
err = Psyscall(Pr, &rval, SYS_faccessat, 4, &argd[0]);
usr/src/lib/libproc/common/pr_open.c
215
return (rval.sys_rval1);
usr/src/lib/libproc/common/pr_open.c
40
sysret_t rval; /* return value from openat() */
usr/src/lib/libproc/common/pr_open.c
76
error = Psyscall(Pr, &rval, SYS_openat, 4, &argd[0]);
usr/src/lib/libproc/common/pr_open.c
82
return (rval.sys_rval1);
usr/src/lib/libproc/common/pr_open.c
91
sysret_t rval; /* return value from openat() */
usr/src/lib/libproc/common/pr_pbind.c
39
sysret_t rval; /* return value */
usr/src/lib/libproc/common/pr_pbind.c
82
error = Psyscall(Pr, &rval, SYS_processor_bind, 4, &argd[0]);
usr/src/lib/libproc/common/pr_pbind.c
88
return (rval.sys_rval1);
usr/src/lib/libproc/common/pr_rename.c
132
error = Psyscall(Pr, &rval, SYS_linkat, 5, &argd[0]);
usr/src/lib/libproc/common/pr_rename.c
138
return (rval.sys_rval1);
usr/src/lib/libproc/common/pr_rename.c
147
sysret_t rval;
usr/src/lib/libproc/common/pr_rename.c
176
error = Psyscall(Pr, &rval, SYS_unlinkat, 3, &argd[0]);
usr/src/lib/libproc/common/pr_rename.c
182
return (rval.sys_rval1);
usr/src/lib/libproc/common/pr_rename.c
38
sysret_t rval;
usr/src/lib/libproc/common/pr_rename.c
74
error = Psyscall(Pr, &rval, SYS_renameat, 4, &argd[0]);
usr/src/lib/libproc/common/pr_rename.c
80
return (rval.sys_rval1);
usr/src/lib/libproc/common/pr_rename.c
89
sysret_t rval;
usr/src/lib/libproc/common/pr_sigaction.c
113
error = Psyscall(Pr, &rval, SYS_sigaction, 3, &argd[0]);
usr/src/lib/libproc/common/pr_sigaction.c
123
return (rval.sys_rval1);
usr/src/lib/libproc/common/pr_sigaction.c
45
sysret_t rval; /* return value from sigaction() */
usr/src/lib/libproc/common/pr_stat.c
127
error = Psyscall(Pr, &rval, syscall, 4, &argd[0]);
usr/src/lib/libproc/common/pr_stat.c
146
sysret_t rval; /* return value from stat() */
usr/src/lib/libproc/common/pr_stat.c
202
error = Psyscall(Pr, &rval, syscall, 4, &argd[0]);
usr/src/lib/libproc/common/pr_stat.c
221
sysret_t rval; /* return value from stat() */
usr/src/lib/libproc/common/pr_stat.c
277
error = Psyscall(Pr, &rval, syscall, 4, &argd[0]);
usr/src/lib/libproc/common/pr_stat.c
296
sysret_t rval; /* return value from stat() */
usr/src/lib/libproc/common/pr_stat.c
356
error = Psyscall(Pr, &rval, syscall, 4, &argd[0]);
usr/src/lib/libproc/common/pr_stat.c
375
sysret_t rval; /* return value from stat() */
usr/src/lib/libproc/common/pr_stat.c
435
error = Psyscall(Pr, &rval, syscall, 4, &argd[0]);
usr/src/lib/libproc/common/pr_stat.c
454
sysret_t rval; /* return value from stat() */
usr/src/lib/libproc/common/pr_stat.c
514
error = Psyscall(Pr, &rval, syscall, 4, &argd[0]);
usr/src/lib/libproc/common/pr_stat.c
71
sysret_t rval; /* return value from stat() */
usr/src/lib/libproc/common/pr_statvfs.c
118
sysret_t rval; /* return value from fstatvfs() */
usr/src/lib/libproc/common/pr_statvfs.c
152
error = Psyscall(Pr, &rval, SYS_fstatvfs, 2, &argd[0]);
usr/src/lib/libproc/common/pr_statvfs.c
65
sysret_t rval; /* return value from statvfs() */
usr/src/lib/libproc/common/pr_statvfs.c
99
error = Psyscall(Pr, &rval, SYS_statvfs, 2, &argd[0]);
usr/src/lib/libproc/common/pr_tasksys.c
105
sysret_t rval;
usr/src/lib/libproc/common/pr_tasksys.c
120
error = Psyscall(Pr, &rval, SYS_tasksys, 1, &argd[0]);
usr/src/lib/libproc/common/pr_tasksys.c
126
return (rval.sys_rval1);
usr/src/lib/libproc/common/pr_tasksys.c
132
sysret_t rval;
usr/src/lib/libproc/common/pr_tasksys.c
161
error = Psyscall(Pr, &rval, SYS_tasksys, 3, &argd[0]);
usr/src/lib/libproc/common/pr_tasksys.c
167
return (rval.sys_rval1);
usr/src/lib/libproc/common/pr_tasksys.c
44
sysret_t rval;
usr/src/lib/libproc/common/pr_tasksys.c
66
error = Psyscall(Pr, &rval, SYS_zone, 2, &argd[0]);
usr/src/lib/libproc/common/pr_tasksys.c
72
return (rval.sys_rval1);
usr/src/lib/libproc/common/pr_tasksys.c
78
sysret_t rval;
usr/src/lib/libproc/common/pr_tasksys.c
93
error = Psyscall(Pr, &rval, SYS_tasksys, 1, &argd[0]);
usr/src/lib/libproc/common/pr_tasksys.c
99
return (rval.sys_rval1);
usr/src/lib/libproc/common/pr_waitid.c
46
sysret_t rval; /* return value from waitid() */
usr/src/lib/libproc/common/pr_waitid.c
95
error = Psyscall(Pr, &rval, SYS_waitid, 4, &argd[0]);
usr/src/lib/libprtdiag_psr/sparc/opl/common/opl_picl.c
574
int rval;
usr/src/lib/libprtdiag_psr/sparc/opl/common/opl_picl.c
585
rval = ioctl(fd, PCITOOL_DEVICE_GET_REG, &prg);
usr/src/lib/libprtdiag_psr/sparc/opl/common/opl_picl.c
586
if (rval != 0) {
usr/src/lib/libprtdiag_psr/sparc/opl/common/opl_picl.c
587
log_printf("DEV_GET failed %d %s\n", rval, strerror(errno));
usr/src/lib/libprtdiag_psr/sparc/opl/common/opl_picl.c
590
*ret = rval;
usr/src/lib/libprtdiag_psr/sparc/opl/common/opl_picl.c
597
int rval;
usr/src/lib/libprtdiag_psr/sparc/opl/common/opl_picl.c
608
rval = ioctl(fd, PCITOOL_DEVICE_GET_REG, &prg);
usr/src/lib/libprtdiag_psr/sparc/opl/common/opl_picl.c
609
if (rval != 0) {
usr/src/lib/libprtdiag_psr/sparc/opl/common/opl_picl.c
610
log_printf("DEV_GET failed %d %s\n", rval, strerror(errno));
usr/src/lib/libprtdiag_psr/sparc/opl/common/opl_picl.c
613
*ret = rval;
usr/src/lib/libprtdiag_psr/sparc/opl/common/opl_picl.c
620
int rval;
usr/src/lib/libprtdiag_psr/sparc/opl/common/opl_picl.c
631
rval = ioctl(fd, PCITOOL_DEVICE_GET_REG, &prg);
usr/src/lib/libprtdiag_psr/sparc/opl/common/opl_picl.c
632
if (rval != 0) {
usr/src/lib/libprtdiag_psr/sparc/opl/common/opl_picl.c
633
log_printf("DEV_GET failed %d %s\n", rval, strerror(errno));
usr/src/lib/libprtdiag_psr/sparc/opl/common/opl_picl.c
636
*ret = rval;
usr/src/lib/libresolv2/common/irs/gen_ho.c
124
struct hostent *rval;
usr/src/lib/libresolv2/common/irs/gen_ho.c
136
rval = (*ho->byname)(ho, name);
usr/src/lib/libresolv2/common/irs/gen_ho.c
137
if (rval != NULL)
usr/src/lib/libresolv2/common/irs/gen_ho.c
138
return (rval);
usr/src/lib/libresolv2/common/irs/gen_ho.c
167
struct hostent *rval;
usr/src/lib/libresolv2/common/irs/gen_ho.c
179
rval = (*ho->byname2)(ho, name, af);
usr/src/lib/libresolv2/common/irs/gen_ho.c
180
if (rval != NULL)
usr/src/lib/libresolv2/common/irs/gen_ho.c
181
return (rval);
usr/src/lib/libresolv2/common/irs/gen_ho.c
206
struct hostent *rval;
usr/src/lib/libresolv2/common/irs/gen_ho.c
219
rval = (*ho->byaddr)(ho, addr, len, af);
usr/src/lib/libresolv2/common/irs/gen_ho.c
220
if (rval != NULL)
usr/src/lib/libresolv2/common/irs/gen_ho.c
221
return (rval);
usr/src/lib/libresolv2/common/irs/gen_ho.c
246
struct hostent *rval;
usr/src/lib/libresolv2/common/irs/gen_ho.c
251
rval = (*ho->next)(ho);
usr/src/lib/libresolv2/common/irs/gen_ho.c
252
if (rval)
usr/src/lib/libresolv2/common/irs/gen_ho.c
253
return (rval);
usr/src/lib/libresolv2/common/irs/gen_ho.c
335
struct addrinfo *rval = NULL;
usr/src/lib/libresolv2/common/irs/gen_ho.c
349
rval = (*ho->addrinfo)(ho, name, pai);
usr/src/lib/libresolv2/common/irs/gen_ho.c
350
if (rval != NULL)
usr/src/lib/libresolv2/common/irs/gen_ho.c
351
return (rval);
usr/src/lib/libresolv2/common/irs/gen_ng.c
131
int rval;
usr/src/lib/libresolv2/common/irs/gen_ng.c
133
rval = 0;
usr/src/lib/libresolv2/common/irs/gen_ng.c
136
rval = (*ng->test)(ng, name, user, host, domain);
usr/src/lib/libresolv2/common/irs/gen_ng.c
137
if (rval || !(rule->flags & IRS_CONTINUE))
usr/src/lib/libresolv2/common/irs/gen_ng.c
140
return (rval);
usr/src/lib/libresolv2/common/irs/gen_nw.c
115
struct nwent *rval;
usr/src/lib/libresolv2/common/irs/gen_nw.c
123
rval = (*nw->next)(nw);
usr/src/lib/libresolv2/common/irs/gen_nw.c
124
if (rval)
usr/src/lib/libresolv2/common/irs/gen_nw.c
125
return (rval);
usr/src/lib/libresolv2/common/irs/gen_nw.c
141
struct nwent *rval;
usr/src/lib/libresolv2/common/irs/gen_nw.c
150
rval = (*nw->byname)(nw, name, type);
usr/src/lib/libresolv2/common/irs/gen_nw.c
151
if (rval != NULL)
usr/src/lib/libresolv2/common/irs/gen_nw.c
152
return (rval);
usr/src/lib/libresolv2/common/irs/gen_nw.c
164
struct nwent *rval;
usr/src/lib/libresolv2/common/irs/gen_nw.c
173
rval = (*nw->byaddr)(nw, net, length, type);
usr/src/lib/libresolv2/common/irs/gen_nw.c
174
if (rval != NULL)
usr/src/lib/libresolv2/common/irs/gen_nw.c
175
return (rval);
usr/src/lib/libresolv2/common/irs/gen_pr.c
107
struct protoent *rval;
usr/src/lib/libresolv2/common/irs/gen_pr.c
112
rval = (*pr->next)(pr);
usr/src/lib/libresolv2/common/irs/gen_pr.c
113
if (rval)
usr/src/lib/libresolv2/common/irs/gen_pr.c
114
return (rval);
usr/src/lib/libresolv2/common/irs/gen_pr.c
130
struct protoent *rval;
usr/src/lib/libresolv2/common/irs/gen_pr.c
133
rval = NULL;
usr/src/lib/libresolv2/common/irs/gen_pr.c
136
rval = (*pr->byname)(pr, name);
usr/src/lib/libresolv2/common/irs/gen_pr.c
137
if (rval || !(rule->flags & IRS_CONTINUE))
usr/src/lib/libresolv2/common/irs/gen_pr.c
140
return (rval);
usr/src/lib/libresolv2/common/irs/gen_pr.c
147
struct protoent *rval;
usr/src/lib/libresolv2/common/irs/gen_pr.c
150
rval = NULL;
usr/src/lib/libresolv2/common/irs/gen_pr.c
153
rval = (*pr->bynumber)(pr, proto);
usr/src/lib/libresolv2/common/irs/gen_pr.c
154
if (rval || !(rule->flags & IRS_CONTINUE))
usr/src/lib/libresolv2/common/irs/gen_pr.c
157
return (rval);
usr/src/lib/libresolv2/common/irs/gen_sv.c
108
struct servent *rval;
usr/src/lib/libresolv2/common/irs/gen_sv.c
113
rval = (*sv->next)(sv);
usr/src/lib/libresolv2/common/irs/gen_sv.c
114
if (rval)
usr/src/lib/libresolv2/common/irs/gen_sv.c
115
return (rval);
usr/src/lib/libresolv2/common/irs/gen_sv.c
131
struct servent *rval;
usr/src/lib/libresolv2/common/irs/gen_sv.c
134
rval = NULL;
usr/src/lib/libresolv2/common/irs/gen_sv.c
137
rval = (*sv->byname)(sv, name, proto);
usr/src/lib/libresolv2/common/irs/gen_sv.c
138
if (rval || !(rule->flags & IRS_CONTINUE))
usr/src/lib/libresolv2/common/irs/gen_sv.c
141
return (rval);
usr/src/lib/libresolv2/common/irs/gen_sv.c
148
struct servent *rval;
usr/src/lib/libresolv2/common/irs/gen_sv.c
151
rval = NULL;
usr/src/lib/libresolv2/common/irs/gen_sv.c
154
rval = (*sv->byport)(sv, port, proto);
usr/src/lib/libresolv2/common/irs/gen_sv.c
155
if (rval || !(rule->flags & IRS_CONTINUE))
usr/src/lib/libresolv2/common/irs/gen_sv.c
158
return (rval);
usr/src/lib/libresolv2/common/irs/irp_ng.c
161
int rval = 0;
usr/src/lib/libresolv2/common/irs/irp_ng.c
179
rval = 1;
usr/src/lib/libresolv2/common/irs/irp_ng.c
187
return (rval);
usr/src/lib/libresolv2/common/irs/irp_ng.c
204
int rval = 0;
usr/src/lib/libresolv2/common/irs/irp_ng.c
219
rval = 1;
usr/src/lib/libresolv2/common/irs/irp_ng.c
225
return (rval);
usr/src/lib/libsasl/lib/common.c
1525
BOOL rval;
usr/src/lib/libsasl/lib/common.c
1529
rval = GetUserName(sender, &i);
usr/src/lib/libsasl/lib/common.c
1530
if ( rval) { /* got a userid */
usr/src/lib/libsendfile/common/sendfile.c
101
rval.sys_rval1 = *xferred;
usr/src/lib/libsendfile/common/sendfile.c
106
return ((ssize_t)rval.sys_rval1);
usr/src/lib/libsendfile/common/sendfile.c
112
sysret_t rval;
usr/src/lib/libsendfile/common/sendfile.c
121
error = __systemcall(&rval, SYS_sendfilev, SENDFILEV64, sock, &sfv,
usr/src/lib/libsendfile/common/sendfile.c
126
rval.sys_rval1 = xferred;
usr/src/lib/libsendfile/common/sendfile.c
131
return ((ssize_t)rval.sys_rval1);
usr/src/lib/libsendfile/common/sendfile.c
45
sysret_t rval;
usr/src/lib/libsendfile/common/sendfile.c
48
error = __systemcall(&rval, SYS_sendfilev, SENDFILEV, sock, vec,
usr/src/lib/libsendfile/common/sendfile.c
52
rval.sys_rval1 = *xferred;
usr/src/lib/libsendfile/common/sendfile.c
57
return ((ssize_t)rval.sys_rval1);
usr/src/lib/libsendfile/common/sendfile.c
63
sysret_t rval;
usr/src/lib/libsendfile/common/sendfile.c
72
error = __systemcall(&rval, SYS_sendfilev, SENDFILEV, sock, &sfv,
usr/src/lib/libsendfile/common/sendfile.c
77
rval.sys_rval1 = xferred;
usr/src/lib/libsendfile/common/sendfile.c
82
return ((ssize_t)rval.sys_rval1);
usr/src/lib/libsendfile/common/sendfile.c
94
sysret_t rval;
usr/src/lib/libsendfile/common/sendfile.c
97
error = __systemcall(&rval, SYS_sendfilev, SENDFILEV64, sock, vec,
usr/src/lib/libshare/nfs/libshare_nfs.c
2725
uint32_t rval = 0; /* Impossible value */
usr/src/lib/libshare/nfs/libshare_nfs.c
2739
rval = nfs_convert_version_str(pvalue);
usr/src/lib/libshare/nfs/libshare_nfs.c
2741
rval = strtonumx(pvalue, po->minval, po->maxval,
usr/src/lib/libshare/nfs/libshare_nfs.c
2747
if (rval == 0) {
usr/src/lib/libshare/nfs/libshare_nfs.c
2749
rval = nfs_convert_version_str(
usr/src/lib/libshare/nfs/libshare_nfs.c
2752
rval = proto_options[index].defvalue.intval;
usr/src/lib/libshare/nfs/libshare_nfs.c
2754
return (rval);
usr/src/lib/libsysevent/libevchannel.c
324
int rval = 0;
usr/src/lib/libsysevent/libevchannel.c
335
rval = EINVAL;
usr/src/lib/libsysevent/libevchannel.c
337
rval = subp->evsub_func((sysevent_t *)(void *)args,
usr/src/lib/libsysevent/libevchannel.c
344
alen = sizeof (rval);
usr/src/lib/libsysevent/libevchannel.c
345
bcopy(&rval, args, alen);
usr/src/lib/libtsol/common/btos.c
150
int rval;
usr/src/lib/libtsol/common/btos.c
165
if ((rval = __call_labeld(&callp, &bufsize, &datasize)) == SUCCESS) {
usr/src/lib/libtsol/common/btos.c
172
rval = return_string(string, str_len, slret.slabel);
usr/src/lib/libtsol/common/btos.c
176
return (rval);
usr/src/lib/libtsol/common/btos.c
177
} else if (rval == NOSERVER) {
usr/src/lib/libtsol/common/btos.c
245
int rval;
usr/src/lib/libtsol/common/btos.c
259
if ((rval = __call_labeld(&callp, &bufsize, &datasize)) == SUCCESS) {
usr/src/lib/libtsol/common/btos.c
266
rval = return_string(string, str_len, clrret.cslabel);
usr/src/lib/libtsol/common/btos.c
271
return (rval);
usr/src/lib/libtsol/common/btos.c
272
} else if (rval == NOSERVER) {
usr/src/lib/libtsol/common/misc.c
243
int rval;
usr/src/lib/libtsol/common/misc.c
247
if ((rval = __call_labeld(&callp, &bufsize, &datasize)) != SUCCESS) {
usr/src/lib/libtsol/common/misc.c
253
return (rval);
usr/src/lib/libtsol/common/private.c
241
int rval;
usr/src/lib/libtsol/common/private.c
250
if ((rval = __call_labeld(&callp, &bufsize, &datasize)) == NOSERVER) {
usr/src/lib/libtsol/common/private.c
255
} else if (rval != SUCCESS) {
usr/src/lib/libtsol/common/private.c
331
int rval;
usr/src/lib/libtsol/common/private.c
342
if ((rval = __call_labeld(&callp, &bufsize, &datasize)) == NOSERVER) {
usr/src/lib/libtsol/common/private.c
347
} else if (rval != SUCCESS) {
usr/src/lib/libtsol/common/private.c
418
int rval;
usr/src/lib/libtsol/common/private.c
427
if ((rval = __call_labeld(&callp, &bufsize, &datasize)) == NOSERVER) {
usr/src/lib/libtsol/common/private.c
432
} else if (rval != SUCCESS) {
usr/src/lib/libtsol/common/private.c
511
int rval;
usr/src/lib/libtsol/common/private.c
522
if ((rval = __call_labeld(&callp, &bufsize, &datasize)) == NOSERVER) {
usr/src/lib/libtsol/common/private.c
527
} else if (rval != SUCCESS) {
usr/src/lib/libtsol/common/private.c
578
int rval;
usr/src/lib/libtsol/common/private.c
582
if ((rval = __call_labeld(&callp, &bufsize, &datasize)) != SUCCESS) {
usr/src/lib/libtsol/common/private.c
617
return (rval);
usr/src/lib/libtsol/common/private.c
644
int rval;
usr/src/lib/libtsol/common/private.c
648
if ((rval = __call_labeld(&callp, &bufsize, &datasize)) != SUCCESS) {
usr/src/lib/libtsol/common/private.c
658
return (rval);
usr/src/lib/libtsol/common/stob.c
106
int rval;
usr/src/lib/libtsol/common/stob.c
141
if ((rval = __call_labeld(&callp, &bufsize, &datasize)) == SUCCESS) {
usr/src/lib/libtsol/common/stob.c
162
} else if (rval == NOSERVER) {
usr/src/lib/libtsol/common/stob.c
233
int rval;
usr/src/lib/libtsol/common/stob.c
259
if ((rval = __call_labeld(&callp, &bufsize, &datasize)) == SUCCESS) {
usr/src/lib/libtsol/common/stob.c
280
} else if (rval == NOSERVER) {
usr/src/lib/libvolmgt/common/volmgt_on_private.c
569
int rval; /* proc's return value */
usr/src/lib/libvolmgt/common/volmgt_on_private.c
644
if (waitpid(pid, &rval, 0) == pid) {
usr/src/lib/libvolmgt/common/volmgt_on_private.c
645
if (WIFEXITED(rval)) {
usr/src/lib/libvolmgt/common/volmgt_on_private.c
646
if (WEXITSTATUS(rval) == 0) {
usr/src/lib/libvolmgt/common/volprivate.c
111
char *rval;
usr/src/lib/libvolmgt/common/volprivate.c
122
rval = getfullrawname(n);
usr/src/lib/libvolmgt/common/volprivate.c
123
if ((rval != NULL) && (*rval != NULLC)) {
usr/src/lib/libvolmgt/common/volprivate.c
125
res = rval;
usr/src/lib/libvolmgt/common/volprivate.c
130
if (rval != NULL) {
usr/src/lib/libvolmgt/common/volprivate.c
132
free(rval);
usr/src/lib/libvolmgt/common/volprivate.c
58
char *rval;
usr/src/lib/libvolmgt/common/volprivate.c
67
rval = getfullblkname(n);
usr/src/lib/libvolmgt/common/volprivate.c
68
if ((rval != NULL) && (*rval != NULLC)) {
usr/src/lib/libvolmgt/common/volprivate.c
70
res = rval;
usr/src/lib/libvolmgt/common/volprivate.c
75
if (rval != NULL) {
usr/src/lib/libvolmgt/common/volprivate.c
77
free(rval);
usr/src/lib/libxcurses2/src/libc/xcurses/setup.c
608
int rval;
usr/src/lib/libxcurses2/src/libc/xcurses/setup.c
622
rval = tcsetattr(fd, TCSADRAIN, tp) == 0 ? OK : ERR;
usr/src/lib/libxcurses2/src/libc/xcurses/setup.c
624
return (rval);
usr/src/lib/libxcurses2/src/libc/xcurses/wgetch.c
160
struct termios rval;
usr/src/lib/libxcurses2/src/libc/xcurses/wgetch.c
163
rval = newstuff = *PTERMIOS(_actual);
usr/src/lib/libxcurses2/src/libc/xcurses/wgetch.c
168
return (rval);
usr/src/lib/libxcurses2/src/libc/xcurses/wgetch.c
172
return (rval);
usr/src/lib/libxcurses2/src/libc/xcurses/wgetch.c
180
return (rval);
usr/src/lib/libzonecfg/common/libzonecfg.c
6645
zonecfg_get_aliased_rctl(zone_dochandle_t handle, char *name, uint64_t *rval)
usr/src/lib/libzonecfg/common/libzonecfg.c
6715
*rval = strtoull(rctl.zone_rctlval_limit, NULL, 10);
usr/src/lib/libzonecfg/common/libzonecfg.c
7831
result = rvalp->rval == 0 ? 0 : -1;
usr/src/lib/smbsrv/libsmb/common/smb_ht.c
178
size_t rval;
usr/src/lib/smbsrv/libsmb/common/smb_ht.c
194
rval = (hash_ndx * HASH_MESH_VALUE) & handle->ht_table_mask;
usr/src/lib/smbsrv/libsmb/common/smb_ht.c
195
return (rval);
usr/src/lib/storage/liba5k/common/mon.c
2377
int fd, rval;
usr/src/lib/storage/liba5k/common/mon.c
2400
if ((rval = l_get_envsen_page(fd, local_buf_ptr,
usr/src/lib/storage/liba5k/common/mon.c
2403
return (rval);
usr/src/lib/storage/liba5k/common/mon.c
2449
if ((rval = l_get_envsen_page(fd, local_buf_ptr,
usr/src/lib/storage/liba5k/common/mon.c
2452
return (rval);
usr/src/lib/storage/libg_fc/common/map.c
5854
int rval;
usr/src/lib/storage/libg_fc/common/map.c
5886
rval = di_prop_lookup_strings(DDI_DEV_T_ANY, parentnode,
usr/src/lib/storage/libg_fc/common/map.c
5889
if ((rval <= 0) ||
usr/src/lib/sun_fc/common/Handle.cc
389
int rval = hba->doForceLip();
usr/src/lib/sun_fc/common/Handle.cc
391
return (rval);
usr/src/lib/sun_fc/common/Sun_fcDoForceLip.cc
42
int *rval) {
usr/src/lib/sun_fc/common/Sun_fcDoForceLip.cc
47
*rval = myHandle->doForceLip();
usr/src/lib/sun_sas/common/Sun_sasRefreshAdapterConfiguration.c
40
int *propData, rval;
usr/src/lib/sun_sas/common/Sun_sasRefreshAdapterConfiguration.c
49
rval = di_prop_lookup_ints(DDI_DEV_T_ANY, node,
usr/src/lib/sun_sas/common/Sun_sasRefreshAdapterConfiguration.c
51
if (rval < 0) {
usr/src/lib/sun_sas/common/Sun_sasRefreshInformation.c
37
int *propData, rval;
usr/src/lib/sun_sas/common/Sun_sasRefreshInformation.c
46
rval = di_prop_lookup_ints(DDI_DEV_T_ANY, node,
usr/src/lib/sun_sas/common/Sun_sasRefreshInformation.c
48
if (rval < 0) {
usr/src/lib/sun_sas/common/devtree_device_disco.c
237
int portfound, rval, size;
usr/src/lib/sun_sas/common/devtree_device_disco.c
435
rval = di_prop_lookup_strings(DDI_DEV_T_ANY, node,
usr/src/lib/sun_sas/common/devtree_device_disco.c
437
if (rval < 0) {
usr/src/lib/sun_sas/common/devtree_hba_disco.c
103
int rval;
usr/src/lib/sun_sas/common/devtree_hba_disco.c
192
rval = di_prop_lookup_strings(DDI_DEV_T_ANY, branchNode,
usr/src/lib/sun_sas/common/devtree_hba_disco.c
194
if (rval < 0) {
usr/src/lib/sun_sas/common/devtree_hba_disco.c
220
rval = di_prop_lookup_strings(DDI_DEV_T_ANY, branchNode,
usr/src/lib/sun_sas/common/devtree_hba_disco.c
222
if (rval < 0) {
usr/src/lib/sun_sas/common/devtree_hba_disco.c
252
rval = di_prop_lookup_ints(DDI_DEV_T_ANY, branchNode,
usr/src/lib/sun_sas/common/devtree_hba_disco.c
254
if (rval < 0) {
usr/src/lib/sun_sas/common/devtree_hba_disco.c
604
int *propData, rval;
usr/src/lib/sun_sas/common/devtree_hba_disco.c
613
rval = di_prop_lookup_ints(DDI_DEV_T_ANY, node,
usr/src/lib/sun_sas/common/devtree_hba_disco.c
615
if (rval >= 0) {
usr/src/lib/sun_sas/common/devtree_phy_disco.c
105
rval = nvlist_unpack((char *)propByteData, count, &nvl, 0);
usr/src/lib/sun_sas/common/devtree_phy_disco.c
106
if (rval != 0) {
usr/src/lib/sun_sas/common/devtree_phy_disco.c
118
rval = nvlist_lookup_nvlist_array(nvl, "phy-info-nvl",
usr/src/lib/sun_sas/common/devtree_phy_disco.c
120
if (rval != 0) {
usr/src/lib/sun_sas/common/devtree_phy_disco.c
78
int rval, count, i;
usr/src/psm/stand/cpr/sparcv9/sun4u/bitmap.c
64
int rel, rval = 0;
usr/src/psm/stand/cpr/sparcv9/sun4u/bitmap.c
75
rval = isset(bitmap, rel);
usr/src/psm/stand/cpr/sparcv9/sun4u/bitmap.c
77
rval = isclr(bitmap, rel);
usr/src/psm/stand/cpr/sparcv9/sun4u/bitmap.c
82
return (rval);
usr/src/test/os-tests/tests/clock_gettime.c
152
boolean_t rval = clock_test(&clock_tests[i]);
usr/src/test/os-tests/tests/clock_gettime.c
153
if (!rval) {
usr/src/test/os-tests/tests/clock_gettime.c
158
rval ? "PASSED" : "FAILED", clock_tests[i].cgt_name,
usr/src/test/util-tests/tests/smbios/smbios_test_memdevice.c
204
uint64_t rval;
usr/src/test/util-tests/tests/smbios/smbios_test_memdevice.c
211
arc4random_buf(&rval, sizeof (rval));
usr/src/test/util-tests/tests/smbios/smbios_test_memdevice.c
212
mem.smbmd_extspeed = rval;
usr/src/test/util-tests/tests/smbios/smbios_test_memdevice.c
213
mem.smbmd_extclkspeed = rval;
usr/src/test/util-tests/tests/smbios/smbios_test_memdevice.c
227
if (mem.smbmd_extspeed != rval || mem.smbmd_extclkspeed != rval) {
usr/src/test/zfs-tests/cmd/btree_test/btree_test.c
427
int rval = 0;
usr/src/test/zfs-tests/cmd/btree_test/btree_test.c
433
rval = insert_duplicate(bt);
usr/src/test/zfs-tests/cmd/btree_test/btree_test.c
435
rval = remove_missing(bt);
usr/src/test/zfs-tests/cmd/btree_test/btree_test.c
442
(void) fprintf(stderr, "Test: %s returned %d.\n", test_name, rval);
usr/src/test/zfs-tests/cmd/memory_balloon/memory_balloon.c
37
fail(char *err, int rval)
usr/src/test/zfs-tests/cmd/memory_balloon/memory_balloon.c
40
exit(rval);
usr/src/test/zfs-tests/cmd/mkbusy/mkbusy.c
40
fail(char *err, int rval)
usr/src/test/zfs-tests/cmd/mkbusy/mkbusy.c
43
exit(rval);
usr/src/uts/common/brand/sn1/sn1_brand.c
154
sn1_brandsys(int cmd, int64_t *rval, uintptr_t arg1, uintptr_t arg2,
usr/src/uts/common/brand/sn1/sn1_brand.c
159
*rval = 0;
usr/src/uts/common/brand/solaris10/s10_brand.c
255
s10_brandsys(int cmd, int64_t *rval, uintptr_t arg1, uintptr_t arg2,
usr/src/uts/common/brand/solaris10/s10_brand.c
261
*rval = 0;
usr/src/uts/common/brand/solaris10/s10_brand.c
302
*rval = IS_XATTRDIR(dir_filep->f_vnode);
usr/src/uts/common/c2/audit.c
1572
add_return_token(caddr_t *ad, unsigned int scid, int err, int rval)
usr/src/uts/common/c2/audit.c
1592
au_write(ad, au_to_return64(err, rval));
usr/src/uts/common/c2/audit.c
1594
au_write(ad, au_to_return32(err, rval));
usr/src/uts/common/c2/audit.c
66
static void add_return_token(caddr_t *, unsigned int scid, int err, int rval);
usr/src/uts/common/c2/audit.h
508
int auditsys(struct auditcalls *, union rval *); /* fake stub */
usr/src/uts/common/c2/audit.h
545
void audit_finish(unsigned int, unsigned int, int, union rval *);
usr/src/uts/common/c2/audit_event.c
1670
auf_mknod(struct t_audit_data *tad, int error, rval_t *rval)
usr/src/uts/common/c2/audit_event.c
1722
auf_mknodat(struct t_audit_data *tad, int error, rval_t *rval)
usr/src/uts/common/c2/audit_event.c
1896
auf_msgsys(struct t_audit_data *tad, int error, rval_t *rval)
usr/src/uts/common/c2/audit_event.c
1917
id = rval->r_val1;
usr/src/uts/common/c2/audit_event.c
1919
id = rval->r_val1;
usr/src/uts/common/c2/audit_event.c
1921
id = (int)rval->r_vals;
usr/src/uts/common/c2/audit_event.c
1965
auf_semsys(struct t_audit_data *tad, int error, rval_t *rval)
usr/src/uts/common/c2/audit_event.c
1986
id = rval->r_val1;
usr/src/uts/common/c2/audit_event.c
1988
id = rval->r_val1;
usr/src/uts/common/c2/audit_event.c
1990
id = (int)rval->r_vals;
usr/src/uts/common/c2/audit_event.c
2324
auf_shmsys(struct t_audit_data *tad, int error, rval_t *rval)
usr/src/uts/common/c2/audit_event.c
2345
id = rval->r_val1;
usr/src/uts/common/c2/audit_event.c
2347
id = rval->r_val1;
usr/src/uts/common/c2/audit_event.c
2349
id = (int)rval->r_vals;
usr/src/uts/common/c2/audit_event.c
3637
rval_t *rval)
usr/src/uts/common/c2/audit_event.c
3663
fd = rval->r_val1;
usr/src/uts/common/c2/audit_event.c
3666
fd = (int)rval->r_vals;
usr/src/uts/common/c2/audit_event.c
3814
auf_connect(struct t_audit_data *tad, int error, rval_t *rval)
usr/src/uts/common/c2/audit_event.c
3994
auf_setsockopt(struct t_audit_data *tad, int error, rval_t *rval)
usr/src/uts/common/c2/audit_event.c
4574
auf_sendmsg(struct t_audit_data *tad, int error, rval_t *rval)
usr/src/uts/common/c2/audit_event.c
4763
auf_sendto(struct t_audit_data *tad, int error, rval_t *rval)
usr/src/uts/common/c2/audit_event.c
5534
auf_read(struct t_audit_data *tad, int error, rval_t *rval)
usr/src/uts/common/c2/audit_event.c
5588
auf_write(struct t_audit_data *tad, int error, rval_t *rval)
usr/src/uts/common/c2/audit_event.c
5642
auf_recv(struct t_audit_data *tad, int error, rval_t *rval)
usr/src/uts/common/c2/audit_event.c
5773
auf_send(struct t_audit_data *tad, int error, rval_t *rval)
usr/src/uts/common/c2/audit_event.c
743
uint32_t rval;
usr/src/uts/common/c2/audit_event.c
745
long rval;
usr/src/uts/common/c2/audit_event.c
748
rval = (uint32_t)uap->rval;
usr/src/uts/common/c2/audit_event.c
749
au_uwrite(au_to_arg32(1, "exit status", rval));
usr/src/uts/common/c2/audit_kernel.h
271
union rval;
usr/src/uts/common/c2/audit_kernel.h
279
void (*au_finish)(struct t_audit_data *, int, union rval *);
usr/src/uts/common/c2/audit_start.c
244
rval_t *rval)
usr/src/uts/common/c2/audit_start.c
290
(*audit_s2e[scid].au_finish)(tad, error, rval);
usr/src/uts/common/c2/audit_start.c
336
rval->r_val1));
usr/src/uts/common/c2/audit_start.c
346
rval->r_val1));
usr/src/uts/common/c2/audit_start.c
349
rval->r_val2));
usr/src/uts/common/c2/audit_start.c
359
rval->r_vals));
usr/src/uts/common/crypto/core/kcf_cryptoadm.c
304
int rval, i, j, new_count, *mech_counts;
usr/src/uts/common/crypto/core/kcf_cryptoadm.c
310
rval = kcf_get_hw_prov_tab(&provider_count, &provider_array, KM_SLEEP,
usr/src/uts/common/crypto/core/kcf_cryptoadm.c
312
if (rval != CRYPTO_SUCCESS)
usr/src/uts/common/crypto/core/kcf_cryptoadm.c
313
return (rval);
usr/src/uts/common/crypto/core/kcf_prov_tabs.c
591
int rval = CRYPTO_SUCCESS;
usr/src/uts/common/crypto/core/kcf_prov_tabs.c
660
return (rval);
usr/src/uts/common/crypto/core/kcf_prov_tabs.c
682
int rval = CRYPTO_SUCCESS;
usr/src/uts/common/crypto/core/kcf_prov_tabs.c
710
rval = CRYPTO_HOST_MEMORY;
usr/src/uts/common/crypto/core/kcf_prov_tabs.c
754
rval = CRYPTO_HOST_MEMORY;
usr/src/uts/common/crypto/core/kcf_prov_tabs.c
766
return (rval);
usr/src/uts/common/crypto/io/crypto.c
1092
get_all_mechanism_info(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
1194
int rval;
usr/src/uts/common/crypto/io/crypto.c
1201
rval = kcf_get_slot_list(&provider_count, &provider_array, B_FALSE);
usr/src/uts/common/crypto/io/crypto.c
1202
if (rval != CRYPTO_SUCCESS)
usr/src/uts/common/crypto/io/crypto.c
1203
return (rval);
usr/src/uts/common/crypto/io/crypto.c
1243
get_provider_list(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
1426
get_provider_info(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
1529
get_provider_mechanisms(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
1629
get_provider_mechanism_info(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
2090
open_session(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
2123
close_session(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
2593
encrypt_init(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
2600
decrypt_init(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
2817
encrypt(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
2824
decrypt(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
2977
encrypt_update(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
2984
decrypt_update(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
3136
encrypt_final(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
3143
decrypt_final(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
3283
digest_init(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
3363
digest_update(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
3448
digest_key(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
3508
digest_final(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
3515
digest(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
3521
mac_init(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
3523
_NOTE(ARGUNUSED(rval))
usr/src/uts/common/crypto/io/crypto.c
3528
mac_update(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
3530
_NOTE(ARGUNUSED(rval))
usr/src/uts/common/crypto/io/crypto.c
3535
mac_final(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
3537
_NOTE(ARGUNUSED(rval))
usr/src/uts/common/crypto/io/crypto.c
3543
mac(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
3545
_NOTE(ARGUNUSED(rval))
usr/src/uts/common/crypto/io/crypto.c
3731
set_pin(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
3819
login(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
3893
logout(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
3947
sign_init(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
3954
sign_recover_init(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
3962
verify_init(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
3969
verify_recover_init(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
4114
sign(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
4121
sign_recover(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
4128
verify(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
4220
verify_recover(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
4227
sign_update(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
4234
verify_update(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
4338
sign_final(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
4349
verify_final(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
4429
seed_random(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
4520
generate_random(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
4666
object_create(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
4760
object_copy(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
4856
object_destroy(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
4922
object_get_attribute_value(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
5024
object_get_size(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
5092
object_set_attribute_value(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
5174
object_find_init(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
5271
object_find_update(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
5397
object_find_final(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
5448
object_generate_key(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
5568
nostore_generate_key(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
5711
object_generate_key_pair(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
5863
nostore_generate_key_pair(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
6061
object_wrap_key(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
6220
object_unwrap_key(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
6387
object_derive_key(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
6538
nostore_derive_key(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
6702
get_provider_by_mech(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
6704
_NOTE(ARGUNUSED(mode, rval))
usr/src/uts/common/crypto/io/crypto.c
6758
int *rval)
usr/src/uts/common/crypto/io/crypto.c
6764
return (get_function_list(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6767
return (get_mechanism_number(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6770
return (get_mechanism_list(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6773
return (get_all_mechanism_info(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6776
return (get_provider_list(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6779
return (get_provider_by_mech(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6782
return (get_provider_info(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6785
return (get_provider_mechanisms(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6788
return (get_provider_mechanism_info(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6791
return (open_session(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6794
return (close_session(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6797
return (encrypt_init(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6800
return (decrypt_init(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6803
return (encrypt(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6806
return (decrypt(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6809
return (encrypt_update(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6812
return (decrypt_update(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6815
return (encrypt_final(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6818
return (decrypt_final(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6821
return (digest_init(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6824
return (digest(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6827
return (digest_update(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6830
return (digest_key(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6833
return (digest_final(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6836
return (sign_init(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6839
return (sign(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6842
return (sign_update(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6845
return (sign_final(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6848
return (sign_recover_init(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6851
return (sign_recover(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6854
return (verify_init(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6857
return (verify(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6860
return (verify_update(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6863
return (verify_final(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6866
return (verify_recover_init(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6869
return (verify_recover(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6872
return (mac_init(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6875
return (mac(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6878
return (mac_update(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6881
return (mac_final(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6884
return (set_pin(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6887
return (login(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6890
return (logout(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6893
return (seed_random(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6896
return (generate_random(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6899
return (object_create(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6902
return (object_copy(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6905
return (object_destroy(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6908
return (object_get_attribute_value(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6911
return (object_get_size(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6914
return (object_set_attribute_value(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6917
return (object_find_init(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6920
return (object_find_update(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6923
return (object_find_final(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6926
return (object_generate_key(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6929
return (object_generate_key_pair(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6932
return (object_wrap_key(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6935
return (object_unwrap_key(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6938
return (object_derive_key(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6941
return (nostore_generate_key(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6944
return (nostore_generate_key_pair(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
6947
return (nostore_derive_key(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
859
get_function_list(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
937
get_mechanism_number(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/crypto.c
994
get_mechanism_list(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/cryptoadm.c
240
get_dev_list(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/cryptoadm.c
298
get_soft_list(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/cryptoadm.c
358
get_dev_info(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/cryptoadm.c
429
get_soft_info(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/cryptoadm.c
496
load_dev_disabled(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/cryptoadm.c
576
load_soft_disabled(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/cryptoadm.c
659
load_soft_config(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/cryptoadm.c
742
unload_soft_module(dev_t dev, caddr_t arg, int mode, int *rval)
usr/src/uts/common/crypto/io/cryptoadm.c
784
int *rval)
usr/src/uts/common/crypto/io/cryptoadm.c
804
return (get_dev_list(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/cryptoadm.c
807
return (get_dev_info(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/cryptoadm.c
810
return (get_soft_list(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/cryptoadm.c
813
return (get_soft_info(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/cryptoadm.c
816
return (load_dev_disabled(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/cryptoadm.c
819
return (load_soft_disabled(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/cryptoadm.c
822
return (load_soft_config(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/cryptoadm.c
825
return (unload_soft_module(dev, ARG, mode, rval));
usr/src/uts/common/dtrace/dtrace.c
13535
int i, rval;
usr/src/uts/common/dtrace/dtrace.c
13577
if ((rval = dtrace_state_option(state,
usr/src/uts/common/dtrace/dtrace.c
13580
return (rval);
usr/src/uts/common/dtrace/dtrace.c
13980
int flags = 0, rval, factor, divisor = 1;
usr/src/uts/common/dtrace/dtrace.c
14028
rval = dtrace_buffer_alloc(buf, size, flags, cpu, &factor);
usr/src/uts/common/dtrace/dtrace.c
14030
if (rval != ENOMEM) {
usr/src/uts/common/dtrace/dtrace.c
14032
return (rval);
usr/src/uts/common/dtrace/dtrace.c
14036
return (rval);
usr/src/uts/common/dtrace/dtrace.c
14049
int rval, i;
usr/src/uts/common/dtrace/dtrace.c
14051
if ((rval = dtrace_state_buffer(state, state->dts_buffer,
usr/src/uts/common/dtrace/dtrace.c
14053
return (rval);
usr/src/uts/common/dtrace/dtrace.c
14055
if ((rval = dtrace_state_buffer(state, state->dts_aggbuffer,
usr/src/uts/common/dtrace/dtrace.c
14057
return (rval);
usr/src/uts/common/dtrace/dtrace.c
14060
if ((rval = dtrace_state_buffer(state,
usr/src/uts/common/dtrace/dtrace.c
14062
return (rval);
usr/src/uts/common/dtrace/dtrace.c
14102
int rval = 0, i, j, bufsize = NCPU * sizeof (dtrace_buffer_t);
usr/src/uts/common/dtrace/dtrace.c
14109
rval = EBUSY;
usr/src/uts/common/dtrace/dtrace.c
14120
rval = EACCES;
usr/src/uts/common/dtrace/dtrace.c
14135
rval = ENOMEM;
usr/src/uts/common/dtrace/dtrace.c
14143
rval = ENOMEM;
usr/src/uts/common/dtrace/dtrace.c
14152
rval = ENOMEM;
usr/src/uts/common/dtrace/dtrace.c
14161
rval = ENOENT;
usr/src/uts/common/dtrace/dtrace.c
14166
rval = EALREADY;
usr/src/uts/common/dtrace/dtrace.c
14243
rval = ENOSPC;
usr/src/uts/common/dtrace/dtrace.c
14247
if ((rval = dtrace_state_buffers(state)) != 0)
usr/src/uts/common/dtrace/dtrace.c
14254
rval = dtrace_dstate_init(&state->dts_vstate.dtvs_dynvars, sz);
usr/src/uts/common/dtrace/dtrace.c
14256
if (rval == 0)
usr/src/uts/common/dtrace/dtrace.c
14265
if (rval != 0)
usr/src/uts/common/dtrace/dtrace.c
14314
rval = EIO;
usr/src/uts/common/dtrace/dtrace.c
14438
return (rval);
usr/src/uts/common/dtrace/dtrace.c
14809
int rval;
usr/src/uts/common/dtrace/dtrace.c
14818
rval = dtrace_enabling_retain(dtrace_anon.dta_enabling);
usr/src/uts/common/dtrace/dtrace.c
14819
ASSERT(rval == 0);
usr/src/uts/common/dtrace/dtrace.c
14898
uint64_t rval;
usr/src/uts/common/dtrace/dtrace.c
14943
rval = dtrace_dif_emulate(helper->dtha_actions[i],
usr/src/uts/common/dtrace/dtrace.c
14966
return (rval);
usr/src/uts/common/dtrace/dtrace.c
16420
int rval;
usr/src/uts/common/dtrace/dtrace.c
16435
dof_hdr_t *dof = dtrace_dof_copyin(arg, &rval);
usr/src/uts/common/dtrace/dtrace.c
16438
return (rval);
usr/src/uts/common/dtrace/dtrace.c
16446
if ((rval = dtrace_helper_slurp(dof, dhp)) != -1) {
usr/src/uts/common/dtrace/dtrace.c
16447
*rv = rval;
usr/src/uts/common/dtrace/dtrace.c
16448
rval = 0;
usr/src/uts/common/dtrace/dtrace.c
16450
rval = EINVAL;
usr/src/uts/common/dtrace/dtrace.c
16454
return (rval);
usr/src/uts/common/dtrace/dtrace.c
16459
rval = dtrace_helper_destroygen(arg);
usr/src/uts/common/dtrace/dtrace.c
16462
return (rval);
usr/src/uts/common/dtrace/dtrace.c
16478
int rval;
usr/src/uts/common/dtrace/dtrace.c
16714
if ((dof = dtrace_dof_copyin(arg, &rval)) == NULL)
usr/src/uts/common/dtrace/dtrace.c
16715
return (rval);
usr/src/uts/common/dtrace/dtrace.c
16735
if ((rval = dtrace_dof_options(dof, state)) != 0) {
usr/src/uts/common/dtrace/dtrace.c
16740
return (rval);
usr/src/uts/common/dtrace/dtrace.c
16918
rval = dtrace_state_go(state, &cpuid);
usr/src/uts/common/dtrace/dtrace.c
16920
if (rval != 0)
usr/src/uts/common/dtrace/dtrace.c
16921
return (rval);
usr/src/uts/common/dtrace/dtrace.c
16933
rval = dtrace_state_stop(state, &cpuid);
usr/src/uts/common/dtrace/dtrace.c
16936
if (rval != 0)
usr/src/uts/common/dtrace/dtrace.c
16937
return (rval);
usr/src/uts/common/dtrace/dtrace.c
16957
rval = copyout(dof, (void *)arg, len);
usr/src/uts/common/dtrace/dtrace.c
16960
return (rval == 0 ? 0 : EFAULT);
usr/src/uts/common/dtrace/dtrace.c
2064
void *rval;
usr/src/uts/common/dtrace/dtrace.c
2158
rval = dtrace_casptr(&dcpu->dtdsc_free, NULL, clean);
usr/src/uts/common/dtrace/dtrace.c
2159
ASSERT(rval == NULL);
usr/src/uts/common/dtrace/dtrace.c
2874
uint32_t rval = dtrace_cas32((uint32_t *)&spec->dtsp_state,
usr/src/uts/common/dtrace/dtrace.c
2877
ASSERT(rval == DTRACESPEC_COMMITTING);
usr/src/uts/common/dtrace/dtrace.c
3234
uint64_t rval;
usr/src/uts/common/dtrace/dtrace.c
3241
rval = dtrace_getvmreg(ndx,
usr/src/uts/common/dtrace/dtrace.c
3246
return (rval);
usr/src/uts/common/dtrace/dtrace.c
427
uint##bits##_t rval; \
usr/src/uts/common/dtrace/dtrace.c
4353
int rval = 0;
usr/src/uts/common/dtrace/dtrace.c
4359
rval = 1;
usr/src/uts/common/dtrace/dtrace.c
4366
regs[rd] = rval;
usr/src/uts/common/dtrace/dtrace.c
451
rval = *((volatile uint##bits##_t *)addr); \
usr/src/uts/common/dtrace/dtrace.c
454
return (!(*flags & CPU_DTRACE_FAULT) ? rval : 0); \
usr/src/uts/common/dtrace/dtrace.c
5759
uint64_t rval = 0;
usr/src/uts/common/dtrace/dtrace.c
6016
rval = regs[rd];
usr/src/uts/common/dtrace/dtrace.c
6560
return (rval);
usr/src/uts/common/dtrace/dtrace.c
7120
uint64_t rval;
usr/src/uts/common/dtrace/dtrace.c
7122
rval = dtrace_dif_emulate(dp, &mstate, vstate, state);
usr/src/uts/common/dtrace/dtrace.c
7124
if (!(*flags & CPU_DTRACE_ERROR) && !rval) {
usr/src/uts/common/dtrace/dtrace.c
8770
void *rval = NULL;
usr/src/uts/common/dtrace/dtrace.c
8776
rval = probe->dtpr_arg;
usr/src/uts/common/dtrace/dtrace.c
8780
return (rval);
usr/src/uts/common/dtrace/fasttrap.c
279
int i, later, rval;
usr/src/uts/common/dtrace/fasttrap.c
341
if ((rval = dtrace_unregister(provid)) != 0) {
usr/src/uts/common/dtrace/fasttrap.c
345
if (rval == EAGAIN)
usr/src/uts/common/fs/dev/sdev_comm.c
114
int rval = ENOENT;
usr/src/uts/common/fs/dev/sdev_comm.c
139
rval = 0;
usr/src/uts/common/fs/dev/sdev_comm.c
142
dv->sdev_name, rval ? "not " : "",
usr/src/uts/common/fs/dev/sdev_comm.c
170
rval = 0;
usr/src/uts/common/fs/dev/sdev_comm.c
182
return (rval);
usr/src/uts/common/fs/dev/sdev_ncache.c
235
int rval, i;
usr/src/uts/common/fs/dev/sdev_ncache.c
247
rval = nvlist_lookup_string_array(nvl,
usr/src/uts/common/fs/dev/sdev_ncache.c
249
if (rval) {
usr/src/uts/common/fs/dev/sdev_ncache.c
264
rval = nvlist_lookup_int32_array(nvl,
usr/src/uts/common/fs/dev/sdev_ncache.c
266
if (rval == 0) {
usr/src/uts/common/fs/dev/sdev_ncache.c
289
int rval;
usr/src/uts/common/fs/dev/sdev_ncache.c
295
rval = nvlist_alloc(&nvl, NV_UNIQUE_NAME, KM_SLEEP);
usr/src/uts/common/fs/dev/sdev_ncache.c
296
if (rval != 0) {
usr/src/uts/common/fs/dev/sdev_ncache.c
298
nvf_cache_name(fd), rval);
usr/src/uts/common/fs/dev/sdev_ncache.c
306
rval = nvlist_alloc(&sub_nvl, NV_UNIQUE_NAME, KM_SLEEP);
usr/src/uts/common/fs/dev/sdev_ncache.c
307
if (rval != 0) {
usr/src/uts/common/fs/dev/sdev_ncache.c
309
nvf_cache_name(fd), rval);
usr/src/uts/common/fs/dev/sdev_ncache.c
314
rval = nvlist_add_string_array(sub_nvl,
usr/src/uts/common/fs/dev/sdev_ncache.c
316
if (rval != 0) {
usr/src/uts/common/fs/dev/sdev_ncache.c
318
nvf_cache_name(fd), rval);
usr/src/uts/common/fs/dev/sdev_ncache.c
322
rval = nvlist_add_int32_array(sub_nvl,
usr/src/uts/common/fs/dev/sdev_ncache.c
325
if (rval != 0) {
usr/src/uts/common/fs/dev/sdev_ncache.c
327
nvf_cache_name(fd), rval);
usr/src/uts/common/fs/dev/sdev_ncache.c
331
rval = nvlist_add_nvlist(nvl, DP_DEVNAME_ID, sub_nvl);
usr/src/uts/common/fs/dev/sdev_ncache.c
332
if (rval != 0) {
usr/src/uts/common/fs/dev/sdev_ncache.c
334
nvf_cache_name(fd), rval);
usr/src/uts/common/fs/dev/sdev_ncache.c
661
int rval = 0;
usr/src/uts/common/fs/dev/sdev_ncache.c
692
rval = 1;
usr/src/uts/common/fs/dev/sdev_ncache.c
698
return (rval);
usr/src/uts/common/fs/dev/sdev_subr.c
1287
int rval = 0;
usr/src/uts/common/fs/dev/sdev_subr.c
1291
rval = VOP_LOOKUP(rdvp, nm, rvp, NULL, 0, NULL, kcred, NULL, NULL,
usr/src/uts/common/fs/dev/sdev_subr.c
1293
return (rval);
usr/src/uts/common/fs/dev/sdev_vtops.c
102
int rval;
usr/src/uts/common/fs/dev/sdev_vtops.c
120
rval = (strcmp(link, dv->sdev_symlink) == 0) ?
usr/src/uts/common/fs/dev/sdev_vtops.c
123
return (rval);
usr/src/uts/common/fs/dev/sdev_vtops.c
129
rval = (strcmp(link, dv->sdev_symlink) == 0) ?
usr/src/uts/common/fs/dev/sdev_vtops.c
132
return (rval);
usr/src/uts/common/fs/devfs/devfs_subr.c
1597
int rval;
usr/src/uts/common/fs/devfs/devfs_subr.c
1603
rval = dv_reset_perm_dir(dvp, flags);
usr/src/uts/common/fs/devfs/devfs_subr.c
1605
return (rval);
usr/src/uts/common/fs/devfs/devfs_vfsops.c
551
int rval = -1;
usr/src/uts/common/fs/devfs/devfs_vfsops.c
555
return (rval);
usr/src/uts/common/fs/devfs/devfs_vfsops.c
563
rval = 0;
usr/src/uts/common/fs/devfs/devfs_vfsops.c
567
return (rval);
usr/src/uts/common/fs/hsfs/hsfs_vfsops.c
1544
int rval; /* ignored */
usr/src/uts/common/fs/hsfs/hsfs_vfsops.c
1554
FNATIVE|FKIOCTL|FREAD, CRED(), &rval);
usr/src/uts/common/fs/nfs/nfs_client.c
2208
int rval;
usr/src/uts/common/fs/nfs/nfs_client.c
2226
rval = (mi->mi_threads[NFS_ASYNC_QUEUE] != 0 ||
usr/src/uts/common/fs/nfs/nfs_client.c
2228
if (rval)
usr/src/uts/common/fs/nfs/nfs_client.c
2232
return (rval);
usr/src/uts/common/fs/portfs/port.c
1176
int rval;
usr/src/uts/common/fs/portfs/port.c
1330
rval = cv_waituntil_sig(&pgetp->portget_cv, &portq->portq_mutex,
usr/src/uts/common/fs/portfs/port.c
1333
if (rval <= 0) {
usr/src/uts/common/fs/portfs/port.c
1334
error = (rval == 0) ? EINTR : ETIME;
usr/src/uts/common/fs/proc/prcontrol.c
1447
int rval;
usr/src/uts/common/fs/proc/prcontrol.c
1450
rval = cv_waituntil_sig(&pcp->prc_wait, &pcp->prc_mutex, ts, timecheck);
usr/src/uts/common/fs/proc/prcontrol.c
1452
switch (rval) {
usr/src/uts/common/fs/proc/prsubr.c
2706
int32_t rval;
usr/src/uts/common/fs/proc/prsubr.c
2714
&rval, NULL) == 0 && strcmd.sc_len > 0) {
usr/src/uts/common/fs/proc/prsubr.c
2724
&rval, NULL) == 0 && strcmd.sc_len > 0) {
usr/src/uts/common/fs/proc/prsubr.c
3062
int32_t rval;
usr/src/uts/common/fs/proc/prsubr.c
3065
FKIOCTL, cred, &rval, NULL);
usr/src/uts/common/fs/proc/prsubr.c
3070
int32_t rval;
usr/src/uts/common/fs/proc/prsubr.c
3082
STR_NOSIG | K_TO_K, cred, &rval);
usr/src/uts/common/fs/smbsrv/smb_vops.c
289
int error, rval = 0;
usr/src/uts/common/fs/smbsrv/smb_vops.c
296
&rval, &smb_ct);
usr/src/uts/common/fs/smbsrv/smb_vops.c
298
rval = error;
usr/src/uts/common/fs/smbsrv/smb_vops.c
300
return (rval);
usr/src/uts/common/fs/sockfs/sockcommon_sops.c
1588
rval_t rval;
usr/src/uts/common/fs/sockfs/sockcommon_sops.c
1673
error = so_dequeue_msg(so, &mctlp, uiop, &rval, flags);
usr/src/uts/common/fs/sockfs/sockcommon_sops.c
1681
ASSERT(!(rval.r_val1 & MORECTL));
usr/src/uts/common/fs/sockfs/sockcommon_sops.c
1682
if ((rval.r_val1 & MOREDATA) && (so->so_mode & SM_ATOMIC))
usr/src/uts/common/fs/sockfs/sockcommon_sops.c
1689
if (!(rval.r_val1 & MOREDATA)) {
usr/src/uts/common/fs/sockfs/sockcommon_sops.c
1720
if (!(rval.r_val1 & MOREDATA))
usr/src/uts/common/fs/sockfs/sockcommon_sops.c
1888
if (!(rval.r_val1 & MOREDATA))
usr/src/uts/common/fs/sockfs/sockcommon_subr.c
2384
int rval;
usr/src/uts/common/fs/sockfs/sockcommon_subr.c
2398
rval = (*fbfunc)(nso->so_proto_handle, NULL, direct,
usr/src/uts/common/fs/sockfs/sockcommon_subr.c
2401
if (rval != 0) {
usr/src/uts/common/fs/sockfs/sockfilter.c
1248
sof_rval2errno(sof_rval_t rval)
usr/src/uts/common/fs/sockfs/sockfilter.c
1250
if (rval > SOF_RVAL_CONTINUE) {
usr/src/uts/common/fs/sockfs/sockfilter.c
1251
return ((int)rval);
usr/src/uts/common/fs/sockfs/sockfilter.c
1255
printf("sof_rval2errno: invalid rval '%d'\n", rval);
usr/src/uts/common/fs/sockfs/sockfilter.c
1274
sof_rval_t rval;
usr/src/uts/common/fs/sockfs/sockfilter.c
1282
inst->sofi_cookie, mp, msg, cr, &rval);
usr/src/uts/common/fs/sockfs/sockfilter.c
1286
*errp = sof_rval2errno(rval);
usr/src/uts/common/fs/sockfs/sockfilter.c
1384
sof_rval_t rval;
usr/src/uts/common/fs/sockfs/sockfilter.c
1389
rval = (inst->sofi_ops->sofop_accept)((sof_handle_t)inst,
usr/src/uts/common/fs/sockfs/sockfilter.c
1392
(sof_rval_t), rval);
usr/src/uts/common/fs/sockfs/sockfilter.c
1393
if (rval != SOF_RVAL_CONTINUE) {
usr/src/uts/common/fs/sockfs/sockfilter.c
1394
ASSERT(rval != SOF_RVAL_RETURN);
usr/src/uts/common/fs/sockfs/sockfilter.c
1395
return (sof_rval2errno(rval));
usr/src/uts/common/fs/sockfs/sockfilter.c
192
sof_rval_t rval;
usr/src/uts/common/fs/sockfs/sockfilter.c
253
rval = inst->sofi_ops->sofop_attach_active(
usr/src/uts/common/fs/sockfs/sockfilter.c
256
if (rval != SOF_RVAL_CONTINUE) {
usr/src/uts/common/fs/sockfs/sockfilter.c
257
switch (rval) {
usr/src/uts/common/fs/sockfs/sockfilter.c
270
ASSERT(rval != SOF_RVAL_DEFER);
usr/src/uts/common/fs/sockfs/sockfilter.c
271
error = sof_rval2errno(rval);
usr/src/uts/common/fs/sockfs/sockfilter.c
408
sof_rval_t rval;
usr/src/uts/common/fs/sockfs/sockfilter.c
465
rval = inst->sofi_ops->sofop_attach_passive(
usr/src/uts/common/fs/sockfs/sockfilter.c
471
if (rval != SOF_RVAL_CONTINUE) {
usr/src/uts/common/fs/sockfs/sockfilter.c
472
if (rval == SOF_RVAL_DEFER) {
usr/src/uts/common/fs/sockfs/sockfilter.c
480
} else if (rval == SOF_RVAL_DETACH) {
usr/src/uts/common/fs/sockfs/sockfilter.c
484
error = sof_rval2errno(rval);
usr/src/uts/common/fs/sockfs/sockfilter.c
514
sof_rval_t rval;
usr/src/uts/common/fs/sockfs/sockfilter.c
555
rval = inst->sofi_ops->sofop_attach_active(
usr/src/uts/common/fs/sockfs/sockfilter.c
558
if (rval != SOF_RVAL_CONTINUE) {
usr/src/uts/common/fs/sockfs/sockfilter.c
559
switch (rval) {
usr/src/uts/common/fs/sockfs/sockfilter.c
567
ASSERT(rval != SOF_RVAL_DEFER);
usr/src/uts/common/fs/sockfs/sockfilter.c
568
error = sof_rval2errno(rval);
usr/src/uts/common/fs/sockfs/sockstr.c
142
int rval;
usr/src/uts/common/fs/sockfs/sockstr.c
149
&rval);
usr/src/uts/common/fs/sockfs/sockstr.c
2729
int32_t rval;
usr/src/uts/common/fs/sockfs/sockstr.c
2738
&rval));
usr/src/uts/common/fs/sockfs/socksyscalls.c
1066
ssize_t len, rval;
usr/src/uts/common/fs/sockfs/socksyscalls.c
1199
rval = recvit(sock, &lmsg, &auio, flags,
usr/src/uts/common/fs/sockfs/socksyscalls.c
1206
return (rval);
usr/src/uts/common/fs/sockfs/socksyscalls.c
1348
ssize_t len, rval;
usr/src/uts/common/fs/sockfs/socksyscalls.c
1479
rval = sendit(sock, &lmsg, &auio, flags);
usr/src/uts/common/fs/sockfs/socksyscalls.c
1484
return (rval);
usr/src/uts/common/fs/sockfs/socktpi.c
1664
int rval;
usr/src/uts/common/fs/sockfs/socktpi.c
1674
0, 0, K_TO_K, cr, &rval);
usr/src/uts/common/fs/sockfs/socktpi.c
1922
int rval;
usr/src/uts/common/fs/sockfs/socktpi.c
1925
0, 0, K_TO_K, cr, &rval)) != 0) {
usr/src/uts/common/fs/sockfs/socktpi.c
2910
rval_t rval;
usr/src/uts/common/fs/sockfs/socktpi.c
3029
timout, &rval);
usr/src/uts/common/fs/sockfs/socktpi.c
3040
ASSERT(!(rval.r_val1 & MORECTL));
usr/src/uts/common/fs/sockfs/socktpi.c
3041
if ((rval.r_val1 & MOREDATA) && (so->so_mode & SM_ATOMIC))
usr/src/uts/common/fs/sockfs/socktpi.c
3060
if (!(rval.r_val1 & MOREDATA)) {
usr/src/uts/common/fs/sockfs/socktpi.c
3099
if (!(rval.r_val1 & MOREDATA))
usr/src/uts/common/fs/sockfs/socktpi.c
3292
if (!(rval.r_val1 & MOREDATA))
usr/src/uts/common/fs/sockfs/socktpi.c
3358
&pri, &pflag, (clock_t)-1, &rval);
usr/src/uts/common/fs/sockfs/socktpi.c
479
int rval;
usr/src/uts/common/fs/sockfs/socktpi.c
494
cr, &rval)) != 0) {
usr/src/uts/common/fs/specfs/specvnops.c
1520
int rval, rc;
usr/src/uts/common/fs/specfs/specvnops.c
1528
(intptr_t)&spec_callback, FNATIVE|FKIOCTL, cr, &rval);
usr/src/uts/common/fs/udfs/udf_vfsops.c
1615
int32_t rval, error;
usr/src/uts/common/fs/udfs/udf_vfsops.c
1618
FKIOCTL|FREAD|FNATIVE, CRED(), &rval)) != 0) {
usr/src/uts/common/fs/udfs/udf_vfsops.c
1627
FKIOCTL|FREAD|FNATIVE, CRED(), &rval)) != 0) {
usr/src/uts/common/fs/udfs/udf_vfsops.c
1846
int32_t rval;
usr/src/uts/common/fs/udfs/udf_vfsops.c
1855
FKIOCTL|FREAD|FNATIVE, CRED(), &rval) != 0) {
usr/src/uts/common/fs/ufs/ufs_inode.c
1591
int rval = 0;
usr/src/uts/common/fs/ufs/ufs_inode.c
1609
rval = 1;
usr/src/uts/common/fs/ufs/ufs_inode.c
1612
return (rval);
usr/src/uts/common/fs/zfs/btree.c
1871
void *rval = zfs_btree_next_helper(tree, *cookie, *cookie,
usr/src/uts/common/fs/zfs/btree.c
1873
if (rval == NULL) {
usr/src/uts/common/fs/zfs/btree.c
1880
return (rval);
usr/src/uts/common/inet/ip/ip.c
13970
int rval;
usr/src/uts/common/inet/ip/ip.c
13974
rval = SQ_NODRAIN;
usr/src/uts/common/inet/ip/ip.c
13977
rval = SQ_PROCESS;
usr/src/uts/common/inet/ip/ip.c
13981
rval = SQ_FILL;
usr/src/uts/common/inet/ip/ip.c
13984
return (rval);
usr/src/uts/common/inet/ip/ip_if.c
18086
int rval;
usr/src/uts/common/inet/ip/ip_if.c
18094
return (ldi_ioctl(lh, I_STR, (intptr_t)&iocb, FKIOCTL, cr, &rval));
usr/src/uts/common/inet/ip/keysock.c
201
int muxid, rval;
usr/src/uts/common/inet/ip/keysock.c
259
I_PUSH, (intptr_t)KEYSOCK, FKIOCTL, cr, &rval);
usr/src/uts/common/inet/ip/keysock.c
284
I_PUSH, (intptr_t)KEYSOCK, FKIOCTL, cr, &rval);
usr/src/uts/common/inet/ipd/ipd.c
1004
rval = ipd_ioctl_perturb(&ipip, cr, cmd);
usr/src/uts/common/inet/ipd/ipd.c
1005
return (rval);
usr/src/uts/common/inet/ipd/ipd.c
1010
rval = ipd_ioctl_remove(&ipip, cr);
usr/src/uts/common/inet/ipd/ipd.c
1011
return (rval);
usr/src/uts/common/inet/ipd/ipd.c
508
int olden, rval;
usr/src/uts/common/inet/ipd/ipd.c
520
rval = ipd_setup_hooks(ins);
usr/src/uts/common/inet/ipd/ipd.c
521
if (rval != 0) {
usr/src/uts/common/inet/ipd/ipd.c
524
return (rval);
usr/src/uts/common/inet/ipd/ipd.c
565
int rval;
usr/src/uts/common/inet/ipd/ipd.c
580
rval = ipd_check_hooks(ins, IPD_CORRUPT, percent != 0);
usr/src/uts/common/inet/ipd/ipd.c
587
if (rval != 0)
usr/src/uts/common/inet/ipd/ipd.c
590
return (rval);
usr/src/uts/common/inet/ipd/ipd.c
596
int rval;
usr/src/uts/common/inet/ipd/ipd.c
611
rval = ipd_check_hooks(ins, IPD_DELAY, delay != 0);
usr/src/uts/common/inet/ipd/ipd.c
618
if (rval != 0)
usr/src/uts/common/inet/ipd/ipd.c
621
return (rval);
usr/src/uts/common/inet/ipd/ipd.c
626
int rval;
usr/src/uts/common/inet/ipd/ipd.c
641
rval = ipd_check_hooks(ins, IPD_DROP, percent != 0);
usr/src/uts/common/inet/ipd/ipd.c
648
if (rval != 0)
usr/src/uts/common/inet/ipd/ipd.c
651
return (rval);
usr/src/uts/common/inet/ipd/ipd.c
659
int rval = 0;
usr/src/uts/common/inet/ipd/ipd.c
696
rval = ESHUTDOWN;
usr/src/uts/common/inet/ipd/ipd.c
702
rval = ipd_toggle_corrupt(ins, ipi->ipip_arg);
usr/src/uts/common/inet/ipd/ipd.c
705
rval = ipd_toggle_delay(ins, ipi->ipip_arg);
usr/src/uts/common/inet/ipd/ipd.c
708
rval = ipd_toggle_drop(ins, ipi->ipip_arg);
usr/src/uts/common/inet/ipd/ipd.c
715
return (rval);
usr/src/uts/common/inet/ipd/ipd.c
723
int rval = 0;
usr/src/uts/common/inet/ipd/ipd.c
759
rval = 0;
usr/src/uts/common/inet/ipd/ipd.c
763
rval = EINVAL;
usr/src/uts/common/inet/ipd/ipd.c
772
rval = 0;
usr/src/uts/common/inet/ipd/ipd.c
778
rval = 0;
usr/src/uts/common/inet/ipd/ipd.c
784
rval = 0;
usr/src/uts/common/inet/ipd/ipd.c
790
return (rval);
usr/src/uts/common/inet/ipd/ipd.c
813
int rval = 0;
usr/src/uts/common/inet/ipd/ipd.c
884
rval = EFAULT;
usr/src/uts/common/inet/ipd/ipd.c
891
return (rval);
usr/src/uts/common/inet/ipd/ipd.c
994
int rval;
usr/src/uts/common/inet/ipf/fil.c
3792
void *rval = oldifp;
usr/src/uts/common/inet/ipf/fil.c
3798
rval = fr_resolvenic(oldname, v, ifs);
usr/src/uts/common/inet/ipf/fil.c
3803
rval = newifp;
usr/src/uts/common/inet/ipf/fil.c
3813
rval = (oldifp) ? (void *)-1 : NULL;
usr/src/uts/common/inet/ipf/fil.c
3817
return rval;
usr/src/uts/common/inet/ipf/fil.c
5078
void *rval;
usr/src/uts/common/inet/ipf/fil.c
5081
rval = fr_iphmfindgroup(fin->fin_fr->fr_ptr, fin->fin_v, &fin->fin_src, ifs);
usr/src/uts/common/inet/ipf/fil.c
5082
if (rval == NULL)
usr/src/uts/common/inet/ipf/fil.c
5085
fg = rval;
usr/src/uts/common/inet/ipf/fil.c
5107
void *rval;
usr/src/uts/common/inet/ipf/fil.c
5110
rval = fr_iphmfindgroup(fin->fin_fr->fr_ptr, fin->fin_v, &fin->fin_dst, ifs);
usr/src/uts/common/inet/ipf/fil.c
5111
if (rval == NULL)
usr/src/uts/common/inet/ipf/fil.c
5114
fg = rval;
usr/src/uts/common/inet/ipf/ip_fil_solaris.c
2416
int rval, hlen;
usr/src/uts/common/inet/ipf/ip_fil_solaris.c
2443
rval = fr_check(fw->hpe_hdr, hlen, qpi.qpi_ill, out,
usr/src/uts/common/inet/ipf/ip_fil_solaris.c
2447
if (rval == 0 && *(fw->hpe_mp) == NULL)
usr/src/uts/common/inet/ipf/ip_fil_solaris.c
2448
rval = 1;
usr/src/uts/common/inet/ipf/ip_fil_solaris.c
2453
if (rval == 0) {
usr/src/uts/common/inet/ipf/ip_fil_solaris.c
2460
return rval;
usr/src/uts/common/inet/ipf/ip_fil_solaris.c
2466
int rval, hlen;
usr/src/uts/common/inet/ipf/ip_fil_solaris.c
2486
rval = fr_check(fw->hpe_hdr, hlen, qpi.qpi_ill, out,
usr/src/uts/common/inet/ipf/ip_fil_solaris.c
2490
if (rval == 0 && *(fw->hpe_mp) == NULL)
usr/src/uts/common/inet/ipf/ip_fil_solaris.c
2491
rval = 1;
usr/src/uts/common/inet/ipf/ip_fil_solaris.c
2496
return rval;
usr/src/uts/common/inet/ipf/ip_htable.c
429
void *rval;
usr/src/uts/common/inet/ipf/ip_htable.c
452
rval = ipe->ipe_ptr;
usr/src/uts/common/inet/ipf/ip_htable.c
454
rval = NULL;
usr/src/uts/common/inet/ipf/ip_htable.c
456
return rval;
usr/src/uts/common/inet/ipf/ip_htable.c
480
int rval;
usr/src/uts/common/inet/ipf/ip_htable.c
508
rval = 0;
usr/src/uts/common/inet/ipf/ip_htable.c
510
rval = 1;
usr/src/uts/common/inet/ipf/ip_htable.c
513
return rval;
usr/src/uts/common/inet/ipf/ip_nat.c
3876
int rval, natfailed;
usr/src/uts/common/inet/ipf/ip_nat.c
4014
rval = fr_natout(fin, nat, natadd, nflags);
usr/src/uts/common/inet/ipf/ip_nat.c
4015
if (rval == 1) {
usr/src/uts/common/inet/ipf/ip_nat.c
4024
rval = natfailed;
usr/src/uts/common/inet/ipf/ip_nat.c
4027
if (rval == -1) {
usr/src/uts/common/inet/ipf/ip_nat.c
4033
return rval;
usr/src/uts/common/inet/ipf/ip_nat.c
4198
int rval, natfailed;
usr/src/uts/common/inet/ipf/ip_nat.c
4341
rval = fr_natin(fin, nat, natadd, nflags);
usr/src/uts/common/inet/ipf/ip_nat.c
4342
if (rval == 1) {
usr/src/uts/common/inet/ipf/ip_nat.c
4351
rval = natfailed;
usr/src/uts/common/inet/ipf/ip_nat.c
4354
if (rval == -1) {
usr/src/uts/common/inet/ipf/ip_nat.c
4359
return rval;
usr/src/uts/common/inet/ipf/ip_nat6.c
2034
int rval, natfailed;
usr/src/uts/common/inet/ipf/ip_nat6.c
2175
rval = fr_nat6out(fin, nat, natadd, nflags);
usr/src/uts/common/inet/ipf/ip_nat6.c
2177
rval = natfailed;
usr/src/uts/common/inet/ipf/ip_nat6.c
2181
if (rval == -1) {
usr/src/uts/common/inet/ipf/ip_nat6.c
2187
return rval;
usr/src/uts/common/inet/ipf/ip_nat6.c
2315
int rval, natfailed;
usr/src/uts/common/inet/ipf/ip_nat6.c
2457
rval = fr_nat6in(fin, nat, natadd, nflags);
usr/src/uts/common/inet/ipf/ip_nat6.c
2459
rval = natfailed;
usr/src/uts/common/inet/ipf/ip_nat6.c
2463
if (rval == -1) {
usr/src/uts/common/inet/ipf/ip_nat6.c
2468
return rval;
usr/src/uts/common/inet/ipf/ip_state.c
3589
int dlen, ostate, nstate, rval, dir;
usr/src/uts/common/inet/ipf/ip_state.c
3596
rval = 0;
usr/src/uts/common/inet/ipf/ip_state.c
3625
rval = 1;
usr/src/uts/common/inet/ipf/ip_state.c
3637
rval = 1;
usr/src/uts/common/inet/ipf/ip_state.c
3641
rval = 1;
usr/src/uts/common/inet/ipf/ip_state.c
3661
rval = 1;
usr/src/uts/common/inet/ipf/ip_state.c
3666
rval = 1;
usr/src/uts/common/inet/ipf/ip_state.c
3691
rval = 2;
usr/src/uts/common/inet/ipf/ip_state.c
3700
rval = 1;
usr/src/uts/common/inet/ipf/ip_state.c
3708
rval = 1;
usr/src/uts/common/inet/ipf/ip_state.c
3716
rval = 1;
usr/src/uts/common/inet/ipf/ip_state.c
3729
rval = 1;
usr/src/uts/common/inet/ipf/ip_state.c
3736
rval = 2;
usr/src/uts/common/inet/ipf/ip_state.c
3745
rval = 1;
usr/src/uts/common/inet/ipf/ip_state.c
3752
rval = 1;
usr/src/uts/common/inet/ipf/ip_state.c
3767
rval = 1;
usr/src/uts/common/inet/ipf/ip_state.c
3772
rval = 1;
usr/src/uts/common/inet/ipf/ip_state.c
3781
rval = 1;
usr/src/uts/common/inet/ipf/ip_state.c
3818
rval = 1;
usr/src/uts/common/inet/ipf/ip_state.c
3836
rval = 1;
usr/src/uts/common/inet/ipf/ip_state.c
3867
rval = 1;
usr/src/uts/common/inet/ipf/ip_state.c
3878
rval = 1;
usr/src/uts/common/inet/ipf/ip_state.c
3889
rval = 1;
usr/src/uts/common/inet/ipf/ip_state.c
3891
rval = 2;
usr/src/uts/common/inet/ipf/ip_state.c
3896
rval = 2;
usr/src/uts/common/inet/ipf/ip_state.c
3914
if (rval == 2) {
usr/src/uts/common/inet/ipf/ip_state.c
3916
rval = 1;
usr/src/uts/common/inet/ipf/ip_state.c
3918
else if (rval == 1) {
usr/src/uts/common/inet/ipf/ip_state.c
3931
return rval;
usr/src/uts/common/inet/sockmods/sockmod_pfp.c
900
int32_t *rval, struct cred *cr)
usr/src/uts/common/inet/sockmods/socksctp.c
501
rval_t rval;
usr/src/uts/common/inet/sockmods/socksctp.c
567
error = so_dequeue_msg(so, &mp, uiop, &rval, flags | MSG_DUPCTRL);
usr/src/uts/common/inet/sockmods/socksctp.c
607
!(rval.r_val1 & MOREDATA)) {
usr/src/uts/common/inet/sockmods/socksctp.c
636
if (rval.r_val2) {
usr/src/uts/common/inet/sockmods/socksctp.c
671
if (!(flags & MSG_PEEK) && !(rval.r_val1 & MOREDATA)) {
usr/src/uts/common/inet/tcp/tcp.c
4053
int rval = SQ_FILL;
usr/src/uts/common/inet/tcp/tcp.c
4057
rval = SQ_NODRAIN;
usr/src/uts/common/inet/tcp/tcp.c
4060
rval = SQ_PROCESS;
usr/src/uts/common/inet/tcp/tcp.c
4065
return (rval);
usr/src/uts/common/io/1394/targets/av1394/av1394.c
258
int rval = DDI_FAILURE;
usr/src/uts/common/io/1394/targets/av1394/av1394.c
264
rval = DDI_SUCCESS;
usr/src/uts/common/io/1394/targets/av1394/av1394.c
271
rval = DDI_SUCCESS;
usr/src/uts/common/io/1394/targets/av1394/av1394.c
275
return (rval);
usr/src/uts/common/io/1394/targets/av1394/av1394_cfgrom.c
510
uint32_t *rval)
usr/src/uts/common/io/1394/targets/av1394/av1394_cfgrom.c
520
*rval = cmd->cmd_u.q.quadlet_data;
usr/src/uts/common/io/1394/targets/scsa1394/hba.c
381
int rval = DDI_FAILURE;
usr/src/uts/common/io/1394/targets/scsa1394/hba.c
398
rval = DDI_SUCCESS;
usr/src/uts/common/io/1394/targets/scsa1394/hba.c
407
rval = DDI_SUCCESS;
usr/src/uts/common/io/1394/targets/scsa1394/hba.c
412
return (rval);
usr/src/uts/common/io/aac/aac.c
1111
int rval;
usr/src/uts/common/io/aac/aac.c
1122
rval = aac_sync_fib(softs, ContainerCommand,
usr/src/uts/common/io/aac/aac.c
1127
"shutting down aac %s", (rval == AACOK) ? "ok" : "fail");
usr/src/uts/common/io/aac/aac.c
1128
return (rval);
usr/src/uts/common/io/aac/aac.c
1423
uint_t rval;
usr/src/uts/common/io/aac/aac.c
1427
rval = DDI_INTR_CLAIMED;
usr/src/uts/common/io/aac/aac.c
1429
rval = DDI_INTR_UNCLAIMED;
usr/src/uts/common/io/aac/aac.c
1433
return (rval);
usr/src/uts/common/io/aac/aac.c
1562
int rval;
usr/src/uts/common/io/aac/aac.c
1566
rval = DDI_INTR_CLAIMED;
usr/src/uts/common/io/aac/aac.c
1568
rval = DDI_INTR_UNCLAIMED;
usr/src/uts/common/io/aac/aac.c
1572
return (rval);
usr/src/uts/common/io/aac/aac.c
1734
int rval = AACOK;
usr/src/uts/common/io/aac/aac.c
1740
rval = AACERR;
usr/src/uts/common/io/aac/aac.c
1747
rval = AACERR;
usr/src/uts/common/io/aac/aac.c
1750
return (rval);
usr/src/uts/common/io/aac/aac.c
1756
int rval = AACOK;
usr/src/uts/common/io/aac/aac.c
1762
rval = AACERR;
usr/src/uts/common/io/aac/aac.c
1768
rval = AACERR;
usr/src/uts/common/io/aac/aac.c
1771
return (rval);
usr/src/uts/common/io/aac/aac.c
2511
int rval;
usr/src/uts/common/io/aac/aac.c
2521
rval = AACERR;
usr/src/uts/common/io/aac/aac.c
2554
rval = AACERR;
usr/src/uts/common/io/aac/aac.c
2563
rval = AACERR;
usr/src/uts/common/io/aac/aac.c
2599
rval = AACOK;
usr/src/uts/common/io/aac/aac.c
2602
return (rval);
usr/src/uts/common/io/aac/aac.c
2617
int rval;
usr/src/uts/common/io/aac/aac.c
2628
rval = aac_sync_fib(softs, ContainerCommand,
usr/src/uts/common/io/aac/aac.c
2631
if (rval != AACOK || ddi_get32(acc, &c_resp->Status) != 0) {
usr/src/uts/common/io/aac/aac.c
2634
rval = AACERR;
usr/src/uts/common/io/aac/aac.c
2652
rval = aac_sync_fib(softs, ContainerCommand,
usr/src/uts/common/io/aac/aac.c
2657
if ((rval != AACOK) || (ddi_get32(acc, &resp->Status) != 0)) {
usr/src/uts/common/io/aac/aac.c
2659
rval = AACERR;
usr/src/uts/common/io/aac/aac.c
2720
int rval;
usr/src/uts/common/io/aac/aac.c
2734
rval = aac_sync_fib(softs, ContainerCommand,
usr/src/uts/common/io/aac/aac.c
2741
if ((rval == AACOK) && (resp_status == 0) && (ct_status == CT_OK)) {
usr/src/uts/common/io/aac/aac.c
2750
rval = aac_sync_fib(softs, ContainerCommand,
usr/src/uts/common/io/aac/aac.c
2755
if ((rval == AACOK) && (resp_status == 0) &&
usr/src/uts/common/io/aac/aac.c
2758
rval = AACMPE_OK;
usr/src/uts/common/io/aac/aac.c
2761
rval = AACMPE_COMMIT_CONFIG;
usr/src/uts/common/io/aac/aac.c
2767
rval = AACMPE_CONFIG_STATUS;
usr/src/uts/common/io/aac/aac.c
2771
rval = AACMPE_CONFIG_STATUS;
usr/src/uts/common/io/aac/aac.c
2775
return (rval);
usr/src/uts/common/io/aac/aac.c
3378
int rval;
usr/src/uts/common/io/aac/aac.c
3384
rval = AACERR;
usr/src/uts/common/io/aac/aac.c
3391
rval = AACERR;
usr/src/uts/common/io/aac/aac.c
3394
rval = AACOK;
usr/src/uts/common/io/aac/aac.c
3398
return (rval);
usr/src/uts/common/io/aac/aac.c
4267
int rval;
usr/src/uts/common/io/aac/aac.c
4269
rval = PCI_MEM_GET32(softs, AAC_OMR0);
usr/src/uts/common/io/aac/aac.c
4271
if (rval & AAC_KERNEL_UP_AND_RUNNING) {
usr/src/uts/common/io/aac/aac.c
4272
rval = 0;
usr/src/uts/common/io/aac/aac.c
4273
} else if (rval & AAC_KERNEL_PANIC) {
usr/src/uts/common/io/aac/aac.c
4275
rval = ((rval >> 16) & 0xff) + 1; /* avoid 0 as return value */
usr/src/uts/common/io/aac/aac.c
4278
rval = -1;
usr/src/uts/common/io/aac/aac.c
4280
return (rval);
usr/src/uts/common/io/aac/aac.c
4443
int rval = AAC_IOP_RESET_FAILED;
usr/src/uts/common/io/aac/aac.c
4521
rval = AAC_IOP_RESET_ABNORMAL;
usr/src/uts/common/io/aac/aac.c
4534
rval = AAC_IOP_RESET_SUCCEED;
usr/src/uts/common/io/aac/aac.c
4538
return (rval);
usr/src/uts/common/io/aac/aac.c
4609
int rval;
usr/src/uts/common/io/aac/aac.c
4623
rval = AAC_IOP_RESET_SUCCEED;
usr/src/uts/common/io/aac/aac.c
4651
rval = AAC_IOP_RESET_SUCCEED;
usr/src/uts/common/io/aac/aac.c
4656
rval = AAC_IOP_RESET_ABNORMAL;
usr/src/uts/common/io/aac/aac.c
4665
if ((rval = aac_reset_adapter(softs)) == AAC_IOP_RESET_FAILED)
usr/src/uts/common/io/aac/aac.c
4670
return (rval);
usr/src/uts/common/io/aac/aac.c
4677
int rval;
usr/src/uts/common/io/aac/aac.c
4687
switch (rval = aac_do_reset(softs)) {
usr/src/uts/common/io/aac/aac.c
4703
return (rval == 0);
usr/src/uts/common/io/aac/aac.c
4767
int rval;
usr/src/uts/common/io/aac/aac.c
4779
rval = TRAN_ACCEPT;
usr/src/uts/common/io/aac/aac.c
4803
rval = TRAN_ACCEPT;
usr/src/uts/common/io/aac/aac.c
4828
rval = TRAN_ACCEPT;
usr/src/uts/common/io/aac/aac.c
4842
rval = TRAN_ACCEPT;
usr/src/uts/common/io/aac/aac.c
4871
rval = aac_do_io(softs, acp);
usr/src/uts/common/io/aac/aac.c
4882
rval = TRAN_ACCEPT;
usr/src/uts/common/io/aac/aac.c
4887
rval = TRAN_ACCEPT;
usr/src/uts/common/io/aac/aac.c
4889
rval = TRAN_BADPKT;
usr/src/uts/common/io/aac/aac.c
4904
rval = TRAN_ACCEPT;
usr/src/uts/common/io/aac/aac.c
4912
rval = aac_do_io(softs, acp);
usr/src/uts/common/io/aac/aac.c
4929
rval = TRAN_ACCEPT;
usr/src/uts/common/io/aac/aac.c
4936
rval = aac_do_io(softs, acp);
usr/src/uts/common/io/aac/aac.c
4943
rval = TRAN_ACCEPT;
usr/src/uts/common/io/aac/aac.c
4948
rval = TRAN_ACCEPT;
usr/src/uts/common/io/aac/aac.c
4952
return (rval);
usr/src/uts/common/io/aac/aac.c
4961
int rval;
usr/src/uts/common/io/aac/aac.c
5002
rval = aac_tran_start_ld(softs, acp);
usr/src/uts/common/io/aac/aac.c
5006
rval = aac_do_io(softs, acp);
usr/src/uts/common/io/aac/aac.c
5023
rval = TRAN_FATAL_ERROR;
usr/src/uts/common/io/aac/aac.c
5026
return (rval);
usr/src/uts/common/io/aac/aac.c
5034
int rval;
usr/src/uts/common/io/aac/aac.c
5056
rval = 1;
usr/src/uts/common/io/aac/aac.c
5060
rval = 1;
usr/src/uts/common/io/aac/aac.c
5063
rval = softs->dma_max;
usr/src/uts/common/io/aac/aac.c
5066
rval = -1;
usr/src/uts/common/io/aac/aac.c
5072
cap, ap->a_target, ap->a_lun, rval);
usr/src/uts/common/io/aac/aac.c
5073
return (rval);
usr/src/uts/common/io/aac/aac.c
5082
int rval;
usr/src/uts/common/io/aac/aac.c
5105
rval = (value == 1) ? 1 : 0;
usr/src/uts/common/io/aac/aac.c
5109
rval = (value == 1) ? 1 : 0;
usr/src/uts/common/io/aac/aac.c
5112
rval = -1;
usr/src/uts/common/io/aac/aac.c
5118
cap, ap->a_target, ap->a_lun, value, rval);
usr/src/uts/common/io/aac/aac.c
5119
return (rval);
usr/src/uts/common/io/aac/aac.c
5145
int rval;
usr/src/uts/common/io/aac/aac.c
5155
rval = ddi_dma_getwin(acp->buf_dma_handle, acp->cur_win,
usr/src/uts/common/io/aac/aac.c
5157
if (rval == DDI_SUCCESS)
usr/src/uts/common/io/aac/aac.c
5160
"ddi_dma_getwin() fail %d", rval);
usr/src/uts/common/io/aac/aac.c
5193
rval = ddi_dma_alloc_handle(softs->devinfo_p,
usr/src/uts/common/io/aac/aac.c
5196
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/aac/aac.c
5199
rval);
usr/src/uts/common/io/aac/aac.c
5206
rval = ddi_dma_buf_bind_handle(acp->buf_dma_handle,
usr/src/uts/common/io/aac/aac.c
5218
rval = ddi_dma_mem_alloc(acp->buf_dma_handle,
usr/src/uts/common/io/aac/aac.c
5223
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/aac/aac.c
5236
rval = ddi_dma_addr_bind_handle(acp->buf_dma_handle,
usr/src/uts/common/io/aac/aac.c
5241
switch (rval) {
usr/src/uts/common/io/aac/aac.c
5282
"Cannot bind buf for DMA: %d", rval);
usr/src/uts/common/io/aac/aac.c
5473
int rval;
usr/src/uts/common/io/aac/aac.c
5479
rval = 0;
usr/src/uts/common/io/aac/aac.c
5481
rval = 1;
usr/src/uts/common/io/aac/aac.c
5483
return (rval);
usr/src/uts/common/io/aac/aac.c
5500
int rval;
usr/src/uts/common/io/aac/aac.c
5506
rval = 0;
usr/src/uts/common/io/aac/aac.c
5508
rval = 1;
usr/src/uts/common/io/aac/aac.c
5510
return (rval);
usr/src/uts/common/io/aac/aac.c
5517
int rval;
usr/src/uts/common/io/aac/aac.c
5538
rval = scsi_hba_attach_setup(softs->devinfo_p, &softs->buf_dma_attr,
usr/src/uts/common/io/aac/aac.c
5540
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/aac/aac.c
5943
int rval;
usr/src/uts/common/io/aac/aac.c
5961
rval = aac_send_command(softs, slotp);
usr/src/uts/common/io/aac/aac.c
5967
rval = aac_fib_enqueue(softs, AAC_ADAP_NORM_CMD_Q,
usr/src/uts/common/io/aac/aac.c
5978
if (rval != AACOK) {
usr/src/uts/common/io/aac/aac.c
6423
int rval;
usr/src/uts/common/io/aac/aac.c
6426
rval = aac_return_aif_common(softs, ctx, fibpp);
usr/src/uts/common/io/aac/aac.c
6428
return (rval);
usr/src/uts/common/io/aac/aac.c
6435
int rval;
usr/src/uts/common/io/aac/aac.c
6438
rval = aac_return_aif_common(softs, ctx, fibpp);
usr/src/uts/common/io/aac/aac.c
6439
if (rval == EAGAIN) {
usr/src/uts/common/io/aac/aac.c
6441
rval = cv_wait_sig(&softs->aifq_cv, &softs->aifq_mutex);
usr/src/uts/common/io/aac/aac.c
6444
return ((rval > 0) ? 0 : EINTR);
usr/src/uts/common/io/aac/aac.c
6630
int rval;
usr/src/uts/common/io/aac/aac.c
6643
rval = aac_sync_fib(softs, SendHostTime, AAC_FIB_SIZEOF(uint32_t));
usr/src/uts/common/io/aac/aac.c
6648
if (rval != AACOK)
usr/src/uts/common/io/aac/aac.c
697
int rval = 0;
usr/src/uts/common/io/aac/aac.c
704
if ((rval = ddi_soft_state_init((void *)&aac_softstatep,
usr/src/uts/common/io/aac/aac.c
708
if ((rval = scsi_hba_init(&aac_modlinkage)) != 0) {
usr/src/uts/common/io/aac/aac.c
713
if ((rval = mod_install(&aac_modlinkage)) != 0) {
usr/src/uts/common/io/aac/aac.c
7151
int rval;
usr/src/uts/common/io/aac/aac.c
7160
rval = NDI_FAILURE;
usr/src/uts/common/io/aac/aac.c
7166
rval = ndi_devi_alloc(softs->devinfo_p, childname, DEVI_SID_NODEID,
usr/src/uts/common/io/aac/aac.c
7168
if (rval == NDI_SUCCESS) {
usr/src/uts/common/io/aac/aac.c
7173
rval = NDI_FAILURE;
usr/src/uts/common/io/aac/aac.c
718
return (rval);
usr/src/uts/common/io/aac/aac.c
7180
rval = NDI_FAILURE;
usr/src/uts/common/io/aac/aac.c
7188
rval = NDI_FAILURE;
usr/src/uts/common/io/aac/aac.c
7192
rval = ndi_devi_online(ldip, NDI_ONLINE_ATTACH);
usr/src/uts/common/io/aac/aac.c
7193
if (rval != NDI_SUCCESS) {
usr/src/uts/common/io/aac/aac.c
7205
return (rval);
usr/src/uts/common/io/aac/aac.c
725
return (rval);
usr/src/uts/common/io/aac/aac.c
7273
int rval;
usr/src/uts/common/io/aac/aac.c
7287
if ((rval = aac_probe_lun(softs, &sd)) == NDI_SUCCESS)
usr/src/uts/common/io/aac/aac.c
7288
rval = aac_config_child(softs, &sd, ldip);
usr/src/uts/common/io/aac/aac.c
7294
return (rval);
usr/src/uts/common/io/aac/aac.c
742
int rval;
usr/src/uts/common/io/aac/aac.c
7420
int rval = NDI_FAILURE;
usr/src/uts/common/io/aac/aac.c
7445
rval = NDI_FAILURE;
usr/src/uts/common/io/aac/aac.c
7450
rval = NDI_FAILURE;
usr/src/uts/common/io/aac/aac.c
7456
rval = aac_config_lun(softs, tgt, lun, childp);
usr/src/uts/common/io/aac/aac.c
746
if ((rval = mod_remove(&aac_modlinkage)) != 0)
usr/src/uts/common/io/aac/aac.c
7486
rval = NDI_SUCCESS;
usr/src/uts/common/io/aac/aac.c
7491
if (rval == NDI_SUCCESS)
usr/src/uts/common/io/aac/aac.c
7492
rval = ndi_busop_bus_config(parent, flags, op, arg, childp, 0);
usr/src/uts/common/io/aac/aac.c
7494
return (rval);
usr/src/uts/common/io/aac/aac.c
758
return (rval);
usr/src/uts/common/io/aac/aac_ioctl.c
190
int rval;
usr/src/uts/common/io/aac/aac_ioctl.c
201
rval = aac_do_io(softs, acp);
usr/src/uts/common/io/aac/aac_ioctl.c
202
if (rval == TRAN_ACCEPT) {
usr/src/uts/common/io/aac/aac_ioctl.c
203
rval = 0;
usr/src/uts/common/io/aac/aac_ioctl.c
204
} else if (rval == TRAN_BADPKT) {
usr/src/uts/common/io/aac/aac_ioctl.c
206
rval = ENXIO;
usr/src/uts/common/io/aac/aac_ioctl.c
207
} else if (rval == TRAN_BUSY) {
usr/src/uts/common/io/aac/aac_ioctl.c
209
rval = EBUSY;
usr/src/uts/common/io/aac/aac_ioctl.c
213
return (rval);
usr/src/uts/common/io/aac/aac_ioctl.c
226
int rval;
usr/src/uts/common/io/aac/aac_ioctl.c
239
rval = EFAULT;
usr/src/uts/common/io/aac/aac_ioctl.c
252
rval = EFAULT;
usr/src/uts/common/io/aac/aac_ioctl.c
259
rval = EFAULT;
usr/src/uts/common/io/aac/aac_ioctl.c
286
if ((rval = aac_send_fib(softs, acp)) != 0)
usr/src/uts/common/io/aac/aac_ioctl.c
292
rval = EIO;
usr/src/uts/common/io/aac/aac_ioctl.c
298
rval = EFAULT;
usr/src/uts/common/io/aac/aac_ioctl.c
302
rval = 0;
usr/src/uts/common/io/aac/aac_ioctl.c
305
return (rval);
usr/src/uts/common/io/aac/aac_ioctl.c
363
int rval;
usr/src/uts/common/io/aac/aac_ioctl.c
379
rval = aac_return_aif_wait(softs, ctx_p, &fibp);
usr/src/uts/common/io/aac/aac_ioctl.c
381
rval = aac_return_aif(softs, ctx_p, &fibp);
usr/src/uts/common/io/aac/aac_ioctl.c
384
rval = EFAULT;
usr/src/uts/common/io/aac/aac_ioctl.c
386
if (rval == 0) {
usr/src/uts/common/io/aac/aac_ioctl.c
394
rval = EFAULT;
usr/src/uts/common/io/aac/aac_ioctl.c
396
return (rval);
usr/src/uts/common/io/aac/aac_ioctl.c
450
int rval;
usr/src/uts/common/io/aac/aac_ioctl.c
472
rval = EFAULT;
usr/src/uts/common/io/aac/aac_ioctl.c
489
rval = EINVAL;
usr/src/uts/common/io/aac/aac_ioctl.c
496
rval = ENOMEM;
usr/src/uts/common/io/aac/aac_ioctl.c
529
rval = EINVAL;
usr/src/uts/common/io/aac/aac_ioctl.c
543
rval = ddi_umem_lock(addrlo, (((size_t)addrhi + PAGEOFFSET) & \
usr/src/uts/common/io/aac/aac_ioctl.c
545
if (rval != 0) {
usr/src/uts/common/io/aac/aac_ioctl.c
547
rval);
usr/src/uts/common/io/aac/aac_ioctl.c
561
rval = ENOMEM;
usr/src/uts/common/io/aac/aac_ioctl.c
566
rval = EFAULT;
usr/src/uts/common/io/aac/aac_ioctl.c
573
rval = EINVAL;
usr/src/uts/common/io/aac/aac_ioctl.c
581
rval = ENOMEM;
usr/src/uts/common/io/aac/aac_ioctl.c
601
if ((rval = aac_send_fib(softs, acp)) != 0)
usr/src/uts/common/io/aac/aac_ioctl.c
608
rval = EFAULT;
usr/src/uts/common/io/aac/aac_ioctl.c
612
rval = 0;
usr/src/uts/common/io/aac/aac_ioctl.c
633
return (rval);
usr/src/uts/common/io/aac/aac_ioctl.c
709
int rval = 0;
usr/src/uts/common/io/aac/aac_ioctl.c
728
rval = EBUSY;
usr/src/uts/common/io/aac/aac_ioctl.c
732
return (rval);
usr/src/uts/common/io/afe/afe.c
1648
int rval;
usr/src/uts/common/io/afe/afe.c
1658
rval = ddi_dma_alloc_handle(afep->afe_dip, &afe_dma_attr,
usr/src/uts/common/io/afe/afe.c
1660
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/afe/afe.c
1666
rval = ddi_dma_mem_alloc(afep->afe_rxdesc_dmah, size, &afe_devattr,
usr/src/uts/common/io/afe/afe.c
1669
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/afe/afe.c
1675
rval = ddi_dma_addr_bind_handle(afep->afe_rxdesc_dmah, NULL, kaddr,
usr/src/uts/common/io/afe/afe.c
1678
if (rval != DDI_DMA_MAPPED) {
usr/src/uts/common/io/afe/afe.c
1712
int rval;
usr/src/uts/common/io/afe/afe.c
1722
rval = ddi_dma_alloc_handle(afep->afe_dip, &afe_dma_attr,
usr/src/uts/common/io/afe/afe.c
1724
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/afe/afe.c
1730
rval = ddi_dma_mem_alloc(afep->afe_txdesc_dmah, size, &afe_devattr,
usr/src/uts/common/io/afe/afe.c
1733
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/afe/afe.c
1739
rval = ddi_dma_addr_bind_handle(afep->afe_txdesc_dmah, NULL, kaddr,
usr/src/uts/common/io/afe/afe.c
1742
if (rval != DDI_DMA_MAPPED) {
usr/src/uts/common/io/aggr/aggr_grp.c
2281
int rval = 0;
usr/src/uts/common/io/aggr/aggr_grp.c
2300
rval = aggr_grp_stat(grp, stat, val);
usr/src/uts/common/io/aggr/aggr_grp.c
2304
return (rval);
usr/src/uts/common/io/aggr/aggr_grp.c
3383
mac_propval_uint32_range_t *rval, *ur;
usr/src/uts/common/io/aggr/aggr_grp.c
3397
rval = kmem_alloc(rmaxcnt * sz_range32, KM_SLEEP);
usr/src/uts/common/io/aggr/aggr_grp.c
3432
rval[rcount].mpur_min = ta[i].bval;
usr/src/uts/common/io/aggr/aggr_grp.c
3435
rval[rcount++].mpur_max = ta[i].bval;
usr/src/uts/common/io/aggr/aggr_grp.c
3440
*prval = rval;
usr/src/uts/common/io/aggr/aggr_grp.c
3536
mac_propval_uint32_range_t *rval = NULL;
usr/src/uts/common/io/aggr/aggr_grp.c
3545
err = aggr_grp_possible_mtu_range(grp, &rval, &rmaxcnt, &rcount);
usr/src/uts/common/io/aggr/aggr_grp.c
3547
ASSERT(rval == NULL);
usr/src/uts/common/io/aggr/aggr_grp.c
3552
rval[i].mpur_min, rval[i].mpur_max);
usr/src/uts/common/io/aggr/aggr_grp.c
3554
kmem_free(rval, sizeof (mac_propval_uint32_range_t) * rmaxcnt);
usr/src/uts/common/io/asy.c
5227
int rval = B_FALSE;
usr/src/uts/common/io/asy.c
5232
return (rval);
usr/src/uts/common/io/asy.c
5279
rval = B_TRUE;
usr/src/uts/common/io/asy.c
5281
return (rval);
usr/src/uts/common/io/audio/drv/audiopci/audiopci.c
740
uint8_t lval, rval;
usr/src/uts/common/io/audio/drv/audiopci/audiopci.c
748
rval = val & 0xff;
usr/src/uts/common/io/audio/drv/audiopci/audiopci.c
751
rmute = rval ? 0 : CODEC_ATT_MUTE;
usr/src/uts/common/io/audio/drv/audiopci/audiopci.c
755
rval = ((((100U - rval) * CODEC_ATT_MAX) / 100) & 0xff) | rmute;
usr/src/uts/common/io/audio/drv/audiopci/audiopci.c
758
audiopci_ak_write(dev, rreg, rval);
usr/src/uts/common/io/bofi.c
2168
int rval = 0;
usr/src/uts/common/io/bofi.c
2188
if (rval == 0 && !(ep->state & BOFI_NEW_MESSAGE)) {
usr/src/uts/common/io/bofi.c
2192
rval = EINTR;
usr/src/uts/common/io/bofi.c
2210
return (rval);
usr/src/uts/common/io/bpf/bpf.c
833
bpfioctl(dev_t dev, int cmd, intptr_t addr, int mode, cred_t *cred, int *rval)
usr/src/uts/common/io/busra.c
1135
rval = NDI_FAILURE;
usr/src/uts/common/io/busra.c
1147
return (rval);
usr/src/uts/common/io/busra.c
534
int rval = NDI_FAILURE;
usr/src/uts/common/io/busra.c
664
rval = NDI_SUCCESS;
usr/src/uts/common/io/busra.c
703
rval = NDI_SUCCESS;
usr/src/uts/common/io/busra.c
710
if ((rval != NDI_SUCCESS) &&
usr/src/uts/common/io/busra.c
718
rval = NDI_RA_PARTIAL_REQ;
usr/src/uts/common/io/busra.c
723
if (rval == NDI_FAILURE) {
usr/src/uts/common/io/busra.c
735
if ((rval == NDI_SUCCESS) || (rval == NDI_RA_PARTIAL_REQ))
usr/src/uts/common/io/busra.c
739
return (rval);
usr/src/uts/common/io/busra.c
950
int rval = NDI_SUCCESS;
usr/src/uts/common/io/cardbus/cardbus.c
675
int rval;
usr/src/uts/common/io/cardbus/cardbus.c
706
rval = cardbus_unconfigure_node(dip, prim_bus, B_TRUE);
usr/src/uts/common/io/cardbus/cardbus.c
708
if (rval != NDI_SUCCESS) {
usr/src/uts/common/io/cardbus/cardbus_cfg.c
486
int len, rval;
usr/src/uts/common/io/cardbus/cardbus_cfg.c
504
rval = (int)bus_range->lo;
usr/src/uts/common/io/cardbus/cardbus_cfg.c
506
return (rval);
usr/src/uts/common/io/cardbus/cardbus_hp.c
352
int rval = HPC_SUCCESS;
usr/src/uts/common/io/cardbus/cardbus_hp.c
445
rval = HPC_ERR_NOTSUPPORTED;
usr/src/uts/common/io/cardbus/cardbus_hp.c
449
return (rval);
usr/src/uts/common/io/cmlb.c
1047
int rval;
usr/src/uts/common/io/cmlb.c
1060
rval = EINVAL;
usr/src/uts/common/io/cmlb.c
1069
rval = EINVAL;
usr/src/uts/common/io/cmlb.c
1083
rval = 0;
usr/src/uts/common/io/cmlb.c
1102
return (rval);
usr/src/uts/common/io/cmlb.c
1132
int rval;
usr/src/uts/common/io/cmlb.c
1147
rval = EINVAL;
usr/src/uts/common/io/cmlb.c
1150
rval = 0;
usr/src/uts/common/io/cmlb.c
1154
return (rval);
usr/src/uts/common/io/cmlb.c
1718
int rval;
usr/src/uts/common/io/cmlb.c
1725
rval = cmlb_read_fdisk(cl, capacity, tg_cookie);
usr/src/uts/common/io/cmlb.c
1726
if ((rval != 0) && !ISCD(cl)) {
usr/src/uts/common/io/cmlb.c
1728
return (rval);
usr/src/uts/common/io/cmlb.c
1754
rval = DK_TG_READ(cl, dkl, label_addr, buffer_size, tg_cookie);
usr/src/uts/common/io/cmlb.c
1757
switch (rval) {
usr/src/uts/common/io/cmlb.c
2289
int rval = -1;
usr/src/uts/common/io/cmlb.c
2310
rval = DK_TG_READ(cl, buf, part_start + DK_LABEL_LOC,
usr/src/uts/common/io/cmlb.c
2313
if (rval != 0) {
usr/src/uts/common/io/cmlb.c
2316
rval = EIO;
usr/src/uts/common/io/cmlb.c
2322
rval = -1;
usr/src/uts/common/io/cmlb.c
2336
rval = DK_TG_READ(cl, buf, seek_offset, sec_sz, tg_cookie);
usr/src/uts/common/io/cmlb.c
2339
if (rval != 0) {
usr/src/uts/common/io/cmlb.c
2342
rval = EIO;
usr/src/uts/common/io/cmlb.c
2346
rval = -1;
usr/src/uts/common/io/cmlb.c
2351
rval = 0;
usr/src/uts/common/io/cmlb.c
2358
return (rval);
usr/src/uts/common/io/cmlb.c
2398
int rval;
usr/src/uts/common/io/cmlb.c
2425
rval = DK_TG_READ(cl, bufp, 0, blocksize, tg_cookie);
usr/src/uts/common/io/cmlb.c
2428
if (rval != 0) {
usr/src/uts/common/io/cmlb.c
2562
rval = DK_TG_READ(cl, bufp,
usr/src/uts/common/io/cmlb.c
2567
if (rval != 0) {
usr/src/uts/common/io/cmlb.c
2674
rval = cmlb_update_ext_minor_nodes(cl, ld_count);
usr/src/uts/common/io/cmlb.c
2675
if (rval != 0) {
usr/src/uts/common/io/cmlb.c
2702
return (rval);
usr/src/uts/common/io/cmlb.c
2806
int rval = 0;
usr/src/uts/common/io/cmlb.c
2829
rval = DK_TG_READ(cl, buf, 0, lbasize, tg_cookie);
usr/src/uts/common/io/cmlb.c
2830
if (rval) {
usr/src/uts/common/io/cmlb.c
2836
rval = ESRCH;
usr/src/uts/common/io/cmlb.c
2843
rval = ESRCH;
usr/src/uts/common/io/cmlb.c
2845
rval = EINVAL;
usr/src/uts/common/io/cmlb.c
2850
rval = EINVAL;
usr/src/uts/common/io/cmlb.c
2856
rval = DK_TG_READ(cl, buf, 1, lbasize, tg_cookie);
usr/src/uts/common/io/cmlb.c
2857
if (rval) {
usr/src/uts/common/io/cmlb.c
2863
if ((rval = cmlb_validate_efi((efi_gpt_t *)buf)) != 0) {
usr/src/uts/common/io/cmlb.c
2869
rval = DK_TG_GETCAP(cl, &cap, tg_cookie);
usr/src/uts/common/io/cmlb.c
2870
if (rval) {
usr/src/uts/common/io/cmlb.c
2880
if ((rval = DK_TG_READ(cl, buf,
usr/src/uts/common/io/cmlb.c
2889
if ((rval = cmlb_validate_efi((efi_gpt_t *)buf)) != 0) {
usr/src/uts/common/io/cmlb.c
2893
if ((rval = DK_TG_READ(cl, buf, cap - 1, lbasize,
usr/src/uts/common/io/cmlb.c
2897
if ((rval = cmlb_validate_efi((efi_gpt_t *)buf)) != 0)
usr/src/uts/common/io/cmlb.c
2909
rval = DK_TG_READ(cl, buf, gpe_lba, EFI_MIN_ARRAY_SIZE, tg_cookie);
usr/src/uts/common/io/cmlb.c
2910
if (rval) {
usr/src/uts/common/io/cmlb.c
2987
if ((capacity > CMLB_EXTVTOC_LIMIT) && (rval != ESRCH) && !iofailed) {
usr/src/uts/common/io/cmlb.c
2990
return (rval);
usr/src/uts/common/io/cmlb.c
3616
int rval = 0;
usr/src/uts/common/io/cmlb.c
3624
rval = cmlb_validate_geometry(cl, B_TRUE, 0, tg_cookie);
usr/src/uts/common/io/cmlb.c
3626
if (rval == EINVAL &&
usr/src/uts/common/io/cmlb.c
3635
rval = 0;
usr/src/uts/common/io/cmlb.c
3639
if (rval) {
usr/src/uts/common/io/cmlb.c
3641
return (rval);
usr/src/uts/common/io/cmlb.c
3666
rval = ddi_copyout(tmp_geom, (void *)arg, sizeof (struct dk_geom),
usr/src/uts/common/io/cmlb.c
3668
if (rval != 0) {
usr/src/uts/common/io/cmlb.c
3669
rval = EFAULT;
usr/src/uts/common/io/cmlb.c
3673
return (rval);
usr/src/uts/common/io/cmlb.c
3705
int rval = 0;
usr/src/uts/common/io/cmlb.c
3721
rval = ddi_copyin(arg, tmp_geom, sizeof (struct dk_geom), flag);
usr/src/uts/common/io/cmlb.c
3722
if (rval != 0) {
usr/src/uts/common/io/cmlb.c
3741
return (rval);
usr/src/uts/common/io/cmlb.c
3769
int rval = 0;
usr/src/uts/common/io/cmlb.c
3777
if ((rval = cmlb_validate_geometry(cl, B_TRUE, 0, tg_cookie)) != 0) {
usr/src/uts/common/io/cmlb.c
3779
return (rval);
usr/src/uts/common/io/cmlb.c
3800
rval = ddi_copyout(dk_map32, (void *)arg, size, flag);
usr/src/uts/common/io/cmlb.c
3801
if (rval != 0) {
usr/src/uts/common/io/cmlb.c
3802
rval = EFAULT;
usr/src/uts/common/io/cmlb.c
3808
rval = ddi_copyout(cl->cl_map, (void *)arg, size, flag);
usr/src/uts/common/io/cmlb.c
3809
if (rval != 0) {
usr/src/uts/common/io/cmlb.c
3810
rval = EFAULT;
usr/src/uts/common/io/cmlb.c
3816
rval = ddi_copyout(cl->cl_map, (void *)arg, size, flag);
usr/src/uts/common/io/cmlb.c
3817
if (rval != 0) {
usr/src/uts/common/io/cmlb.c
3818
rval = EFAULT;
usr/src/uts/common/io/cmlb.c
3821
return (rval);
usr/src/uts/common/io/cmlb.c
3848
int rval = 0;
usr/src/uts/common/io/cmlb.c
3878
rval = ddi_copyin((void *)arg, dk_map32, size, flag);
usr/src/uts/common/io/cmlb.c
3879
if (rval != 0) {
usr/src/uts/common/io/cmlb.c
3890
rval = ddi_copyin((void *)arg, dk_map, size, flag);
usr/src/uts/common/io/cmlb.c
3891
if (rval != 0) {
usr/src/uts/common/io/cmlb.c
3898
rval = ddi_copyin((void *)arg, dk_map, size, flag);
usr/src/uts/common/io/cmlb.c
3899
if (rval != 0) {
usr/src/uts/common/io/cmlb.c
3924
return (rval);
usr/src/uts/common/io/cmlb.c
3956
int rval = 0;
usr/src/uts/common/io/cmlb.c
3964
rval = cmlb_validate_geometry(cl, B_TRUE, 0, tg_cookie);
usr/src/uts/common/io/cmlb.c
3967
if (rval == EINVAL &&
usr/src/uts/common/io/cmlb.c
3976
rval = 0;
usr/src/uts/common/io/cmlb.c
3980
if (rval) {
usr/src/uts/common/io/cmlb.c
3982
return (rval);
usr/src/uts/common/io/cmlb.c
4058
return (rval);
usr/src/uts/common/io/cmlb.c
4073
int rval = 0;
usr/src/uts/common/io/cmlb.c
4077
rval = cmlb_validate_geometry(cl, B_TRUE, 0, tg_cookie);
usr/src/uts/common/io/cmlb.c
4080
if (rval == EINVAL &&
usr/src/uts/common/io/cmlb.c
4089
rval = 0;
usr/src/uts/common/io/cmlb.c
4093
if (rval) {
usr/src/uts/common/io/cmlb.c
4095
return (rval);
usr/src/uts/common/io/cmlb.c
4137
return (rval);
usr/src/uts/common/io/cmlb.c
4149
int rval = 0;
usr/src/uts/common/io/cmlb.c
4177
rval = DK_TG_READ(cl, buffer, tgt_lba, user_efi.dki_length, tg_cookie);
usr/src/uts/common/io/cmlb.c
4178
if (rval == 0 && ddi_copyout(buffer, user_efi.dki_data,
usr/src/uts/common/io/cmlb.c
4180
rval = EFAULT;
usr/src/uts/common/io/cmlb.c
4183
return (rval);
usr/src/uts/common/io/cmlb.c
4258
int rval = 0;
usr/src/uts/common/io/cmlb.c
4271
rval = DK_TG_READ(cl, buffer, 1, cl->cl_sys_blocksize, tg_cookie);
usr/src/uts/common/io/cmlb.c
4272
if (rval != 0)
usr/src/uts/common/io/cmlb.c
4277
if ((rval = cmlb_validate_efi(buffer)) != 0)
usr/src/uts/common/io/cmlb.c
4284
rval = ESRCH;
usr/src/uts/common/io/cmlb.c
4292
rval = DK_TG_READ(cl, buffer, gpe_lba, cl->cl_sys_blocksize, tg_cookie);
usr/src/uts/common/io/cmlb.c
4294
if (rval) {
usr/src/uts/common/io/cmlb.c
4310
rval = EFAULT;
usr/src/uts/common/io/cmlb.c
4314
return (rval);
usr/src/uts/common/io/cmlb.c
4347
int shift, rval = 0;
usr/src/uts/common/io/cmlb.c
4426
if ((rval = cmlb_build_label_vtoc(cl, &user_vtoc)) == 0) {
usr/src/uts/common/io/cmlb.c
4427
if ((rval = cmlb_write_label(cl, tg_cookie)) == 0) {
usr/src/uts/common/io/cmlb.c
4438
return (rval);
usr/src/uts/common/io/cmlb.c
4448
int shift, rval = 0;
usr/src/uts/common/io/cmlb.c
4515
if ((rval = cmlb_build_label_vtoc(cl, &user_vtoc)) == 0) {
usr/src/uts/common/io/cmlb.c
4516
if ((rval = cmlb_write_label(cl, tg_cookie)) == 0) {
usr/src/uts/common/io/cmlb.c
4526
return (rval);
usr/src/uts/common/io/cmlb.c
4693
int rval;
usr/src/uts/common/io/cmlb.c
4708
rval = cmlb_validate_efi(gpt);
usr/src/uts/common/io/cmlb.c
4709
if (rval == 0) {
usr/src/uts/common/io/cmlb.c
4712
if (rval = DK_TG_WRITE(cl, gpt, 1, cl->cl_sys_blocksize,
usr/src/uts/common/io/cmlb.c
4719
rval = DK_TG_GETCAP(cl, &cap, tg_cookie);
usr/src/uts/common/io/cmlb.c
4720
if (rval) {
usr/src/uts/common/io/cmlb.c
4724
if ((rval = DK_TG_READ(cl, gpt, cap - 1, cl->cl_sys_blocksize,
usr/src/uts/common/io/cmlb.c
4729
rval = cmlb_validate_efi(gpt);
usr/src/uts/common/io/cmlb.c
4730
if (rval == 0) {
usr/src/uts/common/io/cmlb.c
4735
if ((rval = DK_TG_WRITE(cl, gpt, cap - 1, cl->cl_sys_blocksize,
usr/src/uts/common/io/cmlb.c
4745
if ((rval = DK_TG_READ(cl, gpt, cap - 2,
usr/src/uts/common/io/cmlb.c
4750
rval = cmlb_validate_efi(gpt);
usr/src/uts/common/io/cmlb.c
4751
if (rval == 0) {
usr/src/uts/common/io/cmlb.c
4757
if ((rval = DK_TG_WRITE(cl, gpt, cap - 2,
usr/src/uts/common/io/cmlb.c
4793
int rval;
usr/src/uts/common/io/cmlb.c
4802
rval = DK_TG_WRITE(cl, dkl, label_addr, cl->cl_sys_blocksize,
usr/src/uts/common/io/cmlb.c
4805
if (rval != 0) {
usr/src/uts/common/io/cmlb.c
4806
return (rval);
usr/src/uts/common/io/cmlb.c
4833
rval = DK_TG_WRITE(cl, dkl, blk, cl->cl_sys_blocksize,
usr/src/uts/common/io/cmlb.c
4837
if (rval != 0) {
usr/src/uts/common/io/cmlb.c
4842
return (rval);
usr/src/uts/common/io/cmlb.c
4908
int rval;
usr/src/uts/common/io/cmlb.c
4955
rval = cmlb_set_vtoc(cl, dkl, tg_cookie);
usr/src/uts/common/io/cmlb.c
4958
return (rval);
usr/src/uts/common/io/cmlb.c
4972
int shift, rval = 0;
usr/src/uts/common/io/cmlb.c
5010
rval = EFAULT;
usr/src/uts/common/io/cmlb.c
5037
rval = DK_TG_WRITE(cl, buffer, tgt_lba, user_efi.dki_length,
usr/src/uts/common/io/cmlb.c
5040
if (rval == 0) {
usr/src/uts/common/io/cmlb.c
5047
return (rval);
usr/src/uts/common/io/cmlb.c
5075
int rval;
usr/src/uts/common/io/cmlb.c
5096
if ((rval = DK_TG_READ(cl, mboot, 0, buffer_size, tg_cookie)) == 0) {
usr/src/uts/common/io/cmlb.c
5099
rval = EFAULT;
usr/src/uts/common/io/cmlb.c
5103
return (rval);
usr/src/uts/common/io/cmlb.c
5133
int rval;
usr/src/uts/common/io/cmlb.c
5164
rval = DK_TG_WRITE(cl, mboot, 0, cl->cl_sys_blocksize, tg_cookie);
usr/src/uts/common/io/cmlb.c
5168
if (rval == 0) {
usr/src/uts/common/io/cmlb.c
5173
rval = cmlb_update_fdisk_and_vtoc(cl, tg_cookie);
usr/src/uts/common/io/cmlb.c
5174
if ((!cl->cl_f_geometry_is_valid) || (rval != 0)) {
usr/src/uts/common/io/cmlb.c
5177
return (rval);
usr/src/uts/common/io/cmlb.c
5186
if (rval == 0) {
usr/src/uts/common/io/cmlb.c
5198
return (rval);
usr/src/uts/common/io/cmlb.c
807
int rval;
usr/src/uts/common/io/cmlb.c
824
rval = cmlb_validate_geometry((struct cmlb_lun *)cmlbhandle, B_TRUE,
usr/src/uts/common/io/cmlb.c
827
if (rval == ENOTSUP) {
usr/src/uts/common/io/cmlb.c
835
ret = rval;
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd.c
353
cred_t *credp, int *rval)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd.c
71
cred_t *credp, int *rval);
usr/src/uts/common/io/comstar/port/fcoet/fcoet.c
106
cred_t *credp, int *rval);
usr/src/uts/common/io/comstar/port/fcoet/fcoet.c
408
cred_t *credp, int *rval)
usr/src/uts/common/io/comstar/port/fcoet/fcoet.c
429
*rval = ret;
usr/src/uts/common/io/comstar/port/fct/fct.c
225
cred_t *credp, int *rval)
usr/src/uts/common/io/comstar/port/fct/fct.c
56
cred_t *credp, int *rval);
usr/src/uts/common/io/comstar/port/fct/fct.c
768
fct_status_t rval;
usr/src/uts/common/io/comstar/port/fct/fct.c
779
FCT_CMD_FORCE_LIP, &rval);
usr/src/uts/common/io/comstar/port/fct/fct.c
780
if (rval != FCT_SUCCESS) {
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
3093
int rval = B_TRUE;
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
3106
rval = B_FALSE;
usr/src/uts/common/io/comstar/port/iscsit/iscsit.c
3111
return (rval);
usr/src/uts/common/io/comstar/port/iscsit/iscsit_isns.c
1924
int rval = 0;
usr/src/uts/common/io/comstar/port/iscsit/iscsit_isns.c
1958
rval = 1;
usr/src/uts/common/io/comstar/port/iscsit/iscsit_isns.c
1965
rval = 1;
usr/src/uts/common/io/comstar/port/iscsit/iscsit_isns.c
1972
if (rval == 0 &&
usr/src/uts/common/io/comstar/port/iscsit/iscsit_isns.c
1974
rval = 1;
usr/src/uts/common/io/comstar/port/iscsit/iscsit_isns.c
1978
return (rval);
usr/src/uts/common/io/comstar/port/iscsit/iscsit_isns.c
1987
int rval = 0;
usr/src/uts/common/io/comstar/port/iscsit/iscsit_isns.c
1995
rval = 1;
usr/src/uts/common/io/comstar/port/iscsit/iscsit_isns.c
2007
rval = 1;
usr/src/uts/common/io/comstar/port/iscsit/iscsit_isns.c
2017
return (rval);
usr/src/uts/common/io/comstar/port/qlt/qlt.c
10074
int esize, rval;
usr/src/uts/common/io/comstar/port/qlt/qlt.c
10114
if ((rval = qlt_27xx_dump_ram(qlt, MBC_DUMP_RAM_EXTENDED,
usr/src/uts/common/io/comstar/port/qlt/qlt.c
10117
"esize=0\n", rval, start, esize / 4);
usr/src/uts/common/io/comstar/port/qlt/qlt.c
10461
int rval, esize;
usr/src/uts/common/io/comstar/port/qlt/qlt.c
10475
if ((rval = qlt_27xx_dump_ram(qlt, MBC_MPI_RAM, entry->addr,
usr/src/uts/common/io/comstar/port/qlt/qlt.c
10478
"esize=0\n", rval, entry->addr, entry->count);
usr/src/uts/common/io/comstar/port/qlt/qlt.c
10617
int rval = QLT_SUCCESS;
usr/src/uts/common/io/comstar/port/qlt/qlt.c
10628
rval = qlt_read_risc_ram(qlt, risc_address,
usr/src/uts/common/io/comstar/port/qlt/qlt.c
10631
rval = qlt_mbx_mpi_ram(qlt, risc_address,
usr/src/uts/common/io/comstar/port/qlt/qlt.c
10635
if (rval != QLT_SUCCESS) {
usr/src/uts/common/io/comstar/port/qlt/qlt.c
10638
return (rval);
usr/src/uts/common/io/comstar/port/qlt/qlt.c
10648
return (rval);
usr/src/uts/common/io/comstar/port/qlt/qlt.c
145
cred_t *credp, int *rval);
usr/src/uts/common/io/comstar/port/qlt/qlt.c
2716
cred_t *credp, int *rval)
usr/src/uts/common/io/comstar/port/qlt/qlt.c
2997
fct_status_t rval;
usr/src/uts/common/io/comstar/port/qlt/qlt.c
3008
rval = qlt_mailbox_command(qlt, mcp);
usr/src/uts/common/io/comstar/port/qlt/qlt.c
3009
if (rval != FCT_SUCCESS) {
usr/src/uts/common/io/comstar/port/qlt/qlt.c
3010
EL(qlt, "qlt force lip MB failed: rval=%x\n", rval);
usr/src/uts/common/io/comstar/port/qlt/qlt.c
3015
rval = FCT_FAILURE;
usr/src/uts/common/io/comstar/port/qlt/qlt.c
3019
return (rval);
usr/src/uts/common/io/comstar/port/qlt/qlt.c
9348
int rval = DDI_SUCCESS;
usr/src/uts/common/io/comstar/port/qlt/qlt.c
9359
return (rval);
usr/src/uts/common/io/comstar/port/qlt/qlt.c
9388
size_t rval, rval1;
usr/src/uts/common/io/comstar/port/qlt/qlt.c
9426
rval = snprintf(fmt1, (size_t)EL_BUFFER_RESERVE,
usr/src/uts/common/io/comstar/port/qlt/qlt.c
9430
rval1 = rval;
usr/src/uts/common/io/comstar/port/qlt/qlt.c
9434
fmt = fmt1 + rval;
usr/src/uts/common/io/comstar/port/qlt/qlt.c
9436
(size_t)(uint32_t)((int)EL_BUFFER_RESERVE - rval), s, vl);
usr/src/uts/common/io/comstar/port/qlt/qlt.c
9439
rval += tmp;
usr/src/uts/common/io/comstar/port/qlt/qlt.c
9440
if (rval > QL_LOG_LENGTH - 1) {
usr/src/uts/common/io/comstar/port/qlt/qlt.c
9441
left = rval - (QL_LOG_LENGTH - 1);
usr/src/uts/common/io/comstar/port/qlt/qlt.c
9495
(void) strncpy(entry->buf, fmt1, rval);
usr/src/uts/common/io/comstar/port/qlt/qlt.c
9496
entry->buf[rval] = 0;
usr/src/uts/common/io/comstar/port/qlt/qlt.c
9560
int rval;
usr/src/uts/common/io/comstar/port/qlt/qlt.c
9567
rval = qlt_read_string_instance_prop(qlt, "adapter-wwnn", &prop_val);
usr/src/uts/common/io/comstar/port/qlt/qlt.c
9568
if (rval == DDI_PROP_SUCCESS) {
usr/src/uts/common/io/comstar/port/qlt/qlt.c
9569
rval = qlt_convert_string_to_ull(prop_val, radix, &wwnn);
usr/src/uts/common/io/comstar/port/qlt/qlt.c
9571
if (rval == DDI_PROP_SUCCESS) {
usr/src/uts/common/io/comstar/port/qlt/qlt.c
9572
rval = qlt_read_string_instance_prop(qlt, "adapter-wwpn",
usr/src/uts/common/io/comstar/port/qlt/qlt.c
9574
if (rval == DDI_PROP_SUCCESS) {
usr/src/uts/common/io/comstar/port/qlt/qlt.c
9575
rval = qlt_convert_string_to_ull(prop_val, radix,
usr/src/uts/common/io/comstar/port/qlt/qlt.c
9579
if (rval == DDI_PROP_SUCCESS) {
usr/src/uts/common/io/comstar/stmf/stmf.c
530
cred_t *credp, int *rval)
usr/src/uts/common/io/comstar/stmf/stmf.c
89
cred_t *credp, int *rval);
usr/src/uts/common/io/consconfig_dacf.c
1103
int err, rval;
usr/src/uts/common/io/consconfig_dacf.c
1107
FKIOCTL, kcred, &rval);
usr/src/uts/common/io/consconfig_dacf.c
1111
FKIOCTL, kcred, &rval);
usr/src/uts/common/io/consconfig_dacf.c
1125
(intptr_t)&kbdtranslatable, FKIOCTL, kcred, &rval);
usr/src/uts/common/io/consconfig_dacf.c
1156
int err, rval;
usr/src/uts/common/io/consconfig_dacf.c
1202
FKIOCTL, kcred, &rval);
usr/src/uts/common/io/consconfig_dacf.c
1256
int err, rval;
usr/src/uts/common/io/consconfig_dacf.c
1277
FKIOCTL, kcred, &rval);
usr/src/uts/common/io/consconfig_dacf.c
1414
int rval;
usr/src/uts/common/io/consconfig_dacf.c
1422
FKIOCTL, kcred, &rval);
usr/src/uts/common/io/consconfig_dacf.c
1428
FKIOCTL, kcred, &rval);
usr/src/uts/common/io/consconfig_dacf.c
2031
int rval;
usr/src/uts/common/io/consconfig_dacf.c
2042
prop->cp_muxid, FKIOCTL, kcred, &rval);
usr/src/uts/common/io/consconfig_dacf.c
2134
int rval;
usr/src/uts/common/io/consconfig_dacf.c
2165
(intptr_t)"ldterm", FKIOCTL, K_TO_K, kcred, &rval);
usr/src/uts/common/io/consconfig_dacf.c
2168
kcred, &rval);
usr/src/uts/common/io/consconfig_dacf.c
473
int err, rval;
usr/src/uts/common/io/consconfig_dacf.c
478
FKIOCTL, kcred, &rval);
usr/src/uts/common/io/consconfig_dacf.c
493
int err, rval;
usr/src/uts/common/io/consconfig_dacf.c
498
FKIOCTL, kcred, &rval);
usr/src/uts/common/io/consconfig_dacf.c
559
int err, rval;
usr/src/uts/common/io/consconfig_dacf.c
576
err = ldi_ioctl(lh, I_STR, (intptr_t)&strioc, FKIOCTL, kcred, &rval);
usr/src/uts/common/io/consconfig_dacf.c
650
int rval;
usr/src/uts/common/io/consconfig_dacf.c
750
rval = space_store("consconfig", (uintptr_t)sp);
usr/src/uts/common/io/consconfig_dacf.c
751
ASSERT(rval == 0);
usr/src/uts/common/io/consconfig_dacf.c
759
int err, rval;
usr/src/uts/common/io/consconfig_dacf.c
802
FKIOCTL, kcred, &rval);
usr/src/uts/common/io/consconfig_dacf.c
820
int rval;
usr/src/uts/common/io/consconfig_dacf.c
944
FKIOCTL, kcred, &rval) == 0)
usr/src/uts/common/io/cpuid_drv.c
151
cpuid_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *cr, int *rval)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
7060
*valp = be16_to_cpu(c.u.mdio.rval);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
7090
c.u.mdio.rval = cpu_to_be16(val);
usr/src/uts/common/io/cxgbe/firmware/t4fw_interface.h
4321
__be16 rval;
usr/src/uts/common/io/devinfo.c
4092
size_t rval;
usr/src/uts/common/io/devinfo.c
4128
rval = 0;
usr/src/uts/common/io/devinfo.c
4136
rval = DI_ALL_PTR(st)->map_size;
usr/src/uts/common/io/devinfo.c
4138
ASSERT(rval >= sizeof (struct di_all));
usr/src/uts/common/io/devinfo.c
4139
ASSERT(rval <= di_cache.cache_size);
usr/src/uts/common/io/devinfo.c
4148
rval = di_cache_update(st);
usr/src/uts/common/io/devinfo.c
4158
ASSERT(rval == 0 || strcmp(DI_ALL_PTR(st)->root_path, "/") == 0);
usr/src/uts/common/io/devinfo.c
4160
return ((int)rval);
usr/src/uts/common/io/devinfo.c
4173
int rval;
usr/src/uts/common/io/devinfo.c
4193
rval = di_snapshot_and_clean(st);
usr/src/uts/common/io/devinfo.c
4195
if (rval == 0) {
usr/src/uts/common/io/devinfo.c
4200
DI_ALL_PTR(st)->map_size = rval;
usr/src/uts/common/io/devinfo.c
4218
all->map_size = rval;
usr/src/uts/common/io/devinfo.c
4226
return (rval);
usr/src/uts/common/io/dls/dls_link.c
289
int rval;
usr/src/uts/common/io/dls/dls_link.c
304
i_dls_head_hold, &rval) != 0 || (rval != 0)) {
usr/src/uts/common/io/dls/dls_link.c
356
int err, rval;
usr/src/uts/common/io/dls/dls_link.c
433
i_dls_head_hold, &rval) != 0 || (rval != 0)) {
usr/src/uts/common/io/emul64.c
1054
return (rval);
usr/src/uts/common/io/emul64.c
656
int rval = 0;
usr/src/uts/common/io/emul64.c
669
rval = 1 << 24; /* Limit to 16MB max transfer */
usr/src/uts/common/io/emul64.c
672
rval = 1;
usr/src/uts/common/io/emul64.c
675
rval = 1;
usr/src/uts/common/io/emul64.c
678
rval = 1;
usr/src/uts/common/io/emul64.c
681
rval = 1;
usr/src/uts/common/io/emul64.c
684
rval = 1;
usr/src/uts/common/io/emul64.c
687
rval = 1;
usr/src/uts/common/io/emul64.c
690
rval = 1;
usr/src/uts/common/io/emul64.c
693
rval = emul64->emul64_initiator_id;
usr/src/uts/common/io/emul64.c
696
rval = 1;
usr/src/uts/common/io/emul64.c
701
rval = 1;
usr/src/uts/common/io/emul64.c
705
rval = -1;
usr/src/uts/common/io/emul64.c
711
return (rval);
usr/src/uts/common/io/emul64.c
730
int rval = 0;
usr/src/uts/common/io/emul64.c
754
rval = 1;
usr/src/uts/common/io/emul64.c
757
rval = 1;
usr/src/uts/common/io/emul64.c
760
rval = 1;
usr/src/uts/common/io/emul64.c
763
rval = 1;
usr/src/uts/common/io/emul64.c
766
rval = -1;
usr/src/uts/common/io/emul64.c
769
rval = 1;
usr/src/uts/common/io/emul64.c
773
rval = TRUE;
usr/src/uts/common/io/emul64.c
776
rval = TRUE;
usr/src/uts/common/io/emul64.c
779
rval = -1;
usr/src/uts/common/io/emul64.c
786
return (rval);
usr/src/uts/common/io/emul64.c
938
int rval = DDI_FAILURE;
usr/src/uts/common/io/emul64.c
960
rval = DDI_SUCCESS;
usr/src/uts/common/io/emul64.c
970
rval = DDI_SUCCESS;
usr/src/uts/common/io/emul64.c
975
return (rval);
usr/src/uts/common/io/emul64.c
994
int rval = TRAN_ACCEPT;
usr/src/uts/common/io/emul64_bsd.c
569
int rval = 0;
usr/src/uts/common/io/emul64_bsd.c
600
rval = bsd_mode_sense_dad_mode_geometry(pkt);
usr/src/uts/common/io/emul64_bsd.c
603
rval = bsd_mode_sense_dad_mode_err_recov(pkt);
usr/src/uts/common/io/emul64_bsd.c
606
rval = bsd_mode_sense_modepage_disco_reco(pkt);
usr/src/uts/common/io/emul64_bsd.c
609
rval = bsd_mode_sense_dad_mode_format(pkt);
usr/src/uts/common/io/emul64_bsd.c
612
rval = bsd_mode_sense_dad_mode_cache(pkt);
usr/src/uts/common/io/emul64_bsd.c
617
rval = EIO;
usr/src/uts/common/io/emul64_bsd.c
621
return (rval);
usr/src/uts/common/io/emul64_bsd.c
636
int rval = 0;
usr/src/uts/common/io/emul64_bsd.c
690
rval = 0;
usr/src/uts/common/io/emul64_bsd.c
692
return (rval);
usr/src/uts/common/io/emul64_bsd.c
704
int rval = 0;
usr/src/uts/common/io/emul64_bsd.c
743
rval = 0;
usr/src/uts/common/io/emul64_bsd.c
745
return (rval);
usr/src/uts/common/io/emul64_bsd.c
753
int rval = 0;
usr/src/uts/common/io/emul64_bsd.c
796
rval = 0;
usr/src/uts/common/io/emul64_bsd.c
798
return (rval);
usr/src/uts/common/io/emul64_bsd.c
811
int rval = 0;
usr/src/uts/common/io/emul64_bsd.c
857
rval = 0;
usr/src/uts/common/io/emul64_bsd.c
859
return (rval);
usr/src/uts/common/io/emul64_bsd.c
871
int rval = 0;
usr/src/uts/common/io/emul64_bsd.c
910
rval = 0;
usr/src/uts/common/io/emul64_bsd.c
912
return (rval);
usr/src/uts/common/io/emul64_bsd.c
928
int rval = 0;
usr/src/uts/common/io/emul64_bsd.c
945
return (rval);
usr/src/uts/common/io/emul64_bsd.c
954
int rval = 0;
usr/src/uts/common/io/emul64_bsd.c
972
return (rval);
usr/src/uts/common/io/ena/ena.c
1559
uint32_t rval;
usr/src/uts/common/io/ena/ena.c
1577
rval = ena_hw_bar_read32(ena, ENAHW_REG_CAPS);
usr/src/uts/common/io/ena/ena.c
1578
dma_width = ENAHW_CAPS_DMA_ADDR_WIDTH(rval);
usr/src/uts/common/io/ena/ena.c
1586
cmd_timeout = MSEC2NSEC(ENAHW_CAPS_ADMIN_CMD_TIMEOUT(rval) * 100);
usr/src/uts/common/io/ena/ena.c
552
uint32_t rval, wval, reason_lsb, reason_msb;
usr/src/uts/common/io/ena/ena.c
555
rval = ena_hw_bar_read32(ena, ENAHW_REG_DEV_STS);
usr/src/uts/common/io/ena/ena.c
556
if ((rval & ENAHW_DEV_STS_READY_MASK) == 0) {
usr/src/uts/common/io/ena/ena.c
561
rval = ena_hw_bar_read32(ena, ENAHW_REG_CAPS);
usr/src/uts/common/io/ena/ena.c
567
timeout = MSEC2NSEC(ENAHW_CAPS_RESET_TIMEOUT(rval) * 100);
usr/src/uts/common/io/ena/ena.c
600
rval = ena_hw_bar_read32(ena, ENAHW_REG_DEV_STS);
usr/src/uts/common/io/ena/ena.c
602
if ((rval & ENAHW_DEV_STS_RESET_IN_PROGRESS_MASK) != 0)
usr/src/uts/common/io/ena/ena.c
624
rval = ena_hw_bar_read32(ena, ENAHW_REG_DEV_STS);
usr/src/uts/common/io/ena/ena.c
626
if ((rval & ENAHW_DEV_STS_RESET_IN_PROGRESS_MASK) == 0) {
usr/src/uts/common/io/fcoe/fcoe.c
110
cred_t *credp, int *rval);
usr/src/uts/common/io/fcoe/fcoe.c
418
int rval;
usr/src/uts/common/io/fcoe/fcoe.c
420
rval = ddi_prop_get_int(DDI_DEV_T_ANY, client_dip,
usr/src/uts/common/io/fcoe/fcoe.c
422
if (rval == -1) {
usr/src/uts/common/io/fcoe/fcoe.c
428
(void) sprintf((char *)client_addr, "%x,0", rval);
usr/src/uts/common/io/fcoe/fcoe.c
527
cred_t *credp, int *rval)
usr/src/uts/common/io/fcoe/fcoe_fc.c
435
int rval = 0;
usr/src/uts/common/io/fcoe/fcoe_fc.c
454
rval = ndi_devi_online(child, NDI_ONLINE_ATTACH);
usr/src/uts/common/io/fcoe/fcoe_fc.c
455
if (rval != NDI_SUCCESS) {
usr/src/uts/common/io/fcoe/fcoe_fc.c
462
return (rval);
usr/src/uts/common/io/fcoe/fcoe_fc.c
469
int rval = 0;
usr/src/uts/common/io/fcoe/fcoe_fc.c
494
rval = ndi_devi_offline(mac->fm_client_dev, NDI_DEVI_REMOVE);
usr/src/uts/common/io/fcoe/fcoe_fc.c
495
if (rval != NDI_SUCCESS) {
usr/src/uts/common/io/fd.c
1294
int rval = 0;
usr/src/uts/common/io/fd.c
1312
rval = EFAULT;
usr/src/uts/common/io/fd.c
1335
rval = EFAULT;
usr/src/uts/common/io/fd.c
1341
rval = EFAULT;
usr/src/uts/common/io/fd.c
1382
rval = EFAULT;
usr/src/uts/common/io/fd.c
1402
rval = EFAULT;
usr/src/uts/common/io/fd.c
1424
rval = EFAULT;
usr/src/uts/common/io/fd.c
1439
rval = EFAULT;
usr/src/uts/common/io/fd.c
1446
if (rval != 0)
usr/src/uts/common/io/fd.c
1476
rval = fdgetlabel(fjp, unit);
usr/src/uts/common/io/fd.c
1478
if (rval) {
usr/src/uts/common/io/fd.c
1480
rval = EINVAL;
usr/src/uts/common/io/fd.c
1497
rval = EFAULT;
usr/src/uts/common/io/fd.c
1506
rval = EFAULT;
usr/src/uts/common/io/fd.c
1524
rval = EFAULT;
usr/src/uts/common/io/fd.c
1536
rval = EFAULT;
usr/src/uts/common/io/fd.c
1542
if (rval != 0)
usr/src/uts/common/io/fd.c
1550
if ((rval = fd_build_label_vtoc(fjp, fdp, &vtoc, label)) == 0) {
usr/src/uts/common/io/fd.c
1552
rval = fjp->fj_ops->fco_rw(fjp, unit, FDWRITE,
usr/src/uts/common/io/fd.c
1565
rval = EFAULT;
usr/src/uts/common/io/fd.c
1569
rval = fd_check_media(dev, state);
usr/src/uts/common/io/fd.c
1573
rval = EFAULT;
usr/src/uts/common/io/fd.c
1579
rval = EFAULT;
usr/src/uts/common/io/fd.c
1585
rval = EFAULT;
usr/src/uts/common/io/fd.c
1593
rval = EINVAL;
usr/src/uts/common/io/fd.c
1618
rval = EINVAL;
usr/src/uts/common/io/fd.c
1640
rval = ENOSYS;
usr/src/uts/common/io/fd.c
1645
rval = EFAULT;
usr/src/uts/common/io/fd.c
1698
rval = EFAULT;
usr/src/uts/common/io/fd.c
1704
rval = EFAULT;
usr/src/uts/common/io/fd.c
1710
rval = EFAULT;
usr/src/uts/common/io/fd.c
1725
rval = EFAULT;
usr/src/uts/common/io/fd.c
1731
rval = fd_get_media_info(fjp, (caddr_t)arg, flag);
usr/src/uts/common/io/fd.c
1747
rval = EFAULT;
usr/src/uts/common/io/fd.c
1765
rval = EFAULT;
usr/src/uts/common/io/fd.c
1773
if (rval != 0)
usr/src/uts/common/io/fd.c
1794
rval = physio(fd_strategy, (struct buf *)0, dev,
usr/src/uts/common/io/fd.c
1809
rval = fjp->fj_ops->fco_format(fjp, unit, cyl, head,
usr/src/uts/common/io/fd.c
1818
rval = EINVAL;
usr/src/uts/common/io/fd.c
1823
rval = fd_rawioctl(fjp, unit, (caddr_t)arg, flag);
usr/src/uts/common/io/fd.c
1830
rval = ENOTTY;
usr/src/uts/common/io/fd.c
1833
return (rval);
usr/src/uts/common/io/fd.c
2016
int rval = 0;
usr/src/uts/common/io/fd.c
2139
rval = fjp->fj_ops->fco_rwioctl(fjp, unit, (caddr_t)&fdr);
usr/src/uts/common/io/fd.c
2141
if (ucount && flag == B_READ && rval == 0) {
usr/src/uts/common/io/fd.c
2143
rval = EFAULT;
usr/src/uts/common/io/fd.c
2147
rval = EFAULT;
usr/src/uts/common/io/fd.c
2153
return (rval);
usr/src/uts/common/io/fd.c
227
int rval;
usr/src/uts/common/io/fd.c
238
rval = DDI_SUCCESS;
usr/src/uts/common/io/fd.c
240
rval = DDI_FAILURE;
usr/src/uts/common/io/fd.c
244
rval = DDI_SUCCESS;
usr/src/uts/common/io/fd.c
247
rval = DDI_FAILURE;
usr/src/uts/common/io/fd.c
249
return (rval);
usr/src/uts/common/io/fd.c
566
int rval = DDI_SUCCESS;
usr/src/uts/common/io/fd.c
573
return (rval);
usr/src/uts/common/io/fd.c
578
rval = DDI_FAILURE;
usr/src/uts/common/io/fd.c
615
rval = DDI_FAILURE;
usr/src/uts/common/io/fd.c
620
rval = DDI_FAILURE;
usr/src/uts/common/io/fd.c
623
return (rval);
usr/src/uts/common/io/fd.c
662
int rval;
usr/src/uts/common/io/fd.c
723
rval = fdgetlabel(fjp, unit);
usr/src/uts/common/io/fd.c
725
if (rval) {
usr/src/uts/common/io/fd.c
779
int rval;
usr/src/uts/common/io/fd.c
813
rval = ENXIO;
usr/src/uts/common/io/fd.c
819
if (!(rval = fjp->fj_ops->fco_rw(fjp, unit,
usr/src/uts/common/io/fd.c
829
!(rval = fjp->fj_ops->fco_rw(fjp, unit,
usr/src/uts/common/io/fd.c
833
if (rval == ENXIO)
usr/src/uts/common/io/fd.c
872
if (rval) {
usr/src/uts/common/io/fd.c
953
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10007
int32_t rval = DFC_SD_OK;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10029
rval = DFC_SD_ERROR_INVALID_PORT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10044
rval = DFC_SD_ERROR_OUT_OF_HANDLES;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10076
rval = DFC_SD_ERROR_INVALID_ARG;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10101
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10112
int32_t rval = DFC_SD_OK;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10125
rval = DFC_SD_ERROR_INVALID_PORT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10139
rval = DFC_SD_ERROR_GENERIC;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10144
rval = DFC_SD_ERROR_GENERIC;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10175
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10191
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10199
rval = DFC_ARG_NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10208
rval = DFC_ARG_NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1021
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10217
rval = DFC_ARG_NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10226
rval = DFC_ARG_NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10241
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10253
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10263
rval = DFC_SYSRES_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10298
rval = DFC_IO_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1030
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10306
rval = DFC_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10310
rval = DFC_IO_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10347
rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1035
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10354
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10366
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10385
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10396
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10411
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10427
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1044
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10496
rval = DFC_ARG_TOOSMALL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10506
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1051
rval = emlxs_fca_reset(port, FC_FCA_LINK_RESET);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10524
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1053
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1054
fcio->fcio_errno = rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1055
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10576
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1058
rval = ENOTSUP;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10587
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10599
rval = DFC_SYSRES_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1062
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10636
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10646
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10660
rval = DFC_SYSRES_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10687
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10699
rval = DFC_SYSRES_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1071
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10722
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10734
rval = DFC_SYSRES_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10757
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10767
rval = DFC_DRVRES_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10778
rval = DFC_COPYIN_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1078
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10799
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10809
rval = DFC_DRVRES_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1082
rval = emlxs_reset(port, FC_FCA_RESET);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10824
if (rval)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1084
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1085
fcio->fcio_errno = rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10858
rval = DFC_COPYOUT_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1086
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10881
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10898
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1090
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10917
rval = DFC_SYSRES_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10956
rval = DFC_NO_DATA;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10958
rval = DFC_IO_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10971
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
10985
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1099
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
11013
rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_WAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
11014
if (rval != MBX_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
11017
emlxs_mb_cmd_xlate(mb->mbxCommand), rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
11019
rval = DFC_DRV_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
11026
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1104
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
11040
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
11067
rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_WAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
11068
if (rval != MBX_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
11071
emlxs_mb_cmd_xlate(mb->mbxCommand), rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
11073
rval = DFC_DRV_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
11085
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
11095
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
11109
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1115
rval = emlxs_fca_port_manage(port, &pm);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1117
if ((rval != FC_SUCCESS) && (rval != EMLXS_REBOOT_REQUIRED)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1118
fcio->fcio_errno = rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1119
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1123
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1132
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1137
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1148
rval = emlxs_fca_port_manage(port, &pm);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1150
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1151
fcio->fcio_errno = rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1152
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1156
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1165
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1170
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1181
rval = emlxs_fca_port_manage(port, &pm);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1183
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1184
fcio->fcio_errno = rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1185
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1189
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1198
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1203
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1214
rval = emlxs_fca_port_manage(port, &pm);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1216
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1217
fcio->fcio_errno = rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1218
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1222
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1234
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1250
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1297
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1341
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1354
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1372
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1526
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1673
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1682
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1687
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1698
rval = emlxs_fca_port_manage(port, &pm);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1700
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1701
fcio->fcio_errno = rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1702
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1706
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1715
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1720
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1731
rval = emlxs_fca_port_manage(port, &pm);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1733
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1734
fcio->fcio_errno = rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1735
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1739
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1750
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1754
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1763
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1775
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1794
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1813
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1821
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1872
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1891
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1899
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1941
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1950
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1958
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1977
rval = ENXIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1982
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
1991
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2001
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2023
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2033
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2039
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2067
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2076
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2084
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2090
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2105
rval = emlxs_fca_port_manage(port, &pm);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2107
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2108
fcio->fcio_errno = rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2109
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2112
rval = ENOTSUP;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2116
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2127
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2133
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2142
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2149
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2159
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2176
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2185
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2316
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2325
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2452
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2462
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2479
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2488
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2495
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2626
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2635
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2642
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2769
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2778
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2782
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2790
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2799
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2803
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2811
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2820
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2827
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2831
rval = emlxs_reset(port, FC_FCA_CORE);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2833
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2834
fcio->fcio_errno = rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2835
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2840
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2849
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2854
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2865
rval = emlxs_fca_port_manage(port, &pm);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2867
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2868
fcio->fcio_errno = rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2870
if (rval == FC_INVALID_REQUEST) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2871
rval = ENOTTY;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2873
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2878
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2887
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2892
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2903
rval = emlxs_fca_port_manage(port, &pm);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2905
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2906
fcio->fcio_errno = rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2908
if (rval == FC_INVALID_REQUEST) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2909
rval = ENOTTY;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2911
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2918
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2929
rval = emlxs_fca_port_manage(port, &pm);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2931
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2932
fcio->fcio_errno = rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2934
if (rval == FC_INVALID_REQUEST) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2935
rval = ENOTTY;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2937
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2942
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3170
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3178
rval = DFC_ARG_NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3187
rval = DFC_ARG_TOOSMALL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3203
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3216
rval = DFC_SYSRES_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3261
rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3269
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3285
uint32_t rval = DFC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3349
rval = DFC_ARG_TOOSMALL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3361
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3411
uint32_t rval = DFC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3449
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3457
rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_WAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3459
if (rval == MBX_TIMEOUT) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3464
rval = DFC_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3468
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3471
emlxs_mb_cmd_xlate(mb->mbxCommand), rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3473
rval = DFC_IO_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3496
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3514
uint32_t rval = DFC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
368
int rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
3766
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
381
rval = emlxs_dfc_table[i].func(hba, dfc, mode);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
382
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4116
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4140
rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_WAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4142
if (rval == MBX_TIMEOUT) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4147
rval = DFC_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4151
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4154
emlxs_mb_cmd_xlate(mb->mbxCommand), rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4156
rval = DFC_IO_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4176
rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_WAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4178
if (rval == MBX_TIMEOUT) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4183
rval = DFC_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4187
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
419
int rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4190
emlxs_mb_cmd_xlate(mb->mbxCommand), rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4192
rval = DFC_IO_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4266
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4278
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
436
rval = DFC_COPYIN_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4406
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
461
rval = DFC_COPYIN_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4629
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4650
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4667
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4764
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4786
rval = DFC_ONLINE_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4815
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4831
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4849
rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4874
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4893
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4903
rval = DFC_DRVRES_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4925
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4935
rval = DFC_DRVRES_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
494
rval = DFC_COPYIN_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4957
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4967
rval = DFC_DRVRES_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4989
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
4999
rval = DFC_DRVRES_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5010
rval = DFC_COPYIN_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5033
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5043
rval = DFC_DRVRES_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5066
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5076
rval = DFC_HBARES_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5090
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
510
rval = DFC_COPYIN_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5100
rval = DFC_DRVRES_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5111
rval = DFC_COPYIN_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5135
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5145
rval = DFC_DRVRES_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5164
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5222
rval = DFC_COPYOUT_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5233
rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5250
if (!rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5257
rval = DFC_IO_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
526
rval = DFC_COPYIN_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5266
if (!rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5273
rval = DFC_IO_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5280
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
542
rval = DFC_COPYIN_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
548
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
558
int rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5623
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5647
rval = DFC_ARG_NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5655
rval = DFC_ARG_NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5663
rval = DFC_ARG_NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5671
rval = DFC_ARG_NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5680
rval = DFC_ARG_TOOBIG;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5689
rval = DFC_ARG_TOOBIG;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5698
rval = DFC_ARG_TOOSMALL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5707
rval = DFC_ARG_TOOSMALL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5721
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5731
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5746
rval = DFC_SYSRES_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
576
rval = DFC_COPYOUT_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5779
rval = DFC_IO_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5788
rval = DFC_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5792
rval = DFC_IO_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5802
rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5810
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5825
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5839
rval = DFC_ARG_NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5848
rval = DFC_SYSRES_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5881
rval = DFC_IO_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5889
rval = DFC_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5893
rval = DFC_IO_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5898
rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
590
rval = DFC_COPYOUT_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5906
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5922
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5935
rval = DFC_INVALID_ADAPTER;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5943
rval = DFC_ARG_NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5951
rval = DFC_ARG_NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5959
rval = DFC_ARG_NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5969
rval = DFC_ARG_TOOSMALL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5980
rval = emlxs_send_menlo_cmd(hba, cmd_buf, cmd_size,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5983
if (rval == 0) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
5991
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6004
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6030
rval = DFC_RSP_BUF_OVERRUN;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
604
rval = DFC_COPYOUT_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6048
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6087
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6125
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6148
rval = DFC_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6150
rval = DFC_IO_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6164
rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6165
while ((rval != -1) && !(hba->flag & FC_MENLO_MODE)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6166
rval =
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6173
if (rval == -1) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6179
rval = DFC_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
618
rval = DFC_COPYOUT_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6189
rval = DFC_LINKDOWN_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6205
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6220
rval = DFC_SYSRES_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6252
rval = DFC_IO_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6262
rval = DFC_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6269
rval = DFC_RSP_BUF_OVERRUN;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6276
rval = DFC_IO_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6307
rval = DFC_SYSRES_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6345
rval = DFC_IO_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6356
rval = DFC_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6366
rval = DFC_RSP_BUF_OVERRUN;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6374
rval = DFC_IO_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6385
rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6397
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
647
rval = DFC_COPYOUT_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
656
rval = DFC_COPYOUT_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
662
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6714
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
672
int rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6728
rval = DFC_ARG_NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6736
rval = DFC_ARG_NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6744
rval = DFC_ARG_NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6753
rval = DFC_ARG_TOOSMALL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
676
rval = emlxs_dfc_copyin(hba, arg, &dfc1, &dfc2, mode);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6761
rval = DFC_ARG_NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6770
rval = DFC_ARG_TOOSMALL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
678
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6784
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
679
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6794
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6809
rval = DFC_SYSRES_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
682
rval = emlxs_dfc_func(hba, &dfc2, mode);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6839
rval = DFC_IO_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
684
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
685
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6867
rval = DFC_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6871
rval = DFC_IO_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6883
rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
689
rval = emlxs_dfc_copyout(hba, arg, &dfc2, &dfc1, mode);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
6890
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
691
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7680
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7744
rval = DFC_DRV_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
775
int rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7767
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7781
int32_t rval = DFC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7862
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
787
rval = emlxs_fcio_table[i].func(port, fcio, mode);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7874
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
788
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7892
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7905
rval = DFC_ARG_TOOSMALL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7927
rval = DFC_DRV_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7959
rval = DFC_DRV_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7973
rval = DFC_ARG_TOOSMALL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
7994
rval = DFC_ARG_TOOSMALL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8018
rval = DFC_DRV_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8032
rval = DFC_ARG_TOOSMALL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8054
rval = DFC_DRV_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
806
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8068
rval = DFC_ARG_TOOSMALL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8090
rval = DFC_ARG_TOOSMALL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8111
rval = DFC_ARG_TOOSMALL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8130
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8137
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8150
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8177
rval = emlxs_get_dump_region(hba, dfc->data1, NULL, &size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8179
if (rval != 0) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8189
rval = DFC_ARG_TOOSMALL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8194
rval = emlxs_get_dump_region(hba, dfc->data1, dfc->buf1, &size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8196
if (rval != 0) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8205
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8237
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8260
rval = DFC_IO_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8262
rval = DFC_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8283
rval = DFC_DRV_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8300
rval = DFC_SYSRES_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8335
rval = DFC_IO_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8345
rval = DFC_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8352
rval = DFC_RSP_BUF_OVERRUN;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8359
rval = DFC_IO_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8380
rval = DFC_IO_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8382
rval = DFC_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8392
rval = DFC_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8410
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8419
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
842
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8430
rval = DFC_SYSRES_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
846
rval = emlxs_fcio_func(port, &fcio, mode);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8465
rval = DFC_IO_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8475
rval = DFC_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8482
rval = DFC_RSP_BUF_OVERRUN;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8489
rval = DFC_IO_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8499
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8510
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8532
rval = DFC_IO_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8534
rval = DFC_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8542
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8555
uint32_t rval = DFC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
856
if ((rval != 0) && (fcio.fcio_errno == 0)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8583
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8601
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
862
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8624
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8654
rval = emlxs_dfc_set_menlo_loopback(hba);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8655
if (rval)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8669
rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_WAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8671
if (rval == MBX_TIMEOUT) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8676
rval = DFC_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8680
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8683
emlxs_mb_cmd_xlate(mb->mbxCommand), rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8685
rval = DFC_IO_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8705
rval = DFC_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
872
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8723
rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_WAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8725
if (rval == MBX_TIMEOUT) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8730
rval = DFC_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8734
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8737
emlxs_mb_cmd_xlate(mb->mbxCommand), rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8739
rval = DFC_IO_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8749
rval = DFC_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8765
rval = DFC_DRV_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8784
rval = DFC_DRV_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8798
rval = emlxs_dfc_set_menlo_fte(hba);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8799
if (rval)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8824
rval = DFC_DRV_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8841
rval = DFC_DRV_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
885
rval = emlxs_fca_port_manage(port, &pm);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8857
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8864
rval = emlxs_dfc_reset_menlo(hba);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8868
emlxs_dfc_xlate(dfc->cmd), rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
887
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8876
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
888
fcio->fcio_errno = rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8885
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
890
if (rval == FC_INVALID_REQUEST) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8907
rval = DFC_DRV_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
891
rval = ENOTTY;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8917
rval = DFC_OFFLINE_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8925
rval = DFC_OFFLINE_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
893
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8933
rval = DFC_ARG_NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8941
rval = DFC_ARG_NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8950
rval = DFC_ARG_TOOBIG;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8961
rval = DFC_ARG_INVALID;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8969
rval = DFC_DRV_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
8979
rval = DFC_SYSRES_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
900
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9010
rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9011
while ((rval != -1) && hba->loopback_pkt) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9012
rval =
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9017
if (rval == -1) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9022
rval = DFC_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9030
if ((rval = emlxs_pkt_send(pkt, 1)) != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9032
"Pkt Transport error. ret=%x state=%x", rval,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9035
rval = DFC_IO_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9043
rval = DFC_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9047
rval = DFC_IO_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9054
rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9055
while ((rval != -1) && !(pkt->pkt_tran_flags & FC_TRAN_COMPLETED)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9056
rval = cv_timedwait(&EMLXS_PKT_CV, &EMLXS_PKT_LOCK, timeout);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9060
if (rval == -1) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9064
rval = DFC_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9071
rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9078
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9093
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9103
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9108
rval = emlxs_reset(port, FC_FCA_RESET);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9114
rval = emlxs_reset(port, FC_FCA_RESET);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9117
rval = emlxs_reset(port, EMLXS_DFC_RESET_ALL);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
912
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9130
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9131
rval = DFC_HBA_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9133
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9278
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
928
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9314
rval = emlxs_dhc_init_auth(hba, lwwpn, rwwpn);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9316
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9327
uint32_t rval = DFC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9346
if ((rval = emlxs_dhc_get_auth_cfg(hba, fcsp_config)) != 0) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9347
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9363
uint32_t rval = DFC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9400
rval = emlxs_dhc_add_auth_cfg(hba, fcsp_config, dfc_pwd);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9404
rval = emlxs_dhc_delete_auth_cfg(hba, fcsp_config, dfc_pwd);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9408
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9409
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9424
uint32_t rval = DFC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9444
if ((rval = emlxs_dhc_get_auth_key(hba, dfc_pwd)) != 0) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9445
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9459
uint32_t rval = DFC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9478
if ((rval = emlxs_dhc_set_auth_key(hba, dfc_pwd))) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9479
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9493
uint32_t rval = DFC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9513
if ((rval = emlxs_dhc_get_auth_status(hba, fcsp_status)) != 0) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9514
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9528
uint32_t rval = DFC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9571
rval = emlxs_dhc_get_auth_cfg_table(hba,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9574
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9585
uint32_t rval = DFC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9628
rval = emlxs_dhc_get_auth_key_table(hba,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9631
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9646
int32_t rval = DFC_SD_OK;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9655
rval = DFC_SD_ERROR_DATA_COLLECTION_ACTIVE;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9658
rval = DFC_SD_ERROR_INVALID_ARG;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9660
rval = DFC_SD_ERROR_NOT_SUPPORTED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9668
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9676
int32_t rval = DFC_SD_OK;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9683
rval = DFC_SD_ERROR_BUCKET_NOT_SET;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9685
rval = DFC_SD_ERROR_DATA_COLLECTION_ACTIVE;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9687
rval = DFC_SD_ERROR_NOT_SUPPORTED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9693
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9703
int32_t rval = DFC_SD_OK;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9710
rval = DFC_SD_ERROR_BUCKET_NOT_SET;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9712
rval = DFC_SD_ERROR_NOT_SUPPORTED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9719
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9731
int32_t rval = DFC_SD_OK;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9735
rval = DFC_SD_ERROR_NOT_SUPPORTED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9740
rval = DFC_SD_ERROR_BUCKET_NOT_SET;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9751
rval = DFC_SD_ERROR_INVALID_PORT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9758
rval = DFC_SD_ERROR_DATA_COLLECTION_ACTIVE;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
977
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9782
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9793
int32_t rval = DFC_SD_OK;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9797
rval = DFC_SD_ERROR_NOT_SUPPORTED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9802
rval = DFC_SD_ERROR_BUCKET_NOT_SET;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9813
rval = DFC_SD_ERROR_INVALID_PORT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9819
rval = DFC_SD_ERROR_DATA_COLLECTION_NOT_ACTIVE;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9845
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9856
int32_t rval = DFC_SD_OK;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9860
rval = DFC_SD_ERROR_NOT_SUPPORTED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9865
rval = DFC_SD_ERROR_BUCKET_NOT_SET;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9876
rval = DFC_SD_ERROR_INVALID_PORT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9895
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9909
int32_t rval = DFC_SD_OK;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9912
rval = DFC_SD_ERROR_NOT_SUPPORTED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9917
rval = DFC_SD_ERROR_BUCKET_NOT_SET;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9928
rval = DFC_SD_ERROR_INVALID_PORT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9952
rval = DFC_SD_ERROR_MORE_DATA_AVAIL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
9995
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
7994
uint32_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8004
rval = ddi_prop_lookup_string_array(DDI_DEV_T_ANY, hba->dip,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8008
if ((rval != DDI_PROP_SUCCESS) || !cnt || !arrayp) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8012
rval = ddi_prop_lookup_string_array(DDI_DEV_T_ANY,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8016
if ((rval != DDI_PROP_SUCCESS) || !cnt || !arrayp) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8648
uint32_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8658
rval = ddi_prop_lookup_string_array(DDI_DEV_T_ANY, hba->dip,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8662
if ((rval != DDI_PROP_SUCCESS) || !cnt || !arrayp) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8666
rval = ddi_prop_lookup_string_array(DDI_DEV_T_ANY, hba->dip,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8670
if ((rval != DDI_PROP_SUCCESS) || !cnt || !arrayp) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_diag.c
138
uint32_t rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_diag.c
225
if ((rval = emlxs_pkt_send(pkt, 1)) != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_diag.c
254
rval = FC_TRANSPORT_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_diag.c
261
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_diag.c
270
rval = EMLXS_TEST_FAILED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_diag.c
276
if (rval == FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_diag.c
289
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_diag.c
304
int32_t rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_diag.c
322
rval = FC_NOMEM;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_diag.c
334
rval = FC_NOMEM;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_diag.c
360
rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_WAIT, 60);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_diag.c
362
if (rval == MBX_TIMEOUT) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_diag.c
366
rval = EMLXS_TEST_FAILED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_diag.c
382
rval = EMLXS_TEST_FAILED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_diag.c
389
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_diag.c
403
rval = EMLXS_TEST_FAILED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_diag.c
416
rval = EMLXS_TEST_FAILED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_diag.c
425
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_diag.c
434
uint32_t rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_diag.c
444
if ((rval = emlxs_offline(hba, 0))) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_diag.c
448
rval = FC_RESETFAIL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_diag.c
452
rval = EMLXS_SLI_HBA_RESET(hba, 1, 1, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_diag.c
454
switch (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_diag.c
462
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_diag.c
471
rval = FC_RESETFAIL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_diag.c
481
rval = FC_STATEC_BUSY;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_diag.c
487
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
1597
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
1633
rval = emlxs_be2_validate_image(hba, buffer, len, &fw_image);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
1634
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
1635
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
1639
rval = emlxs_be3_validate_image(hba, buffer, len, &fw_image);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
1640
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
1641
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
1659
rval = EMLXS_IMAGE_FAILED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
1669
rval = EMLXS_IMAGE_FAILED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
168
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
1682
rval = emlxs_be_verify_phy(hba, file, mbq, mp);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
1684
if (rval != 0) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
1690
rval = emlxs_be_verify_crc(hba, file, mbq, mp);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
1691
if (rval == 0) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
1703
rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
1717
rval = EMLXS_OFFLINE_FAILED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
1730
rval = emlxs_be_flash_image(hba, buffer, file, mbq, mp);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
1732
if (rval != 0) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
1750
if (rval == 0) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
1766
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
1783
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
180
rval = emlxs_be_fw_download(hba, buffer, len, offline);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
182
rval = emlxs_obj_fw_download(hba, buffer, len, offline);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
184
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
1917
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2014
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2040
rval = emlxs_obj_validate_image(hba, buffer, len, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2042
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2056
rval = EMLXS_IMAGE_FAILED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2065
rval = EMLXS_IMAGE_FAILED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2079
rval = EMLXS_OFFLINE_FAILED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2084
rval = emlxs_obj_flash_image(hba, buffer, len, mbq, mp, &change_status);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2099
if (rval == 0) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2111
rval = EMLXS_REBOOT_REQUIRED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2123
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2135
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
219
if ((rval = emlxs_validate_image(hba, buffer, len, &fw_image))) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2202
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2216
rval = EMLXS_OFFLINE_FAILED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2225
rval = EMLXS_OFFLINE_FAILED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2262
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2274
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2279
if (rval == 0) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2295
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
243
if (rval = emlxs_start_abs_download_2mb(hba, buffer, len,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2474
uint32_t rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2490
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2500
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2525
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2565
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2580
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2589
rval =
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2603
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2703
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2733
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
274
rval = EMLXS_OFFLINE_FAILED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2740
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2751
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2780
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2787
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2797
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2826
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2833
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
284
rval = EMLXS_OFFLINE_FAILED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2843
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2872
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2879
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2889
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2918
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2925
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2935
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2964
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
297
rval = EMLXS_IMAGE_FAILED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
2971
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
306
rval = EMLXS_IMAGE_FAILED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
3161
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
319
rval = EMLXS_IMAGE_FAILED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
3200
rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbox, MBX_WAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
3202
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
3242
rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbox, MBX_WAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
3244
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
3261
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
3274
rval = emlxs_update_ff_wakeup_parms(hba, WakeUpParms,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
3286
rval = emlxs_update_boot_wakeup_parms(hba, WakeUpParms,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
3302
rval = emlxs_update_sli1_wakeup_parms(hba, WakeUpParms,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
331
rval = EMLXS_IMAGE_FAILED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
3311
rval = emlxs_update_sli2_wakeup_parms(hba, WakeUpParms,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
3320
rval = emlxs_update_sli3_wakeup_parms(hba, WakeUpParms,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
3329
rval = emlxs_update_sli4_wakeup_parms(hba, WakeUpParms,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
3352
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
3361
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
3389
rval = emlxs_start_rel_download(hba, &ImageHdr, bptr,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
3392
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
3397
if ((rval == NO_FLASH_MEM_AVAIL) && !flash_cleaned) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
343
rval = EMLXS_IMAGE_FAILED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
355
if (rval == 0) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
367
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
3702
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
3722
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
3729
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
3787
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
3813
rval = (uint32_t)CFG_DATA_NO_REGION;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
3815
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
3894
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
3899
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
398
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
4204
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
4230
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
4237
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
4578
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
4635
if ((rval = emlxs_validate_version(hba,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
4637
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
4654
if ((rval = emlxs_validate_version(hba,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
4656
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
4673
if ((rval = emlxs_validate_version(hba,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
4675
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
4714
if ((rval = emlxs_validate_version(hba,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
4717
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
478
rval = EMLXS_IMAGE_FAILED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
4794
if ((rval = emlxs_validate_version(hba, &image->dwc, id, type,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
4796
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
4825
if ((rval = emlxs_validate_version(hba,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
4828
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
4893
if ((rval = emlxs_validate_version(hba, &image->prog[type],
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
4895
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
490
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
4929
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
4957
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
4965
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
4974
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
5001
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
5025
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
5031
rval = emlxs_update_wakeup_parms(hba, WakeUpParms, WakeUpParms);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
5039
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
5065
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
509
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
5090
rval = emlxs_proc_abs_2mb(hba,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
5094
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
5100
rval = emlxs_proc_abs_2mb(hba,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
5105
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
5111
rval = emlxs_proc_rel_2mb(hba, buffer, fw_image);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
5113
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
5124
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
5156
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
5200
rval = emlxs_build_parms_2mb_bwc(hba,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
5203
if (rval == FALSE) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
5207
rval = EMLXS_IMAGE_FAILED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
5218
rval = EMLXS_IMAGE_BAD;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
5237
rval = EMLXS_IMAGE_FAILED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
5260
rval = EMLXS_IMAGE_FAILED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
5307
rval = EMLXS_IMAGE_FAILED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
5325
rval = EMLXS_IMAGE_FAILED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
5336
rval = EMLXS_IMAGE_FAILED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
5347
rval = EMLXS_IMAGE_FAILED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
5361
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
5465
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
5487
if ((rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbox, MBX_WAIT, 0)) !=
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
5493
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
5528
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
5533
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
554
rval = 2;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
568
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
578
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
583
if (rval == 0) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
588
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
601
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
637
rval = 2;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
649
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
654
if (rval == 0) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
662
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
680
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
689
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
698
rval = EMLXS_IMAGE_FAILED;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
738
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
784
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_download.c
805
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dump.c
112
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dump.c
132
if (rval = emlxs_send_menlo_cmd(hba, (uint8_t *)cmd_buf, cmd_size,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dump.c
148
rval = rsp_buf->code;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dump.c
160
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dump.c
174
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dump.c
194
if (rval = emlxs_send_menlo_cmd(hba, (uint8_t *)cmd_buf, cmd_size,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dump.c
210
rval = rsp_buf->code;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dump.c
218
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dump.c
233
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dump.c
251
if (rval = emlxs_send_menlo_cmd(hba, (uint8_t *)cmd_buf, cmd_size,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dump.c
267
rval = rsp_buf->code;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dump.c
275
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dump.c
290
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dump.c
308
if (rval = emlxs_send_menlo_cmd(hba, (uint8_t *)cmd_buf, cmd_size,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dump.c
324
rval = rsp_buf->code;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dump.c
332
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dump.c
346
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dump.c
364
if (rval = emlxs_send_menlo_cmd(hba, (uint8_t *)cmd_buf, cmd_size,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dump.c
3702
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dump.c
3734
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dump.c
3764
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dump.c
3783
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dump.c
380
rval = rsp_buf->code;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dump.c
3832
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dump.c
3850
rval =
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dump.c
3859
rval = emlxs_dump_word_dmpfile(fpCeeFile, (uint8_t *)bptr,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dump.c
3876
if (rval == 0) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dump.c
388
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dump.c
3881
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dump.c
48
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dump.c
69
if (rval = emlxs_send_menlo_cmd(hba, (uint8_t *)cmd_buf, cmd_size,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dump.c
85
rval = rsp_buf->code;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dump.c
97
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_els.c
2286
uint32_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_els.c
2299
rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_WAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_els.c
2301
if (rval != MBX_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_els.c
2326
if ((rval = emlxs_pkt_send(pkt, 1)) != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_els.c
3301
int rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_els.c
3303
rval = emlxs_dfc_handle_unsol_req(port, cp, iocbq, mp, size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_els.c
3305
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_els.c
3416
uint32_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_els.c
3456
if ((rval = emlxs_pkt_send(pkt, 1)) != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_els.c
3463
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10023
rval = emlxs_vfi_offline_handler(port, vfip, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10024
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10033
rval = emlxs_vfi_state(port, vfip, VFI_STATE_VPI_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10035
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10044
rval = emlxs_vfi_state(port, vfip, VFI_STATE_VPI_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10046
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10056
rval = emlxs_vfi_state(port, vfip, FCFI_STATE_REG_FAILED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10058
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10075
rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10076
if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10079
rval = emlxs_vfi_state(port, vfip, VFI_STATE_INIT_FAILED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10080
FCF_REASON_SEND_FAILED, rval, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10082
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10095
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10122
rval = emlxs_vfi_state(port, vfip, VFI_STATE_INIT_CMPL,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10130
rval = emlxs_vfi_state(port, vfip, VFI_STATE_INIT,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10134
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10144
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10161
rval = emlxs_vfi_state(port, vfip, VFI_STATE_VPI_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10164
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10175
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10195
rval = emlxs_vfi_offline_handler(port, vfip, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10196
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10255
rval = emlxs_vfi_offline_handler(port, vfip, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10256
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10267
rval = emlxs_vpi_event(port, FCF_EVENT_VPI_ONLINE, vpip);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10271
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10281
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10303
rval = emlxs_vfi_state(port, vfip, VFI_STATE_REG,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10315
rval = emlxs_vfi_state(port, vfip, VFI_STATE_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10319
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10329
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10349
rval = emlxs_vfi_state(port, vfip, VFI_STATE_UNREG,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10358
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10370
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10390
rval = emlxs_vfi_state(port, vfip, VFI_STATE_PAUSED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10393
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10403
rval = emlxs_vfi_state(port, vfip, VFI_STATE_UNREG,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10406
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10490
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10513
rval = emlxs_vfi_state(port, vfip, VFI_STATE_UNREG_CMPL,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10521
rval = emlxs_vfi_state(port, vfip, VFI_STATE_UNREG,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10525
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10588
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10605
rval = emlxs_vfi_state(port, vfip, VFI_STATE_OFFLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10607
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10620
rval = emlxs_vfi_state(port, vfip, VFI_STATE_UNREG_FAILED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10623
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10637
rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10638
if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10641
rval = emlxs_vfi_state(port, vfip, VFI_STATE_UNREG_FAILED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10642
FCF_REASON_SEND_FAILED, rval, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10644
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10657
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10674
rval = emlxs_vfi_state(port, vfip, VFI_STATE_OFFLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10677
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10687
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10712
rval = emlxs_vfi_state(port, vfip, VFI_STATE_REG_CMPL,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10720
rval = emlxs_vfi_state(port, vfip, VFI_STATE_REG,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10724
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10801
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10827
rval = emlxs_vfi_offline_handler(port, vfip, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10828
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10840
rval = emlxs_vfi_offline_handler(port, vfip, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10841
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10851
rval = emlxs_vfi_state(port, vfip, VFI_STATE_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10853
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10885
rval = emlxs_vfi_state(port, vfip, VFI_STATE_REG_FAILED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10888
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10896
rval = emlxs_vfi_state(port, vfip, VFI_STATE_REG_FAILED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10936
rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10937
if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10941
rval = emlxs_vfi_state(port, vfip, VFI_STATE_REG_FAILED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10942
FCF_REASON_SEND_FAILED, rval, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10944
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10957
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10975
rval = emlxs_vfi_offline_handler(port, vfip, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10976
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10984
rval = emlxs_vfi_state(port, vfip, VFI_STATE_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10987
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
10999
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11021
rval = emlxs_vfi_offline_handler(port, vfip, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11022
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11074
rval = emlxs_fcfi_event(port, FCF_EVENT_VFI_ONLINE, vfip);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11076
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11109
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11159
rval = (func)(port, vpip, evt, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11161
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11172
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11217
rval = emlxs_vpi_action(port, vpip, evt, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11219
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11229
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11283
rval = emlxs_vpi_action(port, vpip, FCF_EVENT_STATE_ENTER, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11285
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11296
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11388
rval = emlxs_vpi_event(port, FCF_EVENT_VPI_ONLINE, vpip);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11392
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11402
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11440
rval = emlxs_vpi_event(port, FCF_EVENT_VPI_OFFLINE, vpip);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11442
if (wait && (rval == 0)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11471
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11481
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11505
rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11516
rval = emlxs_vpi_state(port, vpip, VPI_STATE_PORT_OFFLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11528
rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11539
rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11551
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11555
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11565
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11589
rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11600
rval = emlxs_vpi_state(port, vpip, VPI_STATE_PORT_OFFLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11612
rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11624
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11628
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11667
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11699
rval = emlxs_vpi_state(port, vpip, VPI_STATE_INIT,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11710
rval = emlxs_vpi_state(port, vpip, VPI_STATE_PORT_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11722
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11731
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11738
rval = emlxs_vpi_state(port, vpip, VPI_STATE_PORT_OFFLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11742
rval = emlxs_vpi_state(port, vpip, VPI_STATE_LOGO,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11746
rval = emlxs_vpi_state(port, vpip, VPI_STATE_UNREG,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11750
rval = emlxs_vpi_state(port, vpip, VPI_STATE_UNREG,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11754
rval = emlxs_vpi_state(port, vpip, VPI_STATE_OFFLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11758
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11768
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11807
rval = emlxs_vpi_state(port, vpip,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11820
rval = emlxs_vpi_offline_handler(port, vpip, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11832
rval = emlxs_vpi_state(port, vpip,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11845
rval = emlxs_vpi_offline_handler(port, vpip, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11861
rval = emlxs_vpi_offline_handler(port, vpip, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11873
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11884
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11953
rval = emlxs_vpi_offline_handler(port, vpip, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
11968
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12057
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12089
rval = emlxs_vpi_state(port, vpip, VPI_STATE_LOGO,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12092
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12122
rval = emlxs_vpi_state(port, vpip, VPI_STATE_PAUSED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12125
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12154
rval = emlxs_vpi_state(port, vpip, VPI_STATE_UNREG,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12157
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12194
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12244
rval = emlxs_vpi_state(port, vpip, VPI_STATE_INIT,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12246
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12257
rval = emlxs_vfi_event(port, FCF_EVENT_VPI_OFFLINE, vpip);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12259
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12323
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12345
rval = emlxs_vpi_offline_handler(port, vpip, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12346
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12360
rval = emlxs_vpi_state(port, vpip, VPI_STATE_PORT_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12362
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12371
rval = emlxs_vpi_state(port, vpip, VPI_STATE_PORT_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12373
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12383
rval = emlxs_vpi_state(port, vpip, FCFI_STATE_REG_FAILED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12385
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12400
rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12401
if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12404
rval = emlxs_vpi_state(port, vpip, VPI_STATE_INIT_FAILED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12405
FCF_REASON_SEND_FAILED, rval, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12407
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12420
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12447
rval = emlxs_vpi_state(port, vpip, VPI_STATE_INIT_CMPL,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12455
rval = emlxs_vpi_state(port, vpip, VPI_STATE_INIT,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12459
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12469
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12486
rval = emlxs_vpi_state(port, vpip, VPI_STATE_PORT_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12488
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12500
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12523
rval = emlxs_vpi_offline_handler(port, vpip, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12524
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12555
rval = emlxs_vpi_state(port, vpip, VPI_STATE_REG,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12558
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12592
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12629
rval = emlxs_vpi_state(port, vpip, VPI_STATE_LOGI,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12632
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12637
rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12642
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12652
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12695
rval = emlxs_vpi_state(port, vpip, VPI_STATE_LOGI_CMPL,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12698
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12703
rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12706
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12733
rval = emlxs_vpi_state(port, vpip, VPI_STATE_LOGI_CMPL,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12736
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12741
rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12744
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12758
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12805
rval = emlxs_vpi_state(port, vpip, VPI_STATE_LOGI_FAILED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12808
if (rval && rpip->cmpl) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12814
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12824
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12856
rval = emlxs_vpi_event(port, FCF_EVENT_VPI_OFFLINE, vpip);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12860
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12873
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12890
rval = emlxs_vpi_offline_handler(port, vpip, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12891
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12955
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12988
rval = emlxs_vpi_state(port, vpip, VPI_STATE_REG,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12990
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
12999
rval = emlxs_vpi_offline_handler(port, vpip, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13001
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13012
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13076
rval = emlxs_vpi_offline_handler(port, vpip, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13078
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13085
rval = emlxs_vpi_state(port, vpip, VPI_STATE_REG,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13088
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13099
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13120
rval = emlxs_vpi_state(port, vpip, VPI_STATE_LOGO_CMPL,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13128
rval = emlxs_vpi_state(port, vpip, VPI_STATE_LOGO_CMPL,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13136
rval = emlxs_vpi_state(port, vpip, VPI_STATE_LOGO,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13140
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13152
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13173
rval = emlxs_vpi_state(port, vpip, VPI_STATE_PORT_OFFLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13175
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13187
rval = emlxs_vpi_state(port, vpip, VPI_STATE_PORT_OFFLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13189
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13200
rval = emlxs_vpi_state(port, vpip, VPI_STATE_PORT_OFFLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13202
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13223
rval = emlxs_vpi_state(port, vpip, VPI_STATE_LOGO_FAILED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13226
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13255
rval = emlxs_pkt_send(pkt, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13256
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13260
rval = emlxs_vpi_state(port, vpip, VPI_STATE_LOGO_FAILED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13261
FCF_REASON_SEND_FAILED, rval, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13263
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13267
rval = emlxs_vpi_state(port, vpip, VPI_STATE_LOGO_CMPL,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13270
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13280
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13300
rval = emlxs_vpi_state(port, vpip, VPI_STATE_PORT_OFFLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13303
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13313
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13339
rval = emlxs_vpi_state(port, vpip, VPI_STATE_UNREG_CMPL,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13347
rval = emlxs_vpi_state(port, vpip, VPI_STATE_UNREG,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13351
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13413
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13432
rval = emlxs_vpi_state(port, vpip, VPI_STATE_PORT_OFFLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13434
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13442
rval = emlxs_vpi_state(port, vpip, VPI_STATE_OFFLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13444
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13453
rval = emlxs_vpi_state(port, vpip, VPI_STATE_PAUSED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13455
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13468
rval = emlxs_vpi_state(port, vpip, VPI_STATE_UNREG_FAILED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13471
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13486
rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13487
if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13490
rval = emlxs_vpi_state(port, vpip, VPI_STATE_UNREG_FAILED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13491
FCF_REASON_SEND_FAILED, rval, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13493
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13506
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13523
rval = emlxs_vpi_state(port, vpip, VPI_STATE_OFFLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13526
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13536
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13561
rval = emlxs_vpi_state(port, vpip, VPI_STATE_REG_CMPL,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13569
rval = emlxs_vpi_state(port, vpip, VPI_STATE_REG,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13573
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13641
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13663
rval = emlxs_vpi_offline_handler(port, vpip, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13664
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13677
rval = emlxs_vpi_state(port, vpip, VPI_STATE_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13680
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13691
rval = emlxs_vpi_offline_handler(port, vpip, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13692
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13708
rval = emlxs_vpi_state(port, vpip, VPI_STATE_REG_FAILED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13711
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13734
rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13735
if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13738
rval = emlxs_vpi_state(port, vpip, VPI_STATE_REG_FAILED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13739
FCF_REASON_SEND_FAILED, rval, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13741
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13754
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13772
rval = emlxs_vpi_offline_handler(port, vpip, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13773
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13781
rval = emlxs_vpi_state(port, vpip, VPI_STATE_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13784
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13794
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13814
rval = emlxs_vpi_offline_handler(port, vpip, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13815
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13824
rval = emlxs_vfi_event(port, FCF_EVENT_VPI_ONLINE, vpip);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13826
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13859
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13903
rval = (func)(port, rpip, evt, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13905
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13915
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13945
rval = emlxs_rpi_action(port, rpip, evt, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13947
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
13957
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
14010
rval = emlxs_rpi_action(port, rpip, FCF_EVENT_STATE_ENTER, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
14012
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
14171
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
14177
rval = emlxs_rpi_state(port, rpip, RPI_STATE_FREE, 0, 0, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
14179
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
14321
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
14338
rval = emlxs_rpi_free(port, rpip);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
14342
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
14390
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
14455
rval = emlxs_vpi_logi_cmpl_notify(port, rpip);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
14457
if (rval && rpip->cmpl) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
14463
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
14715
uint32_t rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
14734
rval = emlxs_rpi_state(port, rpip, RPI_STATE_REG,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
14744
rval = emlxs_rpi_state(port, rpip, RPI_STATE_REG,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
14749
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
14759
uint32_t rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
14778
rval = emlxs_rpi_state(port, rpip, RPI_STATE_FREE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
14797
rval = emlxs_rpi_state(port, rpip, RPI_STATE_UNREG,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
14803
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
14814
uint32_t rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
14836
rval = emlxs_rpi_state(port, rpip, RPI_STATE_FREE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
14873
rval = emlxs_rpi_state(port, rpip, RPI_STATE_UNREG,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
14878
rval = emlxs_rpi_state(port, rpip, RPI_STATE_PAUSED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
14890
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
14900
uint32_t rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
14920
rval = emlxs_rpi_state(port, rpip, RPI_STATE_RESUME,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
14932
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
14983
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15028
rval = emlxs_rpi_state(port, rpip, RPI_STATE_FREE, 0, 0, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15030
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15057
rval = emlxs_rpi_state(port, rpip, RPI_STATE_FREE, 0, 0, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15059
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15070
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15093
rval = emlxs_rpi_state(port, rpip, RPI_STATE_UNREG,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15095
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15136
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15163
rval = emlxs_rpi_state(port, rpip, RPI_STATE_OFFLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15171
rval = emlxs_rpi_state(port, rpip, RPI_STATE_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15175
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15321
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15339
rval = emlxs_rpi_state(port, rpip, RPI_STATE_OFFLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15342
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15360
rval = emlxs_rpi_state(port, rpip, RPI_STATE_OFFLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15363
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15373
rval = emlxs_rpi_state(port, rpip, RPI_STATE_UNREG_FAILED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15376
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15397
rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15398
if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15401
rval = emlxs_rpi_state(port, rpip, RPI_STATE_UNREG_FAILED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15402
FCF_REASON_SEND_FAILED, rval, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15404
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15422
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15439
rval = emlxs_rpi_state(port, rpip, RPI_STATE_OFFLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15442
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15452
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15478
rval = emlxs_rpi_state(port, rpip, RPI_STATE_OFFLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15486
rval = emlxs_rpi_state(port, rpip, RPI_STATE_UNREG,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15490
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15548
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15578
rval = emlxs_rpi_reg_handler(port, rpip);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15580
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15588
rval, 0, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15635
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15656
rval = emlxs_rpi_reg_handler(port, rpip);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15658
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15659
rval = emlxs_rpi_state(port, rpip, RPI_STATE_REG_FAILED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15660
rval, 0, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15662
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15665
rval = emlxs_rpi_state(port, rpip, RPI_STATE_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15668
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15691
rval = emlxs_rpi_state(port, rpip, RPI_STATE_REG_FAILED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15694
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15703
rval = emlxs_rpi_state(port, rpip, RPI_STATE_REG_FAILED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15706
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15737
rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15738
if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15742
rval = emlxs_rpi_state(port, rpip, RPI_STATE_REG_FAILED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15743
FCF_REASON_SEND_FAILED, rval, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15745
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15763
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15781
rval = emlxs_rpi_state(port, rpip, RPI_STATE_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15789
rval = emlxs_rpi_state(port, rpip, RPI_STATE_OFFLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15793
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15803
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15823
rval = emlxs_rpi_state(port, rpip, RPI_STATE_UNREG,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15826
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15908
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15925
rval = emlxs_rpi_state(port, rpip, RPI_STATE_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15928
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15940
rval = emlxs_rpi_state(port, rpip, RPI_STATE_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15943
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15957
rval = emlxs_rpi_state(port, rpip, RPI_STATE_RESUME_FAILED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15960
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15982
rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15983
if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15986
rval = emlxs_rpi_state(port, rpip, RPI_STATE_RESUME_FAILED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15987
FCF_REASON_SEND_FAILED, rval, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
15989
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
16006
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
16025
rval = emlxs_rpi_state(port, rpip, RPI_STATE_UNREG,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
16033
rval = emlxs_rpi_state(port, rpip, RPI_STATE_OFFLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
16042
rval = emlxs_rpi_state(port, rpip, RPI_STATE_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
16046
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
16057
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
16082
rval = emlxs_rpi_state(port, p2p_rpip, RPI_STATE_REG,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
16102
rval = emlxs_vpi_event(port, FCF_EVENT_RPI_ONLINE, rpip);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
16104
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2179
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2203
rval = emlxs_fcftab_event(port, FCF_EVENT_SHUTDOWN, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2205
if (wait && (rval == 0)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2220
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2226
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2237
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2256
rval = emlxs_fcftab_event(port, FCF_EVENT_LINKUP, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2260
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2271
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2290
rval = emlxs_fcftab_event(port, FCF_EVENT_LINKDOWN, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2294
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2305
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2324
rval = emlxs_fcftab_event(port, FCF_EVENT_CVL,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2329
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2340
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2359
rval = emlxs_fcftab_event(port, FCF_EVENT_FCFTAB_FULL, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2363
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2374
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2393
rval = emlxs_fcftab_event(port, FCF_EVENT_FCF_FOUND,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2398
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2409
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2428
rval = emlxs_fcftab_event(port, FCF_EVENT_FCF_CHANGED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2433
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2444
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2463
rval = emlxs_fcftab_event(port, FCF_EVENT_FCF_LOST,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2468
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2647
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2694
rval = (func)(port, evt, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2696
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2707
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2728
rval = emlxs_fc_fcftab_action(port, evt, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2730
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2743
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2797
rval = emlxs_fc_fcftab_action(port, FCF_EVENT_STATE_ENTER, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2799
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2855
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2878
rval = emlxs_fc_fcftab_req_handler(port, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2879
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2903
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2922
rval = emlxs_fc_fcftab_req_handler(port, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
2923
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3136
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3165
rval = emlxs_fc_fcftab_req_handler(port, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3166
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3188
rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_CFGLINK,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3190
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3203
rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_TOPO_FAILED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3205
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3213
rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_TOPO_FAILED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3215
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3233
rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3234
if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3238
rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_TOPO_FAILED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3239
FCF_REASON_SEND_FAILED, rval, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3241
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3256
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3283
rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_TOPO_CMPL,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3296
rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_TOPO,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3300
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3312
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3330
rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_CFGLINK,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3333
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3416
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3444
rval = emlxs_fc_fcftab_req_handler(port, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3445
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3462
rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_SPARM,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3464
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3477
rval = emlxs_fc_fcftab_state(port,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3480
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3514
rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3515
if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3518
rval = emlxs_fc_fcftab_state(port,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3520
FCF_REASON_SEND_FAILED, rval, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3522
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3537
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3564
rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_CFGLINK_CMPL,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3577
rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_CFGLINK,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3581
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3593
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3611
rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_SPARM,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3614
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3746
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3774
rval = emlxs_fc_fcftab_req_handler(port, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3775
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3791
rval = emlxs_fc_fcftab_state(port,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3794
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3802
rval = emlxs_fc_fcftab_state(port,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3805
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3823
rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3824
if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3828
rval = emlxs_fc_fcftab_state(port,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3830
FCF_REASON_SEND_FAILED, rval, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3832
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3847
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3874
rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_SPARM_CMPL,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3886
rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_SPARM,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3890
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3902
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3920
rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_FCFI_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
3923
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4039
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4059
rval = emlxs_fc_fcftab_req_handler(port, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4060
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4074
rval = emlxs_fc_fcftab_req_handler(port, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4077
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4089
rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_FCFI_ONLINE_CMPL,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4092
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4104
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4125
rval = emlxs_fc_fcftab_req_handler(port, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4126
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4136
rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4139
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4151
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4174
rval = emlxs_fcfi_event(port,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4177
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4195
rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_FCFI_OFFLINE_CMPL,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4198
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4210
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4230
rval = emlxs_fc_fcftab_req_handler(port, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4231
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4241
rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_FCFI_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4244
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4256
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4291
rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_TOPO,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4296
rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_TOPO,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4301
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4313
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4365
rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_OFFLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4370
rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_OFFLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4375
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4387
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4412
rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_SHUTDOWN,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4422
rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_FCFI_OFFLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4435
rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_FCFI_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4445
rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4458
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4470
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4491
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4503
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4548
rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_SHUTDOWN,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4551
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4561
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4568
rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_OFFLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4573
rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_TOPO,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4578
rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_CFGLINK,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4583
rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_SPARM,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4587
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4623
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4685
rval = (func)(port, evt, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4687
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4698
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4724
rval = emlxs_fcoe_fcftab_action(port, evt, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4726
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4739
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4793
rval = emlxs_fcoe_fcftab_action(port, FCF_EVENT_STATE_ENTER, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4795
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4807
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4832
rval = emlxs_fcoe_fcftab_state(port, FCOE_FCFTAB_STATE_SHUTDOWN,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4843
rval = emlxs_fcoe_fcftab_state(port,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4857
rval = emlxs_fcoe_fcftab_state(port,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4868
rval = emlxs_fcoe_fcftab_state(port, FCOE_FCFTAB_STATE_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4881
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4893
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4914
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4926
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4954
rval = emlxs_vpi_event(vport, FCF_EVENT_VPI_PAUSE, vpip);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4977
rval = emlxs_fcoe_fcftab_state(port, FCOE_FCFTAB_STATE_SOLICIT,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4982
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
4994
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5037
rval = emlxs_fcoe_fcftab_state(port, FCOE_FCFTAB_STATE_SOLICIT,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5042
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5054
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5106
rval = emlxs_fcoe_fcftab_state(port, FCOE_FCFTAB_STATE_OFFLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5111
rval = emlxs_fcoe_fcftab_state(port, FCOE_FCFTAB_STATE_OFFLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5116
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5128
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5173
rval = emlxs_fcoe_fcftab_state(port, FCOE_FCFTAB_STATE_SHUTDOWN,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5176
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5186
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5193
rval = emlxs_fcoe_fcftab_state(port, FCOE_FCFTAB_STATE_OFFLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5198
rval = emlxs_fcoe_fcftab_state(port, FCOE_FCFTAB_STATE_SOLICIT,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5203
rval = emlxs_fcoe_fcftab_state(port, FCOE_FCFTAB_STATE_READ,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5207
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5330
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5357
rval = emlxs_fcoe_fcftab_state(port,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5370
rval = emlxs_fcoe_fcftab_state(port,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5375
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5487
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5515
rval = emlxs_fcoe_fcftab_req_handler(port, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5516
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5533
rval = emlxs_fcoe_fcftab_state(port,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5536
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5582
rval = emlxs_fcoe_fcftab_state(port,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5585
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5650
rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5651
if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5657
rval = emlxs_fcoe_fcftab_state(port,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5659
FCF_REASON_SEND_FAILED, rval, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5661
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5676
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5699
rval = emlxs_fcoe_fcftab_req_handler(port, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5700
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5883
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5914
rval = emlxs_fcoe_fcftab_req_handler(port, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5915
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5931
rval = emlxs_fcoe_fcftab_state(port,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5934
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5942
rval = emlxs_fcoe_fcftab_state(port,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5945
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5969
rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5970
if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5974
rval = emlxs_fcoe_fcftab_state(port,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5976
FCF_REASON_SEND_FAILED, rval, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5978
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
5993
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6020
rval = emlxs_fcoe_fcftab_state(port,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6033
rval = emlxs_fcoe_fcftab_state(port, FCOE_FCFTAB_STATE_READ,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6037
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6049
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6102
rval = emlxs_fcoe_fcftab_state(port, FCOE_FCFTAB_STATE_FCFI_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6105
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6429
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6451
rval = emlxs_fcoe_fcftab_req_handler(port, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6452
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6486
rval = emlxs_fcoe_fcftab_state(port,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6493
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6503
rval = emlxs_fcoe_fcftab_state(port,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6507
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6519
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6540
rval = emlxs_fcoe_fcftab_req_handler(port, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6541
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6551
rval = emlxs_fcoe_fcftab_state(port, FCOE_FCFTAB_STATE_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6554
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6567
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6614
rval = emlxs_fcoe_fcftab_state(port,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6618
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6630
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6650
rval = emlxs_fcoe_fcftab_req_handler(port, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6651
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6661
rval = emlxs_fcoe_fcftab_state(port, FCOE_FCFTAB_STATE_FCFI_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6664
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6678
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6726
rval = emlxs_fcoe_fcftab_state(port,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6751
rval = emlxs_fcoe_fcftab_state(port,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6769
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6786
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6873
rval = emlxs_fcoe_fcftab_state(port, FCOE_FCFTAB_STATE_SOLICIT,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6878
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6892
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6940
rval = emlxs_fcoe_fcftab_state(port,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6965
rval = emlxs_fcoe_fcftab_state(port,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6983
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
6997
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7061
rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7062
if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7091
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7194
rval = emlxs_fcoe_fcftab_state(port, FCOE_FCFTAB_STATE_SOLICIT,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7199
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7213
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7236
rval = emlxs_fcoe_fcftab_req_handler(port, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7237
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7295
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7307
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7331
rval = emlxs_fcoe_fcftab_req_handler(port, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7332
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7343
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7376
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7423
rval = (func)(port, fcfp, evt, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7425
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7436
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7485
rval = emlxs_fcfi_action(port, fcfp, evt, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7487
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7498
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7552
rval = emlxs_fcfi_action(port, fcfp, FCF_EVENT_STATE_ENTER, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7554
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7597
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7599
rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_FREE, 0, 0, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7601
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7698
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7745
rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_REG,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7747
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7757
rval = emlxs_fcftab_event(port, FCF_EVENT_FCFI_OFFLINE, fcfp);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7759
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7769
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7791
rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7803
rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_VFI_ONLINE_CMPL,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7816
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7825
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7833
rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_PAUSED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7836
rval = emlxs_fcfi_state(port, fcfp,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7842
rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_UNREG,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7846
rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_OFFLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7850
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7860
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7890
rval = emlxs_fcfi_offline_handler(port, fcfp, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7913
rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_VFI_OFFLINE_CMPL,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7923
rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_VFI_OFFLINE_CMPL,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7947
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7957
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7987
rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_REG,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
7998
rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_VFI_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8008
rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8020
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8032
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8050
rval = emlxs_fcfi_offline_handler(port, fcfp, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8051
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8087
rval = emlxs_fcfi_offline_handler(port, fcfp, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8088
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8097
rval = emlxs_vfi_event(port, FCF_EVENT_VFI_ONLINE, vfip);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8101
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8111
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8127
rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8130
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8142
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8162
rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_PAUSED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8165
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8174
rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_UNREG,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8177
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8261
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8281
rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_UNREG,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8290
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8300
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8343
rval = emlxs_fcfi_offline_handler(port, fcfp, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8358
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8368
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8423
rval = emlxs_fcfi_offline_handler(port, fcfp, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8438
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8448
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8474
rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_UNREG_CMPL,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8482
rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_UNREG,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8486
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8496
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8522
rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_REG_CMPL,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8530
rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_REG,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8534
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8601
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8628
rval = emlxs_fcfi_offline_handler(port, fcfp, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8629
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8638
rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_VFI_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8640
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8649
rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_REG_FAILED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8652
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8684
rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8685
if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8688
rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_REG_FAILED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8689
FCF_REASON_SEND_FAILED, rval, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8691
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8704
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8721
rval = emlxs_fcfi_offline_handler(port, fcfp, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8722
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8730
rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_VFI_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8733
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8796
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8814
rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_OFFLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8816
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8829
rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_UNREG_FAILED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8831
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8844
rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8845
if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8848
rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_UNREG_FAILED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8849
FCF_REASON_SEND_FAILED, rval, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8851
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8864
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8883
rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_OFFLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8886
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8897
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8919
rval = emlxs_fcfi_offline_handler(port, fcfp, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8920
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8961
rval = emlxs_fcftab_event(port, FCF_EVENT_FCFI_ONLINE, fcfp);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
8963
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9218
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9265
rval = (func)(port, vfip, evt, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9267
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9278
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9329
rval = emlxs_vfi_action(port, vfip, evt, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9331
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9341
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9401
rval = emlxs_vfi_action(port, vfip, FCF_EVENT_STATE_ENTER, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9403
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9413
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9435
rval = emlxs_vfi_state(port, vfip, VFI_STATE_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9447
rval = emlxs_vfi_state(port, vfip, VFI_STATE_VPI_ONLINE_CMPL,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9461
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9470
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9478
rval = emlxs_vfi_state(port, vfip, VFI_STATE_PAUSED,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9481
rval = emlxs_vfi_state(port, vfip,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9487
rval = emlxs_vfi_state(port, vfip, VFI_STATE_UNREG,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9491
rval = emlxs_vfi_state(port, vfip, VFI_STATE_UNREG,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9495
rval = emlxs_vfi_state(port, vfip, VFI_STATE_OFFLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9499
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9509
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9539
rval = emlxs_vfi_offline_handler(port, vfip, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9562
rval = emlxs_vfi_state(port, vfip, VFI_STATE_VPI_OFFLINE_CMPL,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9572
rval = emlxs_vfi_state(port, vfip, VFI_STATE_VPI_OFFLINE_CMPL,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9596
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9609
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9642
rval = emlxs_vfi_state(port, vfip, VFI_STATE_INIT,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9654
rval = emlxs_vfi_state(port, vfip, VFI_STATE_VPI_ONLINE,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9692
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9702
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9751
rval = emlxs_vfi_offline_handler(port, vfip, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9765
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9775
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9838
rval = emlxs_vfi_offline_handler(port, vfip, arg1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9852
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9862
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9918
rval = emlxs_vfi_state(port, vfip, VFI_STATE_INIT,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9920
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9931
rval = emlxs_fcfi_event(port, FCF_EVENT_VFI_OFFLINE, vfip);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9933
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcf.c
9996
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
1746
int rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
1757
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
1784
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
1794
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
1814
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
1837
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
1850
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
1858
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
1895
if (rval = EMLXS_SLI_ONLINE(hba)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
1897
rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
1906
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
1926
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
1936
int rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
2030
rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
2034
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
2046
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
2048
if ((rval = emlxs_offline(hba, 0))) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
2049
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
2074
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
2087
if ((rval = emlxs_online(hba))) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
2096
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
2099
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1300
fct_status_t rval = FCT_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1314
rval = FCT_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1322
rval = FCT_ALLOC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1333
rval = FCT_BUSY;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1358
rval = FCT_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1363
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1478
int32_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1581
rval = emlxs_reset(port, FC_FCA_RESET);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1587
rval = emlxs_reset(port, FC_FCA_LINK_RESET);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1589
*((fct_status_t *)arg) = (rval == FC_SUCCESS) ? FCT_SUCCESS:
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1703
fct_status_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1710
rval = emlxs_fct_cmd_accept(port, fct_cmd, EMLXS_FCT_SEND_CMD_RSP);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1711
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1717
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1763
rval = emlxs_fct_send_fcp_status(fct_cmd);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1764
if (rval == FCT_NOT_FOUND) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1769
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1777
rval = emlxs_fct_send_els_rsp(fct_cmd);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1780
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1822
fct_status_t rval = FCT_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1835
rval = FCT_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1855
rval = FCT_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1891
rval = FCT_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1898
rval = FCT_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1901
rval = FCT_NOT_FOUND;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1903
rval = FCT_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1908
"rval=%llx", pkt->pkt_state, pkt->pkt_reason, rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1936
if ((rval == FCT_SUCCESS) || (rval == FCT_NOT_FOUND)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1940
((rval == FCT_SUCCESS)? "FCT_SUCCESS":"FCT_NOT_FOUND"));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
1955
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2057
fct_status_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2077
rval = emlxs_fct_cmd_accept(port, fct_cmd,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2079
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2085
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2547
fct_status_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2549
rval = emlxs_fct_cmd_accept(port, fct_cmd, EMLXS_FCT_SEND_FCP_DATA);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2550
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2556
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2641
fct_status_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2767
rval = emlxs_fct_cmd_acquire(port, fct_cmd, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2768
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2772
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2878
fct_status_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2919
rval = emlxs_fct_cmd_acquire(port, fct_cmd, EMLXS_FCT_REQ_COMPLETE);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
2920
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3178
uint32_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3234
rval = emlxs_fct_process_unsol_flogi(port, cp, iocbq, mp, size);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3236
if (!rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3259
rval =
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3266
rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3270
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3813
fct_status_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3822
rval = emlxs_fct_cmd_acquire(port, fct_cmd, EMLXS_FCT_PKT_COMPLETE);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
3823
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4046
fct_status_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4107
rval = emlxs_fct_cmd_acquire(port, fct_cmd, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4108
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4112
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4140
fct_status_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4199
rval = emlxs_fct_cmd_acquire(port, fct_cmd, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4200
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4204
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4230
fct_status_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4285
rval = emlxs_fct_cmd_acquire(port, fct_cmd, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4286
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4291
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
4989
uint32_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
5008
rval = ddi_prop_lookup_string_array(DDI_DEV_T_ANY, hba->dip,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
5011
if ((rval != DDI_PROP_SUCCESS) || !cnt || !arrayp) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
5015
rval = ddi_prop_lookup_string_array(DDI_DEV_T_ANY, hba->dip,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
5019
if ((rval != DDI_PROP_SUCCESS) || !cnt || !arrayp) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
764
fct_status_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
797
rval = emlxs_fct_cmd_acquire(port, fct_cmd, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fct.c
798
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fw.c
54
int rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fw.c
56
rval = mod_install(&emlxs_modlinkage);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fw.c
58
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fw.c
65
int rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fw.c
67
rval = mod_remove(&emlxs_modlinkage);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fw.c
69
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fw.c
76
int rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fw.c
78
rval = mod_info(&emlxs_modlinkage, modinfop);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fw.c
80
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_ip.c
384
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_ip.c
410
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_ip.c
425
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_ip.c
444
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_mbox.c
2048
mb->un.varCfgRing.rrRegs[i].rval =
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_mbox.c
2677
int rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_mbox.c
2748
rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_mbox.c
2749
if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_mbox.c
2798
int rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_mbox.c
2843
rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_mbox.c
2844
if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_msg.c
314
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_msg.c
321
rval |= 2;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_msg.c
325
rval |= 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_msg.c
332
rval |= 2;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_msg.c
336
rval |= 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_msg.c
343
rval |= 2;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_msg.c
347
rval |= 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_msg.c
354
rval |= 2;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_msg.c
358
rval |= 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_msg.c
364
rval |= 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_msg.c
368
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_msg.c
384
uint32_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_msg.c
414
if (rval = emlxs_msg_print_check(port, msg)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_msg.c
477
switch (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_pkt.c
49
int32_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_pkt.c
56
rval = emlxs_pkt_send(pkt, 1);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_pkt.c
58
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_pkt.c
60
"Deferred pkt_send failed: status=%x pkt=%p", rval,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_pkt.c
83
int32_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_pkt.c
86
rval = emlxs_fca_transport((opaque_t)port, pkt);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_pkt.c
91
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_pkt.c
94
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
1008
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
1020
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
1039
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
1100
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
1119
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
1159
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
1383
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
1428
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
1460
rval = ENOMEM;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
1479
rval = EAGAIN;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
1494
rval = ENOMEM;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
1504
rval = ENOMEM;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
1514
rval = ENOMEM;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
1583
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
1591
rval = emlxs_sli3_issue_mbox_cmd(hba, mbq, MBX_NOWAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
1592
if ((rval != MBX_SUCCESS) && (rval != MBX_BUSY)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
1600
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
1619
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
1659
if (rval == 0) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
1660
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
1663
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
209
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
274
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
291
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
306
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
370
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
381
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
4175
uint32_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
4185
rval = emlxs_sli2_fct_bde_setup(port, sbp);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
4187
rval = emlxs_sli3_fct_bde_setup(port, sbp);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
4190
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
4199
uint32_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
4203
rval = emlxs_sli2_bde_setup(port, sbp);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
4205
rval = emlxs_sli3_bde_setup(port, sbp);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
4208
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
436
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
476
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
622
rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
634
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
640
if (!rval && (vpd->part_num[0] != 0) &&
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
6764
uint32_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
6853
rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mboxq, MBX_NOWAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
6854
if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
6937
uint32_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
694
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
6948
if ((rval = emlxs_mb_check_sparm(hba, param))) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
6951
rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
7002
rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
7003
if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
7062
uint32_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
7116
rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
7117
if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
829
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
862
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
921
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
970
rval = ENOMEM;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli3.c
993
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
1005
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
1023
rval = EAGAIN;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
1049
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
1099
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
1108
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
1171
rval = ENOMEM;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
1179
rval = ENOMEM;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
1198
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
1209
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
1222
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
1234
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
1258
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
1276
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
1433
rval = emlxs_sli4_issue_mbox_cmd(hba, mbq, MBX_WAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
1434
if ((rval != MBX_SUCCESS) && (rval != MBX_BUSY)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
1440
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
1453
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
1516
if (rval == 0) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
1517
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
1520
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
308
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
410
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
427
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
439
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
453
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
531
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
542
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
560
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
661
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
685
rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
697
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
703
if (!rval && (vpd->part_num[0] != 0) &&
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
767
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
9143
uint32_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
9159
rval = emlxs_sli4_issue_mbox_cmd(hba, mbq, MBX_NOWAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
9161
if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
9222
uint32_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
9242
rval = emlxs_sli4_issue_mbox_cmd(hba, mbq, MBX_NOWAIT, 0);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
9244
if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
9459
uint32_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
9476
if ((rval = emlxs_mb_check_sparm(hba, param))) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
9479
rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
948
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
9497
rval = emlxs_rpi_online_notify(port, rpip, did, param, (void *)sbp,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
9500
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
9510
uint32_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
9548
rval = emlxs_rpi_offline_notify(port, rpip, (void *)sbp, (void *)ubp,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
9551
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
975
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_sli4.c
993
rval = EAGAIN;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
10082
int32_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
10095
if ((rval = EMLXS_SLI_PREP_CT_IOCB(port, sbp)) != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
10097
if (rval == 0xff) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
10099
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
10102
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
11344
int32_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
11352
rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
11356
rval =
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
11362
rval =
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
11366
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
11377
int32_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
11387
rval =
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
11393
rval =
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
11397
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
11408
int rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
11431
rval = pm_busy_component(dip, EMLXS_PM_ADAPTER);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
11433
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
11435
"pm_busy_component failed. ret=%d", rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
11442
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
11455
int rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
11475
rval = pm_idle_component(dip, EMLXS_PM_ADAPTER);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
11477
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
11479
"pm_idle_component failed. ret=%d", rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
11487
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
11541
uint32_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
11554
rval =
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
11558
if ((rval != DDI_PROP_SUCCESS) || !cnt || !arrayp) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
11562
rval =
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
11567
if ((rval != DDI_PROP_SUCCESS) || !cnt || !arrayp) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
1207
int rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
1212
rval = emlxs_hba_attach(dip);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
1217
rval = emlxs_hba_resume(dip);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
1221
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
1224
if (rval == DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
1238
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
1253
int rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
1273
rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
1319
rval = emlxs_hba_detach(dip);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
1321
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
1333
rval = emlxs_hba_suspend(dip);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
1335
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
1344
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
1347
if (rval == DDI_FAILURE) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
1354
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
2283
int32_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
2295
rval = FC_CAP_FOUND;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
2310
rval = FC_CAP_FOUND;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
2325
rval = FC_CAP_FOUND;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
2335
rval = FC_CAP_FOUND;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
2345
rval = FC_CAP_FOUND;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
2355
rval = FC_CAP_FOUND;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
2365
rval = FC_CAP_FOUND;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
2371
rval = FC_CAP_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
2375
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
2479
uint32_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
2491
rval = (hba->flag & FC_ONLINING_MODE) ?
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
2493
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
2543
rval = emlxs_send_fcp_cmd(port, sbp, &pkt_flags);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
2548
rval = emlxs_send_ip(port, sbp);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
2554
rval = emlxs_send_fcp_cmd(port, sbp, &pkt_flags);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
2558
rval = emlxs_send_ct(port, sbp);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
2563
rval = emlxs_send_menlo(port, sbp);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
2568
rval = emlxs_send_els(port, sbp);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
2576
rval = emlxs_send_fct_status(port, sbp);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
2580
rval = emlxs_send_fct_abort(port, sbp);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
2585
rval = emlxs_send_ct_rsp(port, sbp);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
2589
rval = emlxs_send_menlo(port, sbp);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
2594
rval = emlxs_send_els_rsp(port, sbp);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
2601
rval = FC_TRANSPORT_ERROR;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
2606
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
2612
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
3879
int rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
3992
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
4000
rval = FC_DEVICE_BUSY;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
4008
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
4038
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
4071
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
4076
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
4095
int32_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
4148
rval = emlxs_reset(port, cmd);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
4150
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
5750
uint32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
5765
rval = FC_INVALID_REQUEST;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
5768
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
5817
int rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
5855
rval = emlxs_hba_resume(dip);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
5857
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
5884
rval = emlxs_hba_suspend(dip);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
5886
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
5898
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
5905
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
5927
int rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
5939
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
6046
int rval = 0; /* return code */
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
6078
rval = emlxs_dfc_manage(hba, (void *)arg, mode);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
6084
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
6087
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
7004
uint32_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
7115
rval = emlxs_integrity_check(hba);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
7116
if (rval) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
7119
"failed. %d error(s) found.", DRIVER_NAME, ddiinst, rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
7190
rval = emlxs_init_adapter_info(hba);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
7192
if (rval == 0) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
8589
int32_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
8624
if ((rval = EMLXS_SLI_PREP_FCP_IOCB(port, sbp,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
8627
if (rval == 0xff) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
8630
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
8633
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
8675
if ((rval = EMLXS_SLI_PREP_FCP_IOCB(port, sbp,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
8678
if (rval == 0xff) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
8681
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
8684
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
8732
if ((rval = EMLXS_SLI_PREP_FCP_IOCB(port, sbp,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
8735
if (rval == 0xff) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
8738
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
8741
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
8955
int32_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
9006
if ((rval = EMLXS_SLI_PREP_IP_IOCB(port, sbp)) != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
9008
if (rval == 0xff) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
9010
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
9013
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
9056
int32_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
9225
if ((rval = EMLXS_SLI_PREP_ELS_IOCB(port, sbp)) != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
9227
if (rval == 0xff) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
9229
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
9232
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
9420
int32_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
9714
if ((rval = EMLXS_SLI_PREP_ELS_IOCB(port, sbp)) != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
9716
if (rval == 0xff) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
9718
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
9721
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
9876
int32_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
9895
if ((rval = EMLXS_SLI_PREP_CT_IOCB(port, sbp)) != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
9897
if (rval == 0xff) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
9899
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
9902
return (rval);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
9970
int32_t rval;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
9992
if ((rval = EMLXS_SLI_PREP_CT_IOCB(port, sbp)) != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
9994
if (rval == 0xff) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
9996
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
9999
return (rval);
usr/src/uts/common/io/fibre-channel/fca/fcoei/fcoei.c
1013
rval = ndi_devi_online(child, NDI_ONLINE_ATTACH);
usr/src/uts/common/io/fibre-channel/fca/fcoei/fcoei.c
1015
if (rval != NDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/fcoei/fcoei.c
1016
FCOEI_LOG(__FUNCTION__, "devi_online: %d", rval);
usr/src/uts/common/io/fibre-channel/fca/fcoei/fcoei.c
357
cred_t *credp, int *rval)
usr/src/uts/common/io/fibre-channel/fca/fcoei/fcoei.c
388
*rval = ret;
usr/src/uts/common/io/fibre-channel/fca/fcoei/fcoei.c
66
dev_t dev, int cmd, intptr_t data, int mode, cred_t *credp, int *rval);
usr/src/uts/common/io/fibre-channel/fca/fcoei/fcoei.c
981
int rval = NDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/fcoei/fcoei_lv.c
293
int rval = FC_CAP_FOUND;
usr/src/uts/common/io/fibre-channel/fca/fcoei/fcoei_lv.c
312
rval = FC_CAP_ERROR;
usr/src/uts/common/io/fibre-channel/fca/fcoei/fcoei_lv.c
316
return (rval);
usr/src/uts/common/io/fibre-channel/fca/fcoei/fcoei_lv.c
499
int rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/fcoei/fcoei_lv.c
507
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/fcoei/fcoei_lv.c
541
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/fcoei/fcoei_lv.c
546
return (rval);
usr/src/uts/common/io/fibre-channel/fca/fcoei/fcoei_lv.c
567
int rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/fcoei/fcoei_lv.c
571
return (rval);
usr/src/uts/common/io/fibre-channel/fca/fcoei/fcoei_lv.c
580
rval = FC_NOMEM;
usr/src/uts/common/io/fibre-channel/fca/fcoei/fcoei_lv.c
586
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/fcoei/fcoei_lv.c
593
rval = FC_NOMEM;
usr/src/uts/common/io/fibre-channel/fca/fcoei/fcoei_lv.c
598
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/fcoei/fcoei_lv.c
604
rval = FC_INVALID_REQUEST;
usr/src/uts/common/io/fibre-channel/fca/fcoei/fcoei_lv.c
608
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
10019
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
1012
rval = ddi_prop_lookup_int_array(DDI_DEV_T_ANY, dip,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
1014
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
10422
int rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
10463
(rval = ql_abort_io(ha, sp)) != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
10469
"needed\n", rval, ha->pha->timeout_cnt);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
10905
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
10913
rval = ql_fw_ready(ha, 10);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
10920
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
10924
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11114
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11119
rval = EACCES;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11121
rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11124
if (rval != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11126
QL_PRINT_2(ksp->ks_private, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11131
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11153
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11180
rval = QL_FUNCTION_PARAMETER_ERROR;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11181
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11182
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11189
rval = ql_erase_flash(ha, erase_all);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11191
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11198
rval = ql_program_flash_address(ha,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11200
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11208
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11209
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11214
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11235
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11251
rval = ql_poll_flash(ha, addr, data);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11253
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11254
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11259
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11278
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11322
rval = ql_poll_flash(ha, 0, 0x80);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11324
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11333
rval = ql_program_flash_address(ha, cnt,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11335
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11353
rval = ql_poll_flash(ha, 0, 0x80);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11356
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11357
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11362
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11385
int rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11396
rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11405
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11406
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11411
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11636
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11643
rval = ql_24xx_read_flash(ha, FLASH_CONF_ADDR | 0x3AB, &fdata);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11645
if (rval != QL_SUCCESS || fdata == 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11647
rval = ql_24xx_read_flash(ha, FLASH_CONF_ADDR | 0x39F,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11652
rval = ql_24xx_read_flash(ha, FLASH_CONF_ADDR |
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11656
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11657
EL(ha, "24xx read_flash failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11670
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11693
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11710
if ((rval = ql_get_dma_mem(ha, &dmabuf, 0xffff,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11713
EL(ha, "dma alloc failed, rval=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11714
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11719
if ((rval = ql_24xx_unprotect_flash(ha)) != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11720
EL(ha, "unprotect_flash failed, rval=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11722
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11741
rval = ql_8021_rom_erase(ha, fdata);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11742
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11745
"\n", rval, fdata,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11751
rval = ql_flash_access(ha,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11754
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11757
"\n", rval, fdata,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11769
rval = ql_24xx_write_flash(ha,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11774
rval = ql_24xx_write_flash(ha,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11778
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11802
rval = ql_wrt_risc_ram(ha, ha->flash_data_addr |
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11804
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11818
rval = ql_24xx_write_flash(ha,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11820
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11842
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11843
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11848
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11870
int rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11874
if ((rval = ql_8021_rom_read(ha, faddr, bp)) != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11877
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11896
rval = QL_FUNCTION_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11899
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11904
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11926
int rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11930
if ((rval = ql_8021_rom_write(ha, addr, data)) != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11933
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11961
rval = QL_FUNCTION_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11964
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11967
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11985
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11994
rval = ql_8021_rom_wrsr(ha, xp->fdesc.write_enable_bits);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11995
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
11998
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12007
rval = ql_flash_access(ha, FAC_SEMA_LOCK,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12009
if (rval == QL_SUCCESS ||
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12010
rval == QL_FUNCTION_TIMEOUT) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12011
EL(ha, "lock status=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12017
if (rval == QL_SUCCESS &&
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12018
(rval = ql_flash_access(ha, FAC_WRT_ENABLE, 0,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12020
EL(ha, "WRT_ENABLE status=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12025
rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12028
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12079
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12088
rval = ql_8021_rom_wrsr(ha, xp->fdesc.write_disable_bits);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12089
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12101
rval = ql_flash_access(ha, FAC_SEMA_LOCK,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12103
if (rval == QL_SUCCESS ||
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12104
rval == QL_FUNCTION_TIMEOUT) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12105
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12107
rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12114
if (rval == QL_SUCCESS &&
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12115
(rval = ql_flash_access(ha, FAC_WRT_PROTECT, 0,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12117
EL(ha, "protect status=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12182
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12204
rval = ql_binary_fw_dump(ha, FALSE);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12206
rval = ql_binary_fw_dump(ha, TRUE);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12236
if (rval == QL_SUCCESS || rval == QL_DATA_EXISTS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12240
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12242
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12264
int rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12295
rval = ql_fw_etrace(ha, &ha->fwexttracebuf,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12297
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12299
"time stamp failed: %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12381
rval = ql_27xx_binary_fw_dump(ha);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12385
rval = QL_MEMORY_ALLOC_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12388
rval = ql_2300_binary_fw_dump(ha,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12391
rval = ql_81xx_binary_fw_dump(ha,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12394
rval = ql_83xx_binary_fw_dump(ha,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12397
rval = ql_25xx_binary_fw_dump(ha,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12400
rval = ql_24xx_binary_fw_dump(ha,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12404
rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12406
rval = ql_2200_binary_fw_dump(ha,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12417
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12424
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
12433
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
1397
if ((rval = ql_setup_interrupts(ha)) != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
1399
"rval=%xh", QL_NAME, instance, rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14203
int rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14220
rval = QL_FUNCTION_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14225
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14315
rval = QL_FUNCTION_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14324
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14332
rval = QL_FUNCTION_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14338
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14374
rval = QL_FUNCTION_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14376
rval = mcp->mb[0];
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14379
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14387
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14407
int rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14424
rval = QL_FUNCTION_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14429
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14525
rval = QL_FUNCTION_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14535
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14536
rval = ql_read_risc_ram(ha, 0x800, 0xf800, fw->risc_ram);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14539
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14540
rval = ql_read_risc_ram(ha, 0x10000, 0x800, fw->stack_ram);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14543
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14544
rval = ql_read_risc_ram(ha, 0x10800, 0xf800, fw->data_ram);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14549
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14571
int rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14585
rval == QL_SUCCESS; timer--) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14589
rval = QL_FUNCTION_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14594
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14895
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14910
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14929
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14931
rval = ql_read_risc_ram(ha, 0x20000,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14934
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14936
rval = ql_read_risc_ram(ha, 0x100000,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14941
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14958
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14974
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14975
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
14981
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
15003
int rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
15025
rval == QL_SUCCESS; timer--) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
15033
rval = QL_FUNCTION_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
15038
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
1523
int rval, rval1;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
1531
rval = (int)snprintf(ver_fmt + rval1,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
1540
(void) snprintf(ver_fmt + rval1 + rval,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
15431
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
15512
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
15514
rval = ql_read_risc_ram(ha, 0x20000,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
15517
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
15519
rval = ql_read_risc_ram(ha, 0x100000,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
15524
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
15541
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
15557
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
15558
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
15564
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
15586
int rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
15608
rval == QL_SUCCESS; timer--) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
15616
rval = QL_FUNCTION_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
15621
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
16020
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
16101
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
16103
rval = ql_read_risc_ram(ha, 0x20000,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
16106
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
16108
rval = ql_read_risc_ram(ha, 0x100000,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
16113
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
16130
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
16146
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
16147
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
16153
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
16182
int rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
16195
for (timer = 6000000; timer && rval == QL_SUCCESS; timer--) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
16214
rval = RD16_IO_REG(ha, mailbox_out[0]);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
16246
rval = QL_FUNCTION_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
16250
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
16625
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
16645
if ((rval = ql_alloc_phys(ha, mem, KM_SLEEP)) != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
16647
EL(ha, "failed, alloc_phys=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
16652
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
1736
rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
17368
int32_t rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
17407
(rval = ql_setup_msix(ha)) == DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
17410
(rval = ql_setup_msi(ha)) == DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
17413
rval = ql_setup_fixed(ha);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
17416
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
17417
EL(ha, "failed, aif, rval=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
17420
if ((rval = ql_init_mutex(ha)) != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
17421
EL(ha, "failed, mutex init ret=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
17427
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
17873
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
17878
if ((rval = ddi_get_iblock_cookie(ha->dip, 0, &ha->iblock_cookie)) !=
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
17880
EL(ha, "failed, get_iblock: %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
17881
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
17890
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
17895
if ((rval = ql_init_mutex(ha)) != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
17896
EL(ha, "failed, mutex init ret=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
17901
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18022
uint32_t rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18037
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18076
rval = QL_FWSYM_NOT_FOUND;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18080
rval = QL_FWSYM_NOT_FOUND;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18084
rval = QL_FWSYM_NOT_FOUND;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18088
rval = QL_FWSYM_NOT_FOUND;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18092
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18110
rval = QL_FWSYM_NOT_FOUND;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18114
rval = QL_FWSYM_NOT_FOUND;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18118
rval = QL_FWSYM_NOT_FOUND;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18122
rval = QL_FWSYM_NOT_FOUND;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18128
rval = QL_FWSYM_NOT_FOUND;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18132
rval = QL_FWSYM_NOT_FOUND;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18136
rval = QL_FWSYM_NOT_FOUND;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18140
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18173
rval = QL_FW_NOT_SUPPORTED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18176
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18178
"module %s (%x)", QL_NAME, ha->instance, module, rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18206
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18623
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18627
rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18648
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18668
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18682
rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18684
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18686
rval = -1;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18690
rval = 1;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18692
rval = -1;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18695
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18708
int rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18719
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18734
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18742
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18755
int rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18762
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18773
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18786
int rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18797
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18806
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18819
int rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18826
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18833
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18880
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18910
if ((rval = ql_alloc_phys(ha, &ha->req_q[0]->req_ring, KM_SLEEP)) !=
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18912
EL(ha, "request queue status=%xh", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18914
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18959
if ((rval = ql_alloc_phys(ha, &ha->req_q[1]->req_ring,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18961
EL(ha, "ha request queue status=%xh", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18963
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
1899
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18996
rval = ql_create_rsp_queue(ha, cnt);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18997
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
18999
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19010
if ((rval = ql_alloc_phys(ha, &ha->rcv_ring, KM_SLEEP)) !=
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19012
EL(ha, "receive queue status=%xh", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19014
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19020
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
1903
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19040
int rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19070
rval = ql_alloc_phys(ha, &rsp_q->rsp_ring, KM_SLEEP);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19071
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19072
EL(ha, "response queue status=%xh", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19083
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19156
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19167
if ((rval = qlc_fm_check_acc_handle(ha,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19172
"status=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19239
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19253
if ((rval = ddi_prop_lookup_int_array(DDI_DEV_T_ANY, ha->dip,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19256
EL(ha, "ddi_prop_lookup_int_array status=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19317
rval = ddi_regs_map_setup(ha->dip, w32, addrp, 0, len,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19319
if (rval != DDI_SUCCESS || *addrp == NULL || *handlep == NULL) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19321
rval, *addrp, *handlep);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19330
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19524
int rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
1954
rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19544
rval = QL_FUNCTION_PARAMETER_ERROR;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19551
rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19564
rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19579
if (sp->flags & SRB_ISP_COMPLETED || rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19580
rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19613
rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19616
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19617
EL(ha, "sp=%p not aborted=%xh\n", (void *)sp, rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19622
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19638
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19657
rval = ql_idc_time_extend(ha);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19658
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
1966
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19660
"=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19672
rval = ql_idc_ack(ha);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19673
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19674
EL(ha, "idc_ack status=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
1972
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
1975
ddi_get_instance(dip), rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19771
int rv, rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19793
rval == QL_SUCCESS; timer--) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
19801
rval = QL_FUNCTION_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
1981
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
2009
int suspend, rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
20537
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
20538
rval = rv;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
20542
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
20543
rval = rv;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
20570
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
20571
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
21560
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
21566
rval = CFG_IST(ha, CFG_LOAD_FLASH_FW) ?
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
21569
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
21570
EL(ha, "no dump template, status=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
21729
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
21748
rval = ql_alloc_phys(ha, &ha->dmp_template, KM_SLEEP);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
21749
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
21751
"status=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
21752
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
21767
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
21786
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
21798
rval = ql_24xx_read_flash(ha, faddr + 3, &fdata);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
21801
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
21802
EL(ha, "2700_read_flash status=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
21803
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
21814
rval = ql_24xx_read_flash(ha, faddr + 3, &fdata);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
21817
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
21818
EL(ha, "2700_read_flash status=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
21819
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
21830
rval = ql_24xx_read_flash(ha, faddr + 2, &fdata);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
21833
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
21834
EL(ha, "2700_read_flash status=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
21835
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
21850
rval = ql_alloc_phys(ha, &ha->dmp_template, KM_SLEEP);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
21851
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
21853
"status=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
21854
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
21860
rval = ql_24xx_read_flash(ha, faddr++, &fdata);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
21861
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
21862
EL(ha, "2700_read_flash status=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
21864
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
21871
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
22274
int esize, rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
22320
if ((rval = ql_2700_dump_ram(ha, MBC_DUMP_RAM_EXTENDED,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
22323
"esize=0\n", rval, start, esize / 4);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
2236
rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
22687
int rval, esize;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
22705
if ((rval = ql_2700_dump_ram(ha, MBC_MPI_RAM, entry->addr,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
22708
"esize=0\n", rval, entry->addr, entry->count);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
2275
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
2284
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
2290
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
2291
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
22928
int rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
22937
if ((rval = ql_alloc_phys(ha, &mem, KM_SLEEP)) != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
22938
EL(ha, "alloc status=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
22939
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
22956
for (timer = 6000000; timer && rval == QL_SUCCESS; timer--) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
22963
rval = RD16_IO_REG(ha, mailbox_out[0]);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
2297
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
22974
rval = QL_FUNCTION_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
22986
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
2319
int rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
2329
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
2341
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
2358
rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
2411
rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
2425
rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
2468
rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
2477
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
2860
int rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
2897
rval = FC_NOMEM;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
2904
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
2928
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
2943
rval = FC_BADPACKET;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
2947
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
2952
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
2978
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
2985
ha = ql_cmd_setup(fca_handle, pkt, &rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
2988
rval, fca_handle);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3055
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3059
rval = ql_els_plogi(ha, pkt);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3063
rval = ql_els_flogi(ha, pkt);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3066
rval = ql_els_logo(ha, pkt);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3069
rval = ql_els_prli(ha, pkt);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3072
rval = ql_els_prlo(ha, pkt);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3075
rval = ql_els_adisc(ha, pkt);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3078
rval = ql_els_linit(ha, pkt);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3081
rval = ql_els_lpc(ha, pkt);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3084
rval = ql_els_lsts(ha, pkt);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3087
rval = ql_els_scr(ha, pkt);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3090
rval = ql_els_rscn(ha, pkt);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3093
rval = ql_els_farp_req(ha, pkt);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3096
rval = ql_els_farp_reply(ha, pkt);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3099
rval = ql_els_rls(ha, pkt);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3102
rval = ql_els_rnid(ha, pkt);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3117
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3125
if (rval == QL_CONSUMED) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3126
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3127
} else if (rval == FC_SUCCESS &&
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3133
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3135
rval, els.ls_code, pkt->pkt_cmd_fhdr.d_id, sp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3140
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3165
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3179
rval = FC_CAP_FOUND;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3183
rval = FC_CAP_FOUND;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3186
rval = FC_CAP_FOUND;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3214
rval = FC_CAP_FOUND;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3217
rval = FC_CAP_FOUND;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3220
rval = FC_CAP_FOUND;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3223
rval = FC_CAP_FOUND;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3226
rval = FC_CAP_ERROR;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3231
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3257
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3268
rval = FC_CAP_FOUND;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3270
rval = FC_CAP_FOUND;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3272
rval = FC_CAP_FOUND;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3274
rval = FC_CAP_FOUND;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3276
rval = FC_CAP_FOUND;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3279
rval = FC_CAP_ERROR;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3284
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3310
int rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3357
rval = FC_NO_MAP;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3371
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3396
int rval = FC_TRANSPORT_ERROR;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3400
ha = ql_cmd_setup(fca_handle, pkt, &rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3403
rval, fca_handle);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3404
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3427
rval = ql_fcp_scsi_cmd(ha, pkt, sp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3431
rval = FC_TRANSPORT_ERROR;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3447
rval = ql_fcp_ip_cmd(ha, pkt, sp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3454
rval = FC_TRANSPORT_ERROR;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3462
rval = ql_fc_services(ha, pkt);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3466
rval = FC_TRANSPORT_ERROR;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3475
rval = FC_TRANSPORT_ERROR;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3482
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3483
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3489
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3525
int rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3549
rval = FC_TOOMANY;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3560
for (index = 0; index < *count && rval == FC_SUCCESS; index++) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3566
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3571
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3579
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3593
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3606
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3618
if (rval == FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3719
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3720
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3725
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3753
int rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3771
rval = FC_UB_BADTOKEN;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3781
rval = FC_UB_BADTOKEN;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3801
if (rval == FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3813
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3814
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3819
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3848
int rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3868
rval = FC_UB_BADTOKEN;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3875
rval = FC_UB_BADTOKEN;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3883
rval = FC_UB_BADTOKEN;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3889
if (rval == FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3920
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3921
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3926
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3960
int rval = FC_ABORTED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3982
rval = FC_TRANSPORT_ERROR;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3985
rval = FC_OFFLINE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
3987
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4037
rval = FC_ABORTED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4040
rval = FC_BADEXCHANGE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4047
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4060
rval = FC_ABORTED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4126
rval = FC_ABORTED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4131
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4154
int rval = FC_SUCCESS, rval2;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4178
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4186
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4202
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4258
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4259
EL(ha, "cmd=%xh, failed=%xh\n", cmd, rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4265
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4303
int rval2, rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4335
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4343
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4353
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4383
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4401
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4404
rval = FC_TRAN_BUSY;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4410
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4417
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4435
rval = FC_TRAN_BUSY;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4443
rval = FC_TRAN_BUSY;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4451
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4462
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4469
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4475
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4487
rval = FC_NOMEM;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4503
rval = FC_INVALID_REQUEST;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4526
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4535
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4541
if (rval == FC_FAILURE) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4563
rval = FC_TOOMANY;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4572
rval = FC_NOMEM;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4579
rval = FC_NOMEM;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4629
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4632
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4674
rval = FC_TOOMANY;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4691
rval = FC_TOOMANY;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4723
rval = FC_NOMEM;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4743
rval = FC_NOMEM;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4777
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4794
rval = FC_INVALID_REQUEST;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4846
rval = FC_TRAN_BUSY;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4874
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4880
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4889
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4896
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4915
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4922
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4930
rval = FC_TRAN_BUSY;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4934
rval = ql_load_flash(ha, (uint8_t *)cmd->pm_data_buf,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4942
rval = ql_24xx_load_flash(ha,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4947
rval = ql_24xx_load_flash(ha,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4953
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4955
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4957
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4969
rval = FC_NOMEM;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
4984
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5002
rval = FC_BADCMD;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5008
rval = FC_BADCMD;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5012
rval = FC_BADCMD;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5025
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5026
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5032
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5084
ql_cmd_setup(opaque_t fca_handle, fc_packet_t *pkt, int *rval)
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5097
*rval = FC_UNBOUND;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5113
*rval = FC_TRANSPORT_ERROR;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5124
*rval = FC_OFFLINE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5144
*rval = FC_DEVICE_BUSY;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5156
*rval = FC_DEVICE_BUSY;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5177
*rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5181
*rval = qlc_fm_check_dma_handle(ha, pkt->pkt_cmd_dma);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5182
if (*rval == DDI_FM_OK) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5183
*rval = qlc_fm_check_acc_handle(ha,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5188
if (pkt->pkt_resp_acc != NULL && *rval == DDI_SUCCESS &&
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5192
*rval = qlc_fm_check_dma_handle(ha, pkt->pkt_resp_dma);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5193
if (*rval == DDI_FM_OK) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5194
*rval = qlc_fm_check_acc_handle(ha,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5202
if (((pkt->pkt_data_acc != NULL) & (*rval == DDI_SUCCESS) &
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5206
*rval = qlc_fm_check_dma_handle(ha, pkt->pkt_data_dma);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5207
if (*rval == DDI_FM_OK) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5208
*rval = qlc_fm_check_acc_handle(ha,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5213
if (*rval != DDI_FM_OK) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5223
*rval = FC_BADPACKET;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5229
*rval = FC_BADPACKET;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5233
*rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5263
int rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5350
rval = FC_TRAN_BUSY;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5381
rval = FC_TRAN_BUSY;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5387
rval = FC_TRAN_BUSY;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5398
pkt->pkt_reason, ret, rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5404
if (rval == FC_TRAN_BUSY) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5415
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5416
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5421
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5445
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5461
rval = ql_get_port_database(ha, tq, PDF_NONE);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5462
EL(ha, "rval=%xh, id=%x\n", rval, id);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5464
if (rval == QL_NOT_LOGGED_IN) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5495
"master state=%x\n", rval, id, tq->loop_id,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5500
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5508
"master state=%x\n", rval, id, tq->loop_id,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5522
rval, id, d_id.b24);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5587
int rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5696
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5697
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5702
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5803
int rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5823
rval = QL_CONSUMED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5864
rval = QL_CONSUMED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5884
if ((rval != FC_SUCCESS) && (rval != QL_CONSUMED)) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5885
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
5890
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
6654
int rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
6673
rval = FC_TRAN_BUSY;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
6684
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
6693
if ((rval != FC_SUCCESS) ||
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
6697
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
6719
rval = FC_TRAN_BUSY;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
6727
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
6753
int rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
680
int rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
6814
rval = ql_login_fabric_port(ha, tq, loop_id);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
6815
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
6824
rval = ql_login_fabric_port(ha, tq, loop_id);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
6825
if (rval == QL_PORT_ID_USED) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
6826
rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
6829
rval = ql_login_lport(ha, tq, loop_id, (uint16_t)
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
6832
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
6864
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
6889
rval = ql_login_fabric_port(ha, tq, loop_id);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
6896
switch (rval) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
6938
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
6941
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
6943
rval, d_id.b24);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
6951
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
6972
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
6986
rval = ql_login_fport(ha, tq, loop_id, LFF_NONE, &mr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
6987
if ((rval == QL_PARAMETER_ERROR) ||
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
6988
((rval == QL_COMMAND_ERROR) && (mr.mb[1] == 2 ||
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
6997
switch (rval) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
703
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
7063
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
7068
if (rval == QL_COMMAND_ERROR) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
7072
rval = QL_MEMORY_ALLOC_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
7077
rval = QL_FUNCTION_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
7082
rval = QL_FABRIC_NOT_INITIALIZED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
7091
ha->instance, tq->d_id.b24, rval, mr.mb[1]);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
7096
if (rval != QL_SUCCESS && rval != QL_PORT_ID_USED &&
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
7097
rval != QL_LOOP_ID_USED) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
7098
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
710
if (rval == 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
7103
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
711
rval = ddi_soft_state_init(&ql_state,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
714
if (rval == 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
722
rval = mod_install(&modlinkage);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
723
if (rval != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
732
if (rval != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
737
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
757
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
759
rval = mod_remove(&modlinkage);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
760
if (rval == 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
7630
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
7663
rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
768
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
7697
rval = ql_start_cmd(ha, tq, pkt, sp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
7699
QL_PRINT_3(ha, "done, ql_start_cmd=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
7701
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
7705
rval = QL_FUNCTION_PARAMETER_ERROR;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
7709
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
7833
int rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
7949
rval = FC_TRANSPORT_ERROR;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
7980
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
8002
int rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
8062
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
8064
rval = QL_FUNCTION_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
8096
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
819
int rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
827
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
835
rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
839
rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
843
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
849
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
872
int rval, *ptr;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
8908
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
8914
rval = ql_get_firmware_state(ha, &mr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
8916
(rval != QL_SUCCESS || mr.mb[1] != FSTATE_READY)) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
8917
EL(ha, "failed, Firmware Ready Test = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
9272
int rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
9308
rval = ql_abort_target(ha, tq, 0);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
9311
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
9312
EL(ha, "failed=%xh, d_id=%xh\n", rval, tq->d_id.b24);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
9318
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
9695
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
9709
rval = QL_MEMORY_ALLOC_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
9710
EL(ha, "kmem_zalloc failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
9711
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
9717
rval = ql_get_id_list(ha, (caddr_t)list, list_size, &mr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
9718
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
9720
EL(ha, "get_id_list failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
9721
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
9773
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
9774
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
9780
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
9912
int rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
9920
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
9932
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
9996
rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_debug.c
152
size_t tmp, rval, rval1, left;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_debug.c
195
rval = snprintf(fmt1, (size_t)EL_BUFFER_RESERVE,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_debug.c
199
rval1 = rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_debug.c
204
fmt = fmt1 + rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_debug.c
207
(size_t)(uint32_t)((int)EL_BUFFER_RESERVE - rval), s, vl);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_debug.c
211
rval += tmp;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_debug.c
213
if (rval > QL_LOG_LENGTH - 1) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_debug.c
214
left = rval - (QL_LOG_LENGTH - 1);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_debug.c
267
entry->buf[rval] = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_debug.c
396
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_debug.c
459
rval = ql_flash_errlog_store(ha, marker);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_debug.c
460
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_debug.c
461
EL(ha, "failed marker write=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_debug.c
462
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_debug.c
472
rval = ql_flash_errlog_store(ha, fdata);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_debug.c
473
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_debug.c
474
EL(ha, "failed error write=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_debug.c
480
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_debug.c
507
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_debug.c
529
if ((rval = ql_24xx_unprotect_flash(ha)) !=
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_debug.c
532
rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_debug.c
533
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_fm.c
142
int rval = DDI_FM_OK;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_fm.c
150
rval = qlc_fm_check_dma_handle(ha, pkt->pkt_cmd_dma);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_fm.c
153
if (pkt->pkt_resp_acc != NULL && rval == DDI_FM_OK &&
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_fm.c
155
rval = qlc_fm_check_dma_handle(ha, pkt->pkt_resp_dma);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_fm.c
158
if (((pkt->pkt_data_acc != NULL) & (rval == DDI_FM_OK) &
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_fm.c
160
rval = qlc_fm_check_dma_handle(ha, pkt->pkt_data_dma);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_fm.c
163
if (rval != DDI_FM_OK) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_hba_fru.c
300
int rval = -1;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_hba_fru.c
306
rval = ddi_getlongprop(DDI_DEV_T_ANY, ha->dip,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_hba_fru.c
313
(rval == DDI_PROP_SUCCESS ? fcode_ver_buf :
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
1010
if (rval = ddi_getlongprop_buf(DDI_DEV_T_ANY, ha->dip,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
1015
"property, rval=%x", QL_NAME, ha->instance, rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
1072
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
116
rval = ql_pci_sbus_config(ha);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
117
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
1282
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
1283
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
1288
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
138
if ((rval = ql_check_isp_firmware(ha)) != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
147
if ((rval = ql_mbx_wrap_test(ha, NULL)) == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
148
rval = ql_load_isp_firmware(ha);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
152
if (rval == QL_SUCCESS && (rval = ql_set_cache_line(ha)) ==
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
153
QL_SUCCESS && (rval = ql_init_rings(ha)) == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2174
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2185
if ((rval = ql_8021_fw_chk(ha)) == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2186
rval = ql_start_firmware(ha);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2192
rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2195
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2198
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2209
rval = ql_rd_risc_ram(ha, risc_address + 3,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2211
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2232
rval = ql_rd_risc_ram(ha, risc_address,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2235
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2258
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2262
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2265
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2271
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2293
int rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2301
rval = ql_8021_reset_fw(ha) == NX_DEV_READY ?
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
232
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
233
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2361
rval = ql_wrt_risc_ram(ha, risc_address,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2364
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2365
EL(ha, "failed, load=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2379
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
238
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2380
rval = ql_start_firmware(ha);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2383
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2384
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2390
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2406
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2414
if ((rval = ql_load_flash_image(ha)) != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2415
EL(ha, "load_flash_image status=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2417
(rval = ql_2700_get_flash_dmp_template(ha)) !=
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2419
EL(ha, "get_flash_dmp_template status=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2432
rval = ql_24xx_read_flash(ha, faddr++,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2434
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2442
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2444
rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2466
rval = ql_wrt_risc_ram(ha, risc_address,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2469
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2471
rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2479
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2486
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2487
rval = ql_start_firmware(ha);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2490
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2491
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2496
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2515
int rval, rval2;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2526
rval = ql_get_fw_version(ha, &mr, MAILBOX_TOV);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2531
} else if ((rval = ql_verify_checksum(ha)) == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2644
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2646
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2651
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2705
int rval, rval2;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2766
rval = ql_init_firmware(ha);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2767
if (rval == QL_COMMAND_ERROR) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2775
if (rval == QL_SUCCESS && CFG_IST(ha, CFG_ISP_FW_TYPE_1)) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2777
rval = ql_get_firmware_option(ha, &mr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2778
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2782
rval = ql_set_firmware_option(ha, &mr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2786
if ((rval == QL_SUCCESS) && (CFG_IST(ha, CFG_ENABLE_FWFCETRACE))) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2800
if ((rval == QL_SUCCESS) && (CFG_IST(ha, CFG_ENABLE_FWEXTTRACE))) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2814
if (rval == QL_SUCCESS && CFG_IST(ha, CFG_CTRL_MENLO)) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2839
rval = QL_FUNCTION_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2844
rval = QL_MEMORY_ALLOC_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2851
rval = ql_issue_mbx_iocb(ha, (caddr_t)pkt,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2856
if (rval != QL_SUCCESS ||
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2860
"cs=%xh, fc=%xh\n", rval,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2864
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2865
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2874
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2878
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2885
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2910
int rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2924
rval = ql_get_firmware_state(ha, &mr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2925
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2948
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2951
rval = ql_get_timeout_parameters(ha,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2953
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2955
"=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2959
rval = ql_configure_loop(ha);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
2997
rval = QL_FUNCTION_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3001
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3009
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3014
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3033
int rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3050
rval = ql_configure_hba(vha);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3051
if (rval == QL_SUCCESS && !(ha->task_daemon_flags &
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3053
rval = ql_configure_device_d_id(vha);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3054
if (rval == QL_SUCCESS && !(ha->task_daemon_flags &
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3061
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3062
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3067
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3091
int index, rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3113
rval = ql_get_port_database(ha,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3115
if ((rval == QL_SUCCESS) &&
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3177
rval = ql_get_port_database(ha, tq, PDF_NONE);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3184
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3226
rval = ql_get_port_database(ha, tq,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3228
if (rval == QL_NOT_LOGGED_IN) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3238
} else if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3264
rval = ql_get_port_database(ha, tq, PDF_NONE);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3266
if (rval == QL_NOT_LOGGED_IN) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3277
} else if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3312
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3319
rval = ql_get_adapter_id(ha, &mr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3320
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3384
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3391
rval = ql_data_rate(ha, &mr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3392
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3393
EL(ha, "data_rate status=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3420
} else if (rval == MBS_COMMAND_ERROR) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3422
rval, mr.mb[1]);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3425
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3426
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3434
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3456
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3470
rval = QL_MEMORY_ALLOC_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3471
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3472
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3479
rval = ql_get_id_list(ha, (caddr_t)list, list_size, &mr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3480
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3482
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3483
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3607
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3608
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3614
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3681
int rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3697
rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3702
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3703
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
3708
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4060
int rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4073
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4120
rval = QL_ABORTED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4122
rval = ql_binary_fw_dump(ha, TRUE);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4137
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4138
rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4177
if ((rval = ql_check_isp_firmware(ha)) != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4180
} else if ((rval = ql_mbx_wrap_test(ha, NULL)) == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4181
rval = ql_load_isp_firmware(ha);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4185
if (rval == QL_SUCCESS && (rval = ql_set_cache_line(ha)) ==
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4186
QL_SUCCESS && (rval = ql_init_rings(ha)) == QL_SUCCESS &&
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4187
(rval = ql_fw_ready(ha, 10)) == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4231
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4232
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4237
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4357
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4379
rval = ql_issue_mbx_iocb(ha, (caddr_t)pkt, pkt_size);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4380
if (rval == QL_SUCCESS && pkt->vpc.status != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4381
rval = QL_COMMAND_ERROR;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4386
rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4389
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4390
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4395
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4414
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4443
rval = ql_issue_mbx_iocb(ha, (caddr_t)pkt, pkt_size);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4444
if (rval == QL_SUCCESS && pkt->vpm.status != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4445
EL(ha, "failed, ql_issue_mbx_iocb=%xh, status=%xh\n", rval,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4447
rval = QL_COMMAND_ERROR;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4452
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4453
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4458
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
457
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4654
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4670
rval = ql_get_port_database(ha, tq, PDF_NONE);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4672
if (rval == QL_NOT_LOGGED_IN) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4679
} else if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4690
rval = ql_get_port_database(ha, tq, PDF_NONE);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4692
if (rval == QL_NOT_LOGGED_IN) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
470
if ((rval = ql_lock_nvram(ha, &start_addr, LNF_NVRAM_DATA)) ==
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
4702
} else if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
484
if (rval != QL_SUCCESS || chksum || nv->id[0] != 'I' ||
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
490
"nvram_version=%x\n", rval, chksum, nv->id[0], nv->id[1],
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
581
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
800
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
801
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
806
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
828
uint16_t rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
835
rval = (uint16_t)ql_nvram_request(ha, nv_cmd);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
837
QL_PRINT_4(ha, "NVRAM data = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
839
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
90
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
946
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
955
if ((rval = ql_lock_nvram(ha, &addr, LNF_NVRAM_DATA)) == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
961
rval = ql_24xx_read_flash(ha, addr++, longptr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
962
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
963
EL(ha, "24xx_read_flash failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
976
if (rval != QL_SUCCESS || chksum || nv->id[0] != 'I' ||
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_init.c
983
"nvram_version=%x\n", rval, chksum, nv->id[0], nv->id[1],
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_iocb.c
1000
rval = ql_req_pkt(ha, req_q, (request_t **)&pkt);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_iocb.c
1001
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_iocb.c
1057
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_iocb.c
1058
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_iocb.c
1063
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_iocb.c
1541
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_iocb.c
1573
rval = ql_req_pkt(ha, req_q, (request_t **)&pkt);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_iocb.c
1574
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_iocb.c
1575
EL(ha, "failed, ql_req_pkt=%x\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_iocb.c
297
int rval = QL_FUNCTION_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_iocb.c
353
rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_iocb.c
378
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_iocb.c
380
EL(ha, "failed, rval = %xh, isp_abort_needed\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_iocb.c
385
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_iocb.c
994
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1001
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1002
EL(ha, "failed, 24xx_load_nvram=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1023
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1047
int rval2, rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
106
int rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1073
rval = rval2;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1082
if (rval != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1083
EL(ha, "failed to dump nvram, rval=%x\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1084
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1103
int rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1110
rval = ql_24xx_read_flash(ha, src_addr++, lptr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1111
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1112
EL(ha, "read_flash failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1113
rval = EAGAIN;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1130
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1152
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1201
rval = ql_lock_nvram(ha, &start_addr, LNF_VPD_DATA);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1202
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1203
EL(ha, "failed, ql_lock_nvram=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1214
if ((rval = ql_r_m_w_flash(ha, bp, vpd_size, start_addr,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1216
EL(ha, "vpd load error: %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1224
rval = ql_24xx_load_nvram(ha, cnt + start_addr,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1226
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1227
EL(ha, "failed, 24xx_load_nvram=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1236
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
125
rval = EBUSY;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1252
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1278
int rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1293
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1295
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
131
if (rval != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1310
rval = ql_lock_nvram(ha, &start_addr, LNF_VPD_DATA);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1311
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1312
EL(ha, "failed, ql_lock_nvram=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
132
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1322
rval = ql_24xx_read_flash(ha, start_addr++, lptr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1323
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1324
EL(ha, "read_flash failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1325
rval = EAGAIN;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1345
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
137
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1555
int rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1580
if ((rval = ql_dump_fcode(ha, bp, bsize, saddr)) !=
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1582
EL(ha, "dump_flash status=%x\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1588
if ((rval = ddi_copyin(dp, (caddr_t)(bp + ofst), xfer,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1591
"xfer=%xh\n", rval, (void *)dp, ofst, xfer);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1592
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1597
if ((rval = ql_load_fcode(ha, bp, bsize, saddr)) !=
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1599
EL(ha, "load_flash status=%x\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
161
int rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1612
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1633
int rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1646
rval = ql_adm_adapter_info(ha, &dop, mode);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1650
rval = ql_adm_extended_logging(ha, &dop);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1654
rval = ql_adm_loop_reset(ha);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1658
rval = ql_adm_device_list(ha, &dop, mode);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1662
rval = ql_adm_prop_update_int(ha, &dop, mode);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1666
rval = ql_adm_update_properties(ha);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1670
rval = ql_adm_fw_dump(ha, &dop, arg, mode);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1674
rval = ql_adm_fw_t_dump(ha);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1679
rval = ql_adm_beacon(ha, &dop);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1683
rval = ql_adm_nvram_load(ha, &dop, mode);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1687
rval = ql_adm_nvram_dump(ha, &dop, mode);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1691
rval = ql_adm_flash_load(ha, &dop, mode);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1695
rval = ql_adm_vpd_load(ha, &dop, mode);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1699
rval = ql_adm_vpd_dump(ha, &dop, mode);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1703
rval = ql_adm_vpd_gettag(ha, &dop, mode);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1707
rval = ql_adm_updfwmodule(ha, &dop, mode);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1717
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1740
int rval, i;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1758
if ((rval = ql_setup_fcache(ha)) != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1759
EL(ha, "ql_setup_flash failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1760
if (rval == QL_FUNCTION_TIMEOUT) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1785
rval = ddi_getlongprop(DDI_DEV_T_ANY, ha->dip,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1788
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1789
EL(ha, "failed, ddi_getlongprop=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
180
if (rval != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
181
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1826
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1833
rval = ddi_prop_update_int(DDI_DEV_T_NONE, ha->dip, prop_name,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1835
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1836
EL(ha, "failed, prop_update = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
186
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1864
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1869
rval = ql_8021_fw_reload(ha);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1871
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1872
EL(ha, "failed, ql_8021_fw_reload=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1878
} else if ((rval = ql_full_login_lip(ha)) != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
1879
EL(ha, "failed, ql_initiate_lip=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2034
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2052
if ((rval = ddi_prop_update_int(DDI_DEV_T_NONE, ha->dip, prop_name,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2054
EL(ha, "failed, prop_update=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
213
int rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2142
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2150
rval = ql_dump_firmware(ha);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2154
if (rval == QL_SUCCESS || rval == QL_DATA_EXISTS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2176
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2183
rval = ql_diag_beacon(ha, dop->cmd, &mr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2185
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2189
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2210
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2220
if ((rval = ql_nv_util_dump(ha, (void *)(uintptr_t)dop->buffer,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2228
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2248
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2258
if ((rval = ql_nv_util_load(ha, (void *)(uintptr_t)dop->buffer,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2266
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2287
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2309
rval = (CFG_IST(ha, CFG_ISP_FW_TYPE_2) ?
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2317
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2344
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2359
if ((rval = ql_vpd_dump(ha, (void *)(uintptr_t)dop->buffer, mode))
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2367
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
238
rval = ql_busy_notification(ha);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2387
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
239
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2402
if ((rval = ql_vpd_load(ha, (void *)(uintptr_t)dop->buffer, mode))
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2410
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2430
int rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
244
rval = ql_xioctl(ha, cmd, arg, mode, cred_p, rval_p);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2442
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
245
if (rval == ENOPROTOOPT || rval == EINVAL) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2451
if ((rval = ql_vpd_lookup(ha, lbuf, lbuf, (int32_t)
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2458
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2460
rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2468
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2489
int rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
250
rval = ql_get_feature_bits(ha, &bits);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2500
if ((rval = ddi_modclose(ha2->fw_module)) !=
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2502
EL(ha2, "modclose rval=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2514
if ((rval = (int32_t)ql_fwmodule_resolve(ha2)) !=
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2517
"(rval=%xh)\n", ha2->fw_class, rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2518
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
252
if (!rval && ddi_copyout((void *)&bits, (void *)arg,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2528
rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
2534
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
254
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
264
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
268
rval = ql_set_feature_bits(ha, bits);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
273
rval = ql_set_nvram_adapter_defaults(ha);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
277
rval = ql_nv_util_load(ha, (void *)arg, mode);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
281
rval = ql_nv_util_dump(ha, (void *)arg, mode);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
285
rval = ql_adm_op(ha, (void *)arg, mode);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
290
rval = ENOTTY;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
298
if (rval != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
304
EL(ha, "failed, cmd=%d rval=%d\n", cmd, rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
310
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
420
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
435
rval = ql_lock_nvram(ha, &start_addr, LNF_NVRAM_DATA);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
436
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
437
EL(ha, "failed, ql_lock_nvram=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
496
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
517
rval = ql_lock_nvram(ha, &start_addr, LNF_NVRAM_DATA);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
518
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
519
EL(ha, "failed, ql_lock_nvram=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
523
rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
574
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
583
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
591
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
600
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
606
rval = ql_lock_nvram(ha, &start_addr, LNF_NVRAM_DATA);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
607
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
608
EL(ha, "failed, ql_lock_nvram=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
611
rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
677
rval = ql_24xx_read_flash(ha, count + start_addr,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
679
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
680
EL(ha, "24xx_read_flash failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
687
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
754
rval = EIO;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
762
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
770
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
883
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
896
if ((rval = ql_24xx_unprotect_flash(ha)) != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
897
EL(ha, "unprotect_flash failed, rval=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
898
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
903
rval = ql_24xx_write_flash(ha, addr, value);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
920
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
945
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
976
rval = ql_lock_nvram(ha, &start_addr, LNF_NVRAM_DATA);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
977
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
978
EL(ha, "failed, ql_lock_nvram=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
989
if ((rval = ql_r_m_w_flash(ha, bp, ha->nvram_cache->size,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
991
EL(ha, "nvram load failed, rval = %0xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_ioctl.c
999
rval = ql_24xx_load_nvram(ha, cnt + start_addr,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_isr.c
106
int i, rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_isr.c
124
if ((rval = ddi_intr_set_mask(ha->htable[i])) !=
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_isr.c
126
EL(ha, "intr_set_mask status=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_isr.c
150
int i, rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_isr.c
168
if ((rval = ddi_intr_clr_mask(ha->htable[i])) !=
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_isr.c
170
EL(ha, "intr_clr_mask status=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_isr.c
1924
int rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_isr.c
2029
rval = ql_status_error(ha, rsp_q, sp, pkt, done_q, set_flags,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_isr.c
2034
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_isr.c
2064
int rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_isr.c
2151
rval = ql_status_error(ha, rsp_q, sp, (sts_entry_t *)pkt,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_isr.c
2156
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_isr.c
2249
int rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_isr.c
2491
rval |= BIT_0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_isr.c
252
uint_t rval = DDI_INTR_UNCLAIMED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_isr.c
2582
rval |= BIT_0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_isr.c
2725
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_isr.c
319
rval = DDI_INTR_CLAIMED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_isr.c
324
rval = DDI_INTR_CLAIMED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_isr.c
365
rval = DDI_INTR_UNCLAIMED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_isr.c
369
rval = DDI_INTR_CLAIMED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_isr.c
374
rval = DDI_INTR_UNCLAIMED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_isr.c
376
rval = DDI_INTR_CLAIMED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_isr.c
521
if (rval == DDI_INTR_CLAIMED && rsp_q == NULL) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_isr.c
533
if (rval == DDI_INTR_UNCLAIMED && ha->intr_claimed == B_TRUE) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_isr.c
535
rval = DDI_INTR_CLAIMED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_isr.c
555
if (rval == DDI_INTR_CLAIMED) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_isr.c
564
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1012
rval = ql_task_mgmt_iocb(ha, tq, 0,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1015
rval = ql_task_mgmt_iocb(ha, tq, 0,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1037
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1043
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1044
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1050
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1073
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1091
rval = ql_task_mgmt_iocb(ha, tq, 0,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1107
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1112
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1113
EL(ha, "failed=%xh, d_id=%xh\n", rval, tq->d_id.b24);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1118
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1141
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1160
rval = ql_task_mgmt_iocb(ha, tq, lq->lun_addr,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1173
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1178
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1179
EL(ha, "failed=%xh, d_id=%xh\n", rval, tq->d_id.b24);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1184
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1207
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1226
rval = ql_task_mgmt_iocb(ha, tq, lq->lun_addr,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1239
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1244
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1245
EL(ha, "failed=%xh, d_id=%xh\n", rval, tq->d_id.b24);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1251
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1274
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1293
rval = ql_task_mgmt_iocb(ha, tq, lq->lun_addr,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1306
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1311
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1312
EL(ha, "failed=%xh, d_id=%xh\n", rval, tq->d_id.b24);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1318
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1343
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1379
rval = ql_issue_mbx_iocb(ha, (caddr_t)pkt, pkt_size);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1380
if (rval == QL_SUCCESS && (pkt->sts24.entry_status & 0x3c) != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1383
rval = QL_FUNCTION_PARAMETER_ERROR;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1388
if (rval == QL_SUCCESS && pkt->sts24.comp_status != CS_COMPLETE) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1391
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1396
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1397
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1403
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1423
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1442
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1444
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1445
EL(ha, "failed=%xh, d_id=%xh\n", rval, tq->d_id.b24);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1451
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1471
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1489
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1491
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1492
EL(ha, "failed=%xh, d_id=%xh\n", rval, tq->d_id.b24);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1498
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1522
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1536
rval = ql_log_iocb(ha, tq, loop_id, flags, &mr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1548
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1551
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1553
loop_id, rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1559
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1584
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1604
rval = ql_log_iocb(ha, tq, loop_id, flags, mr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1619
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1631
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1633
"mb2=%04x\n", tq->d_id.b24, loop_id, rval,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1641
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1661
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1677
rval = ql_log_iocb(ha, tq, tq->loop_id, flag, &mr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1685
rval = ql_log_iocb(ha, tq, tq->loop_id, flag, &mr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1688
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1705
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1708
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1709
EL(ha, "failed, rval=%xh, d_id=%xh, loop_id=%xh\n", rval,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1716
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1741
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1762
rval = ql_issue_mbx_iocb(ha, (caddr_t)pkt, pkt_size);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1763
if (rval == QL_SUCCESS && (pkt->log.entry_status & 0x3c) != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1766
rval = QL_FUNCTION_PARAMETER_ERROR;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1769
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1879
rval = mr->mb[0];
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1886
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1888
rval, tq->d_id.b24, loop_id);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1894
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1916
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1926
rval = QL_MEMORY_ALLOC_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1927
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1928
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1931
if ((rval = ql_setup_mbox_dma_resources(ha, &mem_desc,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1965
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1967
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
1973
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2046
rval = QL_NOT_LOGGED_IN;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2069
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2071
rval, tq->d_id.b24, tq->loop_id);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2077
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2098
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2105
if ((rval = ql_setup_mbox_dma_resources(ha, &mem_desc,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2107
EL(ha, "setup_mbox_dma_resources failed: %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2119
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2121
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2127
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2128
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2134
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2155
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2162
if ((rval = ql_setup_mbox_dma_transfer(ha, &mem_desc, bufp,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2164
EL(ha, "failed, setup_mbox_dma_transfer: %x\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2165
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2176
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2180
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2181
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2187
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2211
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2218
if ((rval = ql_setup_mbox_dma_resources(ha, &mem_desc,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2243
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2245
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2251
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2252
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2258
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
226
rval = QL_ABORTED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2279
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2286
if ((rval = ql_setup_mbox_dma_resources(ha, &mem_desc,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2299
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2301
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2307
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2308
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2314
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2341
int rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2347
if ((rval = ql_setup_mbox_dma_resources(ha, &mem_desc,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2349
EL(ha, "setup_mbox_dma_resources failed: %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
235
rval = QL_FUNCTION_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2387
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2389
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2395
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2396
EL(ha, "failed=%xh, mbx1=%xh\n", rval, mcp->mb[1]);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2404
} while (rval == QL_COMMAND_ERROR && !retry++);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2406
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2407
EL(ha, "failed=%xh, mbx1=%xh\n", rval, mcp->mb[1]);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2413
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
243
rval = mcp->mb[0];
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2440
int rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2444
if ((rval = ql_setup_mbox_dma_resources(ha, &mem_desc,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2446
EL(ha, "setup_mbox_dma_resources failed: %x\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2479
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2481
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2487
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2488
EL(ha, "failed=%xh, mbx1=%xh, mbx2=%xh\n", rval,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2495
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2514
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2524
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2526
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2527
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2533
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2552
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2557
rval = ql_lip_reset(ha, 0xff);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2559
rval = ql_full_login_lip(ha);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2561
rval = ql_target_reset(ha, NULL, ha->loop_reset_delay);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2563
rval = ql_initiate_lip(ha);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2566
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2567
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2573
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2592
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2614
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2616
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2617
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2623
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2642
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2660
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2662
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2663
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2669
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2689
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2719
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2721
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2722
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2728
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2748
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2757
rval = ql_abort_cmd_iocb(ha, sp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2772
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2775
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2776
EL(ha, "failed=%xh, d_id=%xh, handle=%xh\n", rval,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2783
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2804
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
282
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2829
rval = ql_issue_mbx_iocb(ha, (caddr_t)pkt, pkt_size);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2831
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2835
rval = QL_FUNCTION_PARAMETER_ERROR;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
284
mbx_cmd_text(mbx_cmd), rval, mcp->mb[0]);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2841
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2848
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2849
EL(ha, "failed=%xh, d_id=%xh\n", rval, tq->d_id.b24);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2855
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2874
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2890
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2892
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2893
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2899
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
290
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2922
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2929
if ((rval = ql_setup_mbox_dma_resources(ha, &mem_desc,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2931
EL(ha, "setup_mbox_dma_resources failed: %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2953
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2955
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2967
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2968
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2974
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
2997
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3021
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3023
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3024
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3030
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3053
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3081
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3083
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3084
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3090
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3112
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3127
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3129
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
313
int rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3130
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3136
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
315
if ((rval = ql_setup_mbox_dma_resources(ha, mem_desc, size)) ==
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3158
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3171
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3173
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3174
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3183
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
319
EL(ha, "failed, setup_mbox_dma_transfer: %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3204
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3211
if ((rval = ql_setup_mbox_dma_transfer(ha, &mem_desc, bp, size)) !=
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3213
EL(ha, "setup_mbox_dma_transfer failed: %x\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3214
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
322
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3225
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3227
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3233
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3234
EL(ha, "failed=%xh, mbx1=%xh\n", rval, mcp->mb[1]);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3240
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3260
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3287
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3288
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3292
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3296
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3303
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3308
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3313
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3314
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3320
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3339
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3362
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3365
rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3368
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3369
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3375
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3395
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3405
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3415
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3416
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3422
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3442
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
345
int rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3456
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3458
rval = QL_FUNCTION_PARAMETER_ERROR;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3461
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3462
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3468
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
347
if ((rval = ql_get_dma_mem(ha, mem_desc, size, LITTLE_ENDIAN_DMA,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3488
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
350
rval = QL_MEMORY_ALLOC_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3519
if ((rval = ql_setup_mbox_dma_transfer(ha, &mem_desc,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3522
EL(ha, "dma setup failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3523
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
353
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3561
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3563
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3577
rval = ql_init_req_q(ha, ha->req_q[1], opt);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3578
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3579
EL(ha, "ql_init_req_q=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3580
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3585
rval = ql_init_rsp_q(ha, ha->rsp_queues[i],
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3587
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3588
EL(ha, "ql_init_rsp_q=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3589
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3596
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3597
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3603
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3623
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3633
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3655
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3656
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3662
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3682
int i, rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3696
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3705
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3706
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3712
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3732
int rval, i;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3748
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3760
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3761
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3767
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3787
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3800
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3807
rval = QL_FUNCTION_PARAMETER_ERROR;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3812
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3813
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3819
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3844
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3851
if ((rval = ql_setup_mbox_dma_transfer(ha, &mem_desc, bp, size)) !=
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3853
EL(ha, "setup_mbox_dma_transfer failed: %x\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3854
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3879
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3881
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3897
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3898
EL(ha, "failed=%xh, mb1=%xh\n", rval, mcp->mb[1]);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3904
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3928
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3935
if ((rval = ql_setup_mbox_dma_transfer(ha, &mem_desc, bp, size)) !=
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3937
EL(ha, "setup_mbox_dma_transfer failed: %x\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3938
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3957
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3959
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3969
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3970
EL(ha, "failed=%xh, mb1=%xh\n", rval,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3977
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
3997
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4013
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4020
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4021
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4024
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4045
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4059
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4067
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4068
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4074
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4094
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4105
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4106
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4125
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4126
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4132
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4151
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4161
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4163
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4164
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4170
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4193
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4210
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4215
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4216
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4222
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4247
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
425
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4267
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4269
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4270
EL(ha, "failed=%xh, mb1=%xh\n", rval, mcp->mb[1]);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4279
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4298
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4309
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4311
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4312
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4317
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4340
int rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4405
rval = QL_PARAMETER_ERROR;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4409
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4410
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4427
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4428
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4434
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4455
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4466
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4474
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4475
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4481
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
450
rval = ql_setup_mbox_dma_transfer(ha, &mem_desc,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4501
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4511
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4514
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4515
EL(ha, "status=%xh, mbx1=%xh\n", rval, mcp->mb[1]);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
452
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4521
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
453
EL(ha, "failed, setup_mbox_dma_transfer: %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
454
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4541
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4558
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4560
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4564
EL(ha, "status=%xh, mbx2=%xh\n", rval, mcp->mb[2]);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4567
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4586
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4603
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4607
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4626
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4643
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4647
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
466
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4666
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4676
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4680
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
470
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4701
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4715
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4719
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4740
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4750
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4752
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4762
rval, mcp->mb[1], mcp->mb[2], mcp->mb[3], mcp->mb[4]);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4765
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
477
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
479
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4790
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4806
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4808
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4810
"mbx4=%xh\n", cmd, rval, mcp->mb[1], mcp->mb[2],
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4819
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4840
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4847
if ((rval = ql_setup_mbox_dma_resources(ha, &mem_desc,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4849
EL(ha, "setup_mbox_dma_resources failed: %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4862
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4864
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4869
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4870
EL(ha, "status=%xh, mbx1=%xh, mbx2=%xh\n", rval, mcp->mb[1],
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4877
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4898
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4905
if ((rval = ql_setup_mbox_dma_resources(ha, &mem_desc, size)) !=
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4921
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4923
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4929
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4930
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4936
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4958
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4965
if ((rval = ql_setup_mbox_dma_resources(ha, &mem_desc,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
498
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4983
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4985
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4992
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
4993
EL(ha, "status=%xh, mbx1=%xh, mbx2=%xh\n", rval, mcp->mb[1],
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5000
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5021
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5032
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5046
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5047
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5053
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5073
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5084
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5086
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5087
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5093
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
511
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5119
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5144
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5166
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5167
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5172
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5193
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5223
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5225
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5226
EL(ha, "status=%xh, mbx1=%xh\n", rval, mcp->mb[1]);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5231
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5252
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5280
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5282
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5283
EL(ha, "status=%xh, mbx1=%xh\n", rval, mcp->mb[1]);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5288
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
529
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5307
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5317
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5319
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5321
rval, mcp->mb[1], mcp->mb[2]);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5326
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
533
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5346
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
535
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5362
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5364
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5365
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5371
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5390
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5400
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5412
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5413
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5419
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5443
int rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5457
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5466
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5467
EL(ha, "failed, rval=%xh, mbx1=%xh\n", rval, mcp->mb[1]);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5472
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5493
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5507
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5509
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5510
EL(ha, "failed=%xh, mbx1=%xh, addr=%xh, data=%xh\n", rval,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5516
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5537
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
554
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5549
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5551
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5552
EL(ha, "failed=%xh, mbx1=%xh, addr=%xh\n", rval, mcp->mb[1],
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5558
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5578
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5589
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5596
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5597
EL(ha, "failed, rval=%xh, mbx1=%xh\n", rval, mcp->mb[1]);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5602
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5622
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5638
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
564
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5640
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5641
EL(ha, "failed, rval=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5647
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
566
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5667
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
568
rval, mcp->mb[1], mcp->mb[2], mcp->mb[3]);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5683
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5694
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5695
EL(ha, "failed, rval=%xh", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
5701
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
573
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
596
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
628
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
630
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
632
rval, mcp->mb[1], mcp->mb[2], mcp->mb[3]);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
637
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
643
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
683
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
685
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
686
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
691
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
714
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
770
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
772
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
773
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
778
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
798
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
813
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
815
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
816
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
821
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
841
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
852
rval = ql_setup_mbox_dma_transfer(ha, &mem_desc, (caddr_t)lfa, size);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
853
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
854
EL(ha, "failed, setup_mbox_dma_transfer: %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
855
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
871
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
875
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
876
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
882
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
89
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
903
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
910
rval = ql_task_mgmt_iocb(ha, tq, lq->lun_addr,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
923
rval = ql_mailbox_command(ha, mcp);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
928
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
929
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
935
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
959
int rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
990
rval = ql_task_mgmt_iocb(ha,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
994
rval = ql_task_mgmt_iocb(ha,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_mbx.c
999
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_nx.c
1944
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_nx.c
1952
rval = ql_8021_load_fw(ha) == 0 ? NX_DEV_READY : NX_DEV_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_nx.c
1955
ql_8021_wr_32(ha, CRB_DEV_STATE, rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_nx.c
1962
if (rval != NX_DEV_READY) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_nx.c
1992
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_nx.c
2016
rval = NX_DEV_COLD;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_nx.c
2029
rval = NX_DEV_READY;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_nx.c
2042
rval = ql_8021_load_fw(ha) == 0 ?
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_nx.c
2046
ql_8021_wr_32(ha, CRB_DEV_STATE, rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_nx.c
2052
rval = NX_DEV_READY;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_nx.c
2059
rval = NX_DEV_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_nx.c
2066
rval = NX_DEV_NEED_RESET;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_nx.c
2158
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_nx.c
2250
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_nx.c
2281
rval = ql_8021_idc_handler(ha, new_state) == NX_DEV_READY ?
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_nx.c
2284
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_nx.c
2350
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_nx.c
2352
rval = ql_get_md_template(ha, NULL, &mr, 0, GTO_TEMPLATE_SIZE);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_nx.c
2353
if (rval != QL_SUCCESS ||
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_nx.c
2355
EL(ha, "size=%xh status=%xh\n", tsize, rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_nx.c
2358
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_nx.c
2379
rval = ql_get_dma_mem(ha, &ha->dmp_template, tsize,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_nx.c
2381
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_nx.c
2383
"status=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_nx.c
2386
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_nx.c
2389
rval = ql_get_md_template(ha, &ha->dmp_template, &mr, 0, GTO_TEMPLATE);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_nx.c
2390
if (rval != QL_SUCCESS ||
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_nx.c
2392
EL(ha, "status=%xh, chksum=%xh\n", rval, chksum);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_nx.c
2393
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_nx.c
2394
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_nx.c
2400
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
10016
if ((rval = ql_write_serdes(ha, &mr)) != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
10018
EL(ha, "failed, write_serdes_mbx=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
10037
if ((rval = ql_read_serdes(ha, &mr)) != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
10039
EL(ha, "failed, read_serdes_mbx=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
10087
int rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
10115
if ((rval = ql_write_serdes(ha, &mr)) != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
10117
EL(ha, "failed, write_serdes_mbx=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
10137
if ((rval = ql_read_serdes(ha, &mr)) != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
10139
EL(ha, "failed, read_serdes_mbx=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
10194
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
10376
rval = ql_issue_mbx_iocb(ha, (caddr_t)pkt,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
10380
if (rval == QL_SUCCESS && comp_status == CS_DATA_UNDERRUN) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
10383
if (rval != QL_SUCCESS ||
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
10388
comp_status, pkt->sts24.entry_status, rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
10436
rval = ql_issue_mbx_iocb(ha, (caddr_t)pkt,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
10440
if (rval == QL_SUCCESS && comp_status == CS_DATA_UNDERRUN) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
10443
if (rval != QL_SUCCESS ||
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
10448
comp_status, pkt->sts.entry_status, rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
10499
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
10520
rval = ddi_copyout((void *)&caps,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
10523
if (rval != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
10585
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
10607
rval = ql_get_adapter_id(ha, &mr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
10614
if (rval == 0x4005) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
10641
rval = ddi_copyout((void *)&bb, (void *)(uintptr_t)(cmd->ResponseAdr),
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
10643
if (rval != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
10673
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
10699
rval = ql_get_status_counts(ha,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
10702
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
10703
EL(ha, "failed, get_link_status=%xh, id=%xh\n", rval,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
10706
cmd->DetailStatus = rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
10709
rval = ddi_copyout((void *)&ls,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
10712
if (rval != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
1128
rval = ddi_copyout((void *)&tmp_port,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
1131
if (rval != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
1555
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
1586
rval = ql_login_fport(ha, &tq, tq.loop_id, LFF_NO_PRLI, &mr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
1587
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
1701
rval = ql_issue_mbx_iocb(ha, (caddr_t)pkt,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
1711
if (rval != QL_SUCCESS || (pkt->sts24.entry_status & 0x3c) !=
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
1716
pkt->sts24.scsi_status_l, rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
1763
rval = ql_issue_mbx_iocb(ha, (caddr_t)pkt,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
1772
if (rval != QL_SUCCESS || (pkt->sts.entry_status & 0x7e) != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
1774
"es=%xh, rval=%xh\n", pkt->sts.entry_status, rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
1834
int rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
1839
rval = ddi_copyin((void*)(uintptr_t)cmd->RequestAdr, ®_struct,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
1842
if (rval == 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
2067
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
2478
rval = ql_login_fport(ha, tq, tq->loop_id,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
2480
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
2482
"d_id=%xh\n", rval, tq->d_id.b24);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
2485
rval = ql_login_lport(ha, tq, tq->loop_id,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
2487
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
2489
"d_id=%xh\n", rval, tq->d_id.b24);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
273
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3030
int32_t rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3047
if ((rval = ql_vpd_load(ha, (void *)(uintptr_t)(cmd->RequestAdr),
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3050
cmd->DetailStatus = rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3051
EL(ha, "failed, errno=%x\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
323
rval = ql_sdm_ioctl(ha, cmd, (void *)arg, mode);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
328
rval = ENOPROTOOPT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
333
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3428
uint32_t rval, timer, bpsize;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3514
rval = ql_diag_echo(ha, pld, plbreq.TransferCount,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3521
rval = ql_diag_loopback(ha, pld, plbreq.TransferCount,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3536
if ((rval = ql_diag_echo(ha, bp, bpsize,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3540
rval = ql_diag_echo(ha, pld,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3550
rval = ql_diag_loopback(ha, pld, plbreq.TransferCount,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3572
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3573
EL(ha, "failed, diagnostic_loopback_mbx=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3576
cmd->DetailStatus = rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3610
rval = ddi_copyout((void *)&plbrsp,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3613
if (rval != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
362
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3642
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3651
if ((rval = ql_get_port_config(ha, &mr)) != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3652
EL(ha, "get_port_config status=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3653
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3673
if ((rval = ql_set_port_config(ha, &mr)) != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3674
EL(ha, "set_port_config status=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
368
if ((rval = ql_sdm_setup(ha, &cmd, arg, mode,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3688
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3716
int rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
376
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3792
rval = ql_get_rnid_params(ha, SEND_RNID_RSP_SIZE, tmp_buf);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3793
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3794
EL(ha, "failed, get_rnid_params_mbx=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3829
rval = ql_send_rnid_els(ha, tq->loop_id,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3831
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3833
rval, tq->loop_id);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3842
rval = ql_send_rnid_els(ha, tq->loop_id,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3845
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
3848
rval, tq->loop_id);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4133
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4277
rval = ql_issue_mbx_iocb(ha, (caddr_t)pkt,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4304
if (rval == QL_SUCCESS && pkt->sts.entry_status != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4307
rval = QL_FUNCTION_PARAMETER_ERROR;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4310
if (rval != QL_SUCCESS || comp_status != CS_COMPLETE ||
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4313
if (rval == QL_SUCCESS &&
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
432
rval = EBUSY;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4320
"ss_h=%xh, ss_l=%xh\n", rval, tq->d_id.b24,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4323
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4327
rval = QL_FUNCTION_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4330
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4331
} else if (rval == QL_ABORTED) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4351
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4352
EL(ha, "failed=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4353
rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4357
rval = (int)(BE_32(rpt->hdr.len) / 8);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4365
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
437
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4386
int lun, cnt, rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
439
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4405
rval = QL_LOOP_DOWN;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4410
rval = ql_inq(ha, tq, lun, pkt, INQ_DATA_SIZE);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4411
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4438
} else if (rval == QL_ABORTED || rval == QL_FUNCTION_TIMEOUT) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4473
int rval, retries;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4615
rval = ql_issue_mbx_iocb(ha, (caddr_t)pkt,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4642
if (rval == QL_SUCCESS && pkt->sts.entry_status != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4645
rval = QL_FUNCTION_PARAMETER_ERROR;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4648
if (rval != QL_SUCCESS || comp_status != CS_COMPLETE ||
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4651
"ss_h=%xh, ss_l=%xh\n", rval, tq->d_id.b24,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4654
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4658
rval = QL_FUNCTION_TIMEOUT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4661
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4682
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4825
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4840
rval = ql_dump_fcode(ha, (uint8_t *)fdesc, sizeof (flash_desc_t),
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4842
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4843
EL(ha, "read status=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4845
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4904
int rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4907
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4931
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
4988
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5010
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5028
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5035
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5039
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5061
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5086
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5090
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5103
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5119
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5123
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5137
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5141
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5151
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5155
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5160
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5165
if (rval != QL_SUCCESS && CFG_IST(ha, CFG_ISP_FW_TYPE_2)) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5184
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5193
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5217
int rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5229
rval = ENOMEM;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5233
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5236
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5240
rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5247
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5270
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5295
rval = ql_erase_flash(ha, 0);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5297
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5304
rval = ql_program_flash_address(ha, addr++, *dp++);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5305
if (rval != QL_SUCCESS)
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5314
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5315
EL(ha, "failed, rval=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5320
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5344
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5358
rval = ENOMEM;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5361
rval = ql_dump_fcode(ha, bfp, bsize, faddr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5363
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5364
EL(ha, "failed, dump_fcode = %x\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5365
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5368
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5370
rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5377
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5403
int fp_rval, rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5418
rval = ql_24xx_read_flash(ha,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5420
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5421
EL(ha, "failed2, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5422
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5436
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5450
rval = ql_get_dma_mem(ha, &mem, size,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5452
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5454
rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5487
rval = ql_24xx_read_flash(ha, addr++,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5489
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5515
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5516
EL(ha, "failed, rval = %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5521
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5543
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5557
rval = ql_poll_flash(ha, addr, data);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5559
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5560
EL(ha, "failed, rval=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5562
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5579
int rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5601
rval = ddi_copyin((void*)(uintptr_t)cmd->RequestAdr, &tmp_set,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5603
if (rval != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5619
rval = ql_get_rnid_params(ha, sizeof (EXT_RNID_DATA),
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5621
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5623
EL(ha, "failed, get_rnid_params_mbx=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5635
rval = ql_set_rnid_params(ha, sizeof (EXT_RNID_DATA),
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5637
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5639
EL(ha, "failed, set_rnid_params_mbx=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5662
uint32_t rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5683
rval = ql_get_rnid_params(ha, sizeof (EXT_RNID_DATA),
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5685
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5687
EL(ha, "failed, get_rnid_params_mbx=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5727
int rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5738
rval = ql_reset_link_status(ha);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5739
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5740
EL(ha, "failed, reset_link_status_mbx=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5742
cmd->DetailStatus = rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5767
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5790
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5823
rval = ql_get_status_counts(ha, (uint16_t)
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5826
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5827
EL(ha, "failed, get_link_status=%xh, id=%xh\n", rval,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5830
cmd->DetailStatus = rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5848
rval = ddi_copyout((void *)&ps,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5851
if (rval != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5885
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5941
rval = ql_get_link_status(ha, tq->loop_id, sizeof (ql_link_stats_t),
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5943
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5944
EL(ha, "failed, get_link_status=%xh, d_id=%xh\n", rval,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5947
cmd->DetailStatus = rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5957
rval = ddi_copyout((void *)&ps,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5961
if (rval != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
5993
uint32_t rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6005
rval = ddi_copyout((void *)&fc4stats,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6009
if (rval != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6039
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6061
rval = ddi_copyin((void*)(uintptr_t)cmd->RequestAdr, &bstate,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6064
if (rval != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6080
rval = ql_diag_beacon(ha, QL_BEACON_DISABLE,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6083
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
609
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6098
if ((rval = ql_wrapup_led(ha)) != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6114
rval = ql_diag_beacon(ha, QL_BEACON_ENABLE,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6117
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6129
if ((rval = ql_setup_led(ha)) != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6171
uint32_t rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6202
rval = ddi_copyout((void *)&bstate,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6206
if (rval != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
622
rval = ddi_copyin(arg, (void *)cmd, sizeof (EXT_IOCTL), mode);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
623
if (rval != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
625
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
636
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6379
int rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6386
rval = ql_get_firmware_option(ha, &mr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6387
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6388
EL(ha, "failed, get_firmware_option=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6389
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
639
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6396
rval = ql_set_firmware_option(ha, &mr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6397
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6398
EL(ha, "failed, set_firmware_option=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6399
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6409
rval = ql_set_led_config(ha, &mr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6413
rval = ql_get_led_config(ha, &ha->ledstate.cfg);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6414
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6415
EL(ha, "failed, get_led_config=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6416
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6424
rval = ql_set_led_config(ha, &mr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6427
rval = ql_get_firmware_option(ha, &mr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6428
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6429
EL(ha, "failed, get_firmware_option=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
643
if (rval == 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6430
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6435
rval = ql_set_firmware_option(ha, &mr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6436
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6437
EL(ha, "failed, set_firmware_option=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6438
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6448
rval = ql_get_firmware_option(ha, &mr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6449
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6450
EL(ha, "failed, get_firmware_option=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6451
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6456
rval = ql_set_firmware_option(ha, &mr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6457
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6458
EL(ha, "failed, set_firmware_option=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6459
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6466
rval = ql_led_config(ha, &mr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6467
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6468
EL(ha, "failed, led_config=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6469
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6478
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6494
int rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6515
rval = ql_get_firmware_option(ha, &mr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6516
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6517
EL(ha, "failed, get_firmware_option=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6518
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
652
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6523
rval = ql_set_firmware_option(ha, &mr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6524
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6525
EL(ha, "failed, set_firmware_option=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6526
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6529
rval = ql_set_led_config(ha, &ha->ledstate.cfg);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6533
rval = ql_get_firmware_option(ha, &mr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6534
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6535
EL(ha, "failed, get_firmware_option=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6536
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6541
rval = ql_set_firmware_option(ha, &mr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6542
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6543
EL(ha, "failed, set_firmware_option=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6544
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6553
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6582
int rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6594
rval = ddi_copyin((void *)(uintptr_t)cmd->RequestAdr,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6596
if (rval != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6675
rval = ddi_copyout((void *)ddep, (void *)uddep,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6678
if (rval != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6690
rval = ddi_copyout((void *)&dd, (void *)uddp,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6693
if (rval != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6721
uint32_t rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6754
rval = ddi_copyout((void *)&extdestaddr,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6756
if (rval != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6785
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6802
if ((rval = ql_setup_flash(ha)) != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6803
EL(ha, "unable to setup flash; rval=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6804
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6811
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6831
if ((rval = ql_dump_fcode(ha, ftmp->buf, FBUFSIZE,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6834
" pos=%xh rval=%xh\n", freadpos, rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6835
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6842
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6847
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6863
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6885
int rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6900
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6924
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6932
rval = QL_FUNCTION_FAILED;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
6937
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
710
int rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
714
rval |= ddi_copyout((void *)&cmd->ResponseLen,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
718
rval |= ddi_copyout((void *)&cmd->Status,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
721
rval |= ddi_copyout((void *)&cmd->DetailStatus,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
727
if (rval != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
7302
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
7316
if ((rval = ql_dump_fcode(ha, bp, len, flt_paddr)) != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
7318
rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
7364
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
7378
if ((rval = ql_dump_fcode(ha, bp, FLASH_LAYOUT_TABLE_SIZE, faddr)) !=
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
7380
EL(ha, "fhdr dump_flash pos=%xh, status=%xh\n", faddr, rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
7843
int rval2, rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
7862
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
7871
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
7883
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
7908
uint32_t rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
7966
rval = ql_iidma_rate(ha, tq->loop_id, &idma_rate,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
7969
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
7970
EL(ha, "iidma get failed: %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
7972
cmd->DetailStatus = rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8013
rval = ddi_copyout((void *)&port_param,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8017
if (rval != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8059
rval = QL_PARAMETER_ERROR;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8063
if (rval == QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8064
rval = ql_iidma_rate(ha, tq->loop_id, &idma_rate,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8066
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8067
EL(ha, "iidma set failed: %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8069
cmd->DetailStatus = rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8103
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8133
rval = ql_fw_etrace(ha, &ha->fwexttracebuf, FTO_INSERT_TIME_STAMP,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8135
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8137
"time stamp failed: %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8144
rval = ql_fw_etrace(ha, &ha->fwexttracebuf, FTO_EXT_TRACE_DISABLE,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8146
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8147
EL(ha, "f/w extended trace disable failed: %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8204
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8238
rval = ql_fw_etrace(ha, &ha->fwfcetracebuf, FTO_FCE_TRACE_DISABLE, &mr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8239
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8240
EL(ha, "f/w FCE trace disable failed: %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8304
if ((rval = ql_fw_etrace(ha, &ha->fwfcetracebuf,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8306
EL(ha, "fcetrace enable failed: %xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8456
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8500
rval = ql_reset_menlo(ha, &mr, rst.Flags);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8501
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8502
EL(ha, "failed, status=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8504
cmd->DetailStatus = rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8535
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8570
rval = ql_issue_mbx_iocb(ha, (caddr_t)pkt, sizeof (ql_mbx_iocb_t));
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8575
if (rval != QL_SUCCESS || (pkt->mvfy.entry_status & 0x3c) != 0 ||
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8578
EL(ha, "failed, status=%xh, es=%xh, cs=%xh, fc=%xh\n", rval,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8582
cmd->DetailStatus = rval != QL_SUCCESS ? rval :
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8621
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8727
rval = ql_issue_mbx_iocb(ha, (caddr_t)pkt, sizeof (ql_mbx_iocb_t));
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8731
if (rval != QL_SUCCESS || (pkt->mvfy.entry_status & 0x3c) != 0 ||
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8734
EL(ha, "failed, status=%xh, es=%xh, cs=%xh, fc=%xh\n", rval,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8738
cmd->DetailStatus = rval != QL_SUCCESS ? rval :
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8771
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8886
rval = ql_issue_mbx_iocb(ha, (caddr_t)pkt, sizeof (ql_mbx_iocb_t));
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8890
if (rval != QL_SUCCESS || (pkt->mdata.entry_status & 0x3c) != 0 ||
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8893
EL(ha, "failed, status=%xh, es=%xh, cs=%xh, fc=%xh\n", rval,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8897
cmd->DetailStatus = rval != QL_SUCCESS ? rval :
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8938
int rval = QL_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8948
if ((rval = ql_stall_driver(ha2, opt)) != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8949
EL(ha, "ql_stall_driver status=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
8954
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9007
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9044
rval = ddi_copyout((void *)ptmp_vp,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9047
if (rval != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9176
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9191
if ((rval = ql_flash_fcode_dump(ha,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9196
EL(ha, "flash_fcode_dump status=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9200
if ((rval = ql_r_m_w_flash(ha,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9206
EL(ha, "r_m_w_flash status=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9332
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9352
rval = ql_get_dcbx_params(ha, EXT_DEF_DCBX_PARAM_BUF_SIZE,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9354
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9356
EL(ha, "failed, get_dcbx_params_mbx=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9554
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
959
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9608
rval = ql_get_xgmac_stats(ha, size, (caddr_t)tmp_buf);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9610
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9612
EL(ha, "failed, get_xgmac_stats =%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9645
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9692
rval = ql_get_fcf_list_mbx(ha, &mb_fcf_list, (caddr_t)tmp_buf);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9693
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9695
EL(ha, "failed, get_fcf_list_mbx=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9729
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9744
rval = ql_get_resource_cnts(ha, &mr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9745
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9765
rval = ddi_copyout((void *)&tmp_rc_cnt,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9768
if (rval != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9797
int rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9820
rval = ql_get_temp(ha, &mr);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9821
if (rval != QL_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9823
EL(ha, "failed, get_temperature_mbx=%xh\n", rval);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9830
rval = ddi_copyout((void *)&board_temp,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9833
if (rval != 0) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9870
int rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9918
if ((rval = ddi_copyout((void *)dump,
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9948
rval = ql_dump_firmware(ha);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9950
if (rval != QL_SUCCESS && rval != QL_DATA_EXISTS) {
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
9988
int rval = 0;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
1793
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
1827
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
1843
rval = ql_send_common(tx_ring, mp);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
1845
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
259
int rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
307
rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
309
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
4364
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
4384
rval = ql_request_irq_vectors(qlge, DDI_INTR_TYPE_MSIX);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
4385
if (rval == DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
4386
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
4406
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
4414
rval = ql_request_irq_vectors(qlge, DDI_INTR_TYPE_MSI);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
4415
if (rval == DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
4423
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
4424
rval = ql_request_irq_vectors(qlge, DDI_INTR_TYPE_FIXED);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
4425
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
4436
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
4687
int rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
4691
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
4716
rval = ENOENT;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
4723
rval = ENOENT;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
4726
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
7393
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
7398
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
7644
rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
7667
rval = ql_do_start(qlge);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
7676
if ((cmd == DDI_ATTACH) && (rval != DDI_SUCCESS) && (qlge != NULL)) {
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
7682
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
7721
int rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
7766
rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
7819
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
7922
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
7924
rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
7931
rval = ql_bringdown_adapter(qlge);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
7932
if (rval != DDI_SUCCESS)
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
7960
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
7964
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
8049
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
8052
rval = mod_install(&modlinkage);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
8053
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
8059
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
8073
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
8075
rval = mod_remove(&modlinkage);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
8076
if (rval == DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge.c
8080
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_dbg.c
1228
rval = ql_binary_core_dump(qlge, requested_dump, &len);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_dbg.c
1229
if (rval == DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_dbg.c
1286
rval = qlge_dump_fcode(qlge,
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_dbg.c
1290
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_dbg.c
1318
rval = qlge_dump_fcode(qlge,
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_dbg.c
1321
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_dbg.c
1396
rval = qlge_dump_fcode(qlge, (uint8_t *)bdesc,
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_dbg.c
1398
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_dbg.c
1590
int rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_dbg.c
1614
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_dbg.c
1627
int rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_dbg.c
1659
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_dbg.c
1668
int rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_dbg.c
1744
rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_dbg.c
1749
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_dbg.c
835
int rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_dbg.c
893
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_dbg.c
895
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_dbg.c
907
int rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_dbg.c
917
rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_dbg.c
922
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_dbg.c
959
int cmd, i, rval;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
1001
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
1067
int rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
1072
rval = ql_wait_flash_reg_ready(qlge, FLASH_RDY_FLAG);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
1074
if (rval == DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
1077
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
115
rval = ql_read_flash(qlge, addr++, &data);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
116
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
1186
int rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
1194
if ((rval = ql_wait_flash_reg_ready(qlge, FLASH_RDY_FLAG))
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
1207
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
1214
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
1217
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
126
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
127
cmn_err(CE_WARN, "failed, rval = %xh", rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
129
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
136
int rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
1398
int rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
1402
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
1404
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
167
rval = ql_write_flash(qlge, /* 0xd8 */
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
171
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
183
rval = ql_write_flash(qlge, faddr, fdata);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
184
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
198
rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
200
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
202
__func__, qlge->instance, rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
204
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
221
int rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
264
rval = qlge_dump_fcode(qlge, (uint8_t *)temp, sector_size,
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
285
rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
292
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
294
__func__, qlge->instance, rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
297
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
315
int rval = CONTINUE_SEARCH;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
386
rval = LAST_IMAGE_FOUND;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
388
rval = CONTINUE_SEARCH;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
393
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
408
int rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
426
if ((rval = qlge_dump_fcode(qlge, buf, FBUFSIZE, freadpos))
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
43
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
430
__func__, qlge->instance, freadpos, rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
448
rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
457
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
469
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
471
rval = qlge_dump_fcode(qlge, (uint8_t *)&qlge->fltds,
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
473
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
477
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
50
rval = ql_read_flash(qlge, FLASH_CONF_ADDR | 0x300 | FLASH_RES_CMD,
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
526
int rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
535
rval = qlge_dump_fcode(qlge, (uint8_t *)&qlge->flt.header,
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
537
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
541
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
57
rval = ql_read_flash(qlge, FLASH_CONF_ADDR | 0x0400 | FLASH_RDID_CMD,
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
571
rval = qlge_dump_fcode(qlge,
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
574
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
60
if ((rval != DDI_SUCCESS) || (fdata == 0)) {
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
659
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
663
rval = qlge_dump_fcode(qlge, (uint8_t *)&qlge->fdesc,
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
665
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
669
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
729
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
73
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
733
rval = qlge_dump_fcode(qlge, (uint8_t *)&qlge->nic_config,
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
736
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
737
cmn_err(CE_WARN, "fail to read nic_cfg image %xh", rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
739
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
839
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
84
int rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
855
rval = qlge_dump_fcode(qlge, buf, vpd_size, qlge->flash_vpd_addr);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
857
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
861
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
886
int rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
890
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
894
rval = ql_flash_id(qlge);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
895
if (rval != DDI_SUCCESS)
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
937
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
948
int rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
951
return (rval);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
954
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
958
rval = ql_flash_id(qlge);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
959
if (rval != DDI_SUCCESS)
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
981
rval = ql_flash_flt(qlge);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
982
if (rval == DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
986
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
991
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c
995
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_gld.c
474
int rval;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_gld.c
509
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_gld.c
521
rval = ql_send_common(tx_ring, mp);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_gld.c
523
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_mpi.c
1189
int rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_mpi.c
1219
rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_mpi.c
1226
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1042
int rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1147
rval = job->job_result;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1151
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1278
int rval;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1297
rval = fctl_update_host_ns_values(port, ns_req);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1298
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1299
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1343
rval = job->job_result;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1355
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1362
int rval;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1455
rval = (pd->pd_state == PORT_DEVICE_VALID) ?
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1458
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1485
int rval;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1525
rval = (pd->pd_state == PORT_DEVICE_VALID) ?
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1528
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1599
int rval;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1648
rval = job->job_result;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1663
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1666
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1673
int rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1678
rval = port->fp_fca_tran->fca_reset(
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1683
rval = port->fp_fca_tran->fca_reset(
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1688
rval = port->fp_fca_tran->fca_reset(
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1693
rval = port->fp_fca_tran->fca_reset(
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1698
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1701
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1765
int rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1771
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1777
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1787
int rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1796
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1799
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1860
int rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1874
rval = port->fp_fca_tran->fca_notify(port->fp_fca_handle, cmd);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
1877
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2139
int rval;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2164
rval = ddi_prop_op(DDI_DEV_T_ANY, port_dip, PROP_LEN_AND_VAL_BUF,
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2168
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2315
int rval = 0, devstrlen;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2340
rval = NDI_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2348
rval = NDI_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2357
rval = NDI_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2365
rval = NDI_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2374
rval = NDI_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2384
rval = NDI_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2394
rval = NDI_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2398
rval = ndi_devi_online(child, NDI_ONLINE_ATTACH);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2399
if (rval != NDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2402
rval = NDI_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2411
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2482
int rval;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2579
rval = mod->mod_info->ulp_port_attach(
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2582
fctl_post_attach(mod, ulp_port, cmd, rval);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2584
if (rval == FC_SUCCESS && cmd == FC_CMD_ATTACH &&
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2598
int rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2605
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2613
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2620
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2625
if (rval == FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2630
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2636
fc_attach_cmd_t cmd, int rval)
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2646
be_chatty = (rval == FC_FAILURE_SILENT) ? 0 : 1;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2648
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2697
int rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2724
rval = mod->mod_info->ulp_port_detach(
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2727
fctl_post_detach(mod, ulp_port, cmd, rval);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2729
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2746
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2786
int rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2793
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2800
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2807
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2812
if (rval == FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2817
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2823
fc_detach_cmd_t cmd, int rval)
usr/src/uts/common/io/fibre-channel/impl/fctl.c
2831
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fctl.c
4912
int rval;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
4967
rval = mod->mod_info->ulp_data_callback(
usr/src/uts/common/io/fibre-channel/impl/fctl.c
4971
rval = mod->mod_info->ulp_els_callback(
usr/src/uts/common/io/fibre-channel/impl/fctl.c
4976
if (rval == FC_SUCCESS && claimed == 0) {
usr/src/uts/common/io/fibre-channel/impl/fctl.c
506
int rval;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
5073
int rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
5154
rval = FC_BADOBJECT;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
5158
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
5165
int rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
5238
rval = FC_BADOBJECT;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
5242
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
5300
intptr_t data, int mode, cred_t *credp, int *rval)
usr/src/uts/common/io/fibre-channel/impl/fctl.c
5308
save = *rval;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
5309
*rval = ENOTTY;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
533
if ((rval = mod_install(&modlinkage)) != 0) {
usr/src/uts/common/io/fibre-channel/impl/fctl.c
5331
dev, cmd, data, mode, credp, rval, claimed);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
5339
ret = *rval;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
5340
*rval = save;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
543
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
555
int rval;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
557
if ((rval = mod_remove(&modlinkage)) != 0) {
usr/src/uts/common/io/fibre-channel/impl/fctl.c
558
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
5622
int rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
5650
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
5653
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
5659
int rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
569
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
5693
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
5696
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
5703
int rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
5717
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
5724
if (rval == FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fctl.c
5728
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
847
int rval;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
856
rval = port->fp_fca_tran->fca_init_pkt(port->fp_fca_handle, pkt, sleep);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
858
if ((rval == FC_SUCCESS) && (pd != NULL)) {
usr/src/uts/common/io/fibre-channel/impl/fctl.c
869
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
885
int rval;
usr/src/uts/common/io/fibre-channel/impl/fctl.c
894
rval = port->fp_fca_tran->fca_un_init_pkt(port->fp_fca_handle, pkt);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
896
if ((rval == FC_SUCCESS) && (pd != NULL)) {
usr/src/uts/common/io/fibre-channel/impl/fctl.c
924
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fctl.c
930
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
10003
rval = ddi_copyout((void *)fcio, (void *)data, sizeof (fcio_t), mode);
usr/src/uts/common/io/fibre-channel/impl/fp.c
10006
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
10048
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
10106
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fp.c
10109
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fp.c
10111
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/impl/fp.c
10116
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
10127
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
10174
rval = fp_ns_query(port, ns_cmd, job, 1, KM_SLEEP);
usr/src/uts/common/io/fibre-channel/impl/fp.c
10175
if (rval == FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
10300
rval = fp_ns_query(port, ns_cmd, job, 1, KM_SLEEP);
usr/src/uts/common/io/fibre-channel/impl/fp.c
10301
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
10423
rval = fp_port_login(port, d_id, job,
usr/src/uts/common/io/fibre-channel/impl/fp.c
10426
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
10477
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
10580
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fp.c
10585
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fp.c
10587
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/impl/fp.c
10593
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
11364
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
11439
rval = fp_sendcmd(port, cmd, port->fp_fca_handle);
usr/src/uts/common/io/fibre-channel/impl/fp.c
11440
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
11494
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
11560
rval = fp_sendcmd(port, cmd, port->fp_fca_handle);
usr/src/uts/common/io/fibre-channel/impl/fp.c
11561
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
12656
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
12668
rval = 0;
usr/src/uts/common/io/fibre-channel/impl/fp.c
12817
rval = job->job_result;
usr/src/uts/common/io/fibre-channel/impl/fp.c
12819
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fp.c
1282
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
12823
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
12901
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
12929
rval = fp_sendcmd(port, cmd, port->fp_fca_handle);
usr/src/uts/common/io/fibre-channel/impl/fp.c
12930
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
12931
job->job_result = rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
12938
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/impl/fp.c
12944
rval = job->job_result;
usr/src/uts/common/io/fibre-channel/impl/fp.c
12947
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
1328
rval = fp_resume_all(port, FC_CMD_RESUME);
usr/src/uts/common/io/fibre-channel/impl/fp.c
1329
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
1337
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
13385
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
13423
rval = fp_sendcmd(port, cmd, port->fp_fca_handle);
usr/src/uts/common/io/fibre-channel/impl/fp.c
13424
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
1346
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
13534
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
13560
rval = fp_sendcmd(port, cmd, port->fp_fca_handle);
usr/src/uts/common/io/fibre-channel/impl/fp.c
13561
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
13565
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
1357
rval = fp_resume_all(port, FC_CMD_POWER_UP);
usr/src/uts/common/io/fibre-channel/impl/fp.c
1358
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
1365
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
13678
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
13714
rval = fp_ns_query(port, ns_cmd, job, 1, KM_SLEEP);
usr/src/uts/common/io/fibre-channel/impl/fp.c
13717
if (rval != FC_SUCCESS || job->job_result != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
13781
int rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/impl/fp.c
13836
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fp.c
13904
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
13914
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
13922
rval = port->fp_fca_tran->fca_get_cap(port->fp_fca_handle,
usr/src/uts/common/io/fibre-channel/impl/fp.c
13925
switch (rval) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
13953
rval = port->fp_fca_tran->fca_get_cap(port->fp_fca_handle,
usr/src/uts/common/io/fibre-channel/impl/fp.c
13956
switch (rval) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
13979
rval = port->fp_fca_tran->fca_get_cap(port->fp_fca_handle,
usr/src/uts/common/io/fibre-channel/impl/fp.c
13982
switch (rval) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
14012
rval = port->fp_fca_tran->fca_get_cap(port->fp_fca_handle,
usr/src/uts/common/io/fibre-channel/impl/fp.c
14015
if (rval != FC_CAP_FOUND || (fcp_dma != FC_NO_DVMA_SPACE &&
usr/src/uts/common/io/fibre-channel/impl/fp.c
14036
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
14185
rval = fp_ns_query(port, ns_cmd, job, 1,
usr/src/uts/common/io/fibre-channel/impl/fp.c
14187
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
14255
rval = fp_port_login(port, d_id, job,
usr/src/uts/common/io/fibre-channel/impl/fp.c
14257
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
14262
job->job_result = rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
14275
rval = fp_ns_validate_device(port, pd, job,
usr/src/uts/common/io/fibre-channel/impl/fp.c
14277
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
14321
rval = fp_ns_query(port, ns_cmd, job, 1, KM_SLEEP);
usr/src/uts/common/io/fibre-channel/impl/fp.c
14322
if (rval == FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
14461
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
14494
rval = fp_ns_query(port, ns_cmd, job, 1, sleep);
usr/src/uts/common/io/fibre-channel/impl/fp.c
14504
if (rval != FC_SUCCESS || fctl_is_wwn_zero(pwwn) == FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
14511
" NULL PD disappeared, rval=%x", rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
14566
rval = fp_port_login(port, page->aff_d_id, job,
usr/src/uts/common/io/fibre-channel/impl/fp.c
14568
if (rval == FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
14570
rval = job->job_result;
usr/src/uts/common/io/fibre-channel/impl/fp.c
14582
if (rval == FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
14592
FP_TRACE(FP_NHEAD2(9, rval),
usr/src/uts/common/io/fibre-channel/impl/fp.c
14612
"Case ONE, rval=%x, result=%x pd=%p", page->aff_d_id, rval,
usr/src/uts/common/io/fibre-channel/impl/fp.c
14723
rval = fp_port_login(port, page->aff_d_id, job,
usr/src/uts/common/io/fibre-channel/impl/fp.c
14725
if (rval == FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
14727
rval = job->job_result;
usr/src/uts/common/io/fibre-channel/impl/fp.c
14730
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
14854
rval = fp_port_login(port, page->aff_d_id, job,
usr/src/uts/common/io/fibre-channel/impl/fp.c
14856
if (rval == FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
1969
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
2017
rval = ddi_dma_mem_alloc(pkt->pkt_cmd_dma, cmd_len,
usr/src/uts/common/io/fibre-channel/impl/fp.c
2022
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
2031
rval = ddi_dma_addr_bind_handle(pkt->pkt_cmd_dma, NULL,
usr/src/uts/common/io/fibre-channel/impl/fp.c
2036
if (rval != DDI_DMA_MAPPED) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
2071
rval = ddi_dma_mem_alloc(pkt->pkt_resp_dma, resp_len,
usr/src/uts/common/io/fibre-channel/impl/fp.c
2077
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
2086
rval = ddi_dma_addr_bind_handle(pkt->pkt_resp_dma, NULL,
usr/src/uts/common/io/fibre-channel/impl/fp.c
2091
if (rval != DDI_DMA_MAPPED) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
2256
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
2443
rval = fp_port_login(port, *d_id, job,
usr/src/uts/common/io/fibre-channel/impl/fp.c
2446
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
2447
job->job_result = rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
2589
if ((rval = fp_port_startup(port, job)) != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
2596
FP_TRACE(FP_NHEAD2(9, rval),
usr/src/uts/common/io/fibre-channel/impl/fp.c
2676
if ((rval = fp_port_startup(port, job)) != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
2689
FP_TRACE(FP_NHEAD2(9, rval),
usr/src/uts/common/io/fibre-channel/impl/fp.c
2830
rval = fp_ns_reg(port, ns_cmd->ns_pd,
usr/src/uts/common/io/fibre-channel/impl/fp.c
2833
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
2834
job->job_result = rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
2842
rval = fp_ns_query(port, ns_cmd, job, 0, KM_SLEEP);
usr/src/uts/common/io/fibre-channel/impl/fp.c
2843
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
2862
rval = port->fp_fca_tran->fca_reset(
usr/src/uts/common/io/fibre-channel/impl/fp.c
2864
job->job_result = rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
2871
rval = fp_remote_lip(port, pwwn,
usr/src/uts/common/io/fibre-channel/impl/fp.c
2874
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fp.c
2876
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
2877
job->job_result = rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
2901
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
2930
if ((rval = fp_get_lilpmap(port, lilp_map)) != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
2934
FP_TRACE(FP_NHEAD1(9, rval),
usr/src/uts/common/io/fibre-channel/impl/fp.c
2965
rval = port->fp_fca_tran->fca_port_manage(
usr/src/uts/common/io/fibre-channel/impl/fp.c
2968
if (rval == FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
2997
if ((rval = fp_fabric_login(port, src_id, job, FP_CMD_PLOGI_DONT_CARE,
usr/src/uts/common/io/fibre-channel/impl/fp.c
3006
fp_printf(port, CE_NOTE, FP_LOG_ONLY, rval, NULL,
usr/src/uts/common/io/fibre-channel/impl/fp.c
3092
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
3128
rval = cmd->cmd_transport(fca_handle, &cmd->cmd_pkt);
usr/src/uts/common/io/fibre-channel/impl/fp.c
3129
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
3130
if (rval == FC_TRAN_BUSY) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
3132
rval = fp_retry_cmd(&cmd->cmd_pkt);
usr/src/uts/common/io/fibre-channel/impl/fp.c
3133
if (rval == FC_FAILURE) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
3143
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
3160
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
3179
rval = cmd->cmd_transport(port->fp_fca_handle,
usr/src/uts/common/io/fibre-channel/impl/fp.c
3182
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
3297
int rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fp.c
3313
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
3318
rval = fp_sendcmd(cmd->cmd_port, cmd,
usr/src/uts/common/io/fibre-channel/impl/fp.c
332
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
3321
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
3332
rval = fp_retry_cmd(pkt);
usr/src/uts/common/io/fibre-channel/impl/fp.c
3341
rval = fp_retry_cmd(pkt);
usr/src/uts/common/io/fibre-channel/impl/fp.c
3348
rval = fp_retry_cmd(pkt);
usr/src/uts/common/io/fibre-channel/impl/fp.c
3358
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
3410
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
3415
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/impl/fp.c
3417
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fp.c
3423
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/impl/fp.c
3425
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fp.c
3431
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/impl/fp.c
3433
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fp.c
3438
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fp.c
3442
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
375
rval = fp_attach_handler(dip);
usr/src/uts/common/io/fibre-channel/impl/fp.c
3751
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
379
rval = fp_resume_handler(dip);
usr/src/uts/common/io/fibre-channel/impl/fp.c
3806
rval = fp_port_login(port, d_id, job, flag,
usr/src/uts/common/io/fibre-channel/impl/fp.c
3808
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
3824
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
383
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fp.c
386
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
3871
rval = fp_port_login(port, d_id, job,
usr/src/uts/common/io/fibre-channel/impl/fp.c
3874
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
3925
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
3931
rval = port->fp_fca_tran->fca_getmap(port->fp_fca_handle, lilp_map);
usr/src/uts/common/io/fibre-channel/impl/fp.c
3934
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
3935
rval = FC_NO_MAP;
usr/src/uts/common/io/fibre-channel/impl/fp.c
3951
rval = fp_validate_lilp_map(lilp_map);
usr/src/uts/common/io/fibre-channel/impl/fp.c
3953
if (rval == FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
3961
if (rval != FC_SUCCESS && !(port->fp_soft_state & FP_SOFT_BAD_LINK)) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
3971
} else if (rval == FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
3981
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
3999
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
400
int rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fp.c
4028
rval = fp_sendcmd(port, cmd, port->fp_fca_handle);
usr/src/uts/common/io/fibre-channel/impl/fp.c
4029
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
4036
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
434
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fp.c
448
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fp.c
453
rval = fp_detach_handler(port);
usr/src/uts/common/io/fibre-channel/impl/fp.c
461
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fp.c
464
if ((rval = fp_suspend_handler(port)) != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
480
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
4878
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
5155
rval = fp_port_login(port, d_id, job, cmd_flags,
usr/src/uts/common/io/fibre-channel/impl/fp.c
5158
if (rval == FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
5162
if (rval == FC_STATEC_BUSY) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
520
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
5211
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
5220
rval = fp_port_login(port, 0xFFFFFC, job, FP_CMD_PLOGI_RETAIN,
usr/src/uts/common/io/fibre-channel/impl/fp.c
5223
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
534
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
5367
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
538
rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/impl/fp.c
545
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fp.c
556
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fp.c
560
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
570
int rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fp.c
5748
rval = fp_sendcmd(port, cmd, port->fp_fca_handle);
usr/src/uts/common/io/fibre-channel/impl/fp.c
575
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
5750
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
5751
job->job_result = rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
5759
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/impl/fp.c
5762
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
5772
int rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/impl/fp.c
5799
rval = fp_retry_cmd(pkt);
usr/src/uts/common/io/fibre-channel/impl/fp.c
580
rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/impl/fp.c
5808
rval = fp_handle_reject(pkt);
usr/src/uts/common/io/fibre-channel/impl/fp.c
5814
rval = fp_retry_cmd(pkt);
usr/src/uts/common/io/fibre-channel/impl/fp.c
5822
if (rval != FC_SUCCESS && iodone) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
5824
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/impl/fp.c
5827
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
599
rval = fp_power_up(port);
usr/src/uts/common/io/fibre-channel/impl/fp.c
600
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
635
rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/impl/fp.c
642
rval = fp_power_down(port);
usr/src/uts/common/io/fibre-channel/impl/fp.c
643
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
6515
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
659
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
6723
rval = fp_sendcmd(port, cmd, port->fp_fca_handle);
usr/src/uts/common/io/fibre-channel/impl/fp.c
6757
if (rval == FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
7128
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7178
rval = fp_ns_query(port, ns_cmd, job, 1, sleep);
usr/src/uts/common/io/fibre-channel/impl/fp.c
7217
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
7226
int rval = 0;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7251
rval = EAGAIN;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7253
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7255
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
7262
rval = EACCES;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7264
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7266
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
7299
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7305
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7353
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7356
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7364
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7367
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7383
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7387
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7396
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7398
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7408
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7411
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7425
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7431
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7515
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7518
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7526
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7529
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7552
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7555
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7569
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7580
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7592
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7602
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
763
fp_ioctl(dev_t dev, int cmd, intptr_t data, int mode, cred_t *credp, int *rval)
usr/src/uts/common/io/fibre-channel/impl/fp.c
7639
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7651
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7664
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7667
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7670
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7683
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7699
rval = ENXIO;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7713
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7717
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7751
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7754
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7767
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7773
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7943
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7946
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7954
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7957
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7974
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7980
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7986
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7994
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
7996
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8009
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8083
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8086
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8095
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8098
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8117
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8123
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8129
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8144
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8210
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8213
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8222
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8225
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8238
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8286
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8289
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8301
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8316
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8321
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8324
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8336
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8341
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8344
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8352
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8356
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8363
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8367
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8408
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8415
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8418
rval = EIO;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8428
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8437
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8445
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8462
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8467
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8470
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8478
rval = ENOTSUP;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8483
rval = ENOTSUP;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8488
rval = ENOTSUP;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8493
rval = ENOTSUP;
usr/src/uts/common/io/fibre-channel/impl/fp.c
850
mode, credp, rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
8508
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8514
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8519
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8525
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8536
rval = ENXIO;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8585
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8592
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8598
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8607
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8610
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8631
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8637
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8649
rval = job->job_result;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8653
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8671
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8676
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8714
rval = EIO;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8723
rval = ENXIO;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8733
if (!rval) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
8737
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8741
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8753
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8758
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8764
rval = ENXIO;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8767
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8776
rval = EBUSY;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8781
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8803
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8823
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8826
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8834
rval = ENOMEM;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8836
rval = EIO;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8840
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8853
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8873
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8876
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8880
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8882
rval = EIO;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8894
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8911
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8914
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8918
rval = EIO;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8920
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8932
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8939
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8957
rval = EIO;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8959
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8971
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8978
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8996
rval = EIO;
usr/src/uts/common/io/fibre-channel/impl/fp.c
8998
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9010
rval = EIO;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9012
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9023
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9038
rval = EIO;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9040
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9046
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9048
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9068
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9071
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9075
rval = EIO;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9077
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9089
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9104
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9122
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9128
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9142
rval = ENOMEM;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9157
rval = EIO;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9159
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
916
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9171
rval = EIO;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9173
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9182
rval = EIO;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9185
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9202
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9210
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9219
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9236
rval = ENOTTY;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9238
rval = EIO;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9243
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9260
rval = ENOMEM;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9263
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9272
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9278
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9299
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9303
rval = fp_get_rnid(port, data, mode, fcio);
usr/src/uts/common/io/fibre-channel/impl/fp.c
9315
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
932
rval = ddi_prop_op(DDI_DEV_T_ANY, dip, PROP_LEN_AND_VAL_BUF,
usr/src/uts/common/io/fibre-channel/impl/fp.c
9321
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9325
rval = fp_send_rnid(port, data, mode, fcio, &pwwn);
usr/src/uts/common/io/fibre-channel/impl/fp.c
9334
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9338
rval = fp_set_rnid(port, data, mode, fcio);
usr/src/uts/common/io/fibre-channel/impl/fp.c
935
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
9355
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9361
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9367
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9409
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9412
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9415
rval = EIO;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9418
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9437
rval = ENXIO;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9439
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9450
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9452
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9474
rval = ENOMEM;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9480
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9523
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9526
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9529
rval = EIO;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9532
rval = EIO;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9536
if (rval) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
9551
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9563
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9572
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9590
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9598
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9605
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9627
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9637
rval = job->job_result;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9639
if (rval == FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
9644
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9652
rval = EIO;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9660
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9666
rval = ENOTTY;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9680
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
9702
int rval = 0;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9724
rval = port->fp_fca_tran->fca_port_manage(
usr/src/uts/common/io/fibre-channel/impl/fp.c
9727
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
9728
fcio->fcio_errno = rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9729
rval = EIO;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9731
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9743
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
9744
FP_TRACE(FP_NHEAD1(3, 0), "fp_set_rnid: failed = %d", rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
9747
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
9758
int rval = 0;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9772
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9775
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9780
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
9782
rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
9785
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
9815
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9818
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9821
rval = EIO;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9824
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9830
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
9831
FP_TRACE(FP_NHEAD1(3, 0), "fp_get_rnid: failed = %d", rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
9834
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
9841
int rval = 0;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9876
rval = ENOMEM;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9880
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9883
FP_TRACE(FP_NHEAD1(3, 0), "fp_send_rnid: failed = %d", rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
9885
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
9927
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9933
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9936
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9939
rval = EIO;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9942
rval = EIO;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9955
rval = EFAULT;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9958
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/impl/fp.c
9959
FP_TRACE(FP_NHEAD1(3, 0), "fp_send_rnid: failed = %d", rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
9962
return (rval);
usr/src/uts/common/io/fibre-channel/impl/fp.c
9971
int rval;
usr/src/uts/common/io/fibre-channel/impl/fp.c
9993
rval = ddi_copyout((void *)&fcio32, (void *)data,
usr/src/uts/common/io/fibre-channel/impl/fp.c
9998
rval = ddi_copyout((void *)fcio, (void *)data,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1002
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1006
rval = fcip_handle_resume(fport, port_info, cmd);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1013
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1026
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1032
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1047
int rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1141
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1142
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1150
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1151
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1163
int rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1204
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1246
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1624
int rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1724
rval = fcip_handle_suspend(fport, cmd);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1732
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1742
int rval = 0, num_pkts = 0;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1752
rval = 1;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1760
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
185
dev_t dev, int cmd, intptr_t data, int mode, cred_t *credp, int *rval,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1976
int rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1982
rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1987
rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
1993
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2462
int rval = FC_UNCLAIMED;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2510
rval = FC_UNCLAIMED;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2517
rval = FC_UNCLAIMED;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2537
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2540
rval = FC_UNCLAIMED;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2556
rval = FC_UNCLAIMED;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2574
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2580
rval = FC_UNCLAIMED;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2593
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2606
int rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2636
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2666
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2674
rval = fc_ulp_issue_els(fport->fcipp_handle, fc_pkt);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2675
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2677
"fcip_transport of farp reply failed 0x%x", rval));
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2681
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2695
int rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2722
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2724
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2761
int rval;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2784
rval = FC_UNCLAIMED;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2842
rval = FC_UNCLAIMED;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2848
rval = FC_UNCLAIMED;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2857
rval = FC_UNCLAIMED;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2884
rval = FC_UNCLAIMED;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2895
rval = FC_UNCLAIMED;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2910
rval = FC_UNCLAIMED;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2921
rval = FC_UNCLAIMED;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2972
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
2981
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3011
int rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3016
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3032
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3035
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
3941
int rval;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4048
if ((rval = fcip_transport(fcip_pkt)) == FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4053
free = (rval == FC_STATEC_BUSY || rval == FC_OFFLINE ||
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4054
rval == FC_TRAN_BUSY) ? 0 : 1;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4057
rval = fcip_fdestp_dequeue_pkt(fdestp, fcip_pkt);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4059
if (!rval) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4184
int rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4205
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4227
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4239
rval = fc_ulp_transport(fport->fcipp_handle, fc_pkt);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4240
if (rval == FC_STATEC_BUSY || rval == FC_OFFLINE) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4245
(CE_WARN, "ulp_transport failed: 0x%x", rval));
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4246
} else if (rval == FC_LOGINREQ && (frp != NULL)) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4248
} else if (rval == FC_BADPACKET && (frp != NULL)) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4264
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4275
int rval;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4302
rval = fcip_fdestp_dequeue_pkt(fdestp, fcip_pkt);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4306
if (rval) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4520
int rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4538
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4564
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4570
rval = fc_ulp_uballoc(fport->fcipp_handle, &fptr->fcip_ub_nbufs,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4573
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4576
fptr->fcip_instance, rval));
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4579
switch (rval) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4585
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4591
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4602
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4608
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4634
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4650
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4654
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4655
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4691
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
4934
int cmd, intptr_t data, int mode, cred_t *credp, int *rval,
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5743
int rval;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5828
&twwn, &rval, 1);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5830
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5843
&twwn, &rval, 1);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5846
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5852
&twwn, &rval, 1);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5855
if (rval == FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5910
int rval = 0;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5917
rval = 1;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5921
rval = 1;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
5923
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6032
int rval;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
608
int rval;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6119
rval = fc_ulp_issue_els(fport->fcipp_handle, fc_pkt);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6120
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6122
"fcip_transport of farp pkt failed 0x%x", rval));
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6195
int rval;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6269
rval = fc_ulp_login(fport->fcipp_handle, &fc_pkt, 1);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
627
rval = fc_ulp_add(&fcip_modinfo);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6270
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6273
frp->fcipr_d_id.port_id, rval);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
6276
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
628
if (rval != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
632
switch (rval) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
637
rval = EEXIST;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
644
rval = EEXIST;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
651
rval = ENODEV;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
655
"!fcip: fc_ulp_add failed with status 0x%x", rval));
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
656
rval = ENODEV;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
659
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
662
if ((rval = ddi_soft_state_init(&fcip_softp, sizeof (struct fcip),
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
668
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
671
if ((rval = mod_install(&modlinkage)) != 0) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
678
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
688
int rval;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
702
if ((rval = mod_remove(&modlinkage)) != 0) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
703
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7171
int rval;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7182
rval = fc_ulp_abort(fport->fcipp_handle, fc_pkt, KM_NOSLEEP);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7185
(CE_NOTE, "fc_ulp_abort returns: 0x%x", rval));
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7187
if (rval == FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7195
rval = fcip_fdestp_dequeue_pkt(fdestp, fcip_pkt);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7196
ASSERT(rval == 1);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
720
rval = ENODEV;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7213
rval = fcip_fdestp_dequeue_pkt(fdestp, fcip_pkt);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
7214
ASSERT(rval == 1);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
725
rval = ENODEV;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
734
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
757
int rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
799
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
824
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
832
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
875
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
884
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
964
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
977
rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcip.c
987
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10581
int rval;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10604
rval = ddi_dma_mem_alloc(fpkt->pkt_cmd_dma, cmd_len,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10608
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10620
rval = ddi_dma_addr_bind_handle(fpkt->pkt_cmd_dma, NULL,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10624
if (rval != DDI_DMA_MAPPED) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10677
rval = ddi_dma_mem_alloc(fpkt->pkt_resp_dma, resp_len,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10682
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10703
rval = ddi_dma_addr_bind_handle(fpkt->pkt_resp_dma, NULL,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
10707
if (rval != DDI_DMA_MAPPED) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11002
int rval;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11012
rval = fcp_virt_tgt_init(hba_dip, tgt_dip, hba_tran, sd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11014
rval = fcp_phys_tgt_init(hba_dip, tgt_dip, hba_tran, sd);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11017
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11073
int rval;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11211
rval = fcp_transport(pptr->port_fp_handle, cmd->cmd_fp_pkt, 0);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11212
if (rval == FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11232
if (rval == FC_TRAN_BUSY) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11234
rval = TRAN_BUSY;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11247
plun->lun_tgt->tgt_d_id, rval, cip);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11249
rval = TRAN_FATAL_ERROR;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11256
rval = TRAN_BUSY;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11258
rval = TRAN_ACCEPT;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11265
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11299
int rval = 0;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11306
rval = 1;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11322
rval = 1;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11325
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1136
int rval;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1150
if ((rval = fc_ulp_add(&fcp_modinfo)) != FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1160
if ((rval = mod_install(&modlinkage)) != 0) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11621
int rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11636
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11644
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11652
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1166
rval = ENODEV;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11668
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1169
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11713
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11764
if (rval == FC_FAILURE) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11773
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1179
int rval;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11799
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11816
int rval = FALSE;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11822
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11839
rval = FALSE;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11841
rval = TRUE;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11851
rval = TRUE;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11855
rval = TRUE;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1186
if ((rval = mod_remove(&modlinkage)) != 0) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11861
rval = UNDEFINED;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11869
cap, val, tgtonly, doset, rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1187
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11877
rval = (int)pptr->port_data_dma_attr.dma_attr_maxxfer;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11887
if (rval == -1) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11888
rval = MAX_INT_DMA;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11894
rval = pptr->port_id;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11900
rval = TRUE;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11904
rval = 3;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11910
rval = INTERCONNECT_FABRIC;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11912
rval = INTERCONNECT_FIBRE;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11917
rval = ((plun->lun_cap & FCP_LUN_CAP_RESET) != 0) ?
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11925
rval = UNDEFINED;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11933
cap, val, tgtonly, doset, rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
11936
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1197
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1214
int rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1234
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12439
int rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12454
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12460
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12466
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12472
int rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12478
rval = fcp_is_dip_present(plun, DIP(cip));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12480
rval = fcp_is_pip_present(plun, PIP(cip));
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
12483
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1257
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13037
int rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13067
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13076
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13080
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13083
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13110
int rval;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13146
rval = ndi_devi_bind_driver(cdip, flags);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13149
"!Invoking ndi_devi_bind_driver: rval=%d", rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13151
rval = ndi_devi_online(cdip, flags);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13160
if (rval == NDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13169
plun->lun_num, rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13176
plun->lun_num, rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13195
rval = mdi_pi_online(PIP(cip), flags);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13200
if (rval == MDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13211
} else if (rval == MDI_NOT_SUPPORTED) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13262
plun->lun_num, rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13265
rval = (rval == MDI_SUCCESS) ? NDI_SUCCESS : NDI_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13268
if (rval == NDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13279
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13287
int rval;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13316
rval = ndi_devi_offline(DIP(cip), flags);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13317
if (rval != NDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13321
"rval=%x cip=%p", rval, cip);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13335
rval = mdi_pi_offline(PIP(cip), flags);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13340
rval = (rval == MDI_SUCCESS) ? NDI_SUCCESS : NDI_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13347
if (rval == NDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13376
if (rval == NDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13390
"rval=%x cip=%p", rval, cip);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13404
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13700
int rval;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13702
if ((rval = fc_ulp_login(
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1371
int *rval)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13711
pptr, ptgt, icmd, rval,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13720
if ((rval = fc_ulp_issue_els(
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13729
pptr, ptgt, icmd, rval,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13738
if ((rval = fcp_transport(
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13747
pptr, ptgt, icmd, rval,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1387
(struct fcp_ioctl *)data, mode, rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13874
int rval;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1393
(struct fcp_scsi_cmd *)data, mode, rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13983
rval = fc_ulp_abort(pptr->port_fp_handle,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13985
if (rval == FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1399
mode, rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
13994
(void) fc_ulp_error(rval, &msg);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1403
mode, rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14260
int rval;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14278
rval = fc_ulp_transport(pptr->port_fp_handle, cmd->cmd_fp_pkt);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14288
switch (rval) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14292
rval = TRAN_ACCEPT;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14294
rval = TRAN_FATAL_ERROR;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14299
rval = TRAN_BUSY;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14304
rval = TRAN_BADPKT;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14308
rval = TRAN_FATAL_ERROR;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14312
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14379
int rval;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1439
int *rval)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14397
rval = (elem->result);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14402
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14479
int rval;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14538
rval = fcp_transport(pptr->port_fp_handle,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14541
if (rval == FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14670
int rval;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14673
rval = fcp_call_finish_init_held(pptr, ptgt, lcount, tcount, cause);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14676
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14687
int rval = FCP_NO_CHANGE;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14706
rval = FCP_DEV_CHANGE;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14760
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14917
int rval = EIO;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14949
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
14960
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15024
rval = EBUSY;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15034
tcount, ptgt->tgt_change_cnt, rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15035
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15058
tcount, ptgt->tgt_change_cnt, rval, ptgt->tgt_device_created,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15075
rval = EBUSY;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15079
rval = 0;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15090
tcount, ptgt->tgt_change_cnt, rval, ptgt->tgt_device_created,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15093
if (rval) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15109
tcount, ptgt->tgt_change_cnt, rval,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15111
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15117
rval = EINVAL;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15144
rval = fcp_pass_to_hp_and_wait(pptr, plun, cip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15147
if (rval != NDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15153
"rval=%x", rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15154
rval = EIO;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15174
if (rval == 0) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15183
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15377
struct fcp_ipkt *icmd, int rval, caddr_t op)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15382
switch (rval) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15406
rval, ptgt->tgt_d_id);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15418
rval, ptgt->tgt_d_id);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15443
rval, ptgt->tgt_d_id);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15459
(void) fc_ulp_error(rval, &error);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15712
int rval, retry = 0;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15732
rval = (ndi_busop_bus_config(parent,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15735
if (rval == 0) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15736
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
16249
int rval;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
16319
rval = fcp_transport(pptr->port_fp_handle, fpkt, 0);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
16320
if (rval == FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
16330
if (rval == FC_TRAN_BUSY) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1745
int mode, int *rval)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1980
int mode, int *rval)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3023
fcp_get_statec_count(struct fcp_ioctl *data, int mode, int *rval)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3030
if ((ret = fcp_copyin_fcp_ioctl_data(data, mode, rval, &fioctl,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3105
fcp_copyin_fcp_ioctl_data(struct fcp_ioctl *data, int mode, int *rval,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
349
cred_t *credp, int *rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
359
int cmd, intptr_t data, int mode, cred_t *credp, int *rval,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3716
intptr_t data, int mode, cred_t *credp, int *rval, uint32_t claimed)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3730
ASSERT(rval != NULL);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3749
*rval = ENXIO;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3806
*rval = ENXIO;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3813
*rval = ENOTTY;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3822
*rval = 0;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3835
*rval = EFAULT;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3860
*rval = ENXIO;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3883
*rval = fcp_pass_to_hp_and_wait(pptr, plun, cip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3886
if (*rval != NDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3887
*rval = (*rval == NDI_BUSY) ? EBUSY : EIO;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3936
*rval = ENXIO;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3960
*rval = fcp_pass_to_hp_and_wait(pptr, plun, cip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3963
if (*rval != NDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3968
*rval = EIO;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3985
*rval = ndi_dc_devi_create(dcp, pptr->port_dip,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3987
if (*rval != 0 || useless_dip == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
3994
*rval = EINVAL;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4002
*rval = fcp_create_on_demand(pptr, bytes);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4003
if (*rval == 0) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4031
if (*rval == 0 && ptgt && plun) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
405
int mode, int *rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4061
*rval = ENXIO;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
408
int mode, int *rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4091
*rval = ENXIO;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4107
*rval = EFAULT;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4120
buf, *rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4140
*rval = ENXIO;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4149
*rval = ENXIO;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4156
*rval = ENXIO;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4167
*rval = EIO;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4178
*rval = EFAULT;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4184
*rval = ENOTSUP;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
4195
*rval = ENOTTY;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5158
int rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5250
rval = fc_ulp_login(pptr->port_fp_handle, &fpkt, 1);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5251
if (rval == FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5259
rval, "PLOGI");
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5324
rval = fc_ulp_issue_els(pptr->port_fp_handle, fpkt);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5325
if (rval == FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5333
rval, "PRLI");
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5682
int rval;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5685
if ((rval = fc_ulp_issue_els(pptr->port_fp_handle, fpkt)) !=
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5687
if ((rval == FC_STATEC_BUSY || rval == FC_OFFLINE) &&
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
582
struct fcp_tgt *ptgt, struct fcp_ipkt *icmd, int rval, caddr_t op);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5866
int rval;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
587
static int fcp_get_statec_count(struct fcp_ioctl *data, int mode, int *rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5870
rval = fc_ulp_uninit_packet(pptr->port_fp_handle, fpkt);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5871
ASSERT(rval == FC_SUCCESS);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
592
int *rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5963
int rval;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
597
int *rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5993
rval = fcp_alloc_cmd_resp(pptr, fpkt, flags);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
5994
if (rval == FC_FAILURE) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6211
int rval;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6454
rval = fc_ulp_issue_els(pptr->port_fp_handle,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6456
if (rval == FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6460
if (rval == FC_STATEC_BUSY ||
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6461
rval == FC_OFFLINE) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6465
(void) fc_ulp_error(rval, &msg);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6700
int rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6741
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6750
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6875
rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
6884
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7106
int rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7114
rval = fcp_check_reportlun(rsp, fpkt);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7121
if (rval == DDI_SUCCESS && icmd->ipkt_nodma == 0) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7131
if (rval == DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7951
int rval = 1;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
7988
rval = fcp_offline_target(pptr, ptgt, link_cnt,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8008
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8154
int rval = NDI_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8170
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8193
rval = fcp_update_mpxio_path(plun, cip, online);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8195
rval = NDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8197
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8265
rval = fcp_online_child(plun, ccip, lcount, tcount, flags);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8269
rval = fcp_offline_child(plun, ccip, lcount, tcount, flags);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
8285
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9552
int rval;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9554
rval = fc_ulp_transport(port_handle, fpkt);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9555
if (rval == FC_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9556
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9566
if ((rval == FC_STATEC_BUSY) || (rval == FC_OFFLINE) ||
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9567
(rval == FC_LOGINREQ) || (rval == FC_DEVICE_BUSY) ||
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9568
(rval == FC_DEVICE_BUSY_NEW_RSCN) || (rval == FC_TRAN_BUSY)) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9620
icmd->ipkt_tgt, icmd, rval, op) == DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9621
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9636
rval = FC_TRAN_BUSY;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9639
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9644
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9674
int rval;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9687
rval = fcp_do_ns_registry(pptr, s_id);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
9690
if (rval == 0) {
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
1001
"port_detach: end. cmd 0x%x rval 0x%x", cmd, rval));
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
1002
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
1492
intptr_t arg, int mode, cred_t *credp, int *rval, uint32_t claimed)
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
203
int rval;
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
2038
int rval;
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
2089
rval = ddi_dma_mem_alloc(pkt->pkt_cmd_dma, cmd_len,
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
2094
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
210
if (rval = ddi_soft_state_init(&fcsm_state, sizeof (fcsm_t),
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
2112
rval = ddi_dma_addr_bind_handle(pkt->pkt_cmd_dma, NULL,
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
2116
if (rval != DDI_DMA_MAPPED) {
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
2162
rval = ddi_dma_mem_alloc(pkt->pkt_resp_dma, resp_len,
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
2167
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
2185
rval = ddi_dma_addr_bind_handle(pkt->pkt_resp_dma, NULL,
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
2189
if (rval != DDI_DMA_MAPPED) {
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
234
rval = fc_ulp_add(&fcsm_modinfo);
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
235
if (rval != 0) {
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
236
switch (rval) {
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
241
rval = EEXIST;
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
249
rval = EEXIST;
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
257
rval = EIO;
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
261
"_init: fc_ulp_add failed with status 0x%x", rval);
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
262
rval = EIO;
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
268
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
271
if ((rval = mod_install(&modlinkage)) != 0) {
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
273
"_init: mod_install failed with status 0x%x", rval));
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
278
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
281
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
287
int rval;
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
299
if ((rval = mod_remove(&modlinkage)) != 0) {
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
300
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
327
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
341
int rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
437
rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
447
rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
456
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
464
int rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
480
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
484
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
494
int rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
524
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
563
rval = FC_SUCCESS;
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
577
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
744
int rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
779
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
886
rval = DDI_SUCCESS;
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
892
rval = DDI_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
897
"detach: end. cmd 0x%x, rval 0x%x", cmd, rval));
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
899
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
928
int rval = FC_FAILURE;
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
953
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
967
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
988
return (rval);
usr/src/uts/common/io/fibre-channel/ulp/fcsm.c
992
rval = FC_SUCCESS;
usr/src/uts/common/io/gen_drv.c
1033
rval = EINVAL;
usr/src/uts/common/io/gen_drv.c
1080
rval = EINVAL;
usr/src/uts/common/io/gen_drv.c
1100
rval = EINVAL;
usr/src/uts/common/io/gen_drv.c
1122
rval = EINVAL;
usr/src/uts/common/io/gen_drv.c
1140
rval = EINVAL;
usr/src/uts/common/io/gen_drv.c
1163
return (rval);
usr/src/uts/common/io/gen_drv.c
1538
int rval = DDI_SUCCESS;
usr/src/uts/common/io/gen_drv.c
1544
rval = gen_create_mn_disk_chan(devi);
usr/src/uts/common/io/gen_drv.c
1546
rval = gen_create_mn_disk_wwn(devi);
usr/src/uts/common/io/gen_drv.c
1548
rval = gen_create_mn_disk_cdrom(devi);
usr/src/uts/common/io/gen_drv.c
1550
rval = gen_create_mn_disk_fd(devi);
usr/src/uts/common/io/gen_drv.c
1552
rval = gen_create_display(devi);
usr/src/uts/common/io/gen_drv.c
1554
rval = gen_create_serial(devi);
usr/src/uts/common/io/gen_drv.c
1556
rval = gen_create_net(devi);
usr/src/uts/common/io/gen_drv.c
1596
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/gen_drv.c
1601
return (rval);
usr/src/uts/common/io/gen_drv.c
229
int rval;
usr/src/uts/common/io/gen_drv.c
293
rval = DDI_SUCCESS;
usr/src/uts/common/io/gen_drv.c
295
rval = gen_create_minor_nodes(devi, dstatep);
usr/src/uts/common/io/gen_drv.c
296
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/gen_drv.c
478
if (rval == DDI_SUCCESS) {
usr/src/uts/common/io/gen_drv.c
481
return (rval);
usr/src/uts/common/io/gen_drv.c
897
int rval = 0;
usr/src/uts/common/io/hme/hme.c
2949
int rval;
usr/src/uts/common/io/hme/hme.c
2959
rval = ddi_dma_alloc_handle(dip, &hme_dma_attr, DDI_DMA_DONTWAIT, NULL,
usr/src/uts/common/io/hme/hme.c
2961
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/hme/hme.c
2967
rval = ddi_dma_mem_alloc(hmep->hme_rmd_dmah, size,
usr/src/uts/common/io/hme/hme.c
2970
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/hme/hme.c
2976
rval = ddi_dma_addr_bind_handle(hmep->hme_rmd_dmah, NULL,
usr/src/uts/common/io/hme/hme.c
2979
if (rval != DDI_DMA_MAPPED) {
usr/src/uts/common/io/hme/hme.c
2991
rval = ddi_dma_alloc_handle(dip, &hme_dma_attr, DDI_DMA_DONTWAIT, NULL,
usr/src/uts/common/io/hme/hme.c
2993
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/hme/hme.c
2999
rval = ddi_dma_mem_alloc(hmep->hme_tmd_dmah, size,
usr/src/uts/common/io/hme/hme.c
3002
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/hme/hme.c
3008
rval = ddi_dma_addr_bind_handle(hmep->hme_tmd_dmah, NULL,
usr/src/uts/common/io/hme/hme.c
3011
if (rval != DDI_DMA_MAPPED) {
usr/src/uts/common/io/hook.c
819
int rval = 0;
usr/src/uts/common/io/hook.c
840
rval = (*hi->hi_hook.h_func)(token, info, hi->hi_hook.h_arg);
usr/src/uts/common/io/hook.c
845
int, rval);
usr/src/uts/common/io/hook.c
847
if (rval != 0)
usr/src/uts/common/io/hook.c
860
return (rval);
usr/src/uts/common/io/hotplug/pcihp/pcihp.c
1441
(void) pcihp_get_soft_state(self, state_unlocking, &rval);
usr/src/uts/common/io/hotplug/pcihp/pcihp.c
1981
int rval;
usr/src/uts/common/io/hotplug/pcihp/pcihp.c
1984
pcihp_p = pcihp_get_soft_state(dip, PCIHP_DR_SLOT_ENTER, &rval);
usr/src/uts/common/io/hotplug/pcihp/pcihp.c
1987
if (rval == PCIHP_FAILURE) {
usr/src/uts/common/io/hotplug/pcihp/pcihp.c
2294
(void) pcihp_get_soft_state(dip, PCIHP_DR_SLOT_EXIT, &rval);
usr/src/uts/common/io/hotplug/pcihp/pcihp.c
2318
int rval;
usr/src/uts/common/io/hotplug/pcihp/pcihp.c
2330
pcihp_p = pcihp_get_soft_state(self, PCIHP_DR_SLOT_ENTER, &rval);
usr/src/uts/common/io/hotplug/pcihp/pcihp.c
2333
if (rval == PCIHP_FAILURE) {
usr/src/uts/common/io/hotplug/pcihp/pcihp.c
2369
(void) pcihp_get_soft_state(self, PCIHP_DR_SLOT_EXIT, &rval);
usr/src/uts/common/io/hotplug/pcihp/pcihp.c
2435
&rval);
usr/src/uts/common/io/hotplug/pcihp/pcihp.c
2565
&rval);
usr/src/uts/common/io/hotplug/pcihp/pcihp.c
2994
(void) pcihp_get_soft_state(self, PCIHP_DR_SLOT_EXIT, &rval);
usr/src/uts/common/io/hotplug/pcihp/pcihp.c
760
int rval;
usr/src/uts/common/io/hotplug/pcihp/pcihp.c
795
pcihp_p = pcihp_get_soft_state(self, state_locking, &rval);
usr/src/uts/common/io/hotplug/pcihp/pcihp.c
798
if (rval == PCIHP_FAILURE) {
usr/src/uts/common/io/hxge/hxge_ndd.c
61
#define PARAM_OUTOF_RANGE(vptr, eptr, rval, pa) \
usr/src/uts/common/io/hxge/hxge_ndd.c
62
((vptr == eptr) || (rval < pa->minimum) || (rval > pa->maximum))
usr/src/uts/common/io/ib/clients/daplt/daplt.c
3874
int rval = 0;
usr/src/uts/common/io/ib/clients/daplt/daplt.c
3876
rval = cv_timedwait_sig(&cno_rp->cno_cv,
usr/src/uts/common/io/ib/clients/daplt/daplt.c
3878
if (rval == 0) {
usr/src/uts/common/io/ib/clients/daplt/daplt.c
3883
} else if (rval == -1) {
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8170
int i, err, rval = 0;
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8193
rval = EINVAL;
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8206
rval = EINVAL;
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8211
rval = ENETDOWN;
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8222
rval = EINVAL;
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8236
rval = EEXIST;
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8262
rval = EIO;
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8268
rval = EAGAIN;
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8293
rval = err;
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8302
rval = err;
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8321
return (rval);
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8329
return (rval);
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8427
int rval = 0;
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8494
rval = EFAULT;
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8505
rval = EINVAL;
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8511
rval = EFAULT;
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8520
rval = EFAULT;
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8526
rval = EFAULT;
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8534
rval = EFAULT;
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8542
rval = EINVAL;
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8548
rval = EFAULT;
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8556
rval = EFAULT;
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8562
rval = EFAULT;
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8570
rval = EFAULT;
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8578
rval = EINVAL;
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8583
rval = EFAULT;
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8591
rval = EFAULT;
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8597
rval = EFAULT;
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8627
rval = EFAULT;
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8639
rval = EFAULT;
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8647
rval = EFAULT;
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8657
rval = EFAULT;
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8665
rval = EFAULT;
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8675
rval = EFAULT;
usr/src/uts/common/io/ib/clients/ibd/ibd.c
8689
return (rval);
usr/src/uts/common/io/ib/clients/of/sol_ucma/sol_ucma.c
261
int rval;
usr/src/uts/common/io/ib/clients/of/sol_ucma/sol_ucma.c
277
rval = ddi_create_minor_node(dip, "sol_ucma", S_IFCHR,
usr/src/uts/common/io/ib/clients/of/sol_ucma/sol_ucma.c
279
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/ib/clients/of/sol_ucma/sol_ucma.c
371
int rval, ret_errno;
usr/src/uts/common/io/ib/clients/of/sol_ucma/sol_ucma.c
375
if ((rval = ldi_open_by_name(SOL_UCMA_UVERBS_PATH,
usr/src/uts/common/io/ib/clients/of/sol_ucma/sol_ucma.c
380
SOL_UCMA_UVERBS_PATH, rval);
usr/src/uts/common/io/ib/clients/rdsv3/af_rds.c
272
int rval = 0, rc, len;
usr/src/uts/common/io/ib/clients/rdsv3/af_rds.c
280
rval = ksocket_socket(&so4, PF_INET, SOCK_DGRAM, 0, KSOCKET_NOSLEEP,
usr/src/uts/common/io/ib/clients/rdsv3/af_rds.c
282
if (rval != 0) {
usr/src/uts/common/io/ib/clients/rdsv3/af_rds.c
284
rval);
usr/src/uts/common/io/ib/clients/rdsv3/af_rds.c
285
return (rval);
usr/src/uts/common/io/ib/clients/rdsv3/af_rds.c
291
rval = rdsv3_do_ip_ioctl(so4, &buf, &bufsize, &numifs);
usr/src/uts/common/io/ib/clients/rdsv3/af_rds.c
292
if (rval != 0) break;
usr/src/uts/common/io/ib/clients/rdsv3/af_rds.c
318
rval = EFAULT;
usr/src/uts/common/io/ib/clients/rdsv3/af_rds.c
322
rval = rdsv3_do_ip_ioctl(so4, &buf, &bufsize, &numifs);
usr/src/uts/common/io/ib/clients/rdsv3/af_rds.c
323
if (rval != 0) {
usr/src/uts/common/io/ib/clients/rdsv3/af_rds.c
325
"rdsv3_do_ip_ioctl failed: %d", rval);
usr/src/uts/common/io/ib/clients/rdsv3/af_rds.c
335
rval = EFAULT;
usr/src/uts/common/io/ib/clients/rdsv3/af_rds.c
345
rval = EFAULT;
usr/src/uts/common/io/ib/clients/rdsv3/af_rds.c
356
rval = EFAULT;
usr/src/uts/common/io/ib/clients/rdsv3/af_rds.c
364
rval = rdsv3_do_ip_ioctl_old(so4, &buf, &bufsize, &numifs);
usr/src/uts/common/io/ib/clients/rdsv3/af_rds.c
365
if (rval != 0) {
usr/src/uts/common/io/ib/clients/rdsv3/af_rds.c
367
"rdsv3_do_ip_ioctl_old failed: %d", rval);
usr/src/uts/common/io/ib/clients/rdsv3/af_rds.c
377
rval = EFAULT;
usr/src/uts/common/io/ib/clients/rdsv3/af_rds.c
387
rval = EFAULT;
usr/src/uts/common/io/ib/clients/rdsv3/af_rds.c
401
rval = EFAULT;
usr/src/uts/common/io/ib/clients/rdsv3/af_rds.c
405
rc = ksocket_ioctl(so4, cmd, (intptr_t)&lifr, &rval, CRED());
usr/src/uts/common/io/ib/clients/rdsv3/af_rds.c
425
rval = EFAULT;
usr/src/uts/common/io/ib/clients/rdsv3/af_rds.c
431
rc = ksocket_ioctl(so4, cmd, (intptr_t)&ifr, &rval, CRED());
usr/src/uts/common/io/ib/clients/rdsv3/af_rds.c
454
rval = EOPNOTSUPP;
usr/src/uts/common/io/ib/clients/rdsv3/af_rds.c
459
RDSV3_DPRINTF4("rdsv3_ioctl", "return: %d cmd: %d", rval, cmd);
usr/src/uts/common/io/ib/clients/rdsv3/af_rds.c
461
*rvalp = rval;
usr/src/uts/common/io/ib/clients/rdsv3/af_rds.c
462
return (rval);
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_impl.c
118
int rval = 0;
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_impl.c
135
rval = ksocket_ioctl(so4, SIOCGLIFNUM, (intptr_t)&lifn, &rval,
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_impl.c
137
if (rval != 0) {
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_impl.c
139
"ksocket_ioctl returned: %d", rval);
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_impl.c
140
return (rval);
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_impl.c
160
rc = ksocket_ioctl(so4, SIOCGLIFCONF, (intptr_t)&lifc, &rval, CRED());
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_impl.c
190
&rval, CRED());
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_impl.c
215
return (rval);
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_impl.c
240
&rval, CRED());
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_impl.c
279
return (rval);
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_impl.c
324
int rval = 0;
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_impl.c
337
rval = ksocket_ioctl(so4, SIOCGIFNUM, (intptr_t)&ifn, &rval,
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_impl.c
339
if (rval != 0) {
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_impl.c
341
"ksocket_ioctl(SIOCGIFNUM) returned: %d", rval);
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_impl.c
342
return (rval);
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_impl.c
360
rc = ksocket_ioctl(so4, SIOCGIFCONF, (intptr_t)&ifc, &rval, CRED());
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_impl.c
391
&rval, CRED());
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_impl.c
429
return (rval);
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_impl.c
454
&rval, CRED());
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_impl.c
494
return (rval);
usr/src/uts/common/io/ib/ibnex/ibnex.c
1457
int rval;
usr/src/uts/common/io/ib/ibnex/ibnex.c
1461
rval = ibnex_get_dip_from_guid(port_attr->pa_port_guid,
usr/src/uts/common/io/ib/ibnex/ibnex.c
1463
if (rval != IBNEX_SUCCESS || dip == NULL) {
usr/src/uts/common/io/ib/ibnex/ibnex.c
1465
IBNEX_PORT_COMMSVC_NODE, 0, &rval,
usr/src/uts/common/io/ib/ibnex/ibnex.c
1484
int rval;
usr/src/uts/common/io/ib/ibnex/ibnex.c
1508
rval = ibnex_get_dip_from_guid(
usr/src/uts/common/io/ib/ibnex/ibnex.c
1510
if ((rval != IBNEX_SUCCESS) || (dip == NULL)) {
usr/src/uts/common/io/ib/ibnex/ibnex.c
1513
pkey, &rval, IBNEX_CFGADM_ENUMERATE);
usr/src/uts/common/io/ib/ibnex/ibnex.c
1531
int rval;
usr/src/uts/common/io/ib/ibnex/ibnex.c
1535
rval = ibnex_get_dip_from_guid(port_attr->pa_port_guid,
usr/src/uts/common/io/ib/ibnex/ibnex.c
1537
if (rval != IBNEX_SUCCESS || dip == NULL) {
usr/src/uts/common/io/ib/ibnex/ibnex.c
1539
IBNEX_HCASVC_COMMSVC_NODE, 0, &rval,
usr/src/uts/common/io/ib/ibnex/ibnex.c
1542
"commsvc_initnode failed, rval %x", rval);
usr/src/uts/common/io/ib/ibnex/ibnex.c
1612
int rval;
usr/src/uts/common/io/ib/ibnex/ibnex.c
1659
rval = ibnex_get_dip_from_guid(port_guid, index, pkey, &cdip);
usr/src/uts/common/io/ib/ibnex/ibnex.c
1660
if ((rval == IBNEX_SUCCESS) && cdip != NULL) {
usr/src/uts/common/io/ib/ibnex/ibnex.c
1672
port_attr, index, IBNEX_PORT_COMMSVC_NODE, pkey, &rval,
usr/src/uts/common/io/ib/ibnex/ibnex.c
1675
"\t ibnex_commsvc_initnode rval %x", rval);
usr/src/uts/common/io/ib/ibnex/ibnex.c
1678
port_attr, index, IBNEX_HCASVC_COMMSVC_NODE, pkey, &rval,
usr/src/uts/common/io/ib/ibnex/ibnex.c
1681
"\t ibnex_commsvc_initnode rval %x", rval);
usr/src/uts/common/io/ib/ibnex/ibnex.c
1694
pkey, &rval, IBNEX_CFGADM_ENUMERATE);
usr/src/uts/common/io/ib/ibnex/ibnex.c
1696
"\t ibnex_commsvc_initnode rval %x", rval);
usr/src/uts/common/io/ib/ibnex/ibnex.c
1878
int rval, node_valid;
usr/src/uts/common/io/ib/ibnex/ibnex.c
1899
rval = ibnex_ioc_create_pi(ioc_info, node_data, pdip, &node_valid);
usr/src/uts/common/io/ib/ibnex/ibnex.c
1902
if (rval == IBNEX_SUCCESS)
usr/src/uts/common/io/ib/ibnex/ibnex.c
1907
return (rval);
usr/src/uts/common/io/ib/ibnex/ibnex.c
1935
int rval;
usr/src/uts/common/io/ib/ibnex/ibnex.c
2011
rval = ibnex_pseudo_create_pi_pdip(node_data, pdip);
usr/src/uts/common/io/ib/ibnex/ibnex.c
2014
if (rval == IBNEX_SUCCESS) {
usr/src/uts/common/io/ib/ibnex/ibnex.c
2021
rval);
usr/src/uts/common/io/ib/ibnex/ibnex.c
2022
return (rval);
usr/src/uts/common/io/ib/ibnex/ibnex.c
2042
int rval, len;
usr/src/uts/common/io/ib/ibnex/ibnex.c
2066
rval = mdi_vhci_bus_config(ibnex.ibnex_dip, flag, BUS_CONFIG_ONE,
usr/src/uts/common/io/ib/ibnex/ibnex.c
2070
return (rval);
usr/src/uts/common/io/ib/ibnex/ibnex.c
2118
int rval;
usr/src/uts/common/io/ib/ibnex/ibnex.c
2128
rval = mdi_pi_alloc(hca_dip,
usr/src/uts/common/io/ib/ibnex/ibnex.c
2132
if (rval != MDI_SUCCESS) {
usr/src/uts/common/io/ib/ibnex/ibnex.c
2148
rval = mdi_pi_online(pip, 0);
usr/src/uts/common/io/ib/ibnex/ibnex.c
2150
if (rval != MDI_SUCCESS) {
usr/src/uts/common/io/ib/ibnex/ibnex.c
2154
" rval %d", cdip, rval);
usr/src/uts/common/io/ib/ibnex/ibnex.c
2155
rval = IBNEX_FAILURE;
usr/src/uts/common/io/ib/ibnex/ibnex.c
2163
rval = IBNEX_SUCCESS;
usr/src/uts/common/io/ib/ibnex/ibnex.c
2164
return (rval);
usr/src/uts/common/io/ib/ibnex/ibnex.c
2176
int rval = DDI_FAILURE;
usr/src/uts/common/io/ib/ibnex/ibnex.c
2189
rval = mdi_pi_alloc(pdip, IBNEX_IOC_CNAME, ioc->ioc_guid_str,
usr/src/uts/common/io/ib/ibnex/ibnex.c
2191
if (rval != MDI_SUCCESS) {
usr/src/uts/common/io/ib/ibnex/ibnex.c
2208
if ((rval = ibnex_create_ioc_node_prop(
usr/src/uts/common/io/ib/ibnex/ibnex.c
2222
rval = mdi_pi_online(pip, 0);
usr/src/uts/common/io/ib/ibnex/ibnex.c
2224
if (rval != MDI_SUCCESS) {
usr/src/uts/common/io/ib/ibnex/ibnex.c
2227
cdip, rval);
usr/src/uts/common/io/ib/ibnex/ibnex.c
2228
rval = IBNEX_FAILURE;
usr/src/uts/common/io/ib/ibnex/ibnex.c
2238
rval = IBNEX_SUCCESS;
usr/src/uts/common/io/ib/ibnex/ibnex.c
2240
IBTF_DPRINTF_L4("ibnex", "\tioc_create_pi ret %x", rval);
usr/src/uts/common/io/ib/ibnex/ibnex.c
2241
return (rval);
usr/src/uts/common/io/ib/ibnex/ibnex.c
2511
int rval, ii;
usr/src/uts/common/io/ib/ibnex/ibnex.c
2566
rval = ndi_prop_update_string_array(DDI_DEV_T_NONE, cdip,
usr/src/uts/common/io/ib/ibnex/ibnex.c
2569
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/ib/ibnex/ibnex.c
2987
int index, int node_type, ib_pkey_t pkey, int *rval, int flag)
usr/src/uts/common/io/ib/ibnex/ibnex.c
2999
*rval = IBNEX_SUCCESS;
usr/src/uts/common/io/ib/ibnex/ibnex.c
3016
*rval = IBNEX_FAILURE;
usr/src/uts/common/io/ib/ibnex/ibnex.c
3026
*rval = IBNEX_BUSY;
usr/src/uts/common/io/ib/ibnex/ibnex.c
3042
*rval = IBNEX_BUSY;
usr/src/uts/common/io/ib/ibnex/ibnex.c
3072
*rval = IBNEX_FAILURE;
usr/src/uts/common/io/ib/ibnex/ibnex.c
3115
*rval = IBNEX_FAILURE;
usr/src/uts/common/io/ib/ibnex/ibnex.c
3323
int rval, i;
usr/src/uts/common/io/ib/ibnex/ibnex.c
3355
rval = ndi_prop_update_string_array(DDI_DEV_T_NONE, child_dip,
usr/src/uts/common/io/ib/ibnex/ibnex.c
3358
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/ib/ibnex/ibnex_hca.c
319
int rval, iter = 0;
usr/src/uts/common/io/ib/ibnex/ibnex_hca.c
387
rval = ibnex_get_dip_from_guid(port_guid, index, pkey, &cdip);
usr/src/uts/common/io/ib/ibnex/ibnex_hca.c
388
if (rval == IBNEX_SUCCESS && cdip != NULL) {
usr/src/uts/common/io/ib/ibnex/ibnex_hca.c
397
index, IBNEX_VPPA_COMMSVC_NODE, pkey, &rval,
usr/src/uts/common/io/ib/ibnex/ibnex_hca.c
400
"\t ibnex_commsvc_initnode rval %x", rval);
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
1387
int rval;
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
1398
rval = ibnex_get_node_and_dip_from_guid(port_guid, svc_index, p_key,
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
1400
if (rval == IBNEX_SUCCESS && nodep != NULL) {
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
2644
int rval = MDI_SUCCESS;
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
2667
rval = ibnex_offline_childdip(dip);
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
2669
if (rval != MDI_SUCCESS) {
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
2670
rval = NDI_FAILURE;
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
2672
"dip %p with 0x%x", dip, rval);
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
2676
return (rval == MDI_SUCCESS ? IBNEX_SUCCESS : IBNEX_OFFLINE_FAILED);
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
2683
int rval = MDI_SUCCESS, rval2;
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
2700
rval = rval2;
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
2715
return (rval);
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
2729
int rval = NDI_SUCCESS;
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
2748
rval = ndi_devi_offline(dip, NDI_DEVI_REMOVE | NDI_UNCONFIG);
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
2749
if (rval != NDI_SUCCESS)
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
2751
"dip %p with 0x%x", dip, rval);
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
2754
return (rval == NDI_SUCCESS ? IBNEX_SUCCESS : IBNEX_OFFLINE_FAILED);
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
2766
int rval = MDI_SUCCESS;
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
2776
rval = ibnex_offline_childdip(dip);
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
2777
if (rval != MDI_SUCCESS) {
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
2778
rval = NDI_FAILURE;
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
2780
"dip %p with 0x%x", dip, rval);
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
2784
return (rval == MDI_SUCCESS ? IBNEX_SUCCESS : IBNEX_OFFLINE_FAILED);
usr/src/uts/common/io/ib/ibtl/ibtl_hca.c
1643
ibt_status_t rval = IBT_HCA_INVALID;
usr/src/uts/common/io/ib/ibtl/ibtl_hca.c
1665
return (rval);
usr/src/uts/common/io/ib/ibtl/ibtl_hca.c
1676
rval = IBT_SUCCESS;
usr/src/uts/common/io/ib/ibtl/ibtl_hca.c
1684
return (rval);
usr/src/uts/common/io/ib/ibtl/ibtl_impl.c
121
int rval;
usr/src/uts/common/io/ib/ibtl/ibtl_impl.c
123
if ((rval = mod_install(&modlinkage)) != 0)
usr/src/uts/common/io/ib/ibtl/ibtl_impl.c
124
return (rval);
usr/src/uts/common/io/ib/ibtl/ibtl_impl.c
155
return (rval);
usr/src/uts/common/io/ib/ibtl/ibtl_impl.c
162
int rval;
usr/src/uts/common/io/ib/ibtl/ibtl_impl.c
164
if ((rval = mod_remove(&modlinkage)) != 0) {
usr/src/uts/common/io/ib/ibtl/ibtl_impl.c
165
return (rval);
usr/src/uts/common/io/ib/ibtl/ibtl_impl.c
182
return (rval);
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_impl.c
390
int rval;
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_impl.c
399
rval = mod_install(&ibcm_modlinkage);
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_impl.c
400
if (rval != 0) {
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_impl.c
402
rval);
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_impl.c
407
return (rval);
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_sm.c
6733
ibcm_status_t rval = IBCM_SEND_RTU;
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_sm.c
6831
rval =
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_sm.c
6837
return (rval);
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_sm.c
6851
ibcm_status_t rval = IBCM_SEND_RTU;
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_sm.c
6942
return (rval);
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_sm.c
6971
rval = IBCM_SEND_REJ;
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_sm.c
6980
return (rval);
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
2529
int rval;
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
2534
rval = ibmf_saa_update_service_record(
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
2536
if (rval != IBMF_TRANS_TIMEOUT) {
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
2542
(longlong_t)srv_recp->ServiceID, rval, saa_type);
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
2547
if (rval != IBMF_SUCCESS) {
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
2549
"ibmf_saa_update_service_record() : Failed - %d", rval);
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
2550
return (ibcm_ibmf_analyze_error(rval));
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
2904
ibt_status_t rval;
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
2980
rval = ibcm_write_service_record(saa_handle, &srv_rec,
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
2985
rval, sid);
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
2986
if (rval != IBT_SUCCESS) {
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
2990
"sid %llx", rval, sid);
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
3659
ibt_status_t rval;
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
3673
rval = ibcm_write_service_record(saa_handle, srv_recp,
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
3675
if (rval != IBT_SUCCESS)
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
3678
"status = %d", rval);
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
3698
ibt_status_t rval;
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
3736
rval = ibcm_write_service_record(saa_handle, &srv_rec,
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
3741
"rval = %d", (longlong_t)sid, rval);
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
3742
if (rval != IBT_SUCCESS) {
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
3745
rval, (longlong_t)sid);
usr/src/uts/common/io/idm/idm_so.c
3092
int rc, nonblocking, rval;
usr/src/uts/common/io/idm/idm_so.c
3116
rc = ksocket_ioctl(ks, FIONBIO, (intptr_t)&nonblocking, &rval,
usr/src/uts/common/io/idm/idm_so.c
3169
(void) ksocket_ioctl(ks, FIONBIO, (intptr_t)&nonblocking, &rval,
usr/src/uts/common/io/idm/idm_so.c
396
int rval;
usr/src/uts/common/io/idm/idm_so.c
427
if (ksocket_ioctl(so6, SIOCGLIFNUM, (intptr_t)&lifn, &rval, CRED())
usr/src/uts/common/io/idm/idm_so.c
448
rc = ksocket_ioctl(so6, SIOCGLIFCONF, (intptr_t)&lifc, &rval, CRED());
usr/src/uts/common/io/idm/idm_so.c
485
&rval, CRED());
usr/src/uts/common/io/idm/idm_so.c
489
&rval, CRED());
usr/src/uts/common/io/kb8042/kb8042.c
330
boolean_t rval;
usr/src/uts/common/io/kb8042/kb8042.c
339
rval = ((datab == expect) ? B_TRUE : B_FALSE);
usr/src/uts/common/io/kb8042/kb8042.c
342
rval = B_FALSE;
usr/src/uts/common/io/kb8042/kb8042.c
349
return (rval);
usr/src/uts/common/io/ksocket/ksocket.c
689
int rval;
usr/src/uts/common/io/ksocket/ksocket.c
703
rval = EOPNOTSUPP;
usr/src/uts/common/io/ksocket/ksocket.c
705
rval = socket_ioctl(so, cmd, arg,
usr/src/uts/common/io/ksocket/ksocket.c
714
rval = EOPNOTSUPP;
usr/src/uts/common/io/ksocket/ksocket.c
718
return (rval);
usr/src/uts/common/io/ksocket/ksocket.c
737
clock_t rval;
usr/src/uts/common/io/ksocket/ksocket.c
825
rval = cv_wait_sig(&pcp->pc_cv, &pcp->pc_lock);
usr/src/uts/common/io/ksocket/ksocket.c
827
rval = cv_timedwait_sig(&pcp->pc_cv, &pcp->pc_lock,
usr/src/uts/common/io/ksocket/ksocket.c
830
if (rval <= 0) {
usr/src/uts/common/io/ksocket/ksocket.c
831
if (rval == 0)
usr/src/uts/common/io/l_strplumb.c
102
K_TO_K, CRED(), &rval));
usr/src/uts/common/io/l_strplumb.c
108
int rval;
usr/src/uts/common/io/l_strplumb.c
110
return (strioctl(vp, I_PUSH, (intptr_t)mod, 0, K_TO_K, CRED(), &rval));
usr/src/uts/common/io/l_strplumb.c
116
int rval;
usr/src/uts/common/io/l_strplumb.c
118
return (strioctl(vp, I_POP, 0, 0, K_TO_K, CRED(), &rval));
usr/src/uts/common/io/l_strplumb.c
145
int rval;
usr/src/uts/common/io/l_strplumb.c
147
return (strioctl(vp, cmd, arg, 0, K_TO_K, CRED(), &rval));
usr/src/uts/common/io/l_strplumb.c
162
rval_t rval;
usr/src/uts/common/io/l_strplumb.c
196
error = kstrgetmsg(vp, rmp, NULL, &pri, &pflag, timout, &rval);
usr/src/uts/common/io/l_strplumb.c
223
int i, error, rval;
usr/src/uts/common/io/l_strplumb.c
253
FKIOCTL, kcred, &rval);
usr/src/uts/common/io/l_strplumb.c
299
FKIOCTL, kcred, &rval);
usr/src/uts/common/io/l_strplumb.c
338
FKIOCTL, kcred, &rval);
usr/src/uts/common/io/l_strplumb.c
99
int rval;
usr/src/uts/common/io/lofi.c
3384
int rval;
usr/src/uts/common/io/lofi.c
3392
rval = EFAULT;
usr/src/uts/common/io/lofi.c
3400
rval = EFAULT;
usr/src/uts/common/io/lofi.c
3405
rval = EFAULT;
usr/src/uts/common/io/lofi.c
3410
rval = EFAULT;
usr/src/uts/common/io/lofi.c
3415
rval = EFAULT;
usr/src/uts/common/io/lofi.c
3422
return (rval);
usr/src/uts/common/io/mac/mac_ndd.c
160
int cmd, err, rval;
usr/src/uts/common/io/mac/mac_ndd.c
171
err = mac_ndd_set_ioctl(mip, mp, iocp->ioc_count, &rval);
usr/src/uts/common/io/mac/mac_ndd.c
173
err = mac_ndd_get_ioctl(mip, mp, iocp->ioc_count, &rval);
usr/src/uts/common/io/mac/mac_ndd.c
177
miocack(wq, mp, msgdsize(mp->b_cont), rval);
usr/src/uts/common/io/mac/mac_ndd.c
183
mac_ndd_get_ioctl(mac_impl_t *mip, mblk_t *mp, int avail, int *rval)
usr/src/uts/common/io/mac/mac_ndd.c
222
*rval = size_out; /* what's needed */
usr/src/uts/common/io/mac/mac_ndd.c
313
*rval = 0;
usr/src/uts/common/io/mac/mac_ndd.c
327
mac_ndd_set_ioctl(mac_impl_t *mip, mblk_t *mp, int avail, int *rval)
usr/src/uts/common/io/mac/mac_ndd.c
350
*rval = 0;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
1021
rval = handle_drv_ioctl(instance, &ioctl, mode);
usr/src/uts/common/io/mega_sas/megaraid_sas.c
1023
rval = handle_mfi_ioctl(instance, &ioctl, mode);
usr/src/uts/common/io/mega_sas/megaraid_sas.c
1030
rval = 1;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
1042
rval = handle_mfi_aen(instance, &aen);
usr/src/uts/common/io/mega_sas/megaraid_sas.c
1048
rval = 1;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
1053
rval = scsi_hba_ioctl(dev, cmd, arg,
usr/src/uts/common/io/mega_sas/megaraid_sas.c
1057
"scsi_hba_ioctl called, ret = %x.", rval));
usr/src/uts/common/io/mega_sas/megaraid_sas.c
1060
return (rval);
usr/src/uts/common/io/mega_sas/megaraid_sas.c
1433
int rval = 0;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
1447
rval = megasas_max_cap_maxxfer;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
1450
rval = 1;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
1453
rval = 0;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
1456
rval = 0;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
1459
rval = 1;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
1462
rval = 1;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
1465
rval = 1;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
1468
rval = 1;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
1471
rval = instance->init_id;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
1474
rval = 1;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
1477
rval = 0;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
1480
rval = 1;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
1483
rval = -1;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
1489
rval = -1;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
1493
return (rval);
usr/src/uts/common/io/mega_sas/megaraid_sas.c
1516
int rval = 1;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
1543
rval = 1;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
1546
rval = 1;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
1550
rval = 1;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
1553
rval = -1;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
1557
return (rval);
usr/src/uts/common/io/mega_sas/megaraid_sas.c
4192
int rval = 0;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
4245
rval = 1;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
4259
rval = 1;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
4282
rval = 1;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
4292
rval = 1;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
4296
return (rval);
usr/src/uts/common/io/mega_sas/megaraid_sas.c
4306
int rval = 0;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
4323
rval = issue_mfi_dcmd(instance, ioctl, cmd, mode);
usr/src/uts/common/io/mega_sas/megaraid_sas.c
4326
rval = issue_mfi_smp(instance, ioctl, cmd, mode);
usr/src/uts/common/io/mega_sas/megaraid_sas.c
4329
rval = issue_mfi_stp(instance, ioctl, cmd, mode);
usr/src/uts/common/io/mega_sas/megaraid_sas.c
4333
rval = issue_mfi_pthru(instance, ioctl, cmd, mode);
usr/src/uts/common/io/mega_sas/megaraid_sas.c
4338
rval = 1;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
4345
rval = 1;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
4346
return (rval);
usr/src/uts/common/io/mega_sas/megaraid_sas.c
4355
int rval = 0;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
4357
rval = register_mfi_aen(instance, instance->aen_seq_num,
usr/src/uts/common/io/mega_sas/megaraid_sas.c
4360
aen->cmd_status = (uint8_t)rval;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
4362
return (rval);
usr/src/uts/common/io/mega_sas/megaraid_sas.c
762
int rval;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
777
rval = DDI_FAILURE;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
780
rval = DDI_SUCCESS;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
785
rval = DDI_SUCCESS;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
789
rval = DDI_FAILURE;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
792
return (rval);
usr/src/uts/common/io/mega_sas/megaraid_sas.c
919
int rval = 0;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
943
rval = scsi_hba_open(dev, openflags, otyp, credp);
usr/src/uts/common/io/mega_sas/megaraid_sas.c
946
return (rval);
usr/src/uts/common/io/mega_sas/megaraid_sas.c
962
int rval = 0;
usr/src/uts/common/io/mega_sas/megaraid_sas.c
969
rval = scsi_hba_close(dev, openflags, otyp, credp);
usr/src/uts/common/io/mega_sas/megaraid_sas.c
972
return (rval);
usr/src/uts/common/io/mega_sas/megaraid_sas.c
995
int rval = 0;
usr/src/uts/common/io/mouse8042.c
451
int rval;
usr/src/uts/common/io/mouse8042.c
507
if ((rval = consconfig_unlink(ddi_driver_major(mouse8042_dip),
usr/src/uts/common/io/mouse8042.c
509
return (rval);
usr/src/uts/common/io/mouse8042.c
621
int rval)
usr/src/uts/common/io/mouse8042.c
624
iocp->ioc_rval = rval;
usr/src/uts/common/io/mr_sas/mr_sas.c
1019
int rval;
usr/src/uts/common/io/mr_sas/mr_sas.c
1034
rval = DDI_FAILURE;
usr/src/uts/common/io/mr_sas/mr_sas.c
1037
rval = DDI_SUCCESS;
usr/src/uts/common/io/mr_sas/mr_sas.c
1043
rval = DDI_SUCCESS;
usr/src/uts/common/io/mr_sas/mr_sas.c
1047
rval = DDI_FAILURE;
usr/src/uts/common/io/mr_sas/mr_sas.c
1050
return (rval);
usr/src/uts/common/io/mr_sas/mr_sas.c
1332
int rval = 0;
usr/src/uts/common/io/mr_sas/mr_sas.c
1356
rval = scsi_hba_open(dev, openflags, otyp, credp);
usr/src/uts/common/io/mr_sas/mr_sas.c
1359
return (rval);
usr/src/uts/common/io/mr_sas/mr_sas.c
1375
int rval = 0;
usr/src/uts/common/io/mr_sas/mr_sas.c
1382
rval = scsi_hba_close(dev, openflags, otyp, credp);
usr/src/uts/common/io/mr_sas/mr_sas.c
1385
return (rval);
usr/src/uts/common/io/mr_sas/mr_sas.c
1409
int rval = 0;
usr/src/uts/common/io/mr_sas/mr_sas.c
1439
rval = handle_drv_ioctl(instance, ioctl, mode);
usr/src/uts/common/io/mr_sas/mr_sas.c
1441
rval = handle_mfi_ioctl(instance, ioctl, mode);
usr/src/uts/common/io/mr_sas/mr_sas.c
1448
rval = 1;
usr/src/uts/common/io/mr_sas/mr_sas.c
1461
rval = handle_mfi_aen(instance, &aen);
usr/src/uts/common/io/mr_sas/mr_sas.c
1467
rval = 1;
usr/src/uts/common/io/mr_sas/mr_sas.c
1472
rval = scsi_hba_ioctl(dev, cmd, arg,
usr/src/uts/common/io/mr_sas/mr_sas.c
1476
"scsi_hba_ioctl called, ret = %x.", rval));
usr/src/uts/common/io/mr_sas/mr_sas.c
1480
return (rval);
usr/src/uts/common/io/mr_sas/mr_sas.c
2048
int rval = 0;
usr/src/uts/common/io/mr_sas/mr_sas.c
2063
rval = mrsas_tbolt_max_cap_maxxfer;
usr/src/uts/common/io/mr_sas/mr_sas.c
2066
rval = mrsas_max_cap_maxxfer;
usr/src/uts/common/io/mr_sas/mr_sas.c
2070
rval = 1;
usr/src/uts/common/io/mr_sas/mr_sas.c
2073
rval = 0;
usr/src/uts/common/io/mr_sas/mr_sas.c
2076
rval = 0;
usr/src/uts/common/io/mr_sas/mr_sas.c
2079
rval = 1;
usr/src/uts/common/io/mr_sas/mr_sas.c
2082
rval = 1;
usr/src/uts/common/io/mr_sas/mr_sas.c
2085
rval = 1;
usr/src/uts/common/io/mr_sas/mr_sas.c
2088
rval = 1;
usr/src/uts/common/io/mr_sas/mr_sas.c
2091
rval = instance->init_id;
usr/src/uts/common/io/mr_sas/mr_sas.c
2094
rval = 1;
usr/src/uts/common/io/mr_sas/mr_sas.c
2097
rval = 0;
usr/src/uts/common/io/mr_sas/mr_sas.c
2100
rval = 1;
usr/src/uts/common/io/mr_sas/mr_sas.c
2103
rval = -1;
usr/src/uts/common/io/mr_sas/mr_sas.c
2109
rval = -1;
usr/src/uts/common/io/mr_sas/mr_sas.c
2113
return (rval);
usr/src/uts/common/io/mr_sas/mr_sas.c
2136
int rval = 1;
usr/src/uts/common/io/mr_sas/mr_sas.c
2163
rval = 1;
usr/src/uts/common/io/mr_sas/mr_sas.c
2166
rval = 1;
usr/src/uts/common/io/mr_sas/mr_sas.c
2170
rval = 1;
usr/src/uts/common/io/mr_sas/mr_sas.c
2173
rval = -1;
usr/src/uts/common/io/mr_sas/mr_sas.c
2177
return (rval);
usr/src/uts/common/io/mr_sas/mr_sas.c
4154
int rval = 0;
usr/src/uts/common/io/mr_sas/mr_sas.c
4197
rval = mrsas_service_evt(instance, tgt, 0,
usr/src/uts/common/io/mr_sas/mr_sas.c
4201
"tgt id = %d", rval, tgt));
usr/src/uts/common/io/mr_sas/mr_sas.c
4212
rval = mrsas_service_evt(instance,
usr/src/uts/common/io/mr_sas/mr_sas.c
4216
"tgt id = %d index = %d", rval,
usr/src/uts/common/io/mr_sas/mr_sas.c
4223
rval = mrsas_service_evt(instance,
usr/src/uts/common/io/mr_sas/mr_sas.c
4227
"tgt id = %d index = %d", rval,
usr/src/uts/common/io/mr_sas/mr_sas.c
4246
rval = mrsas_service_evt(instance, ddi_get16(
usr/src/uts/common/io/mr_sas/mr_sas.c
4250
"rval = %d tgt id = %d ", rval,
usr/src/uts/common/io/mr_sas/mr_sas.c
4259
rval = mrsas_service_evt(instance,
usr/src/uts/common/io/mr_sas/mr_sas.c
4264
"rval = %d tgt id = %d ", rval,
usr/src/uts/common/io/mr_sas/mr_sas.c
4282
rval = mrsas_service_evt(instance,
usr/src/uts/common/io/mr_sas/mr_sas.c
4287
"rval = %d tgt id = %d ", rval,
usr/src/uts/common/io/mr_sas/mr_sas.c
4295
rval = mrsas_service_evt(instance,
usr/src/uts/common/io/mr_sas/mr_sas.c
4301
" tgt id = %d ", rval,
usr/src/uts/common/io/mr_sas/mr_sas.c
6138
int rval = DDI_SUCCESS;
usr/src/uts/common/io/mr_sas/mr_sas.c
6188
rval = 1;
usr/src/uts/common/io/mr_sas/mr_sas.c
6202
rval = DDI_FAILURE;
usr/src/uts/common/io/mr_sas/mr_sas.c
6225
rval = 1;
usr/src/uts/common/io/mr_sas/mr_sas.c
6235
rval = DDI_FAILURE;
usr/src/uts/common/io/mr_sas/mr_sas.c
6239
return (rval);
usr/src/uts/common/io/mr_sas/mr_sas.c
6249
int rval = DDI_SUCCESS;
usr/src/uts/common/io/mr_sas/mr_sas.c
6276
rval = issue_mfi_dcmd(instance, ioctl, cmd, mode);
usr/src/uts/common/io/mr_sas/mr_sas.c
6279
rval = issue_mfi_smp(instance, ioctl, cmd, mode);
usr/src/uts/common/io/mr_sas/mr_sas.c
6282
rval = issue_mfi_stp(instance, ioctl, cmd, mode);
usr/src/uts/common/io/mr_sas/mr_sas.c
6286
rval = issue_mfi_pthru(instance, ioctl, cmd, mode);
usr/src/uts/common/io/mr_sas/mr_sas.c
6291
rval = DDI_FAILURE;
usr/src/uts/common/io/mr_sas/mr_sas.c
6296
rval = DDI_FAILURE;
usr/src/uts/common/io/mr_sas/mr_sas.c
6304
return (rval);
usr/src/uts/common/io/mr_sas/mr_sas.c
6313
int rval = 0;
usr/src/uts/common/io/mr_sas/mr_sas.c
6315
rval = register_mfi_aen(instance, instance->aen_seq_num,
usr/src/uts/common/io/mr_sas/mr_sas.c
6318
aen->cmd_status = (uint8_t)rval;
usr/src/uts/common/io/mr_sas/mr_sas.c
6320
return (rval);
usr/src/uts/common/io/mr_sas/mr_sas.c
7430
int rval = NDI_SUCCESS;
usr/src/uts/common/io/mr_sas/mr_sas.c
7449
rval = NDI_FAILURE;
usr/src/uts/common/io/mr_sas/mr_sas.c
7455
rval = NDI_FAILURE;
usr/src/uts/common/io/mr_sas/mr_sas.c
7460
rval = mrsas_config_ld(instance, tgt, lun, childp);
usr/src/uts/common/io/mr_sas/mr_sas.c
7462
rval = mrsas_tbolt_config_pd(instance,
usr/src/uts/common/io/mr_sas/mr_sas.c
7465
rval = NDI_FAILURE;
usr/src/uts/common/io/mr_sas/mr_sas.c
7473
rval = mrsas_config_all_devices(instance);
usr/src/uts/common/io/mr_sas/mr_sas.c
7475
rval = NDI_SUCCESS;
usr/src/uts/common/io/mr_sas/mr_sas.c
7480
if (rval == NDI_SUCCESS) {
usr/src/uts/common/io/mr_sas/mr_sas.c
7481
rval = ndi_busop_bus_config(parent, flags, op, arg, childp, 0);
usr/src/uts/common/io/mr_sas/mr_sas.c
7487
rval));
usr/src/uts/common/io/mr_sas/mr_sas.c
7488
return (rval);
usr/src/uts/common/io/mr_sas/mr_sas.c
7494
int rval, tgt;
usr/src/uts/common/io/mr_sas/mr_sas.c
7508
rval = NDI_SUCCESS;
usr/src/uts/common/io/mr_sas/mr_sas.c
7509
return (rval);
usr/src/uts/common/io/mr_sas/mr_sas.c
7562
int rval;
usr/src/uts/common/io/mr_sas/mr_sas.c
7572
rval = mrsas_service_evt(instance, tgt, 0,
usr/src/uts/common/io/mr_sas/mr_sas.c
7576
"tgt id = %d ", rval, tgt));
usr/src/uts/common/io/mr_sas/mr_sas.c
7588
rval = mrsas_config_scsi_device(instance, sd, ldip);
usr/src/uts/common/io/mr_sas/mr_sas.c
7590
rval = NDI_FAILURE;
usr/src/uts/common/io/mr_sas/mr_sas.c
7600
rval));
usr/src/uts/common/io/mr_sas/mr_sas.c
7601
return (rval);
usr/src/uts/common/io/mr_sas/mr_sas.c
7616
int rval;
usr/src/uts/common/io/mr_sas/mr_sas.c
7625
rval = NDI_FAILURE;
usr/src/uts/common/io/mr_sas/mr_sas.c
7634
rval = ndi_devi_alloc(instance->dip, childname, DEVI_SID_NODEID, &ldip);
usr/src/uts/common/io/mr_sas/mr_sas.c
7636
"mr_sas_config_scsi_device: ndi_devi_alloc rval = %x", rval));
usr/src/uts/common/io/mr_sas/mr_sas.c
7637
if (rval == NDI_SUCCESS) {
usr/src/uts/common/io/mr_sas/mr_sas.c
7642
rval = NDI_FAILURE;
usr/src/uts/common/io/mr_sas/mr_sas.c
7649
rval = NDI_FAILURE;
usr/src/uts/common/io/mr_sas/mr_sas.c
7658
rval = NDI_FAILURE;
usr/src/uts/common/io/mr_sas/mr_sas.c
7662
rval = ndi_devi_online(ldip, NDI_ONLINE_ATTACH);
usr/src/uts/common/io/mr_sas/mr_sas.c
7663
if (rval != NDI_SUCCESS) {
usr/src/uts/common/io/mr_sas/mr_sas.c
7681
rval, tgt, lun));
usr/src/uts/common/io/mr_sas/mr_sas.c
7683
return (rval);
usr/src/uts/common/io/mr_sas/mr_sas_tbolt.c
3517
int rval, dtype;
usr/src/uts/common/io/mr_sas/mr_sas_tbolt.c
3528
rval = mrsas_service_evt(instance, tgt, 1,
usr/src/uts/common/io/mr_sas/mr_sas_tbolt.c
3532
"tgt id = %d", rval, tgt));
usr/src/uts/common/io/mr_sas/mr_sas_tbolt.c
3556
rval = mrsas_config_scsi_device(instance, sd, ldip);
usr/src/uts/common/io/mr_sas/mr_sas_tbolt.c
3561
rval = NDI_FAILURE;
usr/src/uts/common/io/mr_sas/mr_sas_tbolt.c
3577
rval = NDI_FAILURE;
usr/src/uts/common/io/mr_sas/mr_sas_tbolt.c
3582
rval));
usr/src/uts/common/io/mr_sas/mr_sas_tbolt.c
3583
return (rval);
usr/src/uts/common/io/mxfe/mxfe.c
1994
int rval;
usr/src/uts/common/io/mxfe/mxfe.c
2004
rval = ddi_dma_alloc_handle(mxfep->mxfe_dip, &mxfe_dma_attr,
usr/src/uts/common/io/mxfe/mxfe.c
2006
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/mxfe/mxfe.c
2012
rval = ddi_dma_mem_alloc(mxfep->mxfe_rxdesc_dmah, size, &mxfe_devattr,
usr/src/uts/common/io/mxfe/mxfe.c
2015
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/mxfe/mxfe.c
2021
rval = ddi_dma_addr_bind_handle(mxfep->mxfe_rxdesc_dmah, NULL, kaddr,
usr/src/uts/common/io/mxfe/mxfe.c
2024
if (rval != DDI_DMA_MAPPED) {
usr/src/uts/common/io/mxfe/mxfe.c
2058
int rval;
usr/src/uts/common/io/mxfe/mxfe.c
2068
rval = ddi_dma_alloc_handle(mxfep->mxfe_dip, &mxfe_dma_attr,
usr/src/uts/common/io/mxfe/mxfe.c
2070
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/mxfe/mxfe.c
2076
rval = ddi_dma_mem_alloc(mxfep->mxfe_txdesc_dmah, size, &mxfe_devattr,
usr/src/uts/common/io/mxfe/mxfe.c
2079
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/mxfe/mxfe.c
2085
rval = ddi_dma_addr_bind_handle(mxfep->mxfe_txdesc_dmah, NULL, kaddr,
usr/src/uts/common/io/mxfe/mxfe.c
2088
if (rval != DDI_DMA_MAPPED) {
usr/src/uts/common/io/nxge/nxge_hio_guest.c
1012
rval = npi_rxdma_cfg_rdc_enable(handle, channel);
usr/src/uts/common/io/nxge/nxge_hio_guest.c
1013
if (rval != NPI_SUCCESS)
usr/src/uts/common/io/nxge/nxge_hio_guest.c
981
npi_status_t rval;
usr/src/uts/common/io/nxge/nxge_ndd.c
75
#define PARAM_OUTOF_RANGE(vptr, eptr, rval, pa) \
usr/src/uts/common/io/nxge/nxge_ndd.c
76
((vptr == eptr) || (rval < pa->minimum) || (rval > pa->maximum))
usr/src/uts/common/io/pcic.c
6084
int *rval)
usr/src/uts/common/io/pcic.c
6088
return (cardbus_ioctl(dev, cmd, arg, mode, cred, rval));
usr/src/uts/common/io/pciex/hotplug/pciehpc.c
3129
pciehpc_slot_get_property(pcie_hp_slot_t *slot_p, uintptr_t arg, uintptr_t rval)
usr/src/uts/common/io/pciex/hotplug/pciehpc.c
3140
!pciehpc_slot_prop_copyin(rval, &result))
usr/src/uts/common/io/pciex/hotplug/pciehpc.c
3237
if (!pciehpc_slot_prop_copyout(rval, &result)) {
usr/src/uts/common/io/pciex/hotplug/pciehpc.c
3253
uintptr_t rval)
usr/src/uts/common/io/pciex/hotplug/pciehpc.c
3263
!pciehpc_slot_prop_copyin(rval, &result))
usr/src/uts/common/io/pciex/hotplug/pciehpc.c
3274
if (!rval) {
usr/src/uts/common/io/pciex/hotplug/pciehpc.c
3301
if (!pciehpc_slot_prop_copyout(rval, &result)) {
usr/src/uts/common/io/pciex/hotplug/pciehpc.c
3387
if (rval != 0) {
usr/src/uts/common/io/pciex/hotplug/pciehpc.c
3389
if (!pciehpc_slot_prop_copyout(rval, &result)) {
usr/src/uts/common/io/pciex/hotplug/pciehpc.c
465
uintptr_t arg, uintptr_t rval);
usr/src/uts/common/io/pciex/hotplug/pciehpc.c
467
uintptr_t arg, uintptr_t rval);
usr/src/uts/common/io/pciex/hotplug/pcishpc.c
364
ddi_hp_property_t *rval)
usr/src/uts/common/io/pciex/hotplug/pcishpc.c
381
copyin(rval, &result, sizeof (ddi_hp_property_t)))
usr/src/uts/common/io/pciex/hotplug/pcishpc.c
389
copyin(rval, &result32, sizeof (ddi_hp_property32_t)))
usr/src/uts/common/io/pciex/hotplug/pcishpc.c
540
if (copyout(&result, rval, sizeof (ddi_hp_property_t))) {
usr/src/uts/common/io/pciex/hotplug/pcishpc.c
551
if (copyout(&result32, rval,
usr/src/uts/common/io/pciex/hotplug/pcishpc.c
569
ddi_hp_property_t *rval)
usr/src/uts/common/io/pciex/hotplug/pcishpc.c
586
if (rval &&
usr/src/uts/common/io/pciex/hotplug/pcishpc.c
587
copyin(rval, &result, sizeof (ddi_hp_property_t)))
usr/src/uts/common/io/pciex/hotplug/pcishpc.c
596
if (rval &&
usr/src/uts/common/io/pciex/hotplug/pcishpc.c
597
copyin(rval, &result32, sizeof (ddi_hp_property32_t)))
usr/src/uts/common/io/pciex/hotplug/pcishpc.c
601
if (rval) {
usr/src/uts/common/io/pciex/hotplug/pcishpc.c
617
if (!rval) {
usr/src/uts/common/io/pciex/hotplug/pcishpc.c
637
if (copyout(&result, rval,
usr/src/uts/common/io/pciex/hotplug/pcishpc.c
650
if (copyout(&result32, rval,
usr/src/uts/common/io/pciex/hotplug/pcishpc.c
721
if (rval) {
usr/src/uts/common/io/pciex/hotplug/pcishpc.c
724
if (copyout(&result, rval, sizeof (ddi_hp_property_t)))
usr/src/uts/common/io/pciex/hotplug/pcishpc.c
730
if (copyout(&result32, rval,
usr/src/uts/common/io/pciex/hotplug/pcishpc.c
80
ddi_hp_property_t *arg, ddi_hp_property_t *rval);
usr/src/uts/common/io/pciex/hotplug/pcishpc.c
82
ddi_hp_property_t *arg, ddi_hp_property_t *rval);
usr/src/uts/common/io/pciex/pcie.c
3290
uint16_t ctl2, rval;
usr/src/uts/common/io/pciex/pcie.c
3307
rval = PCIE_LINKCTL2_TARGET_SPEED_2_5;
usr/src/uts/common/io/pciex/pcie.c
3310
rval = PCIE_LINKCTL2_TARGET_SPEED_5;
usr/src/uts/common/io/pciex/pcie.c
3313
rval = PCIE_LINKCTL2_TARGET_SPEED_8;
usr/src/uts/common/io/pciex/pcie.c
3316
rval = PCIE_LINKCTL2_TARGET_SPEED_16;
usr/src/uts/common/io/pciex/pcie.c
3319
rval = PCIE_LINKCTL2_TARGET_SPEED_32;
usr/src/uts/common/io/pciex/pcie.c
3322
rval = PCIE_LINKCTL2_TARGET_SPEED_64;
usr/src/uts/common/io/pciex/pcie.c
3339
ctl2 |= rval;
usr/src/uts/common/io/pciex/pcie.c
647
int rval;
usr/src/uts/common/io/pciex/pcie.c
654
if ((rval = mod_install(&modlinkage)) != 0) {
usr/src/uts/common/io/pciex/pcie.c
660
return (rval);
usr/src/uts/common/io/pciex/pcie.c
666
int rval;
usr/src/uts/common/io/pciex/pcie.c
668
if ((rval = mod_remove(&modlinkage)) == 0) {
usr/src/uts/common/io/pciex/pcie.c
677
return (rval);
usr/src/uts/common/io/pcn/pcn.c
1577
int rval;
usr/src/uts/common/io/pcn/pcn.c
1587
rval = ddi_dma_alloc_handle(pcnp->pcn_dip, &pcn_dma_attr, DDI_DMA_SLEEP,
usr/src/uts/common/io/pcn/pcn.c
1589
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/pcn/pcn.c
1595
rval = ddi_dma_mem_alloc(pcnp->pcn_txdesc_dmah, size, &pcn_devattr,
usr/src/uts/common/io/pcn/pcn.c
1598
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/pcn/pcn.c
1604
rval = ddi_dma_addr_bind_handle(pcnp->pcn_txdesc_dmah, NULL, kaddr,
usr/src/uts/common/io/pcn/pcn.c
1607
if (rval != DDI_DMA_MAPPED) {
usr/src/uts/common/io/pcn/pcn.c
1634
int rval;
usr/src/uts/common/io/pcn/pcn.c
1644
rval = ddi_dma_alloc_handle(pcnp->pcn_dip, &pcn_dmadesc_attr,
usr/src/uts/common/io/pcn/pcn.c
1646
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/pcn/pcn.c
1652
rval = ddi_dma_mem_alloc(pcnp->pcn_rxdesc_dmah, size, &pcn_devattr,
usr/src/uts/common/io/pcn/pcn.c
1655
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/pcn/pcn.c
1661
rval = ddi_dma_addr_bind_handle(pcnp->pcn_rxdesc_dmah, NULL, kaddr,
usr/src/uts/common/io/pcn/pcn.c
1664
if (rval != DDI_DMA_MAPPED) {
usr/src/uts/common/io/ppm/ppm.c
252
int rval;
usr/src/uts/common/io/ppm/ppm.c
261
rval = DDI_SUCCESS;
usr/src/uts/common/io/ppm/ppm.c
263
rval = DDI_FAILURE;
usr/src/uts/common/io/ppm/ppm.c
265
return (rval);
usr/src/uts/common/io/pshot.c
1058
int rval = DDI_SUCCESS;
usr/src/uts/common/io/pshot.c
1162
rval = pm_busy_component(dip, 0);
usr/src/uts/common/io/pshot.c
1163
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/pshot.c
1189
rval = pm_idle_component(dip, 0);
usr/src/uts/common/io/pshot.c
1190
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/pshot.c
1196
return (rval);
usr/src/uts/common/io/pshot.c
1243
rval = pm_busy_component(dip, 0);
usr/src/uts/common/io/pshot.c
1244
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/pshot.c
1265
rval = pm_idle_component(dip, 0);
usr/src/uts/common/io/pshot.c
1266
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/pshot.c
1290
rval = pm_idle_component(dip, 0);
usr/src/uts/common/io/pshot.c
1291
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/pshot.c
1298
return (rval);
usr/src/uts/common/io/pshot.c
2530
int rval;
usr/src/uts/common/io/pshot.c
2587
rval = pshot_bus_config_test_specials(parent,
usr/src/uts/common/io/pshot.c
2590
if (rval == NDI_SUCCESS) {
usr/src/uts/common/io/pshot.c
2595
rval = pshot_bus_config_setup_nexus(parent,
usr/src/uts/common/io/pshot.c
2598
rval = pshot_bus_config_setup_leaf(parent,
usr/src/uts/common/io/pshot.c
2608
rval = NDI_SUCCESS;
usr/src/uts/common/io/pshot.c
2612
rval = NDI_FAILURE;
usr/src/uts/common/io/pshot.c
2616
if (rval == NDI_SUCCESS)
usr/src/uts/common/io/pshot.c
2617
rval = ndi_busop_bus_config(parent, flags, op, arg, childp, 0);
usr/src/uts/common/io/pshot.c
2624
(rval == NDI_SUCCESS) ? "ok" : "failed");
usr/src/uts/common/io/pshot.c
2626
return (rval);
usr/src/uts/common/io/pshot.c
2634
int rval = NDI_SUCCESS;
usr/src/uts/common/io/pshot.c
2682
rval = NDI_FAILURE;
usr/src/uts/common/io/pshot.c
2685
if (rval == NDI_SUCCESS)
usr/src/uts/common/io/pshot.c
2686
rval = ndi_busop_bus_unconfig(parent, flags, op, arg);
usr/src/uts/common/io/pshot.c
2693
(rval == NDI_SUCCESS) ? "ok" : "failed");
usr/src/uts/common/io/pshot.c
2695
return (rval);
usr/src/uts/common/io/pshot.c
2884
int rval;
usr/src/uts/common/io/pshot.c
2918
rval = ndi_devi_bind_driver(child, 0);
usr/src/uts/common/io/pshot.c
2919
if (rval != NDI_SUCCESS) {
usr/src/uts/common/io/pshot.c
2944
int rval;
usr/src/uts/common/io/pshot.c
3013
rval = ndi_devi_bind_driver(child, 0);
usr/src/uts/common/io/pshot.c
3014
if (rval != NDI_SUCCESS) {
usr/src/uts/common/io/pshot.c
3540
int i, rval;
usr/src/uts/common/io/pshot.c
3550
rval = ndi_event_bind_set(hdl, &events, NDI_SLEEP);
usr/src/uts/common/io/pshot.c
3551
cmn_err(CE_CONT, "pshot: ndi_event_bind_set rval = %d\n", rval);
usr/src/uts/common/io/pshot.c
3555
rval = ndi_event_bind_set(hdl, &events, NDI_SLEEP);
usr/src/uts/common/io/pshot.c
3556
cmn_err(CE_CONT, "pshot: ndi_event_bind_set rval = %d\n", rval);
usr/src/uts/common/io/pshot.c
3560
rval = ndi_event_unbind_set(hdl, &events, NDI_SLEEP);
usr/src/uts/common/io/pshot.c
3561
cmn_err(CE_CONT, "pshot: ndi_event_unbind_set rval = %d\n", rval);
usr/src/uts/common/io/pshot.c
3568
rval = ndi_event_bind_set(hdl, &events, NDI_SLEEP);
usr/src/uts/common/io/pshot.c
3569
cmn_err(CE_CONT, "pshot: ndi_event_bind_set rval = %d\n", rval);
usr/src/uts/common/io/pshot.c
3575
rval = ndi_event_bind_set(hdl, &events, NDI_SLEEP);
usr/src/uts/common/io/pshot.c
3576
cmn_err(CE_CONT, "pshot: ndi_event_bind_set rval = %d\n", rval);
usr/src/uts/common/io/pshot.c
3582
rval = ndi_event_unbind_set(hdl, &events, NDI_SLEEP);
usr/src/uts/common/io/pshot.c
3583
cmn_err(CE_CONT, "pshot: ndi_event_bind_set rval = %d\n", rval);
usr/src/uts/common/io/pshot.c
3589
rval = ndi_event_bind_set(hdl, &events, NDI_SLEEP);
usr/src/uts/common/io/pshot.c
3590
cmn_err(CE_CONT, "pshot: ndi_event_bind_set rval = %d\n", rval);
usr/src/uts/common/io/pshot.c
3596
rval = ndi_event_unbind_set(hdl, &events, NDI_SLEEP);
usr/src/uts/common/io/pshot.c
3597
cmn_err(CE_CONT, "pshot: ndi_event_bind_set rval = %d\n", rval);
usr/src/uts/common/io/pshot.c
3603
rval = ndi_event_bind_set(hdl, &events, NDI_SLEEP);
usr/src/uts/common/io/pshot.c
3604
cmn_err(CE_CONT, "pshot: ndi_event_bind_set rval = %d\n", rval);
usr/src/uts/common/io/pshot.c
3610
rval = ndi_event_unbind_set(hdl, &events, NDI_SLEEP);
usr/src/uts/common/io/pshot.c
3611
cmn_err(CE_CONT, "pshot: ndi_event_unbind_set rval = %d\n", rval);
usr/src/uts/common/io/pshot.c
3617
rval = ndi_event_unbind_set(hdl, &events, NDI_SLEEP);
usr/src/uts/common/io/pshot.c
3618
cmn_err(CE_CONT, "pshot: ndi_event_unbind_set rval = %d\n", rval);
usr/src/uts/common/io/pshot.c
3624
rval = ndi_event_unbind_set(hdl, &events, NDI_SLEEP);
usr/src/uts/common/io/pshot.c
3625
cmn_err(CE_CONT, "pshot: ndi_event_unbind_set rval = %d\n", rval);
usr/src/uts/common/io/pshot.c
3631
rval = ndi_event_bind_set(hdl, &events, NDI_SLEEP);
usr/src/uts/common/io/pshot.c
3632
cmn_err(CE_CONT, "pshot: ndi_event_bind_set rval = %d\n", rval);
usr/src/uts/common/io/pshot.c
3638
rval = ndi_event_unbind_set(hdl, &events, NDI_SLEEP);
usr/src/uts/common/io/pshot.c
3639
cmn_err(CE_CONT, "pshot: ndi_event_unbind_set rval = %d\n", rval);
usr/src/uts/common/io/pshot.c
3645
rval = ndi_event_unbind_set(hdl, &events, NDI_SLEEP);
usr/src/uts/common/io/pshot.c
3646
cmn_err(CE_CONT, "pshot: ndi_event_unbind_set rval = %d\n", rval);
usr/src/uts/common/io/pshot.c
3652
rval = ndi_event_unbind_set(hdl, &events, NDI_SLEEP);
usr/src/uts/common/io/pshot.c
3653
cmn_err(CE_CONT, "pshot: ndi_event_unbind_set rval = %d\n", rval);
usr/src/uts/common/io/pshot.c
3659
rval = ndi_event_unbind_set(hdl, &events, NDI_SLEEP);
usr/src/uts/common/io/pshot.c
3660
cmn_err(CE_CONT, "pshot: ndi_event_unbind_set rval = %d\n", rval);
usr/src/uts/common/io/pshot.c
3666
rval = ndi_event_unbind_set(hdl, &events, NDI_SLEEP);
usr/src/uts/common/io/pshot.c
3667
cmn_err(CE_CONT, "pshot: ndi_event_unbind_set rval = %d\n", rval);
usr/src/uts/common/io/pshot.c
3673
rval = ndi_event_unbind_set(hdl, &events, NDI_SLEEP);
usr/src/uts/common/io/pshot.c
3674
cmn_err(CE_CONT, "pshot: ndi_event_unbind_set rval = %d\n", rval);
usr/src/uts/common/io/pshot.c
3681
rval = ndi_event_bind_set(hdl, &events, NDI_SLEEP);
usr/src/uts/common/io/pshot.c
3682
cmn_err(CE_CONT, "pshot: ndi_event_bind_set rval = %d\n", rval);
usr/src/uts/common/io/pshot.c
3687
rval = ndi_event_add_callback(hdl, pshot->dip,
usr/src/uts/common/io/pshot.c
3693
ASSERT(rval == NDI_SUCCESS);
usr/src/uts/common/io/pshot.c
3701
rval = ndi_event_run_callbacks(hdl, pshot->dip, cookie,
usr/src/uts/common/io/pshot.c
3705
i, rval);
usr/src/uts/common/io/pshot.c
3714
rval = ndi_event_run_callbacks(hdl,
usr/src/uts/common/io/pshot.c
3718
i, rval);
usr/src/uts/common/io/pshot.c
3735
rval = ndi_event_free_hdl(hdl);
usr/src/uts/common/io/pshot.c
3737
ASSERT(rval == NDI_SUCCESS);
usr/src/uts/common/io/pshot.c
3745
int rval;
usr/src/uts/common/io/pshot.c
3757
rval = ndi_post_event(pshot->dip, pshot->dip, cookie, NULL);
usr/src/uts/common/io/pshot.c
3760
pshot->instance, rval);
usr/src/uts/common/io/pshot.c
510
int rval, i;
usr/src/uts/common/io/pshot.c
599
rval = ddi_get_eventcookie(devi,
usr/src/uts/common/io/pshot.c
607
pshot_register_events[i].event_name, rval);
usr/src/uts/common/io/pshot.c
609
if (rval == DDI_SUCCESS) {
usr/src/uts/common/io/pshot.c
610
rval = ddi_add_event_handler(devi,
usr/src/uts/common/io/pshot.c
621
rval);
usr/src/uts/common/io/pshot.c
846
int i, rval;
usr/src/uts/common/io/pshot.c
909
rval = ddi_remove_event_handler(
usr/src/uts/common/io/pshot.c
911
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/pshot.c
918
rval = ddi_remove_event_handler(
usr/src/uts/common/io/pshot.c
920
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/pshot.c
924
rval = ndi_event_free_hdl(pshot->ndi_event_hdl);
usr/src/uts/common/io/pshot.c
925
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/pshot.c
950
rval = DDI_FAILURE;
usr/src/uts/common/io/pshot.c
952
rval = DDI_SUCCESS;
usr/src/uts/common/io/pshot.c
977
rval = DDI_FAILURE;
usr/src/uts/common/io/pshot.c
981
return (rval);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2023
u32 val, rval;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2136
rval = ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2140
if (rval != val) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2150
rval, val);
usr/src/uts/common/io/rsm/rsm.c
7752
int rval = DDI_SUCCESS;
usr/src/uts/common/io/rsm/rsm.c
7772
rval = RSMERR_INTERNAL_ERROR;
usr/src/uts/common/io/rsm/rsm.c
7785
rval = RSMERR_INTERNAL_ERROR;
usr/src/uts/common/io/rsm/rsm.c
7792
rval = EINVAL;
usr/src/uts/common/io/rsm/rsm.c
7798
"rsmaddr_ioctl done: %d\n", rval));
usr/src/uts/common/io/rsm/rsm.c
7799
return (rval);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1063
boolean_t rval = B_TRUE;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1080
rval = do_path_up(path, flags);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1084
return (rval);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1107
boolean_t rval = B_TRUE;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1159
rval = B_FALSE;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1164
return (rval);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1543
boolean_t rval;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1575
rval = rsmka_do_path_active(path, flags);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1578
rval = B_TRUE;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1582
return (rval);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2664
int rval;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2683
rval = adapter->rsmpi_ops->rsm_sendq_create(adapter->rsmpi_handle,
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2689
if (rval == RSM_SUCCESS) {
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2699
rval));
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2702
return (rval);
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
1438
int rval = SATA_SUCCESS, rval_init;
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
1500
rval = SATA_FAILURE;
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
1601
rval = SATA_FAILURE;
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
1609
rval = SATA_FAILURE;
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
1613
return (rval);
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
1896
int rval;
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
1907
if ((rval = ahci_deliver_satapkt(ahci_ctlp, ahci_portp,
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
1910
return (rval);
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
1934
timeout_tags = (0x1 << rval);
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
1946
if ((rval = ahci_deliver_satapkt(ahci_ctlp, ahci_portp,
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
1948
return (rval);
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
1956
ASSERT(rval == 0);
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
4419
int rval;
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
4510
rval = ahci_do_sync_start(ahci_ctlp, ahci_portp, &pmult_addr, spkt);
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
4512
if (rval == AHCI_SUCCESS &&
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
4527
rval = AHCI_FAILURE;
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
4537
return (rval);
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
5055
int rval = AHCI_FAILURE;
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
5273
rval = AHCI_SUCCESS;
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
5277
rval == AHCI_SUCCESS ? "succeed" : "failed",
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
5280
return (rval);
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
5701
int rval = AHCI_SUCCESS;
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
5774
rval = AHCI_FAILURE;
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
5787
return (rval);
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
5809
int rval;
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
5849
rval = ahci_software_reset(ahci_ctlp, ahci_portp, &dev_addr);
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
5850
if (rval != AHCI_SUCCESS) {
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
5860
rval = ahci_software_reset(ahci_ctlp, ahci_portp,
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
5864
if (rval != AHCI_SUCCESS) {
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
8533
int rval;
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
8553
rval = ahci_put_port_into_notrunning_state(ahci_ctlp, ahci_portp,
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
8555
if (rval != AHCI_SUCCESS)
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
8587
rval = ahci_port_reset(ahci_ctlp, ahci_portp, &addr_port);
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
8591
if (rval != AHCI_SUCCESS)
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
8642
return (rval);
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
8657
return (rval);
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
8667
return (rval);
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
8685
return (rval);
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
8777
return (rval);
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
9155
int rval;
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
9215
rval = ddi_dma_sync(buf_dma_handle, 0, 0,
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
9217
if (rval == DDI_SUCCESS) {
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
9406
int rval;
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
9517
rval = ahci_restart_port_wait_till_ready(ahci_ctlp, ahci_portp,
usr/src/uts/common/io/sata/adapters/ahci/ahci.c
9522
if (rval == AHCI_SUCCESS)
usr/src/uts/common/io/sata/adapters/nv_sata/nv_sata.c
6645
int rval = NV_SUCCESS;
usr/src/uts/common/io/sata/adapters/nv_sata/nv_sata.c
6675
rval = NV_FAILURE;
usr/src/uts/common/io/sata/adapters/nv_sata/nv_sata.c
6700
if (rval == NV_FAILURE)
usr/src/uts/common/io/sata/adapters/nv_sata/nv_sata.c
6701
return (rval);
usr/src/uts/common/io/sata/adapters/nv_sata/nv_sata.c
6729
return (rval);
usr/src/uts/common/io/sata/adapters/si3124/si3124.c
1000
return (rval);
usr/src/uts/common/io/sata/adapters/si3124/si3124.c
916
int rval = DDI_SUCCESS;
usr/src/uts/common/io/sata/adapters/si3124/si3124.c
994
rval = DDI_FAILURE;
usr/src/uts/common/io/sata/impl/sata.c
10046
int rval = 0;
usr/src/uts/common/io/sata/impl/sata.c
10055
rval = sata_read_log_ext(sata_hba_inst, sdinfo, DEVICE_STATS_LOG,
usr/src/uts/common/io/sata/impl/sata.c
10057
if (rval == -1)
usr/src/uts/common/io/sata/impl/sata.c
10067
rval = -1;
usr/src/uts/common/io/sata/impl/sata.c
10081
return ((rval < 0) ? -1 : log_param_size(lpp, buf));
usr/src/uts/common/io/sata/impl/sata.c
10107
int rval;
usr/src/uts/common/io/sata/impl/sata.c
10115
rval = sata_read_log_ext(sata_hba_inst, sdinfo, DEVICE_STATS_LOG,
usr/src/uts/common/io/sata/impl/sata.c
10117
if (rval == -1) {
usr/src/uts/common/io/sata/impl/sata.c
10333
int rval, reason;
usr/src/uts/common/io/sata/impl/sata.c
10339
if (((rval = sata_txlt_generic_pkt_info(spx, &reason, 0)) !=
usr/src/uts/common/io/sata/impl/sata.c
10342
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
10476
if (sata_hba_start(spx, &rval) != 0) {
usr/src/uts/common/io/sata/impl/sata.c
10479
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
10515
int rval;
usr/src/uts/common/io/sata/impl/sata.c
10534
rval = ddi_dma_sync(
usr/src/uts/common/io/sata/impl/sata.c
10537
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/sata/impl/sata.c
10880
int rval;
usr/src/uts/common/io/sata/impl/sata.c
10934
rval = SATA_FAILURE;
usr/src/uts/common/io/sata/impl/sata.c
10955
if (sata_hba_start(spx, &rval) != 0) {
usr/src/uts/common/io/sata/impl/sata.c
10959
"Packet not accepted for execution - ret: %02x", rval);
usr/src/uts/common/io/sata/impl/sata.c
10961
rval = SATA_FAILURE;
usr/src/uts/common/io/sata/impl/sata.c
10969
"Packet completed successfully - ret: %02x", rval);
usr/src/uts/common/io/sata/impl/sata.c
10975
rval = ddi_dma_sync(spx->txlt_buf_dma_handle, 0, 0,
usr/src/uts/common/io/sata/impl/sata.c
10977
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/sata/impl/sata.c
10982
rval = SATA_FAILURE;
usr/src/uts/common/io/sata/impl/sata.c
10994
rval = SATA_SUCCESS;
usr/src/uts/common/io/sata/impl/sata.c
11000
rval = SATA_FAILURE;
usr/src/uts/common/io/sata/impl/sata.c
11062
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
11086
int rval;
usr/src/uts/common/io/sata/impl/sata.c
11161
if (sata_hba_start(spx, &rval) != 0) {
usr/src/uts/common/io/sata/impl/sata.c
11165
"Packet not accepted for execution - ret: %02x", rval);
usr/src/uts/common/io/sata/impl/sata.c
11176
rval = ddi_dma_sync(spx->txlt_buf_dma_handle, 0, 0,
usr/src/uts/common/io/sata/impl/sata.c
11178
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/sata/impl/sata.c
11368
int rval;
usr/src/uts/common/io/sata/impl/sata.c
11416
rval = (*SATA_PROBE_PORT_FUNC(sata_hba_inst))
usr/src/uts/common/io/sata/impl/sata.c
11421
if (rval != SATA_SUCCESS) {
usr/src/uts/common/io/sata/impl/sata.c
11506
int rval;
usr/src/uts/common/io/sata/impl/sata.c
11521
rval = (*SATA_PROBE_PORT_FUNC(sata_hba_inst))
usr/src/uts/common/io/sata/impl/sata.c
11527
if (rval != SATA_SUCCESS) {
usr/src/uts/common/io/sata/impl/sata.c
11566
rval = sata_add_device(dip, sata_hba_inst, &sata_device);
usr/src/uts/common/io/sata/impl/sata.c
11568
if (rval != SATA_SUCCESS) {
usr/src/uts/common/io/sata/impl/sata.c
11609
int rval;
usr/src/uts/common/io/sata/impl/sata.c
11632
rval = sata_probe_device(sata_hba_inst, sata_device);
usr/src/uts/common/io/sata/impl/sata.c
11633
if (rval != SATA_SUCCESS ||
usr/src/uts/common/io/sata/impl/sata.c
11663
rval = sata_initialize_device(sata_hba_inst,
usr/src/uts/common/io/sata/impl/sata.c
11666
if (rval == SATA_RETRY)
usr/src/uts/common/io/sata/impl/sata.c
11701
rval = sata_probe_device(sata_hba_inst, sata_device);
usr/src/uts/common/io/sata/impl/sata.c
11702
if (rval != SATA_SUCCESS ||
usr/src/uts/common/io/sata/impl/sata.c
11732
rval = sata_initialize_device(sata_hba_inst,
usr/src/uts/common/io/sata/impl/sata.c
11735
if (rval == SATA_RETRY)
usr/src/uts/common/io/sata/impl/sata.c
11853
int rval;
usr/src/uts/common/io/sata/impl/sata.c
11944
rval = ndi_prop_update_string(DDI_DEV_T_NONE, cdip,
usr/src/uts/common/io/sata/impl/sata.c
11947
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/sata/impl/sata.c
11949
"updating device_type prop failed %d", rval));
usr/src/uts/common/io/sata/impl/sata.c
11956
rval = ndi_prop_update_int(DDI_DEV_T_NONE, cdip, "target", target);
usr/src/uts/common/io/sata/impl/sata.c
11957
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/sata/impl/sata.c
11959
"updating target prop failed %d", rval));
usr/src/uts/common/io/sata/impl/sata.c
11962
rval = ndi_prop_update_int(DDI_DEV_T_NONE, cdip, "lun", 0);
usr/src/uts/common/io/sata/impl/sata.c
11963
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/sata/impl/sata.c
11965
"updating target prop failed %d", rval));
usr/src/uts/common/io/sata/impl/sata.c
11973
rval = ndi_prop_update_string(DDI_DEV_T_NONE, cdip,
usr/src/uts/common/io/sata/impl/sata.c
11975
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/sata/impl/sata.c
11978
"property could not be created: %d", rval));
usr/src/uts/common/io/sata/impl/sata.c
12009
rval = ndi_devi_online(cdip, NDI_ONLINE_ATTACH);
usr/src/uts/common/io/sata/impl/sata.c
12013
if (rval == NDI_SUCCESS)
usr/src/uts/common/io/sata/impl/sata.c
12022
rval = ndi_devi_free(cdip);
usr/src/uts/common/io/sata/impl/sata.c
12023
if (rval != NDI_SUCCESS) {
usr/src/uts/common/io/sata/impl/sata.c
12025
"node removal failed %d", rval));
usr/src/uts/common/io/sata/impl/sata.c
12562
int rval;
usr/src/uts/common/io/sata/impl/sata.c
12599
rval = (*SATA_PROBE_PORT_FUNC(sata_hba_inst))
usr/src/uts/common/io/sata/impl/sata.c
12603
if (rval == SATA_FAILURE) {
usr/src/uts/common/io/sata/impl/sata.c
12611
} else if (rval == SATA_RETRY) {
usr/src/uts/common/io/sata/impl/sata.c
12762
rval = sata_probe_device(sata_hba_inst, sata_device);
usr/src/uts/common/io/sata/impl/sata.c
12765
if (rval == SATA_SUCCESS) {
usr/src/uts/common/io/sata/impl/sata.c
12777
rval = sata_initialize_device(sata_hba_inst, sdinfo);
usr/src/uts/common/io/sata/impl/sata.c
12779
if (rval == SATA_SUCCESS)
usr/src/uts/common/io/sata/impl/sata.c
12780
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
12846
int rval;
usr/src/uts/common/io/sata/impl/sata.c
12876
rval = (*SATA_PROBE_PORT_FUNC(sata_hba_inst))
usr/src/uts/common/io/sata/impl/sata.c
12880
if (rval != SATA_SUCCESS ||
usr/src/uts/common/io/sata/impl/sata.c
13065
int rval;
usr/src/uts/common/io/sata/impl/sata.c
13073
rval = sata_set_drive_features(sata_hba_inst, sdinfo, 0);
usr/src/uts/common/io/sata/impl/sata.c
13095
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
13215
int cport, pmport, qual, rval;
usr/src/uts/common/io/sata/impl/sata.c
13217
rval = -1; /* Invalid address */
usr/src/uts/common/io/sata/impl/sata.c
13240
rval = 1; /* Valid sata address */
usr/src/uts/common/io/sata/impl/sata.c
13251
rval = 2;
usr/src/uts/common/io/sata/impl/sata.c
13257
rval = -1;
usr/src/uts/common/io/sata/impl/sata.c
13264
rval = -1;
usr/src/uts/common/io/sata/impl/sata.c
13277
rval = 2;
usr/src/uts/common/io/sata/impl/sata.c
13283
rval = -1;
usr/src/uts/common/io/sata/impl/sata.c
13288
rval = -1;
usr/src/uts/common/io/sata/impl/sata.c
13300
if (rval > 0) {
usr/src/uts/common/io/sata/impl/sata.c
13305
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
13371
int rval;
usr/src/uts/common/io/sata/impl/sata.c
13413
rval = sata_identify_device(sata_hba_inst, &new_sdinfo);
usr/src/uts/common/io/sata/impl/sata.c
13414
if (rval == SATA_RETRY) {
usr/src/uts/common/io/sata/impl/sata.c
13422
rval = sata_identify_device(sata_hba_inst, &new_sdinfo);
usr/src/uts/common/io/sata/impl/sata.c
13425
if (rval == SATA_SUCCESS) {
usr/src/uts/common/io/sata/impl/sata.c
13498
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
13581
int rval;
usr/src/uts/common/io/sata/impl/sata.c
13584
if ((rval = sata_fetch_device_identify_data(sata_hba_inst,
usr/src/uts/common/io/sata/impl/sata.c
13623
rval = SATA_FAILURE;
usr/src/uts/common/io/sata/impl/sata.c
13652
rval = SATA_FAILURE;
usr/src/uts/common/io/sata/impl/sata.c
13667
rval = SATA_FAILURE;
usr/src/uts/common/io/sata/impl/sata.c
13677
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
14173
int rval;
usr/src/uts/common/io/sata/impl/sata.c
14192
rval = ddi_dma_alloc_handle(SATA_DIP(spx->txlt_sata_hba_inst),
usr/src/uts/common/io/sata/impl/sata.c
14195
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/sata/impl/sata.c
14198
rval));
usr/src/uts/common/io/sata/impl/sata.c
14199
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
14223
rval = ddi_dma_buf_bind_handle(
usr/src/uts/common/io/sata/impl/sata.c
14251
rval = ddi_dma_mem_alloc(
usr/src/uts/common/io/sata/impl/sata.c
14261
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/sata/impl/sata.c
14272
"buf dma mem alloc failed %x\n", rval);
usr/src/uts/common/io/sata/impl/sata.c
14273
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
14304
rval = ddi_dma_addr_bind_handle(
usr/src/uts/common/io/sata/impl/sata.c
14313
switch (rval) {
usr/src/uts/common/io/sata/impl/sata.c
14366
"failed %x\n", rval));
usr/src/uts/common/io/sata/impl/sata.c
14367
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
14641
int rval;
usr/src/uts/common/io/sata/impl/sata.c
14699
rval = (*SATA_START_FUNC(sata_hba_inst))(SATA_DIP(sata_hba_inst), spkt);
usr/src/uts/common/io/sata/impl/sata.c
14702
sata_inject_pkt_fault(spkt, &rval, sata_fault_type);
usr/src/uts/common/io/sata/impl/sata.c
14705
if (rval == SATA_TRAN_ACCEPTED &&
usr/src/uts/common/io/sata/impl/sata.c
14708
rval = ddi_dma_sync(spx->txlt_buf_dma_handle, 0, 0,
usr/src/uts/common/io/sata/impl/sata.c
14710
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/sata/impl/sata.c
14714
rval = SATA_RETRY;
usr/src/uts/common/io/sata/impl/sata.c
14725
rval = SATA_RETRY; /* may retry later */
usr/src/uts/common/io/sata/impl/sata.c
14804
rval = SATA_SUCCESS;
usr/src/uts/common/io/sata/impl/sata.c
14809
if (rval == SATA_TRAN_BUSY || rval == SATA_TRAN_QUEUE_FULL) {
usr/src/uts/common/io/sata/impl/sata.c
14810
rval = SATA_RETRY; /* may retry later */
usr/src/uts/common/io/sata/impl/sata.c
14811
} else if (rval == SATA_TRAN_ACCEPTED) {
usr/src/uts/common/io/sata/impl/sata.c
14816
rval = SATA_RETRY; /* may retry later */
usr/src/uts/common/io/sata/impl/sata.c
14818
rval = SATA_FAILURE;
usr/src/uts/common/io/sata/impl/sata.c
1482
int rval = SATA_SUCCESS;
usr/src/uts/common/io/sata/impl/sata.c
14820
rval = SATA_FAILURE;
usr/src/uts/common/io/sata/impl/sata.c
14829
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
14854
int rval = SATA_SUCCESS;
usr/src/uts/common/io/sata/impl/sata.c
14945
rval = SATA_FAILURE;
usr/src/uts/common/io/sata/impl/sata.c
14971
rval = SATA_FAILURE;
usr/src/uts/common/io/sata/impl/sata.c
14980
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
15004
int rval = SATA_SUCCESS;
usr/src/uts/common/io/sata/impl/sata.c
15022
rval = SATA_FAILURE;
usr/src/uts/common/io/sata/impl/sata.c
15048
sata_inject_pkt_fault(spkt, &rval, sata_fault_type);
usr/src/uts/common/io/sata/impl/sata.c
15069
rval = SATA_RETRY;
usr/src/uts/common/io/sata/impl/sata.c
15076
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
15095
int rval = SATA_SUCCESS;
usr/src/uts/common/io/sata/impl/sata.c
15107
rval = SATA_FAILURE;
usr/src/uts/common/io/sata/impl/sata.c
15144
rval = SATA_FAILURE;
usr/src/uts/common/io/sata/impl/sata.c
15151
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
15388
int rval = SATA_SUCCESS;
usr/src/uts/common/io/sata/impl/sata.c
15413
rval = (*SATA_PROBE_PORT_FUNC(sata_hba_inst))
usr/src/uts/common/io/sata/impl/sata.c
15427
if (rval != SATA_SUCCESS ||
usr/src/uts/common/io/sata/impl/sata.c
15472
rval = (*SATA_PORT_DEACTIVATE_FUNC(sata_hba_inst))
usr/src/uts/common/io/sata/impl/sata.c
15480
if (rval != SATA_SUCCESS &&
usr/src/uts/common/io/sata/impl/sata.c
15500
if (rval != SATA_SUCCESS ||
usr/src/uts/common/io/sata/impl/sata.c
15546
if (rval != SATA_SUCCESS ||
usr/src/uts/common/io/sata/impl/sata.c
15594
rval = (*SATA_PORT_DEACTIVATE_FUNC(sata_hba_inst))
usr/src/uts/common/io/sata/impl/sata.c
15608
if (rval != SATA_SUCCESS &&
usr/src/uts/common/io/sata/impl/sata.c
15634
if (rval != SATA_SUCCESS &&
usr/src/uts/common/io/sata/impl/sata.c
15881
int rval;
usr/src/uts/common/io/sata/impl/sata.c
15893
rval = (*SATA_PROBE_PORT_FUNC(sata_hba_inst))
usr/src/uts/common/io/sata/impl/sata.c
15901
if (rval != SATA_SUCCESS ||
usr/src/uts/common/io/sata/impl/sata.c
15914
if (rval != SATA_SUCCESS ||
usr/src/uts/common/io/sata/impl/sata.c
16174
int rval, rv = 0;
usr/src/uts/common/io/sata/impl/sata.c
16242
rval = (*SATA_PORT_DEACTIVATE_FUNC(sata_hba_inst))
usr/src/uts/common/io/sata/impl/sata.c
16250
if (rval != SATA_SUCCESS) {
usr/src/uts/common/io/sata/impl/sata.c
16359
rval = (*SATA_PORT_DEACTIVATE_FUNC(sata_hba_inst))
usr/src/uts/common/io/sata/impl/sata.c
16372
if (rval != SATA_SUCCESS) {
usr/src/uts/common/io/sata/impl/sata.c
16391
if (rval != SATA_SUCCESS) {
usr/src/uts/common/io/sata/impl/sata.c
17358
int rval;
usr/src/uts/common/io/sata/impl/sata.c
17383
if ((rval = ddi_devid_init(dip, DEVID_ATA_SERIAL,
usr/src/uts/common/io/sata/impl/sata.c
17385
rval = ddi_devid_register(dip, devid);
usr/src/uts/common/io/sata/impl/sata.c
17393
if (rval != DDI_SUCCESS)
usr/src/uts/common/io/sata/impl/sata.c
17465
int rval = SATA_SUCCESS;
usr/src/uts/common/io/sata/impl/sata.c
17510
rval = SATA_FAILURE;
usr/src/uts/common/io/sata/impl/sata.c
17524
rval = SATA_FAILURE;
usr/src/uts/common/io/sata/impl/sata.c
17575
if (rval != SATA_FAILURE && rval_set != SATA_SUCCESS)
usr/src/uts/common/io/sata/impl/sata.c
17576
rval = rval_set;
usr/src/uts/common/io/sata/impl/sata.c
17601
if (rval != SATA_FAILURE && rval_set != SATA_SUCCESS)
usr/src/uts/common/io/sata/impl/sata.c
17602
rval = rval_set;
usr/src/uts/common/io/sata/impl/sata.c
17605
if (rval != SATA_SUCCESS)
usr/src/uts/common/io/sata/impl/sata.c
17619
rval = SATA_FAILURE;
usr/src/uts/common/io/sata/impl/sata.c
17624
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
17645
int rval;
usr/src/uts/common/io/sata/impl/sata.c
17697
rval = -1;
usr/src/uts/common/io/sata/impl/sata.c
17702
rval = -1;
usr/src/uts/common/io/sata/impl/sata.c
17706
rval = -1;
usr/src/uts/common/io/sata/impl/sata.c
17711
rval = 0;
usr/src/uts/common/io/sata/impl/sata.c
17714
rval = 1;
usr/src/uts/common/io/sata/impl/sata.c
17716
rval = -1;
usr/src/uts/common/io/sata/impl/sata.c
17725
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
17742
int rval = 0;
usr/src/uts/common/io/sata/impl/sata.c
17808
rval = -1;
usr/src/uts/common/io/sata/impl/sata.c
17814
rval = ddi_dma_sync(spx->txlt_buf_dma_handle, 0, 0,
usr/src/uts/common/io/sata/impl/sata.c
17816
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/sata/impl/sata.c
17820
rval = -1;
usr/src/uts/common/io/sata/impl/sata.c
17834
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
17851
int rval;
usr/src/uts/common/io/sata/impl/sata.c
17902
rval = (*SATA_START_FUNC(sata_hba_inst))(dip, spkt);
usr/src/uts/common/io/sata/impl/sata.c
17905
if (rval != SATA_TRAN_ACCEPTED ||
usr/src/uts/common/io/sata/impl/sata.c
17907
rval = -1;
usr/src/uts/common/io/sata/impl/sata.c
17912
rval = ddi_dma_sync(spx->txlt_buf_dma_handle, 0, 0,
usr/src/uts/common/io/sata/impl/sata.c
17914
ASSERT3S(rval, ==, DDI_SUCCESS);
usr/src/uts/common/io/sata/impl/sata.c
17917
rval = -1;
usr/src/uts/common/io/sata/impl/sata.c
17922
rval = 0;
usr/src/uts/common/io/sata/impl/sata.c
17930
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
17966
int rval;
usr/src/uts/common/io/sata/impl/sata.c
18031
rval = -1;
usr/src/uts/common/io/sata/impl/sata.c
18037
rval = ddi_dma_sync(spx->txlt_buf_dma_handle, 0, 0,
usr/src/uts/common/io/sata/impl/sata.c
18039
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/sata/impl/sata.c
18043
rval = -1;
usr/src/uts/common/io/sata/impl/sata.c
18049
rval = 0;
usr/src/uts/common/io/sata/impl/sata.c
18058
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
18078
int rval;
usr/src/uts/common/io/sata/impl/sata.c
18139
rval = -1;
usr/src/uts/common/io/sata/impl/sata.c
18146
rval = ddi_dma_sync(spx->txlt_buf_dma_handle, 0, 0,
usr/src/uts/common/io/sata/impl/sata.c
18148
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/sata/impl/sata.c
18152
rval = -1;
usr/src/uts/common/io/sata/impl/sata.c
18157
rval = 0;
usr/src/uts/common/io/sata/impl/sata.c
18166
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
1830
rval = (*sata_tran->sata_tran_ioctl)(mydip, cmd, arg);
usr/src/uts/common/io/sata/impl/sata.c
1831
if (rval != 0) {
usr/src/uts/common/io/sata/impl/sata.c
1834
rv = rval;
usr/src/uts/common/io/sata/impl/sata.c
19138
int rval;
usr/src/uts/common/io/sata/impl/sata.c
19195
rval = (*SATA_PROBE_PORT_FUNC(sata_hba_inst))
usr/src/uts/common/io/sata/impl/sata.c
19198
if (rval != SATA_SUCCESS) {
usr/src/uts/common/io/sata/impl/sata.c
19648
int rval;
usr/src/uts/common/io/sata/impl/sata.c
19716
rval = (*SATA_PROBE_PORT_FUNC(sata_hba_inst))
usr/src/uts/common/io/sata/impl/sata.c
19721
if (rval != SATA_SUCCESS) {
usr/src/uts/common/io/sata/impl/sata.c
19789
rval = (*SATA_PROBE_PORT_FUNC(sata_hba_inst))
usr/src/uts/common/io/sata/impl/sata.c
19792
if (rval == SATA_SUCCESS &&
usr/src/uts/common/io/sata/impl/sata.c
19899
int rval;
usr/src/uts/common/io/sata/impl/sata.c
19932
rval = (*SATA_PROBE_PORT_FUNC(sata_hba_inst))
usr/src/uts/common/io/sata/impl/sata.c
19936
if (rval != SATA_SUCCESS) {
usr/src/uts/common/io/sata/impl/sata.c
20105
int rval;
usr/src/uts/common/io/sata/impl/sata.c
20139
rval = (*SATA_PROBE_PORT_FUNC(sata_hba_inst))
usr/src/uts/common/io/sata/impl/sata.c
20144
if (rval != SATA_SUCCESS) {
usr/src/uts/common/io/sata/impl/sata.c
20329
int rval;
usr/src/uts/common/io/sata/impl/sata.c
20355
rval = (*SATA_PROBE_PORT_FUNC(sata_hba_inst))
usr/src/uts/common/io/sata/impl/sata.c
20359
if (rval != SATA_SUCCESS) {
usr/src/uts/common/io/sata/impl/sata.c
20506
int rval;
usr/src/uts/common/io/sata/impl/sata.c
20537
rval = (*SATA_PROBE_PORT_FUNC(sata_hba_inst))
usr/src/uts/common/io/sata/impl/sata.c
20541
if (rval != SATA_SUCCESS) {
usr/src/uts/common/io/sata/impl/sata.c
20630
int rval;
usr/src/uts/common/io/sata/impl/sata.c
20676
rval = (*SATA_PROBE_PORT_FUNC(sata_hba_inst))
usr/src/uts/common/io/sata/impl/sata.c
20680
if (rval != SATA_SUCCESS) {
usr/src/uts/common/io/sata/impl/sata.c
20863
rval = ndi_devi_offline(tdip,
usr/src/uts/common/io/sata/impl/sata.c
20868
if (rval == NDI_SUCCESS) {
usr/src/uts/common/io/sata/impl/sata.c
20936
int rval;
usr/src/uts/common/io/sata/impl/sata.c
20981
rval = (*SATA_PROBE_PORT_FUNC(sata_hba_inst))
usr/src/uts/common/io/sata/impl/sata.c
20986
if (rval != SATA_SUCCESS) {
usr/src/uts/common/io/sata/impl/sata.c
21125
rval = ndi_devi_offline(tdip,
usr/src/uts/common/io/sata/impl/sata.c
21129
if (rval == NDI_SUCCESS) {
usr/src/uts/common/io/sata/impl/sata.c
21621
sata_inject_pkt_fault(sata_pkt_t *spkt, int *rval, int fault)
usr/src/uts/common/io/sata/impl/sata.c
21654
if (*rval != SATA_TRAN_ACCEPTED ||
usr/src/uts/common/io/sata/impl/sata.c
21685
*rval = SATA_TRAN_BUSY;
usr/src/uts/common/io/sata/impl/sata.c
21690
*rval = SATA_TRAN_QUEUE_FULL;
usr/src/uts/common/io/sata/impl/sata.c
21695
*rval = SATA_TRAN_CMD_UNSUPPORTED;
usr/src/uts/common/io/sata/impl/sata.c
21701
*rval = SATA_TRAN_PORT_ERROR;
usr/src/uts/common/io/sata/impl/sata.c
2306
int rval;
usr/src/uts/common/io/sata/impl/sata.c
2309
rval = scsi_hba_probe(sd, callback);
usr/src/uts/common/io/sata/impl/sata.c
2313
if (rval == SCSIPROBE_EXISTS) {
usr/src/uts/common/io/sata/impl/sata.c
2329
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
2420
int rval;
usr/src/uts/common/io/sata/impl/sata.c
2518
if ((rval = sata_dma_buf_setup(spx, flags, callback, arg,
usr/src/uts/common/io/sata/impl/sata.c
2530
switch (rval) {
usr/src/uts/common/io/sata/impl/sata.c
2778
int rval;
usr/src/uts/common/io/sata/impl/sata.c
2851
rval = sata_txlt_atapi(spx);
usr/src/uts/common/io/sata/impl/sata.c
2853
"sata_scsi_start atapi: rval %d\n", rval);
usr/src/uts/common/io/sata/impl/sata.c
2854
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
2908
rval = cmd->sci_cmd(spx);
usr/src/uts/common/io/sata/impl/sata.c
2911
"sata_scsi_start: rval %d\n", rval);
usr/src/uts/common/io/sata/impl/sata.c
2913
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
3113
int rval;
usr/src/uts/common/io/sata/impl/sata.c
3143
rval = 1; /* ARQ supported, turned on */
usr/src/uts/common/io/sata/impl/sata.c
3148
rval = SATA_DISK_SECTOR_SIZE; /* fixed size */
usr/src/uts/common/io/sata/impl/sata.c
3150
rval = SATA_ATAPI_SECTOR_SIZE;
usr/src/uts/common/io/sata/impl/sata.c
3151
else rval = -1;
usr/src/uts/common/io/sata/impl/sata.c
3162
rval = 1; /* Untagged queuing available */
usr/src/uts/common/io/sata/impl/sata.c
3164
rval = -1; /* Untagged queuing not available */
usr/src/uts/common/io/sata/impl/sata.c
3171
rval = 1; /* Tagged queuing available */
usr/src/uts/common/io/sata/impl/sata.c
3173
rval = -1; /* Tagged queuing not available */
usr/src/uts/common/io/sata/impl/sata.c
3179
rval = (int)adj_dma_attr.dma_attr_maxxfer;
usr/src/uts/common/io/sata/impl/sata.c
3184
rval = INTERCONNECT_SATA; /* SATA interconnect type */
usr/src/uts/common/io/sata/impl/sata.c
3189
rval = sdinfo->satadrv_atapi_cdb_len;
usr/src/uts/common/io/sata/impl/sata.c
3191
rval = -1;
usr/src/uts/common/io/sata/impl/sata.c
3195
rval = -1;
usr/src/uts/common/io/sata/impl/sata.c
3200
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
3216
int rval;
usr/src/uts/common/io/sata/impl/sata.c
3251
rval = 0;
usr/src/uts/common/io/sata/impl/sata.c
3255
rval = 1;
usr/src/uts/common/io/sata/impl/sata.c
3263
rval = -1;
usr/src/uts/common/io/sata/impl/sata.c
3266
rval = 0;
usr/src/uts/common/io/sata/impl/sata.c
3278
rval = 1;
usr/src/uts/common/io/sata/impl/sata.c
3286
rval = -1;
usr/src/uts/common/io/sata/impl/sata.c
3289
rval = 0;
usr/src/uts/common/io/sata/impl/sata.c
3293
rval = -1;
usr/src/uts/common/io/sata/impl/sata.c
3296
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
3351
int rval;
usr/src/uts/common/io/sata/impl/sata.c
3374
rval = ddi_dma_sync(spx->txlt_buf_dma_handle, 0, 0,
usr/src/uts/common/io/sata/impl/sata.c
3377
ASSERT3S(rval, ==, DDI_SUCCESS);
usr/src/uts/common/io/sata/impl/sata.c
3774
int rval;
usr/src/uts/common/io/sata/impl/sata.c
3780
if (((rval = sata_txlt_generic_pkt_info(spx, &reason, 0)) !=
usr/src/uts/common/io/sata/impl/sata.c
3783
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
3852
int rval, reason;
usr/src/uts/common/io/sata/impl/sata.c
3864
if (((rval = sata_txlt_generic_pkt_info(spx, &reason, 0)) !=
usr/src/uts/common/io/sata/impl/sata.c
3867
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
4214
int rval, reason, power_state = 0;
usr/src/uts/common/io/sata/impl/sata.c
4220
if (((rval = sata_txlt_generic_pkt_info(spx, &reason, 1)) !=
usr/src/uts/common/io/sata/impl/sata.c
4223
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
4250
if (sata_hba_start(spx, &rval) != 0) {
usr/src/uts/common/io/sata/impl/sata.c
4252
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
4359
int rval, reason;
usr/src/uts/common/io/sata/impl/sata.c
4364
if (((rval = sata_txlt_generic_pkt_info(spx, &reason, 1)) !=
usr/src/uts/common/io/sata/impl/sata.c
4367
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
4380
if (sata_hba_start(spx, &rval) != 0) {
usr/src/uts/common/io/sata/impl/sata.c
4382
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
4468
int rval, reason;
usr/src/uts/common/io/sata/impl/sata.c
4478
if (((rval = sata_txlt_generic_pkt_info(spx, &reason, 1)) !=
usr/src/uts/common/io/sata/impl/sata.c
4481
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
4510
if (sata_hba_start(spx, &rval) != 0) {
usr/src/uts/common/io/sata/impl/sata.c
4513
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
4523
if (sata_hba_start(spx, &rval) != 0) {
usr/src/uts/common/io/sata/impl/sata.c
4525
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
4534
if (sata_hba_start(spx, &rval) != 0) {
usr/src/uts/common/io/sata/impl/sata.c
4536
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
4547
if (sata_hba_start(spx, &rval) != 0) {
usr/src/uts/common/io/sata/impl/sata.c
4549
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
4557
if (sata_hba_start(spx, &rval) != 0) {
usr/src/uts/common/io/sata/impl/sata.c
4560
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
4572
if (sata_hba_start(spx, &rval) != 0) {
usr/src/uts/common/io/sata/impl/sata.c
4574
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
4582
if (sata_hba_start(spx, &rval) != 0) {
usr/src/uts/common/io/sata/impl/sata.c
4584
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
4606
if (sata_hba_start(spx, &rval) != 0) {
usr/src/uts/common/io/sata/impl/sata.c
4608
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
4620
if (sata_hba_start(spx, &rval) != 0) {
usr/src/uts/common/io/sata/impl/sata.c
4622
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
4630
if (sata_hba_start(spx, &rval) != 0) {
usr/src/uts/common/io/sata/impl/sata.c
4632
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
4643
if (sata_hba_start(spx, &rval) != 0) {
usr/src/uts/common/io/sata/impl/sata.c
4645
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
4656
if (sata_hba_start(spx, &rval) != 0) {
usr/src/uts/common/io/sata/impl/sata.c
4658
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
4670
if (sata_hba_start(spx, &rval) != 0) {
usr/src/uts/common/io/sata/impl/sata.c
4672
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
4686
if (sata_hba_start(spx, &rval) != 0) {
usr/src/uts/common/io/sata/impl/sata.c
4688
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
4695
if (sata_hba_start(spx, &rval) != 0) {
usr/src/uts/common/io/sata/impl/sata.c
4697
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
4718
if (sata_hba_start(spx, &rval) != 0) {
usr/src/uts/common/io/sata/impl/sata.c
4720
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
4727
if (sata_hba_start(spx, &rval) != 0) {
usr/src/uts/common/io/sata/impl/sata.c
4729
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
4797
int rval, reason;
usr/src/uts/common/io/sata/impl/sata.c
4805
if (((rval = sata_txlt_generic_pkt_info(spx, &reason, 0)) !=
usr/src/uts/common/io/sata/impl/sata.c
4808
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
4908
int rval, reason;
usr/src/uts/common/io/sata/impl/sata.c
4918
if (((rval = sata_txlt_generic_pkt_info(spx, &reason, 0)) !=
usr/src/uts/common/io/sata/impl/sata.c
4921
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
5113
int rval, reason;
usr/src/uts/common/io/sata/impl/sata.c
5137
rval = sata_txlt_generic_pkt_info(spx, &reason, 1);
usr/src/uts/common/io/sata/impl/sata.c
5138
if ((rval != TRAN_ACCEPT) || (reason == CMD_DEV_GONE)) {
usr/src/uts/common/io/sata/impl/sata.c
5140
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
5230
rval = ddi_dma_sync(spx->txlt_buf_dma_handle, 0, 0,
usr/src/uts/common/io/sata/impl/sata.c
5232
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/sata/impl/sata.c
5253
if (sata_hba_start(spx, &rval) != 0) {
usr/src/uts/common/io/sata/impl/sata.c
5255
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
5290
int rval, reason;
usr/src/uts/common/io/sata/impl/sata.c
5309
if (((rval = sata_txlt_generic_pkt_info(spx, &reason, 0)) !=
usr/src/uts/common/io/sata/impl/sata.c
5313
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
5589
int rval, stat, reason;
usr/src/uts/common/io/sata/impl/sata.c
5601
if (((rval = sata_txlt_generic_pkt_info(spx, &reason, 1)) !=
usr/src/uts/common/io/sata/impl/sata.c
5604
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
5607
rval = TRAN_ACCEPT;
usr/src/uts/common/io/sata/impl/sata.c
5691
pllen, &pagelen, &rval, &dmod);
usr/src/uts/common/io/sata/impl/sata.c
5716
pllen, &pagelen, &rval, &dmod);
usr/src/uts/common/io/sata/impl/sata.c
5741
&buf[len], pllen, &pagelen, &rval, &dmod);
usr/src/uts/common/io/sata/impl/sata.c
5766
pllen, &pagelen, &rval, &dmod);
usr/src/uts/common/io/sata/impl/sata.c
5853
rval = TRAN_ACCEPT;
usr/src/uts/common/io/sata/impl/sata.c
5882
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
5902
int synch, rval, reason;
usr/src/uts/common/io/sata/impl/sata.c
5906
rval = sata_txlt_generic_pkt_info(spx, &reason, 1);
usr/src/uts/common/io/sata/impl/sata.c
5907
if ((rval != TRAN_ACCEPT) || (reason == CMD_DEV_GONE)) {
usr/src/uts/common/io/sata/impl/sata.c
5909
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
6105
if (sata_hba_start(spx, &rval) != 0) {
usr/src/uts/common/io/sata/impl/sata.c
6107
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
6133
int rval, reason;
usr/src/uts/common/io/sata/impl/sata.c
6153
if (((rval = sata_txlt_generic_pkt_info(spx, &reason, 1)) !=
usr/src/uts/common/io/sata/impl/sata.c
6157
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
6446
int rval, reason;
usr/src/uts/common/io/sata/impl/sata.c
6451
if (((rval = sata_txlt_generic_pkt_info(spx, &reason, 0)) !=
usr/src/uts/common/io/sata/impl/sata.c
6454
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
6655
if (sata_hba_start(spx, &rval) != 0) {
usr/src/uts/common/io/sata/impl/sata.c
6658
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
6714
int rval, reason;
usr/src/uts/common/io/sata/impl/sata.c
6720
if (((rval = sata_txlt_generic_pkt_info(spx, &reason, 0)) !=
usr/src/uts/common/io/sata/impl/sata.c
6723
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
6919
if (sata_hba_start(spx, &rval) != 0) {
usr/src/uts/common/io/sata/impl/sata.c
6922
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
6958
int rval, mode, sector_count, reason;
usr/src/uts/common/io/sata/impl/sata.c
6968
if ((rval = sata_txlt_generic_pkt_info(spx, &reason, 1)) !=
usr/src/uts/common/io/sata/impl/sata.c
6971
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
7024
if (sata_hba_start(spx, &rval) != 0) {
usr/src/uts/common/io/sata/impl/sata.c
7027
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
7126
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
7137
int rval;
usr/src/uts/common/io/sata/impl/sata.c
7153
rval = sata_probe_device(sata_hba_inst, &sata_device);
usr/src/uts/common/io/sata/impl/sata.c
7155
if (rval == SATA_SUCCESS) { /* Set default features */
usr/src/uts/common/io/sata/impl/sata.c
7161
rval = sata_initialize_device(sata_hba_inst,
usr/src/uts/common/io/sata/impl/sata.c
7163
if (rval == SATA_RETRY)
usr/src/uts/common/io/sata/impl/sata.c
7175
} else if (rval == SATA_RETRY) {
usr/src/uts/common/io/sata/impl/sata.c
7210
int rval, reason;
usr/src/uts/common/io/sata/impl/sata.c
7215
if (((rval = sata_txlt_generic_pkt_info(spx, &reason, 1)) !=
usr/src/uts/common/io/sata/impl/sata.c
7218
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
7244
if (sata_hba_start(spx, &rval) != 0) {
usr/src/uts/common/io/sata/impl/sata.c
7247
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
7278
int reason, rval;
usr/src/uts/common/io/sata/impl/sata.c
7288
rval = sata_txlt_generic_pkt_info(spx, &reason, 1);
usr/src/uts/common/io/sata/impl/sata.c
7289
if (rval != TRAN_ACCEPT || reason == CMD_DEV_GONE) {
usr/src/uts/common/io/sata/impl/sata.c
7291
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
7511
sata_hba_start(sata_pkt_txlate_t *spx, int *rval)
usr/src/uts/common/io/sata/impl/sata.c
7594
*rval = TRAN_ACCEPT;
usr/src/uts/common/io/sata/impl/sata.c
7610
*rval = TRAN_BUSY;
usr/src/uts/common/io/sata/impl/sata.c
7651
*rval = TRAN_FATAL_ERROR;
usr/src/uts/common/io/sata/impl/sata.c
7670
*rval = TRAN_ACCEPT;
usr/src/uts/common/io/sata/impl/sata.c
7695
*rval = TRAN_BUSY;
usr/src/uts/common/io/sata/impl/sata.c
7702
"to cmd : 0x%2x resp 0x%x", cmd, rval));
usr/src/uts/common/io/sata/impl/sata.c
7704
*rval = TRAN_FATAL_ERROR;
usr/src/uts/common/io/sata/impl/sata.c
779
int rval;
usr/src/uts/common/io/sata/impl/sata.c
786
if ((rval = mod_install(&modlinkage)) != 0) {
usr/src/uts/common/io/sata/impl/sata.c
796
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
8008
int rval;
usr/src/uts/common/io/sata/impl/sata.c
8019
rval = ddi_dma_sync(
usr/src/uts/common/io/sata/impl/sata.c
802
int rval;
usr/src/uts/common/io/sata/impl/sata.c
8022
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/sata/impl/sata.c
804
if ((rval = mod_remove(&modlinkage)) != 0)
usr/src/uts/common/io/sata/impl/sata.c
805
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
812
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
842
int rval;
usr/src/uts/common/io/sata/impl/sata.c
860
if ((rval = scsi_hba_init(modlp)) != 0) {
usr/src/uts/common/io/sata/impl/sata.c
863
return (rval);
usr/src/uts/common/io/sata/impl/sata.c
8759
int parmlen, int *pagelen, int *rval, int *dmod)
usr/src/uts/common/io/sata/impl/sata.c
8781
*rval = TRAN_ACCEPT;
usr/src/uts/common/io/sata/impl/sata.c
8800
*rval = TRAN_ACCEPT;
usr/src/uts/common/io/sata/impl/sata.c
8827
if (sata_hba_start(spx, rval) != 0)
usr/src/uts/common/io/sata/impl/sata.c
8847
*rval = TRAN_ACCEPT;
usr/src/uts/common/io/sata/impl/sata.c
8866
if (sata_hba_start(spx, rval) != 0)
usr/src/uts/common/io/sata/impl/sata.c
8886
*rval = TRAN_ACCEPT;
usr/src/uts/common/io/sata/impl/sata.c
8932
int *rval,
usr/src/uts/common/io/sata/impl/sata.c
8955
*rval = TRAN_ACCEPT;
usr/src/uts/common/io/sata/impl/sata.c
8967
*rval = TRAN_ACCEPT;
usr/src/uts/common/io/sata/impl/sata.c
8974
*rval = TRAN_ACCEPT;
usr/src/uts/common/io/sata/impl/sata.c
8990
if (sata_hba_start(spx, rval) != 0)
usr/src/uts/common/io/sata/impl/sata.c
9021
int *rval, int *dmod)
usr/src/uts/common/io/sata/impl/sata.c
9043
*rval = TRAN_ACCEPT;
usr/src/uts/common/io/sata/impl/sata.c
9072
if (sata_hba_start(spx, rval) != 0)
usr/src/uts/common/io/sata/impl/sata.c
9101
int *rval, int *dmod)
usr/src/uts/common/io/sata/impl/sata.c
9127
*rval = TRAN_ACCEPT;
usr/src/uts/common/io/sata/impl/sata.c
9154
if (sata_hba_start(spx, rval) != 0) {
usr/src/uts/common/io/sata/impl/sata.c
9253
int rval;
usr/src/uts/common/io/sata/impl/sata.c
9259
rval = sata_read_log_ext(sata_hba_inst, sdinfo, DEVICE_STATS_LOG,
usr/src/uts/common/io/sata/impl/sata.c
9261
if (rval == 0) {
usr/src/uts/common/io/sata/impl/sata.c
9277
rval = sata_read_log_ext(sata_hba_inst, sdinfo, DEVICE_STATS_LOG,
usr/src/uts/common/io/sata/impl/sata.c
9279
if (rval == 0) {
usr/src/uts/common/io/sata/impl/sata.c
9332
int rval;
usr/src/uts/common/io/sata/impl/sata.c
9340
rval = sata_ext_smart_selftest_read_log(sata_hba_inst, sdinfo,
usr/src/uts/common/io/sata/impl/sata.c
9342
if (rval == 0) {
usr/src/uts/common/io/sata/impl/sata.c
9362
rval = sata_ext_smart_selftest_read_log(
usr/src/uts/common/io/sata/impl/sata.c
9365
if (rval != 0)
usr/src/uts/common/io/sata/impl/sata.c
9524
rval =
usr/src/uts/common/io/sata/impl/sata.c
9528
if (rval == -1)
usr/src/uts/common/io/sata/impl/sata.c
9547
rval = sata_ext_smart_selftest_read_log(
usr/src/uts/common/io/sata/impl/sata.c
9550
if (rval != 0)
usr/src/uts/common/io/sata/impl/sata.c
9571
rval = sata_smart_selftest_log(sata_hba_inst, sdinfo,
usr/src/uts/common/io/sata/impl/sata.c
9574
if (rval == 0) {
usr/src/uts/common/io/sata/impl/sata.c
9727
int rval;
usr/src/uts/common/io/sata/impl/sata.c
9737
rval = sata_smart_read_log(sata_hba_inst, sdinfo, lbuf,
usr/src/uts/common/io/sata/impl/sata.c
9739
if (rval == -1)
usr/src/uts/common/io/sata/impl/sata.c
9781
int rval;
usr/src/uts/common/io/sata/impl/sata.c
9791
rval = sata_fetch_smart_return_status(sata_hba_inst, sdinfo);
usr/src/uts/common/io/sata/impl/sata.c
9792
switch (rval) {
usr/src/uts/common/io/sata/impl/sata.c
9835
int rval;
usr/src/uts/common/io/sata/impl/sata.c
9849
rval = sata_read_log_ext(sata_hba_inst, sdinfo, DEVICE_STATS_LOG,
usr/src/uts/common/io/sata/impl/sata.c
9851
if (rval == -1)
usr/src/uts/common/io/sata/impl/sata.c
9879
rval = 0;
usr/src/uts/common/io/sata/impl/sata.c
9935
int rval;
usr/src/uts/common/io/sata/impl/sata.c
9938
rval = sata_fetch_smart_data(sata_hba_inst, sdinfo, smart_data);
usr/src/uts/common/io/sata/impl/sata.c
9939
if (rval == -1)
usr/src/uts/common/io/sata/impl/sata.c
9971
int i, rval, index;
usr/src/uts/common/io/sata/impl/sata.c
9976
rval = sata_fetch_smart_data(spx->txlt_sata_hba_inst, sdinfo,
usr/src/uts/common/io/sata/impl/sata.c
9978
if (rval == -1)
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
1030
int rval = ISCSI_STATUS_INTERNAL_ERROR;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
1042
rval = iscsi_handle_reset(isp, level, ilp);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
1051
rval = iscsi_handle_reset(isp, level, NULL);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
1058
return (ISCSI_SUCCESS(rval) ? 1 : 0);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
1164
int rval = NDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
1196
rval = NDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
1204
rval = NDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
1212
rval = NDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
1239
rval = NDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
1243
if (rval == NDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
1244
rval = ndi_busop_bus_config(parent, iflags,
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
1253
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
1267
int rval = NDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
1280
rval = NDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
1283
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
1286
rval = ndi_busop_bus_unconfig(parent, flag, op, arg);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
1290
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
1507
boolean_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
1747
rval = persistent_initiator_name_get(initiator_node_name,
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
1782
if (rval == B_TRUE) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
246
int rval = 0;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
258
rval = ddi_soft_state_init(&iscsi_state,
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
260
if (rval != 0) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
265
rval = scsi_hba_init(&modlinkage);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
266
if (rval != 0) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
272
rval = mod_install(&modlinkage);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
273
if (rval != 0) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
282
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
291
int rval = 0;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
293
rval = mod_remove(&modlinkage);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
294
if (rval == 0) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
301
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
310
int rval = 0;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
312
rval = mod_info(&modlinkage, mp);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
314
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
332
int rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
343
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
345
rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
350
rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
354
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
357
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
4039
rval = iscsi_door_bind(did);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
4040
if (rval == B_TRUE) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
4041
rval = iscsid_start(ihp);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
4042
if (rval == B_FALSE) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
4047
if (rval == B_TRUE) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
4062
rval = iscsid_stop(ihp);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
4067
if (ddi_copyout((void *)&rval, (caddr_t)arg,
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
5404
boolean_t rval = B_TRUE;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
5414
rval = B_FALSE;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
5418
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
645
int rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
657
rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
662
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
672
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
680
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
689
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
713
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
744
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
749
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
774
int rval = 0;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
786
rval = iscsi_phys_lun_init(hba_dip, lun_dip, hba_tran, sd);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
788
rval = iscsi_virt_lun_init(hba_dip, lun_dip, hba_tran, sd);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
791
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
804
int rval = 0;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
806
rval = scsi_hba_probe(sd, callback);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.c
808
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_cmd.c
370
int rval;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_cmd.c
554
rval = iscsi_tx_cmd(isp, icmdp);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_cmd.c
561
if (!ISCSI_SUCCESS(rval)) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_conn.c
180
iscsi_status_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_conn.c
206
rval = iscsi_login_start(itp);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_conn.c
211
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
1399
idm_status_t rval = IDM_STATUS_SUCCESS;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
1552
rval = IDM_STATUS_PROTOCOL_ERROR;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
1555
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
1581
idm_status_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
1586
if ((rval = iscsi_rx_chk(icp, isp, (iscsi_scsi_rsp_hdr_t *)ithp,
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
1589
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
1857
iscsi_status_t rval = ISCSI_STATUS_INTERNAL_ERROR;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
1865
rval = iscsi_tx_scsi(isp, icmdp);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
1868
rval = iscsi_tx_nop(isp, icmdp);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
1871
rval = iscsi_tx_abort(isp, icmdp);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
1874
rval = iscsi_tx_reset(isp, icmdp);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
1877
rval = iscsi_tx_logout(isp, icmdp);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
1880
rval = iscsi_tx_text(isp, icmdp);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
1889
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
2149
iscsi_status_t rval = ISCSI_STATUS_SUCCESS;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
2210
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
2254
iscsi_status_t rval = ISCSI_STATUS_SUCCESS;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
2278
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
2289
iscsi_status_t rval = ISCSI_STATUS_SUCCESS;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
2315
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
2326
iscsi_status_t rval = ISCSI_STATUS_SUCCESS;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
2365
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
2376
iscsi_status_t rval = ISCSI_STATUS_SUCCESS;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
2398
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
2416
iscsi_status_t rval = ISCSI_STATUS_SUCCESS;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
2436
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
2547
iscsi_status_t rval = ISCSI_STATUS_SUCCESS;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
2624
rval = icmd.cmd_result;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
2626
if (rval == ISCSI_STATUS_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
2725
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
2756
int rval;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
2806
rval = icmdp->cmd_result;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
2811
if (rval != 0) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
2831
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
2849
iscsi_status_t rval = ISCSI_STATUS_SUCCESS;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
2915
rval = icmdp->cmd_result;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
2917
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
2942
rval = icmdp->cmd_result;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
2947
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
2965
iscsi_status_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
3055
rval = icmdp->cmd_result;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
3088
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
333
iscsi_status_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
351
rval = iscsi_rx_process_scsi_itt_to_icmdp(isp, icp->conn_ic,
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
354
rval = iscsi_rx_process_itt_to_icmdp(isp,
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
358
if (!ISCSI_SUCCESS(rval)) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
654
idm_status_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
663
if ((rval = iscsi_rx_chk(icp, isp, issrhp,
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
669
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
867
idm_status_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
875
if ((rval = iscsi_rx_chk(icp, isp, (iscsi_scsi_rsp_hdr_t *)idrhp,
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_io.c
881
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_ioctl.c
756
boolean_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_ioctl.c
760
rval = persistent_initiator_name_get(name,
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_ioctl.c
765
if (rval == B_TRUE) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_ioctl.c
780
rval = persistent_param_clear(name);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_ioctl.c
781
if (rval == B_TRUE) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_ioctl.c
782
rval = persistent_param_set(
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_ioctl.c
785
if (rval == B_FALSE) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_ioctl.c
795
rval = persistent_chap_clear(name);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_ioctl.c
796
if (rval == B_TRUE) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_ioctl.c
822
rval = persistent_chap_set(
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_ioctl.c
825
if (rval == B_FALSE) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_ioctl.c
835
rval = persistent_auth_clear(name);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_ioctl.c
836
if (rval == B_TRUE) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_ioctl.c
837
rval = persistent_auth_set(
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_ioctl.c
841
if (rval == B_FALSE) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_ioctl.c
872
boolean_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_ioctl.c
885
rval = persistent_param_set(
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_ioctl.c
887
if (rval == B_FALSE) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_ioctl.c
930
boolean_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_ioctl.c
938
rval = persistent_param_set((char *)name, pp);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_ioctl.c
939
if (rval == B_FALSE) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_login.c
161
rval = iscsi_login(icp, &status_class, &status_detail);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_login.c
170
if (!ISCSI_SUCCESS(rval)) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_login.c
175
switch (rval) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_login.c
2153
idm_status_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_login.c
2203
rval = idm_ini_conn_create(&cr, &icp->conn_ic);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_login.c
2204
if (rval != IDM_STATUS_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_login.c
2252
rval = idm_ini_conn_connect(icp->conn_ic);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_login.c
2254
if (rval != IDM_STATUS_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_login.c
2261
return (rval == IDM_STATUS_SUCCESS ?
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_login.c
384
iscsi_status_t rval = ISCSI_STATUS_INTERNAL_ERROR;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_login.c
479
rval = ISCSI_STATUS_INTERNAL_ERROR;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_login.c
488
rval = iscsi_make_login_pdu(icp, text_pdu, data,
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_login.c
490
if (!ISCSI_SUCCESS(rval)) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_login.c
508
rval = (ISCSI_STATUS_INTERNAL_ERROR);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_login.c
549
rval = (ISCSI_STATUS_INTERNAL_ERROR);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_login.c
559
rval = (ISCSI_STATUS_PROTOCOL_ERROR);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_login.c
580
rval = iscsi_process_login_response(icp,
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_login.c
584
if (!ISCSI_SUCCESS(rval)) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_login.c
610
rval = ISCSI_STATUS_SUCCESS;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_login.c
619
rval = ISCSI_STATUS_SUCCESS;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_login.c
628
rval = ISCSI_STATUS_SUCCESS;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_login.c
634
rval = ISCSI_STATUS_SUCCESS;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_login.c
643
if (ISCSI_SUCCESS(rval))
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_login.c
644
rval = ISCSI_STATUS_INTERNAL_ERROR;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_login.c
648
icp->conn_login_status = rval;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_login.c
649
if (ISCSI_SUCCESS(rval) &&
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_login.c
662
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_login.c
86
iscsi_status_t rval = ISCSI_STATUS_LOGIN_FAILED;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_lun.c
612
int rval = 0;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_lun.c
626
rval = mdi_pi_online(ilp->lun_pip, 0);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_lun.c
628
if (rval == MDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_lun.c
637
rval = ndi_devi_online(ilp->lun_dip, 0);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_lun.c
639
if (rval == NDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_net.c
309
int rval;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_net.c
312
rval = ksocket_connect(ks, name, name_len, CRED());
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_net.c
314
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_queue.c
109
iscsi_status_t rval = ISCSI_STATUS_SUCCESS;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_queue.c
115
rval = iscsi_dequeue_cmd(&isp->sess_queue_pending.head,
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_queue.c
117
if (ISCSI_SUCCESS(rval)) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_queue.c
195
iscsi_status_t rval = ISCSI_STATUS_SUCCESS;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_queue.c
204
rval = iscsi_dequeue_cmd(&icp->conn_queue_active.head,
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_queue.c
207
if (ISCSI_SUCCESS(rval)) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
1657
iscsi_status_t rval = ISCSI_STATUS_SUCCESS;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
1669
rval = iscsi_sess_testunitready(isp, event_count);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
1670
if (ISCSI_SUCCESS(rval)) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
1676
rval = iscsi_sess_reportluns(isp, event_count);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
1677
if (!ISCSI_SUCCESS(rval)) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
1712
iscsi_status_t rval = ISCSI_STATUS_SUCCESS;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
1732
rval = iscsi_handle_passthru(isp, 0, &ucmd);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
1738
if (ISCSI_SUCCESS(rval)) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
1743
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
1765
iscsi_status_t rval = ISCSI_STATUS_SUCCESS;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
1819
rval = iscsi_handle_passthru(isp, 0, &ucmd);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
1822
if (ISCSI_SUCCESS(rval) &&
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
1824
rval = ISCSI_STATUS_USCSI_FAILED;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
1828
if (ISCSI_SUCCESS(rval)) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
1857
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
1861
if (!ISCSI_SUCCESS(rval)) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
1863
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
2035
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
2067
iscsi_status_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
2143
rval = iscsi_handle_passthru(isp, lun_num, &ucmd);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
2146
if (ISCSI_SUCCESS(rval) &&
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
2148
rval = ISCSI_STATUS_USCSI_FAILED;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
2152
if (ISCSI_SUCCESS(rval)) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
2161
if (!ISCSI_SUCCESS(rval)) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
2220
rval = iscsi_handle_passthru(isp, lun_num, &ucmd);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
2223
if (ISCSI_SUCCESS(rval) &&
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
2225
rval = ISCSI_STATUS_USCSI_FAILED;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
2229
if (ISCSI_SUCCESS(rval)) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
2242
if (ISCSI_SUCCESS(rval)) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
2408
int rval = 0;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
2431
rval = EFAULT;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
2433
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
384
int rval = 0;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
404
rval = EFAULT;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
406
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
534
iscsi_status_t rval = ISCSI_STATUS_SUCCESS;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
563
rval = tmprval;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
569
if (!ISCSI_SUCCESS(rval)) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
570
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
577
rval = iscsi_conn_offline(icp);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
578
if (ISCSI_SUCCESS(rval)) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
584
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
607
rval = iscsi_conn_destroy(icp);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
608
if (!ISCSI_SUCCESS(rval)) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
610
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_sess.c
678
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsid.c
252
boolean_t rval = B_TRUE;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsid.c
281
rval = B_FALSE;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsid.c
288
rval = iscsi_thread_start(
usr/src/uts/common/io/scsi/adapters/iscsi/iscsid.c
291
rval = B_FALSE;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsid.c
294
if (rval == B_FALSE) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsid.c
300
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsid.c
311
boolean_t rval = B_FALSE;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsid.c
315
rval = iscsid_init_config(ihp);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsid.c
316
if (rval == B_TRUE) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsid.c
317
rval = iscsid_init_targets(ihp);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsid.c
320
if (rval == B_TRUE) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsid.c
322
rval = iscsid_enable_discovery(ihp, dm, B_TRUE);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsid.c
323
if (rval == B_TRUE) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsid.c
331
if (rval == B_FALSE) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsid.c
345
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsid.c
357
boolean_t rval = B_FALSE;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsid.c
365
rval = B_TRUE;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsid.c
371
rval = B_TRUE;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsid.c
375
rval = B_FALSE;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsid.c
382
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsid.c
436
boolean_t rval = B_TRUE;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsid.c
446
rval = iscsi_thread_start(dt->thr_id);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsid.c
447
if (rval == B_FALSE) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsid.c
465
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsid.c
475
boolean_t rval = B_TRUE;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsid.c
489
rval = iscsid_del(ihp, NULL, dt->method, NULL);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsid.c
490
if (rval == B_TRUE) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsid.c
493
rval = iscsi_thread_stop(dt->thr_id);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsid.c
494
if (rval == B_FALSE) {
usr/src/uts/common/io/scsi/adapters/iscsi/iscsid.c
520
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
1004
rval = isns_rcv_msg_err;
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
1019
rval = isns_no_rsp_rcvd;
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
1026
rval = isns_op_failed;
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
1035
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
1411
isns_status_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
1446
rval = isns_ok;
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
1453
rval = isns_rcv_msg_err;
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
1468
rval = isns_no_rsp_rcvd;
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
1478
rval = isns_op_failed;
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
1487
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
1494
int rval = 0;
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
1530
rval = iscsi_net->connect(so, &sa_rsvr.sin,
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
1535
if (rval != 0) {
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
1723
boolean_t rval = B_FALSE;
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
1824
rval = find_listening_addr(&local_addr, instance_listening_so);
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
1825
if (rval == B_FALSE) {
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
3012
int rval;
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
3048
rval = isns_process_esi(in_pdu);
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
3050
rval,
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
3055
rval = isns_process_scn(in_pdu,
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
3058
rval,
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
637
int rval;
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
674
rval = iscsi_thread_start(esi_scn_thr_id);
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
675
if (rval == B_FALSE) {
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
744
isns_status_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
781
rval = isns_ok;
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
788
rval = isns_rcv_msg_err;
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
803
rval = isns_no_rsp_rcvd;
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
811
rval = isns_op_partially_failed;
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
813
rval = isns_op_failed;
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
821
if (rval != isns_ok) {
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
823
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
856
rval = isns_rcv_msg_err;
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
871
rval = isns_no_rsp_rcvd;
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
878
rval = isns_op_failed;
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
887
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
898
isns_status_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
933
rval = isns_ok;
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
940
rval = isns_rcv_msg_err;
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
955
rval = isns_no_rsp_rcvd;
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
962
rval = isns_op_failed;
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
969
if (rval != isns_ok) {
usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
971
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
1033
rval = nvf_close(file);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
1034
if (rval == -1) {
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
1048
rval = nvf_rename(nvf_curr_filename, nvf_prev_filename);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
1049
if (rval == -1) {
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
1059
rval = nvf_rename(NVF_TMP_FILENAME, nvf_curr_filename);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
1060
if (rval == -1) {
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
1085
int rval;
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
1184
rval = nvlist_unpack(buf, hdr.nvfh_size, &nvl, 0);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
1185
if (rval != 0) {
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
1188
"nvlist %s (%d)", filename, rval);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
206
boolean_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
217
rval = nvf_parse(nvf_curr_filename);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
219
if (rval == B_TRUE) {
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
221
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
238
rval = nvf_parse(nvf_prev_filename);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
241
if (rval == B_TRUE) {
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
243
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
266
rval = nvlist_alloc(&nvf_list, NV_UNIQUE_NAME, KM_SLEEP);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
267
if (rval != 0) {
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
269
"allocate root list (%d)", rval);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
273
return (rval == 0 ? B_TRUE : B_FALSE);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
333
int rval;
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
339
rval = nvlist_lookup_nvlist(nvf_list, id, &list);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
342
return (rval == 0 ? B_TRUE : B_FALSE);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
351
int rval;
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
366
rval = nvlist_add_uint32(nvf_list, id, value);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
367
if (rval == 0) {
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
374
"store %s value (%d)", id, rval);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
378
return (rval == 0 ? B_TRUE : B_FALSE);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
387
boolean_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
399
rval = nvlist_lookup_uint32(nvf_list, id, value);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
402
return (rval == 0 ? B_TRUE : B_FALSE);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
411
boolean_t rval = B_TRUE;
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
420
rval = nvlist_add_string(nvf_list, id, name);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
421
if (rval == 0) {
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
425
"store %s name (%d)", id, rval);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
429
return (rval == 0 ? B_TRUE : B_FALSE);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
438
boolean_t rval = B_FALSE;
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
448
rval = nvlist_lookup_string(nvf_list, id, &tmpname);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
449
if (rval == 0) {
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
455
rval = B_TRUE;
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
460
rval = B_FALSE;
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
463
rval = B_FALSE;
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
467
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
476
int rval;
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
493
rval = nvlist_add_byte_array(nvf_list, name, (uchar_t *)data, dsize);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
494
if (rval == 0) {
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
501
"to store %s name (%d)", name, rval);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
505
return (rval == 0 ? B_TRUE : B_FALSE);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
516
int rval = 0;
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
529
rval = nvlist_lookup_byte_array(nvf_list, name, &value, &vsize);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
530
if (rval == 0) {
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
540
} else if (rval == ENOENT) {
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
556
int rval;
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
570
rval = nvlist_remove(nvf_list, name, DATA_TYPE_BYTE_ARRAY);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
571
if (rval == 0) {
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
579
return (rval == 0 ? B_TRUE : B_FALSE);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
589
int rval;
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
606
rval = nvlist_lookup_nvlist(nvf_list, id, &list);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
607
if (rval != 0) {
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
608
rval = nvlist_alloc(&list, NV_UNIQUE_NAME, KM_SLEEP);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
609
if (rval != 0) {
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
611
"allocate %s list (%d)", id, rval);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
622
rval = nvlist_add_byte_array(list, name, (uchar_t *)data, dsize);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
623
if (rval == 0) {
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
624
rval = nvlist_add_nvlist(nvf_list, id, list);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
625
if (rval != 0) {
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
627
"to add %s list to root (%d)", id, rval);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
637
"store %s in %s list (%d)", name, id, rval);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
645
return (rval == 0 ? B_TRUE : B_FALSE);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
657
int rval;
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
673
rval = nvlist_lookup_nvlist(nvf_list, id, &list);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
674
if (rval != 0) {
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
681
rval = nvlist_lookup_byte_array(list, name, &value, &vsize);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
682
if (rval == 0) {
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
694
return (rval == 0 ? B_TRUE : B_FALSE);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
708
int rval;
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
724
rval = nvlist_lookup_nvlist(nvf_list, id, &list);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
725
if (rval != 0) {
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
743
rval = nvpair_value_byte_array(pair, &value, &vsize);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
744
if (rval != 0) {
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
770
int rval = B_FALSE;
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
785
rval = nvlist_lookup_nvlist(nvf_list, id, &list);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
786
if (rval != 0) {
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
794
rval = nvlist_remove(list, name, DATA_TYPE_BYTE_ARRAY);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
795
if (rval == 0) {
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
803
return (rval == 0 ? B_TRUE : B_FALSE);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
845
boolean_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
870
rval = nvf_flush();
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
874
if (rval == B_FALSE) {
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
918
int rval;
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
931
rval = nvlist_dup(nvf_list, &tmpnvl, KM_SLEEP);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
932
if (rval != 0) {
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
934
"duplicate nvf_list (%d)", rval);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
944
rval = nvlist_pack(tmpnvl, &nvlbuf, &nvllen, NV_ENCODE_NATIVE, 0);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
945
if (rval != 0) {
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
947
"nvf_list (%d)", rval);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
990
rval = nvf_remove(NVF_TMP_FILENAME);
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
991
if (rval == -1) {
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
1037
boolean_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
1040
rval = nvf_data_clear(CHAP_PARAMS_ID, node);
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
1043
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
1107
boolean_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
1110
rval = nvf_data_set(BIDIR_AUTH_PARAMS_ID, node,
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
1114
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
1158
boolean_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
1161
rval = nvf_data_clear(BIDIR_AUTH_PARAMS_ID, node);
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
1164
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
1204
boolean_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
1222
rval = persistent_initiator_name_get(name, ISCSI_MAX_NAME_LEN);
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
1223
if (rval == B_TRUE) {
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
1227
rval = persistent_alias_name_get(name, ISCSI_MAX_NAME_LEN);
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
1228
if (rval == B_TRUE) {
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
275
boolean_t rval = B_FALSE;
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
277
rval = nvf_load();
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
278
if (rval == B_TRUE) {
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
283
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
325
boolean_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
328
rval = nvf_node_value_get(DISCOVERY_METHOD_ID, (uint32_t *)&methods);
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
329
if (rval == B_FALSE) {
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
354
boolean_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
365
rval = nvf_node_value_set(DISCOVERY_METHOD_ID, discovery_types);
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
367
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
435
boolean_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
457
rval = nvf_data_set(STATIC_ADDR2_ID, key, (void *)e,
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
462
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
482
boolean_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
491
rval = nvf_data_next(STATIC_ADDR2_ID, v, key,
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
506
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
516
boolean_t rval = B_FALSE;
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
551
rval = nvf_data_clear(STATIC_ADDR2_ID, key);
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
558
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
597
boolean_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
610
rval = nvf_data_set(ISNS_SERVER_ADDR_ID, name,
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
614
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
650
boolean_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
663
rval = nvf_data_clear(ISNS_SERVER_ADDR_ID, name);
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
666
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
706
boolean_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
719
rval = nvf_data_set(DISCOVERY_ADDR_ID, name,
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
723
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
759
boolean_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
772
rval = nvf_data_clear(DISCOVERY_ADDR_ID, name);
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
775
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
813
boolean_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
816
rval = nvf_data_set(LOGIN_PARAMS_ID, node,
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
820
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
906
boolean_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
919
rval = nvf_data_set(SESSION_PARAMS_ID, node, (void *)ics, size);
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
922
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
970
boolean_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
972
rval = nvf_data_set(TUNABLE_PARAMS_ID, node,
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
975
return (rval);
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
990
boolean_t rval;
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
993
rval = nvf_data_set(CHAP_PARAMS_ID, node,
usr/src/uts/common/io/scsi/adapters/iscsi/persistent.c
997
return (rval);
usr/src/uts/common/io/scsi/adapters/lmrc/lmrc_ioctl.c
482
int *rval)
usr/src/uts/common/io/scsi/adapters/lmrc/lmrc_ioctl.c
491
ret = scsi_hba_ioctl(dev, cmd, arg, mode, credp, rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
10000
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
1016
rval = mptsas_get_sas_device_page0(mpt, page_address, &dev_hdl,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
1019
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
1089
int rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
1125
rval = pm_power_has_changed(dip, 0, PM_LEVEL_D0);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
1126
if (rval == DDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
12444
int *rval)
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
12461
*rval = MPTIOCTL_STATUS_GOOD;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
12473
int *rval)
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
12486
*rval = MPTIOCTL_STATUS_GOOD;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
12499
int *rval)
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
12522
*rval = MPTIOCTL_STATUS_GOOD;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
12526
*rval = MPTIOCTL_STATUS_GOOD;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
12531
*rval = MPTIOCTL_STATUS_LEN_TOO_SHORT;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
128
cred_t *credp, int *rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
12862
int *rval)
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
12879
*rval = MPTIOCTL_STATUS_GOOD;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
12918
status = scsi_hba_ioctl(dev, cmd, data, mode, credp, rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
13018
*rval = MPTIOCTL_STATUS_LEN_TOO_SHORT;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
13072
(mptsas_event_query_t *)data, mode, rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
13080
(mptsas_event_enable_t *)data, mode, rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
13088
(mptsas_event_report_t *)data, mode, rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
13100
rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
13111
int rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
13154
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
13165
if (rval == DDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
13180
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
13190
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
13198
int rval;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
13221
rval = mptsas_ioc_reset(mpt, first_time);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
13222
if (rval == MPTSAS_RESET_FAIL) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
13227
if ((rval == MPTSAS_SUCCESS_MUR) && (!first_time)) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
13883
int rval;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
13895
rval = mptsas_get_sas_device_page0(mpt, page_address, dev_handle,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
13898
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
13899
rval = DEV_INFO_FAIL_PAGE0;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
13900
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
13906
rval = DEV_INFO_WRONG_DEVICE_TYPE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
13907
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
13918
rval = DEV_INFO_PHYS_DISK;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
13919
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
13942
rval = DEV_INFO_FAIL_GUID;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
13943
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
13962
rval = DEV_INFO_FAIL_ALLOC;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
13963
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
13980
int rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
13985
rval = mptsas_inquiry(mpt, ptgt, lun, 0x83, inq83,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
13987
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
14333
int rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
14339
rval = mptsas_inquiry(mpt, ptgt, lun, 0, (uchar_t *)sd_inq,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
14342
if ((rval == DDI_SUCCESS) && MPTSAS_VALID_LUN(sd_inq)) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
14343
rval = mptsas_create_lun(pdip, sd_inq, dip, ptgt, lun);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
14345
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
14349
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
14356
int rval;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
14405
rval = mptsas_config_raid(pdip, ptgt->m_devhdl, lundip);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
14406
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
14408
rval = mptsas_probe_lun(pdip, lun, lundip, ptgt);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
14410
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
14417
int rval;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
14448
rval = mptsas_probe_lun(pdip, lun, lundip, ptgt);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
14450
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
14623
int rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
14635
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
14639
rval = mptsas_inquiry(mpt, ptgt, 0, 0, (uchar_t *)sd_inq,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
14642
if ((rval == DDI_SUCCESS) && MPTSAS_VALID_LUN(sd_inq)) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
14643
rval = mptsas_create_phys_lun(pdip, sd_inq, NULL, dip, ptgt,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
14646
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
14650
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
14853
int rval = 0;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
14909
rval = mptsas_get_target_device_info(mpt, page_address,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
14911
if ((rval == DEV_INFO_FAIL_PAGE0) ||
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
14912
(rval == DEV_INFO_FAIL_ALLOC)) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
14915
if (rval == DEV_INFO_FAIL_GUID) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15024
int rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15027
rval = mptsas_config_luns(pdip, ptgt);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15028
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15034
rval = mptsas_probe_lun(pdip, 0, &tdip, ptgt);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15036
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15049
int tmp_rval, rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15076
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15112
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15114
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15121
int rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15154
rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15156
rval = mdi_pi_offline(rpip, 0);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15159
rval = ndi_devi_offline(cdip, flags);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15162
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15193
int rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15223
rval = ndi_devi_offline(cdip, flags);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15225
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15233
int rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15239
rval = mptsas_name_child(child, rname, SCSI_MAXNAMELEN);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15240
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15328
int rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15356
rval = mptsas_inquiry(mpt, ptgt, lun, 0x83, inq83,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15358
if (rval != 0) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15368
if ((rval = ddi_devid_scsi_encode(
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15398
} else if (rval == DDI_NOT_WELL_FORMED) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15410
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15420
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15424
rval = mptsas_create_virt_lun(pdip, sd_inq, guid, lun_dip, &pip,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15427
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15428
rval = mptsas_create_phys_lun(pdip, sd_inq, guid, lun_dip,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15441
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15453
int rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15503
rval = mdi_pi_online(*pip, 0);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15505
rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15507
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15514
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15527
rval = mdi_pi_offline(*pip, 0);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15528
if (rval != MDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15643
rval = mptsas_get_sas_device_page0(mpt, page_address,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15646
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15656
rval = mptsas_get_sas_device_page0(mpt, page_address,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15659
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15808
int rval;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15964
rval = mptsas_get_sas_device_page0(mpt, page_address,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15968
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15978
rval = mptsas_get_sas_device_page0(mpt, page_address,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15981
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
16197
int rval;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
16215
rval = mptsas_online_smp(pdip, psmp, smp_dip);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
16217
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
16227
int rval = 0;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
16294
rval = mptsas_get_sas_expander_page0(mpt, page_address,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
16296
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
16309
rval = mptsas_get_sas_device_page0(mpt, page_address,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
16312
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
16323
rval = mptsas_get_sas_device_page0(mpt, page_address,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
16327
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
16567
int rval = 0;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
16614
rval = mptsas_get_target_device_info(mpt, page_address,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
16616
if ((rval == DEV_INFO_FAIL_PAGE0) ||
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
16617
(rval == DEV_INFO_FAIL_ALLOC)) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
16620
if ((rval == DEV_INFO_WRONG_DEVICE_TYPE) ||
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
16621
(rval == DEV_INFO_PHYS_DISK) ||
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
16622
(rval == DEV_INFO_FAIL_GUID)) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
16646
int rval = 0;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
16665
rval = mptsas_get_raid_info(mpt);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
16666
if (rval) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
16684
rval = mptsas_get_target_device_info(mpt, page_address,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
16686
if ((rval == DEV_INFO_FAIL_PAGE0) ||
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
16687
(rval == DEV_INFO_FAIL_ALLOC)) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
16691
if ((rval == DEV_INFO_WRONG_DEVICE_TYPE) ||
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
16692
(rval == DEV_INFO_PHYS_DISK) ||
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
16693
(rval == DEV_INFO_FAIL_GUID)) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
16711
int rval = 0;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
16737
rval = mptsas_get_sas_expander_page0(mpt, page_address,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
16739
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
2409
int rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
2467
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
2471
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
2662
int rval;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
2675
rval = (*callback) (mpt, memp, var, accessp);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
2680
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
2684
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
3215
int rval = 0;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
3228
rval = mptsas_inquiry(mpt, ptgt, 0, 0x89,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
3231
if (rval != 0) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
3311
int rval;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
3322
rval = mptsas_prepare_pkt(cmd);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
3323
if (rval != TRAN_ACCEPT) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
3324
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
3367
rval = mptsas_accept_txwq_and_pkt(mpt, cmd);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
3371
rval = mptsas_accept_txwq_and_pkt(mpt, cmd);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
3410
rval = mptsas_accept_txwq_and_pkt(mpt, cmd);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
3439
rval = mptsas_accept_pkt(mpt, cmd);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
3443
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
3452
int rval;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
3484
rval = mptsas_accept_pkt(mpt, cmd);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
3486
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
3492
int rval = TRAN_ACCEPT;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
3500
rval = mptsas_prepare_pkt(cmd);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
3501
if (rval != TRAN_ACCEPT) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
3503
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
3529
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
3549
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
3590
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
3721
int rval;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
3916
rval = ddi_dma_buf_bind_handle(cmd->cmd_dmahandle, bp,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
3919
if (rval == DDI_DMA_PARTIAL_MAP) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
3927
} else if (rval && (rval != DDI_DMA_MAPPED)) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
3928
switch (rval) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
417
int mode, int *rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
419
int mode, int *rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
421
int mode, int *rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
5138
int rval = TRUE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
5163
rval = FALSE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
5168
if (rval == FALSE) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
5193
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
6224
int rval;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
6240
rval = mptsas_get_sas_device_page0(mpt, page_address, &dev_hdl,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
6244
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
6552
int rval = 0;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
6599
rval = mptsas_get_target_device_info(mpt, page_address,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
6601
if (rval == DEV_INFO_WRONG_DEVICE_TYPE) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
6606
} else if (rval == DEV_INFO_FAIL_ALLOC) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
6610
} else if (rval == DEV_INFO_FAIL_GUID) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
6620
if (rval != DEV_INFO_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
6656
rval = mptsas_config_target(parent, ptgt);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
6780
rval = mptsas_do_scsi_reset(mpt, devhdl);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
6781
if (rval) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
6785
ptgt->m_addr.mta_phymask, rval));
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
6792
rval = mptsas_offline_target(parent, addr);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
6797
ptgt->m_devhdl, ptgt->m_addr.mta_phymask, rval));
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
6840
if (rval == DDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
6861
rval = mptsas_free_devhdl(mpt, devhdl);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
6865
rval));
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
6877
rval = mptsas_do_scsi_reset(mpt, devhdl);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
6878
if (rval) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
6881
devhdl, rval));
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
6888
rval = mptsas_free_devhdl(mpt, devhdl);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
6891
rval));
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
6903
rval = mptsas_get_sas_expander_page0(mpt, page_address, &smp);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
6904
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
6939
rval = mptsas_offline_smp(parent, psmp, NDI_DEVI_REMOVE);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
6986
"rval:%x", mpt->m_instance, psmp->m_devhdl, rval));
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
6987
if (rval == DDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
846
int rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9235
int rval;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9256
rval = mptsas_do_scsi_reset(mpt, ptgt->m_devhdl);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9264
if (rval == FAILED)
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9265
rval = FALSE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9266
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9272
int rval = FALSE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9297
rval = mptsas_ioc_task_management(mpt,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9301
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9758
int rval;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9771
rval = mptsas_do_scsi_abort(mpt, target, lun, pkt);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9773
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9781
int rval = FALSE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9807
rval = TRUE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9816
rval = mptsas_ioc_task_management(mpt,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9825
if (rval == FAILED)
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9826
rval = FALSE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9834
rval = mptsas_ioc_task_management(mpt,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9842
if (rval == FAILED)
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9843
rval = FALSE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9846
if (rval && mptsas_test_stop) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9853
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9865
int rval = FALSE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9879
rval = (int)mpt->m_msg_dma_attr.dma_attr_maxxfer;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9882
rval = TRUE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9887
rval = TRUE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9890
rval = TRUE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9893
rval = TRUE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9896
rval = FALSE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9899
rval = ((mptsas_tgt_private_t *)(ap->a_hba_tran->
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9903
rval = drv_hztousec(((mptsas_tgt_private_t *)
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9908
rval = CDB_GROUP4;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9911
rval = INTERCONNECT_SAS;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9916
rval = TRUE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9918
rval = FALSE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9921
rval = UNDEFINED;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9925
NDBG24(("mptsas_scsi_getcap: %s, rval=%x", cap, rval));
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9928
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9939
int rval = FALSE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9945
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9973
rval = TRUE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9975
rval = FALSE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9982
rval = TRUE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9987
rval = TRUE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9993
rval = TRUE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
9996
rval = UNDEFINED;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1121
int rval = FALSE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1184
rval = mptsas_poll(mpt, cmd, MPTSAS_POLL_TIME);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1187
rval = FALSE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1224
if (rval == FALSE) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1230
rval = FAILED;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1234
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1451
int rval = DDI_SUCCESS, i;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1466
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1467
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1481
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1482
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1522
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1535
int rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1543
rval = mptsas_access_config_page(mpt,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1550
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1562
int rval = DDI_SUCCESS, i;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1577
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1578
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1592
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1593
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1613
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1624
int rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1632
rval = mptsas_access_config_page(mpt,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1638
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1649
int rval = DDI_SUCCESS, i;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1660
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1661
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1674
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1685
int rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1693
rval = mptsas_access_config_page(mpt,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1698
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1709
int rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1719
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1720
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1770
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1781
int rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1791
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1792
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1817
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1828
int rval = DDI_SUCCESS, state;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1842
rval = mptsas_access_config_page(mpt,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1848
rval = mptsas_access_config_page(mpt,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1854
if (rval == DDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1871
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1877
rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1886
rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1890
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1894
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1906
int rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1913
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1914
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1920
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1930
int rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1938
rval = mptsas_access_config_page(mpt,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1942
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
1976
int rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2148
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2168
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2221
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2227
rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2248
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2268
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2286
rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2293
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2299
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2308
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2312
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2333
int rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2341
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2356
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2371
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2394
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2423
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2432
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2479
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2485
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2497
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2509
int rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2525
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2526
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2540
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2541
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2574
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2585
int rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2593
rval = mptsas_access_config_page(mpt,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2602
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2614
int rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2627
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2628
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2642
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2643
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2662
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2673
int rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2681
rval = mptsas_access_config_page(mpt,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2690
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2712
int rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2721
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2736
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2751
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2774
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2801
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2810
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2862
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2868
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2880
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2948
int rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2954
rval = mptsas_access_config_page(mpt,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2959
if (rval == DDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
2967
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
326
int rval = DDI_SUCCESS, config_flags = 0;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
341
if ((rval = (mptsas_request_from_pool(mpt, &cmd, &pkt))) == -1) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
344
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
404
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
440
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
455
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
491
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
547
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
572
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
583
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
588
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
593
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_impl.c
634
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_raid.c
111
int rval = DDI_SUCCESS, i;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_raid.c
130
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_raid.c
131
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_raid.c
254
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_raid.c
260
int rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_raid.c
275
while (rval == DDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_raid.c
280
rval = mptsas_access_config_page(mpt,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_raid.c
289
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_raid.c
301
int rval = DDI_SUCCESS, i;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_raid.c
314
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_raid.c
315
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_raid.c
380
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_raid.c
386
int rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_raid.c
397
rval = mptsas_access_config_page(mpt,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_raid.c
402
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_raid.c
414
int rval = DDI_SUCCESS, i;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_raid.c
423
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_raid.c
424
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_raid.c
435
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_raid.c
441
int rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_raid.c
453
rval = mptsas_access_config_page(mpt,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_raid.c
461
if (rval == DDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_raid.c
470
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_raid.c
482
int rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_raid.c
493
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_raid.c
494
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_raid.c
501
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_raid.c
508
int rval = DDI_SUCCESS, i;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_raid.c
521
rval = mptsas_access_config_page(mpt,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_raid.c
529
if (rval == DDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_raid.c
559
return (rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_smhba.c
153
int rval;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_smhba.c
163
rval = nvlist_add_nvlist_array(nvl, SAS_PHY_INFO_NVL, phy_props,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_smhba.c
165
if (rval) {
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_smhba.c
167
" nv list array add failed, return value %d.", rval);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_smhba.c
450
int rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_smhba.c
459
rval = mptsas_get_sas_phy_page0(mpt,
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_smhba.c
461
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2021
int rval;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2145
rval = pmcs_abort(pwp, phyp, pwrk->htag, 0, 1);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2146
if (rval) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2149
__func__, rval, pwrk->htag);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2171
if (rval == ENOMEM) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2303
int rval, avail, count, actual, max;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2305
rval = ddi_intr_get_nintrs(pwp->dip, type, &count);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2306
if ((rval != DDI_SUCCESS) || (count < min)) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2309
__func__, type, rval, count, min);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2316
rval = ddi_intr_get_navail(pwp->dip, type, &avail);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2317
if ((rval != DDI_SUCCESS) || (avail < min)) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2320
__func__, type, rval, avail, min);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2346
rval = ddi_intr_alloc(pwp->dip, pwp->ih_table, type, 0, max, &actual,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2348
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2351
__func__, type, rval);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
3011
int rval;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
3020
while ((rval = atomic_swap_8(&pwp->scratch_locked, 1)) != 0) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
3024
return (rval);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
154
int rval;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1552
int rval;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1641
if ((rval = pmcs_SAS_run(sp, pwrk)) != 0) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1642
if (rval != PMCS_WQ_RUN_FAIL_RES_CMP) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1648
if (rval == PMCS_WQ_RUN_FAIL_RES) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1657
if ((rval = pmcs_SATA_run(sp, pwrk)) != 0) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1662
if (rval == PMCS_WQ_RUN_FAIL_RES) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1691
boolean_t rval = B_TRUE;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1707
rval = pmcs_scsa_wq_run_one(pwp, xp);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1710
if (rval == B_FALSE) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1719
if (rval) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
193
rval = scsi_device_prop_lookup_string(sd, SCSI_DEVICE_PROP_PATH,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
195
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
755
int rval;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
768
rval = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
808
rval = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
810
rval = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
814
if (rval == 1) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
826
rval = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
830
return (rval);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
847
int cidx, rval = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
864
rval = INT_MAX; /* argh */
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
874
rval = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
879
rval = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
889
rval = SCSI_VERSION_3;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
897
rval = INTERCONNECT_SATA;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
899
rval = INTERCONNECT_SAS;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
904
rval = 16;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
912
rval = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
914
rval = 1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
918
rval = -1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
924
__func__, cap, val, set, rval);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
925
return (rval);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1904
int rval = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1926
rval = pmcs_ssp_tmf(pwp, pptr, SAS_LOGICAL_UNIT_RESET, 0, lun,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1933
rval = pmcs_reset_phy(pwp, pptr, PMCS_PHYOP_LINK_RESET);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1956
return (rval);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2982
int rval = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3016
rval = -1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3050
if (rval != 0) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3051
return (rval);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3066
rval = pmcs_configure_new_devices(pwp, pchild);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3067
if (rval != 0) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3075
return (rval);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
524
int iqe = 0, iqo = 0, result, rval = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
545
rval = -1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
556
rval = -1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5724
boolean_t rval;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5777
rval = pmcs_validate_devid(pptr->children, phyp,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5779
if (rval == B_FALSE) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5780
return (rval);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
600
rval = -1;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6062
int rval = 0;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6071
rval = pmcs_kill_devices(pwp, pchild);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6072
if (rval) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6073
return (rval);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6089
rval = pmcs_kill_device(pwp, phyp);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6090
if (rval) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6092
return (rval);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6102
return (rval);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6111
int rval;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6131
rval = pmcs_abort(pwp, pptr, pptr->device_id, 1, 1);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6132
if (rval) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6135
"PHY 0x%p", __func__, rval, (void *)pptr);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6136
return (rval);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
618
return (rval);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
704
int i, rval;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
721
rval = pmcs_get_time_stamp(pwp, &pwp->fw_timestamp, &pwp->hrtimestamp);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
722
if (rval) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7973
boolean_t rval = B_FALSE;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7985
rval = B_TRUE;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7988
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/fops/tape.c
109
rval = SFO_DEVICE_PROBE_VHCI;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/fops/tape.c
115
if (rval == SFO_DEVICE_PROBE_VHCI) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/fops/tape.c
130
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/fops/tape.c
61
int rval = SFO_DEVICE_PROBE_PHCI;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/fops/tape.c
72
rval = SFO_DEVICE_PROBE_VHCI;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/fops/tape.c
78
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/fops/tape.c
89
rval = SFO_DEVICE_PROBE_VHCI;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/fops/tape.c
96
rval = SFO_DEVICE_PROBE_VHCI;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/fops/tpgs.c
437
int rval = SCSI_SENSE_UNKNOWN;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/fops/tpgs.c
448
rval = SCSI_SENSE_STATE_CHANGED;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/fops/tpgs.c
451
" sense:%x\n", skey, asc, ascq, rval));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/fops/tpgs.c
456
rval = SCSI_SENSE_INACTIVE;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/fops/tpgs.c
459
" sense:%x\n", skey, asc, ascq, rval));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/fops/tpgs.c
462
rval = SCSI_SENSE_NOFAILOVER;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/fops/tpgs.c
465
" sense:%x\n", skey, asc, ascq, rval));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/fops/tpgs.c
468
rval = SCSI_SENSE_NOFAILOVER;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/fops/tpgs.c
471
" sense:%x\n", skey, asc, ascq, rval));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/fops/tpgs.c
482
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1033
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1069
rval = MP_MORE_DATA;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1079
if ((rval == MP_MORE_DATA) || (mpioc->mp_alen > mpioc->mp_olen)) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1089
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1092
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1100
int count = 0, rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1118
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1154
rval = MP_MORE_DATA;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1164
if ((rval == MP_MORE_DATA) || (mpioc->mp_alen > mpioc->mp_olen)) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1174
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1177
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1185
int rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1193
rval = ddi_copyin(mpioc->mp_ibuf, &oid, mpioc->mp_ilen, mode);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1223
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1231
int count = 0, rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1261
rval = MP_MORE_DATA;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1275
if ((rval == MP_MORE_DATA) || (mpioc->mp_alen > mpioc->mp_olen)) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1285
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1290
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1298
int rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1357
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1365
int rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1407
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1415
int rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1458
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1466
int count = 0, rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1484
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1504
rval = MP_MORE_DATA;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1515
if ((rval == MP_MORE_DATA) || (mpioc->mp_alen > mpioc->mp_olen)) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1525
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1528
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1536
int rval = 0, retval = 0, held = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1552
rval = ddi_copyin(mpioc->mp_ibuf, &mp_set_tpg, mpioc->mp_ilen, mode);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1622
if ((rval != MDI_SUCCESS) || (pip == NULL)) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1681
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1689
int rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1699
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1704
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1712
int rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1714
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1726
int rval = ENOTSUP;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1728
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1736
int rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
175
cred_t *credp, int *rval)
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1761
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1769
int rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1794
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1860
int rval;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1879
rval = mdi_select_path(svl->svl_dip, NULL,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1882
if ((rval != MDI_SUCCESS) || (npip == NULL)) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1884
" Unable to find path: %x.", rval));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1891
rval = mdi_select_path(svl->svl_dip, NULL,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
1894
} while ((npip != NULL) && (rval == MDI_SUCCESS));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2006
int rval = 0, uioseg = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2018
"vhci_send_uscsi_cmd: exit INVALID_ID. rval: %d", rval));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2021
rval = scsi_uscsi_alloc_and_copyin((intptr_t)mpioc->mp_obuf,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2023
if (rval != 0) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2025
"scsi_uscsi_alloc_and_copyin failed. rval: %d", rval));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2040
rval = scsi_uscsi_handle_cmd(dev, uioseg,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2042
if (rval != 0) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2044
"scsi_uscsi_handle_cmd failed. rval: %d", rval));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2049
uscmdp) != 0 && rval == 0) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2051
"scsi_uscsi_copyout_and_free failed. rval: %d", rval));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2053
rval = EFAULT;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2063
rval, mpioc->mp_errno));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2065
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2071
int rval = 0, held = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2082
rval = ddi_copyin(mpioc->mp_ibuf, &mp_set_lu_lb_type, mpioc->mp_ilen,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2084
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2086
"Unable to copyin mpioc: %d", rval));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2125
rval = mdi_set_lb_policy(svl->svl_dip, lb_type);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2128
if (rval != MDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2130
"SET LOADBALANCE POLICY FAILED: %x:", rval));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2134
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2142
int rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2164
rval = EFAULT;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2171
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2179
int rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
221
int rval = 0, olen = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2210
rval = EFAULT;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2218
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2226
int rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2231
rval = vhci_mpapi_validate(udata, mpioc, mode, credp);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2233
if (rval == EINVAL) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2235
" vhci_mpapi_validate() Returned %x: INVALID DATA", rval));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2240
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2241
} else if (rval == EPERM) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2243
" vhci_mpapi_validate() Returned %x: NO CREDS", rval));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2248
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2250
} else if ((rval == 0) || (rval == MP_MORE_DATA)) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2256
rval = ddi_copyin(mpioc->mp_ibuf,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2281
rval = vhci_get_driver_prop(vhci, mpioc,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2285
rval = vhci_get_dev_prod_list(vhci, mpioc,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2289
rval = vhci_get_dev_prod_prop(vhci, mpioc,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2293
rval = vhci_get_lu_list(vhci, mpioc,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2297
rval = vhci_get_lu_list_from_tpg(vhci, mpioc,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2301
rval = vhci_get_tpg_list_for_lu(vhci, mpioc,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2305
rval = vhci_get_lu_prop(vhci, mpioc,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2309
rval = vhci_get_path_list_for_mp_lu(vhci, mpioc,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2313
rval = vhci_get_path_list_for_init_port(vhci, mpioc,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2317
rval = vhci_get_path_list_for_target_port(vhci, mpioc,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2321
rval = vhci_get_path_prop(vhci, mpioc,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2325
rval = vhci_get_init_port_list(vhci, mpioc,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2329
rval = vhci_get_init_port_prop(vhci, mpioc,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2333
rval = vhci_get_target_port_prop(vhci, mpioc,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2337
rval = vhci_get_tpg_list_for_lu(vhci, mpioc,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2341
rval = vhci_get_tpg_prop(vhci, mpioc,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2345
rval = vhci_get_target_port_list_for_tpg(vhci, mpioc,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2349
rval = vhci_set_tpg_access_state(vhci, mpioc,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2353
rval = vhci_assign_lu_to_tpg(vhci, mpioc,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2357
rval = vhci_get_prop_lb_list(vhci, mpioc,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2361
rval = vhci_get_prop_lb_prop(vhci, mpioc,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2365
rval = vhci_enable_auto_failback(vhci, mpioc,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2369
rval = vhci_disable_auto_failback(vhci, mpioc,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2373
rval = vhci_enable_path(vhci, mpioc,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2377
rval = vhci_disable_path(vhci, mpioc,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2381
rval = vhci_send_uscsi_cmd(dev, vhci, mpioc,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2385
rval = vhci_set_lu_loadbalance_type(vhci, mpioc, input_data,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2389
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
239
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2396
mpioc->mp_olen, mpioc->mp_alen, mpioc->mp_errno, mode, rval));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2401
rval = EFAULT;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2412
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
244
rval = MP_MORE_DATA;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
256
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
274
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
292
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
310
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
328
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
346
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
364
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
382
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
3954
int rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
3979
rval = EFAULT;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
3986
rval = EFAULT;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
3990
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
4005
int rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
403
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
4056
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
408
rval = MP_MORE_DATA;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
416
rval = EPERM;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
422
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
431
rval = EPERM;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
436
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
4387
int rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
445
rval = EPERM;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
4473
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
451
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
463
rval = EPERM;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
476
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
484
rval = EPERM;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
490
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
498
rval = EPERM;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
504
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
511
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
516
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
524
int rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
569
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
577
int count = 0, rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
599
rval = MP_MORE_DATA;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
606
if ((rval == MP_MORE_DATA) || (mpioc->mp_alen > mpioc->mp_olen)) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
616
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
621
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
629
int rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
662
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
670
int count = 0, rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
686
rval = MP_MORE_DATA;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
697
if ((rval == MP_MORE_DATA) || (mpioc->mp_alen > mpioc->mp_olen)) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
707
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
712
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
720
int count = 0, rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
738
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
758
rval = MP_MORE_DATA;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
772
if ((rval == MP_MORE_DATA) || (mpioc->mp_alen > mpioc->mp_olen)) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
782
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
785
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
793
int count = 0, rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
810
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
830
rval = MP_MORE_DATA;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
841
if ((rval == MP_MORE_DATA) || (mpioc->mp_alen > mpioc->mp_olen)) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
851
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
854
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
862
int rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
904
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
912
int count = 0, rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
930
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
966
rval = MP_MORE_DATA;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
976
if ((rval == MP_MORE_DATA) || (mpioc->mp_alen > mpioc->mp_olen)) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
986
rval = EINVAL;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
989
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
997
int count = 0, rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1002
(rval != MDI_SUCCESS)) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1045
rval = mdi_select_path(tgt_dip, NULL,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1048
if (rval == MDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1126
int rval = TRAN_ACCEPT;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1265
if ((rval = vhci_bind_transport(
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1271
"lbp %x", instance, rval, (void *)vlun,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1277
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1353
rval = mdi_select_path(cdip, NULL, MDI_SELECT_PATH_INSTANCE,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1356
if ((rval == MDI_SUCCESS) && (pip != NULL)) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1439
if (rval = vhci_pgr_register_start(vlun, pkt)) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1442
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1463
rval = scsi_transport(vpkt->vpkt_hba_pkt);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1464
if (rval == TRAN_ACCEPT) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1499
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1544
int rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1553
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1622
int rval = -1;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1646
rval = mdi_select_path(cdip, NULL, MDI_SELECT_ONLINE_PATH, NULL, &pip);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1647
if ((rval != MDI_SUCCESS) || (pip == NULL)) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1731
int rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1736
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1742
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1759
rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1761
rval = 1;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1770
rval = -1;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1778
rval = val;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1790
rval = 1;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1796
rval = UNDEFINED;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1803
cap, val, tgtonly, doset, rval));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1815
rval = (int)VHCI_DMA_MAX_XFER_CAP;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1819
rval = 0x00;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1825
rval = 1;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1829
rval = 3;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1833
rval = INTERCONNECT_FABRIC;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1845
rval = vlun->svl_support_lun_reset;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1849
"Getting the Lun reset capability %d", rval));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1854
rval = vlun->svl_sector_size;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1859
rval = VHCI_SCSI_CDB_SIZE;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1867
rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1873
rval = UNDEFINED;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1880
cap, val, tgtonly, doset, rval));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1882
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
1925
int rval;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2016
rval = vhci_bind_transport(
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2019
rval = vhci_bind_transport(
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2024
(void *)vpkt, rval));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2026
if (rval == TRAN_FATAL_ERROR) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2041
if (rval != TRAN_ACCEPT) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2230
int rval = -1;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2249
rval = mdi_select_path(cdip, NULL,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2252
if ((rval != MDI_SUCCESS) || (pip == NULL)) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2268
rval = mdi_select_path(cdip, NULL,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2273
} while ((rval == MDI_SUCCESS) &&
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2327
rval = MDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2337
rval = mdi_select_path(cdip, vpkt->vpkt_tgt_init_bp,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2340
if (rval == MDI_BUSY) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2345
} else if (rval == MDI_DEVI_ONLINING) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2367
rval = mdi_select_path(cdip, vpkt->vpkt_tgt_init_bp,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2369
if ((rval != MDI_SUCCESS) || (pip == NULL)) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2375
rval = mdi_select_path(cdip,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2378
if ((rval != MDI_SUCCESS) || (pip == NULL)) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2386
} else if ((rval == MDI_FAILURE) ||
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2387
((rval == MDI_NOPATH) && (path_instance))) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2394
if ((pip == NULL) || (rval == MDI_NOPATH)) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2435
rval = mdi_select_path(cdip, vpkt->vpkt_tgt_init_bp,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2450
rval = mdi_select_path(cdip, NULL,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2453
if ((npip == NULL) || (rval != MDI_SUCCESS)) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2467
rval = mdi_failover(vhci->vhci_dip, cdip,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2470
rval = vlun->svl_failover_status;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2472
if (rval == MDI_FAILURE) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2478
} else if (rval == MDI_BUSY) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2584
int rval, retry, nr_retry, ua_retry;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2615
rval = vhci_do_scsi_cmd(new_pkt);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2616
if (rval != 1) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2629
rval = fops->sfo_analyze_sense(svp->svp_psd,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2631
if (rval == SCSI_SENSE_NOT_READY) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2637
if (rval == SCSI_SENSE_STATE_CHANGED) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2642
rval = TRAN_BUSY;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2662
rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2671
rval = VHCI_PGR_ILLEGALOP;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2674
rval = 1;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2679
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2693
int rval;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2713
rval = mdi_select_path(cdip, NULL,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2715
if ((rval != MDI_SUCCESS) || (npip == NULL)) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2744
rval = mdi_select_path(cdip, NULL,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2748
} while ((rval == MDI_SUCCESS) && (npip != NULL));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2843
int rval = VHCI_CMD_CMPLT;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2861
rval = VHCI_CMD_CMPLT;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2882
rval = VHCI_CMD_ERROR;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2904
rval = VHCI_CMD_ERROR;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2919
rval = VHCI_CMD_ERROR;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2936
rval = VHCI_CMD_ERROR;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2943
rval = VHCI_CMD_RETRY;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2948
if (rval == VHCI_CMD_RETRY) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2976
rval = VHCI_CMD_ERROR;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
2992
if (rval == VHCI_CMD_CMPLT) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
3114
if (rval == VHCI_CMD_ERROR) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
3143
rval = VHCI_CMD_CMPLT;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
3149
if (rval == VHCI_CMD_CMPLT) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
3153
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
3163
int rval, held;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
3264
rval = fops->sfo_analyze_sense(svp->svp_psd,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
3266
if ((rval == SCSI_SENSE_NOFAILOVER) ||
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
3267
(rval == SCSI_SENSE_UNKNOWN) ||
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
3268
(rval == SCSI_SENSE_NOT_READY)) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
3272
} else if (rval == SCSI_SENSE_STATE_CHANGED) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
3310
rval = vhci_handle_ext_fo
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
3311
(pkt, rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
3312
if (rval == BUSY_RETURN) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
332
int rval;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
338
if ((rval = ddi_soft_state_init(&vhci_softstate,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
342
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
345
if ((rval = scsi_hba_init(&modlinkage)) != 0) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
349
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
361
if ((rval = mod_install(&modlinkage)) != 0) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
3669
int rval, updt_paths;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
3700
rval = vlun->svl_fops->sfo_analyze_sense(svp->svp_psd, sensep,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
3702
switch (rval) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
373
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
383
int rval;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
390
if ((rval = mod_remove(&modlinkage)) != 0) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
392
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
405
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
4079
int rval = MDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
4185
if ((rval = (*hba->tran_tgt_init)(pdip, tgt_dip,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
4189
"path=0x%p rval=%x", (void *)pip, rval));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
4217
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
4296
int rval = MDI_SUCCESS;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
4490
rval = vhci_pathinfo_online(vdip, pip, flags);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
4494
rval = vhci_pathinfo_offline(vdip, pip, flags);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
4505
if ((rval == MDI_SUCCESS) && (scsi_callback_id != 0)) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
4508
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
5070
int rval = MDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
5117
"scsi_probe failed path:%p rval:%x\n", (void *)pip, rval));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
5118
rval = MDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
5156
rval = MDI_NOT_SUPPORTED;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
5166
rval = MDI_NOT_SUPPORTED;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
5191
rval = vhci_pgr_validate_and_register(svp);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
5192
if (rval != 1) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
5193
rval = MDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
5227
rval = MDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
5243
rval = vhci_update_pathinfo(psd, pip, sfo, vlun, vhci);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
5244
if (rval == MDI_FAILURE) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
5285
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
5409
vhci_ctl(dev_t dev, int cmd, intptr_t data, int mode, cred_t *credp, int *rval)
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
599
cred_t *credp, int *rval)
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
602
return (vhci_devctl(dev, cmd, data, mode, credp, rval));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
604
return (vhci_mpapi_ctl(dev, cmd, data, mode, credp, rval));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
606
return (vhci_ctl(dev, cmd, data, mode, credp, rval));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
616
int rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
638
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
643
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
6852
int rval, retval = MDI_FAILURE;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
6906
rval = sfo->sfo_pathclass_next(pclass1, &pclass2,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
6908
if (rval == ENOENT) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
6917
} else if (rval == EINVAL) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
7545
int rval, success;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
7558
rval = mdi_select_path(cdip, NULL, MDI_SELECT_ONLINE_PATH |
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
7560
if ((rval != MDI_SUCCESS) || (pip == NULL)) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
7624
rval = vhci_do_prout(osvp);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
7625
if (rval == 1) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
7636
" on osvp 0x%p failed %x\n", (void *)osvp, rval));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
7645
rval = mdi_select_path(cdip, NULL,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
7649
} while ((rval == MDI_SUCCESS) && (npip != NULL));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
7684
rval = vhci_do_prout(svp);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
7686
if (rval != 1) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
7690
(void *)pip, (void *)svp, rval));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
7700
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
7750
rval = vhci_do_prout(osvp);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
7751
if (rval == 1) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
7762
" osvp 0x%p failed %x\n", (void *)osvp, rval));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
7772
rval = mdi_select_path(cdip, NULL,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
7776
} while ((rval == MDI_SUCCESS) && (npip != NULL));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
7805
rval = mdi_select_path(cdip, NULL, MDI_SELECT_ONLINE_PATH |
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
7807
if ((rval != MDI_SUCCESS) || (pip == NULL)) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
7814
if ((rval = vhci_do_prout(svp)) != 1) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
7824
if (rval == VHCI_PGR_ILLEGALOP) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
7829
rval = 1;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
7831
rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
7841
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
7855
int rval = TRAN_BUSY;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
7875
while ((rval = vhci_scsi_start(&(vpkt->vpkt_tgt_pkt->pkt_address),
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
7880
switch (rval) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
7896
"TRAN_rval %d returned for dip 0x%p", rval,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
8091
int rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
8102
rval = scsi_ifsetcap(ap, cap, val, whom);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
8106
(void *)pip, (void *)ap, rval));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
8108
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
8133
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
8141
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
8150
rval = scsi_ifsetcap(pap, cap, val, whom);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
8154
(void *)pip, (void *)ap, rval));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
8170
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
8322
int rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
8375
rval = -1;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
8378
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
8537
int stat_size, rval;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
8590
while (((rval = scsi_transport(pkt)) == TRAN_BUSY) &&
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
8599
switch (rval) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
8601
rval = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
8607
rval, bp->b_bcount, bp->b_resid));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
8613
rval = EIO;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
8618
"vhci_uscsi_iostart: exit: rval: %d", rval));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
8619
return (rval);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
926
int rval;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
989
rval = mdi_select_path(tgt_dip, NULL,
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
991
if (rval == MDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci_tpgs.c
115
rval = vhci_do_scsi_cmd(pkt);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci_tpgs.c
117
if (rval == 0) {
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci_tpgs.c
155
" sense:%x\n", skey, asc, ascq, rval));
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci_tpgs.c
56
int len, rval, ss = SCSI_SENSE_UNKNOWN;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hba.c
1004
int rval;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hba.c
1062
rval = mdi_pi_alloc_compatible(s->s_dip, nodename, guid_ptr,
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hba.c
1064
if (rval == MDI_SUCCESS) {
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hba.c
1121
boolean_t rval = B_FALSE;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hba.c
1150
rval = create_virt_lun(s, d, &inq, childp);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hba.c
1152
if (rval == B_FALSE)
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hba.c
1153
rval = create_phys_lun(s, d, &inq, childp);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hba.c
1155
return ((rval == B_TRUE) ? NDI_SUCCESS : NDI_FAILURE);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hba.c
293
int rval = FALSE;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hba.c
303
rval = TRUE;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hba.c
314
rval = TRUE;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hba.c
317
return (rval);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hba.c
381
int rval = FALSE;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hba.c
392
rval = 1;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hba.c
406
return (rval);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hw.c
315
uint32_t rval;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hw.c
317
rval = db = G32(s, sis_host_to_ctrl_doorbell);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hw.c
320
return (rval);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1051
rval = B_TRUE;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1058
return (rval);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1118
boolean_t rval = B_FALSE;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1133
rval = B_TRUE;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1136
return (rval);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1226
boolean_t rval;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1229
rval = poll_for_admin_response(s, rsp);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1230
if (rval == B_TRUE) {
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1231
rval = validate_admin_response(rsp, rqst->function_code);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1232
if (rval == B_FALSE) {
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1236
return (rval);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1409
boolean_t rval = B_FALSE; // default to error case
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1433
rval = B_TRUE;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1439
return (rval);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1535
boolean_t rval = B_FALSE;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1558
rval = B_TRUE;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1561
return (rval);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1569
boolean_t rval = B_FALSE;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1587
rval = B_TRUE;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1590
return (rval);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1597
boolean_t rval = B_FALSE;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1611
rval = submit_raid_rqst_sync(s, &rqst.header, NULL);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1614
return (rval);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1621
boolean_t rval = B_FALSE;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1639
rval = B_TRUE;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1643
return (rval);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1654
boolean_t rval = B_FALSE;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1671
rval = B_TRUE;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1674
if (rval == B_FALSE) {
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1681
return (rval);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1741
boolean_t rval = B_FALSE;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1752
rval = B_TRUE;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1755
return (rval);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1761
boolean_t rval = B_FALSE;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1768
rval = B_TRUE;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1773
rval = B_TRUE;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
1780
return (rval);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
458
boolean_t rval;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
478
rval = submit_admin_rqst_sync(s, &rqst, &rsp);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
497
return (rval);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
861
boolean_t rval = B_FALSE;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
900
rval = submit_raid_rqst_sync(s, &rqst.header, NULL);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
904
return (rval);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
914
boolean_t rval = B_FALSE;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
925
rval = B_TRUE;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
930
return (rval);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
940
boolean_t rval = B_FALSE;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
955
rval = write_host_wellness(s, b, sizeof (*b));
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
958
return (rval);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_init.c
976
boolean_t rval = B_FALSE;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_util.c
255
pqi_cmd_action_t rval;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_util.c
258
rval = pqi_cmd_action_nolock(c, a);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_util.c
261
return (rval);
usr/src/uts/common/io/scsi/adapters/smrt/smrt.c
459
int *rval)
usr/src/uts/common/io/scsi/adapters/smrt/smrt.c
477
status = scsi_hba_ioctl(dev, cmd, arg, mode, credp, rval);
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1002
rval = SCSI_TEST_TRAN_BUSY;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1006
rval = SCSI_TEST_TRAN_REJECT;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1010
if (rval != SCSI_TEST_CMPLT_GOOD)
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1011
scsi_test_ereport_post(pkt, ctxt, rval);
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1013
return (rval);
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1091
int rval = SCSIPROBE_NOMEM;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1123
rval = SCSIPROBE_NOMEM_CB;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1155
rval = SCSIPROBE_NORESP;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1164
rval = SCSIPROBE_FAILURE;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1187
rval = SCSIPROBE_NORESP;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1189
rval = SCSIPROBE_FAILURE;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1199
rval = SCSIPROBE_BUSY;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1227
rval = SCSIPROBE_NOMEM_CB;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1259
rval = SCSIPROBE_FAILURE;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1274
rval = SCSIPROBE_FAILURE;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1279
rval = SCSIPROBE_BUSY;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1305
rval = SCSIPROBE_FAILURE;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1308
rval = SCSIPROBE_FAILURE;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1321
rval = SCSIPROBE_NONCCS;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1326
rval = SCSIPROBE_EXISTS;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1334
if ((rval == SCSIPROBE_EXISTS) && (pass == 1) &&
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1344
rval = SCSIPROBE_FAILURE;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
1359
return (rval);
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
2011
int rval;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
2024
rval = -1;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
2028
rval = send_scsi_INQUIRY(sd, callback, inq80,
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
2030
if (rval)
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
2037
rval = -1;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
2047
rval = -1;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
2051
rval = send_scsi_INQUIRY(sd, callback, inq83,
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
2053
if (rval)
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
2060
rval = -1;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
2066
rval = 0;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
2074
return (rval);
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
2092
int rval;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
2108
rval = send_scsi_INQUIRY(sd, callback,
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
2116
if ((rval == 0) &&
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
2163
int rval = -1;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
2208
rval = 0;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
2219
return (rval);
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
294
int rval = SCSIPROBE_EXISTS;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
302
rval = SCSIPROBE_NOMEM;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
312
rval = SCSIPROBE_NOMEM_CB;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
314
rval = SCSIPROBE_NOMEM;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
335
rval = SCSIPROBE_FAILURE;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
346
return (rval);
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
360
int rval = SCSIPROBE_EXISTS;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
381
rval = SCSIPROBE_NORESP;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
383
rval = SCSIPROBE_FAILURE;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
391
rval = scsi_slave_do_rqsense(sd, callback);
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
394
if (rval != SCSIPROBE_EXISTS) {
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
396
return (rval);
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
406
rval = SCSIPROBE_NORESP;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
408
rval = SCSIPROBE_FAILURE;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
416
rval = scsi_slave_do_rqsense(sd, callback);
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
427
if (rval == SCSIPROBE_EXISTS) {
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
430
return (rval);
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
906
uint32_t rval;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
974
rval = SCSI_TEST_CMPLT_GOOD;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
978
rval = SCSI_TEST_CMPLT_BUSY;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
982
rval = SCSI_TEST_CMPLT_CHECK;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
986
rval = SCSI_TEST_CMPLT_OTHER;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
992
rval = SCSI_TEST_CMD_INCOMPLETE;
usr/src/uts/common/io/scsi/conf/scsi_confsubr.c
996
rval = SCSI_TEST_NOTCMPLT;
usr/src/uts/common/io/scsi/impl/scsi_capabilities.c
110
return (rval);
usr/src/uts/common/io/scsi/impl/scsi_capabilities.c
95
int rval;
usr/src/uts/common/io/scsi/impl/scsi_capabilities.c
98
rval = (*A_TO_TRAN(ap)->tran_setcap)(ap, cap, value, whom);
usr/src/uts/common/io/scsi/impl/scsi_capabilities.c
99
if ((rval == 1) || A_TO_TRAN(ap)->tran_setup_pkt) {
usr/src/uts/common/io/scsi/impl/scsi_hba.c
5435
int rval;
usr/src/uts/common/io/scsi/impl/scsi_hba.c
5468
rval = mdi_pi_online(pchild, 0);
usr/src/uts/common/io/scsi/impl/scsi_hba.c
5473
if (rval != MDI_SUCCESS) {
usr/src/uts/common/io/scsi/impl/scsi_hba.c
6720
int rval;
usr/src/uts/common/io/scsi/impl/scsi_hba.c
6789
rval = mdi_pi_offline(path, 0);
usr/src/uts/common/io/scsi/impl/scsi_hba.c
6798
if (rval == MDI_SUCCESS) {
usr/src/uts/common/io/scsi/impl/scsi_hba.c
9047
int rval, i;
usr/src/uts/common/io/scsi/impl/scsi_hba.c
9054
rval = ddi_prop_lookup_string_array(DDI_DEV_T_ANY, self,
usr/src/uts/common/io/scsi/impl/scsi_hba.c
9063
if (rval == DDI_PROP_SUCCESS) {
usr/src/uts/common/io/scsi/impl/scsi_hba.c
9086
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/impl/scsi_hba.c
9088
rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/impl/scsi_hba.c
9099
return (rval);
usr/src/uts/common/io/scsi/impl/scsi_hba.c
9110
int rval;
usr/src/uts/common/io/scsi/impl/scsi_hba.c
9112
rval = ddi_prop_lookup_string_array(DDI_DEV_T_ANY, self,
usr/src/uts/common/io/scsi/impl/scsi_hba.c
9116
if (rval != DDI_PROP_SUCCESS)
usr/src/uts/common/io/scsi/impl/scsi_hba.c
9121
rval = 1;
usr/src/uts/common/io/scsi/impl/scsi_hba.c
9123
rval = 0;
usr/src/uts/common/io/scsi/impl/scsi_hba.c
9126
return (rval);
usr/src/uts/common/io/scsi/impl/scsi_hba.c
9135
int rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/impl/scsi_hba.c
9140
rval = ddi_prop_lookup_string_array(DDI_DEV_T_ANY, self,
usr/src/uts/common/io/scsi/impl/scsi_hba.c
9144
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/scsi/impl/scsi_hba.c
9162
rval = ndi_devi_config_one(self, addr, &child, NDI_NO_EVENT);
usr/src/uts/common/io/scsi/impl/scsi_hba.c
9165
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/scsi/impl/scsi_reset_notify.c
45
int rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/impl/scsi_reset_notify.c
64
rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/impl/scsi_reset_notify.c
74
rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/impl/scsi_reset_notify.c
77
return (rval);
usr/src/uts/common/io/scsi/impl/scsi_subr.c
162
rval = 0;
usr/src/uts/common/io/scsi/impl/scsi_subr.c
2086
int rval = 0;
usr/src/uts/common/io/scsi/impl/scsi_subr.c
2102
if ((rval = scsi_uscsi_copyin(arg, flag, ap, &uscmd)) != 0) {
usr/src/uts/common/io/scsi/impl/scsi_subr.c
2105
rval = EFAULT;
usr/src/uts/common/io/scsi/impl/scsi_subr.c
2110
return (rval);
usr/src/uts/common/io/scsi/impl/scsi_subr.c
2145
int rval;
usr/src/uts/common/io/scsi/impl/scsi_subr.c
2167
rval = EFAULT;
usr/src/uts/common/io/scsi/impl/scsi_subr.c
217
if (rval)
usr/src/uts/common/io/scsi/impl/scsi_subr.c
2178
rval = EFAULT;
usr/src/uts/common/io/scsi/impl/scsi_subr.c
218
return (rval);
usr/src/uts/common/io/scsi/impl/scsi_subr.c
2183
rval = EFAULT;
usr/src/uts/common/io/scsi/impl/scsi_subr.c
2188
rval = EFAULT;
usr/src/uts/common/io/scsi/impl/scsi_subr.c
2221
rval = EFAULT;
usr/src/uts/common/io/scsi/impl/scsi_subr.c
2235
rval = EINVAL;
usr/src/uts/common/io/scsi/impl/scsi_subr.c
2240
rval = EINVAL;
usr/src/uts/common/io/scsi/impl/scsi_subr.c
2249
rval = EINVAL;
usr/src/uts/common/io/scsi/impl/scsi_subr.c
2261
rval = EFAULT;
usr/src/uts/common/io/scsi/impl/scsi_subr.c
2271
rval = EINVAL;
usr/src/uts/common/io/scsi/impl/scsi_subr.c
2278
rval = EINVAL;
usr/src/uts/common/io/scsi/impl/scsi_subr.c
2322
return (rval);
usr/src/uts/common/io/scsi/impl/scsi_subr.c
2356
int rval;
usr/src/uts/common/io/scsi/impl/scsi_subr.c
2394
rval = scsi_ifsetcap(uicmd->uic_ap, "synchronous",
usr/src/uts/common/io/scsi/impl/scsi_subr.c
2429
rval = physio(strat, bp, dev,
usr/src/uts/common/io/scsi/impl/scsi_subr.c
2445
rval = biowait(bp);
usr/src/uts/common/io/scsi/impl/scsi_subr.c
2454
return (rval);
usr/src/uts/common/io/scsi/impl/scsi_subr.c
2580
int rval = 0;
usr/src/uts/common/io/scsi/impl/scsi_subr.c
2582
rval = scsi_uscsi_copyout(arg, uscmd);
usr/src/uts/common/io/scsi/impl/scsi_subr.c
2586
return (rval);
usr/src/uts/common/io/scsi/impl/scsi_subr.c
2604
int rval = 0;
usr/src/uts/common/io/scsi/impl/scsi_subr.c
2621
rval = EFAULT;
usr/src/uts/common/io/scsi/impl/scsi_subr.c
2648
rval = EFAULT;
usr/src/uts/common/io/scsi/impl/scsi_subr.c
2654
rval = EFAULT;
usr/src/uts/common/io/scsi/impl/scsi_subr.c
2658
rval = EFAULT;
usr/src/uts/common/io/scsi/impl/scsi_subr.c
2662
rval = EFAULT;
usr/src/uts/common/io/scsi/impl/scsi_subr.c
2674
return (rval);
usr/src/uts/common/io/scsi/impl/scsi_subr.c
82
int rval = -1;
usr/src/uts/common/io/scsi/impl/scsi_transport.c
107
int rval = TRAN_ACCEPT;
usr/src/uts/common/io/scsi/impl/scsi_transport.c
196
rval = (*A_TO_TRAN(ap)->tran_start)(ap, pkt);
usr/src/uts/common/io/scsi/impl/scsi_transport.c
199
if (rval == TRAN_ACCEPT) {
usr/src/uts/common/io/scsi/impl/scsi_transport.c
208
return (rval);
usr/src/uts/common/io/scsi/impl/scsi_transport.c
233
if ((rval = (*A_TO_TRAN(ap)->tran_start)(ap, pkt)) ==
usr/src/uts/common/io/scsi/impl/scsi_transport.c
245
return (rval);
usr/src/uts/common/io/scsi/impl/scsi_watch.c
1022
int rval = 0;
usr/src/uts/common/io/scsi/impl/scsi_watch.c
1032
rval = swr->swr_ref;
usr/src/uts/common/io/scsi/impl/scsi_watch.c
1034
return (rval);
usr/src/uts/common/io/scsi/impl/scsi_watch.c
1040
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
10009
rval = SD_NOT_READY_VALID;
usr/src/uts/common/io/scsi/targets/sd.c
10034
rval = SD_NOT_READY_VALID;
usr/src/uts/common/io/scsi/targets/sd.c
10048
rval = SD_READY_VALID;
usr/src/uts/common/io/scsi/targets/sd.c
10068
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
11032
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
11043
rval = sd_ssc_send(ssc, incmd, flag, dataspace, path_flag);
usr/src/uts/common/io/scsi/targets/sd.c
11046
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
11206
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
11275
rval = scsi_uscsi_copyin((intptr_t)incmd, flag,
usr/src/uts/common/io/scsi/targets/sd.c
11277
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
11280
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
11313
rval = scsi_uscsi_handle_cmd(dev, dataspace, uscmd,
usr/src/uts/common/io/scsi/targets/sd.c
11346
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
12902
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
12946
rval = sd_setup_rw_pkt(un, &pktp, bp,
usr/src/uts/common/io/scsi/targets/sd.c
12950
if (rval == 0) {
usr/src/uts/common/io/scsi/targets/sd.c
12996
ASSERT(rval == SD_PKT_ALLOC_FAILURE);
usr/src/uts/common/io/scsi/targets/sd.c
12998
if (rval == SD_PKT_ALLOC_FAILURE) {
usr/src/uts/common/io/scsi/targets/sd.c
14003
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
14404
rval = scsi_transport(xp->xb_pktp);
usr/src/uts/common/io/scsi/targets/sd.c
14408
"sd_start_cmds: scsi_transport() returned %d\n", rval);
usr/src/uts/common/io/scsi/targets/sd.c
14410
switch (rval) {
usr/src/uts/common/io/scsi/targets/sd.c
14529
sd_print_transport_rejected_message(un, xp, rval);
usr/src/uts/common/io/scsi/targets/sd.c
18511
int rval = 0;
usr/src/uts/common/io/scsi/targets/sd.c
18521
rval = scsi_reset(SD_ADDRESS(un), RESET_LUN);
usr/src/uts/common/io/scsi/targets/sd.c
18523
if (rval == 0) {
usr/src/uts/common/io/scsi/targets/sd.c
18526
rval = scsi_reset(SD_ADDRESS(un), RESET_TARGET);
usr/src/uts/common/io/scsi/targets/sd.c
18529
if (rval == 0) {
usr/src/uts/common/io/scsi/targets/sd.c
18536
rval = scsi_reset(SD_ADDRESS(un), RESET_ALL);
usr/src/uts/common/io/scsi/targets/sd.c
18539
if (rval == 0) {
usr/src/uts/common/io/scsi/targets/sd.c
18692
int rval = 0;
usr/src/uts/common/io/scsi/targets/sd.c
18716
rval = scsi_reset(SD_ADDRESS(un), RESET_LUN);
usr/src/uts/common/io/scsi/targets/sd.c
18718
if (rval == 0) {
usr/src/uts/common/io/scsi/targets/sd.c
18721
rval = scsi_reset(SD_ADDRESS(un), RESET_TARGET);
usr/src/uts/common/io/scsi/targets/sd.c
18725
if (rval == 0) {
usr/src/uts/common/io/scsi/targets/sd.c
18988
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
18995
rval = sd_send_scsi_READ_CAPACITY(ssc, &capacity, &lbasize,
usr/src/uts/common/io/scsi/targets/sd.c
18998
if (rval != 0)
usr/src/uts/common/io/scsi/targets/sd.c
19043
rval = sd_send_scsi_DOORLOCK(ssc, SD_REMOVAL_PREVENT,
usr/src/uts/common/io/scsi/targets/sd.c
19046
if (rval != 0)
usr/src/uts/common/io/scsi/targets/sd.c
19049
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
19761
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
19796
rval = sd_send_scsi_START_STOP_UNIT(ssc, SD_POWER_CONDITION,
usr/src/uts/common/io/scsi/targets/sd.c
19799
rval = sd_send_scsi_START_STOP_UNIT(ssc, SD_START_STOP,
usr/src/uts/common/io/scsi/targets/sd.c
19803
if (rval != 0)
usr/src/uts/common/io/scsi/targets/sd.c
20328
int rval = 0;
usr/src/uts/common/io/scsi/targets/sd.c
20359
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
20445
rval = sd_send_scsi_SYNCHRONIZE_CACHE_biodone(bp);
usr/src/uts/common/io/scsi/targets/sd.c
20448
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
20651
int rval = 0;
usr/src/uts/common/io/scsi/targets/sd.c
20662
rval = cmlb_partinfo(un->un_cmlbhandle, partition, &part_len_sysblks,
usr/src/uts/common/io/scsi/targets/sd.c
20664
if (rval != 0)
usr/src/uts/common/io/scsi/targets/sd.c
20678
rval = SET_ERROR(EINVAL);
usr/src/uts/common/io/scsi/targets/sd.c
20699
rval = SET_ERROR(EINVAL);
usr/src/uts/common/io/scsi/targets/sd.c
20718
rval = sd_send_scsi_UNMAP_issue_one(ssc, uph,
usr/src/uts/common/io/scsi/targets/sd.c
20720
if (rval != 0)
usr/src/uts/common/io/scsi/targets/sd.c
20733
rval = sd_send_scsi_UNMAP_issue_one(ssc, uph, descr_issued,
usr/src/uts/common/io/scsi/targets/sd.c
20739
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
20755
int rval = 0;
usr/src/uts/common/io/scsi/targets/sd.c
20777
rval = sd_send_scsi_UNMAP_issue(dev, ssc, dfl);
usr/src/uts/common/io/scsi/targets/sd.c
20784
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
2242
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
2268
rval = DDI_PROBE_SUCCESS;
usr/src/uts/common/io/scsi/targets/sd.c
2272
rval = DDI_PROBE_SUCCESS;
usr/src/uts/common/io/scsi/targets/sd.c
22850
int rval = 0;
usr/src/uts/common/io/scsi/targets/sd.c
22866
rval = sd_send_scsi_TEST_UNIT_READY(ssc, SD_CHECK_FOR_MEDIA);
usr/src/uts/common/io/scsi/targets/sd.c
22867
if (rval == ENXIO) {
usr/src/uts/common/io/scsi/targets/sd.c
22869
} else if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
22898
rval = EIO;
usr/src/uts/common/io/scsi/targets/sd.c
22947
rval = sd_send_scsi_READ_CAPACITY_16(ssc, &capacity, &lbasize,
usr/src/uts/common/io/scsi/targets/sd.c
2295
rval = DDI_PROBE_FAILURE;
usr/src/uts/common/io/scsi/targets/sd.c
22957
if (dki_pbsize == NULL || rval != 0 ||
usr/src/uts/common/io/scsi/targets/sd.c
22959
rval = sd_send_scsi_READ_CAPACITY(ssc, &capacity, &lbasize,
usr/src/uts/common/io/scsi/targets/sd.c
22962
switch (rval) {
usr/src/uts/common/io/scsi/targets/sd.c
2297
rval = DDI_PROBE_SUCCESS;
usr/src/uts/common/io/scsi/targets/sd.c
22983
rval = EACCES;
usr/src/uts/common/io/scsi/targets/sd.c
22986
rval = EIO;
usr/src/uts/common/io/scsi/targets/sd.c
23018
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
23019
if (rval == EIO)
usr/src/uts/common/io/scsi/targets/sd.c
23028
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
2303
rval = DDI_PROBE_FAILURE;
usr/src/uts/common/io/scsi/targets/sd.c
23051
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
23053
rval = sd_get_media_info_com(dev, &mi.dki_media_type,
usr/src/uts/common/io/scsi/targets/sd.c
23056
if (rval)
usr/src/uts/common/io/scsi/targets/sd.c
23057
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
23059
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/sd.c
23060
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
2308
rval = DDI_PROBE_PARTIAL;
usr/src/uts/common/io/scsi/targets/sd.c
23087
int rval = 0;
usr/src/uts/common/io/scsi/targets/sd.c
23090
rval = sd_get_media_info_com(dev, &mie.dki_media_type,
usr/src/uts/common/io/scsi/targets/sd.c
23093
if (rval)
usr/src/uts/common/io/scsi/targets/sd.c
23094
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
23106
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/sd.c
23107
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
23166
int rval = 0;
usr/src/uts/common/io/scsi/targets/sd.c
2319
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
23210
rval = EAGAIN;
usr/src/uts/common/io/scsi/targets/sd.c
23247
rval = EINTR;
usr/src/uts/common/io/scsi/targets/sd.c
23279
rval = sd_send_scsi_READ_CAPACITY(ssc,
usr/src/uts/common/io/scsi/targets/sd.c
23281
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
23283
if (rval == EIO)
usr/src/uts/common/io/scsi/targets/sd.c
23292
rval = EIO;
usr/src/uts/common/io/scsi/targets/sd.c
23317
rval = sd_send_scsi_DOORLOCK(ssc, SD_REMOVAL_PREVENT,
usr/src/uts/common/io/scsi/targets/sd.c
23322
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
23323
if (rval == EIO)
usr/src/uts/common/io/scsi/targets/sd.c
23370
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
23586
int rval = 0;
usr/src/uts/common/io/scsi/targets/sd.c
23600
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/sd.c
23623
rval = EAGAIN;
usr/src/uts/common/io/scsi/targets/sd.c
23635
rval = EAGAIN;
usr/src/uts/common/io/scsi/targets/sd.c
23643
rval = sd_send_scsi_LOG_SENSE(ssc, temperature_page,
usr/src/uts/common/io/scsi/targets/sd.c
23645
if (rval != 0)
usr/src/uts/common/io/scsi/targets/sd.c
23677
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/sd.c
23682
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
23683
if (rval == EIO)
usr/src/uts/common/io/scsi/targets/sd.c
23700
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
23807
int rval = 0;
usr/src/uts/common/io/scsi/targets/sd.c
23825
rval = sd_check_mhd(dev, mh_time);
usr/src/uts/common/io/scsi/targets/sd.c
23833
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
23860
int rval = 0;
usr/src/uts/common/io/scsi/targets/sd.c
23869
rval = ddi_copyin(arg, tkown, sizeof (struct mhioctkown), flag);
usr/src/uts/common/io/scsi/targets/sd.c
23870
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
23871
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/sd.c
23876
rval = sd_take_ownership(dev, tkown);
usr/src/uts/common/io/scsi/targets/sd.c
23878
if (rval == 0) {
usr/src/uts/common/io/scsi/targets/sd.c
23911
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
23934
int rval = 0;
usr/src/uts/common/io/scsi/targets/sd.c
23959
if ((rval = sd_reserve_release(dev, SD_RELEASE)) == 0) {
usr/src/uts/common/io/scsi/targets/sd.c
23978
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
24002
int rval = 0;
usr/src/uts/common/io/scsi/targets/sd.c
24026
rval = sd_send_scsi_TEST_UNIT_READY(ssc, 0);
usr/src/uts/common/io/scsi/targets/sd.c
24029
switch (rval) {
usr/src/uts/common/io/scsi/targets/sd.c
24036
rval = EIO;
usr/src/uts/common/io/scsi/targets/sd.c
24040
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
24041
if (rval == EIO)
usr/src/uts/common/io/scsi/targets/sd.c
24047
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
24073
int rval = 0;
usr/src/uts/common/io/scsi/targets/sd.c
24089
if ((rval = sd_persistent_reservation_in_read_keys(un,
usr/src/uts/common/io/scsi/targets/sd.c
24091
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
24105
if ((rval = sd_persistent_reservation_in_read_keys(un,
usr/src/uts/common/io/scsi/targets/sd.c
24107
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
24121
rval = sd_persistent_reservation_in_read_keys(un, &inkeys, flag);
usr/src/uts/common/io/scsi/targets/sd.c
24122
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
24123
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
24131
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
24157
int rval = 0;
usr/src/uts/common/io/scsi/targets/sd.c
24174
if ((rval = sd_persistent_reservation_in_read_resv(un,
usr/src/uts/common/io/scsi/targets/sd.c
24176
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
24190
if ((rval = sd_persistent_reservation_in_read_resv(un,
usr/src/uts/common/io/scsi/targets/sd.c
24192
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
24206
rval = sd_persistent_reservation_in_read_resv(un, &inresvs, flag);
usr/src/uts/common/io/scsi/targets/sd.c
24207
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
24208
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
24216
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
25000
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
25018
if ((rval = sd_reserve_release(dev, SD_PRIORITY_RESERVE))
usr/src/uts/common/io/scsi/targets/sd.c
25021
"sd_take_ownership: return(1)=%d\n", rval);
usr/src/uts/common/io/scsi/targets/sd.c
25022
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
25055
rval = (un->un_resvd_status &
usr/src/uts/common/io/scsi/targets/sd.c
25082
rval = 0; /* Achieved a stable ownership */
usr/src/uts/common/io/scsi/targets/sd.c
25086
rval = EACCES; /* No ownership in max possible time */
usr/src/uts/common/io/scsi/targets/sd.c
25091
"sd_take_ownership: return(2)=%d\n", rval);
usr/src/uts/common/io/scsi/targets/sd.c
25092
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
25115
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
25138
rval = sd_send_scsi_cmd(dev, com, FKIOCTL, UIO_SYSSPACE,
usr/src/uts/common/io/scsi/targets/sd.c
25147
(rval != 0) && (com->uscsi_status == STATUS_RESERVATION_CONFLICT)) {
usr/src/uts/common/io/scsi/targets/sd.c
25162
rval = EIO;
usr/src/uts/common/io/scsi/targets/sd.c
25164
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
25177
rval = sd_send_scsi_cmd(dev, com, FKIOCTL, UIO_SYSSPACE,
usr/src/uts/common/io/scsi/targets/sd.c
25182
if ((rval != 0) && (com->uscsi_status == STATUS_RESERVATION_CONFLICT)) {
usr/src/uts/common/io/scsi/targets/sd.c
25183
rval = EACCES;
usr/src/uts/common/io/scsi/targets/sd.c
25187
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
25213
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
25492
rval = sd_setup_next_rw_pkt(un, wr_pktp, wr_bp,
usr/src/uts/common/io/scsi/targets/sd.c
25496
rval = sd_setup_rw_pkt(un, &wr_pktp, wr_bp,
usr/src/uts/common/io/scsi/targets/sd.c
25501
rval = sd_setup_rw_pkt(un, &wr_pktp, wr_bp,
usr/src/uts/common/io/scsi/targets/sd.c
25505
if (rval == 0) {
usr/src/uts/common/io/scsi/targets/sd.c
25797
int rval = -1;
usr/src/uts/common/io/scsi/targets/sd.c
25877
rval = 0;
usr/src/uts/common/io/scsi/targets/sd.c
25942
if (rval)
usr/src/uts/common/io/scsi/targets/sd.c
25943
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
25994
int rval = 0;
usr/src/uts/common/io/scsi/targets/sd.c
26016
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/sd.c
26029
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/sd.c
26041
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/sd.c
26050
rval = sd_send_scsi_PERSISTENT_RESERVE_IN(ssc, SD_READ_KEYS,
usr/src/uts/common/io/scsi/targets/sd.c
26052
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
26053
if (rval == EIO)
usr/src/uts/common/io/scsi/targets/sd.c
26075
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/sd.c
26085
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/sd.c
26097
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/sd.c
26109
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/sd.c
26114
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
26156
int rval = 0;
usr/src/uts/common/io/scsi/targets/sd.c
26179
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/sd.c
26192
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/sd.c
26203
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/sd.c
26212
rval = sd_send_scsi_PERSISTENT_RESERVE_IN(ssc, SD_READ_RESV,
usr/src/uts/common/io/scsi/targets/sd.c
26214
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
26215
if (rval == EIO)
usr/src/uts/common/io/scsi/targets/sd.c
26237
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/sd.c
26247
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/sd.c
26259
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/sd.c
26282
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/sd.c
26292
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
26329
int rval = EINVAL;
usr/src/uts/common/io/scsi/targets/sd.c
26350
rval = sd_send_scsi_MODE_SENSE(ssc, CDB_GROUP0, sense,
usr/src/uts/common/io/scsi/targets/sd.c
26353
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
26357
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
26380
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/sd.c
26429
rval = sd_send_scsi_MODE_SELECT(ssc, CDB_GROUP0,
usr/src/uts/common/io/scsi/targets/sd.c
26433
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
26461
rval = EINVAL;
usr/src/uts/common/io/scsi/targets/sd.c
26471
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
26515
int rval = EINVAL;
usr/src/uts/common/io/scsi/targets/sd.c
26533
rval = sd_send_scsi_MODE_SENSE(ssc, CDB_GROUP0, sense,
usr/src/uts/common/io/scsi/targets/sd.c
26537
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
26541
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
26568
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/sd.c
26612
rval = sd_send_scsi_MODE_SELECT(ssc, CDB_GROUP0, select,
usr/src/uts/common/io/scsi/targets/sd.c
26616
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
26637
rval = EINVAL;
usr/src/uts/common/io/scsi/targets/sd.c
26648
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
26688
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
26700
rval = sd_send_scsi_MODE_SENSE(ssc, CDB_GROUP1, sense,
usr/src/uts/common/io/scsi/targets/sd.c
26704
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
26708
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
26733
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/sd.c
26787
rval = sd_send_scsi_cmd(dev, com, FKIOCTL, 0, SD_PATH_STANDARD);
usr/src/uts/common/io/scsi/targets/sd.c
26792
rval = EINVAL;
usr/src/uts/common/io/scsi/targets/sd.c
26801
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
26827
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
26846
rval = EINVAL;
usr/src/uts/common/io/scsi/targets/sd.c
26854
rval = sd_send_scsi_cmd(dev, com, FKIOCTL, UIO_SYSSPACE,
usr/src/uts/common/io/scsi/targets/sd.c
26859
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
26892
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
26927
rval = sd_send_scsi_cmd(dev, com, FKIOCTL, UIO_SYSSPACE,
usr/src/uts/common/io/scsi/targets/sd.c
26930
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
26962
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
26982
rval = sd_send_scsi_cmd(dev, com, FKIOCTL, UIO_SYSSPACE,
usr/src/uts/common/io/scsi/targets/sd.c
26985
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
27014
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
27107
rval = sd_send_scsi_cmd(dev, com, FKIOCTL, UIO_USERSPACE,
usr/src/uts/common/io/scsi/targets/sd.c
27111
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
27145
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
27182
rval = sd_send_scsi_cmd(dev, com, FKIOCTL, UIO_SYSSPACE,
usr/src/uts/common/io/scsi/targets/sd.c
27184
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
27187
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
27224
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
27263
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
27311
rval = sd_send_scsi_cmd(dev, com, FKIOCTL, UIO_SYSSPACE,
usr/src/uts/common/io/scsi/targets/sd.c
27313
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
27316
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
27340
rval = sd_send_scsi_cmd(dev, com, FKIOCTL, UIO_SYSSPACE,
usr/src/uts/common/io/scsi/targets/sd.c
27342
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
27345
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
27361
rval = sd_send_scsi_cmd(dev, com, FKIOCTL, UIO_SYSSPACE,
usr/src/uts/common/io/scsi/targets/sd.c
27363
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
27366
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
27384
rval = sd_send_scsi_cmd(dev, com, FKIOCTL, UIO_SYSSPACE,
usr/src/uts/common/io/scsi/targets/sd.c
27386
if (rval == 0) {
usr/src/uts/common/io/scsi/targets/sd.c
27406
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
27438
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
27471
rval = sd_send_scsi_cmd(dev, com, FKIOCTL, UIO_SYSSPACE,
usr/src/uts/common/io/scsi/targets/sd.c
27485
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
27528
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
27570
rval = sd_send_scsi_READ(ssc, mode1->cdread_bufaddr,
usr/src/uts/common/io/scsi/targets/sd.c
27577
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
27610
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
27684
rval = sd_send_scsi_cmd(dev, com, FKIOCTL, UIO_USERSPACE,
usr/src/uts/common/io/scsi/targets/sd.c
27687
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
27718
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
27784
rval = EIO;
usr/src/uts/common/io/scsi/targets/sd.c
27823
rval = sd_send_scsi_cmd(dev, com, FKIOCTL, UIO_USERSPACE,
usr/src/uts/common/io/scsi/targets/sd.c
27836
if (rval == 0) {
usr/src/uts/common/io/scsi/targets/sd.c
27837
rval = EIO;
usr/src/uts/common/io/scsi/targets/sd.c
27845
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
27872
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
27884
rval = sd_send_scsi_MODE_SENSE(ssc, CDB_GROUP0, sense, 20, 0x81,
usr/src/uts/common/io/scsi/targets/sd.c
27887
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
27891
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
27906
rval = sd_send_scsi_MODE_SELECT(ssc, CDB_GROUP0, select, 20,
usr/src/uts/common/io/scsi/targets/sd.c
27909
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
27923
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
27956
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
28090
rval = sd_send_scsi_cmd(dev, com, FKIOCTL, UIO_USERSPACE,
usr/src/uts/common/io/scsi/targets/sd.c
28095
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
28124
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
28238
rval = sd_send_scsi_cmd(dev, com, FKIOCTL, UIO_USERSPACE,
usr/src/uts/common/io/scsi/targets/sd.c
28242
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
28261
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
28287
rval = sd_send_scsi_DOORLOCK(ssc, SD_REMOVAL_ALLOW,
usr/src/uts/common/io/scsi/targets/sd.c
28291
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
28295
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
28299
rval = sd_send_scsi_START_STOP_UNIT(ssc, SD_START_STOP,
usr/src/uts/common/io/scsi/targets/sd.c
28303
if (rval == 0) {
usr/src/uts/common/io/scsi/targets/sd.c
28315
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
28375
int rval = FALSE;
usr/src/uts/common/io/scsi/targets/sd.c
28422
rval = TRUE;
usr/src/uts/common/io/scsi/targets/sd.c
28427
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
28460
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
28487
rval = sd_send_scsi_MODE_SENSE(ssc, CDB_GROUP1, sense,
usr/src/uts/common/io/scsi/targets/sd.c
28492
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
28497
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
28526
rval = sd_send_scsi_MODE_SENSE(ssc, CDB_GROUP0, sense,
usr/src/uts/common/io/scsi/targets/sd.c
28531
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
28536
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
28584
rval = sd_send_scsi_MODE_SELECT(ssc, CDB_GROUP1, select,
usr/src/uts/common/io/scsi/targets/sd.c
28587
rval = sd_send_scsi_MODE_SELECT(ssc, CDB_GROUP0, select,
usr/src/uts/common/io/scsi/targets/sd.c
28594
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
28629
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
28657
rval = sd_send_scsi_cmd(dev, com, FKIOCTL, UIO_SYSSPACE,
usr/src/uts/common/io/scsi/targets/sd.c
28659
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
28662
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
28680
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/sd.c
28685
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
29082
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
29103
rval = sd_setup_rw_pkt(un, &pkt, bp, 0, NULL_FUNC, NULL,
usr/src/uts/common/io/scsi/targets/sd.c
29105
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
29401
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
29428
rval = sd_setup_next_rw_pkt(un, pkt, bp,
usr/src/uts/common/io/scsi/targets/sd.c
29431
if (rval == 0) {
usr/src/uts/common/io/scsi/targets/sd.c
29450
ASSERT(rval == SD_PKT_ALLOC_FAILURE);
usr/src/uts/common/io/scsi/targets/sd.c
29512
uint_t rval;
usr/src/uts/common/io/scsi/targets/sd.c
29613
rval = ddi_copyin((void *)arg, un->sd_fi_fifo_pkt[i],
usr/src/uts/common/io/scsi/targets/sd.c
29615
if (rval == -1) {
usr/src/uts/common/io/scsi/targets/sd.c
29647
rval = ddi_copyin((void *)arg, un->sd_fi_fifo_xb[i],
usr/src/uts/common/io/scsi/targets/sd.c
29650
if (rval == -1) {
usr/src/uts/common/io/scsi/targets/sd.c
29682
rval = ddi_copyin((void *)arg, un->sd_fi_fifo_un[i],
usr/src/uts/common/io/scsi/targets/sd.c
29684
if (rval == -1) {
usr/src/uts/common/io/scsi/targets/sd.c
29717
rval = ddi_copyin((void *)arg, un->sd_fi_fifo_arq[i],
usr/src/uts/common/io/scsi/targets/sd.c
29719
if (rval == -1) {
usr/src/uts/common/io/scsi/targets/sd.c
29737
rval = ddi_copyin((void *)arg, &i, sizeof (uint_t), 0);
usr/src/uts/common/io/scsi/targets/sd.c
29738
if (rval != -1 &&
usr/src/uts/common/io/scsi/targets/sd.c
29762
rval = ddi_copyout(un->sd_fi_log, (void *)arg,
usr/src/uts/common/io/scsi/targets/sd.c
29766
if (rval == -1) {
usr/src/uts/common/io/scsi/targets/sd.c
30447
int rval = 0;
usr/src/uts/common/io/scsi/targets/sd.c
30463
rval = sd_send_scsi_READ_CAPACITY(ssc, (uint64_t *)&cap,
usr/src/uts/common/io/scsi/targets/sd.c
30465
if (rval != 0)
usr/src/uts/common/io/scsi/targets/sd.c
30471
rval = EIO;
usr/src/uts/common/io/scsi/targets/sd.c
30518
rval = sd_send_scsi_READ(ssc, (dkl != NULL) ? dkl : bufaddr,
usr/src/uts/common/io/scsi/targets/sd.c
30525
rval = sd_send_scsi_READ(ssc, dkl, buffer_size,
usr/src/uts/common/io/scsi/targets/sd.c
30527
if (rval) {
usr/src/uts/common/io/scsi/targets/sd.c
30533
rval = sd_send_scsi_WRITE(ssc, (dkl != NULL) ? dkl : bufaddr,
usr/src/uts/common/io/scsi/targets/sd.c
30541
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
30542
if (rval == EIO)
usr/src/uts/common/io/scsi/targets/sd.c
30549
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
31139
int rval = 0;
usr/src/uts/common/io/scsi/targets/sd.c
31165
rval = sd_send_scsi_INQUIRY(ssc, inqb1, inqb1_len,
usr/src/uts/common/io/scsi/targets/sd.c
31168
if (rval == 0 && (inqb1_len - inqb1_resid > 5)) {
usr/src/uts/common/io/scsi/targets/sd.c
31194
} else if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
31217
int rval = 0;
usr/src/uts/common/io/scsi/targets/sd.c
31238
rval = sd_send_scsi_READ_CAPACITY_16(ssc, &capacity, &lbasize,
usr/src/uts/common/io/scsi/targets/sd.c
31242
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
3360
int rval = SD_FAILURE;
usr/src/uts/common/io/scsi/targets/sd.c
3452
rval = SD_SUCCESS;
usr/src/uts/common/io/scsi/targets/sd.c
3454
rval = SD_FAILURE;
usr/src/uts/common/io/scsi/targets/sd.c
3461
rval = SD_FAILURE;
usr/src/uts/common/io/scsi/targets/sd.c
3473
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
3919
int rval = SD_SUCCESS;
usr/src/uts/common/io/scsi/targets/sd.c
3937
rval = sd_blank_cmp(un, id, idlen);
usr/src/uts/common/io/scsi/targets/sd.c
3938
if (rval != SD_SUCCESS) {
usr/src/uts/common/io/scsi/targets/sd.c
3961
rval = SD_SUCCESS;
usr/src/uts/common/io/scsi/targets/sd.c
3968
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
4832
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
4836
rval = sd_send_scsi_INQUIRY(ssc, inqB0, MAX_INQUIRY_SIZE, 0x01,
usr/src/uts/common/io/scsi/targets/sd.c
4838
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
4867
int rval = 0;
usr/src/uts/common/io/scsi/targets/sd.c
4901
rval = sd_send_scsi_INQUIRY(ssc, inq80, inq80_len,
usr/src/uts/common/io/scsi/targets/sd.c
4904
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
4946
rval = sd_send_scsi_INQUIRY(ssc, inq83, inq83_len,
usr/src/uts/common/io/scsi/targets/sd.c
4949
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
5312
int rval = 0;
usr/src/uts/common/io/scsi/targets/sd.c
5329
rval = sd_send_scsi_INQUIRY(ssc, page_list, page_length, evpd,
usr/src/uts/common/io/scsi/targets/sd.c
5332
if (rval != 0)
usr/src/uts/common/io/scsi/targets/sd.c
5343
if ((rval == 0) && (page_list[VPD_MODE_PAGE] == 0x00)) {
usr/src/uts/common/io/scsi/targets/sd.c
5389
rval = -1;
usr/src/uts/common/io/scsi/targets/sd.c
5398
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
5415
int rval = 0;
usr/src/uts/common/io/scsi/targets/sd.c
5457
rval = sd_send_scsi_START_STOP_UNIT(ssc,
usr/src/uts/common/io/scsi/targets/sd.c
5460
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
5465
rval = sd_send_scsi_START_STOP_UNIT(ssc,
usr/src/uts/common/io/scsi/targets/sd.c
5468
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
5484
rval = sd_log_page_supported(ssc,
usr/src/uts/common/io/scsi/targets/sd.c
5486
if (rval == 1) {
usr/src/uts/common/io/scsi/targets/sd.c
5516
rval = sd_log_page_supported(ssc, START_STOP_CYCLE_PAGE);
usr/src/uts/common/io/scsi/targets/sd.c
5521
rval = 1;
usr/src/uts/common/io/scsi/targets/sd.c
5530
if (rval == -1) {
usr/src/uts/common/io/scsi/targets/sd.c
5540
} else if (rval == 0) {
usr/src/uts/common/io/scsi/targets/sd.c
5574
rval = sd_send_scsi_LOG_SENSE(ssc, log_page_data,
usr/src/uts/common/io/scsi/targets/sd.c
5578
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
5585
rval = 0;
usr/src/uts/common/io/scsi/targets/sd.c
5594
if (rval == 0) {
usr/src/uts/common/io/scsi/targets/sd.c
6136
int rval = DDI_SUCCESS;
usr/src/uts/common/io/scsi/targets/sd.c
6229
rval = sd_send_scsi_LOG_SENSE(ssc, log_page_data,
usr/src/uts/common/io/scsi/targets/sd.c
6232
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
6233
if (rval == EIO)
usr/src/uts/common/io/scsi/targets/sd.c
6242
rval = 0;
usr/src/uts/common/io/scsi/targets/sd.c
6245
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
6301
rval = pm_trans_check(&sd_pm_tran_data, &intvlp);
usr/src/uts/common/io/scsi/targets/sd.c
6305
rval = 1;
usr/src/uts/common/io/scsi/targets/sd.c
6308
switch (rval) {
usr/src/uts/common/io/scsi/targets/sd.c
6395
if ((rval = sd_pm_state_change(un, level, SD_PM_STATE_CHANGE))
usr/src/uts/common/io/scsi/targets/sd.c
6473
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/targets/sd.c
6516
rval = DDI_FAILURE;
usr/src/uts/common/io/scsi/targets/sd.c
6557
SD_TRACE(SD_LOG_IO_PM, un, "sdpower: exit, status = 0x%x\n", rval);
usr/src/uts/common/io/scsi/targets/sd.c
6560
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
6682
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
7633
if ((rval = ddi_getprop(DDI_DEV_T_ANY, devi, 0,
usr/src/uts/common/io/scsi/targets/sd.c
7636
rval, 1);
usr/src/uts/common/io/scsi/targets/sd.c
7638
if ((rval = ddi_getprop(DDI_DEV_T_ANY, devi, 0,
usr/src/uts/common/io/scsi/targets/sd.c
7641
rval, 1);
usr/src/uts/common/io/scsi/targets/sd.c
8699
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
8715
rval = sd_send_scsi_MODE_SENSE(ssc, SDC_CDB_GROUP(un), *header, buflen,
usr/src/uts/common/io/scsi/targets/sd.c
8717
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
8740
rval = EIO;
usr/src/uts/common/io/scsi/targets/sd.c
8749
rval = EIO;
usr/src/uts/common/io/scsi/targets/sd.c
8753
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
8758
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
8790
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
8792
rval = sd_get_caching_mode_page(ssc, MODEPAGE_CURRENT, &header, &bdlen);
usr/src/uts/common/io/scsi/targets/sd.c
8793
switch (rval) {
usr/src/uts/common/io/scsi/targets/sd.c
8852
rval = sd_send_scsi_MODE_SELECT(ssc, SDC_CDB_GROUP(un),
usr/src/uts/common/io/scsi/targets/sd.c
8865
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
8909
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
8914
rval = sd_get_caching_mode_page(ssc, MODEPAGE_CURRENT, &header, &bdlen);
usr/src/uts/common/io/scsi/targets/sd.c
8915
switch (rval) {
usr/src/uts/common/io/scsi/targets/sd.c
8949
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
8978
int rval;
usr/src/uts/common/io/scsi/targets/sd.c
8983
rval = sd_get_caching_mode_page(ssc, MODEPAGE_CHANGEABLE, &header,
usr/src/uts/common/io/scsi/targets/sd.c
8985
switch (rval) {
usr/src/uts/common/io/scsi/targets/sd.c
9039
int rval = 0;
usr/src/uts/common/io/scsi/targets/sd.c
9075
rval = sd_send_scsi_INQUIRY(ssc, inq86, inq86_len,
usr/src/uts/common/io/scsi/targets/sd.c
9078
if (rval == 0 && (inq86_len - inq86_resid > 6)) {
usr/src/uts/common/io/scsi/targets/sd.c
9095
} else if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
9120
rval = sd_send_scsi_TEST_UNIT_READY(ssc, SD_DONT_RETRY_TUR);
usr/src/uts/common/io/scsi/targets/sd.c
9121
if (rval != 0)
usr/src/uts/common/io/scsi/targets/sd.c
9406
int rval = EIO;
usr/src/uts/common/io/scsi/targets/sd.c
9457
rval = EIO;
usr/src/uts/common/io/scsi/targets/sd.c
9514
rval = EROFS;
usr/src/uts/common/io/scsi/targets/sd.c
9534
rval = sd_ready_and_valid(ssc, part);
usr/src/uts/common/io/scsi/targets/sd.c
9544
if (rval == SD_READY_VALID && (!ISCD(un))) {
usr/src/uts/common/io/scsi/targets/sd.c
9552
if ((rval != SD_READY_VALID) ||
usr/src/uts/common/io/scsi/targets/sd.c
9554
rval = un->un_f_has_removable_media ? ENXIO : EIO;
usr/src/uts/common/io/scsi/targets/sd.c
9635
rval = EBUSY;
usr/src/uts/common/io/scsi/targets/sd.c
9648
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
9674
int rval = 0;
usr/src/uts/common/io/scsi/targets/sd.c
9760
rval =
usr/src/uts/common/io/scsi/targets/sd.c
9764
if (rval == ENOTSUP) {
usr/src/uts/common/io/scsi/targets/sd.c
9765
rval = 0;
usr/src/uts/common/io/scsi/targets/sd.c
9766
} else if (rval != 0) {
usr/src/uts/common/io/scsi/targets/sd.c
9767
rval = EIO;
usr/src/uts/common/io/scsi/targets/sd.c
9771
rval = EIO;
usr/src/uts/common/io/scsi/targets/sd.c
9788
rval = sd_send_scsi_DOORLOCK(ssc,
usr/src/uts/common/io/scsi/targets/sd.c
9790
if (rval != 0)
usr/src/uts/common/io/scsi/targets/sd.c
9796
if (ISCD(un) && (rval != 0) &&
usr/src/uts/common/io/scsi/targets/sd.c
9798
rval = ENXIO;
usr/src/uts/common/io/scsi/targets/sd.c
9801
rval = EIO;
usr/src/uts/common/io/scsi/targets/sd.c
9833
return (rval);
usr/src/uts/common/io/scsi/targets/sd.c
9858
int rval = SD_READY_VALID;
usr/src/uts/common/io/scsi/targets/sd.c
9879
rval = SD_NOT_READY_VALID;
usr/src/uts/common/io/scsi/targets/sd.c
9905
rval = SD_NOT_READY_VALID;
usr/src/uts/common/io/scsi/targets/sd.c
9958
rval = ENOMEM;
usr/src/uts/common/io/scsi/targets/sd.c
9990
rval = SD_RESERVED_BY_OTHERS;
usr/src/uts/common/io/scsi/targets/sd.c
9995
rval = SD_NOT_READY_VALID;
usr/src/uts/common/io/scsi/targets/sgen.c
1003
int rval;
usr/src/uts/common/io/scsi/targets/sgen.c
1033
rval = DDI_PROBE_SUCCESS;
usr/src/uts/common/io/scsi/targets/sgen.c
1036
rval = DDI_PROBE_FAILURE;
usr/src/uts/common/io/scsi/targets/sgen.c
1041
rval == DDI_PROBE_SUCCESS ? "succeeded" : "failed",
usr/src/uts/common/io/scsi/targets/sgen.c
1043
return (rval);
usr/src/uts/common/io/scsi/targets/smp.c
386
int rval = 0;
usr/src/uts/common/io/scsi/targets/smp.c
433
rval = EINVAL;
usr/src/uts/common/io/scsi/targets/smp.c
452
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/smp.c
489
rval = smp_transport(smp_pkt); /* put on the wire */
usr/src/uts/common/io/scsi/targets/smp.c
501
if (rval == DDI_SUCCESS) {
usr/src/uts/common/io/scsi/targets/smp.c
504
rval = 0;
usr/src/uts/common/io/scsi/targets/smp.c
521
rval = smp_pkt->smp_pkt_reason;
usr/src/uts/common/io/scsi/targets/smp.c
528
rval = smp_pkt->smp_pkt_reason;
usr/src/uts/common/io/scsi/targets/smp.c
537
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/smp.c
552
if (rval)
usr/src/uts/common/io/scsi/targets/smp.c
554
return (rval);
usr/src/uts/common/io/scsi/targets/smp.c
562
int rval = 0;
usr/src/uts/common/io/scsi/targets/smp.c
570
rval = smp_handle_func(dev, arg, flag, cred_p, rval_p);
usr/src/uts/common/io/scsi/targets/smp.c
573
rval = EINVAL;
usr/src/uts/common/io/scsi/targets/smp.c
575
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
10035
rval = DEVICE_RESET;
usr/src/uts/common/io/scsi/targets/st.c
10036
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
10039
rval = DEVICE_RESET;
usr/src/uts/common/io/scsi/targets/st.c
10040
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
10062
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
10076
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
10083
rval = QUE_COMMAND;
usr/src/uts/common/io/scsi/targets/st.c
10091
rval = QUE_COMMAND;
usr/src/uts/common/io/scsi/targets/st.c
10097
rval = QUE_COMMAND;
usr/src/uts/common/io/scsi/targets/st.c
10105
(rval == COMMAND_DONE_ERROR)?
usr/src/uts/common/io/scsi/targets/st.c
10108
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
10127
int rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
10153
rval = -1;
usr/src/uts/common/io/scsi/targets/st.c
10183
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
10200
int rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
10218
rval = ENXIO;
usr/src/uts/common/io/scsi/targets/st.c
10234
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
10254
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
10263
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
10270
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
10277
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
10295
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
10304
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
10311
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
10318
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
10336
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
10345
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
10352
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
10372
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
10494
errstate rval = COMMAND_DONE_ERROR;
usr/src/uts/common/io/scsi/targets/st.c
10508
rval = ATTEMPT_RETRY;
usr/src/uts/common/io/scsi/targets/st.c
10512
rval = QUE_BUSY_COMMAND;
usr/src/uts/common/io/scsi/targets/st.c
10514
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
10518
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
10527
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
10536
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
10562
errstate rval = COMMAND_DONE_ERROR;
usr/src/uts/common/io/scsi/targets/st.c
10593
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
10598
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
10616
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
10639
errstate rval = COMMAND_DONE_ERROR;
usr/src/uts/common/io/scsi/targets/st.c
10787
rval = QUE_BUSY_COMMAND;
usr/src/uts/common/io/scsi/targets/st.c
10799
rval = QUE_LAST_COMMAND;
usr/src/uts/common/io/scsi/targets/st.c
10808
rval = COMMAND_DONE_ERROR_RECOVERED;
usr/src/uts/common/io/scsi/targets/st.c
10824
rval = COMMAND_DONE;
usr/src/uts/common/io/scsi/targets/st.c
10826
rval = COMMAND_DONE;
usr/src/uts/common/io/scsi/targets/st.c
10841
rval = COMMAND_DONE;
usr/src/uts/common/io/scsi/targets/st.c
10847
rval = COMMAND_DONE_ERROR_RECOVERED;
usr/src/uts/common/io/scsi/targets/st.c
10852
rval = COMMAND_DONE_ERROR;
usr/src/uts/common/io/scsi/targets/st.c
10862
rval = COMMAND_DONE;
usr/src/uts/common/io/scsi/targets/st.c
10919
if (sensep->es_ili && rval != COMMAND_DONE_ERROR) {
usr/src/uts/common/io/scsi/targets/st.c
10934
rval = COMMAND_DONE_ERROR;
usr/src/uts/common/io/scsi/targets/st.c
10963
rval = COMMAND_DONE_ERROR;
usr/src/uts/common/io/scsi/targets/st.c
10969
rval = COMMAND_DONE_ERROR;
usr/src/uts/common/io/scsi/targets/st.c
10988
rval = COMMAND_DONE_ERROR;
usr/src/uts/common/io/scsi/targets/st.c
10994
rval = COMMAND_DONE;
usr/src/uts/common/io/scsi/targets/st.c
10996
rval = COMMAND_DONE_ERROR_RECOVERED;
usr/src/uts/common/io/scsi/targets/st.c
11014
rval = COMMAND_DONE;
usr/src/uts/common/io/scsi/targets/st.c
11030
rval = COMMAND_DONE_ERROR;
usr/src/uts/common/io/scsi/targets/st.c
11044
rval = DEVICE_RESET;
usr/src/uts/common/io/scsi/targets/st.c
11061
rval = QUE_COMMAND;
usr/src/uts/common/io/scsi/targets/st.c
11063
rval = COMMAND_DONE_ERROR;
usr/src/uts/common/io/scsi/targets/st.c
11085
rval = COMMAND_DONE_ERROR;
usr/src/uts/common/io/scsi/targets/st.c
11094
rval = COMMAND_DONE;
usr/src/uts/common/io/scsi/targets/st.c
11108
(rval == DEVICE_RESET) &&
usr/src/uts/common/io/scsi/targets/st.c
11117
rval = QUE_COMMAND;
usr/src/uts/common/io/scsi/targets/st.c
11118
} else if (rval == DEVICE_RESET) {
usr/src/uts/common/io/scsi/targets/st.c
11121
rval = COMMAND_DONE_ERROR;
usr/src/uts/common/io/scsi/targets/st.c
11132
rval = DEVICE_TAMPER;
usr/src/uts/common/io/scsi/targets/st.c
11143
rval = DEVICE_TAMPER;
usr/src/uts/common/io/scsi/targets/st.c
11152
rval = DEVICE_TAMPER;
usr/src/uts/common/io/scsi/targets/st.c
11155
if (rval != DEVICE_RESET) {
usr/src/uts/common/io/scsi/targets/st.c
11156
rval = COMMAND_DONE_ERROR;
usr/src/uts/common/io/scsi/targets/st.c
11198
rval = QUE_BUSY_COMMAND;
usr/src/uts/common/io/scsi/targets/st.c
11202
rval = COMMAND_DONE_ERROR;
usr/src/uts/common/io/scsi/targets/st.c
11208
rval = QUE_COMMAND;
usr/src/uts/common/io/scsi/targets/st.c
11215
rval = COMMAND_DONE_ERROR;
usr/src/uts/common/io/scsi/targets/st.c
11220
rval = COMMAND_DONE_ERROR;
usr/src/uts/common/io/scsi/targets/st.c
11228
if (rval == COMMAND_DONE_ERROR &&
usr/src/uts/common/io/scsi/targets/st.c
11241
(rval != QUE_COMMAND))
usr/src/uts/common/io/scsi/targets/st.c
11250
rval = ATTEMPT_RETRY;
usr/src/uts/common/io/scsi/targets/st.c
11261
rval = COMMAND_DONE_ERROR;
usr/src/uts/common/io/scsi/targets/st.c
11275
rval = COMMAND_DONE_ERROR;
usr/src/uts/common/io/scsi/targets/st.c
11301
if (((rval == COMMAND_DONE_ERROR) ||
usr/src/uts/common/io/scsi/targets/st.c
11302
(rval == COMMAND_DONE_ERROR_RECOVERED)) &&
usr/src/uts/common/io/scsi/targets/st.c
11313
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
12409
int rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
12443
rval = st_uscsi_cmd(un, com, FKIOCTL);
usr/src/uts/common/io/scsi/targets/st.c
12444
if (rval || com->uscsi_status) {
usr/src/uts/common/io/scsi/targets/st.c
12520
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/st.c
12524
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
12537
int rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
12572
rval = st_uscsi_cmd(un, com, FKIOCTL);
usr/src/uts/common/io/scsi/targets/st.c
12573
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
12577
if (rval || com->uscsi_status) {
usr/src/uts/common/io/scsi/targets/st.c
12702
rval = st_uscsi_cmd(un, com, FKIOCTL);
usr/src/uts/common/io/scsi/targets/st.c
12703
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
12710
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
12852
int rval;
usr/src/uts/common/io/scsi/targets/st.c
12871
rval = st_reserve_release(un, ST_RESERVE, st_uscsi_cmd);
usr/src/uts/common/io/scsi/targets/st.c
12872
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
12879
rval = st_reserve_release(un, ST_RESERVE, st_uscsi_cmd);
usr/src/uts/common/io/scsi/targets/st.c
12881
if (rval == 0) {
usr/src/uts/common/io/scsi/targets/st.c
12888
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
12894
int rval;
usr/src/uts/common/io/scsi/targets/st.c
12916
rval = 1; /* Not found, when in doubt reserve */
usr/src/uts/common/io/scsi/targets/st.c
12918
rval = 1;
usr/src/uts/common/io/scsi/targets/st.c
12924
rval = 1;
usr/src/uts/common/io/scsi/targets/st.c
12927
rval = 1;
usr/src/uts/common/io/scsi/targets/st.c
12929
rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
12932
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
12937
rval = st_do_reserve(un);
usr/src/uts/common/io/scsi/targets/st.c
12940
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
12946
int rval;
usr/src/uts/common/io/scsi/targets/st.c
12969
rval = 1; /* Not found, when in doubt reserve */
usr/src/uts/common/io/scsi/targets/st.c
12971
rval = 1;
usr/src/uts/common/io/scsi/targets/st.c
12977
rval = 1;
usr/src/uts/common/io/scsi/targets/st.c
12979
rval = 1;
usr/src/uts/common/io/scsi/targets/st.c
12981
rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
12984
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
12988
rval = st_do_reserve(un);
usr/src/uts/common/io/scsi/targets/st.c
12991
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
12998
int rval;
usr/src/uts/common/io/scsi/targets/st.c
13026
rval = ubf(un, &uscsi_cmd, FKIOCTL);
usr/src/uts/common/io/scsi/targets/st.c
13029
"st_reserve_release: rval(1)=%d\n", rval);
usr/src/uts/common/io/scsi/targets/st.c
13031
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
13033
rval = EACCES;
usr/src/uts/common/io/scsi/targets/st.c
13047
rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
13050
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
13056
int rval;
usr/src/uts/common/io/scsi/targets/st.c
13066
rval = st_reserve_release(un, ST_RESERVE, ubf);
usr/src/uts/common/io/scsi/targets/st.c
13071
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
13085
rval = st_reserve_release(un, ST_RESERVE, ubf);
usr/src/uts/common/io/scsi/targets/st.c
13086
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/st.c
13089
rval = (un->un_rsvd_status &
usr/src/uts/common/io/scsi/targets/st.c
13091
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
13102
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
13167
int rval;
usr/src/uts/common/io/scsi/targets/st.c
13227
rval = bf(un, SCMD_REWIND, 0, SYNC_CMD);
usr/src/uts/common/io/scsi/targets/st.c
13228
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
13233
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
13246
rval = st_cmd(un, SCMD_SPACE, Fmk(pos->fileno), SYNC_CMD);
usr/src/uts/common/io/scsi/targets/st.c
13247
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
13254
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
13265
rval = bf(un, SCMD_SPACE, Fmk(-1), SYNC_CMD);
usr/src/uts/common/io/scsi/targets/st.c
13266
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
13273
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
13326
int rval;
usr/src/uts/common/io/scsi/targets/st.c
13356
rval = st_uscsi_cmd(un, com, FKIOCTL);
usr/src/uts/common/io/scsi/targets/st.c
13357
if (rval || com->uscsi_status) {
usr/src/uts/common/io/scsi/targets/st.c
13359
rval = -1;
usr/src/uts/common/io/scsi/targets/st.c
13367
rval = 1;
usr/src/uts/common/io/scsi/targets/st.c
13374
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
13399
int rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
13406
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
13411
rval = st_logpage_supported(un, TAPE_SEQUENTIAL_PAGE);
usr/src/uts/common/io/scsi/targets/st.c
13412
if (rval == -1) {
usr/src/uts/common/io/scsi/targets/st.c
13415
if (rval == 1) {
usr/src/uts/common/io/scsi/targets/st.c
13420
rval = st_logpage_supported(un, TAPE_ALERT_PAGE);
usr/src/uts/common/io/scsi/targets/st.c
13421
if (rval == -1) {
usr/src/uts/common/io/scsi/targets/st.c
13424
if (rval == 1) {
usr/src/uts/common/io/scsi/targets/st.c
13435
rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
13439
rval = st_check_sequential_clean_bit(un);
usr/src/uts/common/io/scsi/targets/st.c
13440
if (rval == -1) {
usr/src/uts/common/io/scsi/targets/st.c
13445
if ((rval == 0) && (un->un_HeadClean & TAPE_ALERT_SUPPORTED)) {
usr/src/uts/common/io/scsi/targets/st.c
13447
rval = st_check_alert_flags(un);
usr/src/uts/common/io/scsi/targets/st.c
13448
if (rval == -1) {
usr/src/uts/common/io/scsi/targets/st.c
13453
if ((rval == 0) && (un->un_dp->options & ST_CLN_MASK)) {
usr/src/uts/common/io/scsi/targets/st.c
13455
rval = st_check_sense_clean_bit(un);
usr/src/uts/common/io/scsi/targets/st.c
13456
if (rval == -1) {
usr/src/uts/common/io/scsi/targets/st.c
13464
if (rval & MTF_TAPE_CLN_SUPPORTED) {
usr/src/uts/common/io/scsi/targets/st.c
13469
if (rval & MTF_TAPE_HEAD_DIRTY) {
usr/src/uts/common/io/scsi/targets/st.c
13489
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
13496
int rval;
usr/src/uts/common/io/scsi/targets/st.c
13531
rval = st_uscsi_cmd(un, cmd, FKIOCTL);
usr/src/uts/common/io/scsi/targets/st.c
13533
if (rval || cmd->uscsi_status || cmd->uscsi_resid) {
usr/src/uts/common/io/scsi/targets/st.c
13535
rval = -1;
usr/src/uts/common/io/scsi/targets/st.c
13539
rval = -1;
usr/src/uts/common/io/scsi/targets/st.c
13544
for (ix = 0; rval == 0 && ix < TAPE_SEQUENTIAL_PAGE_PARA; ix++) {
usr/src/uts/common/io/scsi/targets/st.c
13555
rval = MTF_TAPE_CLN_SUPPORTED;
usr/src/uts/common/io/scsi/targets/st.c
13560
rval |= MTF_TAPE_HEAD_DIRTY;
usr/src/uts/common/io/scsi/targets/st.c
13570
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
13581
int rval;
usr/src/uts/common/io/scsi/targets/st.c
13611
rval = st_uscsi_cmd(un, com, FKIOCTL);
usr/src/uts/common/io/scsi/targets/st.c
13613
if (rval || com->uscsi_status || com->uscsi_resid) {
usr/src/uts/common/io/scsi/targets/st.c
13615
rval = -1; /* uscsi-command failed */
usr/src/uts/common/io/scsi/targets/st.c
13621
rval = -1;
usr/src/uts/common/io/scsi/targets/st.c
13639
if (ix == 0 && rval != 0) {
usr/src/uts/common/io/scsi/targets/st.c
13659
rval = MTF_TAPE_CLN_SUPPORTED;
usr/src/uts/common/io/scsi/targets/st.c
13665
rval |= MTF_TAPE_HEAD_DIRTY;
usr/src/uts/common/io/scsi/targets/st.c
13683
rval |= MTF_TAPE_HEAD_DIRTY;
usr/src/uts/common/io/scsi/targets/st.c
13689
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
13703
int rval;
usr/src/uts/common/io/scsi/targets/st.c
13752
rval = st_uscsi_cmd(un, com, FKIOCTL);
usr/src/uts/common/io/scsi/targets/st.c
13754
if (rval || com->uscsi_status || com->uscsi_resid) {
usr/src/uts/common/io/scsi/targets/st.c
13756
rval = -1;
usr/src/uts/common/io/scsi/targets/st.c
13760
rval = MTF_TAPE_CLN_SUPPORTED;
usr/src/uts/common/io/scsi/targets/st.c
13765
rval |= MTF_TAPE_HEAD_DIRTY;
usr/src/uts/common/io/scsi/targets/st.c
13771
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
13785
int rval;
usr/src/uts/common/io/scsi/targets/st.c
13791
rval = st_cmd(un, SCMD_TEST_UNIT_READY, 0, SYNC_CMD);
usr/src/uts/common/io/scsi/targets/st.c
13792
} while ((rval != 0) && (rval != ENXIO) && (++i < max_trys));
usr/src/uts/common/io/scsi/targets/st.c
13793
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
14532
int rval = ENOTTY;
usr/src/uts/common/io/scsi/targets/st.c
14539
rval = bf(un, SCMD_READ_POSITION, 32, SYNC_CMD);
usr/src/uts/common/io/scsi/targets/st.c
14545
if ((rval == 0) &&
usr/src/uts/common/io/scsi/targets/st.c
14546
((rval = st_interpret_read_pos(un, &un->un_pos,
usr/src/uts/common/io/scsi/targets/st.c
14556
rval = st_interpret_read_pos(un, &un->un_running,
usr/src/uts/common/io/scsi/targets/st.c
14568
un->un_read_pos_type, rval, un->un_status);
usr/src/uts/common/io/scsi/targets/st.c
14570
if (rval == ENOTTY) {
usr/src/uts/common/io/scsi/targets/st.c
14571
rval = EIO; /* so ENOTTY is not final rval */
usr/src/uts/common/io/scsi/targets/st.c
14578
" returned %x", un->un_read_pos_type, rval);
usr/src/uts/common/io/scsi/targets/st.c
14603
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
14732
int rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
14764
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
14773
rval = ERANGE;
usr/src/uts/common/io/scsi/targets/st.c
14784
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
14801
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
14865
rval = ENOTTY;
usr/src/uts/common/io/scsi/targets/st.c
14885
rval = ENOTTY;
usr/src/uts/common/io/scsi/targets/st.c
14897
rval = ENOTTY;
usr/src/uts/common/io/scsi/targets/st.c
14966
rval = ENOTTY;
usr/src/uts/common/io/scsi/targets/st.c
15007
rval = ENOTTY;
usr/src/uts/common/io/scsi/targets/st.c
15015
rval = ERANGE;
usr/src/uts/common/io/scsi/targets/st.c
15026
rval = ENOTTY;
usr/src/uts/common/io/scsi/targets/st.c
15040
rval = ENOTTY;
usr/src/uts/common/io/scsi/targets/st.c
15093
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
15096
if ((flag > 1) && (rval == 0) && (org.pmode != invalid)) {
usr/src/uts/common/io/scsi/targets/st.c
15103
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
15110
int rval;
usr/src/uts/common/io/scsi/targets/st.c
15171
rval = ubf(un, cmd, FKIOCTL);
usr/src/uts/common/io/scsi/targets/st.c
15185
"Big LOCATE ILLEGAL_REQUEST: rval = %d\n", rval);
usr/src/uts/common/io/scsi/targets/st.c
15188
rval = ERANGE;
usr/src/uts/common/io/scsi/targets/st.c
15189
} else if ((un->un_pos.pmode == invalid) || (rval != 0)) {
usr/src/uts/common/io/scsi/targets/st.c
15193
rval);
usr/src/uts/common/io/scsi/targets/st.c
15195
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
15199
"Big LOCATE and read pos: rval = %d\n", rval);
usr/src/uts/common/io/scsi/targets/st.c
15200
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
15208
rval = ESPIPE;
usr/src/uts/common/io/scsi/targets/st.c
15214
rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
15219
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
15222
} else if (rval == 0) {
usr/src/uts/common/io/scsi/targets/st.c
15232
rval = ESPIPE;
usr/src/uts/common/io/scsi/targets/st.c
15238
rval = ESPIPE;
usr/src/uts/common/io/scsi/targets/st.c
15243
rval, cmd->uscsi_status);
usr/src/uts/common/io/scsi/targets/st.c
15247
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
15252
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
15258
int rval;
usr/src/uts/common/io/scsi/targets/st.c
15323
rval = st_backward_space_files(un, -files, 0);
usr/src/uts/common/io/scsi/targets/st.c
15325
rval = st_forward_space_files(un, files);
usr/src/uts/common/io/scsi/targets/st.c
15328
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
15334
int rval;
usr/src/uts/common/io/scsi/targets/st.c
15361
rval = st_cmd(un, SCMD_REWIND, 0, SYNC_CMD);
usr/src/uts/common/io/scsi/targets/st.c
15368
rval = st_space_to_begining_of_file(un);
usr/src/uts/common/io/scsi/targets/st.c
15375
rval = st_scenic_route_to_begining_of_file(un,
usr/src/uts/common/io/scsi/targets/st.c
15384
rval = st_cmd(un, SCMD_READ_POSITION, 0, SYNC_CMD);
usr/src/uts/common/io/scsi/targets/st.c
15385
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
15392
rval = st_space_to_begining_of_file(un);
usr/src/uts/common/io/scsi/targets/st.c
15394
rval = st_interpret_read_pos(un, &un->un_pos, LONG_POS,
usr/src/uts/common/io/scsi/targets/st.c
15396
if ((rval) && (un->un_pos.pmode == invalid)) {
usr/src/uts/common/io/scsi/targets/st.c
15397
rval = st_space_to_begining_of_file(un);
usr/src/uts/common/io/scsi/targets/st.c
15399
rval = st_scenic_route_to_begining_of_file(un,
usr/src/uts/common/io/scsi/targets/st.c
15403
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
15408
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/st.c
15413
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
15417
rval = st_space_fmks(un, count);
usr/src/uts/common/io/scsi/targets/st.c
15420
if (rval != EIO && count < 0) {
usr/src/uts/common/io/scsi/targets/st.c
15425
rval = st_backward_space_files(un, 1, 1);
usr/src/uts/common/io/scsi/targets/st.c
15428
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
15434
int rval;
usr/src/uts/common/io/scsi/targets/st.c
15439
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
15441
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
15444
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
15450
int rval;
usr/src/uts/common/io/scsi/targets/st.c
15457
rval = st_cmd(un, SCMD_SPACE, Fmk(-1), SYNC_CMD);
usr/src/uts/common/io/scsi/targets/st.c
15458
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
15459
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
15460
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
15467
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
15476
rval = st_cmd(un, SCMD_SPACE, Fmk(1), SYNC_CMD);
usr/src/uts/common/io/scsi/targets/st.c
15477
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
15478
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
15481
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
15560
int rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
15569
rval = st_cmd(un, SCMD_SPACE, Blk(count), SYNC_CMD);
usr/src/uts/common/io/scsi/targets/st.c
15570
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/st.c
15571
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
15573
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
15599
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
15618
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
15622
if (rval == 0) {
usr/src/uts/common/io/scsi/targets/st.c
15626
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
15658
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
15666
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
15670
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
15741
int rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
15781
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
15782
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
15786
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
15787
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
15791
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
15792
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
15794
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
15830
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
15836
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
15840
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
15857
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
15861
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
15871
"space forward skip_cnt=%"PRIx64", rval=%x\n", skip_cnt, rval);
usr/src/uts/common/io/scsi/targets/st.c
15873
if (rval == 0 && skip_cnt) {
usr/src/uts/common/io/scsi/targets/st.c
15877
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
15894
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/st.c
15898
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
15904
int rval;
usr/src/uts/common/io/scsi/targets/st.c
15948
rval = st_forward_space_files(un, -count);
usr/src/uts/common/io/scsi/targets/st.c
15950
rval = st_backward_space_files(un, count, 0);
usr/src/uts/common/io/scsi/targets/st.c
15952
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
16028
int rval;
usr/src/uts/common/io/scsi/targets/st.c
16032
rval = st_cmd(un, SCMD_SPACE, SPACE(SP_SQFLM, cnt), SYNC_CMD);
usr/src/uts/common/io/scsi/targets/st.c
16033
if (rval == 0) {
usr/src/uts/common/io/scsi/targets/st.c
16043
rval = ENOTTY;
usr/src/uts/common/io/scsi/targets/st.c
16048
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
16054
int rval;
usr/src/uts/common/io/scsi/targets/st.c
16058
rval = st_cmd(un, SCMD_SPACE, SPACE(SP_SQFLM, -cnt), SYNC_CMD);
usr/src/uts/common/io/scsi/targets/st.c
16059
if (rval == 0) {
usr/src/uts/common/io/scsi/targets/st.c
16069
rval = ENOTTY;
usr/src/uts/common/io/scsi/targets/st.c
16074
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
16572
int rval;
usr/src/uts/common/io/scsi/targets/st.c
16608
rval = bufunc(un, ucmd, FKIOCTL);
usr/src/uts/common/io/scsi/targets/st.c
16610
if (rval || ucmd->uscsi_status != 0) {
usr/src/uts/common/io/scsi/targets/st.c
16613
" rqstatus %d", rval, ucmd->uscsi_status,
usr/src/uts/common/io/scsi/targets/st.c
16620
rval = ENOTTY;
usr/src/uts/common/io/scsi/targets/st.c
16621
} else if (rval == 0) {
usr/src/uts/common/io/scsi/targets/st.c
16622
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
16654
rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
16662
rval =
usr/src/uts/common/io/scsi/targets/st.c
16670
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
16844
int rval;
usr/src/uts/common/io/scsi/targets/st.c
16872
rval = st_test_path_to_device(un);
usr/src/uts/common/io/scsi/targets/st.c
16876
errstatenames[errinfo->ei_error_type], rval);
usr/src/uts/common/io/scsi/targets/st.c
16881
if (rval == 0 && rcv->cmd_attrib->chg_tape_data) {
usr/src/uts/common/io/scsi/targets/st.c
16882
rval = st_rcmd(un, SCMD_WRITE_FILE_MARK, 0, SYNC_CMD);
usr/src/uts/common/io/scsi/targets/st.c
16883
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
16885
"st_recover failed to flush, returned %d\n", rval);
usr/src/uts/common/io/scsi/targets/st.c
16899
if (rval != 0 && rval != EACCES) {
usr/src/uts/common/io/scsi/targets/st.c
16941
rval = st_reserve_release(un, ST_RESERVE,
usr/src/uts/common/io/scsi/targets/st.c
16943
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/st.c
16954
rval = st_make_sure_mode_data_is_correct(un, st_uscsi_rcmd);
usr/src/uts/common/io/scsi/targets/st.c
16955
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
16971
rval = st_make_sure_mode_data_is_correct(un,
usr/src/uts/common/io/scsi/targets/st.c
16973
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
16983
rval = st_get_media_identification(un, st_uscsi_rcmd);
usr/src/uts/common/io/scsi/targets/st.c
16984
if (rval == ESPIPE) {
usr/src/uts/common/io/scsi/targets/st.c
17029
rval = st_compare_expected_position(un, errinfo,
usr/src/uts/common/io/scsi/targets/st.c
17031
if (rval == 0) {
usr/src/uts/common/io/scsi/targets/st.c
17033
} else if (rval == EAGAIN) {
usr/src/uts/common/io/scsi/targets/st.c
17230
int rval;
usr/src/uts/common/io/scsi/targets/st.c
17250
rval = scsi_uscsi_handle_cmd(un->un_dev, UIO_SYSSPACE, ucmd,
usr/src/uts/common/io/scsi/targets/st.c
17262
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
17535
int rval;
usr/src/uts/common/io/scsi/targets/st.c
17542
rval = st_check_mode_for_change(un, ubf);
usr/src/uts/common/io/scsi/targets/st.c
17543
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
17544
rval = st_gen_mode_select(un, ubf, un->un_mspl,
usr/src/uts/common/io/scsi/targets/st.c
17548
rval |= st_set_target_TLR_mode(un, ubf);
usr/src/uts/common/io/scsi/targets/st.c
17550
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
17557
int rval;
usr/src/uts/common/io/scsi/targets/st.c
17573
rval = st_gen_mode_sense(un, ubf, un->un_comp_page, current,
usr/src/uts/common/io/scsi/targets/st.c
17575
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/st.c
17579
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
17585
rval = bcmp(this, that, sizeof (struct seq_mode));
usr/src/uts/common/io/scsi/targets/st.c
17586
if (rval == 0) {
usr/src/uts/common/io/scsi/targets/st.c
17604
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
17610
int rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
17619
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/st.c
17624
rval = st_rcmd(un, SCMD_TEST_UNIT_READY, 0, SYNC_CMD);
usr/src/uts/common/io/scsi/targets/st.c
17626
"ping TUR returned 0x%x", rval);
usr/src/uts/common/io/scsi/targets/st.c
17628
} while (((rval == EACCES) || (rval == EBUSY)) && limit);
usr/src/uts/common/io/scsi/targets/st.c
17631
rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
17633
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
17644
int rval;
usr/src/uts/common/io/scsi/targets/st.c
17684
rval = st_uscsi_rcmd(un, &cmd, FKIOCTL);
usr/src/uts/common/io/scsi/targets/st.c
17686
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
17688
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
17695
int rval;
usr/src/uts/common/io/scsi/targets/st.c
17701
rval = st_recovery_read_pos(un, type, raw);
usr/src/uts/common/io/scsi/targets/st.c
17702
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/st.c
17729
if (rval == 0) {
usr/src/uts/common/io/scsi/targets/st.c
17730
rval = st_interpret_read_pos(un, read, type,
usr/src/uts/common/io/scsi/targets/st.c
17733
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
17747
int rval;
usr/src/uts/common/io/scsi/targets/st.c
17761
rval = st_recovery_get_position(un, read, readp_datap);
usr/src/uts/common/io/scsi/targets/st.c
17765
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/st.c
17843
rval = st_logical_block_locate(un,
usr/src/uts/common/io/scsi/targets/st.c
17847
if (rval == 0) {
usr/src/uts/common/io/scsi/targets/st.c
17860
rval = st_logical_block_locate(un,
usr/src/uts/common/io/scsi/targets/st.c
17864
if (rval == 0) {
usr/src/uts/common/io/scsi/targets/st.c
17880
rval = st_logical_block_locate(un,
usr/src/uts/common/io/scsi/targets/st.c
17884
if (rval == 0) {
usr/src/uts/common/io/scsi/targets/st.c
17893
rval);
usr/src/uts/common/io/scsi/targets/st.c
17918
rval = st_logical_block_locate(un,
usr/src/uts/common/io/scsi/targets/st.c
17922
if (rval == 0) {
usr/src/uts/common/io/scsi/targets/st.c
17931
rval = st_logical_block_locate(un,
usr/src/uts/common/io/scsi/targets/st.c
17935
if (rval == 0) {
usr/src/uts/common/io/scsi/targets/st.c
17982
rval = st_logical_block_locate(un, st_uscsi_rcmd, read,
usr/src/uts/common/io/scsi/targets/st.c
17985
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
18014
int rval;
usr/src/uts/common/io/scsi/targets/st.c
18098
rval = st_transport(un, newpkt);
usr/src/uts/common/io/scsi/targets/st.c
18099
if (rval == TRAN_ACCEPT) {
usr/src/uts/common/io/scsi/targets/st.c
18103
"Reissue pkt st_transport(0x%x) failure\n", rval);
usr/src/uts/common/io/scsi/targets/st.c
18104
if (rval != TRAN_BUSY) {
usr/src/uts/common/io/scsi/targets/st.c
18108
rval = st_handle_start_busy(un, bp, ST_TRAN_BUSY_TIMEOUT, queued);
usr/src/uts/common/io/scsi/targets/st.c
18110
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
18476
int rval;
usr/src/uts/common/io/scsi/targets/st.c
18484
rval = scsi_reset(&un->un_sd->sd_address, reset_type);
usr/src/uts/common/io/scsi/targets/st.c
18485
if (rval == 0) {
usr/src/uts/common/io/scsi/targets/st.c
18504
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
18507
} while (rval == 0);
usr/src/uts/common/io/scsi/targets/st.c
18509
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
2279
int rval;
usr/src/uts/common/io/scsi/targets/st.c
2314
rval = st_modesense(un);
usr/src/uts/common/io/scsi/targets/st.c
2315
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
2316
if (rval == EACCES) {
usr/src/uts/common/io/scsi/targets/st.c
2318
rval = 1;
usr/src/uts/common/io/scsi/targets/st.c
2321
rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
2338
rval = st_change_block_size(un, 0);
usr/src/uts/common/io/scsi/targets/st.c
2339
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
2340
if (rval == EACCES) {
usr/src/uts/common/io/scsi/targets/st.c
2342
rval = 1;
usr/src/uts/common/io/scsi/targets/st.c
2344
rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
2354
rval = st_change_block_size(un, 0);
usr/src/uts/common/io/scsi/targets/st.c
2355
if (rval == 0) {
usr/src/uts/common/io/scsi/targets/st.c
2358
} else if (rval != EACCES) {
usr/src/uts/common/io/scsi/targets/st.c
2362
rval = 1;
usr/src/uts/common/io/scsi/targets/st.c
2372
rval = st_read_block_limits(un, blklim);
usr/src/uts/common/io/scsi/targets/st.c
2373
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
2377
rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
2392
rval = st_get_special_inquiry(un, 6, buf, 0xb0);
usr/src/uts/common/io/scsi/targets/st.c
2393
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
2397
rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
2423
rval = st_get_timeout_values_from_tape_drive(un, tem_dp);
usr/src/uts/common/io/scsi/targets/st.c
2424
if (rval == 0 || ((rval == 1) && (tem_dp->type == ST_TYPE_INVALID))) {
usr/src/uts/common/io/scsi/targets/st.c
2429
rval = 1;
usr/src/uts/common/io/scsi/targets/st.c
2434
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
2595
int rval;
usr/src/uts/common/io/scsi/targets/st.c
2599
rval = st_get_timeouts_value(un, SCMD_ERASE, &timeout, 0);
usr/src/uts/common/io/scsi/targets/st.c
2600
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
2601
if (rval == EACCES) {
usr/src/uts/common/io/scsi/targets/st.c
2610
rval = st_get_timeouts_value(un, SCMD_READ, &timeout, 0);
usr/src/uts/common/io/scsi/targets/st.c
2611
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
2612
if (rval == EACCES) {
usr/src/uts/common/io/scsi/targets/st.c
2621
rval = st_get_timeouts_value(un, SCMD_WRITE, &timeout, 0);
usr/src/uts/common/io/scsi/targets/st.c
2622
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
2623
if (rval == EACCES) {
usr/src/uts/common/io/scsi/targets/st.c
2632
rval = st_get_timeouts_value(un, SCMD_SPACE, &timeout, 0);
usr/src/uts/common/io/scsi/targets/st.c
2633
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
2634
if (rval == EACCES) {
usr/src/uts/common/io/scsi/targets/st.c
2643
rval = st_get_timeouts_value(un, SCMD_LOAD, &timeout, 0);
usr/src/uts/common/io/scsi/targets/st.c
2644
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
2645
if (rval == EACCES) {
usr/src/uts/common/io/scsi/targets/st.c
2655
rval = st_get_timeouts_value(un, SCMD_REWIND, &timeout, 0);
usr/src/uts/common/io/scsi/targets/st.c
2656
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
2657
if (rval == EACCES) {
usr/src/uts/common/io/scsi/targets/st.c
2666
rval = st_get_timeouts_value(un, SCMD_INQUIRY, &timeout, 0);
usr/src/uts/common/io/scsi/targets/st.c
2667
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
2668
if (rval == EACCES) {
usr/src/uts/common/io/scsi/targets/st.c
2690
int rval;
usr/src/uts/common/io/scsi/targets/st.c
2697
rval = st_report_supported_operation(un, oper, option_code,
usr/src/uts/common/io/scsi/targets/st.c
2700
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
2705
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
2792
int rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
2815
rval = ENXIO;
usr/src/uts/common/io/scsi/targets/st.c
2835
rval = EINTR;
usr/src/uts/common/io/scsi/targets/st.c
2841
rval = EBUSY;
usr/src/uts/common/io/scsi/targets/st.c
2899
rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
2911
rval = st_tape_init(un);
usr/src/uts/common/io/scsi/targets/st.c
2912
if ((rval == EACCES) && (un->un_read_only & WORM)) {
usr/src/uts/common/io/scsi/targets/st.c
2914
rval = 0; /* so open doesn't fail */
usr/src/uts/common/io/scsi/targets/st.c
2915
} else if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
2936
if (rval != EBUSY) {
usr/src/uts/common/io/scsi/targets/st.c
2937
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
2945
"st_open: return val = %x, state = %d\n", rval, un->un_state);
usr/src/uts/common/io/scsi/targets/st.c
2947
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
2955
int rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
2989
rval = EACCES;
usr/src/uts/common/io/scsi/targets/st.c
2997
rval = EACCES;
usr/src/uts/common/io/scsi/targets/st.c
3018
rval = st_determine_generic(un);
usr/src/uts/common/io/scsi/targets/st.c
3019
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
3020
if (rval != EACCES) {
usr/src/uts/common/io/scsi/targets/st.c
3021
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
3026
rval == EACCES ? "EACCES" : "EIO");
usr/src/uts/common/io/scsi/targets/st.c
3117
rval = EACCES;
usr/src/uts/common/io/scsi/targets/st.c
3146
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
3162
rval = EINTR;
usr/src/uts/common/io/scsi/targets/st.c
3179
rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
3186
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
3210
rval = st_validate_tapemarks(un, st_uscsi_cmd, &un->un_pos);
usr/src/uts/common/io/scsi/targets/st.c
3211
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/st.c
3212
if (rval != EACCES) {
usr/src/uts/common/io/scsi/targets/st.c
3213
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
3222
rval = st_loadtape(un);
usr/src/uts/common/io/scsi/targets/st.c
3223
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
3224
if (rval != EACCES) {
usr/src/uts/common/io/scsi/targets/st.c
3225
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
3231
rval == EACCES ? "EACCES" : "EIO");
usr/src/uts/common/io/scsi/targets/st.c
3241
rval = st_modesense(un);
usr/src/uts/common/io/scsi/targets/st.c
3242
if (rval == EACCES) {
usr/src/uts/common/io/scsi/targets/st.c
3257
rval = EACCES;
usr/src/uts/common/io/scsi/targets/st.c
3282
rval = EACCES;
usr/src/uts/common/io/scsi/targets/st.c
3321
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
3355
rval = st_get_media_identification(un, st_uscsi_cmd);
usr/src/uts/common/io/scsi/targets/st.c
3356
if (rval != 0 && rval != EACCES) {
usr/src/uts/common/io/scsi/targets/st.c
3357
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
3368
"st_tape_init: return val = %x\n", rval);
usr/src/uts/common/io/scsi/targets/st.c
3369
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
3920
int rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
3949
rval = EINVAL;
usr/src/uts/common/io/scsi/targets/st.c
3957
rval = EINVAL;
usr/src/uts/common/io/scsi/targets/st.c
3962
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
3965
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/st.c
3966
un->un_errno = rval;
usr/src/uts/common/io/scsi/targets/st.c
3968
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
3979
rval = physio(st_queued_strategy, (struct buf *)NULL,
usr/src/uts/common/io/scsi/targets/st.c
4006
un->un_errno = rval;
usr/src/uts/common/io/scsi/targets/st.c
4010
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
4017
int rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
4041
rval = EINVAL;
usr/src/uts/common/io/scsi/targets/st.c
4049
rval = EINVAL;
usr/src/uts/common/io/scsi/targets/st.c
4054
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
4057
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/st.c
4058
un->un_errno = rval;
usr/src/uts/common/io/scsi/targets/st.c
4060
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
4067
rval =
usr/src/uts/common/io/scsi/targets/st.c
4092
un->un_errno = rval;
usr/src/uts/common/io/scsi/targets/st.c
4095
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
4516
int rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
4541
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
4548
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
4563
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
4572
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
4583
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
4593
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
4869
int tmp, rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
4921
rval = un->un_errno;
usr/src/uts/common/io/scsi/targets/st.c
4942
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
5041
rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
5043
rval = st_check_clean_bit(un);
usr/src/uts/common/io/scsi/targets/st.c
5045
if (rval == 0) {
usr/src/uts/common/io/scsi/targets/st.c
5060
mtget->mt_flags |= (ushort_t)rval;
usr/src/uts/common/io/scsi/targets/st.c
5061
rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
5087
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
5093
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
5099
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
5112
rval = st_get_error_entry(un, arg, flag);
usr/src/uts/common/io/scsi/targets/st.c
5127
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
5131
rval = st_check_media(dev, state);
usr/src/uts/common/io/scsi/targets/st.c
5135
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/st.c
5141
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
5173
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
5186
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
5195
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
5205
rval = EINVAL;
usr/src/uts/common/io/scsi/targets/st.c
5250
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
5257
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
5277
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
5318
rval = ENOTTY;
usr/src/uts/common/io/scsi/targets/st.c
5322
rval = st_reserve_release(un, ST_RESERVE, st_uscsi_cmd);
usr/src/uts/common/io/scsi/targets/st.c
5324
if (rval == 0) {
usr/src/uts/common/io/scsi/targets/st.c
5339
rval = ENOTTY;
usr/src/uts/common/io/scsi/targets/st.c
5351
rval = st_reserve_release(un, ST_RELEASE, st_uscsi_cmd);
usr/src/uts/common/io/scsi/targets/st.c
5367
rval = ENOTTY;
usr/src/uts/common/io/scsi/targets/st.c
5374
rval = EPERM;
usr/src/uts/common/io/scsi/targets/st.c
5385
rval = st_take_ownership(un, st_uscsi_cmd);
usr/src/uts/common/io/scsi/targets/st.c
5399
rval = EPERM;
usr/src/uts/common/io/scsi/targets/st.c
5401
rval = st_uscsi_cmd(un, (struct uscsi_cmd *)arg, flag);
usr/src/uts/common/io/scsi/targets/st.c
5408
rval = st_mtioctop(un, arg, flag);
usr/src/uts/common/io/scsi/targets/st.c
5414
rval = st_mtiocltop(un, arg, flag);
usr/src/uts/common/io/scsi/targets/st.c
5423
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
5428
rval = ENOTTY;
usr/src/uts/common/io/scsi/targets/st.c
5442
rval = EINVAL;
usr/src/uts/common/io/scsi/targets/st.c
5454
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
5459
rval = ENOTTY;
usr/src/uts/common/io/scsi/targets/st.c
5473
rval = EINVAL;
usr/src/uts/common/io/scsi/targets/st.c
5485
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
5497
rval = EINVAL;
usr/src/uts/common/io/scsi/targets/st.c
5502
rval = ENOTTY;
usr/src/uts/common/io/scsi/targets/st.c
5509
rval = st_update_block_pos(un, st_cmd, 0);
usr/src/uts/common/io/scsi/targets/st.c
5510
if (rval == 0) {
usr/src/uts/common/io/scsi/targets/st.c
5515
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
5528
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
5531
rval = st_validate_tapemarks(un, st_uscsi_cmd, &dest);
usr/src/uts/common/io/scsi/targets/st.c
5532
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/st.c
5533
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
5540
rval = ENOTTY;
usr/src/uts/common/io/scsi/targets/st.c
5545
un->un_errno = rval;
usr/src/uts/common/io/scsi/targets/st.c
5550
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
5569
int rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
5605
rval = st_do_mtioctop(un, &local);
usr/src/uts/common/io/scsi/targets/st.c
5611
rval = ERANGE;
usr/src/uts/common/io/scsi/targets/st.c
5623
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
5631
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
5637
rval = ERANGE;
usr/src/uts/common/io/scsi/targets/st.c
5642
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
5657
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
5664
int rval;
usr/src/uts/common/io/scsi/targets/st.c
5671
rval = st_do_mtioctop(un, &local);
usr/src/uts/common/io/scsi/targets/st.c
5674
rval = EFAULT;
usr/src/uts/common/io/scsi/targets/st.c
5676
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
5685
int rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
5720
rval = st_tape_init(un);
usr/src/uts/common/io/scsi/targets/st.c
5721
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
5727
if (rval != EACCES) {
usr/src/uts/common/io/scsi/targets/st.c
5728
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
5730
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
5800
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
5842
rval = st_write_fm(dev, (int)mtop->mt_count);
usr/src/uts/common/io/scsi/targets/st.c
5843
if ((rval != 0) && (rval != EACCES)) {
usr/src/uts/common/io/scsi/targets/st.c
5851
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
5864
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
5881
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
5925
rval = st_cmd(un, SCMD_LOAD, LD_LOAD, SYNC_CMD);
usr/src/uts/common/io/scsi/targets/st.c
5927
if ((rval == EIO) &&
usr/src/uts/common/io/scsi/targets/st.c
5935
rval = ENOTTY;
usr/src/uts/common/io/scsi/targets/st.c
5937
} else if (rval != EACCES && rval != 0) {
usr/src/uts/common/io/scsi/targets/st.c
5938
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
5940
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
5943
rval == EACCES ? "EACCES" : "EIO");
usr/src/uts/common/io/scsi/targets/st.c
5957
rval = st_tape_init(un);
usr/src/uts/common/io/scsi/targets/st.c
5958
if ((rval == EACCES) && (un->un_read_only & WORM)) {
usr/src/uts/common/io/scsi/targets/st.c
5959
rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
5963
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/st.c
5967
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
6029
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
6043
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
6061
rval = st_mtfsf_ioctl(un, mtop->mt_count);
usr/src/uts/common/io/scsi/targets/st.c
6066
rval = st_mtfsr_ioctl(un, mtop->mt_count);
usr/src/uts/common/io/scsi/targets/st.c
6071
rval = st_mtbsf_ioctl(un, mtop->mt_count);
usr/src/uts/common/io/scsi/targets/st.c
6076
rval = st_mtnbsf_ioctl(un, mtop->mt_count);
usr/src/uts/common/io/scsi/targets/st.c
6081
rval = st_mtbsr_ioctl(un, mtop->mt_count);
usr/src/uts/common/io/scsi/targets/st.c
6086
rval = st_mtbsfm_ioctl(un, mtop->mt_count);
usr/src/uts/common/io/scsi/targets/st.c
6091
rval = st_mtfsfm_ioctl(un, mtop->mt_count);
usr/src/uts/common/io/scsi/targets/st.c
6141
rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
6145
rval = st_update_block_pos(un, st_cmd, 0);
usr/src/uts/common/io/scsi/targets/st.c
6150
rval = st_logical_block_locate(un, st_uscsi_cmd, &un->un_pos,
usr/src/uts/common/io/scsi/targets/st.c
6156
if (rval == ESPIPE) {
usr/src/uts/common/io/scsi/targets/st.c
6157
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
6169
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
6177
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
6182
rval = ENOTTY;
usr/src/uts/common/io/scsi/targets/st.c
6185
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
6359
int rval;
usr/src/uts/common/io/scsi/targets/st.c
6375
rval = st_cmd(un, SCMD_WRITE_FILE_MARK, 1, SYNC_CMD);
usr/src/uts/common/io/scsi/targets/st.c
6376
if (rval == EACCES) {
usr/src/uts/common/io/scsi/targets/st.c
6377
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
6379
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/st.c
6386
rval = st_cmd(un, SCMD_WRITE_FILE_MARK, wfm, SYNC_CMD);
usr/src/uts/common/io/scsi/targets/st.c
6387
if (rval == EACCES) {
usr/src/uts/common/io/scsi/targets/st.c
6388
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
6390
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
7218
int rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
7259
rval = -1;
usr/src/uts/common/io/scsi/targets/st.c
7270
rval = -1;
usr/src/uts/common/io/scsi/targets/st.c
7276
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
7289
int succes = 0, rval = -1, i;
usr/src/uts/common/io/scsi/targets/st.c
7322
rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
7366
rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
7376
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
7382
int rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
7400
rval = -1;
usr/src/uts/common/io/scsi/targets/st.c
7409
rval = st_set_compression(un);
usr/src/uts/common/io/scsi/targets/st.c
7410
if ((rval != 0) && (rval != EALREADY)) {
usr/src/uts/common/io/scsi/targets/st.c
7411
rval = -1;
usr/src/uts/common/io/scsi/targets/st.c
7413
rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
7418
if (rval == 0) {
usr/src/uts/common/io/scsi/targets/st.c
7423
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
7429
int rval;
usr/src/uts/common/io/scsi/targets/st.c
7438
rval = st_update_block_pos(un, st_cmd, 0);
usr/src/uts/common/io/scsi/targets/st.c
7439
if (rval == EACCES) {
usr/src/uts/common/io/scsi/targets/st.c
7440
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
7446
rval = st_cmd(un, SCMD_REWIND, 1, SYNC_CMD);
usr/src/uts/common/io/scsi/targets/st.c
7447
if (rval == 0) {
usr/src/uts/common/io/scsi/targets/st.c
7453
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
7906
int rval;
usr/src/uts/common/io/scsi/targets/st.c
793
int rval;
usr/src/uts/common/io/scsi/targets/st.c
7953
rval = st_set_datacomp_page(un, turn_compression_on);
usr/src/uts/common/io/scsi/targets/st.c
7954
if (rval == EALREADY) {
usr/src/uts/common/io/scsi/targets/st.c
7955
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
7957
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/st.c
7966
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
7968
rval = -1;
usr/src/uts/common/io/scsi/targets/st.c
7976
rval = st_set_devconfig_page(un, turn_compression_on);
usr/src/uts/common/io/scsi/targets/st.c
7977
if (rval == EALREADY) {
usr/src/uts/common/io/scsi/targets/st.c
7978
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
7980
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/st.c
7993
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
7995
rval = -1;
usr/src/uts/common/io/scsi/targets/st.c
8000
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
8010
int rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
8021
rval = st_gen_mode_sense(un, st_uscsi_cmd, ST_DEV_CONFIG_PAGE,
usr/src/uts/common/io/scsi/targets/st.c
8023
if (rval)
usr/src/uts/common/io/scsi/targets/st.c
8024
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
8063
rval = st_gen_mode_select(un, st_uscsi_cmd, un->un_mspl,
usr/src/uts/common/io/scsi/targets/st.c
8066
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
8076
int rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
8087
rval = st_gen_mode_sense(un, st_uscsi_cmd, ST_DEV_DATACOMP_PAGE,
usr/src/uts/common/io/scsi/targets/st.c
8089
if (rval)
usr/src/uts/common/io/scsi/targets/st.c
8090
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
8140
rval = st_gen_mode_select(un, st_uscsi_cmd, un->un_mspl,
usr/src/uts/common/io/scsi/targets/st.c
8143
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
8149
int rval;
usr/src/uts/common/io/scsi/targets/st.c
8159
rval = st_gen_mode_sense(un, st_uscsi_cmd, page, un->un_mspl,
usr/src/uts/common/io/scsi/targets/st.c
8166
rval = st_gen_mode_sense(un, st_uscsi_cmd, page,
usr/src/uts/common/io/scsi/targets/st.c
8168
if (rval == 0 && un->un_mspl->page_code == page) {
usr/src/uts/common/io/scsi/targets/st.c
8173
rval = st_gen_mode_sense(un, st_uscsi_cmd, page,
usr/src/uts/common/io/scsi/targets/st.c
8175
if (rval == 0 && un->un_mspl->page_code == page) {
usr/src/uts/common/io/scsi/targets/st.c
8187
rval = st_cmd(un, SCMD_MODE_SENSE, MSIZE, SYNC_CMD);
usr/src/uts/common/io/scsi/targets/st.c
8189
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
8195
int rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
8212
rval = st_modesense(un);
usr/src/uts/common/io/scsi/targets/st.c
8213
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/st.c
8273
rval = st_set_compression(un);
usr/src/uts/common/io/scsi/targets/st.c
8280
if ((rval == ENOTTY) || (rval == EALREADY)) {
usr/src/uts/common/io/scsi/targets/st.c
8288
rval = st_cmd(un, SCMD_MODE_SELECT, MSIZE, SYNC_CMD);
usr/src/uts/common/io/scsi/targets/st.c
8289
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/st.c
8294
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
8296
rval = -1;
usr/src/uts/common/io/scsi/targets/st.c
8308
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
8407
int rval;
usr/src/uts/common/io/scsi/targets/st.c
8428
rval = st_uscsi_cmd(un, com, FKIOCTL);
usr/src/uts/common/io/scsi/targets/st.c
8430
rval = -1;
usr/src/uts/common/io/scsi/targets/st.c
8434
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
8441
int rval;
usr/src/uts/common/io/scsi/targets/st.c
8464
rval = st_uscsi_cmd(un, com, FKIOCTL);
usr/src/uts/common/io/scsi/targets/st.c
8466
rval = -1;
usr/src/uts/common/io/scsi/targets/st.c
8470
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
8477
int rval;
usr/src/uts/common/io/scsi/targets/st.c
850
rval = DDI_PROBE_SUCCESS;
usr/src/uts/common/io/scsi/targets/st.c
8515
rval = st_uscsi_cmd(un, com, FKIOCTL);
usr/src/uts/common/io/scsi/targets/st.c
8517
rval = -1;
usr/src/uts/common/io/scsi/targets/st.c
852
rval = DDI_PROBE_FAILURE;
usr/src/uts/common/io/scsi/targets/st.c
8521
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
8532
int rval;
usr/src/uts/common/io/scsi/targets/st.c
8547
rval = st_gen_mode_sense(un, st_uscsi_cmd, 0, current, MSIZE);
usr/src/uts/common/io/scsi/targets/st.c
8548
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/st.c
8550
"mode sense for change block size failed: rval = %d", rval);
usr/src/uts/common/io/scsi/targets/st.c
8563
rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
857
rval = DDI_PROBE_FAILURE;
usr/src/uts/common/io/scsi/targets/st.c
8573
rval = st_gen_mode_select(un, st_uscsi_cmd, current, MSIZE);
usr/src/uts/common/io/scsi/targets/st.c
8574
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/st.c
8576
"Set new block size failed: rval = %d", rval);
usr/src/uts/common/io/scsi/targets/st.c
8581
rval = st_modesense(un);
usr/src/uts/common/io/scsi/targets/st.c
8582
if (rval == 0) {
usr/src/uts/common/io/scsi/targets/st.c
8592
rval = EIO;
usr/src/uts/common/io/scsi/targets/st.c
8597
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
860
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
9235
int rval = 0;
usr/src/uts/common/io/scsi/targets/st.c
9265
rval = EAGAIN;
usr/src/uts/common/io/scsi/targets/st.c
9288
rval = EINTR;
usr/src/uts/common/io/scsi/targets/st.c
9323
rval = EACCES;
usr/src/uts/common/io/scsi/targets/st.c
9326
rval = st_cmd(un, SCMD_TEST_UNIT_READY, 0, SYNC_CMD);
usr/src/uts/common/io/scsi/targets/st.c
9327
if (rval == EACCES) {
usr/src/uts/common/io/scsi/targets/st.c
9333
if (rval) {
usr/src/uts/common/io/scsi/targets/st.c
9344
rval = st_tape_init(un);
usr/src/uts/common/io/scsi/targets/st.c
9345
if (rval != 0) {
usr/src/uts/common/io/scsi/targets/st.c
9374
return (rval);
usr/src/uts/common/io/scsi/targets/st.c
9949
errstate rval = COMMAND_DONE_ERROR;
usr/src/uts/common/io/scsi/targets/st.c
9999
rval = QUE_COMMAND;
usr/src/uts/common/io/simnet/simnet.c
1026
rval = ENOTSUP;
usr/src/uts/common/io/simnet/simnet.c
1029
rval = ENOTSUP;
usr/src/uts/common/io/simnet/simnet.c
1033
return (rval);
usr/src/uts/common/io/simnet/simnet.c
973
int rval = 0;
usr/src/uts/common/io/simnet/simnet.c
996
rval = ENOTSUP;
usr/src/uts/common/io/skd/skd.c
213
int rval = 0;
usr/src/uts/common/io/skd/skd.c
229
rval = ddi_soft_state_init(&skd_state, sizeof (skd_device_t), 0);
usr/src/uts/common/io/skd/skd.c
230
if (rval != DDI_SUCCESS)
usr/src/uts/common/io/skd/skd.c
231
return (rval);
usr/src/uts/common/io/skd/skd.c
235
rval = mod_install(&modlinkage);
usr/src/uts/common/io/skd/skd.c
236
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/skd/skd.c
241
return (rval);
usr/src/uts/common/io/skd/skd.c
274
int rval;
usr/src/uts/common/io/skd/skd.c
276
rval = mod_remove(&modlinkage);
usr/src/uts/common/io/skd/skd.c
277
if (rval == DDI_SUCCESS) {
usr/src/uts/common/io/skd/skd.c
282
return (rval);
usr/src/uts/common/io/skd/skd.c
4259
uint32_t i, rval;
usr/src/uts/common/io/skd/skd.c
4263
if ((rval = ddi_intr_block_disable(skdev->htable,
usr/src/uts/common/io/skd/skd.c
4266
rval);
usr/src/uts/common/io/skd/skd.c
4271
if ((rval = ddi_intr_disable(skdev->htable[i])) !=
usr/src/uts/common/io/skd/skd.c
4274
"intr#=%xh, " "rval=%xh", i, rval);
usr/src/uts/common/io/skd/skd.c
4293
int rval;
usr/src/uts/common/io/skd/skd.c
4313
if ((rval = ddi_intr_disable(skdev->htable[i])) !=
usr/src/uts/common/io/skd/skd.c
4316
"htable[%d], rval=%d", i, rval);
usr/src/uts/common/io/skd/skd.c
4319
if ((rval = ddi_intr_remove_handler(
usr/src/uts/common/io/skd/skd.c
4323
"rval=%d", rval);
usr/src/uts/common/io/skd/skd.c
4329
if ((rval = ddi_intr_free(skdev->htable[i])) !=
usr/src/uts/common/io/skd/skd.c
4332
"FAILED, rval=%d", rval);
usr/src/uts/common/io/skd/skd.c
4415
int32_t rval = DDI_FAILURE;
usr/src/uts/common/io/skd/skd.c
4434
(rval = skd_setup_intr(skdev, DDI_INTR_TYPE_MSIX)) == DDI_SUCCESS) {
usr/src/uts/common/io/skd/skd.c
4438
(rval = skd_setup_intr(skdev, DDI_INTR_TYPE_MSI)) == DDI_SUCCESS) {
usr/src/uts/common/io/skd/skd.c
4442
(rval = skd_setup_intr(skdev, DDI_INTR_TYPE_FIXED))
usr/src/uts/common/io/skd/skd.c
4454
return (rval);
usr/src/uts/common/io/softmac/softmac_main.c
1326
int err, rval;
usr/src/uts/common/io/softmac/softmac_main.c
1347
while (ldi_ioctl(lh, I_POP, 0, FKIOCTL, kcred, &rval) == 0)
usr/src/uts/common/io/softmac/softmac_main.c
1360
kcred, &rval)) != 0) {
usr/src/uts/common/io/softmac/softmac_main.c
1368
kcred, &rval)) != 0) {
usr/src/uts/common/io/softmac/softmac_main.c
1381
kcred, &rval)) != 0) {
usr/src/uts/common/io/softmac/softmac_main.c
722
int rval;
usr/src/uts/common/io/softmac/softmac_main.c
737
while (ldi_ioctl(lh, I_POP, 0, FKIOCTL, kcred, &rval) == 0)
usr/src/uts/common/io/softmac/softmac_main.c
741
if ((rval = dl_info(lh, &dlia, NULL, NULL, &dlea)) != 0) {
usr/src/uts/common/io/softmac/softmac_main.c
742
if (rval == ENOTSUP) {
usr/src/uts/common/io/softmac/softmac_main.c
769
if ((rval = dl_bind(lh, 0, NULL)) != 0) {
usr/src/uts/common/io/softmac/softmac_main.c
770
if (rval == ENOTSUP) {
usr/src/uts/common/io/softmac/softmac_main.c
785
if ((rval = dl_info(lh, &dlia, softmac->smac_unicst_addr,
usr/src/uts/common/io/softmac/softmac_main.c
787
if (rval == ENOTSUP) {
usr/src/uts/common/io/softmac/softmac_main.c
834
&rval) == 0) {
usr/src/uts/common/io/stream.c
3768
int rval;
usr/src/uts/common/io/stream.c
3866
rval = EWOULDBLOCK;
usr/src/uts/common/io/stream.c
3876
rval = (*proc)(qp, dp);
usr/src/uts/common/io/stream.c
3899
return (rval);
usr/src/uts/common/io/stream.c
3931
return (rval);
usr/src/uts/common/io/stream.c
3955
int rval;
usr/src/uts/common/io/stream.c
3996
rval = (*proc)(qp, idp);
usr/src/uts/common/io/stream.c
4009
return (rval);
usr/src/uts/common/io/stream.c
4044
return (rval);
usr/src/uts/common/io/strplumb.c
302
int rval;
usr/src/uts/common/io/strplumb.c
309
return (ldi_ioctl(lh, I_STR, (intptr_t)&iocb, FKIOCTL, CRED(), &rval));
usr/src/uts/common/io/strplumb.c
317
int rval;
usr/src/uts/common/io/strplumb.c
324
return (ldi_ioctl(lh, I_STR, (intptr_t)&iocb, FKIOCTL, CRED(), &rval));
usr/src/uts/common/io/strplumb.c
335
int rval;
usr/src/uts/common/io/strplumb.c
372
&rval)) != 0) {
usr/src/uts/common/io/strplumb.c
439
&rval)) != 0) {
usr/src/uts/common/io/strplumb.c
463
CRED(), &rval)) != 0) {
usr/src/uts/common/io/strsun.c
53
mioc2ack(mblk_t *mp, mblk_t *dp, size_t count, int rval)
usr/src/uts/common/io/strsun.c
61
iocp->ioc_rval = rval;
usr/src/uts/common/io/strsun.c
70
miocack(queue_t *wq, mblk_t *mp, int count, int rval)
usr/src/uts/common/io/strsun.c
77
iocp->ioc_rval = rval;
usr/src/uts/common/io/sysmsg.c
251
int rval = DDI_FAILURE;
usr/src/uts/common/io/sysmsg.c
261
rval = DDI_SUCCESS;
usr/src/uts/common/io/sysmsg.c
268
rval = DDI_SUCCESS;
usr/src/uts/common/io/sysmsg.c
276
return (rval);
usr/src/uts/common/io/sysmsg.c
511
int rval = 0;
usr/src/uts/common/io/sysmsg.c
570
if ((rval = secpolicy_console(cred)) != 0)
usr/src/uts/common/io/sysmsg.c
589
rval = EFAULT;
usr/src/uts/common/io/sysmsg.c
595
if ((rval = lookupname(infop, UIO_SYSSPACE, FOLLOW,
usr/src/uts/common/io/sysmsg.c
599
rval = EINVAL;
usr/src/uts/common/io/sysmsg.c
622
if (rval == 0 && copyoutstr(infop, (void *)arg, size, NULL))
usr/src/uts/common/io/sysmsg.c
623
rval = EFAULT;
usr/src/uts/common/io/sysmsg.c
627
if ((rval = checkarg(newdevt)) != 0)
usr/src/uts/common/io/sysmsg.c
638
rval = EEXIST;
usr/src/uts/common/io/sysmsg.c
660
if (found == 0 && rval == 0)
usr/src/uts/common/io/sysmsg.c
661
rval = ENOENT;
usr/src/uts/common/io/sysmsg.c
677
rval = ENOENT;
usr/src/uts/common/io/sysmsg.c
686
return (rval);
usr/src/uts/common/io/sysmsg.c
703
int rval = 0;
usr/src/uts/common/io/sysmsg.c
708
rval = EBUSY;
usr/src/uts/common/io/sysmsg.c
713
rval = EINVAL;
usr/src/uts/common/io/sysmsg.c
716
return (rval);
usr/src/uts/common/io/tclient.c
154
int rval;
usr/src/uts/common/io/tclient.c
168
rval = ddi_create_minor_node(devi, "client", S_IFCHR,
usr/src/uts/common/io/tclient.c
170
if (rval == DDI_FAILURE) {
usr/src/uts/common/io/tem.c
721
int rval;
usr/src/uts/common/io/tem.c
724
(intptr_t)pda, FKIOCTL, credp, &rval);
usr/src/uts/common/io/tem.c
725
return (rval);
usr/src/uts/common/io/tem.c
737
int rval;
usr/src/uts/common/io/tem.c
740
(intptr_t)pda, FKIOCTL, credp, &rval);
usr/src/uts/common/io/tem.c
753
int rval;
usr/src/uts/common/io/tem.c
756
(intptr_t)pma, FKIOCTL, credp, &rval);
usr/src/uts/common/io/tem.c
767
int rval;
usr/src/uts/common/io/tem.c
770
(intptr_t)pca, FKIOCTL, credp, &rval);
usr/src/uts/common/io/tem.c
776
int rval;
usr/src/uts/common/io/tem.c
779
(intptr_t)mode, FKIOCTL, credp, &rval);
usr/src/uts/common/io/tem.c
787
int rval;
usr/src/uts/common/io/tem.c
800
FKIOCTL, credp, &rval);
usr/src/uts/common/io/tphci.c
157
int rval;
usr/src/uts/common/io/tphci.c
159
if ((rval = ddi_soft_state_init(&tphci_state,
usr/src/uts/common/io/tphci.c
161
return (rval);
usr/src/uts/common/io/tphci.c
164
if ((rval = mod_install(&modlinkage)) != 0) {
usr/src/uts/common/io/tphci.c
167
return (rval);
usr/src/uts/common/io/tphci.c
174
int rval;
usr/src/uts/common/io/tphci.c
181
if ((rval = mod_remove(&modlinkage)) != 0) {
usr/src/uts/common/io/tphci.c
182
return (rval);
usr/src/uts/common/io/tphci.c
187
return (rval);
usr/src/uts/common/io/tphci.c
235
cred_t *credp, int *rval)
usr/src/uts/common/io/tphci.c
490
int len, rval;
usr/src/uts/common/io/tphci.c
516
rval = mdi_pi_alloc(parent, cname, guid, paddr, 0, &pip);
usr/src/uts/common/io/tphci.c
518
if (rval != MDI_SUCCESS) {
usr/src/uts/common/io/tphci.c
530
rval = mdi_pi_online(pip, 0);
usr/src/uts/common/io/tphci.c
534
if (rval != MDI_SUCCESS) {
usr/src/uts/common/io/tphci.c
554
int rval = MDI_SUCCESS;
usr/src/uts/common/io/tphci.c
571
rval = mdi_pi_offline(pip, NDI_DEVI_REMOVE);
usr/src/uts/common/io/tphci.c
575
if (rval == MDI_SUCCESS)
usr/src/uts/common/io/tphci.c
579
return (rval == MDI_SUCCESS ? NDI_SUCCESS : NDI_FAILURE);
usr/src/uts/common/io/tphci.c
592
rval = mdi_pi_offline(pip, NDI_DEVI_REMOVE);
usr/src/uts/common/io/tphci.c
596
if (rval != MDI_SUCCESS)
usr/src/uts/common/io/tphci.c
601
return (rval == MDI_SUCCESS ? NDI_SUCCESS : NDI_FAILURE);
usr/src/uts/common/io/tvhci.c
167
int rval;
usr/src/uts/common/io/tvhci.c
169
if ((rval = ddi_soft_state_init(&tvhci_state,
usr/src/uts/common/io/tvhci.c
171
return (rval);
usr/src/uts/common/io/tvhci.c
174
if ((rval = mod_install(&modlinkage)) != 0) {
usr/src/uts/common/io/tvhci.c
177
return (rval);
usr/src/uts/common/io/tvhci.c
184
int rval;
usr/src/uts/common/io/tvhci.c
191
if ((rval = mod_remove(&modlinkage)) != 0) {
usr/src/uts/common/io/tvhci.c
192
return (rval);
usr/src/uts/common/io/tvhci.c
197
return (rval);
usr/src/uts/common/io/tvhci.c
245
cred_t *credp, int *rval)
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
1135
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
1164
return (rval);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
1179
return (rval);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
1209
rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
1218
return (rval);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
1948
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
2031
rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
2045
return (rval);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
2497
int rval;
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
2525
if ((rval = usb_handle_remote_wakeup(uacp->usb_ac_dip,
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
2532
"enable failed, rval=%d", rval);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
2659
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
2674
rval = usb_ac_do_setup(uacp, engine);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
2678
return (rval);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
3312
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
3332
if ((rval = usb_pipe_sync_ctrl_xfer(
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
3353
return (rval);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
3368
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
3392
if ((rval = usb_pipe_sync_ctrl_xfer(
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
3414
return (rval);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
3433
int rval;
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
3443
rv = ldi_ioctl(lh, cmd, (intptr_t)arg, FKIOCTL, kcred, &rval);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
368
int rval;
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
371
if ((rval = ddi_soft_state_init(&usb_ac_statep,
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
373
return (rval);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
378
if ((rval = mod_install(&usb_ac_modlinkage)) != 0) {
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
383
return (rval);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
389
int rval;
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
391
if ((rval = mod_remove(&usb_ac_modlinkage)) == 0) {
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
397
return (rval);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
4100
int rval;
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
4110
FKIOCTL, kcred, &rval);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
4275
int n, error, rval;
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
4309
(intptr_t)streams_reg, FKIOCTL, kcred, &rval)) != 0) {
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
4320
rval = usb_ac_setup_plumbed(uacp, index, n);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
4331
return (rval);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
4390
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
4425
rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
4434
return (rval);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
5008
int rval;
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
5023
rval = (count == 0) ? USB_SUCCESS : USB_FAILURE;
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
5025
return (rval);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
570
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
605
rval = usb_ac_cleanup(dip, uacp);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
607
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
613
return ((rval == USB_SUCCESS) ? DDI_SUCCESS : DDI_FAILURE);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
618
rval = usb_ac_cpr_suspend(dip);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
620
return ((rval == USB_SUCCESS) ? DDI_SUCCESS : DDI_FAILURE);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
636
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
668
rval = usb_handle_remote_wakeup(dip,
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
670
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
674
"wakeup failed, rval=%d", rval);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
855
int rval = DDI_FAILURE;
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
872
rval = usb_ac_pwrlvl0(uacp);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
875
rval = usb_ac_pwrlvl1(uacp);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
878
rval = usb_ac_pwrlvl2(uacp);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
881
rval = usb_ac_pwrlvl3(uacp);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
888
return ((rval == USB_SUCCESS) ? DDI_SUCCESS : DDI_FAILURE);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
906
int rval;
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
919
rval = usb_set_device_pwrlvl3(uacp->usb_ac_dip);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
920
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
939
int rval;
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
942
rval = usb_set_device_pwrlvl2(uacp->usb_ac_dip);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
943
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
953
int rval;
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
955
rval = usb_set_device_pwrlvl1(uacp->usb_ac_dip);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
956
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
966
int rval;
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
973
rval = usb_set_device_pwrlvl0(uacp->usb_ac_dip);
usr/src/uts/common/io/usb/clients/audio/usb_ac/usb_ac.c
974
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/clients/audio/usb_ah/usb_ah.c
163
int rval = mod_install(&modlinkage);
usr/src/uts/common/io/usb/clients/audio/usb_ah/usb_ah.c
165
if (rval == 0) {
usr/src/uts/common/io/usb/clients/audio/usb_ah/usb_ah.c
171
return (rval);
usr/src/uts/common/io/usb/clients/audio/usb_ah/usb_ah.c
178
int rval = mod_remove(&modlinkage);
usr/src/uts/common/io/usb/clients/audio/usb_ah/usb_ah.c
180
if (rval == 0) {
usr/src/uts/common/io/usb/clients/audio/usb_ah/usb_ah.c
184
return (rval);
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
1003
return (rval);
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
1080
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
1141
rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
1153
rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
1211
if ((rval = usb_pipe_isoc_xfer(uasp->usb_as_isoc_ph,
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
1221
"usb_as_play_isoc_data: rval=%d", rval);
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
1223
rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
1233
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
1245
return (rval);
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
1363
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
1402
rval = usb_pipe_isoc_xfer(uasp->usb_as_isoc_ph,
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
1417
rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
1420
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
1429
"usb_as_start_record: rval=%d", rval);
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
1431
return (rval);
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
1476
int rval;
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
1497
rval = usb_pipe_isoc_xfer(uasp->usb_as_isoc_ph, isoc_req, 0);
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
1500
"usb_as_record_exc_cb: restart record rval=%d", rval);
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
1816
int rval;
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
1834
rval = usb_set_device_pwrlvl3(uasp->usb_as_dip);
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
1835
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
1860
int rval;
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
1863
rval = usb_set_device_pwrlvl2(uasp->usb_as_dip);
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
1864
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
1874
int rval;
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
1876
rval = usb_set_device_pwrlvl1(uasp->usb_as_dip);
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
1877
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
1887
int rval;
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
1895
rval = usb_set_device_pwrlvl0(uasp->usb_as_dip);
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
1896
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
1937
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
207
int rval;
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
210
if ((rval = ddi_soft_state_init(&usb_as_statep,
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
213
return (rval);
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
216
if ((rval = mod_install(&usb_as_modlinkage)) != 0) {
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
2183
return (rval);
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
220
return (rval);
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
227
int rval;
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
229
if ((rval = mod_remove(&usb_as_modlinkage)) == 0) {
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
234
return (rval);
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
415
int rval;
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
425
rval = usb_as_cpr_suspend(dip);
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
427
return ((rval == USB_SUCCESS) ? DDI_SUCCESS : DDI_FAILURE);
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
700
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
726
if ((rval = usb_as_send_ctrl_cmd(uasp,
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
743
return (rval);
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
757
int alt, rval;
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
825
rval = usb_as_send_ctrl_cmd(uasp,
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
836
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
843
return (rval);
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
857
int rval;
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
893
rval = usb_pipe_open(uasp->usb_as_dip, ep, &uasp->usb_as_isoc_pp,
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
896
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
897
switch (rval) {
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
911
rval);
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
966
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
984
rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/audio/usb_as/usb_as.c
993
if ((rval = usb_as_play_isoc_data(uasp, play_req)) !=
usr/src/uts/common/io/usb/clients/hid/hid.c
1081
if ((rval = hid_start_intr_polling(hidp)) != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/hid/hid.c
1083
"unable to start intr pipe polling. rval = %d", rval);
usr/src/uts/common/io/usb/clients/hid/hid.c
1693
int rval;
usr/src/uts/common/io/usb/clients/hid/hid.c
1722
((rval = hid_start_intr_polling(hidp)) !=
usr/src/uts/common/io/usb/clients/hid/hid.c
1726
rval);
usr/src/uts/common/io/usb/clients/hid/hid.c
1823
int rval, prev_state;
usr/src/uts/common/io/usb/clients/hid/hid.c
1838
rval = usb_pipe_drain_reqs(hidp->hid_dip,
usr/src/uts/common/io/usb/clients/hid/hid.c
1844
if ((rval != USB_SUCCESS) || (hidp->hid_default_pipe_req > 0)) {
usr/src/uts/common/io/usb/clients/hid/hid.c
1968
hid_power_change_callback(void *arg, int rval)
usr/src/uts/common/io/usb/clients/hid/hid.c
1976
"hid_power_change_callback - rval: %d", rval);
usr/src/uts/common/io/usb/clients/hid/hid.c
2265
int rval;
usr/src/uts/common/io/usb/clients/hid/hid.c
2305
rval = usb_handle_remote_wakeup(dip,
usr/src/uts/common/io/usb/clients/hid/hid.c
2308
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/usb/clients/hid/hid.c
2313
"rval= %d", rval);
usr/src/uts/common/io/usb/clients/hid/hid.c
2330
rval = usb_ugen_detach(hidp->hid_ugen_hdl, DDI_DETACH);
usr/src/uts/common/io/usb/clients/hid/hid.c
2331
VERIFY0(rval);
usr/src/uts/common/io/usb/clients/hid/hid.c
2369
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/hid/hid.c
2394
if ((rval = usb_pipe_intr_xfer(hidp->hid_interrupt_pipe, req,
usr/src/uts/common/io/usb/clients/hid/hid.c
2398
rval);
usr/src/uts/common/io/usb/clients/hid/hid.c
2406
"hid_start_intr_polling: done, rval = %d", rval);
usr/src/uts/common/io/usb/clients/hid/hid.c
2408
return (rval);
usr/src/uts/common/io/usb/clients/hid/hid.c
263
int rval;
usr/src/uts/common/io/usb/clients/hid/hid.c
265
if (((rval = ddi_soft_state_init(&hid_statep, sizeof (hid_state_t),
usr/src/uts/common/io/usb/clients/hid/hid.c
268
return (rval);
usr/src/uts/common/io/usb/clients/hid/hid.c
271
if ((rval = mod_install(&modlinkage)) != 0) {
usr/src/uts/common/io/usb/clients/hid/hid.c
2733
int rval;
usr/src/uts/common/io/usb/clients/hid/hid.c
275
return (rval);
usr/src/uts/common/io/usb/clients/hid/hid.c
2797
if ((rval = usb_pipe_ctrl_xfer(hidp->hid_default_pipe,
usr/src/uts/common/io/usb/clients/hid/hid.c
2806
"usb_pipe_ctrl_xfer() failed. rval = %d", rval);
usr/src/uts/common/io/usb/clients/hid/hid.c
282
int rval;
usr/src/uts/common/io/usb/clients/hid/hid.c
284
if ((rval = mod_remove(&modlinkage)) != 0) {
usr/src/uts/common/io/usb/clients/hid/hid.c
286
return (rval);
usr/src/uts/common/io/usb/clients/hid/hid.c
291
return (rval);
usr/src/uts/common/io/usb/clients/hid/hid.c
2994
int rval;
usr/src/uts/common/io/usb/clients/hid/hid.c
3047
if ((rval = usb_handle_remote_wakeup(hidp->hid_dip,
usr/src/uts/common/io/usb/clients/hid/hid.c
3051
"usb_handle_remote_wakeup failed (%d)", rval);
usr/src/uts/common/io/usb/clients/hid/hid.c
3062
if ((rval = hid_start_intr_polling(hidp)) != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/hid/hid.c
3066
" rval = %d ", rval);
usr/src/uts/common/io/usb/clients/hid/hid.c
3278
int rval;
usr/src/uts/common/io/usb/clients/hid/hid.c
3348
rval = usb_set_device_pwrlvl3(hidp->hid_dip);
usr/src/uts/common/io/usb/clients/hid/hid.c
3349
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/clients/hid/hid.c
3371
int rval;
usr/src/uts/common/io/usb/clients/hid/hid.c
3374
rval = usb_set_device_pwrlvl2(hidp->hid_dip);
usr/src/uts/common/io/usb/clients/hid/hid.c
3375
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/clients/hid/hid.c
3385
int rval;
usr/src/uts/common/io/usb/clients/hid/hid.c
3387
rval = usb_set_device_pwrlvl1(hidp->hid_dip);
usr/src/uts/common/io/usb/clients/hid/hid.c
3388
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/clients/hid/hid.c
3398
int rval;
usr/src/uts/common/io/usb/clients/hid/hid.c
3409
rval = usb_set_device_pwrlvl0(hidp->hid_dip);
usr/src/uts/common/io/usb/clients/hid/hid.c
3410
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/clients/hid/hid.c
3414
rval = hid_start_intr_polling(hidp);
usr/src/uts/common/io/usb/clients/hid/hid.c
3415
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/hid/hid.c
3419
rval);
usr/src/uts/common/io/usb/clients/hid/hid.c
773
int rval = DDI_FAILURE;
usr/src/uts/common/io/usb/clients/hid/hid.c
791
rval = hid_cpr_suspend(hidp);
usr/src/uts/common/io/usb/clients/hid/hid.c
793
return (rval == USB_SUCCESS ? DDI_SUCCESS : DDI_FAILURE);
usr/src/uts/common/io/usb/clients/hid/hid.c
798
return (rval);
usr/src/uts/common/io/usb/clients/hid/hid.c
804
int rval;
usr/src/uts/common/io/usb/clients/hid/hid.c
825
rval = usb_ugen_open(hidp->hid_ugen_hdl, devp, flag,
usr/src/uts/common/io/usb/clients/hid/hid.c
830
if (rval != 0) {
usr/src/uts/common/io/usb/clients/hid/hid.c
834
return (rval);
usr/src/uts/common/io/usb/clients/hid/hid.c
840
int rval;
usr/src/uts/common/io/usb/clients/hid/hid.c
858
rval = usb_ugen_close(hidp->hid_ugen_hdl, dev, flag,
usr/src/uts/common/io/usb/clients/hid/hid.c
863
if (rval == 0) {
usr/src/uts/common/io/usb/clients/hid/hid.c
867
return (rval);
usr/src/uts/common/io/usb/clients/hid/hid.c
873
int rval;
usr/src/uts/common/io/usb/clients/hid/hid.c
889
rval = usb_ugen_read(hidp->hid_ugen_hdl, dev, uiop, credp);
usr/src/uts/common/io/usb/clients/hid/hid.c
891
return (rval);
usr/src/uts/common/io/usb/clients/hid/hid.c
897
int rval;
usr/src/uts/common/io/usb/clients/hid/hid.c
90
static void hid_power_change_callback(void *arg, int rval);
usr/src/uts/common/io/usb/clients/hid/hid.c
913
rval = usb_ugen_write(hidp->hid_ugen_hdl, dev, uiop, credp);
usr/src/uts/common/io/usb/clients/hid/hid.c
915
return (rval);
usr/src/uts/common/io/usb/clients/hid/hid.c
922
int rval;
usr/src/uts/common/io/usb/clients/hid/hid.c
938
rval = usb_ugen_poll(hidp->hid_ugen_hdl, dev, events, anyyet,
usr/src/uts/common/io/usb/clients/hid/hid.c
941
return (rval);
usr/src/uts/common/io/usb/clients/hid/hid.c
953
int rval;
usr/src/uts/common/io/usb/clients/hidparser/hidparser.c
1224
int rval;
usr/src/uts/common/io/usb/clients/hidparser/hidparser.c
1230
rval = hidparser_get_report_id_list_internal(
usr/src/uts/common/io/usb/clients/hidparser/hidparser.c
1232
if (rval != HIDPARSER_SUCCESS) {
usr/src/uts/common/io/usb/clients/hidparser/hidparser.c
1234
return (rval);
usr/src/uts/common/io/usb/clients/hidparser/hidparser.c
2940
int rval, i;
usr/src/uts/common/io/usb/clients/hidparser/hidparser.c
2950
rval = hidparser_get_report_id_list(hparser_handle,
usr/src/uts/common/io/usb/clients/hidparser/hidparser.c
2952
if (rval != HIDPARSER_SUCCESS) {
usr/src/uts/common/io/usb/clients/hidparser/hidparser.c
2966
if ((rval != HIDPARSER_SUCCESS) ||
usr/src/uts/common/io/usb/clients/hidparser/hidparser.c
69
int rval = mod_install(&modlinkage);
usr/src/uts/common/io/usb/clients/hidparser/hidparser.c
71
if (rval == 0) {
usr/src/uts/common/io/usb/clients/hidparser/hidparser.c
76
return (rval);
usr/src/uts/common/io/usb/clients/hidparser/hidparser.c
82
int rval = mod_remove(&modlinkage);
usr/src/uts/common/io/usb/clients/hidparser/hidparser.c
84
if (rval == 0) {
usr/src/uts/common/io/usb/clients/hidparser/hidparser.c
88
return (rval);
usr/src/uts/common/io/usb/clients/hidparser/hidparser.c
895
int rval;
usr/src/uts/common/io/usb/clients/hidparser/hidparser.c
930
rval = hidparser_get_usage_list_in_order_internal(
usr/src/uts/common/io/usb/clients/hidparser/hidparser.c
933
if (rval != HIDPARSER_SUCCESS) {
usr/src/uts/common/io/usb/clients/hidparser/hidparser.c
935
return (rval);
usr/src/uts/common/io/usb/clients/printer/usbprn.c
1034
return (rval);
usr/src/uts/common/io/usb/clients/printer/usbprn.c
1048
int rval = 0;
usr/src/uts/common/io/usb/clients/printer/usbprn.c
1059
rval = usb_ugen_close(usbprnp->usbprn_ugen_hdl,
usr/src/uts/common/io/usb/clients/printer/usbprn.c
1062
return (rval);
usr/src/uts/common/io/usb/clients/printer/usbprn.c
1085
return (rval);
usr/src/uts/common/io/usb/clients/printer/usbprn.c
1106
int rval;
usr/src/uts/common/io/usb/clients/printer/usbprn.c
1120
rval = usb_ugen_read(usbprnp->usbprn_ugen_hdl, dev,
usr/src/uts/common/io/usb/clients/printer/usbprn.c
1127
return (rval);
usr/src/uts/common/io/usb/clients/printer/usbprn.c
1148
int rval;
usr/src/uts/common/io/usb/clients/printer/usbprn.c
1171
rval = usb_ugen_write(usbprnp->usbprn_ugen_hdl, dev,
usr/src/uts/common/io/usb/clients/printer/usbprn.c
1178
return (rval);
usr/src/uts/common/io/usb/clients/printer/usbprn.c
1221
rval = physio(usbprn_strategy, (struct buf *)0, dev,
usr/src/uts/common/io/usb/clients/printer/usbprn.c
1229
return (rval);
usr/src/uts/common/io/usb/clients/printer/usbprn.c
204
int rval;
usr/src/uts/common/io/usb/clients/printer/usbprn.c
206
if ((rval = ddi_soft_state_init(&usbprn_statep,
usr/src/uts/common/io/usb/clients/printer/usbprn.c
209
return (rval);
usr/src/uts/common/io/usb/clients/printer/usbprn.c
212
if ((rval = mod_install(&modlinkage)) != 0) {
usr/src/uts/common/io/usb/clients/printer/usbprn.c
216
return (rval);
usr/src/uts/common/io/usb/clients/printer/usbprn.c
223
int rval;
usr/src/uts/common/io/usb/clients/printer/usbprn.c
225
if ((rval = mod_remove(&modlinkage)) != 0) {
usr/src/uts/common/io/usb/clients/printer/usbprn.c
227
return (rval);
usr/src/uts/common/io/usb/clients/printer/usbprn.c
2276
int rval;
usr/src/uts/common/io/usb/clients/printer/usbprn.c
2310
if ((rval = usb_pipe_bulk_xfer(bulk_out->ps_handle, req, 0)) !=
usr/src/uts/common/io/usb/clients/printer/usbprn.c
2315
"rval=%d", (void *)mp, rval);
usr/src/uts/common/io/usb/clients/printer/usbprn.c
232
return (rval);
usr/src/uts/common/io/usb/clients/printer/usbprn.c
2536
int alt, rval, iface;
usr/src/uts/common/io/usb/clients/printer/usbprn.c
2595
if ((rval = usb_set_alt_if(dip, iface, alt,
usr/src/uts/common/io/usb/clients/printer/usbprn.c
2599
rval);
usr/src/uts/common/io/usb/clients/printer/usbprn.c
2679
int rval;
usr/src/uts/common/io/usb/clients/printer/usbprn.c
2693
rval = usb_set_device_pwrlvl3(usbprnp->usbprn_dip);
usr/src/uts/common/io/usb/clients/printer/usbprn.c
2694
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/clients/printer/usbprn.c
2722
int rval;
usr/src/uts/common/io/usb/clients/printer/usbprn.c
2728
rval = usb_set_device_pwrlvl2(usbprnp->usbprn_dip);
usr/src/uts/common/io/usb/clients/printer/usbprn.c
2729
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/clients/printer/usbprn.c
2742
int rval;
usr/src/uts/common/io/usb/clients/printer/usbprn.c
2748
rval = usb_set_device_pwrlvl1(usbprnp->usbprn_dip);
usr/src/uts/common/io/usb/clients/printer/usbprn.c
2749
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/clients/printer/usbprn.c
2807
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/printer/usbprn.c
2832
rval = usbprn_pwrlvl0(usbprnp);
usr/src/uts/common/io/usb/clients/printer/usbprn.c
2836
rval = usbprn_pwrlvl1(usbprnp);
usr/src/uts/common/io/usb/clients/printer/usbprn.c
2840
rval = usbprn_pwrlvl2(usbprnp);
usr/src/uts/common/io/usb/clients/printer/usbprn.c
2844
rval = usbprn_pwrlvl3(usbprnp);
usr/src/uts/common/io/usb/clients/printer/usbprn.c
2854
return ((rval == USB_SUCCESS) ? DDI_SUCCESS : DDI_FAILURE);
usr/src/uts/common/io/usb/clients/printer/usbprn.c
478
int rval = DDI_FAILURE;
usr/src/uts/common/io/usb/clients/printer/usbprn.c
492
rval = usbprn_cpr_suspend(dip);
usr/src/uts/common/io/usb/clients/printer/usbprn.c
494
return ((rval == USB_SUCCESS) ? DDI_SUCCESS :
usr/src/uts/common/io/usb/clients/printer/usbprn.c
498
return (rval);
usr/src/uts/common/io/usb/clients/printer/usbprn.c
511
int rval = 0;
usr/src/uts/common/io/usb/clients/printer/usbprn.c
543
if ((rval = usb_handle_remote_wakeup(dip,
usr/src/uts/common/io/usb/clients/printer/usbprn.c
550
"failed, rval=%d", rval);
usr/src/uts/common/io/usb/clients/printer/usbprn.c
607
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/printer/usbprn.c
632
rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/printer/usbprn.c
636
if ((rval == USB_SUCCESS) && usbprnp->usbprn_ugen_hdl) {
usr/src/uts/common/io/usb/clients/printer/usbprn.c
637
rval = usb_ugen_detach(usbprnp->usbprn_ugen_hdl,
usr/src/uts/common/io/usb/clients/printer/usbprn.c
641
return (rval);
usr/src/uts/common/io/usb/clients/printer/usbprn.c
683
int alt, rval;
usr/src/uts/common/io/usb/clients/printer/usbprn.c
720
if ((rval = usb_set_alt_if(dip, interface, alt, USB_FLAGS_SLEEP,
usr/src/uts/common/io/usb/clients/printer/usbprn.c
724
rval);
usr/src/uts/common/io/usb/clients/printer/usbprn.c
726
return (rval);
usr/src/uts/common/io/usb/clients/printer/usbprn.c
763
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/printer/usbprn.c
839
if ((rval = usb_pipe_ctrl_xfer_wait(usbprnp->usbprn_def_ph,
usr/src/uts/common/io/usb/clients/printer/usbprn.c
873
rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/printer/usbprn.c
878
"usbprn_get_device_id: rval=%d", rval);
usr/src/uts/common/io/usb/clients/printer/usbprn.c
880
return (rval);
usr/src/uts/common/io/usb/clients/printer/usbprn.c
951
int rval = 0;
usr/src/uts/common/io/usb/clients/printer/usbprn.c
983
rval = usb_ugen_open(usbprnp->usbprn_ugen_hdl,
usr/src/uts/common/io/usb/clients/printer/usbprn.c
988
return (rval);
usr/src/uts/common/io/usb/clients/ugen/ugen.c
130
int rval;
usr/src/uts/common/io/usb/clients/ugen/ugen.c
132
if ((rval = ddi_soft_state_init(&ugen_skel_statep,
usr/src/uts/common/io/usb/clients/ugen/ugen.c
135
return (rval);
usr/src/uts/common/io/usb/clients/ugen/ugen.c
138
if ((rval = mod_install(&modlinkage)) != 0) {
usr/src/uts/common/io/usb/clients/ugen/ugen.c
141
return (rval);
usr/src/uts/common/io/usb/clients/ugen/ugen.c
144
return (rval);
usr/src/uts/common/io/usb/clients/ugen/ugen.c
151
int rval;
usr/src/uts/common/io/usb/clients/ugen/ugen.c
153
if ((rval = mod_remove(&modlinkage)) != 0) {
usr/src/uts/common/io/usb/clients/ugen/ugen.c
155
return (rval);
usr/src/uts/common/io/usb/clients/ugen/ugen.c
159
return (rval);
usr/src/uts/common/io/usb/clients/ugen/ugen.c
175
int rval = DDI_FAILURE;
usr/src/uts/common/io/usb/clients/ugen/ugen.c
186
rval = DDI_SUCCESS;
usr/src/uts/common/io/usb/clients/ugen/ugen.c
195
rval = DDI_SUCCESS;
usr/src/uts/common/io/usb/clients/ugen/ugen.c
203
return (rval);
usr/src/uts/common/io/usb/clients/ugen/ugen.c
215
int rval;
usr/src/uts/common/io/usb/clients/ugen/ugen.c
232
rval = usb_ugen_attach(ugen_skelp->ugen_skel_hdl, cmd);
usr/src/uts/common/io/usb/clients/ugen/ugen.c
234
return (rval == USB_SUCCESS ? DDI_SUCCESS : DDI_FAILURE);
usr/src/uts/common/io/usb/clients/ugen/ugen.c
250
if ((rval = usb_client_attach(dip, USBDRV_VERSION, 0)) !=
usr/src/uts/common/io/usb/clients/ugen/ugen.c
305
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/ugen/ugen.c
312
rval = usb_ugen_detach(ugen_skelp->ugen_skel_hdl, cmd);
usr/src/uts/common/io/usb/clients/ugen/ugen.c
313
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/ugen/ugen.c
325
rval = usb_ugen_detach(ugen_skelp->ugen_skel_hdl, cmd);
usr/src/uts/common/io/usb/clients/ugen/ugen.c
334
return (rval == USB_SUCCESS ? DDI_SUCCESS : DDI_FAILURE);
usr/src/uts/common/io/usb/clients/ugen/ugen.c
456
int rval;
usr/src/uts/common/io/usb/clients/ugen/ugen.c
464
rval = usb_ugen_power(ugen_skelp->ugen_skel_hdl, comp, level);
usr/src/uts/common/io/usb/clients/ugen/ugen.c
466
return (rval == USB_SUCCESS ? DDI_SUCCESS : DDI_FAILURE);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
1148
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
1178
rval = usb_pipe_bulk_xfer(ecmp->ecm_bulkin_ph, br, 0);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
1180
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
1182
"usbsecm_rx_start: bulk transfer failed %d", rval);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
1187
return (rval);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
1242
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
1334
rval = usb_pipe_bulk_xfer(ecmp->ecm_bulkout_ph, br, 0);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
1337
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
1360
if ((rval = usbecm_send_zero_data(ecmp))
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
1374
new_data_len ? new_data_len : data_len, rval);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
1376
return (rval);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
1383
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
1404
rval = usb_pipe_bulk_xfer(ecmp->ecm_bulkout_ph, br, 0);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
1406
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
1409
rval);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
1422
return (rval);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
1493
int rval;
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
1524
rval = usb_pipe_intr_xfer(ecmp->ecm_intr_ph, intr, USB_FLAGS_SLEEP);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
1527
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
1533
"usbecm_pipe_start_polling: failed (%d)", rval);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
1538
"usbecm_pipe_start_polling: end, rval=%d", rval);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
1967
int rval;
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
1974
rval = pm_raise_power(dip, 0, USB_DEV_OS_FULL_PWR);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
1975
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
1978
"raising power failed (%d)", rval);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
1981
rval = usb_handle_remote_wakeup(dip,
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
1983
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
1986
"disable remote wakeup failed (%d)", rval);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
2005
int rval;
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
2035
rval = pm_raise_power(dip, 0, USB_DEV_OS_FULL_PWR);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
2036
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
2087
int rval;
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
2097
rval = usb_set_device_pwrlvl3(ecmp->ecm_dip);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
2098
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
2163
int rval;
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
2173
rval = usb_set_device_pwrlvl0(ecmp->ecm_dip);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
2174
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
2209
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
2255
rval = usbecm_pwrlvl0(ecmp);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
2259
rval = usbecm_pwrlvl1(ecmp);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
2263
rval = usbecm_pwrlvl2(ecmp);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
2267
rval = usbecm_pwrlvl3(ecmp);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
2274
return (rval);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
2332
int rval = DDI_SUCCESS;
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
2339
if ((rval = mac_disable(ecmp->ecm_mh)) != 0) {
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
2343
return (rval);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
2348
return (rval);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
2896
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
2947
if ((rval = usb_set_alt_if(ecmp->ecm_dip, ecmp->ecm_data_if_no,
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
2951
rval);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
2953
return (rval);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
3014
return (rval);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
3097
int rval;
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
3111
rval = usb_pipe_ctrl_xfer_wait(ecmp->ecm_def_ph, &setup, data,
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
3115
"usbecm_ctrl_write: rval = %d", rval);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
3117
return (rval);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
412
int rval;
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
550
rval = usbecm_get_statistics(ecmp,
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
552
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
628
int rval;
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
638
rval = ENODEV;
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
648
rval = EIO;
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
658
rval = EIO;
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
666
rval = usbecm_ctrl_write(ecmp, CDC_ECM_SET_ETH_PKT_FLT,
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
669
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
672
" rval=%d, continue", rval);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
705
return (rval);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
752
int rval;
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
775
rval = usbecm_ctrl_write(ecmp, CDC_ECM_SET_ETH_PKT_FLT,
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
780
"usbecm_m_unicst: rval = %d", rval);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
795
int rval = 0;
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
817
rval = usbecm_ctrl_write(ecmp, CDC_ECM_SET_ETH_PKT_FLT,
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
820
"usbecm_m_multicst: rval = %d", rval);
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
836
int rval;
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
860
rval = usbecm_ctrl_write(ecmp, CDC_ECM_SET_ETH_PKT_FLT,
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
865
"usbecm_m_promisc: rval=%d", rval);
usr/src/uts/common/io/usb/clients/usbinput/usbwcm/usbwcm.c
1687
int rval = mod_install(&modlink);
usr/src/uts/common/io/usb/clients/usbinput/usbwcm/usbwcm.c
1689
if (rval == 0) {
usr/src/uts/common/io/usb/clients/usbinput/usbwcm/usbwcm.c
1694
return (rval);
usr/src/uts/common/io/usb/clients/usbinput/usbwcm/usbwcm.c
1700
int rval = mod_remove(&modlink);
usr/src/uts/common/io/usb/clients/usbinput/usbwcm/usbwcm.c
1702
if (rval == 0) {
usr/src/uts/common/io/usb/clients/usbinput/usbwcm/usbwcm.c
1706
return (rval);
usr/src/uts/common/io/usb/clients/usbinput/usbwcm/usbwcm.c
933
usbwcm_miocack(queue_t *q, mblk_t *mp, int rval)
usr/src/uts/common/io/usb/clients/usbinput/usbwcm/usbwcm.c
942
iocbp->ioc_rval = rval;
usr/src/uts/common/io/usb/clients/usbkbm/usbkbm.c
156
int rval = mod_install(&modlinkage);
usr/src/uts/common/io/usb/clients/usbkbm/usbkbm.c
159
if (rval != 0) {
usr/src/uts/common/io/usb/clients/usbkbm/usbkbm.c
161
return (rval);
usr/src/uts/common/io/usb/clients/usbkbm/usbkbm.c
1957
int rptid, rval;
usr/src/uts/common/io/usb/clients/usbkbm/usbkbm.c
2000
rval = hidparser_get_usage_list_in_order(
usr/src/uts/common/io/usb/clients/usbkbm/usbkbm.c
2005
if (rval != HIDPARSER_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbkbm/usbkbm.c
243
int rval;
usr/src/uts/common/io/usb/clients/usbkbm/usbkbm.c
258
rval = mod_remove(&modlinkage);
usr/src/uts/common/io/usb/clients/usbkbm/usbkbm.c
260
if (rval != 0) {
usr/src/uts/common/io/usb/clients/usbkbm/usbkbm.c
264
return (rval);
usr/src/uts/common/io/usb/clients/usbms/usbms.c
1918
int rval, report_id;
usr/src/uts/common/io/usb/clients/usbms/usbms.c
1938
rval = hidparser_get_usage_attribute(
usr/src/uts/common/io/usb/clients/usbms/usbms.c
1946
if (rval == HIDPARSER_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbms/usbms.c
2193
int rval;
usr/src/uts/common/io/usb/clients/usbms/usbms.c
2205
rval = hidparser_get_usage_list_in_order(
usr/src/uts/common/io/usb/clients/usbms/usbms.c
2211
if (rval != HIDPARSER_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbms/usbms.c
2272
rval = hidparser_get_main_item_data_descr(
usr/src/uts/common/io/usb/clients/usbms/usbms.c
2280
if (rval != HIDPARSER_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbms/usbms.c
76
int rval = mod_install(&modlinkage);
usr/src/uts/common/io/usb/clients/usbms/usbms.c
78
if (rval == 0) {
usr/src/uts/common/io/usb/clients/usbms/usbms.c
83
return (rval);
usr/src/uts/common/io/usb/clients/usbms/usbms.c
89
int rval = mod_remove(&modlinkage);
usr/src/uts/common/io/usb/clients/usbms/usbms.c
91
if (rval == 0) {
usr/src/uts/common/io/usb/clients/usbms/usbms.c
95
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1245
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1255
if ((rval = uftdi_open_hw_port(uf, 1)) != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1260
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1301
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1308
rval = pm_raise_power(dip, 0, USB_DEV_OS_FULL_PWR);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1309
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1312
"raising power failed, rval=%d", rval);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1314
rval = usb_handle_remote_wakeup(dip,
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1316
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1319
"remote wakeup failed, rval=%d", rval);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1337
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1351
rval = pm_busy_component(dip, 0);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1352
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1363
rval = pm_raise_power(dip, 0, USB_DEV_OS_FULL_PWR);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1364
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1410
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1417
rval = usb_set_device_pwrlvl3(uf->uf_dip);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1418
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1462
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1469
rval = usb_set_device_pwrlvl0(uf->uf_dip);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1470
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1817
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1834
rval = usb_pipe_bulk_xfer(uf->uf_bulkin_ph, br, 0);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1836
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1838
"uftdi_rx_start: xfer failed %d", rval);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1843
if (rval != USB_SUCCESS)
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1846
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1861
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1913
rval = uftdi_send_data(uf, data);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1916
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1931
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1948
rval = usb_pipe_bulk_xfer(uf->uf_bulkout_ph, br, 0);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1950
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1952
"uftdi_send_data: xfer failed %d", rval);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1957
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1994
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
1999
rval = uftdi_cmd_vendor_write0(uf,
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
2001
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
2004
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
2036
rval = uftdi_set_port_params(uf, 0, ¶ms);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
2037
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
2040
rval);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
2044
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
2054
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
2066
if ((rval = usb_pipe_ctrl_xfer_wait(uf->uf_def_ph,
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
2070
reqno, val, idx, rval, cr, cb_flags);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
2073
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
397
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
411
if ((rval = uftdi_pm_set_busy(uf)) != USB_SUCCESS)
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
412
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
415
rval = uftdi_open_hw_port(uf, 0);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
417
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
430
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
474
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
504
rval = uftdi_pwrlvl0(uf);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
507
rval = uftdi_pwrlvl1(uf);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
510
rval = uftdi_pwrlvl2(uf);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
513
rval = uftdi_pwrlvl3(uf);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
522
if (rval == USB_SUCCESS &&
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
534
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
573
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
582
rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
584
rval = uftdi_restore_device_state(uf);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
585
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
774
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
784
rval = uftdi_cmd_vendor_write0(uf, FTDI_SIO_SET_BAUD_RATE,
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
786
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
796
rval = uftdi_cmd_vendor_write0(uf, FTDI_SIO_SET_DATA,
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
798
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
808
rval = uftdi_cmd_vendor_write0(uf, FTDI_SIO_SET_FLOW_CTRL,
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
810
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
821
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
831
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
838
rval = uftdi_param2regs(uf, tp, &uregs);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
839
if (rval == USB_SUCCESS)
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
840
rval = uftdi_setregs(uf, &uregs);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
841
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
851
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
867
rval = uftdi_cmd_vendor_write0(uf,
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
870
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
876
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
883
rval = uftdi_cmd_vendor_write0(uf,
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
886
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbftdi/uftdi_dsd.c
894
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
1407
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
1425
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
1608
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
1644
rval = usbsacm_init_ports_status(acmp);
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
1645
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
1649
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
2013
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
2111
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
2366
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
2399
rval = usb_pipe_bulk_xfer(acm_port->acm_bulkin_ph, br, 0);
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
2402
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
2404
"usbsacm_rx_start: bulk transfer failed %d", rval);
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
2409
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
2425
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
2498
rval = usbsacm_send_data(acm_port, data);
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
2504
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
2522
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
2546
rval = usb_pipe_bulk_xfer(acm_port->acm_bulkout_ph, br, 0);
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
2548
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
2561
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
2798
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
2805
rval = pm_raise_power(dip, 0, USB_DEV_OS_FULL_PWR);
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
2806
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
2809
"raising power failed (%d)", rval);
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
2812
rval = usb_handle_remote_wakeup(dip,
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
2814
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
2817
"disable remote wakeup failed (%d)", rval);
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
2837
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
2867
rval = pm_raise_power(dip, 0, USB_DEV_OS_FULL_PWR);
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
2868
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
2922
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
2932
rval = usb_set_device_pwrlvl3(acmp->acm_dip);
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
2933
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
3011
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
3021
rval = usb_set_device_pwrlvl0(acmp->acm_dip);
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
3022
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
3067
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
3101
rval = usb_pipe_intr_xfer(acm_port->acm_intr_ph, intr, USB_FLAGS_SLEEP);
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
3104
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
3110
"usbsacm_pipe_start_polling: failed (%d)", rval);
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
803
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
815
rval = usbsacm_fifo_flush_locked(acmp, port_num, DS_TX | DS_RX);
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
820
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
835
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
878
rval = usbsacm_pwrlvl0(acmp);
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
882
rval = usbsacm_pwrlvl1(acmp);
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
886
rval = usbsacm_pwrlvl2(acmp);
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
890
rval = usbsacm_pwrlvl3(acmp);
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
899
if ((rval == USB_SUCCESS) &&
usr/src/uts/common/io/usb/clients/usbser/usbsacm/usbsacm.c
911
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser.c
1164
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
1183
rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
1186
rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
1191
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser.c
1367
int rval = USBSER_CONTINUE;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
1379
rval = usbser_open_init(pp, minor);
usr/src/uts/common/io/usb/clients/usbser/usbser.c
1400
rval = usbser_open_line_setup(pp, minor, flag);
usr/src/uts/common/io/usb/clients/usbser/usbser.c
1411
rval = EINTR;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
1421
rval = EBUSY;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
1426
rval = EBUSY;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
1431
rval = usbser_open_line_setup(pp, minor, flag);
usr/src/uts/common/io/usb/clients/usbser/usbser.c
1436
rval = ENXIO;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
1441
if (rval == USBSER_CONTINUE) {
usr/src/uts/common/io/usb/clients/usbser/usbser.c
1450
if (rval == USBSER_COMPLETE) {
usr/src/uts/common/io/usb/clients/usbser/usbser.c
1464
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser.c
1476
int rval = ENXIO;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
1518
rval = USBSER_DS_OPEN_PORT(usp, pp->port_num);
usr/src/uts/common/io/usb/clients/usbser/usbser.c
1521
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbser.c
1530
if ((rval = usbser_port_program(pp)) != 0) {
usr/src/uts/common/io/usb/clients/usbser/usbser.c
1626
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
1645
rval = usbser_open_carrier_check(pp, minor, flag);
usr/src/uts/common/io/usb/clients/usbser/usbser.c
1647
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser.c
1659
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
1697
rval = cv_wait_sig(&pp->port_car_cv, &pp->port_mutex);
usr/src/uts/common/io/usb/clients/usbser/usbser.c
1701
if (rval == 0) {
usr/src/uts/common/io/usb/clients/usbser/usbser.c
1763
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
1775
if ((rval = cv_timedwait_sig(&pp->port_act_cv, &pp->port_mutex,
usr/src/uts/common/io/usb/clients/usbser/usbser.c
1784
(rval != USB_SUCCESS);
usr/src/uts/common/io/usb/clients/usbser/usbser.c
1793
rval = USBSER_DS_FIFO_DRAIN(pp, USBSER_TX_FIFO_DRAIN_TIMEOUT);
usr/src/uts/common/io/usb/clients/usbser/usbser.c
1794
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbser.c
1868
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
1875
rval = ddi_taskq_dispatch(usp->us_taskq, thr->thr_func, thr->thr_arg,
usr/src/uts/common/io/usb/clients/usbser/usbser.c
1877
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/usb/clients/usbser/usbser.c
2589
int error = 0, rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
2728
rval = USBSER_DS_SET_MODEM_CTL(pp, -1, val);
usr/src/uts/common/io/usb/clients/usbser/usbser.c
2730
rval = USBSER_DS_SET_MODEM_CTL(pp, val, -1);
usr/src/uts/common/io/usb/clients/usbser/usbser.c
2732
rval = USBSER_DS_SET_MODEM_CTL(pp, val, 0);
usr/src/uts/common/io/usb/clients/usbser/usbser.c
2734
if (rval == USB_SUCCESS)
usr/src/uts/common/io/usb/clients/usbser/usbser.c
2767
rval = USBSER_DS_GET_MODEM_CTL(pp, -1, (int *)datamp->b_rptr);
usr/src/uts/common/io/usb/clients/usbser/usbser.c
2768
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbser.c
2866
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
2893
rval = USBSER_DS_SET_MODEM_CTL(pp, -1, val);
usr/src/uts/common/io/usb/clients/usbser/usbser.c
2895
rval = USBSER_DS_SET_MODEM_CTL(pp, val, -1);
usr/src/uts/common/io/usb/clients/usbser/usbser.c
2897
rval = USBSER_DS_SET_MODEM_CTL(pp, val, 0);
usr/src/uts/common/io/usb/clients/usbser/usbser.c
2905
if (rval == USB_SUCCESS)
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3028
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3034
rval = USBSER_DS_BREAK_CTL(pp, DS_ON);
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3037
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3268
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3271
rval = (usp->us_dev_state == USB_DEV_ONLINE);
usr/src/uts/common/io/usb/clients/usbser/usbser.c
3274
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser.c
441
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
455
rval = usbser_cpr_suspend(dip);
usr/src/uts/common/io/usb/clients/usbser/usbser.c
457
return ((rval == USB_SUCCESS)? DDI_SUCCESS : DDI_FAILURE);
usr/src/uts/common/io/usb/clients/usbser/usbser.c
481
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
513
rval = usbser_open_setup(rq, pp, minor, flag, cr);
usr/src/uts/common/io/usb/clients/usbser/usbser.c
515
USB_DPRINTF_L4(DPRINT_OPEN, pp->port_lh, "usbser_open: rval=%d", rval);
usr/src/uts/common/io/usb/clients/usbser/usbser.c
517
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser.c
672
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
686
rval = USBSER_DS_USB_POWER(usp, comp, level, &new_state);
usr/src/uts/common/io/usb/clients/usbser/usbser.c
693
return ((rval == USB_SUCCESS) ? DDI_SUCCESS : DDI_FAILURE);
usr/src/uts/common/io/usb/clients/usbser/usbser.c
708
int rval = rseq[num].r_do.s_rval;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
711
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbser.c
713
"do %s failed (%d)", name, rval);
usr/src/uts/common/io/usb/clients/usbser/usbser.c
773
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbser.c
782
rval = USBSER_DS_ATTACH(usp, &ai);
usr/src/uts/common/io/usb/clients/usbser/usbser.c
784
if ((rval != USB_SUCCESS) || (usp->us_ds_hdl == NULL) ||
usr/src/uts/common/io/usb/clients/usbser/usbser.c
787
"failed %d %p %d", rval, usp->us_ds_hdl, usp->us_port_cnt);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1169
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1207
rval = keyspan_send_cmd(kp);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1208
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1237
rval = keyspan_send_cmd(kp);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1238
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1246
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1254
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1267
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1304
rval = keyspan_send_cmd(kp);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1329
rval = keyspan_send_cmd(kp);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1337
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1485
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1505
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1531
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1533
rval = usb_client_attach(ksp->ks_dip, USBDRV_VERSION, 0);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1534
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1535
rval = usb_get_dev_data(ksp->ks_dip, &ksp->ks_dev_data,
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1537
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1550
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1806
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1845
rval = usb_pipe_bulk_xfer(ksp->ks_ctrlout_pipe.pipe_handle, br,
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1847
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1853
": failure, rval=%d", rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1858
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1870
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1892
rval = usb_pipe_ctrl_xfer_wait(ksp->ks_def_pipe.pipe_handle, &setup,
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1895
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1901
"keyspan_send_cmd_usa49wg: failure, rval=%d", rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1907
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1917
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1922
rval = keyspan_send_cmd_usa49(kp);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1926
rval = keyspan_send_cmd_usa49wg(kp);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1935
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
1939
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
2008
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
2031
rval = err;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
2035
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
2081
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
2087
rval = usb_handle_remote_wakeup(dip,
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
2089
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
2092
"remote wakeup failed, rval=%d", rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
2182
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
2190
rval = usb_set_device_pwrlvl3(ksp->ks_dip);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
2191
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
2249
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
2256
rval = usb_set_device_pwrlvl0(ksp->ks_dip);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
2257
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
2336
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
2339
rval = keyspan_reopen_pipes(ksp);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
2342
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
2360
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
2455
rval = keyspan_send_data_port0(&kp->kp_dataout_pipe, &data, kp);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
2457
rval = keyspan_send_data(&kp->kp_dataout_pipe, &data, kp);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
2464
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
2472
"(%d) rval=%d", kp->kp_port_num, data_len, rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
2553
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
2556
rval = (ksp->ks_dev_state == USB_DEV_ONLINE);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
2559
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
302
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
330
rval = keyspan_init_pipes(ksp);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
335
rval = keyspan_init_pipes_usa49wg(ksp);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
346
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
459
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
468
if ((rval = keyspan_open_port_pipes(kp)) != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
470
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
481
if ((rval = keyspan_receive_data(&kp->kp_datain_pipe,
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
494
if ((rval = keyspan_receive_data(&kp->kp_datain_pipe,
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
502
if ((rval = keyspan_receive_data(&kp->kp_datain_pipe,
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
534
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
551
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
562
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
598
rval = keyspan_open_hw_port(kp, B_TRUE);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
599
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
604
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
784
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
813
rval = keyspan_pwrlvl0(ksp);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
817
rval = keyspan_pwrlvl1(ksp);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
821
rval = keyspan_pwrlvl2(ksp);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
825
rval = keyspan_pwrlvl3(ksp);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
834
if ((rval == USB_SUCCESS) &&
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
848
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
889
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
898
rval = keyspan_restore_device_state(ksp);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
900
rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_dsd.c
903
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
1598
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
1638
rval = usb_pipe_bulk_xfer(bulkin->pipe_handle, br, 0);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
1639
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
1643
"keyspan_receive_data: rval = %d", rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
1644
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
1655
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
1672
rval = usb_pipe_bulk_xfer(bulkin->pipe_handle, br, 0);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
1673
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
1677
"keyspan_receive_status: rval = %d", rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
1678
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
1695
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
1713
rval = usb_pipe_bulk_xfer(bulkout->pipe_handle, br, 0);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
1714
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
1729
"keyspan_send_data: rval = %d", rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
1731
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
1748
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
1766
rval = usb_pipe_intr_xfer(introut->pipe_handle, br, 0);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
1767
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
1780
"keyspan_send_data_port0: rval = %d", rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
1782
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
1921
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
1946
rval = usb_pipe_intr_xfer(intr->pipe_handle, br, USB_FLAGS_SLEEP);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
1949
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
1954
"keyspan_pipe_start_polling: failed (%d)", rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
440
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
452
rval = usb_pipe_open(ksp->ks_dip, &pipe->pipe_ep_descr,
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
455
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
461
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
470
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
487
if ((rval = (usb_pipe_open(ksp->ks_dip, &pipe->pipe_ep_descr,
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
503
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
576
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
581
rval = keyspan_open_one_pipe(ksp, &ksp->ks_ctrlout_pipe);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
582
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
585
rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
586
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
589
rval = keyspan_open_one_pipe(ksp, &ksp->ks_statin_pipe);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
590
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
593
rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
598
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
602
rval = keyspan_receive_status(ksp);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
603
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
606
" failed %d", rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
612
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
615
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
626
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
629
rval = keyspan_open_one_pipe(ksp, &ksp->ks_statin_pipe);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
630
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
634
rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
636
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
641
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
650
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
657
rval = keyspan_open_dev_pipes_usa49(ksp);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
661
rval = keyspan_open_dev_pipes_usa49wg(ksp);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
671
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
846
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
853
rval = keyspan_open_one_pipe(ksp, &kp->kp_datain_pipe);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
857
rval = keyspan_open_pipe_datain_usa49wg(ksp,
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
867
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
872
rval = keyspan_open_one_pipe(ksp, &kp->kp_dataout_pipe);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
873
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
878
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
882
"keyspan_open_port_pipes: failed %d", rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/keyspan_pipe.c
885
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/usbser_keyspan.c
302
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/usbser_keyspan.c
308
rval = keyspan_pre_attach(dip, cmd, usbser_keyspan_statep);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/usbser_keyspan.c
314
if (rval == DDI_ECONTEXT) {
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/usbser_keyspan.c
320
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/usbser_keyspan.c
360
int rval = DDI_FAILURE;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/usbser_keyspan.c
393
rval = DDI_ECONTEXT;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/usbser_keyspan.c
400
rval = DDI_ECONTEXT;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/usbser_keyspan.c
414
rval = DDI_ECONTEXT;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/usbser_keyspan.c
451
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/usbser_keyspan.c
521
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/usbser_keyspan.c
527
rval = keyspan_write_memory(pipe, 0x7f92, &bit, 1, KEYSPAN_REQ_SET);
usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/usbser_keyspan.c
529
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_rseq.c
125
int rnd, rval = RSEQ_OK, i;
usr/src/uts/common/io/usb/clients/usbser/usbser_rseq.c
129
rval = func(rseq, num, arg, flags, sarg1, sarg2);
usr/src/uts/common/io/usb/clients/usbser/usbser_rseq.c
133
rval = func(rseq, num, arg, flags, sarg1, rnd);
usr/src/uts/common/io/usb/clients/usbser/usbser_rseq.c
137
rval = func(rseq, num, arg, flags, sarg1, i);
usr/src/uts/common/io/usb/clients/usbser/usbser_rseq.c
142
if (rval == RSEQ_ABORT) {
usr/src/uts/common/io/usb/clients/usbser/usbser_rseq.c
149
rval = RSEQ_ABORT;
usr/src/uts/common/io/usb/clients/usbser/usbser_rseq.c
151
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_rseq.c
53
int rval = RSEQ_OK;
usr/src/uts/common/io/usb/clients/usbser/usbser_rseq.c
62
rval = (s->s_cb) ? (s->s_cb(rseq, i, arg)) : RSEQ_OK;
usr/src/uts/common/io/usb/clients/usbser/usbser_rseq.c
64
if (rval == RSEQ_UNDO) {
usr/src/uts/common/io/usb/clients/usbser/usbser_rseq.c
67
} else if (rval == RSEQ_ABORT) {
usr/src/uts/common/io/usb/clients/usbser/usbser_rseq.c
70
ASSERT(rval == RSEQ_OK);
usr/src/uts/common/io/usb/clients/usbser/usbser_rseq.c
72
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbser_rseq.c
83
int rval = RSEQ_OK;
usr/src/uts/common/io/usb/clients/usbser/usbser_rseq.c
92
rval = (s->s_cb) ? (s->s_cb(rseq, i, arg)) : RSEQ_OK;
usr/src/uts/common/io/usb/clients/usbser/usbser_rseq.c
94
if (rval == RSEQ_ABORT) {
usr/src/uts/common/io/usb/clients/usbser/usbser_rseq.c
97
ASSERT(rval == RSEQ_OK);
usr/src/uts/common/io/usb/clients/usbser/usbser_rseq.c
99
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1037
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1059
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1179
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1190
if ((rval = pl2303_open_hw_port(plp)) != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1195
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1241
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1249
rval = pm_raise_power(dip, 0, USB_DEV_OS_FULL_PWR);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1250
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1253
"raising power failed, rval=%d", rval);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1256
rval = usb_handle_remote_wakeup(dip,
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1258
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1261
"remote wakeup failed, rval=%d", rval);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1280
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1297
rval = pm_busy_component(dip, 0);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1298
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1310
rval = pm_raise_power(dip, 0, USB_DEV_OS_FULL_PWR);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1311
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1363
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1370
rval = usb_set_device_pwrlvl3(plp->pl_dip);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1371
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1419
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1426
rval = usb_set_device_pwrlvl0(plp->pl_dip);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1427
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1649
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1666
rval = usb_pipe_bulk_xfer(plp->pl_bulkin_ph, br, 0);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1668
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1670
"pl2303_rx_start: xfer failed %d", rval);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1675
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1679
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1694
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1761
rval = pl2303_send_data(plp, data);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1764
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1780
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1797
rval = usb_pipe_bulk_xfer(plp->pl_bulkout_ph, br, 0);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1799
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1801
"pl2303_send_data: xfer failed %d", rval);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1807
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1849
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1859
if ((rval = pl2303_cmd_vendor_write0(plp, SET_DCR0,
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1862
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1866
if ((rval = pl2303_cmd_vendor_write0(plp, SET_DCR1,
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1869
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1873
if ((rval = pl2303_cmd_vendor_write0(plp, SET_DCR2,
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1876
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1884
if ((rval = pl2303_cmd_vendor_write0(plp, SET_DCR0,
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1887
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1891
if ((rval = pl2303_cmd_vendor_write0(plp, SET_DCR1,
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1894
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1898
if ((rval = pl2303_cmd_vendor_write0(plp, SET_DCR2,
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1901
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1905
if ((rval = pl2303_cmd_vendor_write0(plp,
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1908
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1912
if ((rval = pl2303_cmd_vendor_write0(plp,
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1915
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1924
rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1927
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1946
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1950
rval = usb_pipe_ctrl_xfer_wait(plp->pl_def_ph, &setup, data,
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1953
if ((rval == USB_SUCCESS) && (*data != NULL)) {
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1962
rval, cr, cb_flags);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1969
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1984
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1991
rval = usb_pipe_ctrl_xfer_wait(plp->pl_def_ph, &setup, &data,
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1994
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
1997
rval, cr, cb_flags);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
2000
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
2015
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
2019
rval = usb_pipe_ctrl_xfer_wait(plp->pl_def_ph, &setup, NULL,
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
2022
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
2025
rval, cr, cb_flags);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
2028
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
2044
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
2049
rval = usb_pipe_ctrl_xfer_wait(plp->pl_def_ph, &setup, NULL,
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
2052
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
2055
value, index, rval, cr, cb_flags);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
2058
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
2096
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
2100
rval = usb_pipe_ctrl_xfer_wait(plp->pl_def_ph, &setup, NULL,
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
2103
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
2106
rval, cr, cb_flags);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
2109
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
386
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
395
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
400
if ((rval = pl2303_pm_set_busy(plp)) != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
402
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
406
rval = pl2303_open_hw_port(plp);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
408
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
423
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
471
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
504
rval = pl2303_pwrlvl0(plp);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
508
rval = pl2303_pwrlvl1(plp);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
512
rval = pl2303_pwrlvl2(plp);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
516
rval = pl2303_pwrlvl3(plp);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
525
if ((rval == USB_SUCCESS) &&
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
539
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
580
int rval;
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
589
rval = pl2303_restore_device_state(plp);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
591
rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
594
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
653
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
666
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
678
if ((rval = pl2303_cmd_get_line(plp, &bp)) != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
680
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
767
rval = pl2303_cmd_vendor_write0(
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
771
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
790
if ((rval = pl2303_cmd_set_rtscts(plp))
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
810
rval = pl2303_cmd_set_line(plp, bp);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
814
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
816
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
820
if ((rval = pl2303_cmd_get_line(plp, &bp)) != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
822
return (rval);
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
839
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
851
if ((rval = pl2303_cmd_set_ctl(plp, new_mctl)) == USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbser/usbsprl/pl2303_dsd.c
857
return (rval);
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
1009
int rval;
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
1035
if ((rval = usbskel_test_and_adjust_device_state(usbskelp)) !=
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
1040
"Error adjusting device: rval = %d", rval);
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
1194
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
1209
if ((rval = usb_pipe_open(usbskelp->usbskel_dip,
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
1214
rval);
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
1215
rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
1231
return (rval);
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
1260
int rval = DDI_SUCCESS;
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
1274
rval = DDI_FAILURE;
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
1279
return (rval);
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
1314
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
1336
rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
1369
rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
1393
return ((rval == USB_SUCCESS) ? DDI_SUCCESS : DDI_FAILURE);
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
1406
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
1426
if ((rval = usb_create_pm_components(
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
1446
return (rval);
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
1466
int rval;
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
1470
if ((rval = usb_handle_remote_wakeup(
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
1477
rval);
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
1510
int rval = 1;
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
1516
rval = cv_wait_sig(&usbskelp->usbskel_serial_cv,
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
1525
return (rval);
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
1560
int rval;
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
1581
rval = usb_pipe_ctrl_xfer_wait(usbskelp->usbskel_reg->dev_default_ph,
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
1584
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
1589
rval, completion_reason, cb_flags);
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
199
int rval;
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
203
if ((rval = ddi_soft_state_init(&usbskel_statep,
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
206
return (rval);
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
209
if ((rval = mod_install(&modlinkage)) != 0) {
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
215
return (rval);
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
225
int rval;
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
228
if ((rval = mod_remove(&modlinkage)) != 0) {
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
230
return (rval);
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
236
return (rval);
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
470
int rval = DDI_FAILURE;
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
481
rval = usbskel_cleanup(dip, usbskelp);
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
488
rval = usbskel_cpr_suspend(dip);
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
494
return ((rval == USB_SUCCESS) ? DDI_SUCCESS : DDI_FAILURE);
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
557
int rval = 0;
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
593
rval = EIO;
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
601
rval = EIO;
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
607
rval = EIO;
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
614
if (rval != 0) {
usr/src/uts/common/io/usb/clients/usbskel/usbskel.c
630
return (rval);
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
1106
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
1138
rval = usbvc_pwrlvl0(usbvcp);
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
1142
rval = usbvc_pwrlvl1(usbvcp);
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
1146
rval = usbvc_pwrlvl2(usbvcp);
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
1150
rval = usbvc_pwrlvl3(usbvcp);
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
1158
return ((rval == USB_SUCCESS) ? DDI_SUCCESS : DDI_FAILURE);
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
1227
int rval;
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
1243
if ((rval = usb_handle_remote_wakeup(
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
1251
rval);
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
1334
int rval;
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
1350
rval = usb_set_device_pwrlvl3(usbvcp->usbvc_dip);
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
1351
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
1379
int rval;
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
1385
rval = usb_set_device_pwrlvl2(usbvcp->usbvc_dip);
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
1386
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
1399
int rval;
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
1405
rval = usb_set_device_pwrlvl1(usbvcp->usbvc_dip);
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
1406
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
3023
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
3027
if ((rval = usbvc_set_alt(usbvcp, strm_if)) != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
3029
return (rval);
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
3034
if ((rval = usb_pipe_open(usbvcp->usbvc_dip, strm_if->curr_ep, &policy,
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
3040
return (rval);
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
3051
return (rval);
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
3086
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
309
int rval;
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
311
if ((rval = ddi_soft_state_init(&usbvc_statep,
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
3138
rval = usb_pipe_isoc_xfer(strm_if->datain_ph, req, 0);
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
314
return (rval);
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
3148
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
3155
"usbvc_start_isoc_polling: return, rval=%d", rval);
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
3157
return (rval);
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
317
if ((rval = mod_install(&modlinkage)) != 0) {
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
321
return (rval);
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
3246
int rval;
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
3275
rval = usb_pipe_isoc_xfer(strm_if->datain_ph, isoc_req,
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
3278
"usbvc_isoc_exc_cb: restart capture rval=%d", rval);
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
331
int rval;
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
3314
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
333
if ((rval = mod_remove(&modlinkage)) != 0) {
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
335
return (rval);
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
3378
if ((rval = usb_set_alt_if(usbvcp->usbvc_dip, if_num, strm_if->curr_alt,
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
3383
if_num, strm_if->curr_alt, rval);
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
3385
return (rval);
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
3393
return (rval);
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
340
return (rval);
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
3570
int rval = 1;
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
3576
rval = cv_wait_sig(&usbvcp->usbvc_serial_cv,
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
3585
return (rval);
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
3669
int rval;
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
3698
if ((rval = usb_pipe_ctrl_xfer_wait(usbvcp->usbvc_default_ph, &setup,
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
3705
"cb_flags=%x", rval, cr, cb_flags);
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
3707
return (rval);
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
530
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
542
rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
550
rval = USB_SUCCESS;
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
558
return ((rval == USB_SUCCESS) ? DDI_SUCCESS : DDI_FAILURE);
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
744
int rval;
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
771
rval = EFAULT;
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
781
rval = EFAULT;
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
795
rval = EFAULT;
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
803
rval = EFAULT;
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
816
rval = EFAULT;
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
831
rval = EAGAIN;
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
844
rval = EINTR;
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
851
rval = EINTR;
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
860
rval = physio(usbvc_strategy, NULL, dev, B_READ,
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
867
return (rval);
usr/src/uts/common/io/usb/clients/video/usbvc/usbvc.c
873
return (rval);
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1172
int rval;
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1181
rval = ehci_state_is_operational(ehcip);
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1184
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1186
return (rval);
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1245
int rval;
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1251
rval = ehci_state_is_operational(ehcip);
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1254
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1256
return (rval);
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1283
int rval, error = USB_SUCCESS;
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1291
rval = ehci_state_is_operational(ehcip);
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1293
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1296
return (rval);
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1340
int pipe_dir, rval, error = USB_SUCCESS;
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1348
rval = ehci_state_is_operational(ehcip);
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1350
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1353
return (rval);
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1419
int rval;
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1424
rval = ehci_state_is_operational(ehcip);
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1426
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1429
return (rval);
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1440
return (rval);
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1457
int rval;
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1460
rval = ehci_state_is_operational(ehcip);
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1463
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1465
return (rval);
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1475
return (rval);
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1491
int pipe_dir, rval;
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1499
rval = ehci_state_is_operational(ehcip);
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1501
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1504
return (rval);
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1511
rval = ehci_start_periodic_pipe_polling(ehcip, ph,
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1517
rval = USB_NO_RESOURCES;
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1519
rval = ehci_insert_isoc_req(ehcip,
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1527
return (rval);
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1542
int rval;
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1549
rval = ehci_state_is_operational(ehcip);
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1551
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1554
return (rval);
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1557
rval = ehci_stop_periodic_pipe_polling(ehcip, ph, flags);
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
1561
return (rval);
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
799
int rval, error = USB_SUCCESS;
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
813
rval = ehci_state_is_operational(ehcip);
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
816
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/hcd/ehci/ehci.c
818
return (rval);
usr/src/uts/common/io/usb/hcd/ehci/ehci_isoch.c
148
int i, ctrl, rval;
usr/src/uts/common/io/usb/hcd/ehci/ehci_isoch.c
184
rval = ddi_dma_unbind_handle(
usr/src/uts/common/io/usb/hcd/ehci/ehci_isoch.c
187
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/usb/hcd/ehci/ehci_isoch_util.c
587
int rval;
usr/src/uts/common/io/usb/hcd/ehci/ehci_isoch_util.c
598
rval = ddi_dma_unbind_handle(itw->itw_dmahandle);
usr/src/uts/common/io/usb/hcd/ehci/ehci_isoch_util.c
599
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/usb/hcd/ehci/ehci_util.c
1798
int i, ctrl, rval;
usr/src/uts/common/io/usb/hcd/ehci/ehci_util.c
1892
rval = ddi_dma_unbind_handle(
usr/src/uts/common/io/usb/hcd/ehci/ehci_util.c
1895
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/usb/hcd/ehci/ehci_util.c
1913
rval = ddi_dma_unbind_handle(
usr/src/uts/common/io/usb/hcd/ehci/ehci_util.c
1916
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/usb/hcd/ehci/ehci_util.c
1937
rval = ddi_dma_unbind_handle(
usr/src/uts/common/io/usb/hcd/ehci/ehci_util.c
1940
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/usb/hcd/ehci/ehci_xfer.c
3523
int rval;
usr/src/uts/common/io/usb/hcd/ehci/ehci_xfer.c
3536
rval = ddi_dma_unbind_handle(tw->tw_dmahandle);
usr/src/uts/common/io/usb/hcd/ehci/ehci_xfer.c
3537
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
10172
int rval, sof_wait_count;
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
10179
rval = ohci_state_is_operational(ohcip);
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
10181
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
10183
return (rval);
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
10204
rval = cv_reltimedwait(&ohcip->ohci_SOF_cv,
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
10222
if ((rval == -1) &&
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
10398
int rval;
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
10411
rval = ohci_state_is_operational(ohcip);
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
10413
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
2072
int i, state, rval;
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
2188
rval = ddi_dma_unbind_handle(
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
2191
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
2209
rval = ddi_dma_unbind_handle(
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
2212
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
2232
rval = ddi_dma_unbind_handle(
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
2235
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
2456
int rval, error = USB_SUCCESS;
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
2470
rval = ohci_state_is_operational(ohcip);
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
2473
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
2476
return (rval);
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
2815
int rval;
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
2824
rval = ohci_state_is_operational(ohcip);
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
2827
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
2829
return (rval);
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
2888
int rval;
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
2894
rval = ohci_state_is_operational(ohcip);
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
2897
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
2899
return (rval);
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
2920
int rval, error = USB_SUCCESS;
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
2928
rval = ohci_state_is_operational(ohcip);
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
2930
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
2933
return (rval);
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
2977
int pipe_dir, rval, error = USB_SUCCESS;
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
2985
rval = ohci_state_is_operational(ohcip);
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
2987
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
2990
return (rval);
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
3056
int rval;
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
3061
rval = ohci_state_is_operational(ohcip);
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
3063
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
3066
return (rval);
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
3077
return (rval);
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
3094
int rval;
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
3097
rval = ohci_state_is_operational(ohcip);
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
3100
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
3102
return (rval);
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
3112
return (rval);
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
3128
int pipe_dir, rval;
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
3136
rval = ohci_state_is_operational(ohcip);
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
3138
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
3141
return (rval);
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
3182
int rval, error = USB_SUCCESS;
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
3189
rval = ohci_state_is_operational(ohcip);
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
3191
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
3193
return (rval);
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
7616
int rval, i;
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
7631
rval = ddi_dma_unbind_handle(
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
7633
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
7641
rval = ddi_dma_unbind_handle(tw->tw_dmahandle);
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
7642
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
9389
int rval, i;
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
9411
rval = ddi_dma_unbind_handle(
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
9413
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
9420
rval = ddi_dma_addr_bind_handle(
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
9428
if ((rval == DDI_DMA_MAPPED) &&
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
9439
rval = ddi_dma_unbind_handle(tw->tw_dmahandle);
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
9440
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
9447
rval = ddi_dma_addr_bind_handle(
usr/src/uts/common/io/usb/hcd/openhci/ohci.c
9454
if (rval == DDI_DMA_MAPPED) {
usr/src/uts/common/io/usb/hcd/uhci/uhci.c
1370
int rval, i;
usr/src/uts/common/io/usb/hcd/uhci/uhci.c
1376
rval = ddi_dma_sync(
usr/src/uts/common/io/usb/hcd/uhci/uhci.c
1380
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/usb/hcd/uhci/uhci.c
1390
rval = ddi_dma_sync(tw->tw_dmahandle, 0,
usr/src/uts/common/io/usb/hcd/uhci/uhci.c
1392
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
201
rval = uhci_state_is_operational(uhcip);
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
203
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
208
return (rval);
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
714
int rval;
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
720
rval = uhci_state_is_operational(uhcip);
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
722
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
725
return (rval);
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
74
int rval, error = USB_SUCCESS;
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
772
int rval;
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
779
rval = uhci_state_is_operational(uhcip);
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
781
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
784
return (rval);
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
788
if ((rval = uhci_insert_intr_td(uhcip, pipe_handle, req, flags)) !=
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
795
return (rval);
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
809
int rval;
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
816
rval = uhci_stop_periodic_pipe_polling(uhcip, pipe_handle, flags);
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
820
return (rval);
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
835
int rval;
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
838
rval = uhci_state_is_operational(uhcip);
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
840
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
843
return (rval);
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
853
return (rval);
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
868
int rval;
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
871
rval = uhci_state_is_operational(uhcip);
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
873
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
876
return (rval);
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
88
rval = uhci_state_is_operational(uhcip);
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
885
return (rval);
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
91
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
926
int rval;
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
933
rval = uhci_state_is_operational(uhcip);
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
935
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
938
return (rval);
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
94
return (rval);
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
941
rval = uhci_stop_periodic_pipe_polling(uhcip, ph, flags);
usr/src/uts/common/io/usb/hcd/uhci/uhcitgt.c
945
return (rval);
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
2474
int rval, i;
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
2483
rval = ddi_dma_unbind_handle(
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
2485
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
2491
rval = ddi_dma_unbind_handle(tw->tw_dmahandle);
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
2492
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
353
int i, flag, rval;
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
3654
uint_t rval, i;
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
3720
rval = ddi_dma_unbind_handle(td_pool_ptr->dma_handle);
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
3721
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
374
rval = ddi_dma_unbind_handle(
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
376
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
389
rval = ddi_dma_unbind_handle(
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
391
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
3983
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
404
rval = ddi_dma_unbind_handle(
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
4044
if ((rval = uhci_allocate_periodic_in_resource(uhcip, pp, tw,
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
4050
return (rval);
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
406
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
4065
if ((rval = uhci_alloc_bulk_isoc_tds(uhcip, isoc_req->isoc_pkts_count,
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
4075
return (rval);
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
4134
rval = USB_INVALID_START_FRAME;
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
4138
rval = USB_INVALID_START_FRAME;
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
4155
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
4184
return (rval);
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
4242
return (rval);
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
4291
uint_t rval, i;
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
4359
rval = ddi_dma_unbind_handle(td_pool_ptr->dma_handle);
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
4360
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
4519
uint_t rval, i;
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
4560
rval = ddi_dma_unbind_handle(
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
4562
ASSERT(rval == DDI_SUCCESS);
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
4753
clock_t rval;
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
4771
rval = cv_reltimedwait(&uhcip->uhci_cv_SOF,
usr/src/uts/common/io/usb/hcd/uhci/uhciutil.c
4775
if ((rval == -1) &&
usr/src/uts/common/io/usb/hubd/hubd.c
102
if ((rval = ddi_soft_state_init(&hubd_statep,
usr/src/uts/common/io/usb/hubd/hubd.c
104
return (rval);
usr/src/uts/common/io/usb/hubd/hubd.c
107
if ((rval = mod_install(&modlinkage)) != 0) {
usr/src/uts/common/io/usb/hubd/hubd.c
110
return (rval);
usr/src/uts/common/io/usb/hubd/hubd.c
113
return (rval);
usr/src/uts/common/io/usb/hubd/hubd.c
120
int rval = mod_remove(&modlinkage);
usr/src/uts/common/io/usb/hubd/hubd.c
121
if (rval == 0) {
usr/src/uts/common/io/usb/hubd/hubd.c
125
return (rval);
usr/src/uts/common/io/usb/hubd/hubd.c
99
int rval;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1049
int rval;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1070
rval = scsa2usb_cpr_suspend(dip);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1072
return ((rval == USB_SUCCESS) ? DDI_SUCCESS : DDI_FAILURE);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1091
int rval;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1110
rval = cv_wait_sig(
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1113
if (rval == 0) {
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1131
rval = usb_ugen_open(scsa2usbp->scsa2usb_ugen_hdl, devp, flag,
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1133
if (!rval) {
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1160
rval = EBUSY;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1182
if (rval) {
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1196
return (rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1206
int rval;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1227
rval = usb_ugen_close(scsa2usbp->scsa2usb_ugen_hdl, dev, flag,
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1230
if (rval == 0) {
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1245
return (rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1343
int rval, i;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1408
if ((rval = usb_handle_remote_wakeup(dip,
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1414
"(%d)", rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1770
int lun, rval;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1880
rval = ndi_prop_update_int(DDI_DEV_T_NONE, cdip, "target", 0);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1881
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1884
"ndi_prop_update_int target failed %d", rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1889
rval = ndi_prop_create_boolean(DDI_DEV_T_NONE, cdip,
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1891
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1895
rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1904
rval = ndi_prop_update_int(DDI_DEV_T_NONE, cdip,
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1906
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1909
"ndi_prop_update_int pm-capable failed %d", rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1915
rval = ndi_prop_update_int(DDI_DEV_T_NONE, cdip, "lun", lun);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1916
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1919
"ndi_prop_update_int lun failed %d", rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1926
rval = ndi_prop_update_string_array(DDI_DEV_T_NONE,
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1929
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1933
rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1943
rval = ndi_prop_create_boolean(DDI_DEV_T_NONE, cdip, "usb");
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1944
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
1947
"ndi_prop_create_boolean failed %d", rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2095
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2123
rval = USB_SUCCESS;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2137
if ((rval == USB_SUCCESS) && scsa2usbp->scsa2usb_ugen_hdl) {
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2138
rval = usb_ugen_detach(scsa2usbp->scsa2usb_ugen_hdl,
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2142
return (rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2242
int rval;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2266
if ((rval = scsi_hba_probe(sd, waitfunc)) == SCSIPROBE_EXISTS) {
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2279
return (rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2399
int rval;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2419
rval = ndi_busop_bus_config(dip, flag, op, arg, child, 0);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2423
return (rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2434
int rval = NDI_SUCCESS;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2455
rval = ndi_busop_bus_unconfig(dip, flag, op, arg);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2461
if (op == BUS_UNCONFIG_ALL && rval == NDI_SUCCESS &&
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2464
rval = ndi_busop_bus_unconfig(dip, flag, op, arg);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2468
if ((rval != NDI_SUCCESS) && (op == BUS_UNCONFIG_ALL) &&
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2482
"scsa2usb_scsi_bus_unconfig: rval=%d", rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2484
return (rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2778
int rval = -1;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2789
return (rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2802
return (rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2816
return (rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2832
rval = ((2 << 16) | 18);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2835
rval = ((64 << 16) | 32);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2838
rval = ((255 << 16) | 63);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2841
rval = ((512 << 16) | 256);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2846
rval = scsa2usbp->scsa2usb_max_bulk_xfer_size;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2849
rval = SCSI_VERSION_2;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2852
rval = INTERCONNECT_USB;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2857
rval = 1;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2866
"scsa2usb_scsi_getcap: cap = %s, returned = %d", cap, rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2870
return (rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2882
int rval = -1; /* default is cap undefined */
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2891
return (rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2899
return (rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2919
rval = 1;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2926
rval = 0;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
2936
return (rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
3027
int rval, transport;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
3074
rval = scsa2usb_bulk_only_transport(scsa2usbp, cmd);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
3077
rval = scsa2usb_cbi_transport(scsa2usbp, cmd);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
3079
rval = TRAN_FATAL_ERROR;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
3084
rval = TRAN_ACCEPT;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
3087
rval = TRAN_FATAL_ERROR;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
3090
return (rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
3480
int rval = -1;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
3495
return (rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
3530
rval = 0;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
3537
return (rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
3548
int rval = SCSA2USB_TRANSPORT;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
3555
rval = SCSA2USB_JUST_ACCEPT;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
3563
rval = SCSA2USB_JUST_ACCEPT;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
3567
rval = SCSA2USB_JUST_ACCEPT;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
3572
rval = SCSA2USB_JUST_ACCEPT;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
3582
rval = SCSA2USB_JUST_ACCEPT;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
3606
rval = SCSA2USB_JUST_ACCEPT;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
3616
return (rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
4066
int rval;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
4097
rval = scsa2usb_cmd_transport(scsa2usbp, cmd);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
4102
rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
4159
if ((rval != TRAN_ACCEPT) &&
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
4520
int rval;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
4546
if ((rval = usb_pipe_xopen(scsa2usbp->scsa2usb_dip,
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
4553
" failed rval = %d", rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
4559
if ((rval = usb_pipe_xopen(scsa2usbp->scsa2usb_dip,
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
4572
" failed rval = %d", rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
4583
if ((rval = usb_pipe_xopen(scsa2usbp->scsa2usb_dip,
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
4602
" failed rval = %d", rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
4902
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
4935
rval = usb_pipe_bulk_xfer(
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
4939
scsa2usbp->scsa2usb_log_handle, "rval = %x", rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
4948
rval = usb_pipe_bulk_xfer(
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
4954
"TEST 5: Hi > Di: rval = 0x%x", rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
4958
return (rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
4972
return (rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
4988
rval = usb_pipe_bulk_xfer(scsa2usbp->scsa2usb_bulkin_pipe,
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5007
rval = usb_pipe_bulk_xfer(
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5013
"TEST 10: Ho <> Di: done rval = 0x%x", rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5016
return (rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5046
rval = usb_pipe_bulk_xfer(scsa2usbp->scsa2usb_bulkout_pipe,
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5054
"scsa2usb_handle_data_start: rval=%d cr=%d", rval,
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5057
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5079
(cmd->cmd_dir == USB_EP_DIR_IN) ? "bulk-in" : "bulk-out", rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5081
return (rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5316
int rval;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
532
int rval;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5326
rval = usb_clr_feature(dip, USB_DEV_REQ_RCPT_EP, 0, ept_addr,
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5334
what, ept_addr, rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5336
return (rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
534
if (((rval = ddi_soft_state_init(&scsa2usb_statep,
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
537
return (rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
540
if ((rval = scsi_hba_init(&modlinkage)) != 0) {
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5422
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
543
return (rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5452
rval = usb_ugen_reconnect_ev_cb(
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5456
return (rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
546
if ((rval = mod_install(&modlinkage)) != 0) {
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5492
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
550
return (rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
553
return (rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5533
rval = usb_ugen_disconnect_ev_cb(
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5537
return (rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
560
int rval;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
562
if ((rval = mod_remove(&modlinkage)) == 0) {
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5624
int rval;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5640
rval = usb_set_device_pwrlvl3(scsa2usbp->scsa2usb_dip);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5641
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5661
int rval;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5664
rval = usb_set_device_pwrlvl2(scsa2usbp->scsa2usb_dip);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5665
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
567
return (rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5674
int rval;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5677
rval = usb_set_device_pwrlvl1(scsa2usbp->scsa2usb_dip);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5678
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5687
int rval;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5696
rval = usb_set_device_pwrlvl0(scsa2usbp->scsa2usb_dip);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5697
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5717
int rval = DDI_FAILURE;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5731
return (rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5740
return (rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5750
return (rval);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5755
rval = scsa2usb_pwrlvl0(scsa2usbp);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5758
rval = scsa2usb_pwrlvl1(scsa2usbp);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5761
rval = scsa2usb_pwrlvl2(scsa2usbp);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5764
rval = scsa2usb_pwrlvl3(scsa2usbp);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5770
return ((rval == USB_SUCCESS) ? DDI_SUCCESS : DDI_FAILURE);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5864
int i, rval;
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5884
rval = usb_pipe_bulk_xfer(scsa2usbp->scsa2usb_bulkout_pipe, req, flags);
usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
5888
"scsa2usb_test_mblk: Sent Data Out rval = 0x%x", rval);
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
198
int rval;
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
219
rval = usb_pipe_bulk_xfer(scsa2usbp->scsa2usb_bulkout_pipe, req,
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
227
rval);
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
229
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
253
rval = scsa2usb_handle_data_start(scsa2usbp, cmd, req);
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
258
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
262
rval, req->bulk_completion_reason);
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
288
rval = scsa2usb_handle_status_start(scsa2usbp, req);
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
290
if ((rval != USB_SUCCESS) &&
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
305
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
307
rval = scsa2usb_handle_csw_result(scsa2usbp, req->bulk_data);
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
316
if ((rval == USB_SUCCESS) && /* CSW was ok */
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
324
return (rval == USB_SUCCESS ? TRAN_ACCEPT : TRAN_FATAL_ERROR);
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
510
int rval;
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
533
rval = usb_pipe_bulk_xfer(scsa2usbp->scsa2usb_bulkin_pipe, req,
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
538
"scsa2usb_handle_status_start: END rval = 0x%x", rval);
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
540
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
544
return (rval);
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
554
return (rval);
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
565
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
750
return (rval);
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
762
int rval;
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
790
rval = usb_pipe_sync_ctrl_xfer(scsa2usbp->scsa2usb_dip,
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
801
"\tbulk-only device-reset rval: %d", rval);
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
802
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
807
rval = scsa2usb_clear_ept_stall(scsa2usbp,
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
812
"\tbulk-in pipe clear stall: %d", rval);
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
813
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
818
rval = scsa2usb_clear_ept_stall(scsa2usbp,
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
823
"\tbulk-out pipe clear stall: %d", rval);
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
838
int luns = 1, rval;
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
849
rval = usb_pipe_sync_ctrl_xfer(scsa2usbp->scsa2usb_dip,
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
860
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/scsa2usb/usb_ms_bulkonly.c
863
rval, completion_reason, cb_flags, (void *)data);
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
153
int i, rval = TRAN_ACCEPT;
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
184
rval = usb_pipe_sync_ctrl_xfer(scsa2usbp->scsa2usb_dip,
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
198
cmd->cmd_cdb[SCSA2USB_OPCODE], rval);
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
201
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
202
scsa2usb_cbi_handle_error(scsa2usbp, rval, completion_reason);
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
226
rval = scsa2usb_handle_data_start(scsa2usbp, cmd,
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
231
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
242
rval, data_req->bulk_completion_reason);
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
257
"scsa2usb_cbi_transport: CB done rval = %d", rval);
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
271
rval = scsa2usb_handle_cbi_status(status_req);
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
281
if ((rval == USB_SUCCESS) && /* CSW was ok */
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
294
return (rval == USB_SUCCESS ? TRAN_ACCEPT : TRAN_FATAL_ERROR);
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
303
scsa2usb_cbi_handle_error(scsa2usb_state_t *scsa2usbp, int rval, usb_cr_t cr)
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
308
"scsa2usb_cbi_handle_error: data error %d cr = %d", rval, cr);
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
350
int rval;
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
370
if ((rval = usb_pipe_intr_xfer(scsa2usbp->scsa2usb_intr_pipe, req,
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
374
"polling failed rval: %d", rval);
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
384
scsa2usb_cbi_handle_error(scsa2usbp, rval,
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
392
rval = usb_pipe_get_state(scsa2usbp->scsa2usb_intr_pipe,
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
396
"intr pipes state: %d, rval: %d", pipe_state, rval);
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
437
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
492
rval = USB_FAILURE;
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
503
return (rval);
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
514
int i, rval;
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
548
rval = usb_pipe_sync_ctrl_xfer(scsa2usbp->scsa2usb_dip,
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
560
"\tCBI RESET: rval = %x cr = %x", rval, completion_reason);
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
561
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
566
rval = scsa2usb_clear_ept_stall(scsa2usbp,
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
570
"\tclear stall on bulk-in pipe: %d", rval);
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
571
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
576
rval = scsa2usb_clear_ept_stall(scsa2usbp,
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
580
"\tclear stall on bulk-out pipe: %d", rval);
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
581
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
587
rval = scsa2usb_clear_ept_stall(scsa2usbp,
usr/src/uts/common/io/usb/scsa2usb/usb_ms_cbi.c
592
"\tclear stall on intr pipe: %d", rval);
usr/src/uts/common/io/usb/usb_ia/usb_ia.c
217
int rval;
usr/src/uts/common/io/usb/usb_ia/usb_ia.c
219
rval = ddi_soft_state_init(&usb_ia_statep, sizeof (struct usb_ia),
usr/src/uts/common/io/usb/usb_ia/usb_ia.c
221
if (rval != 0) {
usr/src/uts/common/io/usb/usb_ia/usb_ia.c
222
return (rval);
usr/src/uts/common/io/usb/usb_ia/usb_ia.c
225
if ((rval = mod_install(&modlinkage)) != 0) {
usr/src/uts/common/io/usb/usb_ia/usb_ia.c
227
return (rval);
usr/src/uts/common/io/usb/usb_ia/usb_ia.c
230
return (rval);
usr/src/uts/common/io/usb/usb_ia/usb_ia.c
237
int rval;
usr/src/uts/common/io/usb/usb_ia/usb_ia.c
239
rval = mod_remove(&modlinkage);
usr/src/uts/common/io/usb/usb_ia/usb_ia.c
241
if (rval) {
usr/src/uts/common/io/usb/usb_ia/usb_ia.c
242
return (rval);
usr/src/uts/common/io/usb/usb_ia/usb_ia.c
247
return (rval);
usr/src/uts/common/io/usb/usb_ia/usb_ia.c
386
int rval;
usr/src/uts/common/io/usb/usb_ia/usb_ia.c
403
rval = ndi_busop_bus_config(dip, flag, op, arg, child, 0);
usr/src/uts/common/io/usb/usb_ia/usb_ia.c
406
return (rval);
usr/src/uts/common/io/usb/usb_ia/usb_ia.c
418
int rval = NDI_SUCCESS;
usr/src/uts/common/io/usb/usb_ia/usb_ia.c
436
rval = ndi_busop_bus_unconfig(dip, flag, op, arg);
usr/src/uts/common/io/usb/usb_ia/usb_ia.c
438
if (op == BUS_UNCONFIG_ALL && rval == NDI_SUCCESS &&
usr/src/uts/common/io/usb/usb_ia/usb_ia.c
441
rval = ndi_busop_bus_unconfig(dip, flag, op, arg);
usr/src/uts/common/io/usb/usb_ia/usb_ia.c
470
"usb_ia_bus_config: rval=%d", rval);
usr/src/uts/common/io/usb/usb_ia/usb_ia.c
472
return (rval);
usr/src/uts/common/io/usb/usb_ia/usb_ia.c
483
int rval = DDI_FAILURE;
usr/src/uts/common/io/usb/usb_ia/usb_ia.c
502
return (rval);
usr/src/uts/common/io/usb/usb_ia/usb_ia.c
505
rval = usba_common_power(dip, &(pm->uc_current_power),
usr/src/uts/common/io/usb/usb_ia/usb_ia.c
510
return (rval);
usr/src/uts/common/io/usb/usb_ia/usb_ia.c
698
int rval;
usr/src/uts/common/io/usb/usb_ia/usb_ia.c
749
rval = usb_handle_remote_wakeup(dip,
usr/src/uts/common/io/usb/usb_ia/usb_ia.c
752
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/usb/usb_ia/usb_ia.c
756
"wakeup failed, rval=%d", rval);
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
1452
int rval;
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
1469
rval = usb_ugen_open(usb_mid->mi_ugen_hdl, devp, flags, otyp,
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
1471
if (rval) {
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
1483
return (rval);
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
1492
int rval;
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
1500
rval = usb_ugen_close(usb_mid->mi_ugen_hdl, dev, flag, otyp,
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
1502
if (rval == 0) {
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
1509
return (rval);
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
235
int rval;
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
237
rval = ddi_soft_state_init(&usb_mid_statep, sizeof (struct usb_mid),
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
239
if (rval != 0) {
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
240
return (rval);
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
243
if ((rval = mod_install(&modlinkage)) != 0) {
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
245
return (rval);
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
248
return (rval);
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
255
int rval;
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
257
rval = mod_remove(&modlinkage);
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
259
if (rval) {
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
260
return (rval);
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
265
return (rval);
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
436
int rval;
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
453
rval = ndi_busop_bus_config(dip, flag, op, arg, child, 0);
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
456
return (rval);
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
468
int rval = NDI_SUCCESS;
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
486
rval = ndi_busop_bus_unconfig(dip, flag, op, arg);
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
488
if (op == BUS_UNCONFIG_ALL && rval == NDI_SUCCESS &&
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
491
rval = ndi_busop_bus_unconfig(dip, flag, op, arg);
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
521
"usb_mid_bus_config: rval=%d", rval);
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
523
return (rval);
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
534
int rval = DDI_FAILURE;
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
553
return (rval);
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
556
rval = usba_common_power(dip, &(midpm->uc_current_power),
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
561
return (rval);
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
733
int rval = usb_ugen_detach(usb_mid->mi_ugen_hdl,
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
735
return (rval == USB_SUCCESS ? DDI_SUCCESS :
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
760
int rval;
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
809
rval = usb_handle_remote_wakeup(dip,
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
812
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
816
"wakeup failed, rval=%d", rval);
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
876
int rval;
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
895
if ((rval = usb_ugen_attach(hdl, DDI_ATTACH)) != USB_SUCCESS) {
usr/src/uts/common/io/usb/usb_mid/usb_mid.c
897
"failed to create ugen support (%d)", rval);
usr/src/uts/common/io/usb/usba/hcdi.c
854
int rval;
usr/src/uts/common/io/usb/usba/hcdi.c
896
rval = usb_get_status(req_wrp->wr_dip, def_pipe_handle,
usr/src/uts/common/io/usb/usba/hcdi.c
900
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/hcdi.c
902
"get status (STALL) failed: rval=%d", rval);
usr/src/uts/common/io/usb/usba/hcdi.c
907
if ((rval != USB_SUCCESS) ||
usr/src/uts/common/io/usb/usba/hcdi.c
911
if ((rval = usb_pipe_sync_ctrl_xfer(
usr/src/uts/common/io/usb/usba/hcdi.c
926
rval, completion_reason, cb_flags);
usr/src/uts/common/io/usb/usba/hubdi.c
1157
int rval;
usr/src/uts/common/io/usb/usba/hubdi.c
1205
rval = hubd_resume_port(hubd, port);
usr/src/uts/common/io/usb/usba/hubdi.c
1206
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/hubdi.c
1374
int rval;
usr/src/uts/common/io/usb/usba/hubdi.c
1409
rval = ndi_busop_bus_config(dip, flag, op, arg, child, 0);
usr/src/uts/common/io/usb/usba/hubdi.c
1412
return (rval);
usr/src/uts/common/io/usb/usba/hubdi.c
1423
int rval;
usr/src/uts/common/io/usb/usba/hubdi.c
1439
rval = ndi_busop_bus_unconfig(dip, flag, op, arg);
usr/src/uts/common/io/usb/usba/hubdi.c
1479
"hubd_bus_unconfig: rval=%d", rval);
usr/src/uts/common/io/usb/usba/hubdi.c
1481
return (rval);
usr/src/uts/common/io/usb/usba/hubdi.c
1491
int rval, pwrup_res;
usr/src/uts/common/io/usb/usba/hubdi.c
1538
rval = pm_busop_bus_power(dip, impl_arg,
usr/src/uts/common/io/usb/usba/hubdi.c
1542
if (rval != DDI_SUCCESS || pwrup_res != DDI_SUCCESS) {
usr/src/uts/common/io/usb/usba/hubdi.c
1562
rval = hubd_resume_port(hubd, port);
usr/src/uts/common/io/usb/usba/hubdi.c
1563
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/hubdi.c
1589
rval = hubd_post_power(hubd, port, bpc, *(int *)result);
usr/src/uts/common/io/usb/usba/hubdi.c
1590
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/hubdi.c
1701
int rval;
usr/src/uts/common/io/usb/usba/hubdi.c
1716
rval = usb_set_device_pwrlvl0(hubd->h_dip);
usr/src/uts/common/io/usb/usba/hubdi.c
1717
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/usba/hubdi.c
1824
int i, rval;
usr/src/uts/common/io/usb/usba/hubdi.c
1870
rval = ddi_soft_state_zalloc(hubd_statep, instance);
usr/src/uts/common/io/usb/usba/hubdi.c
1873
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/usb/usba/hubdi.c
1953
rval = usba_hubdi_register(dip, 0);
usr/src/uts/common/io/usb/usba/hubdi.c
1954
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/hubdi.c
2140
rval = hubd_cleanup(dip, hubd);
usr/src/uts/common/io/usb/usba/hubdi.c
2141
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/hubdi.c
2155
int rval;
usr/src/uts/common/io/usb/usba/hubdi.c
2162
rval = hubd_cleanup(dip, hubd);
usr/src/uts/common/io/usb/usba/hubdi.c
2164
return ((rval == USB_SUCCESS) ? DDI_SUCCESS : DDI_FAILURE);
usr/src/uts/common/io/usb/usba/hubdi.c
2166
rval = hubd_cpr_suspend(hubd);
usr/src/uts/common/io/usb/usba/hubdi.c
2168
return ((rval == USB_SUCCESS) ? DDI_SUCCESS : DDI_FAILURE);
usr/src/uts/common/io/usb/usba/hubdi.c
2182
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/hubdi.c
2214
rval = usba_device->usb_hcdi_ops->usba_hcdi_device_address(
usr/src/uts/common/io/usb/usba/hubdi.c
2219
return (rval);
usr/src/uts/common/io/usb/usba/hubdi.c
2237
if ((rval = usb_pipe_open(child_dip, NULL, NULL,
usr/src/uts/common/io/usb/usba/hubdi.c
2247
if ((rval = usb_pipe_sync_ctrl_xfer(child_dip, ph,
usr/src/uts/common/io/usb/usba/hubdi.c
2257
retry, rval, completion_reason, cb_flags);
usr/src/uts/common/io/usb/usba/hubdi.c
2263
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/hubdi.c
2279
return (rval);
usr/src/uts/common/io/usb/usba/hubdi.c
2290
int rval;
usr/src/uts/common/io/usb/usba/hubdi.c
2309
if ((rval = usb_pipe_open(child_dip, NULL, NULL,
usr/src/uts/common/io/usb/usba/hubdi.c
2314
if ((rval = usb_pipe_sync_ctrl_xfer(child_dip, ph,
usr/src/uts/common/io/usb/usba/hubdi.c
2325
completion_reason, cb_flags, rval);
usr/src/uts/common/io/usb/usba/hubdi.c
2335
"pipe open fails: rval=%d", rval);
usr/src/uts/common/io/usb/usba/hubdi.c
2532
int rval;
usr/src/uts/common/io/usb/usba/hubdi.c
2572
rval = hubd_disable_all_port_power(hubd);
usr/src/uts/common/io/usb/usba/hubdi.c
2573
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/hubdi.c
2643
rval = hubd_setdevaddr(hubd, port);
usr/src/uts/common/io/usb/usba/hubdi.c
2645
} while ((rval != USB_SUCCESS) &&
usr/src/uts/common/io/usb/usba/hubdi.c
2671
rval = usba_persistent_pipe_open(
usr/src/uts/common/io/usb/usba/hubdi.c
2674
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/usba/hubdi.c
2762
int rval, old_dev_state;
usr/src/uts/common/io/usb/usba/hubdi.c
2841
rval = ndi_event_free_hdl(hubd->h_ndi_event_hdl);
usr/src/uts/common/io/usb/usba/hubdi.c
2845
ASSERT(rval == NDI_SUCCESS);
usr/src/uts/common/io/usb/usba/hubdi.c
2847
} else if (rval != NDI_SUCCESS) {
usr/src/uts/common/io/usb/usba/hubdi.c
2900
if ((rval = usb_handle_remote_wakeup(hubd->h_dip,
usr/src/uts/common/io/usb/usba/hubdi.c
2905
"fails=%d", rval);
usr/src/uts/common/io/usb/usba/hubdi.c
2928
rval = usba_hubdi_unregister(dip);
usr/src/uts/common/io/usb/usba/hubdi.c
2929
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/usba/hubdi.c
3023
int rval;
usr/src/uts/common/io/usb/usba/hubdi.c
3035
if ((rval = hubd_disable_all_port_power(hubd)) != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/hubdi.c
3040
return (rval);
usr/src/uts/common/io/usb/usba/hubdi.c
3054
if ((rval = hubd_enable_all_port_power(hubd)) != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/hubdi.c
3058
return (rval);
usr/src/uts/common/io/usb/usba/hubdi.c
3086
if ((rval = hubd_open_intr_pipe(hubd)) != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/hubdi.c
3089
return (rval);
usr/src/uts/common/io/usb/usba/hubdi.c
3146
int rval;
usr/src/uts/common/io/usb/usba/hubdi.c
3179
if ((rval = usb_pipe_sync_ctrl_xfer(hubd->h_dip,
usr/src/uts/common/io/usb/usba/hubdi.c
3190
completion_reason, cb_flags, rval);
usr/src/uts/common/io/usb/usba/hubdi.c
3194
return (rval);
usr/src/uts/common/io/usb/usba/hubdi.c
3204
rval = usb_pipe_sync_ctrl_xfer(hubd->h_dip,
usr/src/uts/common/io/usb/usba/hubdi.c
3218
if ((rval != USB_SUCCESS) || (MBLKL(data) <= 8)) {
usr/src/uts/common/io/usb/usba/hubdi.c
3222
completion_reason, cb_flags, rval,
usr/src/uts/common/io/usb/usba/hubdi.c
3227
return (rval);
usr/src/uts/common/io/usb/usba/hubdi.c
3283
"PwrOn2PwrGood=0x%x HubContrCurrent=%dmA", rval,
usr/src/uts/common/io/usb/usba/hubdi.c
3302
int rval;
usr/src/uts/common/io/usb/usba/hubdi.c
3348
if ((rval = usb_pipe_sync_ctrl_xfer(hubd->h_dip,
usr/src/uts/common/io/usb/usba/hubdi.c
3362
return (rval);
usr/src/uts/common/io/usb/usba/hubdi.c
3422
int rval;
usr/src/uts/common/io/usb/usba/hubdi.c
3432
if ((rval = usb_pipe_xopen(hubd->h_dip,
usr/src/uts/common/io/usb/usba/hubdi.c
3436
"open intr pipe failed (%d)", rval);
usr/src/uts/common/io/usb/usba/hubdi.c
3441
return (rval);
usr/src/uts/common/io/usb/usba/hubdi.c
3462
int rval;
usr/src/uts/common/io/usb/usba/hubdi.c
3491
if ((rval = usb_pipe_intr_xfer(hubd->h_ep1_ph, reqp,
usr/src/uts/common/io/usb/usba/hubdi.c
3494
"start polling failed, rval=%d", rval);
usr/src/uts/common/io/usb/usba/hubdi.c
3498
rval = usb_pipe_get_state(hubd->h_ep1_ph, &pipe_state,
usr/src/uts/common/io/usb/usba/hubdi.c
3502
"intr pipe state=%d, rval=%d", pipe_state, rval);
usr/src/uts/common/io/usb/usba/hubdi.c
3519
int rval;
usr/src/uts/common/io/usb/usba/hubdi.c
3529
rval = usb_pipe_get_state(hubd->h_ep1_ph, &pipe_state,
usr/src/uts/common/io/usb/usba/hubdi.c
3534
"intr pipe state=%d, rval=%d", pipe_state, rval);
usr/src/uts/common/io/usb/usba/hubdi.c
3631
usb_port_mask_t rval = 0;
usr/src/uts/common/io/usb/usba/hubdi.c
3635
rval |= data->b_rptr[i] << (i * 8);
usr/src/uts/common/io/usb/usba/hubdi.c
3638
return (rval);
usr/src/uts/common/io/usb/usba/hubdi.c
4225
int rval;
usr/src/uts/common/io/usb/usba/hubdi.c
4274
if ((rval = hubd_reset_port(hubd, port)) != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/hubdi.c
4318
if ((rval = hubd_determine_port_status(hubd, port, &status,
usr/src/uts/common/io/usb/usba/hubdi.c
4322
"getting status failed (%d)", rval);
usr/src/uts/common/io/usb/usba/hubdi.c
4368
rval = hubd_setdevaddr(hubd, port);
usr/src/uts/common/io/usb/usba/hubdi.c
4382
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/hubdi.c
4436
rval = hubd_create_child(hubd->h_dip,
usr/src/uts/common/io/usb/usba/hubdi.c
4441
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/hubdi.c
4529
int rval;
usr/src/uts/common/io/usb/usba/hubdi.c
4559
rval = usb_parse_cfg_descr(usb_cfg, cfg_length,
usr/src/uts/common/io/usb/usba/hubdi.c
4562
if (rval != USB_CFG_DESCR_SIZE) {
usr/src/uts/common/io/usb/usba/hubdi.c
4613
if ((rval = usb_pipe_sync_ctrl_xfer(hubd->h_dip,
usr/src/uts/common/io/usb/usba/hubdi.c
4626
rval, completion_reason, cb_flags);
usr/src/uts/common/io/usb/usba/hubdi.c
4672
if ((rval = usb_pipe_sync_ctrl_xfer(hubd->h_dip,
usr/src/uts/common/io/usb/usba/hubdi.c
4685
rval, completion_reason, cb_flags);
usr/src/uts/common/io/usb/usba/hubdi.c
4793
int rval;
usr/src/uts/common/io/usb/usba/hubdi.c
4812
if ((rval = usb_pipe_sync_ctrl_xfer(hubd->h_dip,
usr/src/uts/common/io/usb/usba/hubdi.c
4823
port, completion_reason, cb_flags, rval);
usr/src/uts/common/io/usb/usba/hubdi.c
4843
rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/hubdi.c
4869
if ((rval = usb_pipe_sync_ctrl_xfer(hubd->h_dip,
usr/src/uts/common/io/usb/usba/hubdi.c
4881
port, completion_reason, cb_flags, rval);
usr/src/uts/common/io/usb/usba/hubdi.c
4938
port, completion_reason, cb_flags, rval);
usr/src/uts/common/io/usb/usba/hubdi.c
4963
port, completion_reason, cb_flags, rval);
usr/src/uts/common/io/usb/usba/hubdi.c
4967
rval = USB_SUCCESS;
usr/src/uts/common/io/usb/usba/hubdi.c
4973
return (rval);
usr/src/uts/common/io/usb/usba/hubdi.c
4984
int rval;
usr/src/uts/common/io/usb/usba/hubdi.c
5002
if ((rval = usb_pipe_sync_ctrl_xfer(hubd->h_dip,
usr/src/uts/common/io/usb/usba/hubdi.c
5013
port, completion_reason, cb_flags, rval);
usr/src/uts/common/io/usb/usba/hubdi.c
5021
return (rval);
usr/src/uts/common/io/usb/usba/hubdi.c
5031
int rval;
usr/src/uts/common/io/usb/usba/hubdi.c
5042
if ((rval = usb_pipe_sync_ctrl_xfer(hubd->h_dip,
usr/src/uts/common/io/usb/usba/hubdi.c
5053
completion_reason, cb_flags, rval);
usr/src/uts/common/io/usb/usba/hubdi.c
5062
if ((rval = usb_pipe_sync_ctrl_xfer(hubd->h_dip,
usr/src/uts/common/io/usb/usba/hubdi.c
5075
port, completion_reason, cb_flags, rval);
usr/src/uts/common/io/usb/usba/hubdi.c
5095
int rval;
usr/src/uts/common/io/usb/usba/hubdi.c
5120
if ((rval = usb_pipe_sync_ctrl_xfer(hubd->h_dip,
usr/src/uts/common/io/usb/usba/hubdi.c
5131
port, completion_reason, cb_flags, rval);
usr/src/uts/common/io/usb/usba/hubdi.c
5139
return (rval);
usr/src/uts/common/io/usb/usba/hubdi.c
5149
return (rval);
usr/src/uts/common/io/usb/usba/hubdi.c
5249
if ((rval = usb_pipe_sync_ctrl_xfer(hubd->h_dip,
usr/src/uts/common/io/usb/usba/hubdi.c
5262
port, completion_reason, cb_flags, rval);
usr/src/uts/common/io/usb/usba/hubdi.c
5268
if ((rval = usb_pipe_sync_ctrl_xfer(hubd->h_dip,
usr/src/uts/common/io/usb/usba/hubdi.c
5281
port, completion_reason, cb_flags, rval);
usr/src/uts/common/io/usb/usba/hubdi.c
5288
if ((rval = usb_pipe_sync_ctrl_xfer(hubd->h_dip,
usr/src/uts/common/io/usb/usba/hubdi.c
5301
port, completion_reason, cb_flags, rval);
usr/src/uts/common/io/usb/usba/hubdi.c
5308
if ((rval = usb_pipe_sync_ctrl_xfer(hubd->h_dip,
usr/src/uts/common/io/usb/usba/hubdi.c
5321
port, completion_reason, cb_flags, rval);
usr/src/uts/common/io/usb/usba/hubdi.c
5327
if ((rval = usb_pipe_sync_ctrl_xfer(hubd->h_dip,
usr/src/uts/common/io/usb/usba/hubdi.c
5340
port, completion_reason, cb_flags, rval);
usr/src/uts/common/io/usb/usba/hubdi.c
5346
if ((rval = usb_pipe_sync_ctrl_xfer(hubd->h_dip,
usr/src/uts/common/io/usb/usba/hubdi.c
5359
port, completion_reason, cb_flags, rval);
usr/src/uts/common/io/usb/usba/hubdi.c
5365
if ((rval = usb_pipe_sync_ctrl_xfer(hubd->h_dip,
usr/src/uts/common/io/usb/usba/hubdi.c
5378
port, completion_reason, cb_flags, rval);
usr/src/uts/common/io/usb/usba/hubdi.c
5384
if ((rval = usb_pipe_sync_ctrl_xfer(hubd->h_dip,
usr/src/uts/common/io/usb/usba/hubdi.c
5397
port, completion_reason, cb_flags, rval);
usr/src/uts/common/io/usb/usba/hubdi.c
5422
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/hubdi.c
5441
rval = hubd_handle_port_connect(hubd, port);
usr/src/uts/common/io/usb/usba/hubdi.c
5447
return (rval);
usr/src/uts/common/io/usb/usba/hubdi.c
5557
int rval;
usr/src/uts/common/io/usb/usba/hubdi.c
5569
if ((rval = usb_pipe_sync_ctrl_xfer(hubd->h_dip,
usr/src/uts/common/io/usb/usba/hubdi.c
5579
completion_reason, cb_flags, rval);
usr/src/uts/common/io/usb/usba/hubdi.c
5623
int rval;
usr/src/uts/common/io/usb/usba/hubdi.c
5634
if ((rval = usb_pipe_sync_ctrl_xfer(hubd->h_dip,
usr/src/uts/common/io/usb/usba/hubdi.c
5644
port, completion_reason, cb_flags, rval);
usr/src/uts/common/io/usb/usba/hubdi.c
5746
int rval;
usr/src/uts/common/io/usb/usba/hubdi.c
5766
if ((rval = usb_pipe_sync_ctrl_xfer(dip, def_ph,
usr/src/uts/common/io/usb/usba/hubdi.c
5784
rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/hubdi.c
5804
rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/hubdi.c
5814
rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/hubdi.c
5822
if ((rval = usb_pipe_sync_ctrl_xfer(dip, def_ph,
usr/src/uts/common/io/usb/usba/hubdi.c
5842
rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/hubdi.c
5874
if ((rval = usb_get_string_descr(dip,
usr/src/uts/common/io/usb/usba/hubdi.c
5897
rval = USB_SUCCESS;
usr/src/uts/common/io/usb/usba/hubdi.c
5904
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/hubdi.c
5909
conf_index, rval, completion_reason);
usr/src/uts/common/io/usb/usba/hubdi.c
5920
return (rval);
usr/src/uts/common/io/usb/usba/hubdi.c
5931
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/usba/hubdi.c
5962
(rval == USB_SUCCESS); conf_index++) {
usr/src/uts/common/io/usb/usba/hubdi.c
5964
rval = hubd_get_this_config_cloud(hubd, dip, child_ud,
usr/src/uts/common/io/usb/usba/hubdi.c
5968
return (rval);
usr/src/uts/common/io/usb/usba/hubdi.c
6071
int rval;
usr/src/uts/common/io/usb/usba/hubdi.c
6101
rval = usba_create_child_devi(dip,
usr/src/uts/common/io/usb/usba/hubdi.c
6109
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/hubdi.c
6112
"usb_create_child_devi failed (%d)", rval);
usr/src/uts/common/io/usb/usba/hubdi.c
6178
int rval;
usr/src/uts/common/io/usb/usba/hubdi.c
6181
rval = child_ud->usb_hcdi_ops->usba_hcdi_device_init(child_ud,
usr/src/uts/common/io/usb/usba/hubdi.c
6183
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/hubdi.c
6185
"HCD usba_hcdi_Device_init failed (%d)", rval);
usr/src/uts/common/io/usb/usba/hubdi.c
6196
if ((rval = usb_pipe_open(child_dip, NULL, NULL,
usr/src/uts/common/io/usb/usba/hubdi.c
6199
"usb_pipe_open failed (%d)", rval);
usr/src/uts/common/io/usb/usba/hubdi.c
6210
rval = usb_pipe_sync_ctrl_xfer(child_dip, ph,
usr/src/uts/common/io/usb/usba/hubdi.c
6224
if ((rval != USB_SUCCESS) &&
usr/src/uts/common/io/usb/usba/hubdi.c
6239
rval = usb_pipe_sync_ctrl_xfer(child_dip, ph,
usr/src/uts/common/io/usb/usba/hubdi.c
6248
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/hubdi.c
6251
usb_str_cr(completion_reason), cb_flags, rval);
usr/src/uts/common/io/usb/usba/hubdi.c
6287
rval = child_ud->usb_hcdi_ops->usba_hcdi_device_address(
usr/src/uts/common/io/usb/usba/hubdi.c
6289
if (rval != USB_SUCCESS)
usr/src/uts/common/io/usb/usba/hubdi.c
6293
if ((rval = usb_pipe_sync_ctrl_xfer(child_dip, ph,
usr/src/uts/common/io/usb/usba/hubdi.c
6306
rval);
usr/src/uts/common/io/usb/usba/hubdi.c
6339
if ((rval = usb_pipe_open(child_dip, NULL, NULL,
usr/src/uts/common/io/usb/usba/hubdi.c
6342
"usb_pipe_open failed (%d)", rval);
usr/src/uts/common/io/usb/usba/hubdi.c
6356
if ((rval = usb_pipe_sync_ctrl_xfer(child_dip, ph,
usr/src/uts/common/io/usb/usba/hubdi.c
6372
rval = usb_pipe_sync_ctrl_xfer(child_dip, ph,
usr/src/uts/common/io/usb/usba/hubdi.c
6391
} else if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/hubdi.c
6396
completion_reason, cb_flags, rval);
usr/src/uts/common/io/usb/usba/hubdi.c
6464
rval = hubd_get_all_device_config_cloud(hubd, child_dip, child_ud);
usr/src/uts/common/io/usb/usba/hubdi.c
6465
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/hubdi.c
6507
rval = usb_pipe_sync_ctrl_xfer(child_dip, ph,
usr/src/uts/common/io/usb/usba/hubdi.c
6527
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/hubdi.c
6561
if ((rval = usba_hubdi_check_power_budget(dip, child_ud,
usr/src/uts/common/io/usb/usba/hubdi.c
6585
rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/hubdi.c
6588
(rval != USB_SUCCESS); config_index++) {
usr/src/uts/common/io/usb/usba/hubdi.c
6601
rval = usba_bind_driver(child_dip);
usr/src/uts/common/io/usb/usba/hubdi.c
6618
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/hubdi.c
6627
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/hubdi.c
6703
int rval = usba_destroy_child_devi(child_dip,
usr/src/uts/common/io/usb/usba/hubdi.c
6705
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/hubdi.c
6745
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/usba/hubdi.c
6766
rval = usba_destroy_child_devi(child_dip, flag);
usr/src/uts/common/io/usb/usba/hubdi.c
6768
if ((rval == USB_SUCCESS) && (flag & NDI_DEVI_REMOVE)) {
usr/src/uts/common/io/usb/usba/hubdi.c
6795
if ((rval != USB_SUCCESS) && retry) {
usr/src/uts/common/io/usb/usba/hubdi.c
6801
return (rval);
usr/src/uts/common/io/usb/usba/hubdi.c
6983
int rval;
usr/src/uts/common/io/usb/usba/hubdi.c
7066
rval = usba_persistent_pipe_open(usba_device);
usr/src/uts/common/io/usb/usba/hubdi.c
7067
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/hubdi.c
7193
int rval;
usr/src/uts/common/io/usb/usba/hubdi.c
7196
rval = hubd_restore_state_cb(dip);
usr/src/uts/common/io/usb/usba/hubdi.c
7199
return (rval);
usr/src/uts/common/io/usb/usba/hubdi.c
7274
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/hubdi.c
7355
rval = USB_SUCCESS;
usr/src/uts/common/io/usb/usba/hubdi.c
7371
return (rval);
usr/src/uts/common/io/usb/usba/hubdi.c
7377
int rval;
usr/src/uts/common/io/usb/usba/hubdi.c
7385
rval = usba_persistent_pipe_open(
usr/src/uts/common/io/usb/usba/hubdi.c
7387
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/usba/hubdi.c
7419
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/usba/hubdi.c
7424
rval = usb_register_event_cbs(hubd->h_dip, &hubd_events, 0);
usr/src/uts/common/io/usb/usba/hubdi.c
7427
return (rval);
usr/src/uts/common/io/usb/usba/hubdi.c
775
int rval, retry;
usr/src/uts/common/io/usb/usba/hubdi.c
808
if ((rval = usb_pipe_sync_ctrl_xfer(hubd->h_dip,
usr/src/uts/common/io/usb/usba/hubdi.c
818
"rval=%d cr=%d cb=0x%x", rval,
usr/src/uts/common/io/usb/usba/hubdi.c
859
rval = usb_pipe_sync_ctrl_xfer(hubd->h_dip,
usr/src/uts/common/io/usb/usba/hubdi.c
868
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/hubdi.c
872
"rval=%d cr=%d cb=0x%x", rval,
usr/src/uts/common/io/usb/usba/hubdi.c
8902
int rval;
usr/src/uts/common/io/usb/usba/hubdi.c
8909
rval = cv_reltimedwait(&hubd->h_cv_hotplug_dev,
usr/src/uts/common/io/usb/usba/hubdi.c
8912
if ((rval <= 0) && (hubd->h_hotplug_thread)) {
usr/src/uts/common/io/usb/usba/hubdi.c
8944
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/hubdi.c
9044
rval = hubd_delete_child(hubd, reset_port,
usr/src/uts/common/io/usb/usba/hubdi.c
9047
if (rval == USB_SUCCESS)
usr/src/uts/common/io/usb/usba/hubdi.c
9061
if ((rval != USB_SUCCESS) && (hubd_delete_child(hubd,
usr/src/uts/common/io/usb/usba/hubdi.c
9135
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/hubdi.c
9148
rval = usb_check_same_device(dip,
usr/src/uts/common/io/usb/usba/hubdi.c
9157
return (rval);
usr/src/uts/common/io/usb/usba/hubdi.c
9174
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/hubdi.c
926
int rval, retry;
usr/src/uts/common/io/usb/usba/hubdi.c
9319
if ((rval = usb_async_req(hdip, hubd_reset_thread,
usr/src/uts/common/io/usb/usba/hubdi.c
9341
if ((rval = hubd_handle_port_connect(hubd, port))
usr/src/uts/common/io/usb/usba/hubdi.c
9346
rval = usba_persistent_pipe_open(usba_device);
usr/src/uts/common/io/usb/usba/hubdi.c
9348
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/hubdi.c
9385
return (rval);
usr/src/uts/common/io/usb/usba/hubdi.c
964
if ((rval = usb_pipe_sync_ctrl_xfer(hubd->h_dip,
usr/src/uts/common/io/usb/usba/hubdi.c
977
rval, completion_reason, cb_flags);
usr/src/uts/common/io/usb/usba/usba.c
1000
"usba_destroy_child_devi: rval=%d", rval);
usr/src/uts/common/io/usb/usba/usba.c
1002
return (rval == NDI_SUCCESS ? USB_SUCCESS : USB_FAILURE);
usr/src/uts/common/io/usb/usba/usba.c
114
int rval;
usr/src/uts/common/io/usb/usba/usba.c
127
if ((rval = mod_install(&modlinkage)) != 0) {
usr/src/uts/common/io/usb/usba/usba.c
1274
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/usba.c
1284
rval = USB_SUCCESS;
usr/src/uts/common/io/usb/usba/usba.c
1299
return (rval);
usr/src/uts/common/io/usb/usba/usba.c
136
return (rval);
usr/src/uts/common/io/usb/usba/usba.c
142
int rval;
usr/src/uts/common/io/usb/usba/usba.c
144
if ((rval = mod_remove(&modlinkage)) == 0) {
usr/src/uts/common/io/usb/usba/usba.c
153
return (rval);
usr/src/uts/common/io/usb/usba/usba.c
1774
int rval, i;
usr/src/uts/common/io/usb/usba/usba.c
1840
rval = ndi_prop_update_int_array(
usr/src/uts/common/io/usb/usba/usba.c
1843
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba.c
2138
rval = ndi_prop_update_string_array(DDI_DEV_T_NONE, child_dip,
usr/src/uts/common/io/usb/usba/usba.c
2144
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba.c
2153
rval = ndi_prop_update_int(DDI_DEV_T_NONE, child_dip,
usr/src/uts/common/io/usb/usba/usba.c
2155
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba.c
2161
rval = ndi_prop_update_int(DDI_DEV_T_NONE, child_dip,
usr/src/uts/common/io/usb/usba/usba.c
2163
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba.c
2168
rval = ndi_prop_update_int(DDI_DEV_T_NONE, child_dip,
usr/src/uts/common/io/usb/usba/usba.c
2170
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba.c
2175
rval = ndi_prop_update_int(DDI_DEV_T_NONE, child_dip,
usr/src/uts/common/io/usb/usba/usba.c
2177
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba.c
2182
rval = ndi_prop_update_int(DDI_DEV_T_NONE, child_dip,
usr/src/uts/common/io/usb/usba/usba.c
2184
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba.c
2189
rval = ndi_prop_update_int(DDI_DEV_T_NONE, child_dip,
usr/src/uts/common/io/usb/usba/usba.c
2191
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba.c
2196
rval = ndi_prop_update_byte_array(DDI_DEV_T_NONE, child_dip,
usr/src/uts/common/io/usb/usba/usba.c
2199
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba.c
2204
rval = ndi_prop_update_byte_array(DDI_DEV_T_NONE, child_dip,
usr/src/uts/common/io/usb/usba/usba.c
2206
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba.c
2216
rval = ndi_prop_update_string(DDI_DEV_T_NONE, child_dip,
usr/src/uts/common/io/usb/usba/usba.c
2218
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba.c
2227
rval = ndi_prop_update_string(DDI_DEV_T_NONE, child_dip,
usr/src/uts/common/io/usb/usba/usba.c
2229
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba.c
2238
rval = ndi_prop_update_string(DDI_DEV_T_NONE, child_dip,
usr/src/uts/common/io/usb/usba/usba.c
2240
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba.c
2251
rval = ndi_prop_update_int(DDI_DEV_T_NONE, child_dip,
usr/src/uts/common/io/usb/usba/usba.c
2253
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba.c
2262
rval = ndi_prop_create_boolean(DDI_DEV_T_NONE, child_dip,
usr/src/uts/common/io/usb/usba/usba.c
2264
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba.c
2273
rval = ndi_prop_create_boolean(DDI_DEV_T_NONE, child_dip,
usr/src/uts/common/io/usb/usba/usba.c
2275
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba.c
2284
rval = ndi_prop_create_boolean(DDI_DEV_T_NONE, child_dip,
usr/src/uts/common/io/usb/usba/usba.c
2286
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba.c
2294
rval = ndi_prop_create_boolean(DDI_DEV_T_NONE, child_dip,
usr/src/uts/common/io/usb/usba/usba.c
2296
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba.c
2337
int i, n, rval;
usr/src/uts/common/io/usb/usba/usba.c
2386
rval = usba_create_child_devi(dip,
usr/src/uts/common/io/usb/usba/usba.c
2394
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba.c
2399
rval = ndi_prop_update_int_array(
usr/src/uts/common/io/usb/usba/usba.c
2402
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba.c
2512
rval = ndi_prop_update_string_array(DDI_DEV_T_NONE, child_dip,
usr/src/uts/common/io/usb/usba/usba.c
2518
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba.c
2524
rval = ndi_prop_update_int(DDI_DEV_T_NONE, child_dip,
usr/src/uts/common/io/usb/usba/usba.c
2526
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba.c
2532
rval = ndi_prop_update_int(DDI_DEV_T_NONE, child_dip,
usr/src/uts/common/io/usb/usba/usba.c
2535
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba.c
2541
rval = ndi_prop_update_int(DDI_DEV_T_NONE, child_dip,
usr/src/uts/common/io/usb/usba/usba.c
2544
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba.c
2582
int i, n, rval;
usr/src/uts/common/io/usb/usba/usba.c
2631
rval = usba_create_child_devi(dip,
usr/src/uts/common/io/usb/usba/usba.c
2639
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba.c
2644
rval = ndi_prop_update_int_array(
usr/src/uts/common/io/usb/usba/usba.c
2647
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba.c
2753
rval = ndi_prop_update_string_array(DDI_DEV_T_NONE, child_dip,
usr/src/uts/common/io/usb/usba/usba.c
2759
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba.c
2765
rval = ndi_prop_update_int(DDI_DEV_T_NONE, child_dip,
usr/src/uts/common/io/usb/usba/usba.c
2767
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba.c
2773
rval = ndi_prop_update_int(DDI_DEV_T_NONE, child_dip,
usr/src/uts/common/io/usb/usba/usba.c
2776
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba.c
293
int rval;
usr/src/uts/common/io/usb/usba/usba.c
3027
int rval;
usr/src/uts/common/io/usb/usba/usba.c
3037
if ((rval = ndi_devi_bind_driver(dip, 0)) != NDI_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba.c
3065
return ((rval == NDI_SUCCESS) ? USB_SUCCESS : USB_FAILURE);
usr/src/uts/common/io/usb/usba/usba.c
333
if ((rval = ddi_prop_lookup_int_array(DDI_DEV_T_ANY, child_dip,
usr/src/uts/common/io/usb/usba/usba.c
338
"usba_bus_ctl: %d, DDI_NOT_WELL_FORMED", rval);
usr/src/uts/common/io/usb/usba/usba.c
855
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/usba.c
910
rval = ndi_prop_update_int(DDI_DEV_T_NONE, *child_dip,
usr/src/uts/common/io/usb/usba/usba.c
912
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba.c
916
rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/usba.c
935
int rval = usba_destroy_child_devi(*child_dip, NDI_DEVI_REMOVE);
usr/src/uts/common/io/usb/usba/usba.c
936
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/usba/usba.c
947
"usba_create_child_devi failed: rval=%d", rval);
usr/src/uts/common/io/usb/usba/usba.c
949
return (rval);
usr/src/uts/common/io/usb/usba/usba.c
957
int rval = NDI_SUCCESS;
usr/src/uts/common/io/usb/usba/usba.c
974
rval = ddi_remove_child(dip, 0);
usr/src/uts/common/io/usb/usba/usba.c
988
rval = ndi_devi_unconfig_one(pdip, devnm + 1, NULL,
usr/src/uts/common/io/usb/usba/usba.c
990
if (rval != NDI_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba.c
994
rval);
usr/src/uts/common/io/usb/usba/usba10_calls.c
177
int rval,
usr/src/uts/common/io/usb/usba/usba10_calls.c
194
int rval,
usr/src/uts/common/io/usb/usba/usba10_calls.c
227
int rval,
usr/src/uts/common/io/usb/usba/usba10_calls.c
310
int rval,
usr/src/uts/common/io/usb/usba/usba10_calls.c
337
int rval,
usr/src/uts/common/io/usb/usba/usba10_calls.c
485
void (*cb)(void *arg, int rval),
usr/src/uts/common/io/usb/usba/usba10_calls.c
498
void (*cb)(void *arg, int rval),
usr/src/uts/common/io/usb/usba/usba10_calls.c
697
usba10_usb_str_rval(int rval)
usr/src/uts/common/io/usb/usba/usba10_calls.c
699
return (usb_str_rval(rval));
usr/src/uts/common/io/usb/usba/usba10_calls.c
704
usba10_usb_rval2errno(int rval)
usr/src/uts/common/io/usb/usba/usba10_calls.c
706
return (usb_rval2errno(rval));
usr/src/uts/common/io/usb/usba/usba_bos.c
233
int rval;
usr/src/uts/common/io/usb/usba/usba_bos.c
256
rval = usb_pipe_sync_ctrl_xfer(dip, ph,
usr/src/uts/common/io/usb/usba/usba_bos.c
265
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba_bos.c
285
rval = usb_pipe_sync_ctrl_xfer(dip, ph,
usr/src/uts/common/io/usb/usba/usba_bos.c
294
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba_devdb.c
328
int rval;
usr/src/uts/common/io/usb/usba/usba_devdb.c
338
rval = strcmp(p1, p2);
usr/src/uts/common/io/usb/usba/usba_devdb.c
339
if (rval < 0) {
usr/src/uts/common/io/usb/usba/usba_devdb.c
342
} else if (rval > 0) {
usr/src/uts/common/io/usb/usba/usba_devdb.c
361
rval = strncmp(p1, p2,
usr/src/uts/common/io/usb/usba/usba_devdb.c
364
if (rval < 0) {
usr/src/uts/common/io/usb/usba/usba_devdb.c
367
} else if (rval > 0) {
usr/src/uts/common/io/usb/usba/usba_devdb.c
414
int rval;
usr/src/uts/common/io/usb/usba/usba_devdb.c
441
rval = strcmp(u1->serialno, u2->serialno);
usr/src/uts/common/io/usb/usba/usba_devdb.c
442
if (rval > 0) {
usr/src/uts/common/io/usb/usba/usba_devdb.c
445
} else if (rval < 0) {
usr/src/uts/common/io/usb/usba/usba_ugen.c
1171
int rval = 0;
usr/src/uts/common/io/usb/usba/usba_ugen.c
1191
rval = ugen_epx_req(ugenp, bp);
usr/src/uts/common/io/usb/usba/usba_ugen.c
1195
rval = ugen_eps_req(ugenp, bp);
usr/src/uts/common/io/usb/usba/usba_ugen.c
1199
rval = ugen_ds_req(ugenp, bp);
usr/src/uts/common/io/usb/usba/usba_ugen.c
1203
rval = EINVAL;
usr/src/uts/common/io/usb/usba/usba_ugen.c
1215
getminor(dev), rval, ugenp->ug_pending_cmds);
usr/src/uts/common/io/usb/usba/usba_ugen.c
1219
if (rval) {
usr/src/uts/common/io/usb/usba/usba_ugen.c
1221
bioerror(bp, rval);
usr/src/uts/common/io/usb/usba/usba_ugen.c
1321
int rval = 0;
usr/src/uts/common/io/usb/usba/usba_ugen.c
1344
if ((rval = ugen_get_ep_descr(ugenp, dev, &bmAttribute,
usr/src/uts/common/io/usb/usba/usba_ugen.c
1366
rval = EACCES;
usr/src/uts/common/io/usb/usba/usba_ugen.c
1373
rval = EACCES;
usr/src/uts/common/io/usb/usba/usba_ugen.c
1380
rval = EACCES;
usr/src/uts/common/io/usb/usba/usba_ugen.c
1388
rval = EACCES;
usr/src/uts/common/io/usb/usba/usba_ugen.c
1392
rval = EACCES;
usr/src/uts/common/io/usb/usba/usba_ugen.c
1397
rval = EINVAL;
usr/src/uts/common/io/usb/usba/usba_ugen.c
1405
rval = EACCES;
usr/src/uts/common/io/usb/usba/usba_ugen.c
1413
rval = EINVAL;
usr/src/uts/common/io/usb/usba/usba_ugen.c
1418
return (rval);
usr/src/uts/common/io/usb/usba/usba_ugen.c
180
int rval;
usr/src/uts/common/io/usb/usba/usba_ugen.c
1847
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/usba/usba_ugen.c
1880
return (rval);
usr/src/uts/common/io/usb/usba/usba_ugen.c
1886
return (rval);
usr/src/uts/common/io/usb/usba/usba_ugen.c
1917
if ((rval = usb_set_cfg(ugenp->ug_dip,
usr/src/uts/common/io/usb/usba/usba_ugen.c
192
if ((rval = usb_get_dev_data(dip, &ugenp->ug_dev_data,
usr/src/uts/common/io/usb/usba/usba_ugen.c
1924
UGEN_MINOR_CFGIDX(ugenp, dev), rval);
usr/src/uts/common/io/usb/usba/usba_ugen.c
1927
return (rval);
usr/src/uts/common/io/usb/usba/usba_ugen.c
1957
if ((rval = usb_set_alt_if(ugenp->ug_dip, new_if,
usr/src/uts/common/io/usb/usba/usba_ugen.c
196
"usb_ugen_attach: usb_get_dev_data failed, rval=%d", rval);
usr/src/uts/common/io/usb/usba/usba_ugen.c
1963
"(%d) failed (%d)", new_alt, rval);
usr/src/uts/common/io/usb/usba/usba_ugen.c
1966
return (rval);
usr/src/uts/common/io/usb/usba/usba_ugen.c
1975
return (rval);
usr/src/uts/common/io/usb/usba/usba_ugen.c
2022
int rval;
usr/src/uts/common/io/usb/usba/usba_ugen.c
2038
if ((rval = ugen_epxs_switch_cfg_alt(ugenp, epp, dev)) ==
usr/src/uts/common/io/usb/usba/usba_ugen.c
2040
rval = ugen_epx_open_pipe(ugenp, epp, flag);
usr/src/uts/common/io/usb/usba/usba_ugen.c
2051
return (usb_rval2errno(rval));
usr/src/uts/common/io/usb/usba/usba_ugen.c
2089
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/usba/usba_ugen.c
2104
rval = usb_pipe_xopen(ugenp->ug_dip,
usr/src/uts/common/io/usb/usba/usba_ugen.c
2110
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba_ugen.c
2121
if ((rval = ugen_epx_intr_IN_start_polling(
usr/src/uts/common/io/usb/usba/usba_ugen.c
2181
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba_ugen.c
2186
return (rval);
usr/src/uts/common/io/usb/usba/usba_ugen.c
2276
int rval = 0;
usr/src/uts/common/io/usb/usba/usba_ugen.c
2298
rval = ENODEV;
usr/src/uts/common/io/usb/usba/usba_ugen.c
2306
rval = EBADF;
usr/src/uts/common/io/usb/usba/usba_ugen.c
2313
rval = EIO;
usr/src/uts/common/io/usb/usba/usba_ugen.c
2325
if (rval) {
usr/src/uts/common/io/usb/usba/usba_ugen.c
2328
return (rval);
usr/src/uts/common/io/usb/usba/usba_ugen.c
2338
rval = ugen_epx_ctrl_req(ugenp, epp, bp, &wait);
usr/src/uts/common/io/usb/usba/usba_ugen.c
2342
rval = ugen_epx_bulk_req(ugenp, epp, bp, &wait);
usr/src/uts/common/io/usb/usba/usba_ugen.c
2347
rval = ugen_epx_intr_IN_req(ugenp, epp, bp, &wait);
usr/src/uts/common/io/usb/usba/usba_ugen.c
2349
rval = ugen_epx_intr_OUT_req(ugenp, epp, bp, &wait);
usr/src/uts/common/io/usb/usba/usba_ugen.c
2355
rval = ugen_epx_isoc_IN_req(ugenp, epp, bp, &wait);
usr/src/uts/common/io/usb/usba/usba_ugen.c
2357
rval = ugen_epx_isoc_OUT_req(ugenp, epp, bp, &wait);
usr/src/uts/common/io/usb/usba/usba_ugen.c
2363
rval = USB_INVALID_REQUEST;
usr/src/uts/common/io/usb/usba/usba_ugen.c
2367
if ((rval == USB_SUCCESS) && wait) {
usr/src/uts/common/io/usb/usba/usba_ugen.c
2403
if ((rval != USB_SUCCESS) &&
usr/src/uts/common/io/usb/usba/usba_ugen.c
2416
return (usb_rval2errno(rval));
usr/src/uts/common/io/usb/usba/usba_ugen.c
2429
int rval;
usr/src/uts/common/io/usb/usba/usba_ugen.c
2493
rval = USB_INVALID_PERM;
usr/src/uts/common/io/usb/usba/usba_ugen.c
2505
rval = USB_INVALID_REQUEST;
usr/src/uts/common/io/usb/usba/usba_ugen.c
2519
rval = USB_INVALID_REQUEST;
usr/src/uts/common/io/usb/usba/usba_ugen.c
2530
rval = USB_INVALID_REQUEST;
usr/src/uts/common/io/usb/usba/usba_ugen.c
2539
rval = usb_pipe_ctrl_xfer(epp->ep_ph, reqp, USB_FLAGS_NOSLEEP);
usr/src/uts/common/io/usb/usba/usba_ugen.c
2541
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba_ugen.c
2556
return (rval);
usr/src/uts/common/io/usb/usba/usba_ugen.c
2625
int rval;
usr/src/uts/common/io/usb/usba/usba_ugen.c
2662
if ((rval = usb_pipe_bulk_xfer(epp->ep_ph, reqp,
usr/src/uts/common/io/usb/usba/usba_ugen.c
2672
*wait = (rval == USB_SUCCESS) ? B_TRUE : B_FALSE;
usr/src/uts/common/io/usb/usba/usba_ugen.c
2674
return (rval);
usr/src/uts/common/io/usb/usba/usba_ugen.c
2744
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/usba/usba_ugen.c
2766
rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/usba_ugen.c
2820
rval, bp->b_bcount, len, (void *)epp->ep_data);
usr/src/uts/common/io/usb/usba/usba_ugen.c
2822
return (rval);
usr/src/uts/common/io/usb/usba/usba_ugen.c
2832
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/usba_ugen.c
2842
return (rval);
usr/src/uts/common/io/usb/usba/usba_ugen.c
2872
if ((rval = usb_pipe_intr_xfer(epp->ep_ph, reqp,
usr/src/uts/common/io/usb/usba/usba_ugen.c
2875
"ugen_epx_intr_IN_start_polling: failed %d", rval);
usr/src/uts/common/io/usb/usba/usba_ugen.c
2879
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba_ugen.c
2883
rval = USB_SUCCESS;
usr/src/uts/common/io/usb/usba/usba_ugen.c
2886
return (rval);
usr/src/uts/common/io/usb/usba/usba_ugen.c
3055
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/usba/usba_ugen.c
3085
if ((rval = usb_pipe_intr_xfer(epp->ep_ph, reqp,
usr/src/uts/common/io/usb/usba/usba_ugen.c
3095
*wait = (rval == USB_SUCCESS) ? B_TRUE : B_FALSE;
usr/src/uts/common/io/usb/usba/usba_ugen.c
3097
return (rval);
usr/src/uts/common/io/usb/usba/usba_ugen.c
3158
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/usba/usba_ugen.c
3173
rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/usba_ugen.c
3183
rval = USB_INVALID_REQUEST;
usr/src/uts/common/io/usb/usba/usba_ugen.c
3186
return (rval);
usr/src/uts/common/io/usb/usba/usba_ugen.c
3198
rval = USB_INVALID_REQUEST;
usr/src/uts/common/io/usb/usba/usba_ugen.c
3221
rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/usba_ugen.c
3222
if ((rval = ugen_epx_isoc_IN_start_polling(ugenp,
usr/src/uts/common/io/usb/usba/usba_ugen.c
3277
rval, bp->b_bcount, len, (void *)epp->ep_data);
usr/src/uts/common/io/usb/usba/usba_ugen.c
3279
return (rval);
usr/src/uts/common/io/usb/usba/usba_ugen.c
3289
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/usba_ugen.c
3301
return (rval);
usr/src/uts/common/io/usb/usba/usba_ugen.c
3346
if ((rval = usb_pipe_isoc_xfer(epp->ep_ph, reqp,
usr/src/uts/common/io/usb/usba/usba_ugen.c
3349
"ugen_epx_isoc_IN_start_polling: failed %d", rval);
usr/src/uts/common/io/usb/usba/usba_ugen.c
3354
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/usba_ugen.c
3358
rval = USB_SUCCESS;
usr/src/uts/common/io/usb/usba/usba_ugen.c
3361
return (rval);
usr/src/uts/common/io/usb/usba/usba_ugen.c
3596
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/usba/usba_ugen.c
3613
rval = USB_INVALID_REQUEST;
usr/src/uts/common/io/usb/usba/usba_ugen.c
3632
rval = USB_INVALID_REQUEST;
usr/src/uts/common/io/usb/usba/usba_ugen.c
3644
rval = USB_NO_RESOURCES;
usr/src/uts/common/io/usb/usba/usba_ugen.c
3668
rval = USB_INVALID_REQUEST;
usr/src/uts/common/io/usb/usba/usba_ugen.c
3683
rval = USB_INVALID_REQUEST;
usr/src/uts/common/io/usb/usba/usba_ugen.c
3695
rval = USB_INVALID_REQUEST;
usr/src/uts/common/io/usb/usba/usba_ugen.c
3708
if ((rval = ugen_epx_isoc_IN_start_polling(ugenp,
usr/src/uts/common/io/usb/usba/usba_ugen.c
3737
rval = USB_INVALID_REQUEST;
usr/src/uts/common/io/usb/usba/usba_ugen.c
3762
rval = USB_NO_RESOURCES;
usr/src/uts/common/io/usb/usba/usba_ugen.c
3789
if ((rval = usb_pipe_isoc_xfer(epp->ep_ph, reqp,
usr/src/uts/common/io/usb/usba/usba_ugen.c
3808
*wait = (rval == USB_SUCCESS) ? B_TRUE : B_FALSE;
usr/src/uts/common/io/usb/usba/usba_ugen.c
3813
rval, bp->b_bcount, pkts_len);
usr/src/uts/common/io/usb/usba/usba_ugen.c
3815
return (rval);
usr/src/uts/common/io/usb/usba/usba_ugen.c
3903
int rval = EBUSY;
usr/src/uts/common/io/usb/usba/usba_ugen.c
3916
rval = 0;
usr/src/uts/common/io/usb/usba/usba_ugen.c
3920
return (rval);
usr/src/uts/common/io/usb/usba/usba_ugen.c
429
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/usba_ugen.c
439
rval = ugen_cleanup(ugenp);
usr/src/uts/common/io/usb/usba/usba_ugen.c
443
rval = ugen_cpr_suspend(ugenp);
usr/src/uts/common/io/usb/usba/usba_ugen.c
4504
int rval;
usr/src/uts/common/io/usb/usba/usba_ugen.c
4509
if ((rval = usb_handle_remote_wakeup(dip,
usr/src/uts/common/io/usb/usba/usba_ugen.c
4513
"disabling rmt wakeup: rval=%d", rval);
usr/src/uts/common/io/usb/usba/usba_ugen.c
452
return (rval);
usr/src/uts/common/io/usb/usba/usba_ugen.c
4543
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/usba_ugen.c
4585
rval = USB_SUCCESS;
usr/src/uts/common/io/usb/usba/usba_ugen.c
4616
rval = usb_set_device_pwrlvl3(dip);
usr/src/uts/common/io/usb/usba/usba_ugen.c
4621
rval = USB_SUCCESS;
usr/src/uts/common/io/usb/usba/usba_ugen.c
4647
rval = usb_set_device_pwrlvl0(dip);
usr/src/uts/common/io/usb/usba/usba_ugen.c
4662
return (rval);
usr/src/uts/common/io/usb/usba/usba_ugen.c
526
int rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/usba_ugen.c
564
rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/usba_ugen.c
583
rval = USB_SUCCESS;
usr/src/uts/common/io/usb/usba/usba_ugen.c
594
return (rval);
usr/src/uts/common/io/usb/usba/usba_ugen.c
762
int rval;
usr/src/uts/common/io/usb/usba/usba_ugen.c
789
if ((rval = ugen_check_open_flags(ugenp, *devp, flag)) != 0) {
usr/src/uts/common/io/usb/usba/usba_ugen.c
791
"usb_ugen_open: check failed, rval=%d", rval);
usr/src/uts/common/io/usb/usba/usba_ugen.c
793
return (rval);
usr/src/uts/common/io/usb/usba/usba_ugen.c
816
rval = ENODEV;
usr/src/uts/common/io/usb/usba/usba_ugen.c
824
rval = EBADF;
usr/src/uts/common/io/usb/usba/usba_ugen.c
841
rval = ugen_epx_open(ugenp, *devp, flag);
usr/src/uts/common/io/usb/usba/usba_ugen.c
842
if (rval == 0) {
usr/src/uts/common/io/usb/usba/usba_ugen.c
855
rval = ugen_eps_open(ugenp, *devp, flag);
usr/src/uts/common/io/usb/usba/usba_ugen.c
856
if (rval == 0) {
usr/src/uts/common/io/usb/usba/usba_ugen.c
864
rval = ugen_ds_open(ugenp, *devp, flag);
usr/src/uts/common/io/usb/usba/usba_ugen.c
868
rval = EINVAL;
usr/src/uts/common/io/usb/usba/usba_ugen.c
877
getminor(*devp), rval, ugenp->ug_dev_state,
usr/src/uts/common/io/usb/usba/usba_ugen.c
884
return (rval);
usr/src/uts/common/io/usb/usba/usbai.c
511
int rval;
usr/src/uts/common/io/usb/usba/usbai.c
514
rval = usba_vlog(handle, level, mask, fmt, ap);
usr/src/uts/common/io/usb/usba/usbai.c
517
return (rval);
usr/src/uts/common/io/usb/usba/usbai.c
565
int rval;
usr/src/uts/common/io/usb/usba/usbai.c
573
rval = pm_raise_power(pmrq->dip, pmrq->comp, pmrq->level);
usr/src/uts/common/io/usb/usba/usbai.c
575
pmrq->cb(pmrq->arg, rval);
usr/src/uts/common/io/usb/usba/usbai.c
623
int rval;
usr/src/uts/common/io/usb/usba/usbai.c
631
rval = pm_lower_power(pmrq->dip, pmrq->comp, pmrq->level);
usr/src/uts/common/io/usb/usba/usbai.c
632
pmrq->cb(pmrq->arg, rval);
usr/src/uts/common/io/usb/usba/usbai.c
694
int rval;
usr/src/uts/common/io/usb/usba/usbai.c
720
if ((rval = usb_pipe_sync_ctrl_xfer(dip, ph,
usr/src/uts/common/io/usb/usba/usbai.c
732
rval, cmd, completion_reason, cb_flags);
usr/src/uts/common/io/usb/usba/usbai.c
735
return (rval);
usr/src/uts/common/io/usb/usba/usbai.c
759
int rval;
usr/src/uts/common/io/usb/usba/usbai.c
767
rval = usb_parse_cfg_descr(usb_cfg, cfg_length,
usr/src/uts/common/io/usb/usba/usbai.c
769
ASSERT(rval == USB_CFG_DESCR_SIZE);
usr/src/uts/common/io/usb/usba/usbai.c
778
rval = usba_handle_device_remote_wakeup(dip, cmd);
usr/src/uts/common/io/usb/usba/usbai.c
780
rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/usbai.c
783
return (rval);
usr/src/uts/common/io/usb/usba/usbai.c
800
int i, lvl, rval;
usr/src/uts/common/io/usb/usba/usbai.c
818
rval = usb_parse_cfg_descr(usb_cfg, cfg_length,
usr/src/uts/common/io/usb/usba/usbai.c
820
ASSERT(rval == USB_CFG_DESCR_SIZE);
usr/src/uts/common/io/usb/usba/usbai.c
852
rval = usba_parse_cfg_pwr_descr(usb_cfg, cfg_length,
usr/src/uts/common/io/usb/usba/usbai.c
855
if (rval != USBA_CFG_PWR_DESCR_SIZE) {
usr/src/uts/common/io/usb/usba/usbai.c
859
"expecting %d", rval, USBA_CFG_PWR_DESCR_SIZE);
usr/src/uts/common/io/usb/usba/usbai.c
871
rval = usba_parse_if_pwr_descr(usb_cfg,
usr/src/uts/common/io/usb/usba/usbai.c
878
if (rval != USBA_IF_PWR_DESCR_SIZE) {
usr/src/uts/common/io/usb/usba/usbai.c
883
"expecting %d", rval, USBA_CFG_PWR_DESCR_SIZE);
usr/src/uts/common/io/usb/usba/usbai.c
915
rval = ddi_prop_update_string_array(DDI_DEV_T_NONE, dip,
usr/src/uts/common/io/usb/usba/usbai.c
917
if (rval == DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/usba/usbai.c
918
rval = USB_SUCCESS;
usr/src/uts/common/io/usb/usba/usbai.c
920
rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/usbai.c
932
return (rval);
usr/src/uts/common/io/usb/usba/usbai_pipe_mgmt.c
1040
int rval,
usr/src/uts/common/io/usb/usba/usbai_pipe_mgmt.c
1329
int rval,
usr/src/uts/common/io/usb/usba/usbai_pipe_mgmt.c
1409
int rval, draining_succeeded;
usr/src/uts/common/io/usb/usba/usbai_pipe_mgmt.c
1422
rval = usba_device->usb_hcdi_ops->usba_hcdi_pipe_reset(ph_data,
usr/src/uts/common/io/usb/usba/usbai_pipe_mgmt.c
1446
return (rval);
usr/src/uts/common/io/usb/usba/usbai_pipe_mgmt.c
1544
int rval,
usr/src/uts/common/io/usb/usba/usbai_pipe_mgmt.c
1707
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/usba/usbai_pipe_mgmt.c
1715
for (i = 0; (rval == USB_SUCCESS) &&
usr/src/uts/common/io/usb/usba/usbai_pipe_mgmt.c
1726
rval = usb_pipe_open(ph_impl->usba_ph_dip,
usr/src/uts/common/io/usb/usba/usbai_pipe_mgmt.c
1735
"ep_index=%d, rval=%d", i, rval);
usr/src/uts/common/io/usb/usba/usbai_pipe_mgmt.c
1744
return (rval);
usr/src/uts/common/io/usb/usba/usbai_pipe_mgmt.c
319
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/usba/usbai_pipe_mgmt.c
350
rval = sync_func(dip, ph_impl, request, usb_flags);
usr/src/uts/common/io/usb/usba/usbai_pipe_mgmt.c
371
return (rval);
usr/src/uts/common/io/usb/usba/usbai_pipe_mgmt.c
385
int rval;
usr/src/uts/common/io/usb/usba/usbai_pipe_mgmt.c
388
if ((rval = request->sync_func(request->dip, ph_impl,
usr/src/uts/common/io/usb/usba/usbai_pipe_mgmt.c
392
"sync func failed (%d)", rval);
usr/src/uts/common/io/usb/usba/usbai_pipe_mgmt.c
396
request->callback(pipe_handle, request->callback_arg, rval,
usr/src/uts/common/io/usb/usba/usbai_pipe_mgmt.c
686
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/usba/usbai_pipe_mgmt.c
741
rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/usbai_pipe_mgmt.c
744
return (rval);
usr/src/uts/common/io/usb/usba/usbai_pipe_mgmt.c
792
int rval;
usr/src/uts/common/io/usb/usba/usbai_pipe_mgmt.c
942
if ((rval = usba_init_pipe_handle(dip, usba_device,
usr/src/uts/common/io/usb/usba/usbai_pipe_mgmt.c
945
"usb_pipe_open: pipe init failed (%d)", rval);
usr/src/uts/common/io/usb/usba/usbai_pipe_mgmt.c
947
return (rval);
usr/src/uts/common/io/usb/usba/usbai_pipe_mgmt.c
954
if ((rval = usba_device->usb_hcdi_ops->usba_hcdi_pipe_open(ph_data,
usr/src/uts/common/io/usb/usba/usbai_pipe_mgmt.c
972
return (rval);
usr/src/uts/common/io/usb/usba/usbai_register.c
191
int rval;
usr/src/uts/common/io/usb/usba/usbai_register.c
229
rval = ndi_prop_update_int(DDI_DEV_T_NONE, dip, "driver-major",
usr/src/uts/common/io/usb/usba/usbai_register.c
231
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/usba/usbai_register.c
235
rval = ndi_prop_update_int(DDI_DEV_T_NONE, dip, "driver-minor",
usr/src/uts/common/io/usb/usba/usbai_register.c
237
if (rval != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/usb/usba/usbai_register.c
303
int rval = usb_client_attach(dip, version, flags);
usr/src/uts/common/io/usb/usba/usbai_register.c
305
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/usbai_register.c
306
rval = usb_get_dev_data(dip, reg, parse_level, flags);
usr/src/uts/common/io/usb/usba/usbai_register.c
308
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/usbai_register.c
313
return (rval);
usr/src/uts/common/io/usb/usba/usbai_register.c
397
int rval = USB_SUCCESS;
usr/src/uts/common/io/usb/usba/usbai_register.c
463
rval = USB_SUCCESS;
usr/src/uts/common/io/usb/usba/usbai_register.c
465
} else if ((rval = usba_build_descr_tree(dip, usba_device, usb_reg)) !=
usr/src/uts/common/io/usb/usba/usbai_register.c
508
rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/usbai_register.c
515
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/usbai_register.c
539
"usb_get_dev_data rval=%d", rval);
usr/src/uts/common/io/usb/usba/usbai_register.c
541
return (rval);
usr/src/uts/common/io/usb/usba/usbai_req.c
101
return (rval);
usr/src/uts/common/io/usb/usba/usbai_req.c
1123
int rval;
usr/src/uts/common/io/usb/usba/usbai_req.c
1145
if ((rval = usba_check_req(ph_data, (usb_opaque_t)req, usb_flags,
usr/src/uts/common/io/usb/usba/usbai_req.c
1148
"request rejected: rval=%d", rval);
usr/src/uts/common/io/usb/usba/usbai_req.c
1153
return (rval);
usr/src/uts/common/io/usb/usba/usbai_req.c
1182
rval = USB_SUCCESS;
usr/src/uts/common/io/usb/usba/usbai_req.c
1190
rval = usba_device->usb_hcdi_ops->
usr/src/uts/common/io/usb/usba/usbai_req.c
1199
rval = USB_SUCCESS;
usr/src/uts/common/io/usb/usba/usbai_req.c
1209
rval = USB_SUCCESS;
usr/src/uts/common/io/usb/usba/usbai_req.c
1214
rval = USB_PIPE_ERROR;
usr/src/uts/common/io/usb/usba/usbai_req.c
1222
rval = USB_PIPE_ERROR;
usr/src/uts/common/io/usb/usba/usbai_req.c
1228
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/usbai_req.c
1233
req->ctrl_completion_reason = usba_rval2cr(rval);
usr/src/uts/common/io/usb/usba/usbai_req.c
1248
rval = usba_pipe_sync_wait(ph_data, wrp);
usr/src/uts/common/io/usb/usba/usbai_req.c
1252
"usb_pipe_ctrl_xfer: rval=0x%x", rval);
usr/src/uts/common/io/usb/usba/usbai_req.c
1256
return (rval);
usr/src/uts/common/io/usb/usba/usbai_req.c
1306
int rval;
usr/src/uts/common/io/usb/usba/usbai_req.c
1320
rval = USB_INVALID_PIPE;
usr/src/uts/common/io/usb/usba/usbai_req.c
1325
rval = USB_INVALID_CONTEXT;
usr/src/uts/common/io/usb/usba/usbai_req.c
1330
rval = USB_INVALID_ARGS;
usr/src/uts/common/io/usb/usba/usbai_req.c
1352
rval = usb_pipe_ctrl_xfer(pipe_handle, ctrl_req,
usr/src/uts/common/io/usb/usba/usbai_req.c
1360
(void *)ctrl_req->ctrl_data, usb_str_rval(rval));
usr/src/uts/common/io/usb/usba/usbai_req.c
1386
return (rval);
usr/src/uts/common/io/usb/usba/usbai_req.c
1523
int rval;
usr/src/uts/common/io/usb/usba/usbai_req.c
1541
if ((rval = usba_check_req(ph_data, (usb_opaque_t)req, usb_flags,
usr/src/uts/common/io/usb/usba/usbai_req.c
1547
return (rval);
usr/src/uts/common/io/usb/usba/usbai_req.c
1569
rval = USB_SUCCESS;
usr/src/uts/common/io/usb/usba/usbai_req.c
1576
rval = usba_device->usb_hcdi_ops->
usr/src/uts/common/io/usb/usba/usbai_req.c
1585
rval = USB_SUCCESS;
usr/src/uts/common/io/usb/usba/usbai_req.c
1592
rval = USB_PIPE_ERROR;
usr/src/uts/common/io/usb/usba/usbai_req.c
1597
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/usbai_req.c
1599
req->bulk_completion_reason = usba_rval2cr(rval);
usr/src/uts/common/io/usb/usba/usbai_req.c
1611
rval = usba_pipe_sync_wait(ph_data, wrp);
usr/src/uts/common/io/usb/usba/usbai_req.c
1615
"usb_pipe_bulk_xfer: rval=%d", rval);
usr/src/uts/common/io/usb/usba/usbai_req.c
1619
return (rval);
usr/src/uts/common/io/usb/usba/usbai_req.c
1813
int rval;
usr/src/uts/common/io/usb/usba/usbai_req.c
1834
if ((rval = usba_check_req(ph_data, (usb_opaque_t)req, usb_flags,
usr/src/uts/common/io/usb/usba/usbai_req.c
1840
return (rval);
usr/src/uts/common/io/usb/usba/usbai_req.c
1905
if ((rval = usba_device->usb_hcdi_ops->usba_hcdi_pipe_intr_xfer(ph_data,
usr/src/uts/common/io/usb/usba/usbai_req.c
1910
req->intr_completion_reason = usba_rval2cr(rval);
usr/src/uts/common/io/usb/usba/usbai_req.c
1924
rval = usba_pipe_sync_wait(ph_data, wrp);
usr/src/uts/common/io/usb/usba/usbai_req.c
1928
"usb_pipe_intr_req: rval=0x%x", rval);
usr/src/uts/common/io/usb/usba/usbai_req.c
1932
return (rval);
usr/src/uts/common/io/usb/usba/usbai_req.c
1949
int rval;
usr/src/uts/common/io/usb/usba/usbai_req.c
1997
rval = usba_device->usb_hcdi_ops->
usr/src/uts/common/io/usb/usba/usbai_req.c
2005
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/usbai_req.c
2013
rval = usba_drain_cbs(ph_data, 0,
usr/src/uts/common/io/usb/usba/usbai_req.c
2016
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/usbai_req.c
2026
"usba_pipe_sync_stop_intr_polling: rval=0x%x", rval);
usr/src/uts/common/io/usb/usba/usbai_req.c
2034
return (rval);
usr/src/uts/common/io/usb/usba/usbai_req.c
2045
int rval,
usr/src/uts/common/io/usb/usba/usbai_req.c
2051
(void *)ph, rval, flags, (void *)arg);
usr/src/uts/common/io/usb/usba/usbai_req.c
2370
int rval;
usr/src/uts/common/io/usb/usba/usbai_req.c
2389
if ((rval = usba_check_req(ph_data, (usb_opaque_t)req, flags,
usr/src/uts/common/io/usb/usba/usbai_req.c
2395
return (rval);
usr/src/uts/common/io/usb/usba/usbai_req.c
2433
if ((rval = usba_device->usb_hcdi_ops->usba_hcdi_pipe_isoc_xfer(
usr/src/uts/common/io/usb/usba/usbai_req.c
2436
req->isoc_completion_reason = usba_rval2cr(rval);
usr/src/uts/common/io/usb/usba/usbai_req.c
2449
"usb_pipe_isoc_req: rval=%x", rval);
usr/src/uts/common/io/usb/usba/usbai_req.c
2453
return (rval);
usr/src/uts/common/io/usb/usba/usbai_req.c
2475
int rval;
usr/src/uts/common/io/usb/usba/usbai_req.c
2520
rval = usba_device->usb_hcdi_ops->
usr/src/uts/common/io/usb/usba/usbai_req.c
2528
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/usbai_req.c
2536
rval = usba_drain_cbs(ph_data, 0,
usr/src/uts/common/io/usb/usba/usbai_req.c
2539
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/usbai_req.c
2549
"usba_pipe_sync_stop_isoc_polling: rval=0x%x", rval);
usr/src/uts/common/io/usb/usba/usbai_req.c
2553
return (rval);
usr/src/uts/common/io/usb/usba/usbai_req.c
458
int rval;
usr/src/uts/common/io/usb/usba/usbai_req.c
481
usba_rval2cr(int rval)
usr/src/uts/common/io/usb/usba/usbai_req.c
485
for (i = 0; rval2cr[i].rval != 0xffff; i++) {
usr/src/uts/common/io/usb/usba/usbai_req.c
486
if (rval2cr[i].rval == rval) {
usr/src/uts/common/io/usb/usba/usbai_req.c
511
int rval;
usr/src/uts/common/io/usb/usba/usbai_req.c
565
rval = ph_data->p_usba_device->usb_hcdi_ops->
usr/src/uts/common/io/usb/usba/usbai_req.c
574
rval = ph_data->p_usba_device->usb_hcdi_ops->
usr/src/uts/common/io/usb/usba/usbai_req.c
581
rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/usbai_req.c
585
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/usbai_req.c
588
usba_rval2cr(rval),
usr/src/uts/common/io/usb/usba/usbai_req.c
93
int rval = _usba_check_req(ph_data, req, flags, pipe_type);
usr/src/uts/common/io/usb/usba/usbai_req.c
95
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/usbai_req.c
98
(void *)ph_data, (void *)req, flags, rval);
usr/src/uts/common/io/usb/usba/usbai_util.c
1008
rval = usb_pipe_sync_ctrl_xfer(dip, ph,
usr/src/uts/common/io/usb/usba/usbai_util.c
1019
"rval=%d cb_flags=%d cr=%d", rval, cb_flags, completion_reason);
usr/src/uts/common/io/usb/usba/usbai_util.c
1021
if ((rval == USB_SUCCESS) && data &&
usr/src/uts/common/io/usb/usba/usbai_util.c
1026
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/usbai_util.c
1027
rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/usbai_util.c
1033
return (rval);
usr/src/uts/common/io/usb/usba/usbai_util.c
1139
int rval;
usr/src/uts/common/io/usb/usba/usbai_util.c
1157
rval = usb_pipe_sync_ctrl_xfer(dip, def_ph,
usr/src/uts/common/io/usb/usba/usbai_util.c
1168
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/usbai_util.c
1171
"getting device descriptor failed (%d)", rval);
usr/src/uts/common/io/usb/usba/usbai_util.c
1414
int rval;
usr/src/uts/common/io/usb/usba/usbai_util.c
1435
rval = usb_pipe_sync_ctrl_xfer(dip, ph,
usr/src/uts/common/io/usb/usba/usbai_util.c
1445
"rval=%d, cb_flags=%d, cr=%d", rval, cb_flags, completion_reason);
usr/src/uts/common/io/usb/usba/usbai_util.c
1447
if ((rval == USB_SUCCESS) && data &&
usr/src/uts/common/io/usb/usba/usbai_util.c
1452
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/usbai_util.c
1453
rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/usbai_util.c
1459
return (rval);
usr/src/uts/common/io/usb/usba/usbai_util.c
1488
int rval;
usr/src/uts/common/io/usb/usba/usbai_util.c
1506
rval = usb_pipe_sync_ctrl_xfer(dip, ph,
usr/src/uts/common/io/usb/usba/usbai_util.c
1517
"rval=%d, cb_flags=%d, cr=%d", rval, cb_flags, completion_reason);
usr/src/uts/common/io/usb/usba/usbai_util.c
1519
return (rval);
usr/src/uts/common/io/usb/usba/usbai_util.c
1557
int rval,
usr/src/uts/common/io/usb/usba/usbai_util.c
1600
int rval;
usr/src/uts/common/io/usb/usba/usbai_util.c
1613
rval = usb_clear_feature(dip, (usb_pipe_handle_t)ph_impl, type,
usr/src/uts/common/io/usb/usba/usbai_util.c
1641
if (rval == USB_SUCCESS && feature == 0) {
usr/src/uts/common/io/usb/usba/usbai_util.c
1656
return (rval);
usr/src/uts/common/io/usb/usba/usbai_util.c
1905
usb_str_rval(int rval)
usr/src/uts/common/io/usb/usba/usbai_util.c
1907
return (usba_get_name(rval_table, rval));
usr/src/uts/common/io/usb/usba/usbai_util.c
1915
int rval;
usr/src/uts/common/io/usb/usba/usbai_util.c
1939
usb_rval2errno(int rval)
usr/src/uts/common/io/usb/usba/usbai_util.c
1944
if (usb_rval2errno_table[i].rval == rval) {
usr/src/uts/common/io/usb/usba/usbai_util.c
2012
int rval = 1; /* Must be initialized > 0 */
usr/src/uts/common/io/usb/usba/usbai_util.c
2053
if (rval <= 0) {
usr/src/uts/common/io/usb/usba/usbai_util.c
2060
((rval == 0) ? "signal" : "timeout"));
usr/src/uts/common/io/usb/usba/usbai_util.c
2062
return (rval);
usr/src/uts/common/io/usb/usba/usbai_util.c
2074
rval = cv_wait_sig(&impl_tokenp->s_cv,
usr/src/uts/common/io/usb/usba/usbai_util.c
2078
rval = cv_timedwait(&impl_tokenp->s_cv,
usr/src/uts/common/io/usb/usba/usbai_util.c
2082
rval = cv_timedwait_sig(&impl_tokenp->s_cv,
usr/src/uts/common/io/usb/usba/usbai_util.c
2261
int rval;
usr/src/uts/common/io/usb/usba/usbai_util.c
2266
rval = usb_set_device_pwrlvl3(dip);
usr/src/uts/common/io/usb/usba/usbai_util.c
2267
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/usba/usbai_util.c
2288
int rval;
usr/src/uts/common/io/usb/usba/usbai_util.c
2291
rval = usb_set_device_pwrlvl2(dip);
usr/src/uts/common/io/usb/usba/usbai_util.c
2292
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/usba/usbai_util.c
2302
int rval;
usr/src/uts/common/io/usb/usba/usbai_util.c
2305
rval = usb_set_device_pwrlvl1(dip);
usr/src/uts/common/io/usb/usba/usbai_util.c
2306
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/usba/usbai_util.c
2315
int rval;
usr/src/uts/common/io/usb/usba/usbai_util.c
2320
rval = usb_set_device_pwrlvl0(dip);
usr/src/uts/common/io/usb/usba/usbai_util.c
2321
ASSERT(rval == USB_SUCCESS);
usr/src/uts/common/io/usb/usba/usbai_util.c
2349
int rval = DDI_FAILURE;
usr/src/uts/common/io/usb/usba/usbai_util.c
2353
rval = usb_common_pwrlvl0(dip, pm, dev_state);
usr/src/uts/common/io/usb/usba/usbai_util.c
2356
rval = usb_common_pwrlvl1(dip, pm, dev_state);
usr/src/uts/common/io/usb/usba/usbai_util.c
2359
rval = usb_common_pwrlvl2(dip, pm, dev_state);
usr/src/uts/common/io/usb/usba/usbai_util.c
2362
rval = usb_common_pwrlvl3(dip, pm, dev_state);
usr/src/uts/common/io/usb/usba/usbai_util.c
2366
return ((rval == USB_SUCCESS) ? DDI_SUCCESS : DDI_FAILURE);
usr/src/uts/common/io/usb/usba/usbai_util.c
2380
int rval;
usr/src/uts/common/io/usb/usba/usbai_util.c
2390
rval = ddi_get_eventcookie(dip, DDI_DEVI_REMOVE_EVENT,
usr/src/uts/common/io/usb/usba/usbai_util.c
2393
if (rval == DDI_SUCCESS) {
usr/src/uts/common/io/usb/usba/usbai_util.c
2394
rval = ddi_add_event_handler(dip,
usr/src/uts/common/io/usb/usba/usbai_util.c
2397
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/usb/usba/usbai_util.c
2402
rval = ddi_get_eventcookie(dip, DDI_DEVI_INSERT_EVENT,
usr/src/uts/common/io/usb/usba/usbai_util.c
2404
if (rval == DDI_SUCCESS) {
usr/src/uts/common/io/usb/usba/usbai_util.c
2405
rval = ddi_add_event_handler(dip, cookie, event_cb,
usr/src/uts/common/io/usb/usba/usbai_util.c
2408
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/usb/usba/usbai_util.c
2413
rval = ddi_get_eventcookie(dip, USBA_PRE_SUSPEND_EVENT, &cookie);
usr/src/uts/common/io/usb/usba/usbai_util.c
2414
if (rval == DDI_SUCCESS) {
usr/src/uts/common/io/usb/usba/usbai_util.c
2415
rval = ddi_add_event_handler(dip,
usr/src/uts/common/io/usb/usba/usbai_util.c
2418
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/usb/usba/usbai_util.c
2423
rval = ddi_get_eventcookie(dip, USBA_POST_RESUME_EVENT, &cookie);
usr/src/uts/common/io/usb/usba/usbai_util.c
2424
if (rval == DDI_SUCCESS) {
usr/src/uts/common/io/usb/usba/usbai_util.c
2425
rval = ddi_add_event_handler(dip, cookie, event_cb, NULL,
usr/src/uts/common/io/usb/usba/usbai_util.c
2428
if (rval != DDI_SUCCESS) {
usr/src/uts/common/io/usb/usba/usbai_util.c
284
int rval;
usr/src/uts/common/io/usb/usba/usbai_util.c
301
rval = usb_pipe_sync_ctrl_xfer(dip,
usr/src/uts/common/io/usb/usba/usbai_util.c
312
if (rval != USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/usbai_util.c
314
"rval=%d cr=%d", rval, completion_reason);
usr/src/uts/common/io/usb/usba/usbai_util.c
331
"rval=%d, cr=%d, length=%d", rval, completion_reason, length);
usr/src/uts/common/io/usb/usba/usbai_util.c
340
rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/usbai_util.c
345
rval = usb_pipe_sync_ctrl_xfer(dip,
usr/src/uts/common/io/usb/usba/usbai_util.c
357
"rval=%d, cb_flags=%d, cr=%d", rval, cb_flags, completion_reason);
usr/src/uts/common/io/usb/usba/usbai_util.c
359
if ((data == NULL) || (rval != USB_SUCCESS)) {
usr/src/uts/common/io/usb/usba/usbai_util.c
362
rval, completion_reason);
usr/src/uts/common/io/usb/usba/usbai_util.c
375
rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/usbai_util.c
380
return (rval);
usr/src/uts/common/io/usb/usba/usbai_util.c
515
int rval,
usr/src/uts/common/io/usb/usba/usbai_util.c
559
int rval;
usr/src/uts/common/io/usb/usba/usbai_util.c
629
rval = usb_pipe_sync_ctrl_xfer(dip, (usb_pipe_handle_t)ph_impl,
usr/src/uts/common/io/usb/usba/usbai_util.c
639
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/usbai_util.c
661
"rval=%d, cb_flags=%d, cr=%d", rval, cb_flags, completion_reason);
usr/src/uts/common/io/usb/usba/usbai_util.c
665
return (rval);
usr/src/uts/common/io/usb/usba/usbai_util.c
689
int rval;
usr/src/uts/common/io/usb/usba/usbai_util.c
708
rval = usb_pipe_sync_ctrl_xfer(dip, ph,
usr/src/uts/common/io/usb/usba/usbai_util.c
719
"rval=%d cb_flags=%d cr=%d", rval, cb_flags, completion_reason);
usr/src/uts/common/io/usb/usba/usbai_util.c
721
if ((rval == USB_SUCCESS) && data &&
usr/src/uts/common/io/usb/usba/usbai_util.c
726
if (rval == USB_SUCCESS) {
usr/src/uts/common/io/usb/usba/usbai_util.c
727
rval = USB_FAILURE;
usr/src/uts/common/io/usb/usba/usbai_util.c
736
return (rval);
usr/src/uts/common/io/usb/usba/usbai_util.c
883
int rval,
usr/src/uts/common/io/usb/usba/usbai_util.c
923
int rval;
usr/src/uts/common/io/usb/usba/usbai_util.c
946
rval = usb_pipe_sync_ctrl_xfer(dip, usba_get_dflt_pipe_handle(dip),
usr/src/uts/common/io/usb/usba/usbai_util.c
957
"rval=%d, cb_flags=%d, cr=%d", rval, cb_flags, completion_reason);
usr/src/uts/common/io/usb/usba/usbai_util.c
961
return (rval);
usr/src/uts/common/io/usb/usba/usbai_util.c
987
int rval;
usr/src/uts/common/io/usb/usba10/usba10.c
205
int rval,
usr/src/uts/common/io/usb/usba10/usba10.c
222
int rval,
usr/src/uts/common/io/usb/usba10/usba10.c
255
int rval,
usr/src/uts/common/io/usb/usba10/usba10.c
338
int rval,
usr/src/uts/common/io/usb/usba10/usba10.c
365
int rval,
usr/src/uts/common/io/usb/usba10/usba10.c
513
void (*cb)(void *arg, int rval),
usr/src/uts/common/io/usb/usba10/usba10.c
526
void (*cb)(void *arg, int rval),
usr/src/uts/common/io/usb/usba10/usba10.c
722
int rval;
usr/src/uts/common/io/usb/usba10/usba10.c
725
rval = usba10_usba_vlog(handle, level, mask, fmt, ap);
usr/src/uts/common/io/usb/usba10/usba10.c
728
return (rval);
usr/src/uts/common/io/usb/usba10/usba10.c
799
usb_str_rval(int rval)
usr/src/uts/common/io/usb/usba10/usba10.c
801
return (usba10_usb_str_rval(rval));
usr/src/uts/common/io/usb/usba10/usba10.c
806
usb_rval2errno(int rval)
usr/src/uts/common/io/usb/usba10/usba10.c
808
return (usba10_usb_rval2errno(rval));
usr/src/uts/common/io/vioscsi/vioscsi.c
603
int rval = 0;
usr/src/uts/common/io/vioscsi/vioscsi.c
611
rval = sc->vs_cdb_size;
usr/src/uts/common/io/vioscsi/vioscsi.c
615
rval = sc->vs_tran->tran_dma_attr.dma_attr_maxxfer;
usr/src/uts/common/io/vioscsi/vioscsi.c
619
rval = sc->vs_tran->tran_interconnect_type;
usr/src/uts/common/io/vioscsi/vioscsi.c
626
rval = 1;
usr/src/uts/common/io/vioscsi/vioscsi.c
630
rval = -1;
usr/src/uts/common/io/vioscsi/vioscsi.c
632
return (rval);
usr/src/uts/common/io/vioscsi/vioscsi.c
638
int rval = 1;
usr/src/uts/common/io/vioscsi/vioscsi.c
646
rval = 1;
usr/src/uts/common/io/vioscsi/vioscsi.c
648
return (rval);
usr/src/uts/common/io/vnic/vnic_dev.c
752
int rval = 0;
usr/src/uts/common/io/vnic/vnic_dev.c
786
rval = ENOTSUP;
usr/src/uts/common/io/vnic/vnic_dev.c
789
return (rval);
usr/src/uts/common/ktli/t_kspoll.c
117
error = kstrgetmsg(vp, NULL, NULL, &pri, &pflag, timout, &rval);
usr/src/uts/common/ktli/t_kspoll.c
90
rval_t rval;
usr/src/uts/common/ktli/t_kutil.c
106
error = kstrgetmsg(vp, bp, NULL, &pri, &pflag, timout, &rval);
usr/src/uts/common/ktli/t_kutil.c
94
rval_t rval;
usr/src/uts/common/os/aio.c
1032
*rval = 1;
usr/src/uts/common/os/aio.c
1843
aio_cancel(int fildes, void *cb, long *rval, int run_mode)
usr/src/uts/common/os/aio.c
1865
*rval = AIO_ALLDONE;
usr/src/uts/common/os/aio.c
1894
*rval = AIO_ALLDONE;
usr/src/uts/common/os/aio.c
1898
*rval = AIO_NOTCANCELED;
usr/src/uts/common/os/aio.c
1903
*rval = AIO_ALLDONE;
usr/src/uts/common/os/aio.c
1913
*rval = AIO_NOTCANCELED;
usr/src/uts/common/os/aio.c
1920
*rval = AIO_ALLDONE;
usr/src/uts/common/os/aio.c
233
long rval = 0;
usr/src/uts/common/os/aio.c
245
error = aiowait((struct timeval *)a1, (int)a2, &rval);
usr/src/uts/common/os/aio.c
270
(int)a4, &rval, AIO_64);
usr/src/uts/common/os/aio.c
282
error = aio_cancel((int)a1, (void *)a2, &rval, AIO_64);
usr/src/uts/common/os/aio.c
297
return (rval);
usr/src/uts/common/os/aio.c
306
long rval = 0;
usr/src/uts/common/os/aio.c
330
&rval);
usr/src/uts/common/os/aio.c
351
&rval, AIO_32);
usr/src/uts/common/os/aio.c
362
error = (aio_cancel((int)uap[1], (void *)uap[2], &rval,
usr/src/uts/common/os/aio.c
373
(timespec_t *)uap[3], (int)uap[4], &rval,
usr/src/uts/common/os/aio.c
386
&rval, AIO_LARGEFILE));
usr/src/uts/common/os/aio.c
392
rvp->r_val1 = rval;
usr/src/uts/common/os/aio.c
524
aiowait(struct timeval *timout, int dontblockflg, long *rval)
usr/src/uts/common/os/aio.c
561
*rval = (long)reqp->aio_req_resultp;
usr/src/uts/common/os/aio.c
567
*rval = 1;
usr/src/uts/common/os/aio.c
583
*rval = -1;
usr/src/uts/common/os/aio.c
753
int rval = cv_waituntil_sig(&aiop->aio_waitcv,
usr/src/uts/common/os/aio.c
755
if (rval > 0)
usr/src/uts/common/os/aio.c
757
if (rval < 0) {
usr/src/uts/common/os/aio.c
895
long *rval, int run_mode)
usr/src/uts/common/os/condvar.c
312
int rval = 1;
usr/src/uts/common/os/condvar.c
316
return (rval);
usr/src/uts/common/os/condvar.c
326
return (rval);
usr/src/uts/common/os/condvar.c
348
rval = 0;
usr/src/uts/common/os/condvar.c
352
rval = 0;
usr/src/uts/common/os/condvar.c
353
if (rval != 0 && cancel_pending) {
usr/src/uts/common/os/condvar.c
355
rval = 0;
usr/src/uts/common/os/condvar.c
359
if (rval == 0 && signalled) /* avoid consuming the cv_signal() */
usr/src/uts/common/os/condvar.c
361
return (rval);
usr/src/uts/common/os/condvar.c
373
clock_t rval = 1;
usr/src/uts/common/os/condvar.c
378
return (rval);
usr/src/uts/common/os/condvar.c
401
rval = -1;
usr/src/uts/common/os/condvar.c
433
rval = untimeout_default(id, 0);
usr/src/uts/common/os/condvar.c
435
if (rval <= 0)
usr/src/uts/common/os/condvar.c
436
rval = -1;
usr/src/uts/common/os/condvar.c
447
rval = 0;
usr/src/uts/common/os/condvar.c
451
rval = 0;
usr/src/uts/common/os/condvar.c
452
if (rval != 0 && cancel_pending) {
usr/src/uts/common/os/condvar.c
454
rval = 0;
usr/src/uts/common/os/condvar.c
458
if (rval <= 0 && signalled) /* avoid consuming the cv_signal() */
usr/src/uts/common/os/condvar.c
460
return (rval);
usr/src/uts/common/os/condvar.c
535
int rval = 1;
usr/src/uts/common/os/condvar.c
539
return (rval);
usr/src/uts/common/os/condvar.c
548
return (rval);
usr/src/uts/common/os/condvar.c
573
rval = 0;
usr/src/uts/common/os/condvar.c
577
rval = 0;
usr/src/uts/common/os/condvar.c
578
if (rval != 0 && cancel_pending) {
usr/src/uts/common/os/condvar.c
580
rval = 0;
usr/src/uts/common/os/condvar.c
584
if (rval == 0) {
usr/src/uts/common/os/condvar.c
590
return (rval);
usr/src/uts/common/os/condvar.c
772
int rval;
usr/src/uts/common/os/condvar.c
786
rval = cv_timedwait_sig_hires(cvp, mp, 0, 1, 0);
usr/src/uts/common/os/condvar.c
797
rval = cv_timedwait_sig_hires(cvp, mp, interval, 1,
usr/src/uts/common/os/condvar.c
804
rval = -1;
usr/src/uts/common/os/condvar.c
806
if (rval == -1 && timecheck == timechanged) {
usr/src/uts/common/os/condvar.c
817
rval = 1;
usr/src/uts/common/os/condvar.c
820
return (rval);
usr/src/uts/common/os/dacf.c
1022
rval = op->op_func(info_hdl, arg_hdl, flags);
usr/src/uts/common/os/dacf.c
1039
if (rval == DACF_SUCCESS) {
usr/src/uts/common/os/dacf.c
922
int i, rval = -1;
usr/src/uts/common/os/ddi_hp_impl.c
308
uintptr_t rval)
usr/src/uts/common/os/ddi_hp_impl.c
323
(void *)arg, (void *)rval));
usr/src/uts/common/os/ddi_hp_impl.c
376
DDIHP_CN_OPS(hdlp, op, (void *)arg, (void *)rval, rv);
usr/src/uts/common/os/devcache.c
1026
rval = DDI_FAILURE;
usr/src/uts/common/os/devcache.c
1030
return (rval);
usr/src/uts/common/os/devcache.c
1040
int rval;
usr/src/uts/common/os/devcache.c
1118
rval = nvpflush_one(nvfdp);
usr/src/uts/common/os/devcache.c
1120
if (rval != DDI_SUCCESS ||
usr/src/uts/common/os/devcache.c
378
int rval;
usr/src/uts/common/os/devcache.c
449
rval = kobj_read_file(file, &c, 1, offset);
usr/src/uts/common/os/devcache.c
451
if (rval > 0) {
usr/src/uts/common/os/devcache.c
467
rval = nvlist_unpack(buf, hdr.nvpf_size, &nvl, 0);
usr/src/uts/common/os/devcache.c
468
if (rval != 0) {
usr/src/uts/common/os/devcache.c
470
filename, rval);
usr/src/uts/common/os/devcache.c
484
int rval;
usr/src/uts/common/os/devcache.c
497
rval = vn_open(filename, UIO_SYSSPACE, fp->kf_vnflags,
usr/src/uts/common/os/devcache.c
499
if (rval != 0) {
usr/src/uts/common/os/devcache.c
502
filename, rval));
usr/src/uts/common/os/devcache.c
503
return (rval);
usr/src/uts/common/os/devcache.c
513
int rval;
usr/src/uts/common/os/devcache.c
516
rval = vn_remove(filename, UIO_SYSSPACE, RMFILE);
usr/src/uts/common/os/devcache.c
517
if (rval != 0) {
usr/src/uts/common/os/devcache.c
519
filename, rval));
usr/src/uts/common/os/devcache.c
521
return (rval);
usr/src/uts/common/os/devcache.c
615
int rval;
usr/src/uts/common/os/devcache.c
620
rval = VOP_FSYNC(fp->kf_vp, FSYNC, kcred, NULL);
usr/src/uts/common/os/devcache.c
621
if (rval != 0) {
usr/src/uts/common/os/devcache.c
623
fp->kf_fname, rval);
usr/src/uts/common/os/devcache.c
628
rval = VOP_CLOSE(fp->kf_vp, fp->kf_vnflags, 1,
usr/src/uts/common/os/devcache.c
630
if (rval != 0) {
usr/src/uts/common/os/devcache.c
633
fp->kf_fname, rval);
usr/src/uts/common/os/devcache.c
642
return (rval);
usr/src/uts/common/os/devcache.c
648
int rval;
usr/src/uts/common/os/devcache.c
654
if ((rval = vn_rename(oldname, newname, UIO_SYSSPACE)) != 0) {
usr/src/uts/common/os/devcache.c
656
oldname, newname, rval));
usr/src/uts/common/os/devcache.c
659
return (rval);
usr/src/uts/common/os/devcache.c
788
int rval;
usr/src/uts/common/os/devcache.c
793
rval = fread_nvlist(nvfd->nvf_cache_path, &nvl);
usr/src/uts/common/os/devcache.c
794
if (rval != 0)
usr/src/uts/common/os/devcache.c
795
return (rval);
usr/src/uts/common/os/devcache.c
805
rval = nvpair_value_nvlist(nvp, &sublist);
usr/src/uts/common/os/devcache.c
806
if (rval != 0) {
usr/src/uts/common/os/devcache.c
809
name, rval);
usr/src/uts/common/os/devcache.c
825
rval = EINVAL;
usr/src/uts/common/os/devcache.c
833
rval = EINVAL;
usr/src/uts/common/os/devcache.c
845
return (rval);
usr/src/uts/common/os/devcache.c
853
int rval;
usr/src/uts/common/os/devcache.c
862
rval = fread_nvp_list(nvfd);
usr/src/uts/common/os/devcache.c
863
if (rval) {
usr/src/uts/common/os/devcache.c
864
switch (rval) {
usr/src/uts/common/os/devcache.c
883
return (rval);
usr/src/uts/common/os/devcache.c
957
int rval = DDI_SUCCESS;
usr/src/uts/common/os/devcache.c
991
rval = e_fwrite_nvlist(nvfd, nvl);
usr/src/uts/common/os/devcache.c
996
if (rval == DDI_FAILURE) {
usr/src/uts/common/os/devcache.c
998
rval = DDI_SUCCESS;
usr/src/uts/common/os/devcfg.c
1481
int rval;
usr/src/uts/common/os/devcfg.c
1499
rval = dacfc_postattach(dip);
usr/src/uts/common/os/devcfg.c
1507
if (rval != DACF_SUCCESS) {
usr/src/uts/common/os/devcfg.c
5337
int rval;
usr/src/uts/common/os/devcfg.c
5345
rval = devi_unconfig_common(dip, dipp, flags, DDI_MAJOR_T_NONE,
usr/src/uts/common/os/devcfg.c
5348
if (rval != NDI_SUCCESS && (*brevqp)) {
usr/src/uts/common/os/devcfg.c
5353
rval = devi_unconfig_common(dip, dipp, flags, DDI_MAJOR_T_NONE,
usr/src/uts/common/os/devcfg.c
5356
return (rval);
usr/src/uts/common/os/devcfg.c
6750
int rval = 0;
usr/src/uts/common/os/devcfg.c
6805
rval = devi_unconfig_branch(dip, NULL, flags|NDI_UNCONFIG,
usr/src/uts/common/os/devcfg.c
6808
if (rval)
usr/src/uts/common/os/devcfg.c
6818
rval = devi_detach_node(dip, flags);
usr/src/uts/common/os/devcfg.c
6820
if (rval != NDI_SUCCESS)
usr/src/uts/common/os/devcfg.c
6830
return (rval);
usr/src/uts/common/os/devid_cache.c
257
int rval;
usr/src/uts/common/os/devid_cache.c
266
rval = nvlist_lookup_byte_array(nvl,
usr/src/uts/common/os/devid_cache.c
268
if (rval == 0) {
usr/src/uts/common/os/devid_cache.c
298
int rval;
usr/src/uts/common/os/devid_cache.c
303
rval = nvlist_alloc(&nvl, NV_UNIQUE_NAME, KM_SLEEP);
usr/src/uts/common/os/devid_cache.c
304
if (rval != 0) {
usr/src/uts/common/os/devid_cache.c
306
nvf_cache_name(fd), rval);
usr/src/uts/common/os/devid_cache.c
315
rval = nvlist_alloc(&sub_nvl, NV_UNIQUE_NAME, KM_SLEEP);
usr/src/uts/common/os/devid_cache.c
316
if (rval != 0) {
usr/src/uts/common/os/devid_cache.c
318
nvf_cache_name(fd), rval);
usr/src/uts/common/os/devid_cache.c
323
rval = nvlist_add_byte_array(sub_nvl, DP_DEVID_ID,
usr/src/uts/common/os/devid_cache.c
326
if (rval == 0) {
usr/src/uts/common/os/devid_cache.c
331
nvf_cache_name(fd), rval);
usr/src/uts/common/os/devid_cache.c
335
rval = nvlist_add_nvlist(nvl, np->nvp_devpath, sub_nvl);
usr/src/uts/common/os/devid_cache.c
336
if (rval != 0) {
usr/src/uts/common/os/devid_cache.c
338
nvf_cache_name(fd), rval);
usr/src/uts/common/os/devid_cache.c
460
int rval = DDI_SUCCESS;
usr/src/uts/common/os/devid_cache.c
491
rval = DDI_FAILURE;
usr/src/uts/common/os/devid_cache.c
497
return (rval);
usr/src/uts/common/os/driver_lyr.c
2203
rval_t rval;
usr/src/uts/common/os/driver_lyr.c
2226
rmp, NULL, &pri, &pflag, timout, &rval);
usr/src/uts/common/os/errorq.c
479
index_t rval, nextindex = curindex + 1;
usr/src/uts/common/os/errorq.c
504
if ((rval = bt_availbit(&bitmap[nextword],
usr/src/uts/common/os/errorq.c
506
return ((nextword << BT_ULSHIFT) + rval);
usr/src/uts/common/os/errorq.c
532
int i, rval;
usr/src/uts/common/os/errorq.c
539
BT_ATOMIC_SET_EXCL(eqp->eq_bitmap, i, rval);
usr/src/uts/common/os/errorq.c
540
if (rval == 0) {
usr/src/uts/common/os/errorq.c
877
int i, rval;
usr/src/uts/common/os/errorq.c
884
BT_ATOMIC_SET_EXCL(eqp->eq_bitmap, i, rval);
usr/src/uts/common/os/errorq.c
885
if (rval == 0) {
usr/src/uts/common/os/exit.c
138
rexit(int rval)
usr/src/uts/common/os/exit.c
140
exit(CLD_EXITED, rval);
usr/src/uts/common/os/instance.c
1521
int rval = INST_WALK_CONTINUE;
usr/src/uts/common/os/instance.c
1535
rval = (*f)(path, np, dp, arg);
usr/src/uts/common/os/instance.c
1536
if (rval == INST_WALK_TERMINATE)
usr/src/uts/common/os/instance.c
1542
rval = in_walk_instances(np->in_child,
usr/src/uts/common/os/instance.c
1544
if (rval == INST_WALK_TERMINATE)
usr/src/uts/common/os/instance.c
1551
return (rval);
usr/src/uts/common/os/instance.c
1563
int rval;
usr/src/uts/common/os/instance.c
1570
rval = in_walk_instances(root->in_child, path, path, f, arg);
usr/src/uts/common/os/instance.c
1575
return (rval);
usr/src/uts/common/os/log_sysevent.c
1744
int rval;
usr/src/uts/common/os/log_sysevent.c
1754
rval = queue_sysevent(ev_copy, eid, flag);
usr/src/uts/common/os/log_sysevent.c
1755
ASSERT(rval == 0 || rval == SE_ENOMEM || rval == SE_EQSIZE ||
usr/src/uts/common/os/log_sysevent.c
1756
rval == SE_NO_TRANSPORT);
usr/src/uts/common/os/log_sysevent.c
1757
ASSERT(!(flag == SE_SLEEP && (rval == SE_EQSIZE || rval == SE_ENOMEM)));
usr/src/uts/common/os/log_sysevent.c
1758
return (rval);
usr/src/uts/common/os/log_sysevent.c
1878
int rval;
usr/src/uts/common/os/log_sysevent.c
1918
rval = log_sysevent(event, se_flag, &eid);
usr/src/uts/common/os/log_sysevent.c
1923
if (rval == 0) {
usr/src/uts/common/os/log_sysevent.c
1930
if (rval == SE_NO_TRANSPORT)
usr/src/uts/common/os/log_sysevent.c
1933
ASSERT(rval == SE_ENOMEM || rval == SE_EQSIZE);
usr/src/uts/common/os/log_sysevent.c
1934
return ((rval == SE_ENOMEM) ? DDI_ENOMEM : DDI_EBUSY);
usr/src/uts/common/os/modctl.c
1592
int rval = 0;
usr/src/uts/common/os/modctl.c
1599
if ((rval = ddi_dev_pathname(fbdev, S_IFCHR,
usr/src/uts/common/os/modctl.c
1602
rval = EFAULT;
usr/src/uts/common/os/modctl.c
1606
return (rval);
usr/src/uts/common/os/modctl.c
1617
int rval = 0;
usr/src/uts/common/os/modctl.c
1626
rval = EFAULT;
usr/src/uts/common/os/modctl.c
1633
rval = read_dacf_binding_file(filenamep);
usr/src/uts/common/os/modctl.c
1636
return (rval);
usr/src/uts/common/os/modctl.c
2015
int err, rval = 0;
usr/src/uts/common/os/modctl.c
2049
if (rval == 0)
usr/src/uts/common/os/modctl.c
2050
rval = err;
usr/src/uts/common/os/modctl.c
2065
if (rval == 0)
usr/src/uts/common/os/modctl.c
2066
rval = err;
usr/src/uts/common/os/modctl.c
2069
return (rval);
usr/src/uts/common/os/modctl.c
2293
uintptr_t rval)
usr/src/uts/common/os/modctl.c
2335
cn_name_str, arg, rval);
usr/src/uts/common/os/modctl.c
2339
cn_name_str, arg, rval);
usr/src/uts/common/os/modctl.c
391
int rval = 0;
usr/src/uts/common/os/modctl.c
401
return (rval);
usr/src/uts/common/os/modctl.c
406
rval = modunload(id);
usr/src/uts/common/os/modctl.c
408
return (rval);
usr/src/uts/common/os/netstack.c
1045
boolean_t rval = B_FALSE;
usr/src/uts/common/os/netstack.c
1051
rval = B_TRUE;
usr/src/uts/common/os/netstack.c
1058
return (rval);
usr/src/uts/common/os/project.c
673
rctl_val_t *rval, rctl_qty_t inc, uint_t flags)
usr/src/uts/common/os/project.c
679
if (v > rval->rcv_value)
usr/src/uts/common/os/project.c
707
rctl_val_t *rval, rctl_qty_t inc, uint_t flags)
usr/src/uts/common/os/project.c
713
if (v > rval->rcv_value)
usr/src/uts/common/os/project.c
741
rctl_val_t *rval, rctl_qty_t inc, uint_t flags)
usr/src/uts/common/os/project.c
747
if (v > rval->rcv_value)
usr/src/uts/common/os/project.c
775
rctl_val_t *rval, rctl_qty_t inc, uint_t flags)
usr/src/uts/common/os/project.c
781
if (v > rval->rcv_value)
usr/src/uts/common/os/project.c
809
rctl_val_t *rval, rctl_qty_t inc, uint_t flags)
usr/src/uts/common/os/project.c
815
if (q + inc > rval->rcv_value)
usr/src/uts/common/os/project.c
848
rctl_val_t *rval, rctl_qty_t inc, uint_t flags)
usr/src/uts/common/os/project.c
858
(v > rval->rcv_value))
usr/src/uts/common/os/project.c
896
rctl_val_t *rval, rctl_qty_t incr, uint_t flags)
usr/src/uts/common/os/project.c
902
if (v > rval->rcv_value)
usr/src/uts/common/os/rctl.c
1418
rctl_val_t *rval;
usr/src/uts/common/os/rctl.c
1421
rval = r->rc_values;
usr/src/uts/common/os/rctl.c
1423
while (rval != NULL) {
usr/src/uts/common/os/rctl.c
1424
if (rval->rcv_privilege == RCPRIV_BASIC &&
usr/src/uts/common/os/rctl.c
1425
rval->rcv_action_recipient == p) {
usr/src/uts/common/os/rctl.c
1426
if (r->rc_cursor == rval)
usr/src/uts/common/os/rctl.c
1427
r->rc_cursor = rval->rcv_next;
usr/src/uts/common/os/rctl.c
1430
&r->rc_values, rval);
usr/src/uts/common/os/rctl.c
1435
rval = rval->rcv_next;
usr/src/uts/common/os/rctl.c
2038
rctl_val_t *rval;
usr/src/uts/common/os/rctl.c
2049
rval = rctl->rc_values;
usr/src/uts/common/os/rctl.c
2058
while (rval != NULL && rval->rcv_privilege != RCPRIV_SYSTEM) {
usr/src/uts/common/os/rctl.c
2060
(rval->rcv_flagaction & RCTL_LOCAL_DENY) == 0) {
usr/src/uts/common/os/rctl.c
2061
rval = rval->rcv_next;
usr/src/uts/common/os/rctl.c
2071
if (rval->rcv_privilege == RCPRIV_BASIC) {
usr/src/uts/common/os/rctl.c
2073
rval = rval->rcv_next;
usr/src/uts/common/os/rctl.c
2077
if ((rval->rcv_flagaction & RCTL_LOCAL_MAXIMAL) == 0 &&
usr/src/uts/common/os/rctl.c
2078
rval->rcv_value < rctl_model_maximum(
usr/src/uts/common/os/rctl.c
2080
rlp64->rlim_cur = rval->rcv_value;
usr/src/uts/common/os/rctl.c
2085
rval = rval->rcv_next;
usr/src/uts/common/os/rctl.c
2096
if ((rval->rcv_flagaction & RCTL_LOCAL_MAXIMAL) == 0 &&
usr/src/uts/common/os/rctl.c
2097
rval->rcv_value < rctl_model_maximum(rctl->rc_dict_entry,
usr/src/uts/common/os/rctl.c
2099
rlp64->rlim_max = rval->rcv_value;
usr/src/uts/common/os/rctl.c
2109
if (rval == NULL) {
usr/src/uts/common/os/rctl.c
2123
if ((rval->rcv_flagaction & RCTL_LOCAL_MAXIMAL) == 0 &&
usr/src/uts/common/os/rctl.c
2124
rval->rcv_value < rctl_model_maximum(rctl->rc_dict_entry, p))
usr/src/uts/common/os/rctl.c
2125
rlp64->rlim_max = rval->rcv_value;
usr/src/uts/common/os/rctl.c
2193
rctl_val_t *rval, *rval_priv, *rval_basic;
usr/src/uts/common/os/rctl.c
2225
rval = rctl->rc_values;
usr/src/uts/common/os/rctl.c
2227
while (rval != NULL) {
usr/src/uts/common/os/rctl.c
2228
rctl_val_t *next = rval->rcv_next;
usr/src/uts/common/os/rctl.c
2230
if (rval->rcv_privilege == RCPRIV_SYSTEM)
usr/src/uts/common/os/rctl.c
2233
if ((rval->rcv_privilege == RCPRIV_BASIC) ||
usr/src/uts/common/os/rctl.c
2234
(rval->rcv_flagaction & ~RCTL_LOCAL_ACTION_MASK) ==
usr/src/uts/common/os/rctl.c
2236
if (rctl->rc_cursor == rval) {
usr/src/uts/common/os/rctl.c
2237
rctl->rc_cursor = rval->rcv_next;
usr/src/uts/common/os/rctl.c
2243
(void) rctl_val_list_delete(&rctl->rc_values, rval);
usr/src/uts/common/os/rctl.c
2246
rval = next;
usr/src/uts/common/os/rctl.c
603
rctl_val_t *rval = prev;
usr/src/uts/common/os/rctl.c
608
rval = kmem_cache_alloc(rctl_val_cache, KM_SLEEP);
usr/src/uts/common/os/rctl.c
609
prev->rcv_next = rval;
usr/src/uts/common/os/rctl.c
610
prev = rval;
usr/src/uts/common/os/rctl.c
613
rval->rcv_next = NULL;
usr/src/uts/common/os/rctl.c
621
rctl_val_t *rval = rcgp->rcag_vals;
usr/src/uts/common/os/rctl.c
625
rcgp->rcag_vals = rval->rcv_next;
usr/src/uts/common/os/rctl.c
627
rval->rcv_next = NULL;
usr/src/uts/common/os/rctl.c
629
return (rval);
usr/src/uts/common/os/rctl.c
650
rctl_val_t *rval = rcgp->rcag_vals;
usr/src/uts/common/os/rctl.c
653
while (rval != NULL) {
usr/src/uts/common/os/rctl.c
654
rctl_val_t *next = rval->rcv_next;
usr/src/uts/common/os/rctl.c
656
kmem_cache_free(rctl_val_cache, rval);
usr/src/uts/common/os/rctl.c
657
rval = next;
usr/src/uts/common/os/rctl.c
751
rctl_val_t *rval = *head;
usr/src/uts/common/os/rctl.c
753
while (rval != NULL) {
usr/src/uts/common/os/rctl.c
754
if (rctl_val_cmp(cval, rval, 0) == 0)
usr/src/uts/common/os/rctl.c
755
return (rval);
usr/src/uts/common/os/rctl.c
757
rval = rval->rcv_next;
usr/src/uts/common/os/rctl.c
777
rctl_val_list_insert(rctl_val_t **root, rctl_val_t *rval)
usr/src/uts/common/os/rctl.c
782
rval->rcv_next = NULL;
usr/src/uts/common/os/rctl.c
783
rval->rcv_prev = NULL;
usr/src/uts/common/os/rctl.c
786
*root = rval;
usr/src/uts/common/os/rctl.c
790
equiv = rctl_val_cmp(rval, *root, 0);
usr/src/uts/common/os/rctl.c
796
rval->rcv_next = *root;
usr/src/uts/common/os/rctl.c
797
rval->rcv_next->rcv_prev = rval;
usr/src/uts/common/os/rctl.c
798
*root = rval;
usr/src/uts/common/os/rctl.c
805
(equiv = rctl_val_cmp(rval, prev->rcv_next, 0)) > 0) {
usr/src/uts/common/os/rctl.c
812
rval->rcv_next = prev->rcv_next;
usr/src/uts/common/os/rctl.c
813
if (rval->rcv_next != NULL)
usr/src/uts/common/os/rctl.c
814
rval->rcv_next->rcv_prev = rval;
usr/src/uts/common/os/rctl.c
815
prev->rcv_next = rval;
usr/src/uts/common/os/rctl.c
816
rval->rcv_prev = prev;
usr/src/uts/common/os/rctl.c
822
rctl_val_list_delete(rctl_val_t **root, rctl_val_t *rval)
usr/src/uts/common/os/rctl.c
830
if (rctl_val_cmp(rval, prev, 0) == 0) {
usr/src/uts/common/os/rctl.c
841
rctl_val_cmp(rval, prev->rcv_next, 0) != 0) {
usr/src/uts/common/os/rctl.c
864
rctl_val_list_dup(rctl_val_t *rval, rctl_alloc_gp_t *ragp, struct proc *oldp,
usr/src/uts/common/os/rctl.c
869
for (; rval != NULL; rval = rval->rcv_next) {
usr/src/uts/common/os/rctl.c
872
bcopy(rval, dval, sizeof (rctl_val_t));
usr/src/uts/common/os/rctl.c
876
rval->rcv_action_recipient == NULL ||
usr/src/uts/common/os/rctl.c
877
rval->rcv_action_recipient == oldp) {
usr/src/uts/common/os/rctl.c
878
if (rval->rcv_privilege == RCPRIV_BASIC) {
usr/src/uts/common/os/rctl.c
896
rctl_val_list_reset(rctl_val_t *rval)
usr/src/uts/common/os/rctl.c
898
for (; rval != NULL; rval = rval->rcv_next)
usr/src/uts/common/os/rctl.c
899
rval->rcv_firing_time = 0;
usr/src/uts/common/os/rctl.c
903
rctl_val_list_count(rctl_val_t *rval)
usr/src/uts/common/os/rctl.c
907
for (; rval != NULL; rval = rval->rcv_next)
usr/src/uts/common/os/rctl.c
915
rctl_val_list_free(rctl_val_t *rval)
usr/src/uts/common/os/rctl.c
917
while (rval != NULL) {
usr/src/uts/common/os/rctl.c
918
rctl_val_t *next = rval->rcv_next;
usr/src/uts/common/os/rctl.c
920
kmem_cache_free(rctl_val_cache, rval);
usr/src/uts/common/os/rctl.c
922
rval = next;
usr/src/uts/common/os/rctl_proc.c
76
rctl_val_t *rval, rctl_qty_t inc, uint_t flags)
usr/src/uts/common/os/rctl_proc.c
78
return (inc >= rval->rcv_value);
usr/src/uts/common/os/retire_store.c
198
int rval;
usr/src/uts/common/os/retire_store.c
205
rval = nvlist_lookup_int32(line_nvl, RIO_STORE_VERSION_STR, &version);
usr/src/uts/common/os/retire_store.c
206
if (rval != 0 || version != RIO_STORE_VERSION) {
usr/src/uts/common/os/retire_store.c
211
rval = nvlist_lookup_int32(line_nvl, RIO_STORE_MAGIC_STR, &magic);
usr/src/uts/common/os/retire_store.c
212
if (rval != 0 || magic != RIO_STORE_MAGIC) {
usr/src/uts/common/os/retire_store.c
217
rval = nvlist_lookup_int32(line_nvl, RIO_STORE_FLAGS_STR, &flags);
usr/src/uts/common/os/retire_store.c
218
if (rval != 0 || flags != RIO_STORE_F_RETIRED) {
usr/src/uts/common/os/retire_store.c
252
int rval;
usr/src/uts/common/os/retire_store.c
260
rval = nvlist_alloc(&nvl, NV_UNIQUE_NAME, KM_SLEEP);
usr/src/uts/common/os/retire_store.c
261
if (rval != 0) {
usr/src/uts/common/os/retire_store.c
273
rval = nvlist_alloc(&line_nvl, NV_UNIQUE_NAME, KM_SLEEP);
usr/src/uts/common/os/retire_store.c
274
if (rval != 0) {
usr/src/uts/common/os/retire_store.c
279
rval = nvlist_add_int32(line_nvl, RIO_STORE_VERSION_STR,
usr/src/uts/common/os/retire_store.c
281
if (rval != 0) {
usr/src/uts/common/os/retire_store.c
284
rval = nvlist_add_int32(line_nvl, RIO_STORE_MAGIC_STR,
usr/src/uts/common/os/retire_store.c
286
if (rval != 0) {
usr/src/uts/common/os/retire_store.c
292
rval = nvlist_add_int32(line_nvl, RIO_STORE_FLAGS_STR,
usr/src/uts/common/os/retire_store.c
294
if (rval != 0) {
usr/src/uts/common/os/retire_store.c
298
rval = nvlist_add_nvlist(nvl, rsp->rst_devpath, line_nvl);
usr/src/uts/common/os/retire_store.c
299
if (rval != 0) {
usr/src/uts/common/os/sig.c
188
int rval = 0;
usr/src/uts/common/os/sig.c
198
rval = 1;
usr/src/uts/common/os/sig.c
209
rval = 1;
usr/src/uts/common/os/sig.c
211
rval = 1;
usr/src/uts/common/os/sig.c
215
return (rval);
usr/src/uts/common/os/space.c
242
int rval;
usr/src/uts/common/os/space.c
261
rval = mod_hash_insert(space_hash,
usr/src/uts/common/os/space.c
264
switch (rval) {
usr/src/uts/common/os/space.c
270
rval = -1;
usr/src/uts/common/os/space.c
274
rval = -1;
usr/src/uts/common/os/space.c
279
rval = -1;
usr/src/uts/common/os/space.c
283
rval = -1;
usr/src/uts/common/os/space.c
288
return (rval);
usr/src/uts/common/os/space.c
296
int rval;
usr/src/uts/common/os/space.c
299
rval = mod_hash_find(space_hash, (mod_hash_key_t)key, &val);
usr/src/uts/common/os/space.c
300
if (rval == 0) {
usr/src/uts/common/os/streamio.c
245
int32_t rval;
usr/src/uts/common/os/streamio.c
275
(void) strdoioctl(stp, &strioc, FNATIVE, K_TO_K, crp, &rval);
usr/src/uts/common/os/streamio.c
6477
clock_t rval, timeout = STRTIMOUT;
usr/src/uts/common/os/streamio.c
6550
rval = str_cv_wait(&stp->sd_monitor, &stp->sd_lock, timeout, 0);
usr/src/uts/common/os/streamio.c
6554
if (rval <= 0) {
usr/src/uts/common/os/streamio.c
6555
error = (rval == 0) ? EINTR : ETIME;
usr/src/uts/common/os/streamio.c
669
int rval;
usr/src/uts/common/os/streamio.c
745
(void) munlinkall(stp, LINKCLOSE|LINKNORMAL, crp, &rval, ss);
usr/src/uts/common/os/strsubr.c
3031
clock_t rval;
usr/src/uts/common/os/strsubr.c
3118
rval = str_cv_wait(sleepon, &stp->sd_lock, timout, flag & STR_NOSIG);
usr/src/uts/common/os/strsubr.c
3119
if (rval > 0) {
usr/src/uts/common/os/strsubr.c
3124
} else if (rval == 0) {
usr/src/uts/common/os/strsubr.c
8662
int rval;
usr/src/uts/common/os/strsubr.c
8681
cr, &rval);
usr/src/uts/common/os/sunddi.c
318
int rval;
usr/src/uts/common/os/sunddi.c
3367
int rval;
usr/src/uts/common/os/sunddi.c
3409
if ((rval = (*prop_create)(&ph, data, nelements)) !=
usr/src/uts/common/os/sunddi.c
3411
if (rval == DDI_PROP_NO_MEMORY)
usr/src/uts/common/os/sunddi.c
3415
return (rval);
usr/src/uts/common/os/sunddi.c
3425
rval = ddi_prop_add(match_dev, dip,
usr/src/uts/common/os/sunddi.c
3428
rval = ddi_prop_change(match_dev, dip,
usr/src/uts/common/os/sunddi.c
3438
return (rval);
usr/src/uts/common/os/sunddi.c
347
rval = ddi_ctlops(devi, devi, cmd, &peekpoke_args,
usr/src/uts/common/os/sunddi.c
350
rval = peekpoke_mem(cmd, &peekpoke_args);
usr/src/uts/common/os/sunddi.c
3539
int rval;
usr/src/uts/common/os/sunddi.c
3562
rval = i_ddi_prop_search_global(match_dev,
usr/src/uts/common/os/sunddi.c
3565
rval = ddi_prop_search_common(match_dev, dip,
usr/src/uts/common/os/sunddi.c
3571
if (rval != DDI_PROP_SUCCESS && rval != DDI_PROP_FOUND_1275) {
usr/src/uts/common/os/sunddi.c
3574
return (rval);
usr/src/uts/common/os/sunddi.c
3584
ph.ph_flags = (rval == DDI_PROP_FOUND_1275) ? PH_FROM_PROM : 0;
usr/src/uts/common/os/sunddi.c
3586
rval = (*prop_decoder)(&ph, data, nelements);
usr/src/uts/common/os/sunddi.c
3594
return (rval);
usr/src/uts/common/os/sunddi.c
3653
int rval;
usr/src/uts/common/os/sunddi.c
3668
if ((rval = ddi_prop_lookup_common(match_dev, dip,
usr/src/uts/common/os/sunddi.c
3671
if (rval == DDI_PROP_END_OF_DATA)
usr/src/uts/common/os/sunddi.c
3692
int rval;
usr/src/uts/common/os/sunddi.c
3706
if ((rval = ddi_prop_lookup_common(match_dev, dip,
usr/src/uts/common/os/sunddi.c
3710
if (rval == DDI_PROP_END_OF_DATA)
usr/src/uts/common/os/sunddi.c
372
return (rval);
usr/src/uts/common/os/sunddi.c
4913
int count, rval;
usr/src/uts/common/os/sunddi.c
4953
if ((rval = (*funcp)(arg)) == 0) {
usr/src/uts/common/os/sunddi.c
4965
} while (rval != 0 && (--count > 0));
usr/src/uts/common/os/sunddi.c
6904
int rval;
usr/src/uts/common/os/sunddi.c
6943
rval = i_ddi_mem_alloc(dip, attrp, length, sleepflag,
usr/src/uts/common/os/sunddi.c
6947
rval = i_ddi_mem_alloc(dip, attrp, length, sleepflag,
usr/src/uts/common/os/sunddi.c
6950
if (rval == DDI_SUCCESS) {
usr/src/uts/common/os/sunddi.c
6959
rval = DDI_FAILURE;
usr/src/uts/common/os/sunddi.c
6961
return (rval);
usr/src/uts/common/os/sunddi.c
7720
int rval;
usr/src/uts/common/os/sunddi.c
7722
rval = i_ddi_devid_register(dip, devid);
usr/src/uts/common/os/sunddi.c
7723
if (rval == DDI_SUCCESS) {
usr/src/uts/common/os/sunddi.c
7743
return (rval);
usr/src/uts/common/os/sunddi.c
7934
int rval;
usr/src/uts/common/os/sunddi.c
7940
rval = i_ddi_devi_get_devid(dev, dip, ret_devid);
usr/src/uts/common/os/sunddi.c
7943
return (rval);
usr/src/uts/common/os/sunddi.c
7955
int rval;
usr/src/uts/common/os/sunddi.c
7974
rval = DDI_SUCCESS;
usr/src/uts/common/os/sunddi.c
7977
rval = DDI_FAILURE;
usr/src/uts/common/os/sunddi.c
7982
return (rval);
usr/src/uts/common/os/sunndi.c
1448
int rval;
usr/src/uts/common/os/sunndi.c
1493
rval = NDI_FAILURE;
usr/src/uts/common/os/sunndi.c
1522
rval = NDI_FAILURE;
usr/src/uts/common/os/sunndi.c
1568
rval = NDI_SUCCESS;
usr/src/uts/common/os/sunndi.c
1574
return (rval);
usr/src/uts/common/os/sunndi.c
463
int rval;
usr/src/uts/common/os/sunndi.c
474
if ((rval = ndi_devi_config_one(dip, name, &rdip,
usr/src/uts/common/os/sunndi.c
485
} else if (rval == NDI_BUSY) {
usr/src/uts/common/os/sunndi.c
486
rval = EBUSY;
usr/src/uts/common/os/sunndi.c
487
} else if (rval == NDI_FAILURE) {
usr/src/uts/common/os/sunndi.c
488
rval = EIO;
usr/src/uts/common/os/sunndi.c
493
((rval == NDI_SUCCESS) ? "ok" : "failed")));
usr/src/uts/common/os/sunndi.c
497
return (rval);
usr/src/uts/common/os/sunndi.c
508
int rval;
usr/src/uts/common/os/sunndi.c
519
rval = ndi_devi_unconfig_one(dip, name, NULL,
usr/src/uts/common/os/sunndi.c
522
if (rval == NDI_BUSY) {
usr/src/uts/common/os/sunndi.c
523
rval = EBUSY;
usr/src/uts/common/os/sunndi.c
524
} else if (rval == NDI_FAILURE) {
usr/src/uts/common/os/sunndi.c
525
rval = EIO;
usr/src/uts/common/os/sunndi.c
530
(rval == NDI_SUCCESS) ? "ok" : "failed"));
usr/src/uts/common/os/sunndi.c
534
return (rval);
usr/src/uts/common/os/sunndi.c
545
int rval;
usr/src/uts/common/os/sunndi.c
557
rval = ndi_devi_unconfig_one(dip, name, NULL, flags | NDI_DEVI_REMOVE);
usr/src/uts/common/os/sunndi.c
559
if (rval == NDI_BUSY) {
usr/src/uts/common/os/sunndi.c
560
rval = EBUSY;
usr/src/uts/common/os/sunndi.c
561
} else if (rval == NDI_FAILURE) {
usr/src/uts/common/os/sunndi.c
562
rval = EIO;
usr/src/uts/common/os/sunndi.c
567
(rval == NDI_SUCCESS) ? "ok" : "failed"));
usr/src/uts/common/os/sunndi.c
571
return (rval);
usr/src/uts/common/os/sunndi.c
688
int rval = ENOTTY;
usr/src/uts/common/os/sunndi.c
699
rval = ndi_devctl_bus_getstate(dip, dcp, &state);
usr/src/uts/common/os/sunndi.c
700
if (rval == NDI_SUCCESS) {
usr/src/uts/common/os/sunndi.c
703
rval = NDI_FAULT;
usr/src/uts/common/os/sunndi.c
708
rval = ndi_devctl_device_online(dip, dcp, flags);
usr/src/uts/common/os/sunndi.c
712
rval = ndi_devctl_device_offline(dip, dcp, flags);
usr/src/uts/common/os/sunndi.c
716
rval = ndi_devctl_device_getstate(dip, dcp, &state);
usr/src/uts/common/os/sunndi.c
717
if (rval == NDI_SUCCESS) {
usr/src/uts/common/os/sunndi.c
720
rval = NDI_FAULT;
usr/src/uts/common/os/sunndi.c
725
rval = ndi_devctl_device_remove(dip, dcp, flags);
usr/src/uts/common/os/sunndi.c
729
rval = ndi_dc_devi_create(dcp, dip, 0, NULL);
usr/src/uts/common/os/sunndi.c
748
rval = ENOTSUP;
usr/src/uts/common/os/sunndi.c
753
return (rval);
usr/src/uts/common/os/sunpm.c
7726
int rval = DDI_INTR_UNCLAIMED;
usr/src/uts/common/os/sunpm.c
7737
rval = DDI_INTR_CLAIMED;
usr/src/uts/common/os/sunpm.c
7741
return (rval);
usr/src/uts/common/os/swapgeneric.c
1013
rval = -1;
usr/src/uts/common/os/swapgeneric.c
1018
rval = -1;
usr/src/uts/common/os/swapgeneric.c
1023
return (rval);
usr/src/uts/common/os/swapgeneric.c
797
int rval = 0;
usr/src/uts/common/os/swapgeneric.c
815
rval = -1;
usr/src/uts/common/os/swapgeneric.c
825
return (rval);
usr/src/uts/common/os/swapgeneric.c
839
int rval;
usr/src/uts/common/os/swapgeneric.c
910
rval = load_boot_driver(leaf, NULL);
usr/src/uts/common/os/swapgeneric.c
911
if (rval == -1) {
usr/src/uts/common/os/swapgeneric.c
963
rval = load_parent_drivers(dip, pathcopy);
usr/src/uts/common/os/swapgeneric.c
965
return (rval);
usr/src/uts/common/os/swapgeneric.c
984
int rval = 0;
usr/src/uts/common/os/sysent.c
1110
int64_t rval;
usr/src/uts/common/os/sysent.c
1128
rval = (*sy->stsy_underlying)(arg0, arg1, arg2, arg3, arg4, arg5);
usr/src/uts/common/os/sysent.c
1131
rval = -1;
usr/src/uts/common/os/sysent.c
1134
(*systrace_probe)(id, (uintptr_t)rval, (uintptr_t)rval,
usr/src/uts/common/os/sysent.c
1135
(uintptr_t)((int64_t)rval >> 32), 0, 0, 0);
usr/src/uts/common/os/sysent.c
1137
return (rval);
usr/src/uts/common/os/sysent.c
1151
int64_t rval;
usr/src/uts/common/os/sysent.c
1169
rval = (*sy->stsy_underlying)(arg0, arg1, arg2, arg3, arg4, arg5);
usr/src/uts/common/os/sysent.c
1172
rval = -1;
usr/src/uts/common/os/sysent.c
1175
(*systrace_probe)(id, (uintptr_t)rval, (uintptr_t)rval,
usr/src/uts/common/os/sysent.c
1176
(uintptr_t)((uint64_t)rval >> 32), 0, 0, 0);
usr/src/uts/common/os/sysent.c
1178
return (rval);
usr/src/uts/common/os/watchpoint.c
690
int rval;
usr/src/uts/common/os/watchpoint.c
739
rval = ((ISSIG_FAST(curthread, lwp, p, FORREAL))? 0 : 1);
usr/src/uts/common/os/watchpoint.c
746
return (rval);
usr/src/uts/common/os/zone.c
1500
zone_shmmax_test(rctl_t *r, proc_t *p, rctl_entity_p_t *e, rctl_val_t *rval,
usr/src/uts/common/os/zone.c
1507
if (v > rval->rcv_value)
usr/src/uts/common/os/zone.c
1529
zone_shmmni_test(rctl_t *r, proc_t *p, rctl_entity_p_t *e, rctl_val_t *rval,
usr/src/uts/common/os/zone.c
1536
if (v > rval->rcv_value)
usr/src/uts/common/os/zone.c
1558
zone_semmni_test(rctl_t *r, proc_t *p, rctl_entity_p_t *e, rctl_val_t *rval,
usr/src/uts/common/os/zone.c
1565
if (v > rval->rcv_value)
usr/src/uts/common/os/zone.c
1587
zone_msgmni_test(rctl_t *r, proc_t *p, rctl_entity_p_t *e, rctl_val_t *rval,
usr/src/uts/common/os/zone.c
1594
if (v > rval->rcv_value)
usr/src/uts/common/sys/ddi_hp_impl.h
140
uintptr_t rval);
usr/src/uts/common/sys/fibre-channel/fca/emlxs/emlxs_mbox.h
289
uint8_t rval;
usr/src/uts/common/sys/fibre-channel/fca/emlxs/emlxs_mbox.h
294
uint8_t rval;
usr/src/uts/common/sys/fibre-channel/impl/fc_portif.h
423
intptr_t data, int mode, cred_t *credp, int *rval);
usr/src/uts/common/sys/fibre-channel/impl/fc_ulpif.h
129
int *rval, uint32_t claimed);
usr/src/uts/common/sys/fibre-channel/impl/fctl_private.h
715
fc_attach_cmd_t cmd, int rval);
usr/src/uts/common/sys/fibre-channel/impl/fctl_private.h
718
fc_detach_cmd_t cmd, int rval);
usr/src/uts/common/sys/fibre-channel/impl/fp.h
293
cred_t *credp, int *rval);
usr/src/uts/common/sys/gfx_private.h
107
cred_t *cred, int *rval, gfxp_fb_softc_ptr_t ptr);
usr/src/uts/common/sys/hotkey_drv.h
121
int *rval);
usr/src/uts/common/sys/hotkey_drv.h
123
int *rval);
usr/src/uts/common/sys/hotkey_drv.h
84
cred_t *cr, int *rval);
usr/src/uts/common/sys/systm.h
419
typedef union rval rval_t;
usr/src/uts/common/sys/usb/usba/usba10.h
199
int rval,
usr/src/uts/common/sys/usb/usba/usba10.h
212
int rval,
usr/src/uts/common/sys/usb/usba/usba10.h
232
int rval,
usr/src/uts/common/sys/usb/usba/usba10.h
286
int rval,
usr/src/uts/common/sys/usb/usba/usba10.h
305
int rval,
usr/src/uts/common/sys/usb/usba/usba10.h
388
void (*cb)(void *arg, int rval),
usr/src/uts/common/sys/usb/usba/usba10.h
397
void (*cb)(void *arg, int rval),
usr/src/uts/common/sys/usb/usba/usba10.h
507
usba10_usb_str_rval(int rval);
usr/src/uts/common/sys/usb/usba/usba10.h
510
usba10_usb_rval2errno(int rval);
usr/src/uts/common/sys/usb/usba/usba_impl.h
73
int rval,
usr/src/uts/common/sys/usb/usba/usbai_private.h
351
void (*cb)(void *arg, int rval),
usr/src/uts/common/sys/usb/usba/usbai_private.h
360
void (*cb)(void *arg, int rval),
usr/src/uts/common/sys/usb/usba/usbai_private.h
72
const char *usb_str_rval(int rval);
usr/src/uts/common/sys/usb/usba/usbai_private.h
75
int usb_rval2errno(int rval);
usr/src/uts/common/sys/usb/usbai.h
1159
int rval,
usr/src/uts/common/sys/usb/usbai.h
1201
int rval,
usr/src/uts/common/sys/usb/usbai.h
1238
int rval,
usr/src/uts/common/sys/usb/usbai.h
1705
int rval,
usr/src/uts/common/sys/usb/usbai.h
1755
int rval,
usr/src/uts/common/sys/usb/usbai.h
1818
int rval,
usr/src/uts/common/sys/zone.h
272
int rval; /* return value of request */
usr/src/uts/common/syscall/brandsys.c
39
int64_t rval = 0;
usr/src/uts/common/syscall/brandsys.c
49
if ((err = ZBROP(p->p_zone)->b_brandsys(cmd, &rval, arg1, arg2, arg3,
usr/src/uts/common/syscall/brandsys.c
53
return (rval);
usr/src/uts/common/syscall/pset.c
314
int rval;
usr/src/uts/common/syscall/pset.c
316
rval = pset_bind_thread(tp, pset, oldpset, projbuf,
usr/src/uts/common/syscall/pset.c
319
error = rval;
usr/src/uts/common/syscall/pset.c
342
int rval;
usr/src/uts/common/syscall/pset.c
345
rval = pset_bind_process(pp, pset, oldpset, projbuf,
usr/src/uts/common/syscall/pset.c
348
error = rval;
usr/src/uts/common/syscall/pset.c
368
int rval;
usr/src/uts/common/syscall/pset.c
370
rval = pset_bind_process(pp, pset, oldpset, projbuf,
usr/src/uts/common/syscall/pset.c
373
error = rval;
usr/src/uts/common/syscall/pset.c
391
int rval;
usr/src/uts/common/syscall/pset.c
393
rval = pset_bind_process(pp, pset, oldpset, projbuf,
usr/src/uts/common/syscall/pset.c
396
error = rval;
usr/src/uts/common/syscall/pset.c
413
int rval;
usr/src/uts/common/syscall/pset.c
438
rval = pset_bind_thread(tp, PS_NONE, &olbind,
usr/src/uts/common/syscall/pset.c
441
error = rval;
usr/src/uts/common/syscall/pset.c
460
int rval;
usr/src/uts/common/syscall/pset.c
462
rval = pset_bind_process(pp, pset, oldpset, projbuf,
usr/src/uts/common/syscall/pset.c
465
error = rval;
usr/src/uts/common/syscall/rctlsys.c
143
rctl_invalid_value(rctl_dict_entry_t *rde, rctl_val_t *rval)
usr/src/uts/common/syscall/rctlsys.c
147
if (rval->rcv_privilege != RCPRIV_BASIC &&
usr/src/uts/common/syscall/rctlsys.c
148
rval->rcv_privilege != RCPRIV_PRIVILEGED &&
usr/src/uts/common/syscall/rctlsys.c
149
rval->rcv_privilege != RCPRIV_SYSTEM)
usr/src/uts/common/syscall/rctlsys.c
152
if (rval->rcv_flagaction & ~RCTL_LOCAL_MASK)
usr/src/uts/common/syscall/rctlsys.c
155
if (rval->rcv_privilege == RCPRIV_BASIC &&
usr/src/uts/common/syscall/rctlsys.c
159
if ((rval->rcv_flagaction & RCTL_LOCAL_DENY) == 0 &&
usr/src/uts/common/syscall/rctlsys.c
163
if ((rval->rcv_flagaction & RCTL_LOCAL_DENY) &&
usr/src/uts/common/syscall/rctlsys.c
167
if ((rval->rcv_flagaction & RCTL_LOCAL_SIGNAL) &&
usr/src/uts/common/syscall/rctlsys.c
171
if ((rval->rcv_flagaction & RCTL_LOCAL_SIGNAL) &&
usr/src/uts/common/syscall/rctlsys.c
172
rval->rcv_action_signal == 0)
usr/src/uts/common/syscall/rctlsys.c
175
if (rval->rcv_action_signal == SIGXCPU &&
usr/src/uts/common/syscall/rctlsys.c
178
else if (rval->rcv_action_signal == SIGXFSZ &&
usr/src/uts/common/syscall/rctlsys.c
181
else if (rval->rcv_action_signal != SIGHUP &&
usr/src/uts/common/syscall/rctlsys.c
182
rval->rcv_action_signal != SIGABRT &&
usr/src/uts/common/syscall/rctlsys.c
183
rval->rcv_action_signal != SIGKILL &&
usr/src/uts/common/syscall/rctlsys.c
184
rval->rcv_action_signal != SIGTERM &&
usr/src/uts/common/syscall/rctlsys.c
185
rval->rcv_action_signal != SIGSTOP &&
usr/src/uts/common/syscall/rctlsys.c
186
rval->rcv_action_signal != SIGXCPU &&
usr/src/uts/common/syscall/rctlsys.c
187
rval->rcv_action_signal != SIGXFSZ &&
usr/src/uts/common/syscall/rctlsys.c
188
rval->rcv_action_signal != SIGXRES &&
usr/src/uts/common/syscall/rctlsys.c
189
rval->rcv_action_signal != 0) /* That is, no signal is ok. */
usr/src/uts/common/syscall/rctlsys.c
196
if (rval->rcv_value > sys_rval->rcv_value)
usr/src/uts/common/syscall/strcalls.c
187
msgio(int fdes, struct strbuf *ctl, struct strbuf *data, int *rval,
usr/src/uts/common/syscall/strcalls.c
245
*rval = rv.r_val1;
usr/src/uts/common/syscall/strcalls.c
287
int *rval, int mode, unsigned char *prip, int *flagsp);
usr/src/uts/common/syscall/strcalls.c
416
msgio32(int fdes, struct strbuf32 *ctl, struct strbuf32 *data, int *rval,
usr/src/uts/common/syscall/strcalls.c
483
*rval = rv.r_val1;
usr/src/uts/common/syscall/strcalls.c
57
static int msgio(int fdes, struct strbuf *ctl, struct strbuf *data, int *rval,
usr/src/uts/common/syscall/ucredsys.c
53
int32_t rval;
usr/src/uts/common/syscall/ucredsys.c
67
FKIOCTL, CRED(), &rval, NULL);
usr/src/uts/common/syscall/ucredsys.c
82
STR_NOSIG|K_TO_K, CRED(), &rval);
usr/src/uts/common/xen/io/xdf.c
1405
boolean_t rval = B_FALSE;
usr/src/uts/common/xen/io/xdf.c
1417
rval = B_TRUE;
usr/src/uts/common/xen/io/xdf.c
1420
return (rval);
usr/src/uts/common/xen/io/xenbus_xs.c
295
void **rval,
usr/src/uts/common/xen/io/xenbus_xs.c
348
if (rval != NULL)
usr/src/uts/common/xen/io/xenbus_xs.c
349
*rval = reply;
usr/src/uts/common/xen/io/xencons.c
1481
int rval = B_FALSE;
usr/src/uts/common/xen/io/xencons.c
1486
return (rval);
usr/src/uts/common/xen/io/xencons.c
1529
rval = B_TRUE;
usr/src/uts/common/xen/io/xencons.c
1535
return (rval);
usr/src/uts/common/xen/io/xencons.c
1540
return (rval);
usr/src/uts/common/xen/io/xpvtap.c
446
int *rval)
usr/src/uts/common/xen/io/xpvtap.c
58
cred_t *cred, int *rval);
usr/src/uts/i86pc/io/acpi/acpinex/acpinex_drv.c
399
int rval = DDI_SUCCESS;
usr/src/uts/i86pc/io/acpi/acpinex/acpinex_drv.c
403
rval = init_child((dev_info_t *)arg);
usr/src/uts/i86pc/io/acpi/acpinex/acpinex_drv.c
420
rval = ddi_ctlops(dip, rdip, op, arg, result);
usr/src/uts/i86pc/io/acpi/acpinex/acpinex_drv.c
424
return (rval);
usr/src/uts/i86pc/io/acpi_drv/acpi_drv.c
243
cred_t *cr, int *rval);
usr/src/uts/i86pc/io/acpi_drv/acpi_drv.c
247
cred_t *cr, int *rval);
usr/src/uts/i86pc/io/acpi_drv/acpi_drv.c
249
cred_t *cr, int *rval);
usr/src/uts/i86pc/io/acpi_drv/acpi_drv.c
251
cred_t *cr, int *rval);
usr/src/uts/i86pc/io/acpi_drv/acpi_drv.c
469
int *rval)
usr/src/uts/i86pc/io/acpi_drv/acpi_drv.c
483
res = acpi_drv_cbat_ioctl(index, cmd, arg, mode, cr, rval);
usr/src/uts/i86pc/io/acpi_drv/acpi_drv.c
486
res = acpi_drv_ac_ioctl(index, cmd, arg, mode, cr, rval);
usr/src/uts/i86pc/io/acpi_drv/acpi_drv.c
489
res = acpi_drv_lid_ioctl(index, cmd, arg, mode, cr, rval);
usr/src/uts/i86pc/io/acpi_drv/acpi_drv.c
492
res = acpi_drv_hotkey_ioctl(cmd, arg, mode, cr, rval);
usr/src/uts/i86pc/io/acpi_drv/acpi_drv.c
506
int *rval)
usr/src/uts/i86pc/io/acpi_drv/acpi_drv.c
639
int *rval)
usr/src/uts/i86pc/io/acpi_drv/acpi_drv.c
691
int *rval)
usr/src/uts/i86pc/io/acpi_drv/acpi_video.c
617
int *rval)
usr/src/uts/i86pc/io/acpi_drv/acpi_video.c
715
int *rval)
usr/src/uts/i86pc/io/acpi_drv/acpi_video.c
722
cr, rval));
usr/src/uts/i86pc/io/acpi_drv/acpi_video.c
725
return (htkp->vendor_ioctl(htkp, cmd, arg, mode, cr, rval));
usr/src/uts/i86pc/io/apix/apix.c
249
int rval;
usr/src/uts/i86pc/io/apix/apix.c
269
rval = apic_probe_common(apix_psm_info.p_mach_idstring);
usr/src/uts/i86pc/io/apix/apix.c
270
if (rval == PSM_SUCCESS)
usr/src/uts/i86pc/io/apix/apix.c
274
return (rval);
usr/src/uts/i86pc/io/gfx_private/gfxp_fb.c
454
cred_t *cred, int *rval, gfxp_fb_softc_ptr_t ptr)
usr/src/uts/i86pc/io/ioat/ioat_ioctl.c
60
ioat_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *cred, int *rval)
usr/src/uts/i86pc/io/isa.c
297
int rval;
usr/src/uts/i86pc/io/isa.c
319
if ((rval = i_dmae_init(devi)) == DDI_SUCCESS)
usr/src/uts/i86pc/io/isa.c
322
return (rval);
usr/src/uts/i86pc/io/isa.c
567
int rval;
usr/src/uts/i86pc/io/isa.c
631
rval = ddi_dma_mctl(dip, rdip, handle, request, offp,
usr/src/uts/i86pc/io/isa.c
634
return (rval);
usr/src/uts/i86pc/io/pci/pci_common.c
1531
uint8_t rval;
usr/src/uts/i86pc/io/pci/pci_common.c
1540
rval = (*pci_getb_func)(cfp->c_busnum, cfp->c_devnum, cfp->c_funcnum,
usr/src/uts/i86pc/io/pci/pci_common.c
1543
return (rval);
usr/src/uts/i86pc/io/pci/pci_common.c
1567
uint16_t rval;
usr/src/uts/i86pc/io/pci/pci_common.c
1576
rval = (*pci_getw_func)(cfp->c_busnum, cfp->c_devnum, cfp->c_funcnum,
usr/src/uts/i86pc/io/pci/pci_common.c
1579
return (rval);
usr/src/uts/i86pc/io/pci/pci_common.c
1603
uint32_t rval;
usr/src/uts/i86pc/io/pci/pci_common.c
1612
rval = (*pci_getl_func)(cfp->c_busnum, cfp->c_devnum,
usr/src/uts/i86pc/io/pci/pci_common.c
1615
return (rval);
usr/src/uts/i86pc/io/pci/pci_common.c
909
int rval;
usr/src/uts/i86pc/io/pci/pci_common.c
913
rval = pci_get_intr_from_vecirq(&intrinfo, vecirq, is_irq);
usr/src/uts/i86pc/io/pci/pci_common.c
915
if (rval == DDI_SUCCESS)
usr/src/uts/i86pc/io/pci/pci_tools.c
1088
int rval = 0;
usr/src/uts/i86pc/io/pci/pci_tools.c
1112
rval = EINVAL;
usr/src/uts/i86pc/io/pci/pci_tools.c
1124
rval = EINVAL;
usr/src/uts/i86pc/io/pci/pci_tools.c
1142
rval = EINVAL;
usr/src/uts/i86pc/io/pci/pci_tools.c
1146
rval = pcitool_cfg_access(&prg, write_flag, cfgspace_io);
usr/src/uts/i86pc/io/pci/pci_tools.c
1164
rval = pcitool_cfg_access(&cfg, B_FALSE, cfgspace_io);
usr/src/uts/i86pc/io/pci/pci_tools.c
1165
if (rval != 0) {
usr/src/uts/i86pc/io/pci/pci_tools.c
1190
rval = EINVAL;
usr/src/uts/i86pc/io/pci/pci_tools.c
1204
rval = pcitool_bar_find(prg.barnum - 1, bridge, cfgspace_io,
usr/src/uts/i86pc/io/pci/pci_tools.c
1206
if (rval != 0) {
usr/src/uts/i86pc/io/pci/pci_tools.c
1214
rval = pcitool_cfg_access(&cfg, B_FALSE, cfgspace_io);
usr/src/uts/i86pc/io/pci/pci_tools.c
1215
if (rval != 0) {
usr/src/uts/i86pc/io/pci/pci_tools.c
1222
rval = EIO;
usr/src/uts/i86pc/io/pci/pci_tools.c
1228
rval = EIO;
usr/src/uts/i86pc/io/pci/pci_tools.c
125
int rval = SUCCESS;
usr/src/uts/i86pc/io/pci/pci_tools.c
1255
rval = EIO;
usr/src/uts/i86pc/io/pci/pci_tools.c
1261
rval = pcitool_io_access(&prg, write_flag);
usr/src/uts/i86pc/io/pci/pci_tools.c
1268
rval = EIO;
usr/src/uts/i86pc/io/pci/pci_tools.c
1272
rval = pcitool_mem_access(&prg, va, write_flag);
usr/src/uts/i86pc/io/pci/pci_tools.c
1280
rval = EFAULT;
usr/src/uts/i86pc/io/pci/pci_tools.c
1283
return (rval);
usr/src/uts/i86pc/io/pci/pci_tools.c
146
rval = ENOTSUP;
usr/src/uts/i86pc/io/pci/pci_tools.c
151
rval = ENOTSUP;
usr/src/uts/i86pc/io/pci/pci_tools.c
160
rval = ENOTSUP;
usr/src/uts/i86pc/io/pci/pci_tools.c
167
rval = EINVAL;
usr/src/uts/i86pc/io/pci/pci_tools.c
176
rval = EINVAL;
usr/src/uts/i86pc/io/pci/pci_tools.c
182
rval = EINVAL;
usr/src/uts/i86pc/io/pci/pci_tools.c
219
rval = EIO;
usr/src/uts/i86pc/io/pci/pci_tools.c
223
rval = EINVAL;
usr/src/uts/i86pc/io/pci/pci_tools.c
227
rval = EINVAL;
usr/src/uts/i86pc/io/pci/pci_tools.c
231
rval = ENOTSUP;
usr/src/uts/i86pc/io/pci/pci_tools.c
248
rval = EFAULT;
usr/src/uts/i86pc/io/pci/pci_tools.c
249
return (rval);
usr/src/uts/i86pc/io/pci/pci_tools.c
273
int rval = SUCCESS;
usr/src/uts/i86pc/io/pci/pci_tools.c
287
rval = ENOTSUP;
usr/src/uts/i86pc/io/pci/pci_tools.c
297
rval = EINVAL;
usr/src/uts/i86pc/io/pci/pci_tools.c
305
rval = EINVAL;
usr/src/uts/i86pc/io/pci/pci_tools.c
315
rval = EINVAL;
usr/src/uts/i86pc/io/pci/pci_tools.c
372
if ((rval = (*psm_intr_ops)(NULL, &info_hdl,
usr/src/uts/i86pc/io/pci/pci_tools.c
376
rval = EINVAL;
usr/src/uts/i86pc/io/pci/pci_tools.c
429
rval = EFAULT;
usr/src/uts/i86pc/io/pci/pci_tools.c
431
return (rval);
usr/src/uts/i86pc/io/pci/pci_tools.c
440
int rval = SUCCESS;
usr/src/uts/i86pc/io/pci/pci_tools.c
457
if ((rval = (*psm_intr_ops)(NULL, &info_hdl,
usr/src/uts/i86pc/io/pci/pci_tools.c
484
rval = EFAULT;
usr/src/uts/i86pc/io/pci/pci_tools.c
487
return (rval);
usr/src/uts/i86pc/io/pci/pci_tools.c
499
int rval;
usr/src/uts/i86pc/io/pci/pci_tools.c
505
rval = pcitool_set_intr(dip, arg, mode);
usr/src/uts/i86pc/io/pci/pci_tools.c
509
rval = pcitool_get_intr(dip, arg, mode);
usr/src/uts/i86pc/io/pci/pci_tools.c
513
rval = pcitool_intr_info(dip, arg, mode);
usr/src/uts/i86pc/io/pci/pci_tools.c
517
rval = ENOTSUP;
usr/src/uts/i86pc/io/pci/pci_tools.c
520
return (rval);
usr/src/uts/i86pc/io/pci/pci_tools.c
575
int rval = SUCCESS;
usr/src/uts/i86pc/io/pci/pci_tools.c
660
return (rval);
usr/src/uts/i86pc/io/pci/pci_tools.c
669
volatile int rval = SUCCESS;
usr/src/uts/i86pc/io/pci/pci_tools.c
713
rval = ENOTSUP;
usr/src/uts/i86pc/io/pci/pci_tools.c
733
rval = ENOTSUP;
usr/src/uts/i86pc/io/pci/pci_tools.c
738
if (rval == SUCCESS) {
usr/src/uts/i86pc/io/pci/pci_tools.c
749
return (rval);
usr/src/uts/i86pc/io/pci/pci_tools.c
757
volatile int rval = DDI_SUCCESS;
usr/src/uts/i86pc/io/pci/pci_tools.c
799
rval = ENOTSUP;
usr/src/uts/i86pc/io/pci/pci_tools.c
818
rval = ENOTSUP;
usr/src/uts/i86pc/io/pci/pci_tools.c
823
if (rval == SUCCESS) {
usr/src/uts/i86pc/io/pci/pci_tools.c
834
return (rval);
usr/src/uts/i86pc/io/pciex/npe_misc.c
286
int rval = DDI_SUCCESS;
usr/src/uts/i86pc/io/pciex/npe_misc.c
306
rval = DDI_FAILURE;
usr/src/uts/i86pc/io/pciex/npe_misc.c
312
rval = DDI_FAILURE;
usr/src/uts/i86pc/io/pciex/npe_misc.c
319
return (rval);
usr/src/uts/i86pc/io/pciex/npe_misc.c
326
int rval = DDI_SUCCESS;
usr/src/uts/i86pc/io/pciex/npe_misc.c
336
rval = DDI_FAILURE;
usr/src/uts/i86pc/io/pciex/npe_misc.c
340
return (rval);
usr/src/uts/i86pc/io/xsvc/xsvc.c
409
xsvc_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *cred, int *rval)
usr/src/uts/i86pc/io/xsvc/xsvc.c
57
int *rval);
usr/src/uts/i86pc/os/ddi_impl.c
2398
int rval = DDI_SUCCESS;
usr/src/uts/i86pc/os/ddi_impl.c
2470
rval = DDI_FAILURE;
usr/src/uts/i86pc/os/ddi_impl.c
2475
return (rval);
usr/src/uts/i86pc/os/ddi_impl.c
2486
int rval = DDI_SUCCESS;
usr/src/uts/i86pc/os/ddi_impl.c
2493
return (rval);
usr/src/uts/i86pc/os/ddi_impl.c
2499
rval = DDI_FAILURE;
usr/src/uts/i86pc/os/ddi_impl.c
2503
rval = DDI_FAILURE;
usr/src/uts/i86pc/os/ddi_impl.c
2507
rval = DDI_FAILURE;
usr/src/uts/i86pc/os/ddi_impl.c
2512
rval = DDI_FAILURE;
usr/src/uts/i86pc/os/ddi_impl.c
2517
rval == DDI_FAILURE) {
usr/src/uts/i86pc/os/ddi_impl.c
2523
return (rval);
usr/src/uts/i86pc/os/ddi_impl.c
2533
int rval;
usr/src/uts/i86pc/os/ddi_impl.c
2555
rval = handler(dip, rdip, ctlop, arg, result);
usr/src/uts/i86pc/os/ddi_impl.c
2556
if (rval == DDI_SUCCESS)
usr/src/uts/i86pc/os/ddi_impl.c
2557
rval = pci_peekpoke_check_nofma(arg, ctlop);
usr/src/uts/i86pc/os/ddi_impl.c
2558
return (rval);
usr/src/uts/i86pc/os/ddi_impl.c
2569
rval = handler(dip, rdip, ctlop, arg, result);
usr/src/uts/i86pc/os/ddi_impl.c
2570
if (rval == DDI_SUCCESS) {
usr/src/uts/i86pc/os/ddi_impl.c
2572
rval = pci_peekpoke_check_fma(dip, arg, ctlop, scan);
usr/src/uts/i86pc/os/ddi_impl.c
2576
return (rval);
usr/src/uts/i86pc/os/dtrace_subr.c
52
int rval;
usr/src/uts/i86pc/os/dtrace_subr.c
55
if ((rval = hdlr->dtih_func(addr, stack, eax)) != 0)
usr/src/uts/i86pc/os/dtrace_subr.c
56
return (rval);
usr/src/uts/i86pc/os/pci_bios.c
122
rval = n;
usr/src/uts/i86pc/os/pci_bios.c
125
return (rval);
usr/src/uts/i86pc/os/pci_bios.c
76
int rval = 0;
usr/src/uts/i86pc/sys/ioat.h
330
int *rval);
usr/src/uts/i86xpv/io/balloon_drv.c
110
int rval = 0;
usr/src/uts/i86xpv/io/balloon_drv.c
125
rval = EINVAL;
usr/src/uts/i86xpv/io/balloon_drv.c
128
return (rval);
usr/src/uts/i86xpv/io/privcmd.c
273
privcmd_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *cr, int *rval)
usr/src/uts/i86xpv/io/privcmd.c
286
return (do_privcmd_hypercall((void *)arg, mode, cr, rval));
usr/src/uts/i86xpv/io/privcmd_hcall.c
1175
do_privcmd_hypercall(void *uarg, int mode, cred_t *cr, int *rval)
usr/src/uts/i86xpv/io/privcmd_hcall.c
1243
*rval = error;
usr/src/uts/intel/dtrace/fbt.c
128
rval, 0, 0, 0);
usr/src/uts/intel/dtrace/fbt.c
78
fbt_invop(uintptr_t addr, uintptr_t *stack, uintptr_t rval)
usr/src/uts/intel/io/dktp/controller/ata/ata_common.c
3850
int mode, rval = FALSE;
usr/src/uts/intel/io/dktp/controller/ata/ata_common.c
3857
return (rval);
usr/src/uts/intel/io/dktp/controller/ata/ata_common.c
3863
return (rval);
usr/src/uts/intel/io/dktp/controller/ata/ata_common.c
3883
return (rval);
usr/src/uts/intel/io/dktp/controller/ata/ata_common.c
3886
rval = ata_set_feature(ata_ctlp, ata_drvp, ATSF_SET_XFRMOD,
usr/src/uts/intel/io/dktp/controller/ata/ata_common.c
3889
return (rval);
usr/src/uts/intel/io/dktp/controller/ata/atapi.c
520
int rval = -1;
usr/src/uts/intel/io/dktp/controller/ata/atapi.c
531
rval = TRUE;
usr/src/uts/intel/io/dktp/controller/ata/atapi.c
535
rval = 7;
usr/src/uts/intel/io/dktp/controller/ata/atapi.c
541
rval = 4096 * (ATA_DMA_NSEGS - 1);
usr/src/uts/intel/io/dktp/controller/ata/atapi.c
547
rval = ATAPI_HEADS << 16 | ATAPI_SECTORS_PER_TRK;
usr/src/uts/intel/io/dktp/controller/ata/atapi.c
573
rval = ATAPI_HEADS << 16 | ATAPI_SECTORS_PER_TRK;
usr/src/uts/intel/io/dktp/controller/ata/atapi.c
577
rval = (ata_idp->ai_curheads << 16) |
usr/src/uts/intel/io/dktp/controller/ata/atapi.c
581
rval = 0;
usr/src/uts/intel/io/dktp/controller/ata/atapi.c
586
return (rval);
usr/src/uts/intel/io/dktp/controller/ata/sil3xxx.h
84
#define GET_BAR5_INDIRECT(handle, address, rval) \
usr/src/uts/intel/io/dktp/controller/ata/sil3xxx.h
87
rval = pci_config_get32(handle, PCI_CONF_BA5_IND_ACCESS); \
usr/src/uts/intel/io/dktp/disk/cmdk.c
1645
int rval;
usr/src/uts/intel/io/dktp/disk/cmdk.c
1660
&rval) != 0)
usr/src/uts/intel/io/dktp/disk/cmdk.c
246
int rval;
usr/src/uts/intel/io/dktp/disk/cmdk.c
248
if (rval = ddi_soft_state_init(&cmdk_state, sizeof (struct cmdk), 7))
usr/src/uts/intel/io/dktp/disk/cmdk.c
249
return (rval);
usr/src/uts/intel/io/dktp/disk/cmdk.c
252
if ((rval = mod_install(&modlinkage)) != 0) {
usr/src/uts/intel/io/dktp/disk/cmdk.c
256
return (rval);
usr/src/uts/intel/io/dktp/disk/cmdk.c
902
int rval;
usr/src/uts/intel/io/dktp/disk/cmdk.c
910
if (rval = dadk_check_media(DKTP_DATA, &state))
usr/src/uts/intel/io/dktp/disk/cmdk.c
911
return (rval);
usr/src/uts/intel/io/dma_engine.c
224
int rval;
usr/src/uts/intel/io/dma_engine.c
229
rval = d37A_prog_chan(dmaereqp, cp, chnl);
usr/src/uts/intel/io/dma_engine.c
230
if (rval != DDI_SUCCESS) {
usr/src/uts/intel/io/dma_engine.c
244
return (rval);
usr/src/uts/intel/io/dma_engine.c
263
int rval;
usr/src/uts/intel/io/dma_engine.c
268
rval = d37A_dma_swsetup(dmaereqp, cp, chnl);
usr/src/uts/intel/io/dma_engine.c
269
if (rval != DDI_SUCCESS) {
usr/src/uts/intel/io/dma_engine.c
280
return (rval);
usr/src/uts/intel/io/ecpp.c
5060
uchar_t rval = FAILURE;
usr/src/uts/intel/io/ecpp.c
5089
rval = read_nibble_backchan(pp);
usr/src/uts/intel/io/ecpp.c
5142
return (rval);
usr/src/uts/intel/io/ecpp.c
5159
int rval = SUCCESS;
usr/src/uts/intel/io/ecpp.c
5172
while (pp->current_phase == ECPP_PHASE_NIBT_AVAIL && rval == SUCCESS) {
usr/src/uts/intel/io/ecpp.c
5190
rval = FAILURE;
usr/src/uts/intel/io/ecpp.c
5213
return (rval);
usr/src/uts/intel/io/ecpp.c
6107
uint32_t rval;
usr/src/uts/intel/io/ecpp.c
6146
rval = rval16 | (rval3 << 16) | (rval4 <<24);
usr/src/uts/intel/io/ecpp.c
6148
return (rval);
usr/src/uts/intel/io/fdc.c
1078
int rval;
usr/src/uts/intel/io/fdc.c
1106
if (rval = fdc_exec(fcp, 1, execflg))
usr/src/uts/intel/io/fdc.c
1113
rval = ENODEV;
usr/src/uts/intel/io/fdc.c
1118
return (rval);
usr/src/uts/intel/io/fdc.c
1133
int rval;
usr/src/uts/intel/io/fdc.c
1178
rval = EINVAL;
usr/src/uts/intel/io/fdc.c
1187
rval = ddi_dma_mem_alloc(csb->csb_dmahandle, len, &fdc_accattr,
usr/src/uts/intel/io/fdc.c
1190
if (rval != DDI_SUCCESS) {
usr/src/uts/intel/io/fdc.c
1191
rval = EINVAL;
usr/src/uts/intel/io/fdc.c
1199
rval = ddi_dma_addr_bind_handle(csb->csb_dmahandle, NULL, aligned_buf,
usr/src/uts/intel/io/fdc.c
1203
if (rval == DDI_DMA_MAPPED) {
usr/src/uts/intel/io/fdc.c
1206
} else if (rval == DDI_DMA_PARTIAL_MAP) {
usr/src/uts/intel/io/fdc.c
1211
rval = EINVAL;
usr/src/uts/intel/io/fdc.c
1216
"fdrw: dma addr bind handle failed, rval = %d", rval);
usr/src/uts/intel/io/fdc.c
1217
rval = EINVAL;
usr/src/uts/intel/io/fdc.c
1220
rval = fdc_exec(fcp, 1, 1);
usr/src/uts/intel/io/fdc.c
1241
return (rval);
usr/src/uts/intel/io/fdc.c
1254
int rval;
usr/src/uts/intel/io/fdc.c
1297
rval = EINVAL;
usr/src/uts/intel/io/fdc.c
1306
rval = ddi_dma_mem_alloc(csb->csb_dmahandle, fmdatlen, &fdc_accattr,
usr/src/uts/intel/io/fdc.c
1309
if (rval != DDI_SUCCESS) {
usr/src/uts/intel/io/fdc.c
1310
rval = EINVAL;
usr/src/uts/intel/io/fdc.c
1327
rval = ddi_dma_addr_bind_handle(csb->csb_dmahandle, NULL, aligned_buf,
usr/src/uts/intel/io/fdc.c
1331
if (rval == DDI_DMA_MAPPED) {
usr/src/uts/intel/io/fdc.c
1334
} else if (rval == DDI_DMA_PARTIAL_MAP) {
usr/src/uts/intel/io/fdc.c
1339
rval = EINVAL;
usr/src/uts/intel/io/fdc.c
1345
rval);
usr/src/uts/intel/io/fdc.c
1346
rval = EINVAL;
usr/src/uts/intel/io/fdc.c
1350
rval = fdc_exec(fcp, 1, 1);
usr/src/uts/intel/io/fdc.c
1366
return (rval);
usr/src/uts/intel/io/fdc.c
1379
int rval = 0;
usr/src/uts/intel/io/fdc.c
1467
rval = EINVAL;
usr/src/uts/intel/io/fdc.c
1476
rval = ddi_dma_mem_alloc(csb->csb_dmahandle,
usr/src/uts/intel/io/fdc.c
1479
if (rval != DDI_SUCCESS) {
usr/src/uts/intel/io/fdc.c
1480
rval = EINVAL;
usr/src/uts/intel/io/fdc.c
1490
rval = ddi_dma_addr_bind_handle(csb->csb_dmahandle, NULL,
usr/src/uts/intel/io/fdc.c
1495
if (rval == DDI_DMA_MAPPED) {
usr/src/uts/intel/io/fdc.c
1498
} else if (rval == DDI_DMA_PARTIAL_MAP) {
usr/src/uts/intel/io/fdc.c
1504
rval = EINVAL;
usr/src/uts/intel/io/fdc.c
1509
"dma buf bind handle failed, rval = %d", rval);
usr/src/uts/intel/io/fdc.c
1510
rval = EINVAL;
usr/src/uts/intel/io/fdc.c
1571
return (rval);
usr/src/uts/intel/io/fdc.c
1748
int rval;
usr/src/uts/intel/io/fdc.c
1756
if (rval = fdc_result(fcp, &senser, 1))
usr/src/uts/intel/io/fdc.c
1763
return (rval);
usr/src/uts/intel/io/fdc.c
1770
int rval;
usr/src/uts/intel/io/fdc.c
1778
if (!(rval = fdc_result(fcp, senser, 2))) {
usr/src/uts/intel/io/fdc.c
1780
rval = 1;
usr/src/uts/intel/io/fdc.c
1786
return (rval);
usr/src/uts/intel/io/fdc.c
1934
int rval = 0;
usr/src/uts/intel/io/fdc.c
1961
rval = -1;
usr/src/uts/intel/io/fdc.c
1966
rval = -2;
usr/src/uts/intel/io/fdc.c
1993
rval = -2;
usr/src/uts/intel/io/fdc.c
2035
rval = -2;
usr/src/uts/intel/io/fdc.c
2040
rval = -3;
usr/src/uts/intel/io/fdc.c
2042
if (rval) {
usr/src/uts/intel/io/fdc.c
2063
return (rval);
usr/src/uts/intel/io/fdc.c
2375
int rval;
usr/src/uts/intel/io/fdc.c
2409
if (rval = fdcseek(fcp, unit, newcyl)) {
usr/src/uts/intel/io/fdc.c
2414
(CE_WARN, "fdcheckdisk err %d", rval));
usr/src/uts/intel/io/fdc.c
2429
if (rval = fdcsense_chng(fcp, unit)) {
usr/src/uts/intel/io/fdc.c
2438
return (rval);
usr/src/uts/intel/io/fdc.c
2605
int rval = DDI_DMA_DONE;
usr/src/uts/intel/io/fdc.c
2723
if (rval != DDI_DMA_DONE)
usr/src/uts/intel/io/fdc.c
435
int rval;
usr/src/uts/intel/io/fdc.c
443
rval = DDI_SUCCESS;
usr/src/uts/intel/io/fdc.c
446
rval = DDI_FAILURE;
usr/src/uts/intel/io/fdc.c
451
rval = DDI_SUCCESS;
usr/src/uts/intel/io/fdc.c
454
rval = DDI_FAILURE;
usr/src/uts/intel/io/fdc.c
456
return (rval);
usr/src/uts/intel/io/fdc.c
848
int rval = 0;
usr/src/uts/intel/io/fdc.c
859
rval = EBUSY;
usr/src/uts/intel/io/fdc.c
905
rval = DDI_SUCCESS;
usr/src/uts/intel/io/fdc.c
909
rval = EINVAL;
usr/src/uts/intel/io/fdc.c
912
return (rval);
usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c
3781
int rval, i, j;
usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c
3826
rval = PCICFG_FAILURE;
usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c
3831
rval = PCICFG_FAILURE;
usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c
3836
rval = PCICFG_FAILURE;
usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c
3843
rval = PCICFG_FAILURE;
usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c
3856
rval = ndi_ra_alloc(ddi_get_parent(new_child), &req,
usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c
3859
if (rval != NDI_SUCCESS) {
usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c
3860
if (rval == NDI_RA_PARTIAL_REQ) {
usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c
3866
rval = PCICFG_NORESRC;
usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c
3907
rval = ndi_ra_alloc(ddi_get_parent(new_child), &req,
usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c
3910
if (rval != NDI_SUCCESS) {
usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c
3911
if (rval == NDI_RA_PARTIAL_REQ) {
usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c
3917
rval = PCICFG_NORESRC;
usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c
3945
rval = ndi_ra_alloc(ddi_get_parent(new_child), &req, &io_answer,
usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c
3948
if (rval != NDI_SUCCESS) {
usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c
3949
if (rval == NDI_RA_PARTIAL_REQ) {
usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c
4003
rval = ndi_ra_alloc(ddi_get_parent(new_child), &req,
usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c
4007
if (rval != NDI_SUCCESS) {
usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c
4008
if (rval == NDI_RA_PARTIAL_REQ) {
usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c
4212
rval = PCICFG_FAILURE;
usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c
4223
rval = PCICFG_FAILURE;
usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c
4249
if ((rval = pcicfg_probe_children(new_child,
usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c
4252
if (rval == PCICFG_NODEVICE) {
usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c
4315
if (rval != PCICFG_NODEVICE)
usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c
4578
rval = PCICFG_SUCCESS;
usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c
4584
if (rval != PCICFG_SUCCESS) {
usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c
4607
return (rval);
usr/src/uts/intel/io/pci/pci_boot.c
459
int rval;
usr/src/uts/intel/io/pci/pci_boot.c
467
rval = nvlist_alloc(&nvl, NV_UNIQUE_NAME, KM_SLEEP);
usr/src/uts/intel/io/pci/pci_boot.c
468
if (rval != DDI_SUCCESS) {
usr/src/uts/intel/io/pci/pci_boot.c
470
nvf_cache_name(hdl), rval);
usr/src/uts/intel/io/pci/pci_boot.c
475
rval = nvlist_alloc(&sub_nvl, NV_UNIQUE_NAME, KM_SLEEP);
usr/src/uts/intel/io/pci/pci_boot.c
476
if (rval != DDI_SUCCESS)
usr/src/uts/intel/io/pci/pci_boot.c
483
rval = nvlist_add_int32(sub_nvl, buf, pua->pua_addr);
usr/src/uts/intel/io/pci/pci_boot.c
484
if (rval != DDI_SUCCESS)
usr/src/uts/intel/io/pci/pci_boot.c
488
rval = nvlist_add_nvlist(nvl, "table", sub_nvl);
usr/src/uts/intel/io/pci/pci_boot.c
489
if (rval != DDI_SUCCESS)
usr/src/uts/intel/io/scsi/adapters/arcmsr/arcmsr.c
1416
int rval;
usr/src/uts/intel/io/scsi/adapters/arcmsr/arcmsr.c
1427
rval = NDI_FAILURE;
usr/src/uts/intel/io/scsi/adapters/arcmsr/arcmsr.c
1432
rval = arcmsr_config_lun(acb, tgt, lun, childp);
usr/src/uts/intel/io/scsi/adapters/arcmsr/arcmsr.c
1447
rval = NDI_SUCCESS;
usr/src/uts/intel/io/scsi/adapters/arcmsr/arcmsr.c
1450
if (rval == NDI_SUCCESS)
usr/src/uts/intel/io/scsi/adapters/arcmsr/arcmsr.c
1451
rval = ndi_busop_bus_config(parent, flags, op, arg, childp, 0);
usr/src/uts/intel/io/scsi/adapters/arcmsr/arcmsr.c
1453
return (rval);
usr/src/uts/intel/io/scsi/adapters/arcmsr/arcmsr.c
2310
int rval;
usr/src/uts/intel/io/scsi/adapters/arcmsr/arcmsr.c
2317
rval = NDI_FAILURE;
usr/src/uts/intel/io/scsi/adapters/arcmsr/arcmsr.c
2321
rval = ndi_devi_alloc(acb->dev_info, nodename, DEVI_SID_NODEID, &ldip);
usr/src/uts/intel/io/scsi/adapters/arcmsr/arcmsr.c
2322
if (rval == NDI_SUCCESS) {
usr/src/uts/intel/io/scsi/adapters/arcmsr/arcmsr.c
2328
rval = NDI_FAILURE;
usr/src/uts/intel/io/scsi/adapters/arcmsr/arcmsr.c
2336
rval = NDI_FAILURE;
usr/src/uts/intel/io/scsi/adapters/arcmsr/arcmsr.c
2345
rval = NDI_FAILURE;
usr/src/uts/intel/io/scsi/adapters/arcmsr/arcmsr.c
2348
rval = ndi_devi_online(ldip, NDI_ONLINE_ATTACH);
usr/src/uts/intel/io/scsi/adapters/arcmsr/arcmsr.c
2349
if (rval != NDI_SUCCESS) {
usr/src/uts/intel/io/scsi/adapters/arcmsr/arcmsr.c
2362
return (rval);
usr/src/uts/intel/io/scsi/adapters/arcmsr/arcmsr.c
2370
int rval;
usr/src/uts/intel/io/scsi/adapters/arcmsr/arcmsr.c
2383
rval = scsi_hba_probe(&sd, NULL);
usr/src/uts/intel/io/scsi/adapters/arcmsr/arcmsr.c
2384
if (rval == SCSIPROBE_EXISTS)
usr/src/uts/intel/io/scsi/adapters/arcmsr/arcmsr.c
2385
rval = arcmsr_config_child(acb, &sd, ldip);
usr/src/uts/intel/io/scsi/adapters/arcmsr/arcmsr.c
2387
return (rval);
usr/src/uts/intel/io/scsi/adapters/arcmsr/arcmsr.c
3247
int rval;
usr/src/uts/intel/io/scsi/adapters/arcmsr/arcmsr.c
3254
rval = scsi_hba_probe(&sd, NULL);
usr/src/uts/intel/io/scsi/adapters/arcmsr/arcmsr.c
3255
if (rval == SCSIPROBE_EXISTS) {
usr/src/uts/intel/io/scsi/adapters/arcmsr/arcmsr.c
3256
rval = ndi_devi_online(child, NDI_ONLINE_ATTACH);
usr/src/uts/intel/io/scsi/adapters/arcmsr/arcmsr.c
3257
if (rval != NDI_SUCCESS) {
usr/src/uts/intel/io/scsi/adapters/arcmsr/arcmsr.c
3266
rval = scsi_hba_probe(&sd, NULL);
usr/src/uts/intel/io/scsi/adapters/arcmsr/arcmsr.c
3267
if (rval == SCSIPROBE_EXISTS)
usr/src/uts/intel/io/scsi/adapters/arcmsr/arcmsr.c
3268
rval = arcmsr_config_child(acb, &sd, NULL);
usr/src/uts/intel/io/scsi/adapters/arcmsr/arcmsr.c
3271
return (rval);
usr/src/uts/intel/io/ucode_drv.c
137
ucode_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *cr, int *rval)
usr/src/uts/intel/io/vgatext/vgatext.c
356
int *rval)
usr/src/uts/intel/io/vgatext/vgatext.c
363
err = gfxp_fb_ioctl(dev, cmd, data, mode, cred, rval,
usr/src/uts/intel/io/viona/viona_main.c
342
cred_t *credp, int *rval);
usr/src/uts/intel/io/vmm/io/vhpet.c
615
vhpet_mmio_read(struct vm *vm, int vcpuid, uint64_t gpa, uint64_t *rval,
usr/src/uts/intel/io/vmm/io/vhpet.c
688
*rval = data;
usr/src/uts/intel/io/vmm/io/vioapic.c
371
vioapic_mmio_read(struct vm *vm, int vcpuid, uint64_t gpa, uint64_t *rval,
usr/src/uts/intel/io/vmm/io/vioapic.c
378
error = vioapic_mmio_rw(vioapic, vcpuid, gpa, rval, size, true);
usr/src/uts/intel/io/vmm/io/vioapic.h
60
int vioapic_mmio_read(struct vm *vm, int vcpuid, uint64_t gpa, uint64_t *rval,
usr/src/uts/intel/io/vmm/sys/vmm_kernel.h
224
int vm_service_mmio_read(struct vm *vm, int cpuid, uint64_t gpa, uint64_t *rval,
usr/src/uts/intel/io/vmm/vmm.c
1682
vm_service_mmio_read(struct vm *vm, int cpuid, uint64_t gpa, uint64_t *rval,
usr/src/uts/intel/io/vmm/vmm.c
1690
err = vlapic_mmio_read(vlapic, gpa, rval, rsize);
usr/src/uts/intel/io/vmm/vmm.c
1692
err = vioapic_mmio_read(vm, cpuid, gpa, rval, rsize);
usr/src/uts/intel/io/vmm/vmm.c
1694
err = vhpet_mmio_read(vm, cpuid, gpa, rval, rsize);
usr/src/uts/intel/io/vmm/vmm.c
1702
rval);
usr/src/uts/intel/io/vmm/vmm_instruction_emul.c
2236
uint64_t *rval, int bytes)
usr/src/uts/intel/io/vmm/vmm_instruction_emul.c
2244
*rval = vie->mmio_req_read.data;
usr/src/uts/intel/io/vmm/vmm_instruction_emul.c
2248
err = vm_service_mmio_read(vm, cpuid, gpa, rval, bytes);
usr/src/uts/intel/io/vmm/vmm_instruction_emul.c
2260
vie->mmio_req_read.data = *rval;
usr/src/uts/intel/io/vmm/vmm_instruction_emul.c
474
uint64_t gpa, uint64_t *rval, int bytes);
usr/src/uts/intel/io/vmm/vmm_instruction_emul.c
539
vie_read_bytereg(struct vie *vie, struct vm *vm, int vcpuid, uint8_t *rval)
usr/src/uts/intel/io/vmm/vmm_instruction_emul.c
553
*rval = val >> 8;
usr/src/uts/intel/io/vmm/vmm_instruction_emul.c
555
*rval = val;
usr/src/uts/intel/io/vmm/vmm_lapic.h
50
int lapic_rdmsr(struct vm *vm, int cpu, uint_t msr, uint64_t *rval);
usr/src/uts/intel/io/vmm/vmm_lapic.h
53
int lapic_mmio_read(struct vm *vm, int cpu, uint64_t gpa, uint64_t *rval,
usr/src/uts/intel/os/syscall.c
1073
rval_t rval;
usr/src/uts/intel/os/syscall.c
1087
rval.r_val1 = 0;
usr/src/uts/intel/os/syscall.c
1088
rval.r_val2 = rp->r_r1;
usr/src/uts/intel/os/syscall.c
1090
error = (*(callp->sy_call))(lwp->lwp_ap, &rval);
usr/src/uts/intel/os/syscall.c
1093
return (rval.r_vals);
usr/src/uts/intel/os/syscall.c
1168
int64_t rval;
usr/src/uts/intel/os/syscall.c
1189
rval = (int64_t)(*callp->sy_call)(a0, a1, a2, a3,
usr/src/uts/intel/os/syscall.c
1192
rval = syscall_ap();
usr/src/uts/intel/os/syscall.c
1202
rval = set_errno(error);
usr/src/uts/intel/os/syscall.c
1204
rval = (int64_t)(*callp->sy_call)(lwp->lwp_ap[0],
usr/src/uts/intel/os/syscall.c
1208
rval = syscall_ap();
usr/src/uts/intel/os/syscall.c
1213
return (rval);
usr/src/uts/intel/os/syscall.c
462
rval_t rval;
usr/src/uts/intel/os/syscall.c
465
rval.r_val1 = (int)rval1;
usr/src/uts/intel/os/syscall.c
466
rval.r_val2 = (int)rval2;
usr/src/uts/intel/os/syscall.c
467
audit_finish(T_SYSCALL, code, error, &rval);
usr/src/uts/intel/syscall/lwp_private.c
103
rval = pcb->pcb_gs = 0; /* null gdt descriptor */
usr/src/uts/intel/syscall/lwp_private.c
107
rval = pcb->pcb_gs = LWPGS_SEL;
usr/src/uts/intel/syscall/lwp_private.c
115
rval = -1;
usr/src/uts/intel/syscall/lwp_private.c
121
return (rval);
usr/src/uts/intel/syscall/lwp_private.c
46
int rval;
usr/src/uts/intel/syscall/lwp_private.c
88
rval = pcb->pcb_fs = 0; /* null gdt descriptor */
usr/src/uts/intel/syscall/lwp_private.c
92
rval = pcb->pcb_fs = LWPFS_SEL;
usr/src/uts/sfmmu/vm/hat_sfmmu.h
327
#define SF_RGNMAP_EQUAL(map1, map2, rval) { \
usr/src/uts/sfmmu/vm/hat_sfmmu.h
334
rval = 0; \
usr/src/uts/sfmmu/vm/hat_sfmmu.h
336
rval = 1; \
usr/src/uts/sfmmu/vm/hat_sfmmu.h
347
#define SF_RGNMAP_IS_SUBSET(map1, map2, rval) { \
usr/src/uts/sfmmu/vm/hat_sfmmu.h
356
rval = 0; \
usr/src/uts/sfmmu/vm/hat_sfmmu.h
358
rval = 1; \
usr/src/uts/sparc/dtrace/dtrace_isa.c
648
uint64_t rval;
usr/src/uts/sparc/dtrace/dtrace_isa.c
667
rval = fp->fr_argx[arg - 6];
usr/src/uts/sparc/dtrace/dtrace_isa.c
670
return (rval);
usr/src/uts/sparc/dtrace/dtrace_isa.c
689
rval = fp->fr_arg[arg];
usr/src/uts/sparc/dtrace/dtrace_isa.c
692
rval = fp->fr_argx[arg - 6];
usr/src/uts/sparc/dtrace/dtrace_isa.c
697
return (rval);
usr/src/uts/sparc/os/bootdev.c
482
int rval;
usr/src/uts/sparc/os/bootdev.c
495
rval = i_devname_to_promname(cur_path, new_path, *len);
usr/src/uts/sparc/os/bootdev.c
500
if (rval == 0) {
usr/src/uts/sparc/os/syscall.c
1000
int64_t rval;
usr/src/uts/sparc/os/syscall.c
1021
rval = (*sy_call)(a0, a1, a2, a3, a4, a5);
usr/src/uts/sparc/os/syscall.c
1023
rval = syscall_ap();
usr/src/uts/sparc/os/syscall.c
1027
return (rval);
usr/src/uts/sparc/os/syscall.c
555
rval_t rval; /* fix audit_finish() someday */
usr/src/uts/sparc/os/syscall.c
558
rval.r_val1 = (int)rval1;
usr/src/uts/sparc/os/syscall.c
559
rval.r_val2 = (int)rval2;
usr/src/uts/sparc/os/syscall.c
560
audit_finish(T_SYSCALL, code, error, &rval);
usr/src/uts/sparc/os/syscall.c
906
rval_t rval;
usr/src/uts/sparc/os/syscall.c
919
rval.r_val1 = 0;
usr/src/uts/sparc/os/syscall.c
920
rval.r_val2 = (int)rp->r_o1;
usr/src/uts/sparc/os/syscall.c
922
error = (*(callp->sy_call))(lwp->lwp_ap, &rval);
usr/src/uts/sparc/os/syscall.c
925
return (rval.r_vals);
usr/src/uts/sun/io/dada/conf/dcd_confsubr.c
110
int rval = DCDPROBE_NOMEM;
usr/src/uts/sun/io/dada/conf/dcd_confsubr.c
146
rval = DCDPROBE_NOMEM_CB;
usr/src/uts/sun/io/dada/conf/dcd_confsubr.c
167
rval = DCDPROBE_NORESP;
usr/src/uts/sun/io/dada/conf/dcd_confsubr.c
174
rval = DCDPROBE_FAILURE;
usr/src/uts/sun/io/dada/conf/dcd_confsubr.c
197
rval = DCDPROBE_NORESP;
usr/src/uts/sun/io/dada/conf/dcd_confsubr.c
199
rval = DCDPROBE_FAILURE;
usr/src/uts/sun/io/dada/conf/dcd_confsubr.c
209
rval = DCDPROBE_FAILURE;
usr/src/uts/sun/io/dada/conf/dcd_confsubr.c
219
rval = DCDPROBE_NONCCS;
usr/src/uts/sun/io/dada/conf/dcd_confsubr.c
223
rval = DCDPROBE_EXISTS;
usr/src/uts/sun/io/dada/conf/dcd_confsubr.c
233
return (rval);
usr/src/uts/sun/io/dada/conf/dcd_confsubr.c
241
int rval = -1;
usr/src/uts/sun/io/dada/conf/dcd_confsubr.c
258
rval = 0;
usr/src/uts/sun/io/dada/conf/dcd_confsubr.c
260
rval = 0;
usr/src/uts/sun/io/dada/conf/dcd_confsubr.c
264
printf("dcd_test: rval is %x\n", rval);
usr/src/uts/sun/io/dada/conf/dcd_confsubr.c
267
return (rval);
usr/src/uts/sun/io/dada/impl/dcd_subr.c
109
rval = 0;
usr/src/uts/sun/io/dada/impl/dcd_subr.c
117
return (rval);
usr/src/uts/sun/io/dada/impl/dcd_subr.c
67
register busy_count, rval = -1, savef;
usr/src/uts/sun/io/dada/impl/dcd_transport.c
117
rval = (*A_TO_TRAN(ap)->tran_start)(ap, pkt);
usr/src/uts/sun/io/dada/impl/dcd_transport.c
127
return (rval);
usr/src/uts/sun/io/dada/impl/dcd_transport.c
71
int rval;
usr/src/uts/sun/io/dada/targets/dad.c
1064
return (rval);
usr/src/uts/sun/io/dada/targets/dad.c
1069
return (rval);
usr/src/uts/sun/io/dada/targets/dad.c
1178
int rval;
usr/src/uts/sun/io/dada/targets/dad.c
1217
rval = cmlb_validate(un->un_dklbhandle, 0, 0);
usr/src/uts/sun/io/dada/targets/dad.c
1219
if (rval == ENOMEM)
usr/src/uts/sun/io/dada/targets/dad.c
1221
else if (rval != 0)
usr/src/uts/sun/io/dada/targets/dad.c
1256
int rval = EIO;
usr/src/uts/sun/io/dada/targets/dad.c
1284
rval = ENXIO;
usr/src/uts/sun/io/dada/targets/dad.c
1297
rval = EIO;
usr/src/uts/sun/io/dada/targets/dad.c
1327
rval = EBUSY;
usr/src/uts/sun/io/dada/targets/dad.c
1356
if ((rval = dcd_ready_and_valid(dev, un)) != 0) {
usr/src/uts/sun/io/dada/targets/dad.c
1357
rval = EIO;
usr/src/uts/sun/io/dada/targets/dad.c
1364
if (rval || cmlb_partinfo(un->un_dklbhandle,
usr/src/uts/sun/io/dada/targets/dad.c
1367
rval = EIO;
usr/src/uts/sun/io/dada/targets/dad.c
1451
return (rval);
usr/src/uts/sun/io/dada/targets/dad.c
1461
int rval = 1;
usr/src/uts/sun/io/dada/targets/dad.c
1476
rval = dcd_unit_ready(dev);
usr/src/uts/sun/io/dada/targets/dad.c
1477
if (rval != 0 && rval != EACCES) {
usr/src/uts/sun/io/dada/targets/dad.c
1493
rval = 1;
usr/src/uts/sun/io/dada/targets/dad.c
1503
rval = 0;
usr/src/uts/sun/io/dada/targets/dad.c
1507
return (rval);
usr/src/uts/sun/io/dada/targets/dad.c
2679
int rval = COMMAND_DONE_ERROR;
usr/src/uts/sun/io/dada/targets/dad.c
2739
rval = COMMAND_DONE_ERROR;
usr/src/uts/sun/io/dada/targets/dad.c
2741
if ((rval == COMMAND_DONE_ERROR) &&
usr/src/uts/sun/io/dada/targets/dad.c
2745
rval = QUE_COMMAND;
usr/src/uts/sun/io/dada/targets/dad.c
2749
if (pkt->pkt_reason == CMD_INCOMPLETE && rval == COMMAND_DONE_ERROR) {
usr/src/uts/sun/io/dada/targets/dad.c
2765
rval = COMMAND_DONE_ERROR;
usr/src/uts/sun/io/dada/targets/dad.c
2769
if (!in_panic || (rval == COMMAND_DONE_ERROR)) {
usr/src/uts/sun/io/dada/targets/dad.c
2772
(rval == COMMAND_DONE_ERROR) ||
usr/src/uts/sun/io/dada/targets/dad.c
2776
(rval == COMMAND_DONE_ERROR) ?
usr/src/uts/sun/io/dada/targets/dad.c
2785
return (rval);
usr/src/uts/sun/io/dada/targets/dad.c
2793
int rval = 0;
usr/src/uts/sun/io/dada/targets/dad.c
2817
rval = COMMAND_HARD_ERROR;
usr/src/uts/sun/io/dada/targets/dad.c
2830
rval = COMMAND_SOFT_ERROR;
usr/src/uts/sun/io/dada/targets/dad.c
2868
rval = COMMAND_SOFT_ERROR;
usr/src/uts/sun/io/dada/targets/dad.c
2872
return (rval);
usr/src/uts/sun/io/dada/targets/dad.c
406
int rval = DDI_PROBE_PARTIAL;
usr/src/uts/sun/io/dada/targets/dad.c
4337
int busy_count, rval = -1, savef;
usr/src/uts/sun/io/dada/targets/dad.c
4368
if ((rval = dcd_transport(pkt)) == TRAN_ACCEPT) {
usr/src/uts/sun/io/dada/targets/dad.c
4373
rval = 0;
usr/src/uts/sun/io/dada/targets/dad.c
4377
if (rval == TRAN_BUSY) {
usr/src/uts/sun/io/dada/targets/dad.c
4386
return (rval);
usr/src/uts/sun/io/dada/targets/dad.c
4476
int i, rval = 0;
usr/src/uts/sun/io/dada/targets/dad.c
452
rval = DDI_PROBE_SUCCESS;
usr/src/uts/sun/io/dada/targets/dad.c
454
rval = DDI_PROBE_FAILURE;
usr/src/uts/sun/io/dada/targets/dad.c
4541
rval = EIO;
usr/src/uts/sun/io/dada/targets/dad.c
4547
if (rval != 0) {
usr/src/uts/sun/io/dada/targets/dad.c
4555
rval = 0;
usr/src/uts/sun/io/dada/targets/dad.c
456
rval = DDI_PROBE_FAILURE;
usr/src/uts/sun/io/dada/targets/dad.c
4560
return (rval);
usr/src/uts/sun/io/dada/targets/dad.c
463
"dcdprobe returns %x\n", rval);
usr/src/uts/sun/io/dada/targets/dad.c
465
return (rval);
usr/src/uts/sun/io/dada/targets/dad.c
473
int instance, rval;
usr/src/uts/sun/io/dada/targets/dad.c
567
rval = ddi_prop_update_string_array(DDI_DEV_T_NONE,
usr/src/uts/sun/io/dada/targets/dad.c
569
if (rval == DDI_PROP_SUCCESS) {
usr/src/uts/sun/io/dada/targets/dad.c
899
int rval;
usr/src/uts/sun/io/dada/targets/dad.c
922
rval = DDI_SUCCESS;
usr/src/uts/sun/io/dada/targets/dad.c
924
rval = DDI_FAILURE;
usr/src/uts/sun/io/dada/targets/dad.c
928
rval = DDI_FAILURE;
usr/src/uts/sun/io/dada/targets/dad.c
937
rval = DDI_FAILURE;
usr/src/uts/sun/io/dada/targets/dad.c
945
rval = DDI_FAILURE;
usr/src/uts/sun/io/dada/targets/dad.c
969
rval = DDI_FAILURE;
usr/src/uts/sun/io/dada/targets/dad.c
977
rval = DDI_FAILURE;
usr/src/uts/sun/io/eri/eri.c
2594
uint32_t rval;
usr/src/uts/sun/io/eri/eri.c
2615
rval = ddi_dma_alloc_handle(erip->dip, &desc_dma_attr,
usr/src/uts/sun/io/eri/eri.c
2617
if (rval != DDI_SUCCESS) {
usr/src/uts/sun/io/eri/eri.c
2622
rval = ddi_dma_mem_alloc(erip->md_h, size, &erip->dev_attr,
usr/src/uts/sun/io/eri/eri.c
2625
if (rval != DDI_SUCCESS) {
usr/src/uts/sun/io/eri/eri.c
2630
rval = ddi_dma_addr_bind_handle(erip->md_h, NULL,
usr/src/uts/sun/io/eri/eri.c
2634
if (rval != DDI_DMA_MAPPED)
usr/src/uts/sun/io/eri/eri.c
2673
rval = ddi_dma_alloc_handle(erip->dip,
usr/src/uts/sun/io/eri/eri.c
2677
if (rval != DDI_SUCCESS) {
usr/src/uts/sun/io/fd.c
6160
int rval;
usr/src/uts/sun/io/fd.c
6173
rval = fd_pm_lower_power(fdc);
usr/src/uts/sun/io/fd.c
6176
rval = fd_pm_raise_power(fdc);
usr/src/uts/sun/io/fd.c
6178
return (rval);
usr/src/uts/sun/io/scsi/adapters/fas.c
1954
int rval;
usr/src/uts/sun/io/scsi/adapters/fas.c
1959
rval = fas_do_scsi_abort(ap, pkt);
usr/src/uts/sun/io/scsi/adapters/fas.c
1961
return (rval);
usr/src/uts/sun/io/scsi/adapters/fas.c
1972
int rval;
usr/src/uts/sun/io/scsi/adapters/fas.c
1978
rval = fas_do_scsi_reset(ap, level);
usr/src/uts/sun/io/scsi/adapters/fas.c
1980
return (rval);
usr/src/uts/sun/io/scsi/adapters/fas.c
2072
int rval;
usr/src/uts/sun/io/scsi/adapters/fas.c
2180
rval = ddi_dma_buf_bind_handle(cmd->cmd_dmahandle, bp,
usr/src/uts/sun/io/scsi/adapters/fas.c
2184
if (rval && rval != DDI_DMA_PARTIAL_MAP) {
usr/src/uts/sun/io/scsi/adapters/fas.c
2185
switch (rval) {
usr/src/uts/sun/io/scsi/adapters/fas.c
2374
int rval;
usr/src/uts/sun/io/scsi/adapters/fas.c
2397
rval = fas_prepare_pkt(fas, sp);
usr/src/uts/sun/io/scsi/adapters/fas.c
2398
if (rval != TRAN_ACCEPT) {
usr/src/uts/sun/io/scsi/adapters/fas.c
2401
return (rval);
usr/src/uts/sun/io/scsi/adapters/fas.c
2452
rval = fas_accept_pkt(fas, sp, TRAN_BUSY_OK);
usr/src/uts/sun/io/scsi/adapters/fas.c
2466
rval = fas_accept_pkt(fas, sp, TRAN_BUSY_OK);
usr/src/uts/sun/io/scsi/adapters/fas.c
2484
return (rval);
usr/src/uts/sun/io/scsi/adapters/fas.c
2516
return (rval);
usr/src/uts/sun/io/scsi/adapters/fas.c
2661
int rval;
usr/src/uts/sun/io/scsi/adapters/fas.c
2683
rval = fas_accept_pkt(fas, sp, NO_TRAN_BUSY);
usr/src/uts/sun/io/scsi/adapters/fas.c
2689
if (rval != TRAN_ACCEPT) {
usr/src/uts/sun/io/scsi/adapters/fas.c
2690
ASSERT(rval != TRAN_BUSY);
usr/src/uts/sun/io/scsi/adapters/fas.c
2758
int rval = TRAN_ACCEPT;
usr/src/uts/sun/io/scsi/adapters/fas.c
2771
rval = fas_prepare_pkt(fas, sp);
usr/src/uts/sun/io/scsi/adapters/fas.c
2772
if (rval != TRAN_ACCEPT) {
usr/src/uts/sun/io/scsi/adapters/fas.c
2874
rval = TRAN_BUSY;
usr/src/uts/sun/io/scsi/adapters/fas.c
2908
return (rval);
usr/src/uts/sun/io/scsi/adapters/fas.c
3367
int rval = DDI_INTR_UNCLAIMED;
usr/src/uts/sun/io/scsi/adapters/fas.c
3384
rval = DDI_INTR_CLAIMED;
usr/src/uts/sun/io/scsi/adapters/fas.c
3388
rval = DDI_INTR_CLAIMED;
usr/src/uts/sun/io/scsi/adapters/fas.c
3393
rval == DDI_INTR_CLAIMED) {
usr/src/uts/sun/io/scsi/adapters/fas.c
3408
return (rval);
usr/src/uts/sun/io/scsi/adapters/fas.c
399
int rval;
usr/src/uts/sun/io/scsi/adapters/fas.c
4029
int rval;
usr/src/uts/sun/io/scsi/adapters/fas.c
403
rval = ddi_soft_state_init(&fas_state, sizeof (struct fas),
usr/src/uts/sun/io/scsi/adapters/fas.c
4046
rval = fas_reconnect(fas);
usr/src/uts/sun/io/scsi/adapters/fas.c
405
if (rval != 0) {
usr/src/uts/sun/io/scsi/adapters/fas.c
406
return (rval);
usr/src/uts/sun/io/scsi/adapters/fas.c
4074
return (rval);
usr/src/uts/sun/io/scsi/adapters/fas.c
409
if ((rval = scsi_hba_init(&modlinkage)) != 0) {
usr/src/uts/sun/io/scsi/adapters/fas.c
411
return (rval);
usr/src/uts/sun/io/scsi/adapters/fas.c
419
if ((rval = mod_install(&modlinkage)) != 0) {
usr/src/uts/sun/io/scsi/adapters/fas.c
425
return (rval);
usr/src/uts/sun/io/scsi/adapters/fas.c
428
return (rval);
usr/src/uts/sun/io/scsi/adapters/fas.c
434
int rval;
usr/src/uts/sun/io/scsi/adapters/fas.c
438
if ((rval = mod_remove(&modlinkage)) == 0) {
usr/src/uts/sun/io/scsi/adapters/fas.c
445
return (rval);
usr/src/uts/sun/io/scsi/adapters/fas.c
462
int rval = SCSIPROBE_FAILURE;
usr/src/uts/sun/io/scsi/adapters/fas.c
478
rval = scsi_hba_probe(sd, waitfunc);
usr/src/uts/sun/io/scsi/adapters/fas.c
488
if ((rval == SCSIPROBE_EXISTS) &&
usr/src/uts/sun/io/scsi/adapters/fas.c
506
return (rval);
usr/src/uts/sun/io/scsi/adapters/fas.c
7709
int rval = FALSE;
usr/src/uts/sun/io/scsi/adapters/fas.c
7743
rval = fas_remove_from_readyQ(fas, sp, slot);
usr/src/uts/sun/io/scsi/adapters/fas.c
7744
if (rval) {
usr/src/uts/sun/io/scsi/adapters/fas.c
7754
rval = TRUE;
usr/src/uts/sun/io/scsi/adapters/fas.c
7787
rval = fas_abort_connected_cmd(fas, sp, abort_msg);
usr/src/uts/sun/io/scsi/adapters/fas.c
7791
if ((rval == 0) &&
usr/src/uts/sun/io/scsi/adapters/fas.c
7794
rval = fas_abort_disconnected_cmd(fas, ap, sp,
usr/src/uts/sun/io/scsi/adapters/fas.c
7798
if (rval) {
usr/src/uts/sun/io/scsi/adapters/fas.c
7814
rval = fas_abort_connected_cmd(fas, cur_sp,
usr/src/uts/sun/io/scsi/adapters/fas.c
7817
if (rval == 0) {
usr/src/uts/sun/io/scsi/adapters/fas.c
7818
rval = fas_abort_disconnected_cmd(fas, ap,
usr/src/uts/sun/io/scsi/adapters/fas.c
7844
if (rval && (abort_msg == MSG_ABORT)) {
usr/src/uts/sun/io/scsi/adapters/fas.c
7863
if (rval && fas_test_stop) {
usr/src/uts/sun/io/scsi/adapters/fas.c
7867
return (rval);
usr/src/uts/sun/io/scsi/adapters/fas.c
8118
int rval;
usr/src/uts/sun/io/scsi/adapters/fas.c
8128
rval = TRUE;
usr/src/uts/sun/io/scsi/adapters/fas.c
8135
rval = FALSE;
usr/src/uts/sun/io/scsi/adapters/fas.c
8137
return (rval);
usr/src/uts/sun/io/scsi/adapters/fas.c
8147
int rval = FALSE;
usr/src/uts/sun/io/scsi/adapters/fas.c
8154
return (rval);
usr/src/uts/sun/io/scsi/adapters/fas.c
8162
return (rval);
usr/src/uts/sun/io/scsi/adapters/fas.c
8186
rval = TRUE;
usr/src/uts/sun/io/scsi/adapters/fas.c
8193
return (rval);
usr/src/uts/sun/io/scsi/adapters/fas.c
8207
int rval;
usr/src/uts/sun/io/scsi/adapters/fas.c
8233
rval = fas_do_proxy_cmd(fas, proxy_cmdp, ap, scsi_mname(msg));
usr/src/uts/sun/io/scsi/adapters/fas.c
8235
return (rval);
usr/src/uts/sun/io/scsi/adapters/fas.c
8245
int rval = FALSE;
usr/src/uts/sun/io/scsi/adapters/fas.c
8277
rval = TRUE;
usr/src/uts/sun/io/scsi/adapters/fas.c
8280
rval = TRUE;
usr/src/uts/sun/io/scsi/adapters/fas.c
8307
rval = fas_reset_connected_cmd(fas, ap);
usr/src/uts/sun/io/scsi/adapters/fas.c
8314
if (rval == FALSE) {
usr/src/uts/sun/io/scsi/adapters/fas.c
8315
rval = fas_reset_disconnected_cmd(fas, ap);
usr/src/uts/sun/io/scsi/adapters/fas.c
8336
if (rval == TRUE) {
usr/src/uts/sun/io/scsi/adapters/fas.c
8361
if (rval && fas_test_stop) {
usr/src/uts/sun/io/scsi/adapters/fas.c
8365
return (rval);
usr/src/uts/sun/io/scsi/adapters/fas.c
8544
int rval;
usr/src/uts/sun/io/scsi/adapters/fas.c
8548
rval = fas_do_proxy_cmd(fas, sp, ap, scsi_mname(MSG_DEVICE_RESET));
usr/src/uts/sun/io/scsi/adapters/fas.c
8550
return (rval);
usr/src/uts/sun/io/scsi/adapters/fas.c
8561
int rval = FALSE;
usr/src/uts/sun/io/scsi/adapters/fas.c
8571
return (rval);
usr/src/uts/sun/io/scsi/adapters/fas.c
8595
rval = TRUE;
usr/src/uts/sun/io/scsi/adapters/fas.c
8603
return (rval);
usr/src/uts/sun/io/scsi/adapters/fas.c
8633
int rval = ACTION_SEARCH;
usr/src/uts/sun/io/scsi/adapters/fas.c
8689
rval = ACTION_RETURN;
usr/src/uts/sun/io/scsi/adapters/fas.c
8758
return (rval);
usr/src/uts/sun/io/scsi/adapters/fas.c
8915
int rval = FALSE;
usr/src/uts/sun/io/scsi/adapters/fas.c
8925
rval = UNDEFINED;
usr/src/uts/sun/io/scsi/adapters/fas.c
8965
rval = TRUE;
usr/src/uts/sun/io/scsi/adapters/fas.c
9004
rval = TRUE;
usr/src/uts/sun/io/scsi/adapters/fas.c
9021
rval = TRUE;
usr/src/uts/sun/io/scsi/adapters/fas.c
9034
rval = TRUE;
usr/src/uts/sun/io/scsi/adapters/fas.c
9039
rval = TRUE;
usr/src/uts/sun/io/scsi/adapters/fas.c
9045
rval = TRUE;
usr/src/uts/sun/io/scsi/adapters/fas.c
9049
rval = UNDEFINED;
usr/src/uts/sun/io/scsi/adapters/fas.c
9059
rval = 1<<30;
usr/src/uts/sun/io/scsi/adapters/fas.c
9062
rval = TRUE;
usr/src/uts/sun/io/scsi/adapters/fas.c
9068
rval = TRUE;
usr/src/uts/sun/io/scsi/adapters/fas.c
9073
rval = TRUE;
usr/src/uts/sun/io/scsi/adapters/fas.c
9077
rval = TRUE;
usr/src/uts/sun/io/scsi/adapters/fas.c
9080
rval = MY_ID(fas);
usr/src/uts/sun/io/scsi/adapters/fas.c
9084
rval = TRUE;
usr/src/uts/sun/io/scsi/adapters/fas.c
9089
rval = TRUE;
usr/src/uts/sun/io/scsi/adapters/fas.c
9093
rval = TRUE;
usr/src/uts/sun/io/scsi/adapters/fas.c
9097
rval = TRUE;
usr/src/uts/sun/io/scsi/adapters/fas.c
9103
rval = TRUE;
usr/src/uts/sun/io/scsi/adapters/fas.c
9106
rval = fas->f_qfull_retries[target];
usr/src/uts/sun/io/scsi/adapters/fas.c
9109
rval = drv_hztousec(
usr/src/uts/sun/io/scsi/adapters/fas.c
9115
rval = UNDEFINED;
usr/src/uts/sun/io/scsi/adapters/fas.c
9128
target, cap, tgtonly, doset, val, rval);
usr/src/uts/sun/io/scsi/adapters/fas.c
9130
return (rval);
usr/src/uts/sun/io/scsi/adapters/fas.c
9195
int rval = -1;
usr/src/uts/sun/io/scsi/adapters/fas.c
9199
return (rval);
usr/src/uts/sun/io/scsi/adapters/fas.c
9224
rval = 0;
usr/src/uts/sun/io/scsi/adapters/fas.c
9226
return (rval);
usr/src/uts/sun/io/zs_common.c
247
int rval;
usr/src/uts/sun/io/zs_common.c
250
rval = DDI_PROBE_FAILURE;
usr/src/uts/sun/io/zs_common.c
257
return (rval);
usr/src/uts/sun/io/zs_common.c
297
rval = DDI_PROBE_SUCCESS;
usr/src/uts/sun/io/zs_common.c
306
return (rval);
usr/src/uts/sun4/io/ebus.c
467
int rval = DDI_SUCCESS;
usr/src/uts/sun4/io/ebus.c
523
rval = ebus_apply_range(ebus_p, rdip, ebus_rp, &vreg);
usr/src/uts/sun4/io/ebus.c
528
if (rval != DDI_SUCCESS)
usr/src/uts/sun4/io/ebus.c
529
return (rval);
usr/src/uts/sun4/io/ebus.c
536
rval = ddi_map(dip, &p_map_request, 0, 0, addrp);
usr/src/uts/sun4/io/ebus.c
537
DBG1(D_MAP, ebus_p, "parent returned %x\n", rval);
usr/src/uts/sun4/io/ebus.c
538
return (rval);
usr/src/uts/sun4/io/efcode/fcpci.c
1233
int rval;
usr/src/uts/sun4/io/efcode/fcpci.c
1242
rval = ndi_ra_alloc(dip, &req, mem_answer, mem_size,
usr/src/uts/sun4/io/efcode/fcpci.c
1245
return (rval);
usr/src/uts/sun4/io/efcode/fcpci.c
1252
int rval;
usr/src/uts/sun4/io/efcode/fcpci.c
1261
rval = ndi_ra_alloc(dip, &req, io_answer, io_size,
usr/src/uts/sun4/io/efcode/fcpci.c
1264
return (rval);
usr/src/uts/sun4/io/fpc/fpc-impl.c
208
int rval = SUCCESS;
usr/src/uts/sun4/io/fpc/fpc-impl.c
229
if ((rval = fpc_event_io(firehdl, reggroup, &old_events, IS_READ)) !=
usr/src/uts/sun4/io/fpc/fpc-impl.c
244
if ((rval = fpc_counter_io(firehdl, reggroup, counter_index,
usr/src/uts/sun4/io/fpc/fpc-impl.c
250
if ((rval =
usr/src/uts/sun4/io/fpc/fpc-impl.c
261
return (rval);
usr/src/uts/sun4/io/fpc/fpc-impl.c
279
int rval;
usr/src/uts/sun4/io/fpc/fpc-impl.c
294
if ((rval = fpc_event_io(firehdl, reggroup, event_p, IS_READ)) !=
usr/src/uts/sun4/io/fpc/fpc-impl.c
301
if ((rval = fpc_counter_io(firehdl, reggroup, counter_index,
usr/src/uts/sun4/io/fpc/fpc-impl.c
306
PRIx64 "\n", reggroup, counter, rval, values[counter]);
usr/src/uts/sun4/io/fpc/fpc-impl.c
312
return (rval);
usr/src/uts/sun4/io/pcicfg.c
4902
int rval, i, j;
usr/src/uts/sun4/io/pcicfg.c
4942
rval = ndi_ra_alloc(ddi_get_parent(new_child), &req,
usr/src/uts/sun4/io/pcicfg.c
4945
if (rval != NDI_SUCCESS) {
usr/src/uts/sun4/io/pcicfg.c
4946
if (rval == NDI_RA_PARTIAL_REQ) {
usr/src/uts/sun4/io/pcicfg.c
4998
rval = ndi_ra_alloc(ddi_get_parent(new_child), &req,
usr/src/uts/sun4/io/pcicfg.c
5001
if (rval != NDI_SUCCESS) {
usr/src/uts/sun4/io/pcicfg.c
5002
if (rval == NDI_RA_PARTIAL_REQ) {
usr/src/uts/sun4/io/pcicfg.c
5040
rval = ndi_ra_alloc(ddi_get_parent(new_child), &req, &io_answer,
usr/src/uts/sun4/io/pcicfg.c
5043
if (rval != NDI_SUCCESS) {
usr/src/uts/sun4/io/pcicfg.c
5044
if (rval == NDI_RA_PARTIAL_REQ) {
usr/src/uts/sun4/io/pcicfg.c
5259
if ((rval = pcicfg_fcode_probe(new_child,
usr/src/uts/sun4/io/pcicfg.c
5263
if (rval == PCICFG_NODEVICE) {
usr/src/uts/sun4/io/pcicfg.c
5277
rval = PCICFG_FAILURE;
usr/src/uts/sun4/io/pcicfg.c
5332
if (rval != PCICFG_FAILURE)
usr/src/uts/sun4/io/pcicfg.c
5333
rval = PCICFG_SUCCESS;
usr/src/uts/sun4/io/pcicfg.c
5603
return (rval);
usr/src/uts/sun4/io/px/px.c
731
int reglen, rval, r_no;
usr/src/uts/sun4/io/px/px.c
782
rval = px_lib_map_vconfig(dip, mp, off, rp, addrp);
usr/src/uts/sun4/io/px/px.c
783
if (rval == DDI_SUCCESS)
usr/src/uts/sun4/io/px/px.c
794
if (rval = px_reloc_reg(dip, rdip, px_p, rp))
usr/src/uts/sun4/io/px/px.c
802
if (rval = px_xlate_reg(px_p, rp, &p_regspec))
usr/src/uts/sun4/io/px/px.c
809
rval = ddi_map(dip, &p_mapreq, 0, 0, addrp);
usr/src/uts/sun4/io/px/px.c
811
if (rval == DDI_SUCCESS) {
usr/src/uts/sun4/io/px/px.c
823
return (rval);
usr/src/uts/sun4/io/px/px.c
910
int rval;
usr/src/uts/sun4/io/px/px.c
930
if (rval = px_dma_attr2hdl(px_p, mp)) {
usr/src/uts/sun4/io/px/px.c
933
return (rval);
usr/src/uts/sun4/io/px/px_devctl.c
107
if (rval = pcie_open(px_p->px_dip, devp, flags, otyp, credp)) {
usr/src/uts/sun4/io/px/px_devctl.c
109
return (rval);
usr/src/uts/sun4/io/px/px_devctl.c
140
int rval;
usr/src/uts/sun4/io/px/px_devctl.c
157
if (rval = pcie_close(px_p->px_dip, dev, flags, otyp, credp)) {
usr/src/uts/sun4/io/px/px_devctl.c
159
return (rval);
usr/src/uts/sun4/io/px/px_devctl.c
80
int rval;
usr/src/uts/sun4/io/px/px_tools.c
122
int rval = EIO;
usr/src/uts/sun4/io/px/px_tools.c
140
rval = EINVAL;
usr/src/uts/sun4/io/px/px_tools.c
161
rval = EINVAL;
usr/src/uts/sun4/io/px/px_tools.c
190
rval = EIO;
usr/src/uts/sun4/io/px/px_tools.c
198
rval = EIO;
usr/src/uts/sun4/io/px/px_tools.c
217
rval = EIO;
usr/src/uts/sun4/io/px/px_tools.c
225
rval = SUCCESS;
usr/src/uts/sun4/io/px/px_tools.c
236
rval = EFAULT;
usr/src/uts/sun4/io/px/px_tools.c
238
return (rval);
usr/src/uts/sun4/io/px/px_tools.c
256
int rval = EIO;
usr/src/uts/sun4/io/px/px_tools.c
280
rval = ENOTSUP;
usr/src/uts/sun4/io/px/px_tools.c
286
rval = ENOTSUP;
usr/src/uts/sun4/io/px/px_tools.c
300
rval = EINVAL;
usr/src/uts/sun4/io/px/px_tools.c
321
rval = EINVAL;
usr/src/uts/sun4/io/px/px_tools.c
349
rval = EINVAL;
usr/src/uts/sun4/io/px/px_tools.c
359
rval = SUCCESS;
usr/src/uts/sun4/io/px/px_tools.c
367
rval = SUCCESS;
usr/src/uts/sun4/io/px/px_tools.c
375
rval = ETIME;
usr/src/uts/sun4/io/px/px_tools.c
379
rval = EINVAL;
usr/src/uts/sun4/io/px/px_tools.c
383
rval = EIO;
usr/src/uts/sun4/io/px/px_tools.c
390
rval = EFAULT;
usr/src/uts/sun4/io/px/px_tools.c
392
return (rval);
usr/src/uts/sun4/io/px/px_tools.c
400
int rval = SUCCESS;
usr/src/uts/sun4/io/px/px_tools.c
406
rval = pxtool_intr_info(dip, arg, mode);
usr/src/uts/sun4/io/px/px_tools.c
411
rval = pxtool_get_intr(dip, arg, mode);
usr/src/uts/sun4/io/px/px_tools.c
416
rval = pxtool_set_intr(dip, arg, mode);
usr/src/uts/sun4/io/px/px_tools.c
420
rval = ENOTTY;
usr/src/uts/sun4/io/px/px_tools.c
423
return (rval);
usr/src/uts/sun4/io/px/px_tools.c
430
int rval = SUCCESS;
usr/src/uts/sun4/io/px/px_tools.c
434
rval = EINVAL;
usr/src/uts/sun4/io/px/px_tools.c
444
rval = EINVAL;
usr/src/uts/sun4/io/px/px_tools.c
447
return (rval);
usr/src/uts/sun4/io/px/px_tools.c
460
int rval;
usr/src/uts/sun4/io/px/px_tools.c
485
rval = px_xlate_reg(px_p, &dev_regspec, &xlated_regspec);
usr/src/uts/sun4/io/px/px_tools.c
490
if (rval != DDI_SUCCESS)
usr/src/uts/sun4/io/px/px_tools.c
511
int rval;
usr/src/uts/sun4/io/px/px_tools.c
544
rval = pxtool_pcicfg_access(px_p, &cfg_prg, bar_p, PX_ISREAD);
usr/src/uts/sun4/io/px/px_tools.c
546
if (rval != SUCCESS) {
usr/src/uts/sun4/io/px/px_tools.c
548
return (rval);
usr/src/uts/sun4/io/px/px_tools.c
586
rval = pxtool_pcicfg_access(px_p, &cfg_prg, bar_p, PX_ISREAD);
usr/src/uts/sun4/io/px/px_tools.c
587
if (rval != SUCCESS) {
usr/src/uts/sun4/io/px/px_tools.c
589
return (rval);
usr/src/uts/sun4/io/px/px_tools.c
637
int rval = 0;
usr/src/uts/sun4/io/px/px_tools.c
649
if ((rval = pxtool_dev_reg_ops_platchk(dip, &prg)) != SUCCESS) {
usr/src/uts/sun4/io/px/px_tools.c
658
if ((rval = pxtool_validate_barnum_bdf(&prg)) != SUCCESS)
usr/src/uts/sun4/io/px/px_tools.c
669
rval = EINVAL;
usr/src/uts/sun4/io/px/px_tools.c
706
rval = pxtool_pcicfg_access(px_p, &prg, &prg.data, write_flag);
usr/src/uts/sun4/io/px/px_tools.c
712
if ((rval = pxtool_get_bar(px_p, &prg, &bar, &space)) != SUCCESS)
usr/src/uts/sun4/io/px/px_tools.c
723
rval = EIO;
usr/src/uts/sun4/io/px/px_tools.c
740
rval = EIO;
usr/src/uts/sun4/io/px/px_tools.c
757
rval = pxtool_pciiomem_access(px_p, &prg, &prg.data, write_flag);
usr/src/uts/sun4/io/px/px_tools.c
76
int rval = SUCCESS;
usr/src/uts/sun4/io/px/px_tools.c
764
rval = EFAULT;
usr/src/uts/sun4/io/px/px_tools.c
766
return (rval);
usr/src/uts/sun4/io/px/px_tools.c
94
rval = EFAULT;
usr/src/uts/sun4/io/px/px_tools.c
97
return (rval);
usr/src/uts/sun4/io/su_driver.c
3710
int rval = B_FALSE;
usr/src/uts/sun4/io/su_driver.c
3729
rval = B_TRUE;
usr/src/uts/sun4/io/su_driver.c
3733
return (rval);
usr/src/uts/sun4/io/trapstat.c
2296
trapstat_ioctl(dev_t dev, int cmd, intptr_t arg, int md, cred_t *crd, int *rval)
usr/src/uts/sun4/io/trapstat.c
2579
int rval;
usr/src/uts/sun4/io/trapstat.c
2596
rval = callb_delete(tstat_cprcb);
usr/src/uts/sun4/io/trapstat.c
2597
ASSERT(rval == 0);
usr/src/uts/sun4/os/mp_startup.c
299
int rval;
usr/src/uts/sun4/os/mp_startup.c
430
if ((rval = cpu_intrq_setup(cp)) != 0) {
usr/src/uts/sun4/os/mp_startup.c
431
return (rval);
usr/src/uts/sun4/os/startup.c
3146
caddr_t rval, better;
usr/src/uts/sun4/os/startup.c
3151
rval = vmem_alloc(arena, size, VM_SLEEP | VM_BESTFIT);
usr/src/uts/sun4/os/startup.c
3153
if (size >= HEAPTEXT_MAPPED || !HEAPTEXT_OVERSIZED(rval))
usr/src/uts/sun4/os/startup.c
3154
return (rval);
usr/src/uts/sun4/os/startup.c
3168
vmem_free(arena, rval, size);
usr/src/uts/sun4/os/startup.c
3175
return (rval);
usr/src/uts/sun4u/chicago/io/fpc/fpc-impl-4u.c
221
int rval = EINVAL;
usr/src/uts/sun4u/chicago/io/fpc/fpc-impl-4u.c
228
rval = ldi_open_by_name(handle_impl->devspec->nodename,
usr/src/uts/sun4u/chicago/io/fpc/fpc-impl-4u.c
233
if (rval != SUCCESS) {
usr/src/uts/sun4u/chicago/io/fpc/fpc-impl-4u.c
255
int rval;
usr/src/uts/sun4u/chicago/io/fpc/fpc-impl-4u.c
283
if (((rval = ldi_ioctl(handle_impl->devhandle, cmd, (intptr_t)&prg,
usr/src/uts/sun4u/chicago/io/fpc/fpc-impl-4u.c
288
return (rval);
usr/src/uts/sun4u/chicago/io/fpc/fpc-impl-4u.c
295
int rval;
usr/src/uts/sun4u/chicago/io/fpc/fpc-impl-4u.c
324
if (((rval = ldi_ioctl(handle_impl->devhandle, command, (intptr_t)&prg,
usr/src/uts/sun4u/chicago/io/fpc/fpc-impl-4u.c
329
return (rval);
usr/src/uts/sun4u/io/i2c/clients/ssc050.c
686
ssc050_get_port_bit(dev_info_t *dip, int port, int bit, uchar_t *rval,
usr/src/uts/sun4u/io/i2c/clients/ssc050.c
693
if (rval == NULL || dip == NULL)
usr/src/uts/sun4u/io/i2c/clients/ssc050.c
701
return (ssc050_get(unitp, reg, rval, flags));
usr/src/uts/sun4u/io/iommu.c
1058
rval = DDI_DMA_NOMAPPING;
usr/src/uts/sun4u/io/iommu.c
1060
rval = DDI_DMA_NORESOURCES;
usr/src/uts/sun4u/io/iommu.c
1072
rval = iommu_create_vaddr_mappings(mp,
usr/src/uts/sun4u/io/iommu.c
1074
if (rval == DDI_DMA_NOMAPPING)
usr/src/uts/sun4u/io/iommu.c
1077
rval = iommu_create_pp_mappings(mp, pp, pplist);
usr/src/uts/sun4u/io/iommu.c
1078
if (rval == DDI_DMA_NOMAPPING)
usr/src/uts/sun4u/io/iommu.c
1112
if (rval == DDI_DMA_NORESOURCES &&
usr/src/uts/sun4u/io/iommu.c
1118
return (rval);
usr/src/uts/sun4u/io/iommu.c
1198
int rval;
usr/src/uts/sun4u/io/iommu.c
1232
if ((rval = iommu_map_window(mp, newoff, winsize)) != DDI_SUCCESS)
usr/src/uts/sun4u/io/iommu.c
1233
return (rval);
usr/src/uts/sun4u/io/iommu.c
426
int rval = DDI_DMA_MAPPED;
usr/src/uts/sun4u/io/iommu.c
521
rval = DDI_DMA_NOMAPPING;
usr/src/uts/sun4u/io/iommu.c
557
return (rval);
usr/src/uts/sun4u/io/iommu.c
563
return (rval);
usr/src/uts/sun4u/io/iommu.c
584
int rval = DDI_DMA_MAPPED;
usr/src/uts/sun4u/io/iommu.c
670
return (rval);
usr/src/uts/sun4u/io/iommu.c
860
int rval;
usr/src/uts/sun4u/io/iommu.c
878
rval = check_dma_attr(dmareq, dma_attr, &size);
usr/src/uts/sun4u/io/iommu.c
879
if (rval != DDI_DMA_MAPOK)
usr/src/uts/sun4u/io/iommu.c
880
return (rval);
usr/src/uts/sun4u/io/iommu.c
916
rval = DDI_DMA_NOMAPPING;
usr/src/uts/sun4u/io/iommu.c
932
rval = DDI_DMA_NOMAPPING;
usr/src/uts/sun4u/io/iommu.c
957
rval = DDI_DMA_TOOBIG;
usr/src/uts/sun4u/io/iommu.c
974
rval = DDI_DMA_NORESOURCES;
usr/src/uts/sun4u/io/pci/pci.c
491
int reglen, rval, r_no;
usr/src/uts/sun4u/io/pci/pci.c
526
if (rval = pci_reloc_reg(dip, rdip, pci_p, rp))
usr/src/uts/sun4u/io/pci/pci.c
534
if (rval = pci_xlate_reg(pci_p, rp, &p_regspec))
usr/src/uts/sun4u/io/pci/pci.c
540
rval = ddi_map(dip, &p_mapreq, 0, 0, addrp);
usr/src/uts/sun4u/io/pci/pci.c
542
if (rval == DDI_SUCCESS) {
usr/src/uts/sun4u/io/pci/pci.c
557
return (rval);
usr/src/uts/sun4u/io/pci/pci.c
642
int rval;
usr/src/uts/sun4u/io/pci/pci.c
661
if (rval = pci_dma_attr2hdl(pci_p, mp)) {
usr/src/uts/sun4u/io/pci/pci.c
664
return (rval);
usr/src/uts/sun4u/io/pci/pci_devctl.c
124
if (rval = pcihp_ops->cb_open(devp, flags, otyp, credp)) {
usr/src/uts/sun4u/io/pci/pci_devctl.c
127
return (rval);
usr/src/uts/sun4u/io/pci/pci_devctl.c
142
int rval;
usr/src/uts/sun4u/io/pci/pci_devctl.c
155
if (rval = pcihp_ops->cb_close(dev, flags, otyp, credp)) {
usr/src/uts/sun4u/io/pci/pci_devctl.c
157
return (rval);
usr/src/uts/sun4u/io/pci/pci_devctl.c
85
int rval;
usr/src/uts/sun4u/io/pci/pci_tools.c
256
int rval = SUCCESS;
usr/src/uts/sun4u/io/pci/pci_tools.c
274
rval = EFAULT;
usr/src/uts/sun4u/io/pci/pci_tools.c
277
return (rval);
usr/src/uts/sun4u/io/pci/pci_tools.c
303
int rval = SUCCESS;
usr/src/uts/sun4u/io/pci/pci_tools.c
315
rval = ENOTSUP;
usr/src/uts/sun4u/io/pci/pci_tools.c
326
rval = EINVAL;
usr/src/uts/sun4u/io/pci/pci_tools.c
373
rval = EIO;
usr/src/uts/sun4u/io/pci/pci_tools.c
400
rval = EFAULT;
usr/src/uts/sun4u/io/pci/pci_tools.c
403
return (rval);
usr/src/uts/sun4u/io/pci/pci_tools.c
415
int rval = SUCCESS;
usr/src/uts/sun4u/io/pci/pci_tools.c
445
rval = ENOTSUP;
usr/src/uts/sun4u/io/pci/pci_tools.c
452
rval = ENOTSUP;
usr/src/uts/sun4u/io/pci/pci_tools.c
460
rval = EINVAL;
usr/src/uts/sun4u/io/pci/pci_tools.c
470
rval = EINVAL;
usr/src/uts/sun4u/io/pci/pci_tools.c
476
rval = EINVAL;
usr/src/uts/sun4u/io/pci/pci_tools.c
490
rval = ETIME;
usr/src/uts/sun4u/io/pci/pci_tools.c
494
rval = EINVAL;
usr/src/uts/sun4u/io/pci/pci_tools.c
498
rval = EINVAL;
usr/src/uts/sun4u/io/pci/pci_tools.c
504
rval = EFAULT;
usr/src/uts/sun4u/io/pci/pci_tools.c
506
return (rval);
usr/src/uts/sun4u/io/pci/pci_tools.c
516
int rval = SUCCESS;
usr/src/uts/sun4u/io/pci/pci_tools.c
522
rval = pcitool_intr_info(dip, arg, mode);
usr/src/uts/sun4u/io/pci/pci_tools.c
527
rval = pcitool_get_intr(dip, arg, mode, pci_p);
usr/src/uts/sun4u/io/pci/pci_tools.c
532
rval = pcitool_set_intr(dip, arg, mode, pci_p);
usr/src/uts/sun4u/io/pci/pci_tools.c
536
rval = ENOTTY;
usr/src/uts/sun4u/io/pci/pci_tools.c
539
return (rval);
usr/src/uts/sun4u/io/pci/pci_tools.c
561
int rval = SUCCESS;
usr/src/uts/sun4u/io/pci/pci_tools.c
571
rval = EINVAL;
usr/src/uts/sun4u/io/pci/pci_tools.c
578
rval = EINVAL;
usr/src/uts/sun4u/io/pci/pci_tools.c
595
rval = EFAULT;
usr/src/uts/sun4u/io/pci/pci_tools.c
612
rval = EFAULT;
usr/src/uts/sun4u/io/pci/pci_tools.c
615
return (rval);
usr/src/uts/sun4u/io/pci/pci_tools.c
634
uint32_t rval = 0;
usr/src/uts/sun4u/io/pci/pci_tools.c
656
rval = EIO;
usr/src/uts/sun4u/io/pci/pci_tools.c
665
rval = EINVAL;
usr/src/uts/sun4u/io/pci/pci_tools.c
680
rval = pcitool_access(pci_p,
usr/src/uts/sun4u/io/pci/pci_tools.c
695
return (rval);
usr/src/uts/sun4u/io/pci/pci_tools.c
702
int rval = SUCCESS;
usr/src/uts/sun4u/io/pci/pci_tools.c
706
rval = EINVAL;
usr/src/uts/sun4u/io/pci/pci_tools.c
716
rval = EINVAL;
usr/src/uts/sun4u/io/pci/pci_tools.c
719
return (rval);
usr/src/uts/sun4u/io/pci/pci_tools.c
728
int rval;
usr/src/uts/sun4u/io/pci/pci_tools.c
748
rval = pcitool_access(pci_p, config_base_addr + bar_offset,
usr/src/uts/sun4u/io/pci/pci_tools.c
754
if (rval != SUCCESS)
usr/src/uts/sun4u/io/pci/pci_tools.c
755
return (rval);
usr/src/uts/sun4u/io/pci/pci_tools.c
792
rval = pcitool_access(pci_p,
usr/src/uts/sun4u/io/pci/pci_tools.c
798
if (rval != SUCCESS)
usr/src/uts/sun4u/io/pci/pci_tools.c
799
return (rval);
usr/src/uts/sun4u/io/pci/pci_tools.c
812
int rval;
usr/src/uts/sun4u/io/pci/pci_tools.c
824
rval = pcitool_access(pci_p, prg->phys_addr, max_addr, &prg->data, size,
usr/src/uts/sun4u/io/pci/pci_tools.c
829
return (rval);
usr/src/uts/sun4u/io/pci/pci_tools.c
845
int rval = 0;
usr/src/uts/sun4u/io/pci/pci_tools.c
863
if ((rval = pcitool_validate_barnum_bdf(&prg)) != SUCCESS)
usr/src/uts/sun4u/io/pci/pci_tools.c
885
rval = EINVAL;
usr/src/uts/sun4u/io/pci/pci_tools.c
897
rval = pcitool_config_request(pci_p, &prg, base_addr, max_addr,
usr/src/uts/sun4u/io/pci/pci_tools.c
940
rval = EIO;
usr/src/uts/sun4u/io/pci/pci_tools.c
946
rval = EIO;
usr/src/uts/sun4u/io/pci/pci_tools.c
970
rval = pcitool_access(pci_p, prg.phys_addr,
usr/src/uts/sun4u/io/pci/pci_tools.c
980
rval = EFAULT;
usr/src/uts/sun4u/io/pci/pci_tools.c
982
return (rval);
usr/src/uts/sun4u/io/ppm_xgsubr.c
82
int rval;
usr/src/uts/sun4u/io/ppm_xgsubr.c
91
rval = DDI_SUCCESS;
usr/src/uts/sun4u/io/ppm_xgsubr.c
93
rval = DDI_FAILURE;
usr/src/uts/sun4u/io/ppm_xgsubr.c
94
return (rval);
usr/src/uts/sun4u/io/px/px_lib4u.c
2542
int rval;
usr/src/uts/sun4u/io/px/px_lib4u.c
2544
rval = pcie_intr(px_p->px_dip);
usr/src/uts/sun4u/io/px/px_lib4u.c
2547
if (rval == DDI_INTR_UNCLAIMED)
usr/src/uts/sun4u/io/px/px_lib4u.c
2558
return (rval);
usr/src/uts/sun4u/io/px/px_tools_4u.c
263
int rval = SUCCESS;
usr/src/uts/sun4u/io/px/px_tools_4u.c
270
rval = EINVAL;
usr/src/uts/sun4u/io/px/px_tools_4u.c
286
rval = EFAULT;
usr/src/uts/sun4u/io/px/px_tools_4u.c
303
rval = EFAULT;
usr/src/uts/sun4u/io/px/px_tools_4u.c
306
return (rval);
usr/src/uts/sun4u/io/px/px_tools_4u.c
354
uint32_t rval = 0;
usr/src/uts/sun4u/io/px/px_tools_4u.c
375
rval = EIO;
usr/src/uts/sun4u/io/px/px_tools_4u.c
385
rval = EINVAL;
usr/src/uts/sun4u/io/px/px_tools_4u.c
399
rval = EINVAL;
usr/src/uts/sun4u/io/px/px_tools_4u.c
404
rval = pxtool_access(px_p, &prg, &prg.data, write_flag);
usr/src/uts/sun4u/io/px/px_tools_4u.c
417
return (rval);
usr/src/uts/sun4u/io/sbbc.c
1330
int i, rval;
usr/src/uts/sun4u/io/sbbc.c
1350
rval = sbbcsoftp->child_intr[i]->intr_handler(
usr/src/uts/sun4u/io/sbbc.c
1354
if (rval == DDI_INTR_CLAIMED) {
usr/src/uts/sun4u/io/sbbc.c
1356
return (rval);
usr/src/uts/sun4u/io/sbbc.c
520
int rval = DDI_SUCCESS;
usr/src/uts/sun4u/io/sbbc.c
588
rval = sbbc_apply_range(sbbcsoftp, rdip, child_rp, &pci_reg);
usr/src/uts/sun4u/io/sbbc.c
593
if (rval != DDI_SUCCESS)
usr/src/uts/sun4u/io/sbbc.c
594
return (rval);
usr/src/uts/sun4u/io/sbbc.c
601
rval = ddi_map(dip, &p_map_request, 0, 0, addrp);
usr/src/uts/sun4u/io/sbbc.c
603
return (rval);
usr/src/uts/sun4u/io/sbbc.c
673
int instance, i, rval = DDI_SUCCESS;
usr/src/uts/sun4u/io/sbbc.c
703
if ((rval = i_ddi_intr_ops(dip, rdip, intr_op,
usr/src/uts/sun4u/io/sbbc.c
719
return (rval);
usr/src/uts/sun4u/io/sbbc.c
728
int instance, i, rval = DDI_SUCCESS;
usr/src/uts/sun4u/io/sbbc.c
756
if ((rval = i_ddi_intr_ops(dip, rdip, intr_op,
usr/src/uts/sun4u/io/sbbc.c
760
return (rval);
usr/src/uts/sun4u/io/sbbc.c
766
return (rval);
usr/src/uts/sun4u/io/sbbc.c
892
int rval = DDI_SUCCESS;
usr/src/uts/sun4u/io/sbbc.c
938
return (rval);
usr/src/uts/sun4u/io/upa64s.c
497
int rnumber, rval;
usr/src/uts/sun4u/io/upa64s.c
525
rval = xlate_reg_prop(dip, (upa64s_regspec_t *)mp->map_obj.rp,
usr/src/uts/sun4u/io/upa64s.c
541
rval = get_reg_set(dip, rdip, rnumber, off, len, ®spec);
usr/src/uts/sun4u/io/upa64s.c
548
if (rval != DDI_SUCCESS) {
usr/src/uts/sun4u/io/upa64s.c
550
return (rval);
usr/src/uts/sun4u/io/upa64s.c
561
rval = ddi_map(dip, &p_map_request, 0, 0, addrp);
usr/src/uts/sun4u/io/upa64s.c
563
rval, HI32(*addrp), LO32(*addrp));
usr/src/uts/sun4u/io/upa64s.c
564
return (rval);
usr/src/uts/sun4u/io/upa64s.c
928
int i, n, rval;
usr/src/uts/sun4u/io/upa64s.c
947
rval = xlate_reg_prop(dip, &upa64s_rp[rnumber], off, len, rp);
usr/src/uts/sun4u/io/upa64s.c
949
return (rval);
usr/src/uts/sun4u/javelin/io/envctrltwo.c
1000
rval = EINVAL;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
1015
rval = EINVAL;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
1027
rval = EINVAL;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
1033
rval = EFAULT;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
1038
rval = EINVAL;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
1048
rval = EINVAL;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
1053
rval = EFAULT;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
1060
rval = EFAULT;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
1065
rval = EINVAL;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
1070
rval = EINVAL;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
1077
rval = EFAULT;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
1082
rval = EINVAL;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
1087
rval = EINVAL;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
1091
rval = EFAULT;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
1098
rval = EINVAL;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
1103
rval = EFAULT;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
1113
rval = EINVAL;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
1120
rval = EFAULT;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
1130
rval = EINVAL;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
1135
rval = EFAULT;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
1139
rval = EINVAL;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
1142
return (rval);
usr/src/uts/sun4u/javelin/io/envctrltwo.c
794
int rval = 0, status, tfanspeed;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
822
rval = EFAULT;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
862
rval = EINVAL;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
869
rval = EFAULT;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
884
rval = EINVAL;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
892
rval = EFAULT;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
898
rval = EINVAL;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
909
rval = EINVAL;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
914
rval = EFAULT;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
918
rval = EINVAL;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
921
rval = EINVAL;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
928
rval = EFAULT;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
934
rval = EINVAL;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
944
rval = EINVAL;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
948
rval = EINVAL;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
954
rval = EFAULT;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
960
rval = EINVAL;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
972
rval = EINVAL;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
989
rval = EFAULT;
usr/src/uts/sun4u/javelin/io/envctrltwo.c
995
rval = EFAULT;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1090
int rval;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1093
rval = ldi_ident_from_dip(dip, lip);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1094
if (rval != 0) {
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1096
"ldi_ident_from_dip failed. errno = %d", rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1097
return (rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1102
rval =
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1104
if (rval != 0) {
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1106
"ldi_open_by_dev failed. errno = %d", rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1109
return (rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1118
int rval;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1129
rval = ldi_ident_from_dip(dip, &li);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1130
if (rval != 0) {
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1132
"%s ldi_ident_from_dip failed. errno = %d", pathname, rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1133
return (rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1137
rval = ldi_open_by_name(pathname, (FREAD|FWRITE|FEXCL), kcred, &lh, li);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1138
if (rval != 0) {
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1140
"%s open failed. errno = %d", pathname, rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1142
return (rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1154
rval = ldi_ioctl(msu_lh, I_PLINK, (intptr_t)lh, FKIOCTL, kcred, ¶m);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1155
if (rval != 0) {
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1157
"%s ioctl(I_PLINK) failed. errno = %d", pathname, rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1164
return (rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1171
int rval = SUCCESS;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1190
rval = EINVAL;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1192
return (rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1205
int rval;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1234
rval = oplmsu_open_msu(oplmsu_uinst->msu_dip, &msu_li, &msu_lh);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1235
if (rval != 0) {
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1237
"msu open failed. errno = %d", rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1238
return (rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1242
rval = oplmsu_plink_serial(dip, msu_lh, &lnk_id);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1243
if (rval != 0) {
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1245
"i_plink failed. errno = %d", rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1248
return (rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1251
rval = oplmsu_set_lpathnum(lnk_id, instance);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1252
if (rval != 0) {
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1260
return (rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1264
rval = oplmsu_config_add(dip);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1265
if (rval != 0) {
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1267
"Failed to add the path. errno = %d", rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1274
return (rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1278
rval = oplmsu_config_start(instance);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1279
if (rval != 0) {
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1284
"Failed to start the path. errno = %d", rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1304
return (rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1321
int rval;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1332
rval = FAILURE;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1340
rval = SUCCESS;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1348
if (rval == FAILURE) {
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1362
rval = oplmsu_config_stop(instance);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1363
if (rval != 0) {
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1365
"Failed to stop the path. errno = %d", rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1366
return (rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1371
rval = oplmsu_config_disc(instance);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1372
if (rval != 0) {
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1374
"Failed to disconnect the path. errno = %d", rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1375
return (rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1396
rval = oplmsu_open_msu(oplmsu_uinst->msu_dip, &msu_li, &msu_lh);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1397
if (rval != 0) {
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1399
"msu open failed. errno = %d", rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1400
return (rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1404
rval = ldi_ioctl(msu_lh, I_PUNLINK, (intptr_t)lpath->link_id, FKIOCTL,
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1406
if (rval != 0) {
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1408
"ioctl(I_PUNLINK) failed. errno = %d", rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1411
return (rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1425
rval = oplmsu_config_del(mpath);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1426
if (rval != 0) {
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1428
"Failed to delete the path. errno = %d", rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1432
return (rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1562
int rval;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1576
rval = oplmsu_open_msu(msu_uinst->msu_dip, &msu_li, &msu_lh);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1577
if (rval != 0) {
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1579
"msu open failed. errno = %d", rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1590
rval = oplmsu_plink_serial(ser_dl->dip, msu_lh, &plink_id[i]);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1591
if (rval != 0) {
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1593
"i_plink failed. errno = %d", rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1600
rval = oplmsu_set_lpathnum(plink_id[i],
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1602
if (rval != 0) {
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1635
rval = oplmsu_config_new(mpath);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1636
if (rval != 0) {
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1638
"Failed to create all paths. errno = %d", rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1648
rval = oplmsu_config_start(MSU_PATH_ALL);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1649
if (rval != 0) {
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1651
"Failed to start all paths. errno = %d", rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1654
rval = oplmsu_config_del(mpath);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1655
if (rval == 0) {
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1769
int rval = SUCCESS;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1783
rval = oplmsu_check_lpath_usable();
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1786
if (rval == BUSY) { /* Check whether Lower path is usable */
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1837
rval = oplmsu_create_upath(mdev->dip);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1838
if (rval != SUCCESS) {
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1843
"Failed to create upath %d", rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1844
return (rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1868
int rval = SUCCESS;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1893
rval = oplmsu_create_upath(dip);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1894
if (rval != SUCCESS) {
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1898
"Failed to create upath %d", rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1899
return (rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1916
int rval = SUCCESS;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1932
rval = ENODEV;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1949
rval = EBUSY;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1958
rval = EINVAL;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1969
rval = EBUSY;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
1982
rval = EINVAL;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
2000
return (rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
224
int rval;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
244
rval = mod_install(&modlinkage);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
245
if (rval != DDI_SUCCESS) {
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
253
return (rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
259
int rval;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
261
rval = mod_remove(&modlinkage);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
262
if (rval == DDI_SUCCESS) {
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
270
return (rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
285
int rval = DDI_SUCCESS;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
290
rval = DDI_FAILURE;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
302
rval = DDI_FAILURE;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
305
return (rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
312
int rval = 0;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
338
rval = ddi_create_minor_node(dip, USER_NAME, S_IFCHR, user_minor,
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
340
if (rval != DDI_SUCCESS) {
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
342
"ddi_create_minor_node failed. errno = %d", rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
344
return (rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
348
rval = ddi_create_internal_pathname(dip, META_NAME, S_IFCHR,
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
350
if (rval != DDI_SUCCESS) {
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
352
"ddi_create_internal_pathname failed. errno = %d", rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
354
return (rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
393
return (rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
744
int rval;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
769
rval = SUCCESS;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
776
rval = oplmsu_uwioctl_iplink(uwq, mp);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
782
rval = oplmsu_uwioctl_ipunlink(uwq, mp);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
793
rval = oplmsu_uwioctl_termios(uwq, mp);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
798
rval = oplmsu_wcmn_through_hndl(uwq, mp,
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
807
rval = oplmsu_wcmn_through_hndl(uwq, mp, MSU_NORM,
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
813
if (rval == FAILURE) {
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
914
int rval;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
981
rval =
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu.c
985
if (rval == FAILURE) {
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu_cmn_func.c
1550
int rval;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu_cmn_func.c
1573
rval = SUCCESS;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu_cmn_func.c
1587
rval = oplmsu_lrioctl_termios(q, mp);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu_cmn_func.c
1592
rval = oplmsu_rcmn_through_hndl(
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu_cmn_func.c
1594
if (rval == FAILURE) {
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu_cmn_func.c
1603
rval = oplmsu_lrmsg_error(q, mp);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu_cmn_func.c
1612
rval = oplmsu_rcmn_through_hndl(q, mp, MSU_HIGH);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu_cmn_func.c
1613
if (rval == FAILURE) {
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu_cmn_func.c
1619
if (rval == FAILURE) {
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu_cmn_func.c
231
int rval = SUCCESS;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu_cmn_func.c
239
rval = BUSY;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu_cmn_func.c
244
return (rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu_cmn_func.c
348
int rval = SUCCESS;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu_cmn_func.c
365
rval = BUSY;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu_cmn_func.c
368
rval = BUSY;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu_cmn_func.c
370
return (rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu_cmn_func.c
568
int rval = SUCCESS;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu_cmn_func.c
581
rval = FAILURE;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu_cmn_func.c
584
rval = FAILURE;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu_cmn_func.c
586
return (rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu_cmn_func.c
676
int rval = SUCCESS;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu_cmn_func.c
682
rval = FAILURE;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu_cmn_func.c
686
return (rval);
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu_cmn_func.c
702
int rval = SUCCESS;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu_cmn_func.c
708
rval = FAILURE;
usr/src/uts/sun4u/opl/io/oplmsu/oplmsu_cmn_func.c
710
return (rval);
usr/src/uts/sun4u/opl/io/pcicmu/pcicmu.c
693
int reglen, rval, r_no;
usr/src/uts/sun4u/opl/io/pcicmu/pcicmu.c
730
if (rval = pcmu_reloc_reg(dip, rdip, pcmu_p, rp)) {
usr/src/uts/sun4u/opl/io/pcicmu/pcicmu.c
741
if (rval = pcmu_xlate_reg(pcmu_p, rp, &p_regspec)) {
usr/src/uts/sun4u/opl/io/pcicmu/pcicmu.c
748
rval = ddi_map(dip, &p_mapreq, 0, 0, addrp);
usr/src/uts/sun4u/opl/io/pcicmu/pcicmu.c
754
return (rval);
usr/src/uts/sun4u/serengeti/io/sghsc.c
1144
int rval;
usr/src/uts/sun4u/serengeti/io/sghsc.c
1149
rval = sghsc_scctl(SGHSC_GET_SLOT_STATUS, sghsc->sghsc_node_id,
usr/src/uts/sun4u/serengeti/io/sghsc.c
1151
if (rval != HPC_SUCCESS)
usr/src/uts/sun4u/serengeti/io/sghsc.c
1152
return (rval);
usr/src/uts/sun4u/serengeti/io/ssm.c
597
int rval;
usr/src/uts/sun4u/serengeti/io/ssm.c
659
rval = DDI_SUCCESS;
usr/src/uts/sun4u/serengeti/io/ssm.c
665
rval = ddi_ctlops(dip, rdip, op, arg, result);
usr/src/uts/sun4u/serengeti/io/ssm.c
670
return (rval);
usr/src/uts/sun4v/io/fpc/fpc-impl-4v.c
242
int rval;
usr/src/uts/sun4v/io/fpc/fpc-impl-4v.c
246
rval = fpc_set_fire_perfreg(dev_hdl, hv_if_index, *reg_data);
usr/src/uts/sun4v/io/fpc/fpc-impl-4v.c
248
rval = fpc_get_fire_perfreg(dev_hdl, hv_if_index, reg_data);
usr/src/uts/sun4v/io/fpc/fpc-impl-4v.c
250
return ((rval == H_EOK) ? SUCCESS : EIO);
usr/src/uts/sun4v/io/iospc/iospc.c
101
if ((rval = mod_install(&ml)) != DDI_SUCCESS) {
usr/src/uts/sun4v/io/iospc/iospc.c
103
return (rval);
usr/src/uts/sun4v/io/iospc/iospc.c
115
int rval;
usr/src/uts/sun4v/io/iospc/iospc.c
121
rval = mod_remove(&ml);
usr/src/uts/sun4v/io/iospc/iospc.c
122
if (rval != DDI_SUCCESS)
usr/src/uts/sun4v/io/iospc/iospc.c
123
return (rval);
usr/src/uts/sun4v/io/iospc/iospc.c
473
int rval = SUCCESS;
usr/src/uts/sun4v/io/iospc/iospc.c
481
if ((rval = grp_p->access(iospc_p, ksinfo_p->arg, IOSPC_REG_READ,
usr/src/uts/sun4v/io/iospc/iospc.c
510
if ((rval = grp_p->access(iospc_p, ksinfo_p->arg,
usr/src/uts/sun4v/io/iospc/iospc.c
521
if ((rval = grp_p->access(iospc_p, ksinfo_p->arg,
usr/src/uts/sun4v/io/iospc/iospc.c
532
IOSPC_DBG1("iospc_perfcnt_program: returning status %d.\n", rval);
usr/src/uts/sun4v/io/iospc/iospc.c
533
return (rval);
usr/src/uts/sun4v/io/iospc/iospc.c
93
int rval;
usr/src/uts/sun4v/io/iospc/iospc.c
96
if ((rval = ddi_soft_state_init(&iospc_state_p,
usr/src/uts/sun4v/io/iospc/iospc.c
98
return (rval);
usr/src/uts/sun4v/io/iospc/rfios_iospc.c
59
int rval;
usr/src/uts/sun4v/io/iospc/rfios_iospc.c
61
if ((rval = hsvc_register(&rfios_hsvc, &rfios_sup_minor)) !=
usr/src/uts/sun4v/io/iospc/rfios_iospc.c
64
MODULE_NAME, rval);
usr/src/uts/sun4v/io/n2piupc/n2piupc.c
107
int rval;
usr/src/uts/sun4v/io/n2piupc/n2piupc.c
110
if ((rval = hsvc_register(&n2piupc_hsvc, &n2piupc_sup_minor)) !=
usr/src/uts/sun4v/io/n2piupc/n2piupc.c
113
MODULE_NAME, rval);
usr/src/uts/sun4v/io/n2piupc/n2piupc.c
118
if ((rval = ddi_soft_state_init(&n2piupc_state_p,
usr/src/uts/sun4v/io/n2piupc/n2piupc.c
123
if ((rval = n2piupc_kstat_init()) != DDI_SUCCESS)
usr/src/uts/sun4v/io/n2piupc/n2piupc.c
127
if ((rval = mod_install(&ml)) == DDI_SUCCESS)
usr/src/uts/sun4v/io/n2piupc/n2piupc.c
138
return (rval);
usr/src/uts/sun4v/io/n2piupc/n2piupc.c
147
int rval;
usr/src/uts/sun4v/io/n2piupc/n2piupc.c
153
rval = mod_remove(&ml);
usr/src/uts/sun4v/io/n2piupc/n2piupc.c
154
if (rval != DDI_SUCCESS)
usr/src/uts/sun4v/io/n2piupc/n2piupc.c
155
return (rval);
usr/src/uts/sun4v/io/n2piupc/n2piupc.c
166
return (rval);
usr/src/uts/sun4v/io/n2piupc/n2piupc_biterr.c
114
rval = EIO;
usr/src/uts/sun4v/io/n2piupc/n2piupc_biterr.c
128
biterr_p->sw_biterr_events, rval);
usr/src/uts/sun4v/io/n2piupc/n2piupc_biterr.c
129
return (rval);
usr/src/uts/sun4v/io/n2piupc/n2piupc_biterr.c
144
int rval = SUCCESS;
usr/src/uts/sun4v/io/n2piupc/n2piupc_biterr.c
154
rval = EIO;
usr/src/uts/sun4v/io/n2piupc/n2piupc_biterr.c
180
rval = EIO;
usr/src/uts/sun4v/io/n2piupc/n2piupc_biterr.c
225
rval = EINVAL;
usr/src/uts/sun4v/io/n2piupc/n2piupc_biterr.c
242
rval = EIO;
usr/src/uts/sun4v/io/n2piupc/n2piupc_biterr.c
247
rval);
usr/src/uts/sun4v/io/n2piupc/n2piupc_biterr.c
249
return (rval);
usr/src/uts/sun4v/io/n2piupc/n2piupc_biterr.c
78
int rval = SUCCESS;
usr/src/uts/sun4v/io/n2piupc/n2piupc_kstats.c
273
int rval = SUCCESS;
usr/src/uts/sun4v/io/n2piupc/n2piupc_kstats.c
278
rval = n2piupc_biterr_write(n2piupc_p, regid, data);
usr/src/uts/sun4v/io/n2piupc/n2piupc_kstats.c
284
rval = EIO;
usr/src/uts/sun4v/io/n2piupc/n2piupc_kstats.c
288
N2PIUPC_DBG1("n2piupc_write: status:%d\n", rval);
usr/src/uts/sun4v/io/n2piupc/n2piupc_kstats.c
289
return (rval);
usr/src/uts/sun4v/io/n2piupc/n2piupc_kstats.c
297
int rval = SUCCESS;
usr/src/uts/sun4v/io/n2piupc/n2piupc_kstats.c
306
rval = n2piupc_biterr_read(n2piupc_p, regid, data);
usr/src/uts/sun4v/io/n2piupc/n2piupc_kstats.c
312
rval = EIO;
usr/src/uts/sun4v/io/n2piupc/n2piupc_kstats.c
317
rval);
usr/src/uts/sun4v/io/n2piupc/n2piupc_kstats.c
319
return (rval);
usr/src/uts/sun4v/io/n2piupc/n2piupc_kstats.c
335
int rval = SUCCESS;
usr/src/uts/sun4v/io/n2piupc/n2piupc_kstats.c
343
if ((rval = n2piupc_read(n2piupc_p, grp_p->regsel_p->regoff,
usr/src/uts/sun4v/io/n2piupc/n2piupc_kstats.c
375
if ((rval = n2piupc_write(n2piupc_p,
usr/src/uts/sun4v/io/n2piupc/n2piupc_kstats.c
384
if ((rval = n2piupc_write(n2piupc_p, grp_p->regsel_p->regoff,
usr/src/uts/sun4v/io/n2piupc/n2piupc_kstats.c
394
N2PIUPC_DBG1("n2piupc_perfcnt_program: returning status %d.\n", rval);
usr/src/uts/sun4v/io/n2piupc/n2piupc_kstats.c
395
return (rval);
usr/src/uts/sun4v/io/niumx/niumx.c
957
int rval = DDI_SUCCESS;
usr/src/uts/sun4v/io/niumx/niumx.c
964
rval = EINVAL;
usr/src/uts/sun4v/io/niumx/niumx.c
969
rval = EINVAL;
usr/src/uts/sun4v/io/niumx/niumx.c
974
rval = EIO;
usr/src/uts/sun4v/io/niumx/niumx.c
977
return (rval);
usr/src/uts/sun4v/io/niumx/niumx_tools.c
257
int rval = DDI_SUCCESS;
usr/src/uts/sun4v/io/niumx/niumx_tools.c
275
rval = EFAULT;
usr/src/uts/sun4v/io/niumx/niumx_tools.c
278
return (rval);
usr/src/uts/sun4v/io/niumx/niumx_tools.c
304
int rval = EIO;
usr/src/uts/sun4v/io/niumx/niumx_tools.c
319
rval = EINVAL;
usr/src/uts/sun4v/io/niumx/niumx_tools.c
326
rval = EINVAL;
usr/src/uts/sun4v/io/niumx/niumx_tools.c
354
rval = EIO;
usr/src/uts/sun4v/io/niumx/niumx_tools.c
368
rval = EIO;
usr/src/uts/sun4v/io/niumx/niumx_tools.c
375
rval = EIO;
usr/src/uts/sun4v/io/niumx/niumx_tools.c
381
rval = DDI_SUCCESS;
usr/src/uts/sun4v/io/niumx/niumx_tools.c
393
rval = EFAULT;
usr/src/uts/sun4v/io/niumx/niumx_tools.c
395
return (rval);
usr/src/uts/sun4v/io/niumx/niumx_tools.c
409
int rval = EIO;
usr/src/uts/sun4v/io/niumx/niumx_tools.c
437
rval = ENOTSUP;
usr/src/uts/sun4v/io/niumx/niumx_tools.c
443
rval = ENOTSUP;
usr/src/uts/sun4v/io/niumx/niumx_tools.c
454
rval = EINVAL;
usr/src/uts/sun4v/io/niumx/niumx_tools.c
464
rval = DDI_SUCCESS;
usr/src/uts/sun4v/io/niumx/niumx_tools.c
471
rval = ETIME;
usr/src/uts/sun4v/io/niumx/niumx_tools.c
475
rval = EINVAL;
usr/src/uts/sun4v/io/niumx/niumx_tools.c
479
rval = EIO;
usr/src/uts/sun4v/io/niumx/niumx_tools.c
486
rval = EFAULT;
usr/src/uts/sun4v/io/niumx/niumx_tools.c
488
return (rval);
usr/src/uts/sun4v/io/niumx/niumx_tools.c
497
int rval = DDI_SUCCESS;
usr/src/uts/sun4v/io/niumx/niumx_tools.c
503
rval = niumxtool_intr_info(dip, arg, mode);
usr/src/uts/sun4v/io/niumx/niumx_tools.c
508
rval = niumxtool_get_intr(dip, arg, mode);
usr/src/uts/sun4v/io/niumx/niumx_tools.c
513
rval = niumxtool_set_intr(dip, arg, mode);
usr/src/uts/sun4v/io/niumx/niumx_tools.c
517
rval = ENOTTY;
usr/src/uts/sun4v/io/niumx/niumx_tools.c
520
return (rval);
usr/src/uts/sun4v/io/px/px_tools_4v.c
137
int rval;
usr/src/uts/sun4v/io/px/px_tools_4v.c
187
rval = hv_hpriv((void *)pfunc, from_addr, to_addr, 0);
usr/src/uts/sun4v/io/px/px_tools_4v.c
188
switch (rval) {
usr/src/uts/sun4v/io/px/px_tools_4v.c
190
rval = ENOTSUP;
usr/src/uts/sun4v/io/px/px_tools_4v.c
193
rval = SUCCESS;
usr/src/uts/sun4v/io/px/px_tools_4v.c
196
rval = EIO;
usr/src/uts/sun4v/io/px/px_tools_4v.c
200
if ((rval == SUCCESS) && (!is_write)) {
usr/src/uts/sun4v/io/px/px_tools_4v.c
208
return (rval);
usr/src/uts/sun4v/io/px/px_tools_4v.c
228
int rval = 0;
usr/src/uts/sun4v/io/px/px_tools_4v.c
285
rval = H_EIO;
usr/src/uts/sun4v/io/px/px_tools_4v.c
288
rval = H_EIO;
usr/src/uts/sun4v/io/px/px_tools_4v.c
301
rval = H_EIO;
usr/src/uts/sun4v/io/px/px_tools_4v.c
339
if (rval != SUCCESS) {
usr/src/uts/sun4v/io/px/px_tools_4v.c
341
rval = EINVAL;
usr/src/uts/sun4v/io/px/px_tools_4v.c
345
return (rval);
usr/src/uts/sun4v/io/px/px_tools_4v.c
364
int rval = 0;
usr/src/uts/sun4v/io/px/px_tools_4v.c
386
rval = hvio_poke(px_p->px_dev_hdl, prg_p->phys_addr,
usr/src/uts/sun4v/io/px/px_tools_4v.c
389
rval = H_EIO;
usr/src/uts/sun4v/io/px/px_tools_4v.c
392
rval = H_EIO;
usr/src/uts/sun4v/io/px/px_tools_4v.c
396
rval, io_stat);
usr/src/uts/sun4v/io/px/px_tools_4v.c
405
rval = hvio_peek(px_p->px_dev_hdl, prg_p->phys_addr,
usr/src/uts/sun4v/io/px/px_tools_4v.c
408
rval = H_EIO;
usr/src/uts/sun4v/io/px/px_tools_4v.c
413
size, px_p->px_dev_hdl, rval, io_stat);
usr/src/uts/sun4v/io/px/px_tools_4v.c
432
if (rval != SUCCESS) {
usr/src/uts/sun4v/io/px/px_tools_4v.c
434
rval = EINVAL;
usr/src/uts/sun4v/io/px/px_tools_4v.c
437
rval = EIO;
usr/src/uts/sun4v/io/px/px_tools_4v.c
441
return (rval);
usr/src/uts/sun4v/io/px/px_tools_4v.c
464
uint32_t rval = 0;
usr/src/uts/sun4v/io/px/px_tools_4v.c
495
rval = EINVAL;
usr/src/uts/sun4v/io/px/px_tools_4v.c
502
rval = EINVAL;
usr/src/uts/sun4v/io/px/px_tools_4v.c
510
rval = EINVAL;
usr/src/uts/sun4v/io/px/px_tools_4v.c
524
rval = pxtool_phys_access(px_p, prg.phys_addr, &prg.data,
usr/src/uts/sun4v/io/px/px_tools_4v.c
534
return (rval);
usr/src/uts/sun4v/io/vdc.c
1382
int rv, rval;
usr/src/uts/sun4v/io/vdc.c
1404
rv = vd_process_ioctl(dev, DKIOCFLUSHWRITECACHE, NULL, FKIOCTL, &rval);
usr/src/uts/sun4v/io/vdc.c
7254
int rval;
usr/src/uts/sun4v/io/vdc.c
7259
return (vd_process_ioctl(dev, cmd, (caddr_t)arg, FKIOCTL, &rval));
usr/src/uts/sun4v/io/vdc.c
8306
int rv, rval;
usr/src/uts/sun4v/io/vdc.c
8327
rv = vd_process_ioctl(dev, DKIOCGGEOM, (caddr_t)&geom, FKIOCTL, &rval);
usr/src/uts/sun4v/io/vdc.c
8330
FKIOCTL, &rval);
usr/src/uts/sun4v/io/vds.c
1382
int status, rval;
usr/src/uts/sun4v/io/vds.c
1446
kcred, &rval);
usr/src/uts/sun4v/io/vds.c
1894
int status, rval;
usr/src/uts/sun4v/io/vds.c
1900
(intptr_t)NULL, vd->open_flags | FKIOCTL, kcred, &rval);
usr/src/uts/sun4v/io/vds.c
3405
int rval = 0, status;
usr/src/uts/sun4v/io/vds.c
3426
vd->open_flags | FKIOCTL, kcred, &rval);
usr/src/uts/sun4v/io/vds.c
3441
kcred, &rval);
usr/src/uts/sun4v/io/vds.c
3452
kcred, &rval);
usr/src/uts/sun4v/io/vds.c
3459
if (rval != 0) {
usr/src/uts/sun4v/io/vds.c
3461
" to caller", cmd, rval);
usr/src/uts/sun4v/io/vds.c
3795
int rval, status;
usr/src/uts/sun4v/io/vds.c
3802
(vd->open_flags | FKIOCTL), kcred, &rval);
usr/src/uts/sun4v/io/vds.c
3876
int rv, rval = 0;
usr/src/uts/sun4v/io/vds.c
3895
(intptr_t)NULL, (vd->open_flags | FKIOCTL), kcred, &rval);
usr/src/uts/sun4v/io/vds.c
3900
access = (rval == 0)? VD_ACCESS_ALLOWED : VD_ACCESS_DENIED;
usr/src/uts/sun4v/io/vds.c
3915
int rv, rval;
usr/src/uts/sun4v/io/vds.c
3941
kcred, &rval);
usr/src/uts/sun4v/io/vds.c
3968
kcred, &rval);
usr/src/uts/sun4v/io/vds.c
3984
kcred, &rval);
usr/src/uts/sun4v/io/vds.c
3989
kcred, &rval);
usr/src/uts/sun4v/io/vds.c
4002
kcred, &rval);
usr/src/uts/sun4v/io/vds.c
4012
kcred, &rval);
usr/src/uts/sun4v/io/vds.c
4020
kcred, &rval);
usr/src/uts/sun4v/io/vds.c
4035
int status, rval;
usr/src/uts/sun4v/io/vds.c
4042
(vd->open_flags | FKIOCTL), kcred, &rval);
usr/src/uts/sun4v/io/vds.c
4067
(vd->open_flags | FKIOCTL), kcred, &rval);
usr/src/uts/sun4v/io/vds.c
5891
int rval, status;
usr/src/uts/sun4v/io/vds.c
5933
&rval)) != 0) {
usr/src/uts/sun4v/io/vds.c
6138
int rval, status;
usr/src/uts/sun4v/io/vds.c
6151
&rval)) != 0) {
usr/src/uts/sun4v/io/vds.c
6238
int status, rval;
usr/src/uts/sun4v/io/vds.c
6277
kcred, &rval);
usr/src/uts/sun4v/io/vds.c
6283
kcred, &rval);
usr/src/uts/sun4v/io/vds.c
6290
kcred, &rval);
usr/src/uts/sun4v/io/vds.c
6365
int rval, rv, media, nshift = 0;
usr/src/uts/sun4v/io/vds.c
6397
kcred, &rval);
usr/src/uts/sun4v/ontario/io/tsalarm.c
1121
int ret, rval;
usr/src/uts/sun4v/ontario/io/tsalarm.c
1144
(intptr_t)&peek_ctrl, FKIOCTL, kcred, &rval)) < 0) {
usr/src/uts/sun4v/ontario/io/tsalarm.c
475
int rval;
usr/src/uts/sun4v/ontario/io/tsalarm.c
506
(intptr_t)&channel_op, FKIOCTL, kcred, &rval)) < 0) {