Lines Matching refs:bla
221 struct batadv_hashtable *hash = bat_priv->bla.claim_hash; in batadv_claim_hash_find()
261 struct batadv_hashtable *hash = bat_priv->bla.backbone_hash; in batadv_backbone_hash_find()
307 hash = backbone_gw->bat_priv->bla.claim_hash; in batadv_bla_del_backbone_claims()
355 memcpy(&local_claim_dest, &bat_priv->bla.claim_dest, in batadv_bla_send_claim()
524 hash_added = batadv_hash_add(bat_priv->bla.backbone_hash, in batadv_bla_get_backbone_gw()
549 atomic_inc(&bat_priv->bla.num_requests); in batadv_bla_get_backbone_gw()
610 hash = bat_priv->bla.claim_hash; in batadv_bla_answer_request()
653 atomic_inc(&backbone_gw->bat_priv->bla.num_requests); in batadv_bla_send_request()
719 hash_added = batadv_hash_add(bat_priv->bla.claim_hash, in batadv_bla_add_claim()
811 claim_removed_node = batadv_hash_remove(bat_priv->bla.claim_hash, in batadv_bla_del_claim()
876 atomic_dec(&backbone_gw->bat_priv->bla.num_requests); in batadv_handle_announce()
1020 bla_dst_own = &bat_priv->bla.claim_dest; in batadv_check_claim_group()
1145 bla_dst_own = &bat_priv->bla.claim_dest; in batadv_bla_process_claim()
1228 hash = bat_priv->bla.backbone_hash; in batadv_bla_purge_backbone_gw()
1252 atomic_dec(&bat_priv->bla.num_requests); in batadv_bla_purge_backbone_gw()
1282 hash = bat_priv->bla.claim_hash; in batadv_bla_purge_claims()
1340 bat_priv->bla.claim_dest.group = group; in batadv_bla_update_orig_address()
1352 hash = bat_priv->bla.backbone_hash; in batadv_bla_update_orig_address()
1393 batadv_bla_send_claim(bat_priv, bat_priv->bla.loopdetect_addr, in batadv_bla_send_loopdetect()
1439 bat_priv = container_of(priv_bla, struct batadv_priv, bla); in batadv_bla_periodic_work()
1450 if (atomic_dec_and_test(&bat_priv->bla.loopdetect_next)) { in batadv_bla_periodic_work()
1455 eth_random_addr(bat_priv->bla.loopdetect_addr); in batadv_bla_periodic_work()
1456 bat_priv->bla.loopdetect_addr[0] = 0xba; in batadv_bla_periodic_work()
1457 bat_priv->bla.loopdetect_addr[1] = 0xbe; in batadv_bla_periodic_work()
1458 bat_priv->bla.loopdetect_lasttime = jiffies; in batadv_bla_periodic_work()
1459 atomic_set(&bat_priv->bla.loopdetect_next, in batadv_bla_periodic_work()
1466 hash = bat_priv->bla.backbone_hash; in batadv_bla_periodic_work()
1501 atomic_dec(&backbone_gw->bat_priv->bla.num_requests); in batadv_bla_periodic_work()
1509 queue_delayed_work(batadv_event_workqueue, &bat_priv->bla.work, in batadv_bla_periodic_work()
1535 spin_lock_init(&bat_priv->bla.bcast_duplist_lock); in batadv_bla_init()
1540 memcpy(&bat_priv->bla.claim_dest.magic, claim_dest, 3); in batadv_bla_init()
1541 bat_priv->bla.claim_dest.type = 0; in batadv_bla_init()
1545 bat_priv->bla.claim_dest.group = htons(crc); in batadv_bla_init()
1548 bat_priv->bla.claim_dest.group = 0; /* will be set later */ in batadv_bla_init()
1554 bat_priv->bla.bcast_duplist[i].entrytime = entrytime; in batadv_bla_init()
1555 bat_priv->bla.bcast_duplist_curr = 0; in batadv_bla_init()
1557 atomic_set(&bat_priv->bla.loopdetect_next, in batadv_bla_init()
1560 if (bat_priv->bla.claim_hash) in batadv_bla_init()
1563 bat_priv->bla.claim_hash = batadv_hash_new(128); in batadv_bla_init()
1564 if (!bat_priv->bla.claim_hash) in batadv_bla_init()
1567 bat_priv->bla.backbone_hash = batadv_hash_new(32); in batadv_bla_init()
1568 if (!bat_priv->bla.backbone_hash) { in batadv_bla_init()
1569 batadv_hash_destroy(bat_priv->bla.claim_hash); in batadv_bla_init()
1573 batadv_hash_set_lock_class(bat_priv->bla.claim_hash, in batadv_bla_init()
1575 batadv_hash_set_lock_class(bat_priv->bla.backbone_hash, in batadv_bla_init()
1580 INIT_DELAYED_WORK(&bat_priv->bla.work, batadv_bla_periodic_work); in batadv_bla_init()
1582 queue_delayed_work(batadv_event_workqueue, &bat_priv->bla.work, in batadv_bla_init()
1618 spin_lock_bh(&bat_priv->bla.bcast_duplist_lock); in batadv_bla_check_duplist()
1621 curr = (bat_priv->bla.bcast_duplist_curr + i); in batadv_bla_check_duplist()
1623 entry = &bat_priv->bla.bcast_duplist[curr]; in batadv_bla_check_duplist()
1660 curr = (bat_priv->bla.bcast_duplist_curr + BATADV_DUPLIST_SIZE - 1); in batadv_bla_check_duplist()
1662 entry = &bat_priv->bla.bcast_duplist[curr]; in batadv_bla_check_duplist()
1673 bat_priv->bla.bcast_duplist_curr = curr; in batadv_bla_check_duplist()
1676 spin_unlock_bh(&bat_priv->bla.bcast_duplist_lock); in batadv_bla_check_duplist()
1735 struct batadv_hashtable *hash = bat_priv->bla.backbone_hash; in batadv_bla_is_backbone_gw_orig()
1807 cancel_delayed_work_sync(&bat_priv->bla.work); in batadv_bla_free()
1810 if (bat_priv->bla.claim_hash) { in batadv_bla_free()
1812 batadv_hash_destroy(bat_priv->bla.claim_hash); in batadv_bla_free()
1813 bat_priv->bla.claim_hash = NULL; in batadv_bla_free()
1815 if (bat_priv->bla.backbone_hash) { in batadv_bla_free()
1817 batadv_hash_destroy(bat_priv->bla.backbone_hash); in batadv_bla_free()
1818 bat_priv->bla.backbone_hash = NULL; in batadv_bla_free()
1851 bat_priv->bla.loopdetect_addr)) in batadv_bla_loopdetect_check()
1857 if (batadv_has_timed_out(bat_priv->bla.loopdetect_lasttime, in batadv_bla_loopdetect_check()
1916 if (unlikely(atomic_read(&bat_priv->bla.num_requests))) in batadv_bla_rx()
2051 if (unlikely(atomic_read(&bat_priv->bla.num_requests))) in batadv_bla_tx()
2257 hash = bat_priv->bla.claim_hash; in batadv_bla_claim_dump()
2427 hash = bat_priv->bla.backbone_hash; in batadv_bla_backbone_dump()