Lines Matching refs:rc
62 int rc = 0;
68 rc = copyout(fake_dynamic_cfg_nvram, ip->u.nvram.data,
70 return (rc);
73 if ((rc = efx_nvram_rw_start(enp, type, &chunk_size)) != 0)
83 rc = copyin(ip->u.nvram.data + off, buf, len);
84 if (rc != 0)
86 rc = efx_nvram_write_chunk(enp, type,
88 if (rc != 0)
91 rc = efx_nvram_read_chunk(enp, type,
93 if (rc != 0)
95 rc = copyout(buf, ip->u.nvram.data + off, len);
96 if (rc != 0)
108 return (rc);
116 int rc = 0;
121 if ((rc = efx_nvram_rw_start(enp, type, &chunk_size)) != 0)
122 return (rc);
124 rc = efx_nvram_erase(enp, type);
127 return (rc);
149 int rc = 0;
168 if ((rc = efx_nvram_size(enp, type, &size)) != 0)
169 return (rc);
175 rc = sfxge_nvram_rw(sc, ip, type, B_FALSE);
178 rc = sfxge_nvram_rw(sc, ip, type, B_TRUE);
181 rc = sfxge_nvram_erase(sc, type);
184 rc = efx_nvram_get_version(enp, type, &ip->u.nvram.subtype,
188 rc = efx_nvram_set_version(enp, type, &ip->u.nvram.version[0]);
191 rc = EOPNOTSUPP;
195 return (rc);