Lines Matching defs:dat
104 queue_delayed_work(batadv_event_workqueue, &bat_priv->dat.work,
167 if (!bat_priv->dat.hash)
170 for (i = 0; i < bat_priv->dat.hash->size; i++) {
171 head = &bat_priv->dat.hash->table[i];
172 list_lock = &bat_priv->dat.hash->list_locks[i];
203 bat_priv = container_of(priv_dat, struct batadv_priv, dat);
289 const struct batadv_dat_entry *dat = data;
294 key = (__force const unsigned char *)&dat->ip;
295 for (i = 0; i < sizeof(dat->ip); i++) {
301 vid = htons(dat->vid);
303 for (i = 0; i < sizeof(dat->vid); i++) {
331 struct batadv_hashtable *hash = bat_priv->dat.hash;
360 * batadv_dat_entry_add() - add a new dat entry or update it if already exists
396 hash_added = batadv_hash_add(bat_priv->dat.hash, batadv_compare_dat,
634 struct batadv_dat_entry dat;
644 dat.ip = ip_dst;
645 dat.vid = vid;
646 ip_key = (batadv_dat_addr_t)batadv_hash_dat(&dat,
736 * batadv_dat_tvlv_container_update() - update the dat tvlv container after dat
758 * batadv_dat_status_update() - update the dat tvlv container after dat
770 * batadv_dat_tvlv_ogm_handler_v1() - process incoming dat tvlv container
794 if (!bat_priv->dat.hash)
799 batadv_hash_destroy(bat_priv->dat.hash);
801 bat_priv->dat.hash = NULL;
812 if (bat_priv->dat.hash)
815 bat_priv->dat.hash = batadv_hash_new(1024);
817 if (!bat_priv->dat.hash)
820 INIT_DELAYED_WORK(&bat_priv->dat.work, batadv_dat_purge);
839 cancel_delayed_work_sync(&bat_priv->dat.work);
961 hash = bat_priv->dat.hash;