Lines Matching refs:mac_data
1618 struct dsaf_tbl_tcam_ucast_cfg mac_data; in hns_dsaf_set_mac_uc_entry() local
1658 mac_data.tbl_ucast_item_vld = 1; in hns_dsaf_set_mac_uc_entry()
1659 mac_data.tbl_ucast_mac_discard = 0; in hns_dsaf_set_mac_uc_entry()
1660 mac_data.tbl_ucast_old_en = 0; in hns_dsaf_set_mac_uc_entry()
1662 mac_data.tbl_ucast_dvc = 0; in hns_dsaf_set_mac_uc_entry()
1663 mac_data.tbl_ucast_out_port = mac_entry->port_num; in hns_dsaf_set_mac_uc_entry()
1667 hns_dsaf_tcam_uc_cfg(dsaf_dev, entry_index, &tcam_data, &mac_data); in hns_dsaf_set_mac_uc_entry()
1683 struct dsaf_tbl_tcam_ucast_cfg mac_data; in hns_dsaf_rm_mac_addr() local
1715 &mac_data); in hns_dsaf_rm_mac_addr()
1718 if (mac_entry->port_num != mac_data.tbl_ucast_out_port) in hns_dsaf_rm_mac_addr()
1758 struct dsaf_tbl_tcam_mcast_cfg mac_data; in hns_dsaf_add_mac_mc_port() local
1795 memset(&mac_data, 0, sizeof(struct dsaf_tbl_tcam_mcast_cfg)); in hns_dsaf_add_mac_mc_port()
1813 &mac_data); in hns_dsaf_add_mac_mc_port()
1829 dsaf_set_bit(mac_data.tbl_mcast_port_msk[mskid / 32], mskid % 32, 1); in hns_dsaf_add_mac_mc_port()
1830 mac_data.tbl_mcast_old_en = 0; in hns_dsaf_add_mac_mc_port()
1831 mac_data.tbl_mcast_item_vld = 1; in hns_dsaf_add_mac_mc_port()
1843 pmask_key, &mac_data); in hns_dsaf_add_mac_mc_port()
1919 struct dsaf_tbl_tcam_mcast_cfg mac_data; in hns_dsaf_del_mac_mc_port() local
1922 const u8 empty_msk[sizeof(mac_data.tbl_mcast_port_msk)] = {0}; in hns_dsaf_del_mac_mc_port()
1981 hns_dsaf_tcam_mc_get(dsaf_dev, entry_index, &tcam_data, &mac_data); in hns_dsaf_del_mac_mc_port()
1996 dsaf_set_bit(mac_data.tbl_mcast_port_msk[mskid / 32], mskid % 32, 0); in hns_dsaf_del_mac_mc_port()
1999 if (!memcmp(mac_data.tbl_mcast_port_msk, empty_msk, in hns_dsaf_del_mac_mc_port()
2000 sizeof(mac_data.tbl_mcast_port_msk))) { in hns_dsaf_del_mac_mc_port()
2012 pmask_key, &mac_data); in hns_dsaf_del_mac_mc_port()
2023 struct dsaf_tbl_tcam_mcast_cfg mac_data; in hns_dsaf_clr_mac_mc_port() local
2069 &mac_data); in hns_dsaf_clr_mac_mc_port()
2070 dsaf_set_bit(mac_data.tbl_mcast_port_msk[mac_id / 32], in hns_dsaf_clr_mac_mc_port()
2072 if (!memcmp(mac_data.tbl_mcast_port_msk, empty_msk, in hns_dsaf_clr_mac_mc_port()