Lines Matching refs:sn
49 struct hsr_self_node *sn; in hsr_addr_is_self() local
53 sn = rcu_dereference(hsr->self_node); in hsr_addr_is_self()
54 if (!sn) { in hsr_addr_is_self()
59 if (ether_addr_equal(addr, sn->macaddress_A) || in hsr_addr_is_self()
60 ether_addr_equal(addr, sn->macaddress_B)) in hsr_addr_is_self()
97 struct hsr_self_node *sn, *old; in hsr_create_self_node() local
99 sn = kmalloc(sizeof(*sn), GFP_KERNEL); in hsr_create_self_node()
100 if (!sn) in hsr_create_self_node()
103 ether_addr_copy(sn->macaddress_A, addr_a); in hsr_create_self_node()
104 ether_addr_copy(sn->macaddress_B, addr_b); in hsr_create_self_node()
107 old = rcu_replace_pointer(hsr->self_node, sn, in hsr_create_self_node()