Lines Matching refs:rval
76 int rval = SUCCESS; in pxtool_intr_info() local
94 rval = EFAULT; in pxtool_intr_info()
97 return (rval); in pxtool_intr_info()
122 int rval = EIO; in pxtool_get_intr() local
140 rval = EINVAL; in pxtool_get_intr()
161 rval = EINVAL; in pxtool_get_intr()
190 rval = EIO; in pxtool_get_intr()
198 rval = EIO; in pxtool_get_intr()
217 rval = EIO; in pxtool_get_intr()
225 rval = SUCCESS; in pxtool_get_intr()
236 rval = EFAULT; in pxtool_get_intr()
238 return (rval); in pxtool_get_intr()
256 int rval = EIO; in pxtool_set_intr() local
280 rval = ENOTSUP; in pxtool_set_intr()
286 rval = ENOTSUP; in pxtool_set_intr()
300 rval = EINVAL; in pxtool_set_intr()
321 rval = EINVAL; in pxtool_set_intr()
349 rval = EINVAL; in pxtool_set_intr()
359 rval = SUCCESS; in pxtool_set_intr()
367 rval = SUCCESS; in pxtool_set_intr()
375 rval = ETIME; in pxtool_set_intr()
379 rval = EINVAL; in pxtool_set_intr()
383 rval = EIO; in pxtool_set_intr()
390 rval = EFAULT; in pxtool_set_intr()
392 return (rval); in pxtool_set_intr()
400 int rval = SUCCESS; in pxtool_intr() local
406 rval = pxtool_intr_info(dip, arg, mode); in pxtool_intr()
411 rval = pxtool_get_intr(dip, arg, mode); in pxtool_intr()
416 rval = pxtool_set_intr(dip, arg, mode); in pxtool_intr()
420 rval = ENOTTY; in pxtool_intr()
423 return (rval); in pxtool_intr()
430 int rval = SUCCESS; in pxtool_validate_barnum_bdf() local
434 rval = EINVAL; in pxtool_validate_barnum_bdf()
444 rval = EINVAL; in pxtool_validate_barnum_bdf()
447 return (rval); in pxtool_validate_barnum_bdf()
460 int rval; in pxtool_get_phys_addr() local
485 rval = px_xlate_reg(px_p, &dev_regspec, &xlated_regspec); in pxtool_get_phys_addr()
490 if (rval != DDI_SUCCESS) in pxtool_get_phys_addr()
511 int rval; in pxtool_get_bar() local
544 rval = pxtool_pcicfg_access(px_p, &cfg_prg, bar_p, PX_ISREAD); in pxtool_get_bar()
546 if (rval != SUCCESS) { in pxtool_get_bar()
548 return (rval); in pxtool_get_bar()
586 rval = pxtool_pcicfg_access(px_p, &cfg_prg, bar_p, PX_ISREAD); in pxtool_get_bar()
587 if (rval != SUCCESS) { in pxtool_get_bar()
589 return (rval); in pxtool_get_bar()
637 int rval = 0; in pxtool_dev_reg_ops() local
649 if ((rval = pxtool_dev_reg_ops_platchk(dip, &prg)) != SUCCESS) { in pxtool_dev_reg_ops()
658 if ((rval = pxtool_validate_barnum_bdf(&prg)) != SUCCESS) in pxtool_dev_reg_ops()
669 rval = EINVAL; in pxtool_dev_reg_ops()
706 rval = pxtool_pcicfg_access(px_p, &prg, &prg.data, write_flag); in pxtool_dev_reg_ops()
712 if ((rval = pxtool_get_bar(px_p, &prg, &bar, &space)) != SUCCESS) in pxtool_dev_reg_ops()
723 rval = EIO; in pxtool_dev_reg_ops()
740 rval = EIO; in pxtool_dev_reg_ops()
757 rval = pxtool_pciiomem_access(px_p, &prg, &prg.data, write_flag); in pxtool_dev_reg_ops()
764 rval = EFAULT; in pxtool_dev_reg_ops()
766 return (rval); in pxtool_dev_reg_ops()