Lines Matching refs:osm

159 static void append_routing_engine(osm_opensm_t *osm,  in append_routing_engine()  argument
166 if (!osm->routing_engine_list) { in append_routing_engine()
167 osm->routing_engine_list = routing_engine; in append_routing_engine()
171 r = osm->routing_engine_list; in append_routing_engine()
178 static struct osm_routing_engine *setup_routing_engine(osm_opensm_t *osm, in setup_routing_engine() argument
185 osm->no_fallback_routing_engine = TRUE; in setup_routing_engine()
193 OSM_LOG(&osm->log, OSM_LOG_VERBOSE, in setup_routing_engine()
201 if (m->setup(re, osm)) { in setup_routing_engine()
202 OSM_LOG(&osm->log, OSM_LOG_VERBOSE, in setup_routing_engine()
208 OSM_LOG(&osm->log, OSM_LOG_DEBUG, in setup_routing_engine()
211 osm->default_routing_engine = re; in setup_routing_engine()
216 OSM_LOG(&osm->log, OSM_LOG_ERROR, in setup_routing_engine()
221 static void setup_routing_engines(osm_opensm_t *osm, const char *engine_names) in setup_routing_engines() argument
230 re = setup_routing_engine(osm, name); in setup_routing_engines()
232 append_routing_engine(osm, re); in setup_routing_engines()
237 if (!osm->default_routing_engine) in setup_routing_engines()
238 setup_routing_engine(osm, "minhop"); in setup_routing_engines()
260 static void destroy_routing_engines(osm_opensm_t *osm) in destroy_routing_engines() argument
264 next = osm->routing_engine_list; in destroy_routing_engines()
274 static void destroy_plugins(osm_opensm_t *osm) in destroy_plugins() argument
278 while (!cl_is_qlist_empty(&osm->plugin_list)){ in destroy_plugins()
279 p = (osm_epi_plugin_t *)cl_qlist_remove_head(&osm->plugin_list); in destroy_plugins()
365 static void load_plugins(osm_opensm_t *osm, const char *plugin_names) in load_plugins() argument
373 epi = osm_epi_construct(osm, name); in load_plugins()
375 osm_log_v2(&osm->log, OSM_LOG_ERROR, FILE_ID, in load_plugins()
379 cl_qlist_insert_tail(&osm->plugin_list, &epi->list); in load_plugins()
567 void osm_opensm_report_event(osm_opensm_t *osm, osm_epi_event_id_t event_id, in osm_opensm_report_event() argument
572 for (item = cl_qlist_head(&osm->plugin_list); in osm_opensm_report_event()
573 !osm_exit_flag && item != cl_qlist_end(&osm->plugin_list); in osm_opensm_report_event()