Lines Matching refs:rc
91 int rc;
116 rc = EINVAL;
130 rc = EINVAL;
140 rc = ENOTSUP;
161 EFSYS_PROBE1(fail1, efx_rc_t, rc);
162 return (rc);
186 efx_rc_t rc;
207 rc = ENOSPC;
214 rc = ENOSPC;
224 rc = EINVAL;
238 EFSYS_PROBE1(fail1, efx_rc_t, rc);
240 return (rc);
255 efx_rc_t rc = 0;
265 rc = efx_dhcp_walk_tags(tagpp, buffer_sizep,
267 if (rc == 0) {
277 while (rc == 0) {
281 rc = ENOSPC;
289 rc = ENOENT;
295 rc = ENOSPC;
304 rc = ENOSPC;
313 rc = ENOENT;
322 return (rc);
329 EFSYS_PROBE1(fail1, efx_rc_t, rc);
331 return (rc);
347 efx_rc_t rc;
351 rc = efx_dhcp_walk_tags(&tagp, &len, opt);
352 if (rc == 0) {
358 } else if (rc != ENOENT) {
362 return (rc);
365 EFSYS_PROBE1(fail1, efx_rc_t, rc);
367 return (rc);
382 efx_rc_t rc;
386 rc = efx_dhcp_walk_tags(&endp, &len, EFX_DHCP_END);
387 if (rc == 0)
389 else if (rc != ENOENT)
392 return (rc);
395 EFSYS_PROBE1(fail1, efx_rc_t, rc);
397 return (rc);
411 efx_rc_t rc;
421 rc = EINVAL;
425 rc = efx_dhcp_walk_tags(&startp, &len, opt);
426 if (rc != 0)
437 rc = efx_dhcp_walk_tags(&encapp, &len,
439 if (rc != 0)
456 rc = EINVAL;
461 rc = EINVAL;
477 EFSYS_PROBE1(fail1, efx_rc_t, rc);
479 return (rc);
514 efx_rc_t rc;
524 rc = EINVAL;
529 rc = EINVAL;
534 rc = EINVAL;
540 rc = efx_dhcp_walk_tags(&endp, &available_space, EFX_DHCP_END);
541 if (rc != 0)
547 rc = efx_dhcp_walk_tags(&searchp, &search_size,
549 if (rc == 0) {
554 rc = efx_dhcp_walk_tags(&searchp, &search_size,
556 if (rc != ENOENT) {
557 rc = EINVAL;
565 rc = E2BIG;
572 } else if (rc == ENOENT) {
579 rc = efx_dhcp_walk_tags(&searchp, &search_size,
581 if (rc != ENOENT) {
582 rc = EINVAL;
597 rc = ENOMEM;
636 EFSYS_PROBE1(fail1, efx_rc_t, rc);
638 return (rc);
654 efx_rc_t rc;
661 rc = EINVAL;
666 rc = EINVAL;
671 rc = EINVAL;
681 rc = efx_dhcp_walk_tags(&endp, &available_space,
683 if (rc != 0)
687 rc = EINVAL;
697 rc = efx_dhcp_walk_tags(&encapp, &following_encap,
699 if (rc != 0)
708 rc = E2BIG;
746 EFSYS_PROBE1(fail1, efx_rc_t, rc);
748 return (rc);
768 efx_rc_t rc;
772 rc = ENOSPC;
777 rc = efx_dhcp_verify(sector, sector_length,
781 if (rc != 0)
787 rc = ENOENT;
793 if (rc != 0 || used_bytes == 0) {
821 rc = ENOSPC;
850 EFSYS_PROBE1(fail1, efx_rc_t, rc);
852 return (rc);
866 efx_rc_t rc;
871 rc = ENOSPC;
880 rc = efx_nvram_size(enp, EFX_NVRAM_BOOTROM_CFG, &partn_length);
881 if (rc != 0)
885 rc = efx_bootcfg_sector_info(enp, sector_number,
887 if (rc != 0)
891 rc = EINVAL;
900 rc = EFBIG;
913 rc = ENOMEM;
919 if ((rc = efx_nvram_rw_start(enp, EFX_NVRAM_BOOTROM_CFG, NULL)) != 0)
922 if ((rc = efx_nvram_read_chunk(enp, EFX_NVRAM_BOOTROM_CFG,
928 if ((rc = efx_nvram_rw_finish(enp, EFX_NVRAM_BOOTROM_CFG, NULL)) != 0)
932 rc = efx_dhcp_verify(payload, sector_length,
934 if (rc != 0 || used_bytes == 0) {
963 rc = ENOSPC;
1008 EFSYS_PROBE1(fail1, efx_rc_t, rc);
1010 return (rc);
1025 efx_rc_t rc;
1034 rc = efx_nvram_size(enp, EFX_NVRAM_BOOTROM_CFG, &partn_length);
1035 if (rc != 0)
1039 rc = efx_bootcfg_sector_info(enp, sector_number,
1041 if (rc != 0)
1049 rc = EFBIG;
1053 if ((rc = efx_dhcp_verify(data, size, &used_bytes)) != 0)
1063 rc = ENOENT;
1069 rc = ENOSPC;
1080 rc = ENOMEM;
1084 rc = efx_nvram_rw_start(enp, EFX_NVRAM_BOOTROM_CFG, NULL);
1085 if (rc != 0)
1089 rc = efx_nvram_read_chunk(enp, EFX_NVRAM_BOOTROM_CFG, 0,
1091 if (rc != 0)
1104 if ((rc = efx_nvram_erase(enp, EFX_NVRAM_BOOTROM_CFG)) != 0)
1107 if ((rc = efx_nvram_write_chunk(enp, EFX_NVRAM_BOOTROM_CFG,
1111 if ((rc = efx_nvram_rw_finish(enp, EFX_NVRAM_BOOTROM_CFG, NULL)) != 0)
1145 EFSYS_PROBE1(fail1, efx_rc_t, rc);
1147 return (rc);