Lines Matching refs:dat
62 INIT_DELAYED_WORK(&bat_priv->dat.work, batadv_dat_purge); in batadv_dat_start_timer()
63 queue_delayed_work(batadv_event_workqueue, &bat_priv->dat.work, in batadv_dat_start_timer()
123 if (!bat_priv->dat.hash) in __batadv_dat_purge()
126 for (i = 0; i < bat_priv->dat.hash->size; i++) { in __batadv_dat_purge()
127 head = &bat_priv->dat.hash->table[i]; in __batadv_dat_purge()
128 list_lock = &bat_priv->dat.hash->list_locks[i]; in __batadv_dat_purge()
159 bat_priv = container_of(priv_dat, struct batadv_priv, dat); in batadv_dat_purge()
243 const struct batadv_dat_entry *dat = data; in batadv_hash_dat() local
247 key = (const unsigned char *)&dat->ip; in batadv_hash_dat()
248 for (i = 0; i < sizeof(dat->ip); i++) { in batadv_hash_dat()
254 key = (const unsigned char *)&dat->vid; in batadv_hash_dat()
255 for (i = 0; i < sizeof(dat->vid); i++) { in batadv_hash_dat()
283 struct batadv_hashtable *hash = bat_priv->dat.hash; in batadv_dat_entry_hash_find()
348 hash_added = batadv_hash_add(bat_priv->dat.hash, batadv_compare_dat, in batadv_dat_entry_add()
588 struct batadv_dat_entry dat; in batadv_dat_select_candidates() local
598 dat.ip = ip_dst; in batadv_dat_select_candidates()
599 dat.vid = vid; in batadv_dat_select_candidates()
600 ip_key = (batadv_dat_addr_t)batadv_hash_dat(&dat, in batadv_dat_select_candidates()
749 if (!bat_priv->dat.hash) in batadv_dat_hash_free()
754 batadv_hash_destroy(bat_priv->dat.hash); in batadv_dat_hash_free()
756 bat_priv->dat.hash = NULL; in batadv_dat_hash_free()
767 if (bat_priv->dat.hash) in batadv_dat_init()
770 bat_priv->dat.hash = batadv_hash_new(1024); in batadv_dat_init()
772 if (!bat_priv->dat.hash) in batadv_dat_init()
793 cancel_delayed_work_sync(&bat_priv->dat.work); in batadv_dat_free()
810 struct batadv_hashtable *hash = bat_priv->dat.hash; in batadv_dat_cache_seq_print_text()