Lines Matching refs:dat
105 queue_delayed_work(batadv_event_workqueue, &bat_priv->dat.work,
168 if (!bat_priv->dat.hash)
171 for (i = 0; i < bat_priv->dat.hash->size; i++) {
172 head = &bat_priv->dat.hash->table[i];
173 list_lock = &bat_priv->dat.hash->list_locks[i];
204 bat_priv = container_of(priv_dat, struct batadv_priv, dat);
290 const struct batadv_dat_entry *dat = data;
295 key = (__force const unsigned char *)&dat->ip;
296 for (i = 0; i < sizeof(dat->ip); i++) {
302 vid = htons(dat->vid);
304 for (i = 0; i < sizeof(dat->vid); i++) {
332 struct batadv_hashtable *hash = bat_priv->dat.hash;
361 * batadv_dat_entry_add() - add a new dat entry or update it if already exists
397 hash_added = batadv_hash_add(bat_priv->dat.hash, batadv_compare_dat,
637 struct batadv_dat_entry dat;
647 dat.ip = ip_dst;
648 dat.vid = vid;
649 ip_key = (batadv_dat_addr_t)batadv_hash_dat(&dat,
740 * batadv_dat_tvlv_container_update() - update the dat tvlv container after dat
762 * batadv_dat_status_update() - update the dat tvlv container after dat
774 * batadv_dat_tvlv_ogm_handler_v1() - process incoming dat tvlv container
798 if (!bat_priv->dat.hash)
803 batadv_hash_destroy(bat_priv->dat.hash);
805 bat_priv->dat.hash = NULL;
816 if (bat_priv->dat.hash)
819 bat_priv->dat.hash = batadv_hash_new(1024);
821 if (!bat_priv->dat.hash)
824 INIT_DELAYED_WORK(&bat_priv->dat.work, batadv_dat_purge);
843 cancel_delayed_work_sync(&bat_priv->dat.work);
860 struct batadv_hashtable *hash = bat_priv->dat.hash;
1019 hash = bat_priv->dat.hash;