Lines Matching refs:eattr
111 dladm_ether_attr_t *eattr, ether_spdx_t *spdx_stat)
118 eattr->le_spdx = NULL;
131 free(eattr->le_spdx);
132 eattr->le_num_spdx = 0;
139 ptr = realloc(eattr->le_spdx,
142 eattr->le_spdx = ptr;
144 free(eattr->le_spdx);
145 eattr->le_num_spdx = 0;
148 eattr->le_spdx[nspdx - 1] = spdx_stat[i].eth_spdx;
150 eattr->le_num_spdx = nspdx;
160 dladm_ether_autoneg2str(char *buf, size_t buflen, dladm_ether_info_t *eattr,
163 boolean_t autoneg = eattr->lei_attr[ptype].le_autoneg;
175 dladm_ether_pause2str(char *buf, size_t buflen, dladm_ether_info_t *eattr,
178 boolean_t pause = eattr->lei_attr[ptype].le_pause;
179 boolean_t asmpause = eattr->lei_attr[ptype].le_asmpause;
200 dladm_ether_spdx2str(char *buf, size_t buflen, dladm_ether_info_t *eattr,
211 spdx = eattr->lei_attr[ptype].le_spdx;
212 nspdx = eattr->lei_attr[ptype].le_num_spdx;
271 dladm_ether_info_t *eattr)
279 bzero(eattr, sizeof (*eattr));
281 eattr->lei_linkname, sizeof (eattr->lei_linkname));
286 eattr->lei_attr[CURRENT].le_num_spdx = 1;
287 eattr->lei_attr[CURRENT].le_spdx = malloc(sizeof (dladm_ether_spdx_t));
288 if (eattr->lei_attr[CURRENT].le_spdx == NULL) {
301 eattr->lei_attr[CURRENT].le_spdx->lesd_speed = (int)(sp64/1000000ull);
302 eattr->lei_attr[CURRENT].le_spdx->lesd_duplex = link_duplex;
304 status = dladm_get_state(handle, linkid, &eattr->lei_state);
326 eattr->lei_attr[i].le_autoneg = (autoneg != 0);
327 eattr->lei_attr[i].le_pause = (pause != 0);
328 eattr->lei_attr[i].le_asmpause = (asmpause != 0);
336 eattr->lei_attr[i].le_fault = (pause != 0);
339 status = i_dladm_get_spdx(handle, linkid, &eattr->lei_attr[i],
344 eattr->lei_attr[CURRENT].le_fault =
345 eattr->lei_attr[ADV].le_fault || eattr->lei_attr[PEERADV].le_fault;
348 dladm_ether_info_done(eattr);
353 dladm_ether_info_done(dladm_ether_info_t *eattr)
358 free(eattr->lei_attr[i].le_spdx);