Lines Matching defs:mi
839 media_active(const struct media_info * mi)
841 if ((mi->mi_status & IFM_AVALID) == 0) {
844 return ((mi->mi_status & IFM_ACTIVE) != 0);
848 media_full_duplex(const struct media_info * mi)
850 return ((mi->mi_active & IFM_FDX) != 0);
854 media_speed(const struct media_info * mi)
856 return (link_speed(mi->mi_active));
863 struct media_info mi;
865 bzero(&mi, sizeof(mi));
869 mi.mi_status = ifmr.ifm_status;
870 mi.mi_active = ifmr.ifm_active;
873 return (mi);