Lines Matching refs:entry

99  * @node: list node of the first entry to compare
123 * @node: list node of the first entry to compare
500 struct batadv_bla_backbone_gw *entry;
504 entry = batadv_backbone_hash_find(bat_priv, orig, vid);
506 if (entry)
507 return entry;
510 "%s(): not found (%pM, %d), creating new entry\n", __func__,
513 entry = kzalloc(sizeof(*entry), GFP_ATOMIC);
514 if (!entry)
517 entry->vid = vid;
518 entry->lasttime = jiffies;
519 entry->crc = BATADV_BLA_CRC_INIT;
520 entry->bat_priv = bat_priv;
521 spin_lock_init(&entry->crc_lock);
522 atomic_set(&entry->request_sent, 0);
523 atomic_set(&entry->wait_periods, 0);
524 ether_addr_copy(entry->orig, orig);
525 INIT_WORK(&entry->report_work, batadv_bla_loopdetect_report);
526 kref_init(&entry->refcount);
528 kref_get(&entry->refcount);
531 batadv_choose_backbone_gw, entry,
532 &entry->hash_entry);
536 kfree(entry);
540 /* this is a gateway now, remove any TT entry on this VLAN */
549 batadv_bla_send_announce(bat_priv, entry);
552 atomic_inc(&entry->request_sent);
553 atomic_set(&entry->wait_periods, BATADV_BLA_WAIT_PERIODS);
557 return entry;
705 /* create a new claim entry if it does not exist yet. */
720 "%s(): adding new entry %pM, vid %d to hash ...\n",
1616 struct batadv_bcast_duplist_entry *entry;
1629 entry = &bat_priv->bla.bcast_duplist[curr];
1631 /* we can stop searching if the entry is too old ;
1634 if (batadv_has_timed_out(entry->entrytime,
1638 if (entry->crc != crc)
1643 !is_zero_ether_addr(entry->orig)) {
1653 if (batadv_compare_eth(entry->orig, orig))
1657 /* this entry seems to match: same crc, not too old,
1663 /* not found, add a new entry (overwrite the oldest entry)
1668 entry = &bat_priv->bla.bcast_duplist[curr];
1669 entry->crc = crc;
1670 entry->entrytime = jiffies;
1674 ether_addr_copy(entry->orig, orig);
1677 eth_zero_addr(entry->orig);
2085 /* only unclaim if the last claim entry is
2192 * batadv_bla_claim_dump_entry() - dump one entry of the claim table
2198 * @claim: entry to dump
2428 * batadv_bla_backbone_dump_entry() - dump one entry of the backbone table to a
2434 * @backbone_gw: entry to dump