Lines Matching refs:node_db
69 static struct hsr_node *find_node_by_addr_A(struct list_head *node_db, in find_node_by_addr_A() argument
74 list_for_each_entry_rcu(node, node_db, mac_list) { in find_node_by_addr_A()
84 bool hsr_is_node_in_db(struct list_head *node_db, in hsr_is_node_in_db() argument
87 return !!find_node_by_addr_A(node_db, addr); in hsr_is_node_in_db()
128 void hsr_del_nodes(struct list_head *node_db) in hsr_del_nodes() argument
133 list_for_each_entry_safe(node, tmp, node_db, mac_list) in hsr_del_nodes()
155 struct list_head *node_db, in hsr_add_node() argument
186 list_for_each_entry_rcu(node, node_db, mac_list, in hsr_add_node()
193 list_add_tail_rcu(&new_node->mac_list, node_db); in hsr_add_node()
213 struct hsr_node *hsr_get_node(struct hsr_port *port, struct list_head *node_db, in hsr_get_node() argument
229 list_for_each_entry_rcu(node, node_db, mac_list) { in hsr_get_node()
275 return hsr_add_node(hsr, node_db, ethhdr->h_source, seq_out, in hsr_get_node()
292 struct list_head *node_db; in hsr_handle_sup_frame() local
334 node_db = &port_rcv->hsr->node_db; in hsr_handle_sup_frame()
335 node_real = find_node_by_addr_A(node_db, hsr_sp->macaddress_A); in hsr_handle_sup_frame()
338 node_real = hsr_add_node(hsr, node_db, hsr_sp->macaddress_A, in hsr_handle_sup_frame()
444 node_dst = find_node_by_addr_A(&port->hsr->node_db, in hsr_addr_subst_dest()
535 list_for_each_entry_safe(node, tmp, &hsr->node_db, mac_list) { in hsr_prune_nodes()
634 node = list_first_or_null_rcu(&hsr->node_db, in hsr_get_next_node()
642 list_for_each_entry_continue_rcu(node, &hsr->node_db, mac_list) { in hsr_get_next_node()
663 node = find_node_by_addr_A(&hsr->node_db, addr); in hsr_get_node_data()