Lines Matching refs:ip
56 sfxge_nvram_rw(struct sfxge_softc *sc, sfxge_ioc_t *ip, efx_nvram_type_t type,
60 size_t total_size = ip->u.nvram.size;
69 rc = copyout(fake_dynamic_cfg_nvram, ip->u.nvram.data,
84 rc = copyin(ip->u.nvram.data + off, buf, len);
88 ip->u.nvram.offset + off, buf, len);
93 ip->u.nvram.offset + off, buf, len);
96 rc = copyout(buf, ip->u.nvram.data + off, len);
133 sfxge_nvram_ioctl(struct sfxge_softc *sc, sfxge_ioc_t *ip)
153 if (ip->u.nvram.type > SFXGE_NVRAM_TYPE_DYNAMIC_CFG)
155 type = nvram_types[ip->u.nvram.type];
157 (ip->u.nvram.op == SFXGE_NVRAM_OP_WRITE ||
158 ip->u.nvram.op == SFXGE_NVRAM_OP_ERASE ||
159 ip->u.nvram.op == SFXGE_NVRAM_OP_SET_VER))
162 switch (ip->u.nvram.op) {
168 ip->u.nvram.size = sizeof(fake_dynamic_cfg_nvram);
172 ip->u.nvram.size = size;
177 rc = sfxge_nvram_rw(sc, ip, type, B_FALSE);
180 rc = sfxge_nvram_rw(sc, ip, type, B_TRUE);
186 rc = efx_nvram_get_version(enp, type, &ip->u.nvram.subtype,
187 &ip->u.nvram.version[0]);
190 rc = efx_nvram_set_version(enp, type, &ip->u.nvram.version[0]);