Lines Matching refs:rc

96 	efx_rc_t rc;  in efx_vpd_init()  local
129 rc = ENOTSUP; in efx_vpd_init()
134 if ((rc = evpdop->evpdo_init(enp)) != 0) in efx_vpd_init()
146 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_vpd_init()
148 return (rc); in efx_vpd_init()
157 efx_rc_t rc; in efx_vpd_size() local
162 if ((rc = evpdop->evpdo_size(enp, sizep)) != 0) in efx_vpd_size()
168 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_vpd_size()
170 return (rc); in efx_vpd_size()
180 efx_rc_t rc; in efx_vpd_read() local
185 if ((rc = evpdop->evpdo_read(enp, data, size)) != 0) in efx_vpd_read()
191 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_vpd_read()
193 return (rc); in efx_vpd_read()
203 efx_rc_t rc; in efx_vpd_verify() local
208 if ((rc = evpdop->evpdo_verify(enp, data, size)) != 0) in efx_vpd_verify()
214 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_vpd_verify()
216 return (rc); in efx_vpd_verify()
226 efx_rc_t rc; in efx_vpd_reinit() local
232 rc = ENOTSUP; in efx_vpd_reinit()
236 if ((rc = evpdop->evpdo_reinit(enp, data, size)) != 0) in efx_vpd_reinit()
244 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_vpd_reinit()
246 return (rc); in efx_vpd_reinit()
257 efx_rc_t rc; in efx_vpd_get() local
262 if ((rc = evpdop->evpdo_get(enp, data, size, evvp)) != 0) { in efx_vpd_get()
263 if (rc == ENOENT) in efx_vpd_get()
264 return (rc); in efx_vpd_get()
272 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_vpd_get()
274 return (rc); in efx_vpd_get()
285 efx_rc_t rc; in efx_vpd_set() local
290 if ((rc = evpdop->evpdo_set(enp, data, size, evvp)) != 0) in efx_vpd_set()
296 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_vpd_set()
298 return (rc); in efx_vpd_set()
310 efx_rc_t rc; in efx_vpd_next() local
315 if ((rc = evpdop->evpdo_next(enp, data, size, evvp, contp)) != 0) in efx_vpd_next()
321 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_vpd_next()
323 return (rc); in efx_vpd_next()
333 efx_rc_t rc; in efx_vpd_write() local
338 if ((rc = evpdop->evpdo_write(enp, data, size)) != 0) in efx_vpd_write()
344 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_vpd_write()
346 return (rc); in efx_vpd_write()
362 efx_rc_t rc; in efx_vpd_next_tag() local
365 rc = EFAULT; in efx_vpd_next_tag()
384 rc = EFAULT; in efx_vpd_next_tag()
397 rc = EFAULT; in efx_vpd_next_tag()
402 rc = EFAULT; in efx_vpd_next_tag()
412 rc = EFAULT; in efx_vpd_next_tag()
429 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_vpd_next_tag()
431 return (rc); in efx_vpd_next_tag()
444 efx_rc_t rc; in efx_vpd_next_keyword() local
447 rc = EFAULT; in efx_vpd_next_keyword()
455 rc = EFAULT; in efx_vpd_next_keyword()
467 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_vpd_next_keyword()
469 return (rc); in efx_vpd_next_keyword()
481 efx_rc_t rc; in efx_vpd_hunk_length() local
486 if ((rc = efx_vpd_next_tag(data, size, &offset, in efx_vpd_hunk_length()
499 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_vpd_hunk_length()
501 return (rc); in efx_vpd_hunk_length()
519 efx_rc_t rc; in efx_vpd_hunk_verify() local
528 if ((rc = efx_vpd_next_tag(data, size, &offset, in efx_vpd_hunk_verify()
539 rc = EFAULT; in efx_vpd_hunk_verify()
543 if ((rc = efx_vpd_next_keyword(data + offset, in efx_vpd_hunk_verify()
553 rc = EFAULT; in efx_vpd_hunk_verify()
566 rc = EFAULT; in efx_vpd_hunk_verify()
584 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_vpd_hunk_verify()
586 return (rc); in efx_vpd_hunk_verify()
615 efx_rc_t rc; in efx_vpd_hunk_reinit() local
618 rc = ENOSPC; in efx_vpd_hunk_reinit()
648 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_vpd_hunk_reinit()
650 return (rc); in efx_vpd_hunk_reinit()
671 efx_rc_t rc; in efx_vpd_hunk_next() local
676 if ((rc = efx_vpd_next_tag(data, size, &offset, in efx_vpd_hunk_next()
697 if ((rc = efx_vpd_next_keyword(data + offset, in efx_vpd_hunk_next()
727 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_vpd_hunk_next()
729 return (rc); in efx_vpd_hunk_next()
747 efx_rc_t rc; in efx_vpd_hunk_get() local
752 if ((rc = efx_vpd_next_tag(data, size, &offset, in efx_vpd_hunk_get()
768 if ((rc = efx_vpd_next_keyword(data + offset, in efx_vpd_hunk_get()
789 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_vpd_hunk_get()
791 return (rc); in efx_vpd_hunk_get()
813 efx_rc_t rc; in efx_vpd_hunk_set() local
818 rc = EINVAL; in efx_vpd_hunk_set()
824 rc = EINVAL; in efx_vpd_hunk_set()
831 rc = EINVAL; in efx_vpd_hunk_set()
837 rc = EINVAL; in efx_vpd_hunk_set()
842 if ((rc = efx_vpd_hunk_length(data, size, &used)) != 0) in efx_vpd_hunk_set()
849 if ((rc = efx_vpd_next_tag(data, size, &offset, in efx_vpd_hunk_set()
861 rc = EINVAL; in efx_vpd_hunk_set()
879 if ((rc = efx_vpd_next_keyword(data + offset, in efx_vpd_hunk_set()
917 rc = ENOSPC; in efx_vpd_hunk_set()
949 rc = ENOENT; in efx_vpd_hunk_set()
957 if ((rc = efx_vpd_next_tag(data, size, &offset, in efx_vpd_hunk_set()
964 if ((rc = efx_vpd_next_keyword(data + offset, in efx_vpd_hunk_set()
1003 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_vpd_hunk_set()
1005 return (rc); in efx_vpd_hunk_set()