/freebsd/contrib/ofed/opensm/opensm/ |
H A D | osm_switch.c | 69 if (port_num >= p_sw->num_ports) in osm_switch_set_hops() 72 p_sw->hops[lid_ho] = malloc(p_sw->num_ports); in osm_switch_set_hops() 75 memset(p_sw->hops[lid_ho], OSM_NO_PATH, p_sw->num_ports); in osm_switch_set_hops() 115 uint8_t num_ports; in osm_switch_new() local 123 num_ports = osm_node_get_num_physp(p_node); in osm_switch_new() 138 p_sw->num_ports = num_ports; in osm_switch_new() 141 p_sw->p_prof = malloc(sizeof(*p_sw->p_prof) * num_ports); in osm_switch_new() 145 memset(p_sw->p_prof, 0, sizeof(*p_sw->p_prof) * num_ports); in osm_switch_new() 150 for (port_num = 0; port_num < num_ports; port_num++) in osm_switch_new() 259 uint8_t num_ports; in osm_switch_recommend_path() local [all …]
|
H A D | osm_dump.c | 69 uint8_t num_ports; in dump_ucast_path_distribution() local 75 num_ports = p_sw->num_ports; in dump_ucast_path_distribution() 81 for (i = 0; i < num_ports; i++) { in dump_ucast_path_distribution() 309 unsigned max_port = p_sw->num_ports; in dump_lid_matrix() 337 unsigned max_port = p_sw->num_ports; in dump_ucast_lfts() 377 if (!p_node->node_info.num_ports) in dump_topology_node() 408 p_node->node_info.num_ports, in dump_topology_node() 437 p_nbnode->node_info.num_ports, in dump_topology_node() 505 num_ports = p_node->node_info.num_ports; in dump_sl2vl_tbl() local 514 if (!num_ports) in dump_sl2vl_tbl() [all …]
|
H A D | osm_sa_link_record.c | 211 uint8_t num_ports; in lr_rcv_get_port_links() local 225 num_ports = osm_node_get_num_physp(p_src_port->p_node); in lr_rcv_get_port_links() 228 for (port_num = 1; port_num < num_ports; port_num++) { in lr_rcv_get_port_links() 268 num_ports = in lr_rcv_get_port_links() 270 for (port_num = 1; port_num < num_ports; in lr_rcv_get_port_links() 306 num_ports = in lr_rcv_get_port_links() 308 for (port_num = 1; port_num < num_ports; in lr_rcv_get_port_links() 329 num_ports = osm_node_get_num_physp(p_node); in lr_rcv_get_port_links() 330 for (port_num = 1; port_num < num_ports; in lr_rcv_get_port_links()
|
H A D | osm_mcast_tbl.c | 56 void osm_mcast_tbl_init(IN osm_mcast_tbl_t * p_tbl, IN uint8_t num_ports, in osm_mcast_tbl_init() argument 60 CL_ASSERT(num_ports); in osm_mcast_tbl_init() 75 p_tbl->num_ports = num_ports; in osm_mcast_tbl_init() 77 (uint8_t) ((ROUNDUP(num_ports, IB_MCAST_MASK_SIZE) / in osm_mcast_tbl_init()
|
H A D | osm_ucast_cache.c | 77 uint8_t num_ports; member 96 static cache_switch_t *cache_sw_new(uint16_t lid_ho, unsigned num_ports) in cache_sw_new() argument 99 num_ports * sizeof(cache_port_t)); in cache_sw_new() 104 sizeof(*p_cache_sw) + num_ports * sizeof(cache_port_t)); in cache_sw_new() 106 p_cache_sw->num_ports = num_ports; in cache_sw_new() 161 p_cache_sw = cache_sw_new(lid_ho, p->p_node->sw->num_ports); in cache_add_sw_link() 172 if (p->port_num >= p_cache_sw->num_ports) { in cache_add_sw_link() 208 for (port_num = 1; port_num < p_sw->num_ports; port_num++) in cache_cleanup_switches() 269 if (port_num >= p_cache_sw->num_ports || in cache_remove_port() 360 for (i = 1; i < p_sw->num_ports; i++) in ucast_cache_dump() [all …]
|
H A D | osm_sa_node_record.c | 123 uint8_t num_ports; in nr_rcv_create_nr() local 142 num_ports = 1; in nr_rcv_create_nr() 144 num_ports = osm_node_get_num_physp(p_node); in nr_rcv_create_nr() 146 for (port_num = 0; port_num < num_ports; port_num++) { in nr_rcv_create_nr() 247 p_node->node_info.num_ports != p_rcvd_rec->node_info.num_ports) in nr_rcv_by_comp_mask()
|
H A D | main.c | 432 uint32_t num_ports = MAX_LOCAL_IBPORTS; in get_port_guid() local 436 for (i = 0; i < num_ports; i++) { in get_port_guid() 445 &num_ports); in get_port_guid() 453 if (num_ports == 0) { in get_port_guid() 459 if (num_ports == 1) { in get_port_guid() 466 for (i = 0; i < num_ports; i++) in get_port_guid() 469 if (i == num_ports) in get_port_guid() 483 for (i = 0; i < num_ports; i++) in get_port_guid() 499 else if (choice <= num_ports) in get_port_guid()
|
H A D | osm_ucast_mgr.c | 116 for (i = 1; i < p_sw->num_ports; i++) { in ucast_mgr_process_hop_0_1() 406 uint32_t num_ports; in ucast_mgr_process_neighbors() local 420 num_ports = osm_node_get_num_physp(p_node); in ucast_mgr_process_neighbors() 425 for (port_num = 1; port_num < num_ports; port_num++) { in ucast_mgr_process_neighbors() 463 port >= node->sw->num_ports) { in set_hop_wf() 492 for (i = 1; i < sw->num_ports; i++) { in set_default_hop_wf() 525 search_ordering_ports = malloc(sizeof(*search_ordering_ports)*sw->num_ports); in set_search_ordering_ports() 531 memset(search_ordering_ports, 0, sizeof(*search_ordering_ports)*sw->num_ports); in set_search_ordering_ports() 535 words = (sw->num_ports + bpw - 1)/bpw; in set_search_ordering_ports() 549 if ((p == e) || (port == 0) || (port >= sw->num_ports) || in set_search_ordering_ports() [all …]
|
H A D | osm_slvl_map_rcv.c | 120 unsigned num_ports = osm_node_get_num_physp(p_node) - 1; in osm_slvl_rcv_process() local 135 if (startinport > num_ports || startoutport > num_ports) { in osm_slvl_rcv_process()
|
H A D | osm_perfmgr.c | 162 port < pm->remove_list->num_ports; in remove_marked_nodes() 257 if (port >= p_mon_node->num_ports) { in perfmgr_mad_send_err_callback() 263 p_mon_node->num_ports); in perfmgr_mad_send_err_callback() 351 if (mon_node && mon_node->num_ports && port < mon_node->num_ports && in get_qp() 378 if (mon_node && mon_node->num_ports && port < mon_node->num_ports && in get_lid() 533 uint32_t num_ports; in collect_guids() local 546 num_ports = osm_node_get_num_physp(node); in collect_guids() 548 sizeof(monitored_port_t) * num_ports); in collect_guids() 557 sizeof(*mon_node) + sizeof(monitored_port_t) * num_ports); in collect_guids() 560 mon_node->num_ports = num_ports; in collect_guids() [all …]
|
H A D | osm_ucast_dnup.c | 138 for (pn = 1; pn < u->sw->num_ports; pn++) { in dnup_bfs_by_node() 227 uint8_t num_ports, port_num; in dnup_subn_rank() local 249 num_ports = p_sw->num_ports; in dnup_subn_rank() 253 for (port_num = 1; port_num < num_ports; port_num++) { in dnup_subn_rank() 440 for (pn = 0; pn < p_sw->num_ports; pn++) { in dnup_lid_matrices()
|
H A D | osm_perfmgr_db.c | 106 if (port >= node->num_ports || (!node->esp0 && port == 0)) in bad_node_port() 120 uint8_t num_ports, char *name) in malloc_node() argument 128 rc->ports = calloc(num_ports, sizeof(db_port_t)); in malloc_node() 131 rc->num_ports = num_ports; in malloc_node() 136 for (i = 0; i < num_ports; i++) { in malloc_node() 176 uint8_t num_ports, char *name) in perfmgr_db_create_entry() argument 182 db_node_t *pc_node = malloc_node(guid, esp0, num_ports, in perfmgr_db_create_entry() 617 for (i = 0; i < node->num_ports; i++) { in clear_counters() 695 for (i = (node->esp0) ? 0 : 1; i < node->num_ports; i++) { in dump_node_mr() 799 int num_ports = node->num_ports; in dump_node_hr() local [all …]
|
H A D | osm_sa_slvl_record.c | 124 uint8_t num_ports; in sa_slvl_by_comp_mask() local 133 num_ports = osm_node_get_num_physp(p_port->p_node); in sa_slvl_by_comp_mask() 135 in_port_end = num_ports - 1; in sa_slvl_by_comp_mask() 137 out_port_end = num_ports - 1; in sa_slvl_by_comp_mask()
|
H A D | osm_mtree.c | 58 sizeof(void *) * (p_sw->num_ports - 1)); in osm_mtree_node_new() 64 p_mtn->max_children = p_sw->num_ports; in osm_mtree_node_new()
|
/freebsd/contrib/ofed/opensm/libvendor/ |
H A D | osm_vendor_mlx_hca_sim.c | 163 uint8_t num_ports; member 183 int num_ports; in __parse_ca_info_file() local 257 if (sscanf(p_ch, "ports: %d", &num_ports) != 1) { in __parse_ca_info_file() 263 sim_ca_info->num_ports = num_ports; in __parse_ca_info_file() 268 sim_ca_info->name, sim_ca_info->guid, sim_ca_info->num_ports); in __parse_ca_info_file() 548 p_ca_info->p_attr->num_ports = sim_ca_info.num_ports; in __osm_ca_info_init() 552 (ib_port_attr_t *) malloc(sim_ca_info.num_ports * in __osm_ca_info_init() 556 for (port_num = 1; port_num <= sim_ca_info.num_ports; port_num++) { in __osm_ca_info_init() 609 if (0 != p_ca->p_attr->num_ports) { in osm_ca_info_destroy() 678 total_ports += p_ca_infos[caIdx - 1].p_attr->num_ports; in osm_vendor_get_all_port_attr() [all …]
|
H A D | osm_vendor_mlx_hca_pfs.c | 117 uint8_t num_ports; member 137 int num_ports; in __parse_ca_info_file() local 211 if (sscanf(p_ch, "ports: %d", &num_ports) != 1) { in __parse_ca_info_file() 217 pfs_ca_info->num_ports = num_ports; in __parse_ca_info_file() 222 pfs_ca_info->name, pfs_ca_info->guid, pfs_ca_info->num_ports); in __parse_ca_info_file() 502 p_ca_info->p_attr->num_ports = pfs_ca_info.num_ports; in __osm_ca_info_init() 506 (ib_port_attr_t *) malloc(pfs_ca_info.num_ports * in __osm_ca_info_init() 510 for (port_num = 1; port_num <= pfs_ca_info.num_ports; port_num++) { in __osm_ca_info_init() 563 if (0 != p_ca->p_attr->num_ports) { in osm_ca_info_destroy() 632 total_ports += p_ca_infos[caIdx - 1].p_attr->num_ports; in osm_vendor_get_all_port_attr() [all …]
|
H A D | osm_vendor_mtl_hca_guid.c | 233 p_ca_info->p_attr->num_ports = hca_cap.phys_port_num; in __osm_ca_info_init() 238 for (port_num = 0; port_num < p_ca_info->p_attr->num_ports; port_num++) { in __osm_ca_info_init() 292 if (p_ca_info->p_attr->num_ports) { in osm_ca_info_destroy() 383 uint32_t num_ports; in osm_vendor_get_all_port_attr() local 387 num_ports = osm_ca_info_get_num_ports(p_ca_info); in osm_vendor_get_all_port_attr() 389 for (port_num = 0; port_num < num_ports; port_num++) { in osm_vendor_get_all_port_attr() 551 uint32_t num_ports = GUID_ARRAY_SIZE; in get_port_guid() local 574 status = osm_vendor_get_all_port_attr(p_vend, attr_array, &num_ports); in get_port_guid() 580 if (num_ports == 0) { in get_port_guid() 587 for (i = 0; i < num_ports; i++) { in get_port_guid() [all …]
|
H A D | osm_vendor_mlx_hca.c | 213 p_ca_info->p_attr->num_ports = hca_cap.phys_port_num; in __osm_ca_info_init() 218 for (port_num = 0; port_num < p_ca_info->p_attr->num_ports; port_num++) { in __osm_ca_info_init() 278 if (0 != p_ca->p_attr->num_ports) { in osm_ca_info_destroy() 350 total_ports += p_ca_infos[ca].p_attr->num_ports; in osm_vendor_get_all_port_attr() 363 uint32_t num_ports; in osm_vendor_get_all_port_attr() local 365 num_ports = p_ca_infos[ca].p_attr->num_ports; in osm_vendor_get_all_port_attr() 367 for (port_num = 0; port_num < num_ports; port_num++) { in osm_vendor_get_all_port_attr()
|
H A D | osm_vendor_al.c | 638 uint32_t num_ports; in osm_vendor_get_all_port_attr() local 642 num_ports = osm_ca_info_get_num_ports(p_ca_info); in osm_vendor_get_all_port_attr() 644 for (port_num = 0; port_num < num_ports; port_num++) { in osm_vendor_get_all_port_attr() 670 uint8_t num_ports; in osm_vendor_get_ca_guid() local 695 num_ports = osm_ca_info_get_num_ports(p_ca_info); in osm_vendor_get_ca_guid() 696 CL_ASSERT(num_ports); in osm_vendor_get_ca_guid() 698 for (index = 0; index < num_ports; index++) { in osm_vendor_get_ca_guid() 723 uint8_t num_ports; in osm_vendor_get_port_num() local 748 num_ports = osm_ca_info_get_num_ports(p_ca_info); in osm_vendor_get_port_num() 749 CL_ASSERT(num_ports); in osm_vendor_get_port_num() [all …]
|
/freebsd/sys/dev/etherswitch/e6000sw/ |
H A D | e6000sw.c | 102 int num_ports; member 282 sc->num_ports = 6; in e6000sw_probe() 287 sc->num_ports = 6; in e6000sw_probe() 291 sc->num_ports = 7; in e6000sw_probe() 295 sc->num_ports = 7; in e6000sw_probe() 299 sc->num_ports = 7; in e6000sw_probe() 303 sc->num_ports = 11; in e6000sw_probe() 374 if (port >= sc->num_ports) in e6000sw_parse_child_fdt() 564 for (port = 0; port < sc->num_ports; port++) { 635 etherswitch_info.es_nports = sc->num_ports; [all …]
|
/freebsd/contrib/unbound/daemon/ |
H A D | daemon.c | 359 for(i=0; i<daemon->num_ports; i++) in daemon_open_shared_ports() 384 daemon->num_ports = (size_t)daemon->cfg->num_threads; in daemon_open_shared_ports() 388 daemon->num_ports = 1; in daemon_open_shared_ports() 391 daemon->num_ports, sizeof(*daemon->ports)))) { in daemon_open_shared_ports() 405 for(i=1; i<daemon->num_ports; i++) { in daemon_open_shared_ports() 411 for(i=0; i<daemon->num_ports; i++) in daemon_open_shared_ports() 420 for(i=0; i<daemon->num_ports; i++) in daemon_open_shared_ports() 568 if(daemon->reuseport && (int)daemon->num < (int)daemon->num_ports) { in daemon_create_workers() 571 (int)daemon->num_ports); in daemon_create_workers() 572 daemon->num = (int)daemon->num_ports; in daemon_create_workers() [all …]
|
/freebsd/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_main.c | 201 for (i = 0; i < dev->caps.num_ports - 1; i++) { in mlx4_check_port_params() 209 for (i = 0; i < dev->caps.num_ports; i++) { in mlx4_check_port_params() 223 for (i = 1; i <= dev->caps.num_ports; ++i) in mlx4_set_port_mask() 362 if (dev_cap->num_ports > MLX4_MAX_PORTS) { in mlx4_dev_cap() 364 dev_cap->num_ports, MLX4_MAX_PORTS); in mlx4_dev_cap() 376 dev->caps.num_ports = dev_cap->num_ports; in mlx4_dev_cap() 381 for (i = 1; i <= dev->caps.num_ports; ++i) { in mlx4_dev_cap() 475 for (i = 1; i <= dev->caps.num_ports; ++i) { in mlx4_dev_cap() 534 if (mlx4_is_master(dev) && (dev->caps.num_ports == 2) && in mlx4_dev_cap() 549 dev->caps.num_ports; in mlx4_dev_cap() [all …]
|
H A D | mlx4_sense.c | 72 for (i = 1; i <= dev->caps.num_ports; i++) { in mlx4_do_sense_ports() 86 for (i = 0; i < dev->caps.num_ports; i++) in mlx4_do_sense_ports() 153 for (port = 1; port <= dev->caps.num_ports; port++) in mlx4_sense_init()
|
/freebsd/crypto/heimdal/kdc/ |
H A D | connect.c | 63 static size_t num_ports; variable 82 for(i = 0; i < num_ports; i++){ in add_port() 88 ports = realloc(ports, (num_ports + 1) * sizeof(*ports)); in add_port() 91 ports[num_ports].family = family; in add_port() 92 ports[num_ports].type = type; in add_port() 93 ports[num_ports].port = port; in add_port() 94 num_ports++; in add_port() 330 d = malloc(addresses.len * num_ports * sizeof(*d)); in init_sockets() 333 (unsigned long)num_ports * sizeof(*d)); in init_sockets() 335 for (i = 0; i < num_ports; i++){ in init_sockets()
|
/freebsd/sys/dev/mthca/ |
H A D | mthca_mad.c | 301 for (p = 0; p < dev->limits.num_ports; ++p) in mthca_create_agents() 314 for (p = 1; p <= dev->limits.num_ports; ++p) { in mthca_create_agents() 326 for (p = 0; p < dev->limits.num_ports; ++p) in mthca_create_agents() 339 for (p = 0; p < dev->limits.num_ports; ++p) { in mthca_free_agents()
|