Lines Matching refs:vlan
116 struct batadv_orig_node_vlan *vlan = NULL, *tmp; in batadv_orig_node_vlan_get() local
126 vlan = tmp; in batadv_orig_node_vlan_get()
132 return vlan; in batadv_orig_node_vlan_get()
174 struct batadv_orig_node_vlan *vlan; in batadv_orig_node_vlan_new() local
182 vlan = batadv_orig_node_vlan_get(orig_node, vid); in batadv_orig_node_vlan_new()
183 if (vlan) in batadv_orig_node_vlan_new()
186 vlan = kzalloc(sizeof(*vlan), GFP_ATOMIC); in batadv_orig_node_vlan_new()
187 if (!vlan) in batadv_orig_node_vlan_new()
190 kref_init(&vlan->refcount); in batadv_orig_node_vlan_new()
191 vlan->vid = vid; in batadv_orig_node_vlan_new()
193 kref_get(&vlan->refcount); in batadv_orig_node_vlan_new()
194 hlist_add_head_rcu(&vlan->list, &orig_node->vlan_list); in batadv_orig_node_vlan_new()
199 return vlan; in batadv_orig_node_vlan_new()
845 struct batadv_orig_node_vlan *vlan; in batadv_orig_node_release() local
872 hlist_for_each_entry_safe(vlan, node_tmp, &orig_node->vlan_list, list) { in batadv_orig_node_release()
873 hlist_del_rcu(&vlan->list); in batadv_orig_node_release()
874 batadv_orig_node_vlan_put(vlan); in batadv_orig_node_release()
934 struct batadv_orig_node_vlan *vlan; in batadv_orig_node_new() local
979 vlan = batadv_orig_node_vlan_new(orig_node, BATADV_NO_FLAGS); in batadv_orig_node_new()
980 if (!vlan) in batadv_orig_node_new()
986 batadv_orig_node_vlan_put(vlan); in batadv_orig_node_new()