Lines Matching refs:node

105 	struct opa_vnic_mac_tbl_node *node;  in opa_vnic_free_mac_tbl()  local
112 vnic_hash_for_each_safe(mactbl, bkt, tmp, node, hlist) { in opa_vnic_free_mac_tbl()
113 hash_del(&node->hlist); in opa_vnic_free_mac_tbl()
114 kfree(node); in opa_vnic_free_mac_tbl()
155 struct opa_vnic_mac_tbl_node *node; in opa_vnic_query_mac_tbl() local
168 vnic_hash_for_each(mactbl, bkt, node, hlist) { in opa_vnic_query_mac_tbl()
169 struct __opa_vnic_mactable_entry *nentry = &node->entry; in opa_vnic_query_mac_tbl()
172 if ((node->index < loffset) || in opa_vnic_query_mac_tbl()
173 (node->index >= (loffset + lnum_entries))) in opa_vnic_query_mac_tbl()
177 entry = &tbl->tbl_entries[node->index - loffset]; in opa_vnic_query_mac_tbl()
207 struct opa_vnic_mac_tbl_node *node, *new_node; in opa_vnic_update_mac_tbl() local
241 node = kzalloc(sizeof(*node), GFP_KERNEL); in opa_vnic_update_mac_tbl()
242 if (!node) { in opa_vnic_update_mac_tbl()
247 node->index = loffset + i; in opa_vnic_update_mac_tbl()
248 nentry = &node->entry; in opa_vnic_update_mac_tbl()
254 key = node->entry.mac_addr[OPA_VNIC_MAC_HASH_IDX]; in opa_vnic_update_mac_tbl()
255 vnic_hash_add(new_mactbl, &node->hlist, key); in opa_vnic_update_mac_tbl()
263 vnic_hash_for_each(old_mactbl, bkt, node, hlist) { in opa_vnic_update_mac_tbl()
264 if ((node->index >= loffset) && in opa_vnic_update_mac_tbl()
265 (node->index < (loffset + lnum_entries))) in opa_vnic_update_mac_tbl()
274 new_node->index = node->index; in opa_vnic_update_mac_tbl()
275 memcpy(&new_node->entry, &node->entry, sizeof(node->entry)); in opa_vnic_update_mac_tbl()
301 struct opa_vnic_mac_tbl_node *node; in opa_vnic_chk_mac_tbl() local
312 vnic_hash_for_each_possible(mactbl, node, hlist, key) { in opa_vnic_chk_mac_tbl()
313 struct __opa_vnic_mactable_entry *entry = &node->entry; in opa_vnic_chk_mac_tbl()
319 if (!memcmp(node->entry.mac_addr, mac_hdr->h_dest, in opa_vnic_chk_mac_tbl()
320 ARRAY_SIZE(node->entry.mac_addr))) { in opa_vnic_chk_mac_tbl()
322 dlid = OPA_VNIC_DLID_SD_GET_DLID(node->entry.dlid_sd); in opa_vnic_chk_mac_tbl()