Lines Matching refs:mactbl
103 static void opa_vnic_free_mac_tbl(struct hlist_head *mactbl) in opa_vnic_free_mac_tbl() argument
109 if (!mactbl) in opa_vnic_free_mac_tbl()
112 vnic_hash_for_each_safe(mactbl, bkt, tmp, node, hlist) { in opa_vnic_free_mac_tbl()
116 kfree(mactbl); in opa_vnic_free_mac_tbl()
122 struct hlist_head *mactbl; in opa_vnic_alloc_mac_tbl() local
124 mactbl = kzalloc(size, GFP_KERNEL); in opa_vnic_alloc_mac_tbl()
125 if (!mactbl) in opa_vnic_alloc_mac_tbl()
128 vnic_hash_init(mactbl); in opa_vnic_alloc_mac_tbl()
129 return mactbl; in opa_vnic_alloc_mac_tbl()
135 struct hlist_head *mactbl; in opa_vnic_release_mac_tbl() local
138 mactbl = rcu_access_pointer(adapter->mactbl); in opa_vnic_release_mac_tbl()
139 rcu_assign_pointer(adapter->mactbl, NULL); in opa_vnic_release_mac_tbl()
141 opa_vnic_free_mac_tbl(mactbl); in opa_vnic_release_mac_tbl()
156 struct hlist_head *mactbl; in opa_vnic_query_mac_tbl() local
161 mactbl = rcu_dereference(adapter->mactbl); in opa_vnic_query_mac_tbl()
162 if (!mactbl) in opa_vnic_query_mac_tbl()
168 vnic_hash_for_each(mactbl, bkt, node, hlist) { in opa_vnic_query_mac_tbl()
259 old_mactbl = rcu_access_pointer(adapter->mactbl); in opa_vnic_update_mac_tbl()
282 rcu_assign_pointer(adapter->mactbl, new_mactbl); in opa_vnic_update_mac_tbl()
302 struct hlist_head *mactbl; in opa_vnic_chk_mac_tbl() local
307 mactbl = rcu_dereference(adapter->mactbl); in opa_vnic_chk_mac_tbl()
308 if (unlikely(!mactbl)) in opa_vnic_chk_mac_tbl()
312 vnic_hash_for_each_possible(mactbl, node, hlist, key) { in opa_vnic_chk_mac_tbl()