Lines Matching refs:rc

86 	efx_rc_t rc;  in efx_nvram_init()  local
119 rc = ENOTSUP; in efx_nvram_init()
131 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_nvram_init()
133 return (rc); in efx_nvram_init()
143 efx_rc_t rc; in efx_nvram_test() local
148 if ((rc = envop->envo_test(enp)) != 0) in efx_nvram_test()
154 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_nvram_test()
156 return (rc); in efx_nvram_test()
169 efx_rc_t rc; in efx_nvram_size() local
174 if ((rc = envop->envo_type_to_partn(enp, type, &partn)) != 0) in efx_nvram_size()
177 if ((rc = envop->envo_partn_size(enp, partn, sizep)) != 0) in efx_nvram_size()
185 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_nvram_size()
188 return (rc); in efx_nvram_size()
200 efx_rc_t rc; variable
206 if ((rc = envop->envo_type_to_partn(enp, type, &partn)) != 0)
209 if ((rc = envop->envo_partn_get_version(enp, partn,
218 EFSYS_PROBE1(fail1, efx_rc_t, rc);
220 return (rc);
231 efx_rc_t rc; in efx_nvram_rw_start() local
236 if ((rc = envop->envo_type_to_partn(enp, type, &partn)) != 0) in efx_nvram_rw_start()
241 if ((rc = envop->envo_partn_rw_start(enp, partn, chunk_sizep)) != 0) in efx_nvram_rw_start()
251 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_nvram_rw_start()
253 return (rc); in efx_nvram_rw_start()
266 efx_rc_t rc; in efx_nvram_read_chunk() local
271 if ((rc = envop->envo_type_to_partn(enp, type, &partn)) != 0) in efx_nvram_read_chunk()
276 if ((rc = envop->envo_partn_read(enp, partn, offset, data, size)) != 0) in efx_nvram_read_chunk()
284 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_nvram_read_chunk()
286 return (rc); in efx_nvram_read_chunk()
304 efx_rc_t rc; in efx_nvram_read_backup() local
309 if ((rc = envop->envo_type_to_partn(enp, type, &partn)) != 0) in efx_nvram_read_backup()
314 if ((rc = envop->envo_partn_read_backup(enp, partn, offset, in efx_nvram_read_backup()
323 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_nvram_read_backup()
325 return (rc); in efx_nvram_read_backup()
337 efx_rc_t rc; in efx_nvram_erase() local
342 if ((rc = envop->envo_type_to_partn(enp, type, &partn)) != 0) in efx_nvram_erase()
347 if ((rc = envop->envo_partn_size(enp, partn, &size)) != 0) in efx_nvram_erase()
350 if ((rc = envop->envo_partn_erase(enp, partn, offset, size)) != 0) in efx_nvram_erase()
360 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_nvram_erase()
362 return (rc); in efx_nvram_erase()
375 efx_rc_t rc; in efx_nvram_write_chunk() local
380 if ((rc = envop->envo_type_to_partn(enp, type, &partn)) != 0) in efx_nvram_write_chunk()
385 if ((rc = envop->envo_partn_write(enp, partn, offset, data, size)) != 0) in efx_nvram_write_chunk()
393 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_nvram_write_chunk()
395 return (rc); in efx_nvram_write_chunk()
407 efx_rc_t rc; in efx_nvram_rw_finish() local
412 if ((rc = envop->envo_type_to_partn(enp, type, &partn)) != 0) in efx_nvram_rw_finish()
417 if ((rc = envop->envo_partn_rw_finish(enp, partn, &verify_result)) != 0) in efx_nvram_rw_finish()
432 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_nvram_rw_finish()
438 return (rc); in efx_nvram_rw_finish()
449 efx_rc_t rc; variable
455 if ((rc = envop->envo_type_to_partn(enp, type, &partn)) != 0)
465 if ((rc = envop->envo_partn_set_version(enp, partn, version)) != 0)
473 EFSYS_PROBE1(fail1, efx_rc_t, rc);
475 return (rc);
488 efx_rc_t rc; in efx_nvram_validate() local
494 if ((rc = envop->envo_type_to_partn(enp, type, &partn)) != 0) in efx_nvram_validate()
498 if ((rc = envop->envo_buffer_validate(partn, in efx_nvram_validate()
508 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_nvram_validate()
510 return (rc); in efx_nvram_validate()
546 efx_rc_t rc; in efx_mcdi_nvram_partitions() local
557 rc = req.emr_rc; in efx_mcdi_nvram_partitions()
562 rc = EMSGSIZE; in efx_mcdi_nvram_partitions()
568 rc = ENOENT; in efx_mcdi_nvram_partitions()
573 rc = ENOSPC; in efx_mcdi_nvram_partitions()
590 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_mcdi_nvram_partitions()
592 return (rc); in efx_mcdi_nvram_partitions()
607 efx_rc_t rc; variable
620 rc = req.emr_rc;
625 rc = EMSGSIZE;
660 rc = ENOSPC;
680 EFSYS_PROBE1(fail1, efx_rc_t, rc);
682 return (rc);
697 efx_rc_t rc; in efx_mcdi_nvram_info() local
710 rc = req.emr_rc; in efx_mcdi_nvram_info()
715 rc = EMSGSIZE; in efx_mcdi_nvram_info()
740 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_mcdi_nvram_info()
742 return (rc); in efx_mcdi_nvram_info()
757 efx_rc_t rc; in efx_mcdi_nvram_update_start() local
773 rc = req.emr_rc; in efx_mcdi_nvram_update_start()
780 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_mcdi_nvram_update_start()
782 return (rc); in efx_mcdi_nvram_update_start()
797 efx_rc_t rc; in efx_mcdi_nvram_read() local
800 rc = EINVAL; in efx_mcdi_nvram_read()
818 rc = req.emr_rc; in efx_mcdi_nvram_read()
823 rc = EMSGSIZE; in efx_mcdi_nvram_read()
836 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_mcdi_nvram_read()
838 return (rc); in efx_mcdi_nvram_read()
851 efx_rc_t rc; in efx_mcdi_nvram_erase() local
866 rc = req.emr_rc; in efx_mcdi_nvram_erase()
873 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_mcdi_nvram_erase()
875 return (rc); in efx_mcdi_nvram_erase()
893 efx_rc_t rc; in efx_mcdi_nvram_write() local
902 rc = EINVAL; in efx_mcdi_nvram_write()
908 rc = ENOMEM; in efx_mcdi_nvram_write()
929 rc = req.emr_rc; in efx_mcdi_nvram_write()
943 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_mcdi_nvram_write()
945 return (rc); in efx_mcdi_nvram_write()
964 efx_rc_t rc; in efx_mcdi_nvram_update_finish() local
981 rc = req.emr_rc; in efx_mcdi_nvram_update_finish()
989 rc = EMSGSIZE; in efx_mcdi_nvram_update_finish()
1000 rc = EINVAL; in efx_mcdi_nvram_update_finish()
1014 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_mcdi_nvram_update_finish()
1020 return (rc); in efx_mcdi_nvram_update_finish()
1034 efx_rc_t rc; in efx_mcdi_nvram_test() local
1047 rc = req.emr_rc; in efx_mcdi_nvram_test()
1052 rc = EMSGSIZE; in efx_mcdi_nvram_test()
1060 rc = (EINVAL); in efx_mcdi_nvram_test()
1071 EFSYS_PROBE1(fail1, efx_rc_t, rc); in efx_mcdi_nvram_test()
1073 return (rc); in efx_mcdi_nvram_test()