Lines Matching defs:retval
1311 int retval = 0;
1317 retval = ENXIO;
1323 retval = ENOMEM;
1364 if (retval != 0 && ifp != NULL) {
1366 ifp->if_name, ifp->if_unit, if_filter->iff_name, retval);
1368 if (retval != 0 && filter != NULL)
1371 return (retval);
1377 int retval = 0;
1424 retval = EINVAL;
1449 if (retval != 0) {
1451 filter->filt_name, retval);
1453 return (retval);
3225 int retval = 0;
3242 retval = ENXIO;
3260 retval = ENXIO;
3277 retval = 0;
3279 retval = preoutp(ifp, proto_family, &m, dest, route,
3282 if (retval != 0) {
3283 if (retval == EJUSTRETURN)
3292 retval = mac_ifnet_check_transmit(ifp, m, proto_family,
3294 if (retval) {
3333 retval = ifp->if_framer(ifp, &m, dest, dst_linkaddr,
3340 if (retval) {
3341 if (retval != EJUSTRETURN)
3364 retval = dlil_interface_filters_output(ifp,
3366 if (retval != 0) {
3367 if (retval != EJUSTRETURN)
3398 retval = EMSGSIZE;
3405 retval = EMSGSIZE;
3424 retval = (*ifp->if_output)(ifp, m);
3425 if (retval == EQFULL || retval == EQSUSPENDED) {
3427 adv->code = (retval == EQFULL ?
3431 retval = 0;
3433 if (retval && dlil_verbose) {
3434 printf("%s: output error on %s%d retval = %d\n",
3436 retval);
3459 retval = (*ifp->if_output)(ifp, send_head);
3460 if (retval == EQFULL || retval == EQSUSPENDED) {
3462 adv->code = (retval == EQFULL ?
3465 retval = 0;
3467 if (retval && dlil_verbose) {
3468 printf("%s: output error on %s%d retval = %d\n",
3469 __func__, ifp->if_name, ifp->if_unit, retval);
3481 if (retval == EJUSTRETURN)
3482 retval = 0;
3486 return (retval);
3494 int retval = EOPNOTSUPP;
3521 /* Only update retval if no one has handled the ioctl */
3522 if (retval == EOPNOTSUPP || result == EJUSTRETURN) {
3525 retval = result;
3526 if (retval != 0 && retval != EOPNOTSUPP) {
3557 /* Only update retval if no one has handled the ioctl */
3558 if (retval == EOPNOTSUPP || result == EJUSTRETURN) {
3561 retval = result;
3562 if (retval && retval != EOPNOTSUPP)
3568 /* retval is either 0 or EOPNOTSUPP */
3578 /* Only update retval if no one has handled the ioctl */
3579 if (retval == EOPNOTSUPP || result == EJUSTRETURN) {
3582 retval = result;
3583 if (retval && retval != EOPNOTSUPP) {
3589 if (retval == EJUSTRETURN)
3590 retval = 0;
3594 return (retval);
3954 int retval = 0;
3972 retval = ifp->if_add_proto(ifp, proto->protocol_family, demux_list,
3974 if (retval) {
3976 return (retval);
4005 return (retval);
4012 int retval = 0;
4017 retval = EINVAL;
4022 retval = ENXIO;
4028 retval = ENOMEM;
4045 retval = dlil_attach_protocol_internal(ifproto,
4054 if (retval != 0 && retval != EEXIST && ifp != NULL) {
4056 ifp->if_name, ifp->if_unit, protocol, retval);
4059 if (retval != 0 && ifproto != NULL)
4061 return (retval);
4068 int retval = 0;
4073 retval = EINVAL;
4078 retval = ENXIO;
4084 retval = ENOMEM;
4101 retval = dlil_attach_protocol_internal(ifproto,
4110 if (retval != 0 && retval != EEXIST && ifp != NULL) {
4112 ifp->if_name, ifp->if_unit, protocol, retval);
4115 if (retval != 0 && ifproto != NULL)
4117 return (retval);
4124 int retval = 0;
4127 retval = EINVAL;
4135 retval = ENXIO;
4182 return (retval);