Lines Matching refs:mac
120 static void fcoe_init_wwn_from_mac(uint8_t *wwn, uint8_t *mac,
946 fcoe_mac_t *mac = NULL; in fcoe_lookup_mac_by_id() local
949 for (mac = list_head(&fcoe_global_ss->ss_mac_list); mac; in fcoe_lookup_mac_by_id()
950 mac = list_next(&fcoe_global_ss->ss_mac_list, mac)) { in fcoe_lookup_mac_by_id()
951 if (linkid != mac->fm_linkid) { in fcoe_lookup_mac_by_id()
954 return (mac); in fcoe_lookup_mac_by_id()
965 fcoe_mac_t *mac = NULL; in fcoe_mac_existed() local
968 for (mac = list_head(&fcoe_global_ss->ss_mac_list); mac; in fcoe_mac_existed()
969 mac = list_next(&fcoe_global_ss->ss_mac_list, mac)) { in fcoe_mac_existed()
970 if (mac == pmac) { in fcoe_mac_existed()
981 fcoe_init_wwn_from_mac(uint8_t *wwn, uint8_t *mac, int is_pwwn, uint8_t idx) in fcoe_init_wwn_from_mac() argument
984 ASSERT(mac != NULL); in fcoe_init_wwn_from_mac()
987 bcopy(mac, wwn + 2, ETHERADDRL); in fcoe_init_wwn_from_mac()
996 fcoe_mac_t *mac = NULL; in fcoe_create_mac_by_id() local
999 mac = fcoe_lookup_mac_by_id(linkid); in fcoe_create_mac_by_id()
1000 if (mac != NULL) { in fcoe_create_mac_by_id()
1003 return (mac); in fcoe_create_mac_by_id()
1006 mac = kmem_zalloc(sizeof (fcoe_mac_t), KM_SLEEP); in fcoe_create_mac_by_id()
1007 mac->fm_linkid = linkid; in fcoe_create_mac_by_id()
1008 mac->fm_flags = 0; in fcoe_create_mac_by_id()
1009 mac->fm_ss = fcoe_global_ss; in fcoe_create_mac_by_id()
1010 list_insert_tail(&mac->fm_ss->ss_mac_list, mac); in fcoe_create_mac_by_id()
1012 return (mac); in fcoe_create_mac_by_id()
1016 fcoe_destroy_mac(fcoe_mac_t *mac) in fcoe_destroy_mac() argument
1018 ASSERT(mac != NULL); in fcoe_destroy_mac()
1019 list_remove(&mac->fm_ss->ss_mac_list, mac); in fcoe_destroy_mac()
1020 kmem_free(mac, sizeof (fcoe_mac_t)); in fcoe_destroy_mac()
1030 fcoe_get_mblk(fcoe_mac_t *mac, uint32_t raw_frame_size) in fcoe_get_mblk() argument
1060 fcoe_mac_t *mac = NULL; in fcoe_watchdog() local
1071 mac = EPORT2MAC(fmi->fmi_frame->frm_eport); in fcoe_watchdog()
1072 mac->fm_client.ect_release_sol_frame(fmi->fmi_frame); in fcoe_watchdog()
1075 mac->fm_frm_cnt--; in fcoe_watchdog()
1254 fcoe_mac_t *mac; in fcoe_cmp_wwn() local
1261 for (mac = list_head(&fcoe_global_ss->ss_mac_list); mac; in fcoe_cmp_wwn()
1262 mac = list_next(&fcoe_global_ss->ss_mac_list, mac)) { in fcoe_cmp_wwn()
1263 if (mac == checkedmac) { in fcoe_cmp_wwn()
1266 nwwn = mac->fm_eport.eport_nodewwn; in fcoe_cmp_wwn()
1267 pwwn = mac->fm_eport.eport_portwwn; in fcoe_cmp_wwn()
1283 fcoe_mac_t *mac = NULL; in fcoe_get_port_list() local
1289 for (mac = list_head(&fcoe_global_ss->ss_mac_list); mac; in fcoe_get_port_list()
1290 mac = list_next(&fcoe_global_ss->ss_mac_list, mac)) { in fcoe_get_port_list()
1292 bcopy(mac->fm_eport.eport_portwwn, in fcoe_get_port_list()
1294 ports[i].fpi_mac_linkid = mac->fm_linkid; in fcoe_get_port_list()
1295 bcopy(mac->fm_current_addr, in fcoe_get_port_list()
1297 bcopy(mac->fm_primary_addr, in fcoe_get_port_list()
1300 EPORT_CLT_TYPE(&mac->fm_eport); in fcoe_get_port_list()
1302 mac->fm_eport.eport_mtu; in fcoe_get_port_list()
1304 mac->fm_promisc_handle != NULL ? 1 : 0; in fcoe_get_port_list()