/freebsd/contrib/ofed/opensm/opensm/ |
H A D | osm_multicast.c | 119 osm_mgrp_t *osm_mgrp_new(IN osm_subn_t * subn, IN ib_net16_t mlid, in osm_mgrp_new() argument 135 mbox = osm_get_mbox_by_mlid(subn, p_mgrp->mlid); in osm_mgrp_new() 142 subn->mboxes[mbox->mlid - IB_LID_MCAST_START_HO] = mbox; in osm_mgrp_new() 144 cl_fmap_insert(&subn->mgrp_mgid_tbl, &p_mgrp->mcmember_rec.mgid, in osm_mgrp_new() 147 subn->p_osm->sa.dirty = TRUE; in osm_mgrp_new() 151 void osm_mgrp_cleanup(osm_subn_t * subn, osm_mgrp_t * mgrp) in osm_mgrp_cleanup() argument 177 cl_fmap_remove_item(&subn->mgrp_mgid_tbl, &mgrp->map_item); in osm_mgrp_cleanup() 179 mbox = osm_get_mbox_by_mlid(subn, mgrp->mlid); in osm_mgrp_cleanup() 182 subn->mboxes[cl_ntoh16(mgrp->mlid) - IB_LID_MCAST_START_HO] = NULL; in osm_mgrp_cleanup() 187 subn->p_osm->sa.dirty = TRUE; in osm_mgrp_cleanup() [all …]
|
H A D | osm_ucast_updn.c | 224 for (item = cl_qmap_head(&p_updn->p_osm->subn.sw_guid_tbl); in updn_subn_rank() 225 item != cl_qmap_end(&p_updn->p_osm->subn.sw_guid_tbl); in updn_subn_rank() 292 port = osm_get_port_by_lid_ho(&updn->p_osm->subn, i); in updn_clear_non_root_hops() 302 osm_subn_t *p_subn = &p_updn->p_osm->subn; in updn_set_min_hop_table() 314 for (item = cl_qmap_head(&p_updn->p_osm->subn.sw_guid_tbl); in updn_set_min_hop_table() 315 item != cl_qmap_end(&p_updn->p_osm->subn.sw_guid_tbl); in updn_set_min_hop_table() 332 for (item = cl_qmap_head(&p_updn->p_osm->subn.sw_guid_tbl); in updn_set_min_hop_table() 333 item != cl_qmap_end(&p_updn->p_osm->subn.sw_guid_tbl); in updn_set_min_hop_table() 362 if (cl_is_qmap_empty(&p_updn->p_osm->subn.sw_guid_tbl)) { in updn_build_lid_matrices() 424 cl_qmap_count(&p_osm->subn.port_guid_tbl)); in updn_find_root_nodes_by_min_hop() [all …]
|
H A D | osm_ucast_dnup.c | 235 for (item = cl_qmap_head(&p_dnup->p_osm->subn.sw_guid_tbl); in dnup_subn_rank() 236 item != cl_qmap_end(&p_dnup->p_osm->subn.sw_guid_tbl); in dnup_subn_rank() 297 osm_subn_t *p_subn = &p_dnup->p_osm->subn; in dnup_set_min_hop_table() 311 for (item = cl_qmap_head(&p_dnup->p_osm->subn.sw_guid_tbl); in dnup_set_min_hop_table() 312 item != cl_qmap_end(&p_dnup->p_osm->subn.sw_guid_tbl); in dnup_set_min_hop_table() 326 for (item = cl_qmap_head(&p_dnup->p_osm->subn.sw_guid_tbl); in dnup_set_min_hop_table() 327 item != cl_qmap_end(&p_dnup->p_osm->subn.sw_guid_tbl); in dnup_set_min_hop_table() 337 for (item = cl_qmap_head(&p_dnup->p_osm->subn.sw_guid_tbl); in dnup_set_min_hop_table() 338 item != cl_qmap_end(&p_dnup->p_osm->subn.sw_guid_tbl); in dnup_set_min_hop_table() 345 for (item = cl_qmap_head(&p_dnup->p_osm->subn.sw_guid_tbl); in dnup_set_min_hop_table() [all …]
|
H A D | osm_dump.c | 146 p_port = osm_get_port_by_lid_ho(&p_osm->subn, lid_ho); 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() 323 p_port = osm_get_port_by_lid_ho(&p_osm->subn, lid); in dump_lid_matrix() 354 p_port = osm_get_port_by_lid_ho(&p_osm->subn, lid); in dump_ucast_lfts() 616 if (osm_physp_get_port_guid(p_physp) == osm->subn.sm_port_guid) in print_node_report() 677 p_osm->subn.opt.dump_files_dir, file_name); in osm_dump_qmap_to_file() 699 dump_qmap(stdout, &osm->subn.node_guid_tbl, print_node_report, osm); in print_report() 707 &osm->subn.sw_guid_tbl, in osm_dump_mcast_routes() 716 &osm->subn.sw_guid_tbl, dump_lid_matrix, in osm_dump_all() [all …]
|
H A D | osm_console.c | 353 if (p_osm->subn.opt.per_module_logging_file != NULL) { in permodlog_parse() 354 fp = fopen(p_osm->subn.opt.per_module_logging_file, "r"); in permodlog_parse() 359 p_osm->subn.opt.per_module_logging_file, in permodlog_parse() 365 p_osm->subn.opt.per_module_logging_file); in permodlog_parse() 381 p_osm->subn.opt.sm_priority); in priority_parse() 423 osm_subn_t *p_subn = &p_osm->subn; in dump_sms() 457 sm_state_str(p_osm->subn.sm_state)); in print_status() 459 p_osm->subn.opt.sm_priority); in print_status() 518 p_osm->subn.sweeping_enabled, in print_status() 519 p_osm->subn.opt.sweep_interval, in print_status() [all …]
|
H A D | osm_qos.c | 458 if (!p_osm->subn.opt.qos) in osm_qos_setup() 463 qos_build_config(&ca_config, &p_osm->subn.opt.qos_ca_options, in osm_qos_setup() 464 &p_osm->subn.opt.qos_options); in osm_qos_setup() 465 qos_build_config(&sw0_config, &p_osm->subn.opt.qos_sw0_options, in osm_qos_setup() 466 &p_osm->subn.opt.qos_options); in osm_qos_setup() 467 qos_build_config(&swe_config, &p_osm->subn.opt.qos_swe_options, in osm_qos_setup() 468 &p_osm->subn.opt.qos_options); in osm_qos_setup() 469 qos_build_config(&rtr_config, &p_osm->subn.opt.qos_rtr_options, in osm_qos_setup() 470 &p_osm->subn.opt.qos_options); in osm_qos_setup() 477 osm_qos_parse_policy_file(&p_osm->subn); in osm_qos_setup() [all …]
|
H A D | osm_ucast_file.c | 64 p_port = osm_get_port_by_guid(&p_osm->subn, guid); in remap_lid() 98 if (!(p_osm->subn.opt.port_profile_switch_nodes && port_guid && in add_path() 99 osm_get_switch_by_guid(&p_osm->subn, port_guid))) in add_path() 135 file_name = p_osm->subn.opt.lfts_file; in do_ucast_file_load() 190 p_sw = osm_get_switch_by_guid(&p_osm->subn, sw_guid); in do_ucast_file_load() 276 file_name = p_osm->subn.opt.lid_matrix_dump_file; in do_lid_matrix_file_load() 325 p_sw = osm_get_switch_by_guid(&p_osm->subn, guid); in do_lid_matrix_file_load()
|
H A D | osm_opensm.c | 245 osm_subn_construct(&p_osm->subn); in osm_opensm_construct() 324 p_osm->subn.opt.sa_db_dump) in osm_opensm_destroy() 348 osm_subn_destroy(&p_osm->subn); in osm_opensm_destroy_finish() 455 status = osm_subn_init(&p_osm->subn, p_osm, p_opt); in osm_opensm_init() 476 p_osm->subn.sm_port_guid = p_opt->guid; in osm_opensm_init_finish() 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() 496 status = osm_sa_init(&p_osm->sm, &p_osm->sa, &p_osm->subn, in osm_opensm_init_finish()
|
H A D | osm_congestion_control.c | 71 osm_subn_opt_t *p_opt = &p_cc->subn->opt; in cc_mad_post() 360 if (!p_osm->subn.opt.congestion_control) in osm_congestion_control_setup() 375 p_tbl = &p_osm->subn.port_guid_tbl; in osm_congestion_control_setup() 417 if (!p_osm->subn.opt.congestion_control) in osm_congestion_control_wait_pending_transactions() 470 p_port = osm_get_port_by_guid(p_cc->subn, port_guid); in cc_rcv_mad() 528 osm_subn_opt_t *p_opt = &p_cc->subn->opt; in cc_poller_send() 589 p_cc->subn = &p_osm->subn; in osm_congestion_control_init() 678 p_port = osm_get_port_by_guid(p_cc->subn, port_guid); in cc_mad_send_err_callback() 713 p_cc->subn->subnet_initialization_error = TRUE; in cc_mad_send_err_callback() 741 bind_info.timeout = p_cc->subn->opt.transaction_timeout; in osm_congestion_control_bind() [all …]
|
H A D | osm_sa.c | 558 p_osm->subn.opt.dump_files_dir, file_name); in opensm_dump_to_file() 581 if (p_osm->subn.opt.fsync_high_avail_files) { in opensm_dump_to_file() 803 cl_qmap_apply_func(&p_osm->subn.port_guid_tbl, in sa_dump_all_sa() 806 for (p_mgrp = (osm_mgrp_t *) cl_fmap_head(&p_osm->subn.mgrp_mgid_tbl); in sa_dump_all_sa() 807 p_mgrp != (osm_mgrp_t *) cl_fmap_end(&p_osm->subn.mgrp_mgid_tbl); in sa_dump_all_sa() 811 cl_qlist_apply_func(&p_osm->subn.sa_infr_list, in sa_dump_all_sa() 814 cl_qlist_apply_func(&p_osm->subn.sa_sr_list, in sa_dump_all_sa() 845 p_mgrp = osm_get_mgrp_by_mgid(&p_osm->subn, &p_mcm_rec->mgid); in load_mcgroup() 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() [all …]
|
H A D | osm_perfmgr.c | 253 if (pm->subn->opt.perfmgr_redir && p_madw->status == IB_TIMEOUT) { in perfmgr_mad_send_err_callback() 307 bind_info.timeout = pm->subn->opt.transaction_timeout; in osm_perfmgr_bind() 308 bind_info.retries = pm->subn->opt.transaction_retries; in osm_perfmgr_bind() 710 node = osm_get_node_by_guid(pm->subn, cl_hton64(mon_node->guid)); in perfmgr_query_counters() 1011 cl_qmap_apply_func(&osm->subn.node_guid_tbl, reset_node_count, NULL); in perfmgr_discovery() 1012 cl_qmap_apply_func(&osm->subn.port_guid_tbl, reset_port_count, NULL); in perfmgr_discovery() 1013 cl_qmap_apply_func(&osm->subn.sw_guid_tbl, reset_switch_count, NULL); in perfmgr_discovery() 1016 osm->subn.in_sweep_hop_0 = TRUE; in perfmgr_discovery() 1030 osm->subn.in_sweep_hop_0 = FALSE; in perfmgr_discovery() 1072 if (pm->subn->sm_state == IB_SMINFO_STATE_STANDBY || in osm_perfmgr_process() [all …]
|
H A D | osm_ucast_lash.c | 84 if (p_lash->p_osm->subn.opt.do_mesh_analysis) { in connect_switches() 469 unsigned start_vl = p_lash->p_osm->subn.opt.lash_start_vl; in balance_virtual_lanes() 798 unsigned start_vl = p_lash->p_osm->subn.opt.lash_start_vl; in lash_core() 802 if (p_lash->p_osm->subn.opt.do_mesh_analysis && osm_do_mesh_analysis(p_lash)) { in lash_core() 989 osm_subn_t *p_subn = &p_lash->p_osm->subn; in populate_fwd_tbls() 1105 osm_subn_t *p_subn = &p_lash->p_osm->subn; in lash_cleanup() 1137 osm_subn_t *p_subn = &p_lash->p_osm->subn; in discover_network_properties() 1184 if (p_lash->p_osm->subn.opt.lash_start_vl >= vl_min) { in discover_network_properties() 1187 p_lash->p_osm->subn.opt.lash_start_vl, vl_min); in discover_network_properties() 1191 p_lash->vl_min = vl_min - p_lash->p_osm->subn.opt.lash_start_vl; in discover_network_properties() [all …]
|
H A D | osm_ucast_ftree.c | 1299 p_ftree->p_osm->subn.opt.dump_files_dir, filename); in fabric_dump_hca_ordering() 1445 return (p_ftree->p_osm->subn.opt.root_guid_file != NULL); in fabric_roots_provided() 1452 return (p_ftree->p_osm->subn.opt.cn_guid_file != NULL); in fabric_cns_provided() 1459 return (p_ftree->p_osm->subn.opt.io_guid_file != NULL); in fabric_ios_provided() 2988 …p_hca_port_group->is_io ? p_ftree->p_osm->subn.opt.max_reverse_hops : 0, /* Number or reverse hops… in fabric_route_to_non_cns() 3096 p_port = osm_get_port_by_lid_ho(&p_ftree->p_osm->subn, in fabric_route_roots() 3142 (osm_node_t *) cl_qmap_head(&p_ftree->p_osm->subn.node_guid_tbl); in fabric_populate_nodes() 3145 subn.node_guid_tbl)) { in fabric_populate_nodes() 3637 p_ftree->p_osm->subn.opt.root_guid_file); in fabric_load_roots() 3641 if (parse_node_map(p_ftree->p_osm->subn.opt.root_guid_file, in fabric_load_roots() [all …]
|
H A D | osm_pkey_mgr.c | 828 if (osm_prtn_make_partitions(&p_osm->log, &p_osm->subn) != IB_SUCCESS) { in osm_pkey_mgr_process() 836 p_tbl = &p_osm->subn.prtn_pkey_tbl; in osm_pkey_mgr_process() 848 p_tbl = &p_osm->subn.port_guid_tbl; in osm_pkey_mgr_process() 857 &p_osm->subn, p_port, in osm_pkey_mgr_process() 858 p_osm->subn.opt.part_enforce_enum)) in osm_pkey_mgr_process() 863 p_tbl = &p_osm->subn.sw_guid_tbl; in osm_pkey_mgr_process()
|
H A D | main.c | 476 if (p_osm->subn.opt.daemon) in get_port_guid() 590 p_osm->subn.force_heavy_sweep = TRUE; in osm_manager_loop() 1234 osm.subn.opt. in main()
|
H A D | osm_subnet.c | 1458 osm_port_t *osm_get_port_by_lid_ho(IN osm_subn_t const * subn, IN uint16_t lid) in osm_get_port_by_lid_ho() argument 1460 if (lid < cl_ptr_vector_get_size(&subn->port_lid_tbl)) in osm_get_port_by_lid_ho() 1461 return cl_ptr_vector_get(&subn->port_lid_tbl, lid); in osm_get_port_by_lid_ho() 1465 osm_mgrp_t *osm_get_mgrp_by_mgid(IN osm_subn_t * subn, IN ib_gid_t * mgid) in osm_get_mgrp_by_mgid() argument 1469 mgrp = (osm_mgrp_t *)cl_fmap_get(&subn->mgrp_mgid_tbl, mgid); in osm_get_mgrp_by_mgid() 1470 if (mgrp != (osm_mgrp_t *)cl_fmap_end(&subn->mgrp_mgid_tbl)) in osm_get_mgrp_by_mgid()
|
H A D | osm_torus.c | 1136 osm_subn_t *subnet = &fabric->osm->subn; in capture_fabric() 7024 if (t->osm->subn.min_sw_data_vls < 2) { in verify_setup() 7028 (int)t->osm->subn.min_sw_data_vls); in verify_setup() 7031 if (t->osm->subn.min_sw_data_vls < 4) in verify_setup() 7036 (int)t->osm->subn.min_sw_data_vls); in verify_setup() 7037 if (t->osm->subn.min_sw_data_vls < 8) in verify_setup() 7041 (int)t->osm->subn.min_sw_data_vls); in verify_setup() 7042 if (t->osm->subn.min_data_vls < 2) in verify_setup() 7046 (int)t->osm->subn.min_data_vls); in verify_setup() 7513 snprintf(path, sizeof(path), "%s/%s", t->osm->subn.opt.dump_files_dir, in dump_torus() [all …]
|
H A D | osm_sa_mcmember_record.c | 142 static ib_net16_t find_ipv6_snm_mlid(osm_subn_t *subn, ib_gid_t *mgid) in find_ipv6_snm_mlid() argument 144 osm_mgrp_t *m = (osm_mgrp_t *)cl_fmap_match(&subn->mgrp_mgid_tbl, mgid, in find_ipv6_snm_mlid() 146 if (m != (osm_mgrp_t *)cl_fmap_end(&subn->mgrp_mgid_tbl)) in find_ipv6_snm_mlid()
|
H A D | osm_ucast_mgr.c | 1068 if (osm->subn.opt.scatter_ports) in ucast_mgr_route() 1069 srandom(osm->subn.opt.scatter_ports); in ucast_mgr_route()
|
/freebsd/contrib/ofed/opensm/include/opensm/ |
H A D | osm_multicast.h | 182 osm_mgrp_t *osm_mgrp_new(IN osm_subn_t * subn, IN ib_net16_t mlid, 337 osm_mcm_port_t *osm_mgrp_add_port(osm_subn_t *subn, osm_log_t *log, 426 void osm_mgrp_delete_port(IN osm_subn_t * subn, IN osm_log_t * log, 451 boolean_t osm_mgrp_remove_port(osm_subn_t * subn, osm_log_t * log, osm_mgrp_t * mgrp, 454 void osm_mgrp_cleanup(osm_subn_t * subn, osm_mgrp_t * mpgr);
|
H A D | osm_subnet.h | 1268 struct osm_port *osm_get_port_by_lid_ho(const osm_subn_t * subn, uint16_t lid); 1431 static inline struct osm_port *osm_get_port_by_lid(IN osm_subn_t const * subn, in osm_get_port_by_lid() argument 1434 return osm_get_port_by_lid_ho(subn, cl_ntoh16(lid)); in osm_get_port_by_lid() 1462 struct osm_mgrp *osm_get_mgrp_by_mgid(IN osm_subn_t * subn, IN ib_gid_t * mgid);
|
H A D | osm_congestion_control.h | 78 osm_subn_t *subn; member
|
H A D | osm_opensm.h | 213 osm_subn_t subn; member
|
H A D | osm_perfmgr.h | 136 osm_subn_t *subn; member
|
/freebsd/contrib/mandoc/ |
H A D | mdoc_html.c | 521 struct roff_node *sn, *subn; in mdoc_sh_pre() local 556 for (subn = sn->body->child; subn != NULL; in mdoc_sh_pre() 557 subn = subn->next) { in mdoc_sh_pre() 558 if (subn->tok != MDOC_Ss) in mdoc_sh_pre() 560 id = html_make_id(subn->head, 0); in mdoc_sh_pre() 570 subn->head->child, h); in mdoc_sh_pre()
|