Lines Matching refs:vis_plugin
93 struct visibility_plugin *vis_plugin; in visibility_init() local
95 vis_plugin = (struct visibility_plugin *) plugin; in visibility_init()
98 plugin->wp_sdev->si_drv1 = vis_plugin; in visibility_init()
99 mtx_init(&vis_plugin->pl_mtx, "visibility_plugin mtx", in visibility_init()
107 struct visibility_plugin *vis_plugin; in visibility_deinit() local
109 vis_plugin = (struct visibility_plugin *) plugin; in visibility_deinit()
111 mtx_destroy(&vis_plugin->pl_mtx); in visibility_deinit()
112 free(vis_plugin, M_WTAP_PLUGIN); in visibility_deinit()
122 struct visibility_plugin *vis_plugin = in visibility_work() local
124 struct wtap_hal *hal = (struct wtap_hal *)vis_plugin->base.wp_hal; in visibility_work()
132 mtx_lock(&vis_plugin->pl_mtx); in visibility_work()
133 map = &vis_plugin->pl_node[p->id]; in visibility_work()
134 mtx_unlock(&vis_plugin->pl_mtx); in visibility_work()
168 add_link(struct visibility_plugin *vis_plugin, struct link *l) in add_link() argument
171 mtx_lock(&vis_plugin->pl_mtx); in add_link()
172 struct vis_map *map = &vis_plugin->pl_node[l->id1]; in add_link()
177 mtx_unlock(&vis_plugin->pl_mtx); in add_link()
185 del_link(struct visibility_plugin *vis_plugin, struct link *l) in del_link() argument
188 mtx_lock(&vis_plugin->pl_mtx); in del_link()
189 struct vis_map *map = &vis_plugin->pl_node[l->id1]; in del_link()
194 mtx_unlock(&vis_plugin->pl_mtx); in del_link()
204 struct visibility_plugin *vis_plugin = in vis_ioctl() local
206 struct wtap_hal *hal = vis_plugin->base.wp_hal; in vis_ioctl()
223 del_link(vis_plugin, &l); in vis_ioctl()
225 add_link(vis_plugin, &l); in vis_ioctl()