Lines Matching refs:mac

610 	DP(BNX2X_MSG_SP, "Checking MAC %pM for ADD command\n", data->mac.mac);  in bnx2x_check_mac_add()
612 if (!is_valid_ether_addr(data->mac.mac)) in bnx2x_check_mac_add()
617 if (ether_addr_equal(data->mac.mac, pos->u.mac.mac) && in bnx2x_check_mac_add()
618 (data->mac.is_inner_mac == pos->u.mac.is_inner_mac)) in bnx2x_check_mac_add()
647 DP(BNX2X_MSG_SP, "Checking MAC %pM for DEL command\n", data->mac.mac); in bnx2x_check_mac_del()
650 if (ether_addr_equal(data->mac.mac, pos->u.mac.mac) && in bnx2x_check_mac_del()
651 (data->mac.is_inner_mac == pos->u.mac.is_inner_mac)) in bnx2x_check_mac_del()
817 u8 *mac = elem->cmd_data.vlan_mac.u.mac.mac; in bnx2x_set_one_mac_e2() local
838 bnx2x_set_mac_in_nig(bp, add, mac, in bnx2x_set_one_mac_e2()
841 bnx2x_set_mac_in_nig(bp, add, mac, in bnx2x_set_one_mac_e2()
851 &rule_entry->mac.header); in bnx2x_set_one_mac_e2()
854 (add ? "add" : "delete"), mac, raw->cl_id); in bnx2x_set_one_mac_e2()
857 bnx2x_set_fw_mac_addr(&rule_entry->mac.mac_msb, in bnx2x_set_one_mac_e2()
858 &rule_entry->mac.mac_mid, in bnx2x_set_one_mac_e2()
859 &rule_entry->mac.mac_lsb, mac); in bnx2x_set_one_mac_e2()
860 rule_entry->mac.inner_mac = in bnx2x_set_one_mac_e2()
861 cpu_to_le16(elem->cmd_data.vlan_mac.u.mac.is_inner_mac); in bnx2x_set_one_mac_e2()
872 &rule_entry->mac.header); in bnx2x_set_one_mac_e2()
875 bnx2x_set_fw_mac_addr(&rule_entry->mac.mac_msb, in bnx2x_set_one_mac_e2()
876 &rule_entry->mac.mac_mid, in bnx2x_set_one_mac_e2()
877 &rule_entry->mac.mac_lsb, mac); in bnx2x_set_one_mac_e2()
878 rule_entry->mac.inner_mac = in bnx2x_set_one_mac_e2()
880 u.mac.is_inner_mac); in bnx2x_set_one_mac_e2()
915 struct bnx2x_vlan_mac_obj *o, bool add, int opcode, u8 *mac, in bnx2x_vlan_mac_set_cfg_entry_e1x() argument
934 &cfg_entry->lsb_mac_addr, mac); in bnx2x_vlan_mac_set_cfg_entry_e1x()
942 u8 *mac, u16 vlan_id, int opcode, struct mac_configuration_cmd *config) in bnx2x_vlan_mac_set_rdata_e1x() argument
949 bnx2x_vlan_mac_set_cfg_entry_e1x(bp, o, add, opcode, mac, vlan_id, in bnx2x_vlan_mac_set_rdata_e1x()
954 mac, raw->cl_id, cam_offset); in bnx2x_vlan_mac_set_rdata_e1x()
985 elem->cmd_data.vlan_mac.u.mac.mac, 0, in bnx2x_set_one_mac_e1x()
1109 struct bnx2x_mac_ramrod_data *data = &elem->cmd_data.vlan_mac.u.mac; in bnx2x_exeq_get_mac()
1113 if (!memcmp(&pos->cmd_data.vlan_mac.u.mac, data, in bnx2x_exeq_get_mac()
2345 static inline u8 bnx2x_mcast_bin_from_mac(u8 *mac) in bnx2x_mcast_bin_from_mac() argument
2347 return (crc32c_le(0, mac, ETH_ALEN) >> 24) & 0xff; in bnx2x_mcast_bin_from_mac()
2352 u8 mac[ETH_ALEN]; member
2425 memcpy(cur_mac->mac, pos->mac, ETH_ALEN); in bnx2x_mcast_enqueue_cmd()
2535 bin = bnx2x_mcast_bin_from_mac(cfg_data->mac); in bnx2x_mcast_set_one_rule_e2()
2619 cfg_data.mac = &pmac_pos->mac[0]; in bnx2x_mcast_hdl_pending_add_e2()
2625 pmac_pos->mac); in bnx2x_mcast_hdl_pending_add_e2()
2741 cfg_data.mac = mlist_pos->mac; in bnx2x_mcast_hdl_add()
2747 mlist_pos->mac); in bnx2x_mcast_hdl_add()
3037 bit = bnx2x_mcast_bin_from_mac(mlist_pos->mac); in bnx2x_mcast_hdl_add_e1h()
3041 mlist_pos->mac, bit); in bnx2x_mcast_hdl_add_e1h()
3206 cfg_data->mac); in bnx2x_mcast_set_one_rule_e1()
3269 cfg_data.mac = &elem->mac[0]; in bnx2x_mcast_handle_restore_cmd_e1()
3275 cfg_data.mac); in bnx2x_mcast_handle_restore_cmd_e1()
3303 cfg_data.mac = &pmac_pos->mac[0]; in bnx2x_mcast_handle_pending_cmds_e1()
3309 pmac_pos->mac); in bnx2x_mcast_handle_pending_cmds_e1()
3342 __le16 *fw_lo, u8 *mac) in bnx2x_get_fw_mac_addr() argument
3344 mac[1] = ((u8 *)fw_hi)[0]; in bnx2x_get_fw_mac_addr()
3345 mac[0] = ((u8 *)fw_hi)[1]; in bnx2x_get_fw_mac_addr()
3346 mac[3] = ((u8 *)fw_mid)[0]; in bnx2x_get_fw_mac_addr()
3347 mac[2] = ((u8 *)fw_mid)[1]; in bnx2x_get_fw_mac_addr()
3348 mac[5] = ((u8 *)fw_lo)[0]; in bnx2x_get_fw_mac_addr()
3349 mac[4] = ((u8 *)fw_lo)[1]; in bnx2x_get_fw_mac_addr()
3393 elem->mac); in bnx2x_mcast_refresh_registry_e1()
3395 elem->mac); in bnx2x_mcast_refresh_registry_e1()