Lines Matching defs:mac
440 * __ecore_vlan_mac_h_write_trylock - try getting the writer lock on vlan mac
463 * which wasn't able to run due to a taken lock on vlan mac head list.
493 * called due to vlan mac head list lock being taken.
512 * __ecore_vlan_mac_h_write_unlock - unlock the vlan mac head list writer lock
534 * ecore_vlan_mac_h_write_unlock - unlock the vlan mac head list writer lock
551 * __ecore_vlan_mac_h_read_lock - lock the vlan mac head list reader lock
571 * ecore_vlan_mac_h_read_lock - lock the vlan mac head list reader lock
591 * __ecore_vlan_mac_h_read_unlock - unlock the vlan mac head list reader lock
604 ECORE_ERR("Need to release vlan mac reader lock, but lock isn't taken\n");
626 * ecore_vlan_mac_h_read_unlock - unlock the vlan mac head list reader lock
644 * ecore_vlan_mac_h_read_unlock - unlock the vlan mac head list reader lock
663 ECORE_ERR("get_n_elements failed to get vlan mac reader lock; Access without lock\n");
692 ECORE_MSG(sc, "Checking MAC %02x:%02x:%02x:%02x:%02x:%02x for ADD command\n", data->mac.mac[0], data->mac.mac[1], data->mac.mac[2], data->mac.mac[3], data->mac.mac[4], data->mac.mac[5]);
694 if (!ECORE_IS_VALID_ETHER_ADDR(data->mac.mac))
700 if (!ECORE_MEMCMP(data->mac.mac, pos->u.mac.mac, ETH_ALEN) &&
701 (data->mac.is_inner_mac == pos->u.mac.is_inner_mac))
730 data->vlan_mac.mac[0], data->vlan_mac.mac[1], data->vlan_mac.mac[2], data->vlan_mac.mac[3], data->vlan_mac.mac[4], data->vlan_mac.mac[5], data->vlan_mac.vlan);
735 (!ECORE_MEMCMP(data->vlan_mac.mac, pos->u.vlan_mac.mac,
772 ECORE_MSG(sc, "Checking MAC %02x:%02x:%02x:%02x:%02x:%02x for DEL command\n", data->mac.mac[0], data->mac.mac[1], data->mac.mac[2], data->mac.mac[3], data->mac.mac[4], data->mac.mac[5]);
776 if ((!ECORE_MEMCMP(data->mac.mac, pos->u.mac.mac, ETH_ALEN)) &&
777 (data->mac.is_inner_mac == pos->u.mac.is_inner_mac))
808 data->vlan_mac.mac[0], data->vlan_mac.mac[1], data->vlan_mac.mac[2], data->vlan_mac.mac[3], data->vlan_mac.mac[4], data->vlan_mac.mac[5], data->vlan_mac.vlan);
813 (!ECORE_MEMCMP(data->vlan_mac.mac, pos->u.vlan_mac.mac,
988 uint8_t *mac = elem->cmd_data.vlan_mac.u.mac.mac;
1009 ecore_set_mac_in_nig(sc, add, mac,
1012 ecore_set_mac_in_nig(sc, add, mac,
1022 &rule_entry->mac.header);
1025 (add ? "add" : "delete"), mac[0], mac[1], mac[2], mac[3], mac[4], mac[5], raw->cl_id);
1028 ecore_set_fw_mac_addr(&rule_entry->mac.mac_msb,
1029 &rule_entry->mac.mac_mid,
1030 &rule_entry->mac.mac_lsb, mac);
1031 rule_entry->mac.inner_mac =
1032 ECORE_CPU_TO_LE16(elem->cmd_data.vlan_mac.u.mac.is_inner_mac);
1043 &rule_entry->mac.header);
1046 ecore_set_fw_mac_addr(&rule_entry->mac.mac_msb,
1047 &rule_entry->mac.mac_mid,
1048 &rule_entry->mac.mac_lsb, mac);
1049 rule_entry->mac.inner_mac =
1051 u.mac.is_inner_mac);
1086 struct ecore_vlan_mac_obj *o, bool add, int opcode, uint8_t *mac,
1107 &cfg_entry->lsb_mac_addr, mac);
1116 uint8_t *mac, uint16_t vlan_id, int opcode, struct mac_configuration_cmd *config)
1123 ecore_vlan_mac_set_cfg_entry_e1x(sc, o, add, opcode, mac, vlan_id,
1128 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5], raw->cl_id, cam_offset);
1159 elem->cmd_data.vlan_mac.u.mac.mac, 0,
1226 uint8_t *mac = elem->cmd_data.vlan_mac.u.vlan_mac.mac;
1240 &rule_entry->pair.mac_lsb, mac);
1258 &rule_entry->pair.mac_lsb, mac);
1283 uint8_t *mac = elem->cmd_data.vlan_mac.u.vxlan_fltr.innermac;
1298 &rule_entry->imac_vni.imac_lsb, mac);
1315 &rule_entry->imac_vni.imac_lsb, mac);
1354 elem->cmd_data.vlan_mac.u.vlan_mac.mac,
1433 struct ecore_mac_ramrod_data *data = &elem->cmd_data.vlan_mac.u.mac;
1438 if (!ECORE_MEMCMP(&pos->cmd_data.vlan_mac.u.mac, data,
1947 * ecore_execute_vlan_mac - execute vlan mac command
2826 static inline uint8_t ecore_mcast_bin_from_mac(uint8_t *mac)
2828 return (ECORE_CRC32_LE(0, mac, ETH_ALEN) >> 24) & 0xff;
2833 uint8_t mac[ETH_ALEN];
2907 ECORE_MEMCPY(cur_mac->mac, pos->mac, ETH_ALEN);
3018 bin = ecore_mcast_bin_from_mac(cfg_data->mac);
3102 cfg_data.mac = &pmac_pos->mac[0];
3108 pmac_pos->mac[0], pmac_pos->mac[1], pmac_pos->mac[2], pmac_pos->mac[3], pmac_pos->mac[4], pmac_pos->mac[5]);
3227 cfg_data.mac = mlist_pos->mac;
3233 mlist_pos->mac[0], mlist_pos->mac[1], mlist_pos->mac[2], mlist_pos->mac[3], mlist_pos->mac[4], mlist_pos->mac[5]);
3525 bit = ecore_mcast_bin_from_mac(mlist_pos->mac);
3529 mlist_pos->mac[0], mlist_pos->mac[1], mlist_pos->mac[2], mlist_pos->mac[3], mlist_pos->mac[4], mlist_pos->mac[5], bit);
3689 /* copy mac */
3694 cfg_data->mac);
3758 cfg_data.mac = &elem->mac[0];
3764 cfg_data.mac[0], cfg_data.mac[1], cfg_data.mac[2], cfg_data.mac[3], cfg_data.mac[4], cfg_data.mac[5]);
3793 cfg_data.mac = &pmac_pos->mac[0];
3799 pmac_pos->mac[0], pmac_pos->mac[1], pmac_pos->mac[2], pmac_pos->mac[3], pmac_pos->mac[4], pmac_pos->mac[5]);
3829 * @mac:
3832 uint16_t *fw_lo, uint8_t *mac)
3834 mac[1] = ((uint8_t *)fw_hi)[0];
3835 mac[0] = ((uint8_t *)fw_hi)[1];
3836 mac[3] = ((uint8_t *)fw_mid)[0];
3837 mac[2] = ((uint8_t *)fw_mid)[1];
3838 mac[5] = ((uint8_t *)fw_lo)[0];
3839 mac[4] = ((uint8_t *)fw_lo)[1];
3883 elem->mac);
3885 elem->mac[0], elem->mac[1], elem->mac[2], elem->mac[3], elem->mac[4], elem->mac[5]);