Lines Matching refs:mac_key
1018 hns_dsaf_tcam_addr_get(struct dsaf_drv_tbl_tcam_key *mac_key, u8 *addr) in hns_dsaf_tcam_addr_get() argument
1020 addr[0] = mac_key->high.bits.mac_0; in hns_dsaf_tcam_addr_get()
1021 addr[1] = mac_key->high.bits.mac_1; in hns_dsaf_tcam_addr_get()
1022 addr[2] = mac_key->high.bits.mac_2; in hns_dsaf_tcam_addr_get()
1023 addr[3] = mac_key->high.bits.mac_3; in hns_dsaf_tcam_addr_get()
1024 addr[4] = mac_key->low.bits.mac_4; in hns_dsaf_tcam_addr_get()
1025 addr[5] = mac_key->low.bits.mac_5; in hns_dsaf_tcam_addr_get()
1507 struct dsaf_drv_tbl_tcam_key *mac_key) in hns_dsaf_find_soft_mac_entry() argument
1518 (soft_mac_entry->tcam_key.high.val == mac_key->high.val) && in hns_dsaf_find_soft_mac_entry()
1519 (soft_mac_entry->tcam_key.low.val == mac_key->low.val)) in hns_dsaf_find_soft_mac_entry()
1582 struct dsaf_drv_tbl_tcam_key *mac_key, u16 vlan_id, u8 in_port_num, in hns_dsaf_set_mac_key() argument
1594 mac_key->high.bits.mac_0 = addr[0]; in hns_dsaf_set_mac_key()
1595 mac_key->high.bits.mac_1 = addr[1]; in hns_dsaf_set_mac_key()
1596 mac_key->high.bits.mac_2 = addr[2]; in hns_dsaf_set_mac_key()
1597 mac_key->high.bits.mac_3 = addr[3]; in hns_dsaf_set_mac_key()
1598 mac_key->low.bits.mac_4 = addr[4]; in hns_dsaf_set_mac_key()
1599 mac_key->low.bits.mac_5 = addr[5]; in hns_dsaf_set_mac_key()
1600 mac_key->low.bits.port_vlan = 0; in hns_dsaf_set_mac_key()
1601 dsaf_set_field(mac_key->low.bits.port_vlan, DSAF_TBL_TCAM_KEY_VLAN_M, in hns_dsaf_set_mac_key()
1603 dsaf_set_field(mac_key->low.bits.port_vlan, DSAF_TBL_TCAM_KEY_PORT_M, in hns_dsaf_set_mac_key()
1617 struct dsaf_drv_tbl_tcam_key mac_key; in hns_dsaf_set_mac_uc_entry() local
1634 hns_dsaf_set_mac_key(dsaf_dev, &mac_key, mac_entry->in_vlan_id, in hns_dsaf_set_mac_uc_entry()
1638 entry_index = hns_dsaf_find_soft_mac_entry(dsaf_dev, &mac_key); in hns_dsaf_set_mac_uc_entry()
1647 mac_key.high.val, mac_key.low.val); in hns_dsaf_set_mac_uc_entry()
1654 dsaf_dev->ae_dev.name, mac_key.high.val, in hns_dsaf_set_mac_uc_entry()
1655 mac_key.low.val, entry_index); in hns_dsaf_set_mac_uc_entry()
1664 tcam_data.tbl_tcam_data_high = mac_key.high.val; in hns_dsaf_set_mac_uc_entry()
1665 tcam_data.tbl_tcam_data_low = mac_key.low.val; in hns_dsaf_set_mac_uc_entry()
1672 soft_mac_entry->tcam_key.high.val = mac_key.high.val; in hns_dsaf_set_mac_uc_entry()
1673 soft_mac_entry->tcam_key.low.val = mac_key.low.val; in hns_dsaf_set_mac_uc_entry()
1684 struct dsaf_drv_tbl_tcam_key mac_key; in hns_dsaf_rm_mac_addr() local
1694 hns_dsaf_set_mac_key(dsaf_dev, &mac_key, mac_entry->in_vlan_id, in hns_dsaf_rm_mac_addr()
1697 entry_index = hns_dsaf_find_soft_mac_entry(dsaf_dev, &mac_key); in hns_dsaf_rm_mac_addr()
1703 mac_key.high.val, mac_key.low.val); in hns_dsaf_rm_mac_addr()
1709 dsaf_dev->ae_dev.name, mac_key.high.val, in hns_dsaf_rm_mac_addr()
1710 mac_key.low.val, entry_index); in hns_dsaf_rm_mac_addr()
1714 (struct dsaf_tbl_tcam_data *)&mac_key, in hns_dsaf_rm_mac_addr()
1755 struct dsaf_drv_tbl_tcam_key mac_key; in hns_dsaf_add_mac_mc_port() local
1792 dsaf_dev, &mac_key, mac_entry->in_vlan_id, in hns_dsaf_add_mac_mc_port()
1798 entry_index = hns_dsaf_find_soft_mac_entry(dsaf_dev, &mac_key); in hns_dsaf_add_mac_mc_port()
1806 dsaf_dev->ae_dev.name, mac_key.high.val, in hns_dsaf_add_mac_mc_port()
1807 mac_key.low.val); in hns_dsaf_add_mac_mc_port()
1826 mac_key.high.val, mac_key.low.val); in hns_dsaf_add_mac_mc_port()
1835 dsaf_dev->ae_dev.name, mac_key.high.val, in hns_dsaf_add_mac_mc_port()
1836 mac_key.low.val, entry_index); in hns_dsaf_add_mac_mc_port()
1838 tcam_data.tbl_tcam_data_high = mac_key.high.val; in hns_dsaf_add_mac_mc_port()
1839 tcam_data.tbl_tcam_data_low = mac_key.low.val; in hns_dsaf_add_mac_mc_port()
1848 soft_mac_entry->tcam_key.high.val = mac_key.high.val; in hns_dsaf_add_mac_mc_port()
1849 soft_mac_entry->tcam_key.low.val = mac_key.low.val; in hns_dsaf_add_mac_mc_port()
1865 struct dsaf_drv_tbl_tcam_key mac_key; in hns_dsaf_del_mac_entry() local
1878 hns_dsaf_set_mac_key(dsaf_dev, &mac_key, vlan_id, in_port_num, addr); in hns_dsaf_del_mac_entry()
1881 entry_index = hns_dsaf_find_soft_mac_entry(dsaf_dev, &mac_key); in hns_dsaf_del_mac_entry()
1887 mac_key.high.val, mac_key.low.val); in hns_dsaf_del_mac_entry()
1892 dsaf_dev->ae_dev.name, mac_key.high.val, in hns_dsaf_del_mac_entry()
1893 mac_key.low.val, entry_index); in hns_dsaf_del_mac_entry()
1914 struct dsaf_drv_tbl_tcam_key mac_key; in hns_dsaf_del_mac_mc_port() local
1962 hns_dsaf_set_mac_key(dsaf_dev, &mac_key, vlan_id, in_port_num, mc_addr); in hns_dsaf_del_mac_mc_port()
1965 entry_index = hns_dsaf_find_soft_mac_entry(dsaf_dev, &mac_key); in hns_dsaf_del_mac_mc_port()
1971 mac_key.high.val, mac_key.low.val); in hns_dsaf_del_mac_mc_port()
1977 dsaf_dev->ae_dev.name, mac_key.high.val, in hns_dsaf_del_mac_mc_port()
1978 mac_key.low.val, entry_index); in hns_dsaf_del_mac_mc_port()
1993 mac_key.high.val, mac_key.low.val); in hns_dsaf_del_mac_mc_port()
2007 tcam_data.tbl_tcam_data_high = mac_key.high.val; in hns_dsaf_del_mac_mc_port()
2008 tcam_data.tbl_tcam_data_low = mac_key.low.val; in hns_dsaf_del_mac_mc_port()
2772 struct dsaf_drv_tbl_tcam_key mac_key; in set_promisc_tcam_enable() local
2779 hns_dsaf_set_mac_key(dsaf_dev, &mac_key, 0x00, port, addr); in set_promisc_tcam_enable()
2780 entry_index = hns_dsaf_find_soft_mac_entry(dsaf_dev, &mac_key); in set_promisc_tcam_enable()
2806 soft_mac_entry->tcam_key.high.val = mac_key.high.val; in set_promisc_tcam_enable()
2807 soft_mac_entry->tcam_key.low.val = mac_key.low.val; in set_promisc_tcam_enable()
2874 struct dsaf_drv_tbl_tcam_key mac_key; in set_promisc_tcam_disable() local
2879 hns_dsaf_set_mac_key(dsaf_dev, &mac_key, 0x00, port, addr); in set_promisc_tcam_disable()
2880 entry_index = hns_dsaf_find_soft_mac_entry(dsaf_dev, &mac_key); in set_promisc_tcam_disable()
2897 memset(&mac_key, 0x0, sizeof(mac_key)); in set_promisc_tcam_disable()
2898 hns_dsaf_set_mac_key(dsaf_dev, &mac_key, 0x00, port, addr); in set_promisc_tcam_disable()
2899 entry_index = hns_dsaf_find_soft_mac_entry(dsaf_dev, &mac_key); in set_promisc_tcam_disable()