Lines Matching refs:nc
79 queue_delayed_work(batadv_event_workqueue, &bat_priv->nc.work, in batadv_nc_start_timer()
144 bat_priv->nc.timestamp_fwd_flush = jiffies; in batadv_nc_mesh_init()
145 bat_priv->nc.timestamp_sniffed_purge = jiffies; in batadv_nc_mesh_init()
147 if (bat_priv->nc.coding_hash || bat_priv->nc.decoding_hash) in batadv_nc_mesh_init()
150 bat_priv->nc.coding_hash = batadv_hash_new(128); in batadv_nc_mesh_init()
151 if (!bat_priv->nc.coding_hash) in batadv_nc_mesh_init()
154 batadv_hash_set_lock_class(bat_priv->nc.coding_hash, in batadv_nc_mesh_init()
157 bat_priv->nc.decoding_hash = batadv_hash_new(128); in batadv_nc_mesh_init()
158 if (!bat_priv->nc.decoding_hash) { in batadv_nc_mesh_init()
159 batadv_hash_destroy(bat_priv->nc.coding_hash); in batadv_nc_mesh_init()
163 batadv_hash_set_lock_class(bat_priv->nc.decoding_hash, in batadv_nc_mesh_init()
166 INIT_DELAYED_WORK(&bat_priv->nc.work, batadv_nc_worker); in batadv_nc_mesh_init()
186 bat_priv->nc.min_tq = 200; in batadv_nc_init_bat_priv()
187 bat_priv->nc.max_fwd_delay = 10; in batadv_nc_init_bat_priv()
188 bat_priv->nc.max_buffer_time = 200; in batadv_nc_init_bat_priv()
302 bat_priv->nc.max_fwd_delay * 10); in batadv_nc_to_purge_nc_path_coding()
323 bat_priv->nc.max_buffer_time * 10); in batadv_nc_to_purge_nc_path_decoding()
598 unsigned long timeout = bat_priv->nc.max_buffer_time; in batadv_nc_sniffed_purge()
637 unsigned long timeout = bat_priv->nc.max_fwd_delay; in batadv_nc_fwd_flush()
718 bat_priv = container_of(priv_nc, struct batadv_priv, nc); in batadv_nc_worker()
721 batadv_nc_purge_paths(bat_priv, bat_priv->nc.coding_hash, in batadv_nc_worker()
723 batadv_nc_purge_paths(bat_priv, bat_priv->nc.decoding_hash, in batadv_nc_worker()
726 timeout = bat_priv->nc.max_fwd_delay; in batadv_nc_worker()
728 if (batadv_has_timed_out(bat_priv->nc.timestamp_fwd_flush, timeout)) { in batadv_nc_worker()
729 batadv_nc_process_nc_paths(bat_priv, bat_priv->nc.coding_hash, in batadv_nc_worker()
731 bat_priv->nc.timestamp_fwd_flush = jiffies; in batadv_nc_worker()
734 if (batadv_has_timed_out(bat_priv->nc.timestamp_sniffed_purge, in batadv_nc_worker()
735 bat_priv->nc.max_buffer_time)) { in batadv_nc_worker()
736 batadv_nc_process_nc_paths(bat_priv, bat_priv->nc.decoding_hash, in batadv_nc_worker()
738 bat_priv->nc.timestamp_sniffed_purge = jiffies; in batadv_nc_worker()
780 if (ogm_packet->tq < bat_priv->nc.min_tq) in batadv_can_nc_with_orig()
1273 struct batadv_hashtable *hash = bat_priv->nc.coding_hash; in batadv_nc_path_search()
1529 bat_priv->nc.coding_hash, in batadv_nc_skb_forward()
1578 bat_priv->nc.decoding_hash, in batadv_nc_skb_store_for_decoding()
1740 struct batadv_hashtable *hash = bat_priv->nc.decoding_hash; in batadv_nc_find_decoding_packet()
1874 cancel_delayed_work_sync(&bat_priv->nc.work); in batadv_nc_mesh_free()
1876 batadv_nc_purge_paths(bat_priv, bat_priv->nc.coding_hash, NULL); in batadv_nc_mesh_free()
1877 batadv_hash_destroy(bat_priv->nc.coding_hash); in batadv_nc_mesh_free()
1878 batadv_nc_purge_paths(bat_priv, bat_priv->nc.decoding_hash, NULL); in batadv_nc_mesh_free()
1879 batadv_hash_destroy(bat_priv->nc.decoding_hash); in batadv_nc_mesh_free()
1956 debugfs_create_u8("min_tq", 0644, nc_dir, &bat_priv->nc.min_tq); in batadv_nc_init_debugfs()
1959 &bat_priv->nc.max_fwd_delay); in batadv_nc_init_debugfs()
1962 &bat_priv->nc.max_buffer_time); in batadv_nc_init_debugfs()