Lines Matching refs:mps_entry

10 	struct mps_entries_ref *mps_entry, *tmp;  in cxgb4_mps_ref_dec_by_mac()  local
14 list_for_each_entry_safe(mps_entry, tmp, &adap->mps_ref, list) { in cxgb4_mps_ref_dec_by_mac()
15 if (ether_addr_equal(mps_entry->addr, addr) && in cxgb4_mps_ref_dec_by_mac()
16 ether_addr_equal(mps_entry->mask, mask ? mask : bitmask)) { in cxgb4_mps_ref_dec_by_mac()
17 if (!refcount_dec_and_test(&mps_entry->refcnt)) { in cxgb4_mps_ref_dec_by_mac()
21 list_del(&mps_entry->list); in cxgb4_mps_ref_dec_by_mac()
22 kfree(mps_entry); in cxgb4_mps_ref_dec_by_mac()
33 struct mps_entries_ref *mps_entry, *tmp; in cxgb4_mps_ref_dec() local
37 list_for_each_entry_safe(mps_entry, tmp, &adap->mps_ref, list) { in cxgb4_mps_ref_dec()
38 if (mps_entry->idx == idx) { in cxgb4_mps_ref_dec()
39 if (!refcount_dec_and_test(&mps_entry->refcnt)) { in cxgb4_mps_ref_dec()
43 list_del(&mps_entry->list); in cxgb4_mps_ref_dec()
44 kfree(mps_entry); in cxgb4_mps_ref_dec()
57 struct mps_entries_ref *mps_entry; in cxgb4_mps_ref_inc() local
61 list_for_each_entry(mps_entry, &adap->mps_ref, list) { in cxgb4_mps_ref_inc()
62 if (mps_entry->idx == idx) { in cxgb4_mps_ref_inc()
63 refcount_inc(&mps_entry->refcnt); in cxgb4_mps_ref_inc()
67 mps_entry = kzalloc(sizeof(*mps_entry), GFP_ATOMIC); in cxgb4_mps_ref_inc()
68 if (!mps_entry) { in cxgb4_mps_ref_inc()
72 ether_addr_copy(mps_entry->mask, mask ? mask : bitmask); in cxgb4_mps_ref_inc()
73 ether_addr_copy(mps_entry->addr, mac_addr); in cxgb4_mps_ref_inc()
74 mps_entry->idx = idx; in cxgb4_mps_ref_inc()
75 refcount_set(&mps_entry->refcnt, 1); in cxgb4_mps_ref_inc()
76 list_add_tail(&mps_entry->list, &adap->mps_ref); in cxgb4_mps_ref_inc()
230 struct mps_entries_ref *mps_entry, *tmp; in cxgb4_free_mps_ref_entries() local
236 list_for_each_entry_safe(mps_entry, tmp, &adap->mps_ref, list) { in cxgb4_free_mps_ref_entries()
237 list_del(&mps_entry->list); in cxgb4_free_mps_ref_entries()
238 kfree(mps_entry); in cxgb4_free_mps_ref_entries()