Lines Matching refs:entry
98 * @node: list node of the first entry to compare
122 * @node: list node of the first entry to compare
495 struct batadv_bla_backbone_gw *entry;
499 entry = batadv_backbone_hash_find(bat_priv, orig, vid);
501 if (entry)
502 return entry;
505 "%s(): not found (%pM, %d), creating new entry\n", __func__,
508 entry = kzalloc(sizeof(*entry), GFP_ATOMIC);
509 if (!entry)
512 entry->vid = vid;
513 entry->lasttime = jiffies;
514 entry->crc = BATADV_BLA_CRC_INIT;
515 entry->bat_priv = bat_priv;
516 spin_lock_init(&entry->crc_lock);
517 atomic_set(&entry->request_sent, 0);
518 atomic_set(&entry->wait_periods, 0);
519 ether_addr_copy(entry->orig, orig);
520 INIT_WORK(&entry->report_work, batadv_bla_loopdetect_report);
521 kref_init(&entry->refcount);
523 kref_get(&entry->refcount);
526 batadv_choose_backbone_gw, entry,
527 &entry->hash_entry);
531 kfree(entry);
535 /* this is a gateway now, remove any TT entry on this VLAN */
544 batadv_bla_send_announce(bat_priv, entry);
547 atomic_inc(&entry->request_sent);
548 atomic_set(&entry->wait_periods, BATADV_BLA_WAIT_PERIODS);
552 return entry;
700 /* create a new claim entry if it does not exist yet. */
715 "%s(): adding new entry %pM, vid %d to hash ...\n",
1610 struct batadv_bcast_duplist_entry *entry;
1623 entry = &bat_priv->bla.bcast_duplist[curr];
1625 /* we can stop searching if the entry is too old ;
1628 if (batadv_has_timed_out(entry->entrytime,
1632 if (entry->crc != crc)
1637 !is_zero_ether_addr(entry->orig)) {
1647 if (batadv_compare_eth(entry->orig, orig))
1651 /* this entry seems to match: same crc, not too old,
1657 /* not found, add a new entry (overwrite the oldest entry)
1662 entry = &bat_priv->bla.bcast_duplist[curr];
1663 entry->crc = crc;
1664 entry->entrytime = jiffies;
1668 ether_addr_copy(entry->orig, orig);
1671 eth_zero_addr(entry->orig);
2076 /* only unclaim if the last claim entry is
2118 * batadv_bla_claim_dump_entry() - dump one entry of the claim table
2124 * @claim: entry to dump
2286 * batadv_bla_backbone_dump_entry() - dump one entry of the backbone table to a
2292 * @backbone_gw: entry to dump