| /freebsd-10-stable/sys/contrib/octeon-sdk/ |
| D | cvmx-helper-util.c | 296 int num_ports; in cvmx_helper_setup_red() local 298 num_ports = cvmx_helper_ports_on_interface(interface); in cvmx_helper_setup_red() 299 for (port = 0; port < num_ports; port++) { in cvmx_helper_setup_red() 358 int num_ports = cvmx_helper_ports_on_interface(interface); in cvmx_helper_setup_red() local 359 for (port = 0; port < num_ports; port++) in cvmx_helper_setup_red() 405 int __cvmx_helper_setup_gmx(int interface, int num_ports) in __cvmx_helper_setup_gmx() argument 417 gmx_tx_prts.s.prts = num_ports; in __cvmx_helper_setup_gmx() 429 if (num_ports > 4) in __cvmx_helper_setup_gmx() 436 gmx_rx_prts.s.prts = num_ports; in __cvmx_helper_setup_gmx() 451 if (num_ports == 1) in __cvmx_helper_setup_gmx() [all …]
|
| D | cvmx-helper-spi.c | 136 int num_ports = __cvmx_helper_spi_enumerate(interface); in __cvmx_helper_spi_probe() local 138 if (num_ports == 16) { in __cvmx_helper_spi_probe() 150 __cvmx_helper_setup_gmx(interface, num_ports); in __cvmx_helper_spi_probe() 151 return num_ports; in __cvmx_helper_spi_probe() 170 int num_ports = cvmx_helper_ports_on_interface(interface); in __cvmx_helper_spi_enable() local 172 for (ipd_port=interface*16; ipd_port<interface*16+num_ports; ipd_port++) in __cvmx_helper_spi_enable() 189 … cvmx_spi_start_interface(interface, CVMX_SPI_MODE_DUPLEX, CVMX_HELPER_SPI_TIMEOUT, num_ports); in __cvmx_helper_spi_enable()
|
| D | cvmx-helper-rgmii.c | 103 int num_ports = 0; in __cvmx_helper_rgmii_probe() local 117 num_ports = 2; in __cvmx_helper_rgmii_probe() 128 num_ports = 4; in __cvmx_helper_rgmii_probe() 132 num_ports = 3; in __cvmx_helper_rgmii_probe() 139 return num_ports; in __cvmx_helper_rgmii_probe() 187 int num_ports = cvmx_helper_ports_on_interface(interface); in __cvmx_helper_rgmii_enable() local 202 asx_tx.s.prt_en = cvmx_build_mask(num_ports); in __cvmx_helper_rgmii_enable() 206 asx_rx.s.prt_en = cvmx_build_mask(num_ports); in __cvmx_helper_rgmii_enable() 210 for (port=0; port<num_ports; port++) in __cvmx_helper_rgmii_enable() 269 __cvmx_helper_setup_gmx(interface, num_ports); in __cvmx_helper_rgmii_enable() [all …]
|
| D | cvmx-helper-loop.c | 112 int num_ports, index; in __cvmx_helper_loop_enable() local 115 num_ports = __cvmx_helper_get_num_ipd_ports(interface); in __cvmx_helper_loop_enable() 121 for (index = 0; index < num_ports; index++) { in __cvmx_helper_loop_enable()
|
| D | cvmx-helper.c | 714 int num_ports = cvmx_helper_ports_on_interface(interface); in __cvmx_helper_interface_setup_ipd() local 717 if (num_ports == CVMX_HELPER_CFG_INVALID_VALUE) in __cvmx_helper_interface_setup_ipd() 732 while (num_ports--) in __cvmx_helper_interface_setup_ipd() 795 int num_ports = cvmx_helper_ports_on_interface(interface); in __cvmx_helper_interface_setup_pko() local 796 while (num_ports--) in __cvmx_helper_interface_setup_pko() 1400 int num_ports; in cvmx_helper_shutdown_packet_io_global() local 1432 num_ports = cvmx_helper_ports_on_interface(interface); in cvmx_helper_shutdown_packet_io_global() 1433 for (index=0; index<num_ports; index++) in cvmx_helper_shutdown_packet_io_global() 1480 num_ports = cvmx_helper_ports_on_interface(interface); in cvmx_helper_shutdown_packet_io_global() 1481 if (num_ports > 4) in cvmx_helper_shutdown_packet_io_global() [all …]
|
| D | cvmx-spi.h | 83 int (*calendar_setup_cb)(int interface, cvmx_spi_mode_t mode, int num_ports); 126 extern int cvmx_spi_start_interface(int interface, cvmx_spi_mode_t mode, int timeout, int num_ports… 210 extern int cvmx_spi_calendar_setup_cb(int interface, cvmx_spi_mode_t mode, int num_ports);
|
| D | cvmx-helper-npi.c | 124 int num_ports = cvmx_helper_ports_on_interface(interface); in __cvmx_helper_npi_enable() local 131 for (port=0; port<num_ports; port++) in __cvmx_helper_npi_enable() 168 config.s.nump = num_ports; in __cvmx_helper_npi_enable()
|
| D | cvmx-spi.c | 136 int cvmx_spi_start_interface(int interface, cvmx_spi_mode_t mode, int timeout, int num_ports) in cvmx_spi_start_interface() argument 147 INVOKE_CB(cvmx_spi_callbacks.calendar_setup_cb, interface, mode, num_ports); in cvmx_spi_start_interface() 327 int cvmx_spi_calendar_setup_cb(int interface, cvmx_spi_mode_t mode, int num_ports) in cvmx_spi_calendar_setup_cb() argument 338 srxx_com_ctl.s.prts = num_ports - 1; in cvmx_spi_calendar_setup_cb() 346 while (port < num_ports) in cvmx_spi_calendar_setup_cb() 359 srxx_spi4_stat.s.len = num_ports; in cvmx_spi_calendar_setup_cb() 403 while (port < num_ports) in cvmx_spi_calendar_setup_cb() 416 stxx_spi4_stat.s.len = num_ports; in cvmx_spi_calendar_setup_cb()
|
| /freebsd-10-stable/contrib/ofed/management/opensm/opensm/ |
| D | osm_switch.c | 63 p_sw->hops[lid_ho] = malloc(p_sw->num_ports); in osm_switch_set_hops() 66 memset(p_sw->hops[lid_ho], OSM_NO_PATH, p_sw->num_ports); in osm_switch_set_hops() 86 uint8_t num_ports; in osm_switch_init() local 91 num_ports = osm_node_get_num_physp(p_node); in osm_switch_init() 97 p_sw->num_ports = num_ports; in osm_switch_init() 117 p_sw->p_prof = malloc(sizeof(*p_sw->p_prof) * num_ports); in osm_switch_init() 123 memset(p_sw->p_prof, 0, sizeof(*p_sw->p_prof) * num_ports); in osm_switch_init() 131 for (port_num = 0; port_num < num_ports; port_num++) in osm_switch_init() 282 uint8_t num_ports; in osm_switch_recommend_path() local 326 num_ports = p_sw->num_ports; in osm_switch_recommend_path() [all …]
|
| D | osm_sa_link_record.c | 227 uint8_t num_ports; in __osm_lr_rcv_get_port_links() local 241 num_ports = osm_node_get_num_physp(p_src_port->p_node); in __osm_lr_rcv_get_port_links() 244 for (port_num = 1; port_num < num_ports; port_num++) { in __osm_lr_rcv_get_port_links() 284 num_ports = in __osm_lr_rcv_get_port_links() 286 for (port_num = 1; port_num < num_ports; in __osm_lr_rcv_get_port_links() 322 num_ports = in __osm_lr_rcv_get_port_links() 324 for (port_num = 1; port_num < num_ports; in __osm_lr_rcv_get_port_links() 345 num_ports = osm_node_get_num_physp(p_node); in __osm_lr_rcv_get_port_links() 346 for (port_num = 1; port_num < num_ports; in __osm_lr_rcv_get_port_links()
|
| D | osm_dump.c | 66 uint8_t num_ports; in dump_ucast_path_distribution() local 72 num_ports = p_sw->num_ports; in dump_ucast_path_distribution() 78 for (i = 0; i < num_ports; i++) { in dump_ucast_path_distribution() 301 unsigned max_port = p_sw->num_ports; in dump_lid_matrix() 329 unsigned max_port = p_sw->num_ports; in dump_ucast_lfts() 368 if (!p_node->node_info.num_ports) in dump_topology_node() 399 p_node->node_info.num_ports, in dump_topology_node() 428 p_nbnode->node_info.num_ports, in dump_topology_node() 465 uint32_t num_ports; in print_node_report() local 470 num_ports = osm_node_get_num_physp(p_node); in print_node_report() [all …]
|
| D | osm_ucast_cache.c | 76 uint8_t num_ports; member 107 static cache_switch_t *__cache_sw_new(uint16_t lid_ho, unsigned num_ports) in __cache_sw_new() argument 110 num_ports * sizeof(cache_port_t)); in __cache_sw_new() 115 sizeof(*p_cache_sw) + num_ports * sizeof(cache_port_t)); in __cache_sw_new() 117 p_cache_sw->num_ports = num_ports; in __cache_sw_new() 174 p_cache_sw = __cache_sw_new(lid_ho, p->p_node->sw->num_ports); in __cache_add_sw_link() 185 if (p->port_num >= p_cache_sw->num_ports) { in __cache_add_sw_link() 224 for (port_num = 1; port_num < p_sw->num_ports; port_num++) in __cache_cleanup_switches() 291 if (port_num >= p_cache_sw->num_ports || in __cache_remove_port() 387 for (i = 1; i < p_sw->num_ports; i++) in __ucast_cache_dump() [all …]
|
| D | osm_mcast_tbl.c | 57 IN uint8_t const num_ports, IN uint16_t const capacity) 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()
|
| D | osm_sa_node_record.c | 124 uint8_t num_ports; in __osm_nr_rcv_create_nr() local 144 num_ports = 1; in __osm_nr_rcv_create_nr() 146 num_ports = osm_node_get_num_physp(p_node); in __osm_nr_rcv_create_nr() 148 for (port_num = 0; port_num < num_ports; port_num++) { in __osm_nr_rcv_create_nr() 247 if ((p_node->node_info.num_ports != in __osm_nr_rcv_by_comp_mask() 248 p_rcvd_rec->node_info.num_ports)) in __osm_nr_rcv_by_comp_mask()
|
| D | main.c | 358 uint32_t num_ports = GUID_ARRAY_SIZE; in get_port_guid() local 370 &num_ports); in get_port_guid() 378 if (num_ports == 0) { in get_port_guid() 384 if (num_ports == 1) { in get_port_guid() 391 for (i = 0; i < num_ports; i++) in get_port_guid() 394 if (i == num_ports) in get_port_guid() 408 for (i = 0; i < num_ports; i++) in get_port_guid() 419 if (choice > num_ports || choice < 1) { in get_port_guid()
|
| /freebsd-10-stable/contrib/ofed/management/opensm/libvendor/ |
| 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() 611 if (0 != p_ca->p_attr->num_ports) { in osm_ca_info_destroy() 680 total_ports += p_ca_infos[caIdx - 1].p_attr->num_ports; in osm_vendor_get_all_port_attr() [all …]
|
| 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() 565 if (0 != p_ca->p_attr->num_ports) { in osm_ca_info_destroy() 634 total_ports += p_ca_infos[caIdx - 1].p_attr->num_ports; in osm_vendor_get_all_port_attr() [all …]
|
| 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() 294 if (p_ca_info->p_attr->num_ports) { in osm_ca_info_destroy() 385 uint32_t num_ports; in osm_vendor_get_all_port_attr() local 389 num_ports = osm_ca_info_get_num_ports(p_ca_info); in osm_vendor_get_all_port_attr() 391 for (port_num = 0; port_num < num_ports; port_num++) { in osm_vendor_get_all_port_attr() 555 uint32_t num_ports = GUID_ARRAY_SIZE; in get_port_guid() local 578 status = osm_vendor_get_all_port_attr(p_vend, attr_array, &num_ports); in get_port_guid() 584 if (num_ports == 0) { in get_port_guid() 591 for (i = 0; i < num_ports; i++) { in get_port_guid() [all …]
|
| 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() 280 if (0 != p_ca->p_attr->num_ports) { in osm_ca_info_destroy() 352 total_ports += p_ca_infos[ca].p_attr->num_ports; in osm_vendor_get_all_port_attr() 365 uint32_t num_ports; in osm_vendor_get_all_port_attr() local 367 num_ports = p_ca_infos[ca].p_attr->num_ports; in osm_vendor_get_all_port_attr() 369 for (port_num = 0; port_num < num_ports; port_num++) { in osm_vendor_get_all_port_attr()
|
| /freebsd-10-stable/sys/mips/rmi/ |
| D | board.c | 95 blk0->num_ports--; in xlr_chip_specific_overrides() 115 blk0->num_ports--; in xlr_chip_specific_overrides() 140 blk0->num_ports--; in xlr_chip_specific_overrides() 172 blk1->num_ports = 1; in xlr_board_specific_overrides() 176 blk2->num_ports = 1; in xlr_board_specific_overrides() 225 blk0->num_ports--; in xls_chip_specific_overrides() 286 blk1->num_ports = 2; in xls_board_specific_overrides() 319 blk0->num_ports = 1; in xls_board_specific_overrides() 328 blk0->num_ports = 1; /* only 1 RGMII port */ in xls_board_specific_overrides() 345 blk1->num_ports = 1; in xls_board_specific_overrides() [all …]
|
| /freebsd-10-stable/contrib/ofed/management/opensm/osmtest/ |
| D | main.c | 216 uint32_t num_ports = GUID_ARRAY_SIZE; in print_all_guids() local 226 &num_ports); in print_all_guids() 234 for (i = 0; i < num_ports; i++) in print_all_guids() 244 uint32_t num_ports = GUID_ARRAY_SIZE; in get_port_guid() local 255 &num_ports); in get_port_guid() 262 if (num_ports == 1) { in get_port_guid() 268 for (i = 0; i < num_ports; i++) { in get_port_guid()
|
| /freebsd-10-stable/contrib/unbound/daemon/ |
| D | daemon.c | 265 for(i=0; i<daemon->num_ports; i++) in daemon_open_shared_ports() 283 daemon->num_ports = (size_t)daemon->cfg->num_threads; in daemon_open_shared_ports() 287 daemon->num_ports = 1; in daemon_open_shared_ports() 290 daemon->num_ports, sizeof(*daemon->ports)))) { in daemon_open_shared_ports() 297 for(i=1; i<daemon->num_ports; i++) { in daemon_open_shared_ports() 302 for(i=0; i<daemon->num_ports; i++) in daemon_open_shared_ports() 402 if(daemon->reuseport && (int)daemon->num < (int)daemon->num_ports) { in daemon_create_workers() 405 (int)daemon->num_ports); in daemon_create_workers() 406 daemon->num = (int)daemon->num_ports; in daemon_create_workers() 473 port_num = worker->thread_num % worker->daemon->num_ports; in thread_start() [all …]
|
| /freebsd-10-stable/sys/ofed/drivers/net/mlx4/ |
| D | main.c | 569 for (i = 0; i < dev->caps.num_ports - 1; i++) { in mlx4_check_port_params() 579 for (i = 0; i < dev->caps.num_ports; i++) { in mlx4_check_port_params() 593 for (i = 1; i <= dev->caps.num_ports; ++i) in mlx4_set_port_mask() 637 if (dev_cap->num_ports > MLX4_MAX_PORTS) { in mlx4_dev_cap() 640 dev_cap->num_ports, MLX4_MAX_PORTS); in mlx4_dev_cap() 652 dev->caps.num_ports = dev_cap->num_ports; in mlx4_dev_cap() 657 for (i = 1; i <= dev->caps.num_ports; ++i) { in mlx4_dev_cap() 736 for (i = 1; i <= dev->caps.num_ports; ++i) { in mlx4_dev_cap() 825 dev->caps.num_ports; in mlx4_dev_cap() 854 for (i = 0; i < dev->caps.num_ports; ++i) in mlx4_dev_cap() [all …]
|
| D | 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() 139 for (port = 1; port <= dev->caps.num_ports; port++) in mlx4_sense_init()
|
| /freebsd-10-stable/sys/dev/rp/ |
| D | rp_pci.c | 149 int num_ports, num_aiops; in rp_pciattach() local 197 num_ports = 0; in rp_pciattach() 200 num_ports += sGetAiopNumChan(ctlp, aiop); in rp_pciattach() 203 retval = rp_attachcommon(ctlp, num_aiops, num_ports); in rp_pciattach()
|