Home
last modified time | relevance | path

Searched refs:p_osm (Results 1 – 25 of 41) sorted by relevance

12

/freebsd/contrib/ofed/opensm/opensm/
H A Dosm_opensm.c243 memset(p_osm, 0, sizeof(*p_osm)); in osm_opensm_construct()
315 osm_vl15_shutdown(&p_osm->vl15, &p_osm->mad_pool); in osm_opensm_destroy()
342 osm_vl15_destroy(&p_osm->vl15, &p_osm->mad_pool); in osm_opensm_destroy_finish()
451 status = osm_db_init(&p_osm->db, &p_osm->log); in osm_opensm_init()
483 &p_osm->log, &p_osm->stats, &p_osm->subn, in osm_opensm_init_finish()
489 status = osm_sm_init(&p_osm->sm, &p_osm->subn, &p_osm->db, in osm_opensm_init_finish()
490 p_osm->p_vendor, &p_osm->mad_pool, &p_osm->vl15, in osm_opensm_init_finish()
491 &p_osm->log, &p_osm->stats, &p_osm->disp, in osm_opensm_init_finish()
496 status = osm_sa_init(&p_osm->sm, &p_osm->sa, &p_osm->subn, in osm_opensm_init_finish()
497 p_osm->p_vendor, &p_osm->mad_pool, &p_osm->log, in osm_opensm_init_finish()
[all …]
H A Dosm_ucast_updn.c70 osm_opensm_t *p_osm; member
350 OSM_LOG_ENTER(&p_updn->p_osm->log); in updn_build_lid_matrices()
383 OSM_LOG_EXIT(&p_updn->p_osm->log); in updn_build_lid_matrices()
410 osm_opensm_t *p_osm = p_updn->p_osm; in updn_find_root_nodes_by_min_hop() local
420 OSM_LOG_ENTER(&p_osm->log); in updn_find_root_nodes_by_min_hop()
422 OSM_LOG(&p_osm->log, OSM_LOG_DEBUG, in updn_find_root_nodes_by_min_hop()
455 OSM_LOG(&p_osm->log, OSM_LOG_DEBUG, in updn_find_root_nodes_by_min_hop()
507 OSM_LOG_EXIT(&p_osm->log); in updn_find_root_nodes_by_min_hop()
622 update_id, p_updn->p_osm); in updn_lid_matrices()
652 OSM_LOG_EXIT(&p_updn->p_osm->log); in updn_lid_matrices()
[all …]
H A Dosm_console.c381 p_osm->subn.opt.sm_priority); in priority_parse()
522 p_osm->subn.in_sweep_hop_0, in print_status()
525 dump_sms(p_osm, out); in print_status()
558 print_status(p_osm, out); in status_parse()
573 osm_opensm_sweep(p_osm); in resweep_parse()
580 osm_opensm_sweep(p_osm); in reroute_parse()
611 p_osm->log.flush = TRUE; in logflush_parse()
614 p_osm->log.flush = FALSE; in logflush_parse()
1389 osm_update_node_desc(p_osm); in update_desc_parse()
1609 &p_osm->perfmgr, in perfmgr_parse()
[all …]
H A Dosm_ucast_file.c66 OSM_LOG(&p_osm->log, OSM_LOG_VERBOSE, in remap_lid()
90 OSM_LOG(&p_osm->log, OSM_LOG_VERBOSE, in add_path()
102 OSM_LOG(&p_osm->log, OSM_LOG_DEBUG, in add_path()
128 osm_opensm_t *p_osm = context; in do_ucast_file_load() local
135 file_name = p_osm->subn.opt.lfts_file; in do_ucast_file_load()
137 OSM_LOG(&p_osm->log, OSM_LOG_VERBOSE, in do_ucast_file_load()
173 OSM_LOG(&p_osm->log, OSM_LOG_ERROR, in do_ucast_file_load()
182 OSM_LOG(&p_osm->log, OSM_LOG_ERROR, in do_ucast_file_load()
202 OSM_LOG(&p_osm->log, OSM_LOG_ERROR, in do_ucast_file_load()
213 OSM_LOG(&p_osm->log, OSM_LOG_ERROR, in do_ucast_file_load()
[all …]
H A Dosm_sa.c544 osm_opensm_t *p_osm; member
626 osm_opensm_t *p_osm = ((struct opensm_dump_context *)cxt)->p_osm; in sa_dump_one_mgrp() local
652 dump_context.p_osm = p_osm; in sa_dump_one_mgrp()
800 dump_context.p_osm = p_osm; in sa_dump_all_sa()
823 if (p_osm->sa.dirty) { in osm_sa_db_file_dump()
887 if (osm_svcr_get_by_rid(&p_osm->subn, &p_osm->log, sr)) { in load_svcr()
905 osm_svcr_insert_to_db(&p_osm->subn, &p_osm->log, p_svcr); in load_svcr()
923 infr.sa = &p_osm->sa; in load_infr()
930 if (osm_infr_get_by_rec(&p_osm->subn, &p_osm->log, &infr)) { in load_infr()
945 osm_infr_insert_to_db(&p_osm->subn, &p_osm->log, p_infr); in load_infr()
[all …]
H A Dosm_ucast_dnup.c71 osm_opensm_t *p_osm; member
228 osm_log_t *p_log = &p_dnup->p_osm->log; in dnup_subn_rank()
364 OSM_LOG_ENTER(&p_dnup->p_osm->log); in dnup_build_lid_matrices()
385 OSM_LOG_EXIT(&p_dnup->p_osm->log); in dnup_build_lid_matrices()
418 OSM_LOG_ENTER(&p_dnup->p_osm->log); in dnup_lid_matrices()
428 OSM_LOG_EXIT(&p_dnup->p_osm->log); in dnup_lid_matrices()
446 OSM_LOG(&(p_dnup->p_osm->log), in dnup_lid_matrices()
456 OSM_LOG(&(p_dnup->p_osm->log), in dnup_lid_matrices()
458 OSM_LOG_EXIT(&p_dnup->p_osm->log); in dnup_lid_matrices()
471 OSM_LOG_EXIT(&p_dnup->p_osm->log); in dnup_lid_matrices()
[all …]
H A Dosm_ucast_ftree.c208 osm_opensm_t *p_osm; member
1472 OSM_LOG_ENTER(&p_ftree->p_osm->log); in fabric_mark_leaf_switches()
1521 OSM_LOG_EXIT(&p_ftree->p_osm->log); in fabric_mark_leaf_switches()
1638 OSM_LOG_EXIT(&p_ftree->p_osm->log); in bfs_fabric_indexing()
1696 OSM_LOG_EXIT(&p_ftree->p_osm->log); in fabric_make_indexing()
1792 OSM_LOG_EXIT(&p_ftree->p_osm->log); in fabric_create_leaf_switch_array()
1931 OSM_LOG(&p_ftree->p_osm->log, in fabric_validate_topology()
1974 OSM_LOG(&p_ftree->p_osm->log, in fabric_validate_topology()
2016 OSM_LOG_EXIT(&p_ftree->p_osm->log); in fabric_validate_topology()
2909 OSM_LOG_EXIT(&p_ftree->p_osm->log); in fabric_route_to_cns()
[all …]
H A Dosm_congestion_control.c363 OSM_LOG_ENTER(&p_osm->log); in osm_congestion_control_setup()
371 cc_setup_mad_data(&p_osm->sm); in osm_congestion_control_setup()
373 cl_plock_acquire(&p_osm->lock); in osm_congestion_control_setup()
406 cl_plock_release(&p_osm->lock); in osm_congestion_control_setup()
408 OSM_LOG_EXIT(&p_osm->log); in osm_congestion_control_setup()
468 cl_plock_acquire(&p_osm->lock); in cc_rcv_mad()
584 OSM_LOG_ENTER(&p_osm->log); in osm_congestion_control_init()
588 p_cc->osm = p_osm; in osm_congestion_control_init()
589 p_cc->subn = &p_osm->subn; in osm_congestion_control_init()
590 p_cc->sm = &p_osm->sm; in osm_congestion_control_init()
[all …]
H A Dosm_qos.c458 if (!p_osm->subn.opt.qos) in osm_qos_setup()
461 OSM_LOG_ENTER(&p_osm->log); in osm_qos_setup()
464 &p_osm->subn.opt.qos_options); in osm_qos_setup()
466 &p_osm->subn.opt.qos_options); in osm_qos_setup()
468 &p_osm->subn.opt.qos_options); in osm_qos_setup()
470 &p_osm->subn.opt.qos_options); in osm_qos_setup()
487 cl_plock_release(&p_osm->lock); in osm_qos_setup()
499 cl_plock_release(&p_osm->lock); in osm_qos_setup()
522 cl_plock_release(&p_osm->lock); in osm_qos_setup()
553 cl_plock_release(&p_osm->lock); in osm_qos_setup()
[all …]
H A Dosm_state_mgr.c387 p_subn->p_osm->sa.dirty = TRUE; in state_mgr_sa_clean()
1374 osm_qos_setup(sm->p_subn->p_osm); in do_sweep()
1397 osm_opensm_report_event(sm->p_subn->p_osm, in do_sweep()
1444 osm_opensm_report_event(sm->p_subn->p_osm, in do_sweep()
1474 osm_opensm_report_event(sm->p_subn->p_osm, in do_sweep()
1485 osm_opensm_report_event(sm->p_subn->p_osm, in do_sweep()
1543 osm_pkey_mgr_process(sm->p_subn->p_osm); in do_sweep()
1548 osm_sa_db_file_load(sm->p_subn->p_osm); in do_sweep()
1590 osm_qos_setup(sm->p_subn->p_osm); in do_sweep()
1602 osm_opensm_report_event(sm->p_subn->p_osm, in do_sweep()
[all …]
H A Dosm_pkey_mgr.c822 CL_ASSERT(p_osm); in osm_pkey_mgr_process()
824 OSM_LOG_ENTER(&p_osm->log); in osm_pkey_mgr_process()
828 if (osm_prtn_make_partitions(&p_osm->log, &p_osm->subn) != IB_SUCCESS) { in osm_pkey_mgr_process()
841 pkey_mgr_process_partition_table(&p_osm->log, &p_osm->sm, in osm_pkey_mgr_process()
843 pkey_mgr_process_partition_table(&p_osm->log, &p_osm->sm, in osm_pkey_mgr_process()
853 if (pkey_mgr_update_port(&p_osm->log, &p_osm->sm, p_port)) in osm_pkey_mgr_process()
856 && pkey_mgr_update_peer_port(&p_osm->log, &p_osm->sm, in osm_pkey_mgr_process()
857 &p_osm->subn, p_port, in osm_pkey_mgr_process()
863 p_tbl = &p_osm->subn.sw_guid_tbl; in osm_pkey_mgr_process()
887 CL_PLOCK_RELEASE(&p_osm->lock); in osm_pkey_mgr_process()
[all …]
H A Dosm_ucast_lash.c70 osm_log_t *p_log = &p_lash->p_osm->log; in connect_switches()
665 osm_log_t *p_log = &p_lash->p_osm->log; in free_lash_structures()
706 osm_log_t *p_log = &p_lash->p_osm->log; in init_lash_structures()
785 osm_log_t *p_log = &p_lash->p_osm->log; in lash_core()
988 osm_log_t *p_log = &p_lash->p_osm->log; in populate_fwd_tbls()
1059 osm_log_t *p_log = &p_lash->p_osm->log; in osm_lash_process_switch()
1261 p_lash->p_osm = p_osm; in lash_create()
1289 osm_opensm_t *p_osm = p_lash->p_osm; in get_lash_sl() local
1291 if (!(p_osm->routing_engine_used && in get_lash_sl()
1314 return p_osm->subn.opt.lash_start_vl; in get_lash_sl()
[all …]
H A Dosm_dump.c130 osm_opensm_t *p_osm = cxt; in dump_ucast_routes() local
140 dor = (p_osm->routing_engine_used && in dump_ucast_routes()
228 p_osm->subn.opt.port_shifting, in dump_ucast_routes()
229 p_osm->subn.opt.scatter_ports, in dump_ucast_routes()
306 osm_opensm_t *p_osm = cxt; in dump_lid_matrix() local
323 p_port = osm_get_port_by_lid_ho(&p_osm->subn, lid); in dump_lid_matrix()
334 osm_opensm_t *p_osm = cxt; in dump_ucast_lfts() local
354 p_port = osm_get_port_by_lid_ho(&p_osm->subn, lid); in dump_ucast_lfts()
643 osm_opensm_t *p_osm; member
677 p_osm->subn.opt.dump_files_dir, file_name); in osm_dump_qmap_to_file()
[all …]
H A Dosm_ucast_mgr.c527 OSM_LOG(&p_subn->p_osm->log, OSM_LOG_ERROR, in set_search_ordering_ports()
538 OSM_LOG(&p_subn->p_osm->log, OSM_LOG_ERROR, in set_search_ordering_ports()
702 OSM_LOG(&p_subn->p_osm->log, OSM_LOG_DEBUG, in ucast_mgr_setup_all_switches()
1100 osm_opensm_t *p_osm; in osm_ucast_mgr_process() local
1108 p_osm = p_mgr->p_subn->p_osm; in osm_ucast_mgr_process()
1109 p_routing_eng = p_osm->routing_engine_list; in osm_ucast_mgr_process()
1121 p_osm->routing_engine_used = NULL; in osm_ucast_mgr_process()
1129 if (!p_osm->routing_engine_used && in osm_ucast_mgr_process()
1132 failed = ucast_mgr_route(p_osm->default_routing_engine, p_osm); in osm_ucast_mgr_process()
1135 if (p_osm->routing_engine_used) { in osm_ucast_mgr_process()
[all …]
H A Dmain.c429 static ib_net64_t get_port_guid(IN osm_opensm_t * p_osm, uint64_t port_guid) in get_port_guid() argument
444 status = osm_vendor_get_all_port_attr(p_osm->p_vendor, attr_array, in get_port_guid()
476 if (p_osm->subn.opt.daemon) in get_port_guid()
564 int osm_manager_loop(osm_subn_opt_t * p_opt, osm_opensm_t * p_osm) in osm_manager_loop() argument
569 if (!osm_console_init(p_opt, &p_osm->console, &p_osm->log)) in osm_manager_loop()
578 if (osm_console(p_osm)) in osm_manager_loop()
585 osm_log_reopen_file(&(p_osm->log)); in osm_manager_loop()
590 p_osm->subn.force_heavy_sweep = TRUE; in osm_manager_loop()
591 osm_opensm_sweep(p_osm); in osm_manager_loop()
595 osm_console_exit(&p_osm->console, &p_osm->log); in osm_manager_loop()
H A Dosm_subnet.c263 osm_sm_t *p_sm = &p_subn->p_osm->sm; in opts_setup_sminfo_polling_timeout()
272 osm_sm_t *p_sm = &p_subn->p_osm->sm; in opts_setup_sm_priority()
932 OSM_LOG_ENTER(&(p_subn->p_osm->log)); in subn_validate_g2m()
969 OSM_LOG_EXIT(&(p_subn->p_osm->log)); in subn_validate_g2m()
980 OSM_LOG_ENTER(&(p_subn->p_osm->log)); in subn_validate_neighbor()
1054 OSM_LOG_EXIT(&(p_subn->p_osm->log)); in subn_validate_neighbor()
1233 p_subn->p_osm = p_osm; in osm_subn_init()
1282 osm_log(&(p_osm->log), OSM_LOG_SYS, in osm_subn_init()
1311 osm_log(&(p_osm->log), OSM_LOG_SYS, in osm_subn_init()
1725 osm_log_t *log = &p_subn->p_osm->log; in parse_prefix_routes_file()
[all …]
H A Dosm_mesh.c213 osm_log_t *p_log = &p_lash->p_osm->log; in poly_alloc()
302 osm_log_t *p_log = &p_lash->p_osm->log; in m_alloc()
357 osm_log_t *p_log = &p_lash->p_osm->log; in pm_alloc()
541 osm_log_t *p_log = &p_lash->p_osm->log; in char_poly()
597 osm_log_t *p_log = &p_lash->p_osm->log; in get_switch_metric()
676 osm_log_t *p_log = &p_lash->p_osm->log; in classify_switch()
711 osm_log_t *p_log = &p_lash->p_osm->log; in classify_mesh_type()
745 osm_log_t *p_log = &p_lash->p_osm->log; in remove_edges()
780 osm_log_t *p_log = &p_lash->p_osm->log; in get_local_geometry()
840 osm_log_t *p_log = &p_lash->p_osm->log; in seed_axes()
[all …]
H A Dosm_multicast.c147 subn->p_osm->sa.dirty = TRUE; in osm_mgrp_new()
187 subn->p_osm->sa.dirty = TRUE; in osm_mgrp_cleanup()
331 osm_sm_reroute_mlid(&subn->p_osm->sm, mgrp->mlid); in osm_mgrp_add_port()
342 subn->p_osm->sa.dirty = TRUE; in osm_mgrp_add_port()
403 osm_sm_reroute_mlid(&subn->p_osm->sm, mgrp->mlid); in osm_mgrp_remove_port()
418 subn->p_osm->sa.dirty = TRUE; in osm_mgrp_remove_port()
H A Dosm_node_desc_rcv.c74 tmp_desc = remap_node_name(sm->p_subn->p_osm->node_name_map, in nd_rcv_process_nd()
85 osm_perfmgr_update_nodename(&sm->p_subn->p_osm->perfmgr, in nd_rcv_process_nd()
H A Dosm_service.c128 p_subn->p_osm->sa.dirty = TRUE; in osm_svcr_insert_to_db()
144 p_subn->p_osm->sa.dirty = TRUE; in osm_svcr_remove_from_db()
H A Dosm_lin_fwd_rcv.c109 osm_opensm_report_event(sm->p_subn->p_osm, in osm_lft_rcv_process()
/freebsd/contrib/ofed/opensm/include/opensm/
H A Dosm_opensm.h307 void osm_opensm_construct(IN osm_opensm_t * p_osm);
336 void osm_opensm_construct_finish(IN osm_opensm_t * p_osm);
364 void osm_opensm_destroy(IN osm_opensm_t * p_osm);
393 void osm_opensm_destroy_finish(IN osm_opensm_t * p_osm);
422 ib_api_status_t osm_opensm_init(IN osm_opensm_t * p_osm,
452 ib_api_status_t osm_opensm_init_finish(IN osm_opensm_t * p_osm,
482 static inline void osm_opensm_sweep(IN osm_opensm_t * p_osm) in osm_opensm_sweep() argument
484 osm_sm_sweep(&p_osm->sm); in osm_opensm_sweep()
512 static inline void osm_opensm_set_log_flags(IN osm_opensm_t * p_osm, in osm_opensm_set_log_flags() argument
515 osm_log_set_level(&p_osm->log, log_flags); in osm_opensm_set_log_flags()
[all …]
H A Dosm_console.h48 int osm_console(osm_opensm_t * p_osm);
H A Dosm_ucast_lash.h87 osm_opensm_t *p_osm; member
H A Dosm_sa.h509 int osm_sa_db_file_dump(struct osm_opensm *p_osm);
531 int osm_sa_db_file_load(struct osm_opensm *p_osm);

12