Lines Matching refs:rc
63 int rc = 0;
69 rc = copyout(fake_dynamic_cfg_nvram, ip->u.nvram.data,
71 return (rc);
74 if ((rc = efx_nvram_rw_start(enp, type, &chunk_size)) != 0)
84 rc = copyin(ip->u.nvram.data + off, buf, len);
85 if (rc != 0)
87 rc = efx_nvram_write_chunk(enp, type,
89 if (rc != 0)
92 rc = efx_nvram_read_chunk(enp, type,
94 if (rc != 0)
96 rc = copyout(buf, ip->u.nvram.data + off, len);
97 if (rc != 0)
109 return (rc);
118 int rc = 0;
123 if ((rc = efx_nvram_rw_start(enp, type, &chunk_size)) != 0)
124 return (rc);
126 rc = efx_nvram_erase(enp, type);
129 return (rc);
151 int rc = 0;
170 if ((rc = efx_nvram_size(enp, type, &size)) != 0)
171 return (rc);
177 rc = sfxge_nvram_rw(sc, ip, type, B_FALSE);
180 rc = sfxge_nvram_rw(sc, ip, type, B_TRUE);
183 rc = sfxge_nvram_erase(sc, type);
186 rc = efx_nvram_get_version(enp, type, &ip->u.nvram.subtype,
190 rc = efx_nvram_set_version(enp, type, &ip->u.nvram.version[0]);
193 rc = EOPNOTSUPP;
197 return (rc);