Lines Matching refs:rc
59 efx_rc_t rc;
65 if ((rc = siena_nvram_partn_size(enp, partn, &size)) != 0)
69 rc = EINVAL;
75 rc = ENOMEM;
79 if ((rc = siena_nvram_partn_read(enp, partn, 0,
86 rc = EINVAL;
100 rc = EINVAL;
107 if ((rc = siena_nvram_partn_read(enp, partn, SIENA_NVRAM_CHUNK,
118 rc = EINVAL;
128 rc = ENOMEM;
161 EFSYS_PROBE1(fail1, efx_rc_t, rc);
163 return (rc);
174 efx_rc_t rc;
187 if ((rc = siena_vpd_get_static(enp, partn, &svpd, &size)) != 0)
191 if ((rc = efx_vpd_hunk_verify(svpd, size, NULL)) != 0)
205 EFSYS_PROBE1(fail1, efx_rc_t, rc);
207 return (rc);
217 efx_rc_t rc;
233 if ((rc = siena_nvram_partn_size(enp, partn, sizep)) != 0)
239 EFSYS_PROBE1(fail1, efx_rc_t, rc);
241 return (rc);
256 efx_rc_t rc;
264 if ((rc = siena_nvram_get_dynamic_cfg(enp, dcfg_partn,
272 rc = EFAULT; /* Invalid dcfg: header bigger than sector */
291 EFSYS_PROBE1(fail1, efx_rc_t, rc);
293 return (rc);
309 efx_rc_t rc;
319 if ((rc = efx_vpd_hunk_verify(data, size, NULL)) != 0)
332 if ((rc = efx_vpd_hunk_next(data, size, &dtag,
348 if ((rc = efx_vpd_hunk_next(
357 rc = EEXIST;
373 EFSYS_PROBE1(fail1, efx_rc_t, rc);
375 return (rc);
385 efx_rc_t rc;
396 rc = efx_vpd_hunk_get(enp->en_u.siena.enu_svpd,
399 if (rc == 0)
401 else if (rc == ENOENT)
407 if ((rc = efx_vpd_hunk_reinit(data, size, wantpid)) != 0)
415 EFSYS_PROBE1(fail1, efx_rc_t, rc);
417 return (rc);
429 efx_rc_t rc;
435 if ((rc = efx_vpd_hunk_get(enp->en_u.siena.enu_svpd,
442 } else if (rc != ENOENT)
447 if ((rc = efx_vpd_hunk_get(data, size, evvp->evv_tag,
449 if (rc == ENOENT)
450 return (rc);
463 EFSYS_PROBE1(fail1, efx_rc_t, rc);
465 return (rc);
475 efx_rc_t rc;
484 if ((rc = efx_vpd_hunk_get(enp->en_u.siena.enu_svpd,
487 rc = EACCES;
492 if ((rc = efx_vpd_hunk_set(data, size, evvp)) != 0)
500 EFSYS_PROBE1(fail1, efx_rc_t, rc);
502 return (rc);
533 efx_rc_t rc;
538 if ((rc = efx_vpd_hunk_length(data, size, &vpd_length)) != 0)
546 if ((rc = siena_nvram_partn_size(enp, dcfg_partn, &partn_size)) != 0)
549 if ((rc = siena_nvram_partn_lock(enp, dcfg_partn)) != 0)
552 if ((rc = siena_nvram_get_dynamic_cfg(enp, dcfg_partn,
560 rc = ENOSPC;
577 if ((rc = siena_nvram_partn_erase(enp, dcfg_partn, 0, partn_size)) != 0)
581 if ((rc = siena_nvram_partn_write(enp, dcfg_partn, 0, (caddr_t)dcfg,
608 EFSYS_PROBE1(fail1, efx_rc_t, rc);
610 return (rc);