Lines Matching defs:eda
73 void wlp_eda_init(struct wlp_eda *eda)
75 INIT_LIST_HEAD(&eda->cache);
76 spin_lock_init(&eda->lock);
86 void wlp_eda_release(struct wlp_eda *eda)
91 spin_lock_irqsave(&eda->lock, flags);
92 list_for_each_entry_safe(itr, next, &eda->cache, list_node) {
96 spin_unlock_irqrestore(&eda->lock, flags);
110 int wlp_eda_create_node(struct wlp_eda *eda,
119 spin_lock_irqsave(&eda->lock, flags);
120 list_for_each_entry(itr, &eda->cache, list_node) {
133 list_add(&itr->list_node, &eda->cache);
137 spin_unlock_irqrestore(&eda->lock, flags);
146 void wlp_eda_rm_node(struct wlp_eda *eda, const struct uwb_dev_addr *dev_addr)
151 spin_lock_irqsave(&eda->lock, flags);
152 list_for_each_entry_safe(itr, next, &eda->cache, list_node) {
159 spin_unlock_irqrestore(&eda->lock, flags);
167 int wlp_eda_update_node(struct wlp_eda *eda,
177 spin_lock_irqsave(&eda->lock, flags);
178 list_for_each_entry(itr, &eda->cache, list_node) {
192 spin_unlock_irqrestore(&eda->lock, flags);
201 int wlp_eda_update_node_state(struct wlp_eda *eda,
209 spin_lock_irqsave(&eda->lock, flags);
210 list_for_each_entry(itr, &eda->cache, list_node) {
220 spin_unlock_irqrestore(&eda->lock, flags);
230 int wlp_copy_eda_node(struct wlp_eda *eda, struct uwb_dev_addr *dev_addr,
237 spin_lock_irqsave(&eda->lock, flags);
238 list_for_each_entry(itr, &eda->cache, list_node) {
247 spin_unlock_irqrestore(&eda->lock, flags);
264 int wlp_eda_for_each(struct wlp_eda *eda, wlp_eda_for_each_f function,
268 struct wlp *wlp = container_of(eda, struct wlp, eda);
272 spin_lock_irqsave(&eda->lock, flags);
273 list_for_each_entry(entry, &eda->cache, list_node) {
278 spin_unlock_irqrestore(&eda->lock, flags);
296 int wlp_eda_for_virtual(struct wlp_eda *eda,
303 struct wlp *wlp = container_of(eda, struct wlp, eda);
308 spin_lock_irqsave(&eda->lock, flags);
309 list_for_each_entry(itr, &eda->cache, list_node) {
320 spin_unlock_irqrestore(&eda->lock, flags);
347 struct wlp_eda *eda = &wlp->eda;
348 spin_lock_irqsave(&eda->lock, flags);
351 list_for_each_entry(entry, &eda->cache, list_node) {
363 spin_unlock_irqrestore(&eda->lock, flags);
379 struct wlp_eda *eda = &wlp->eda;
393 /*result = wlp_eda_rm(eda, eth_addr, &dev_addr);*/
398 result = wlp_eda_create_node(eda, eth_addr, &dev_addr);
402 result = wlp_eda_update_node(eda, &dev_addr, &wlp->wss,