Searched refs:num_ports (Results 26 - 50 of 152) sorted by relevance

1234567

/freebsd-11-stable/contrib/ofed/opensm/include/vendor/
H A Dosm_vendor_al.h137 return (p_ca_info->p_attr->num_ports);
H A Dosm_vendor_ibumad.h111 return (p_ca_info->p_attr->num_ports);
H A Dosm_vendor_mtl.h202 return (p_ca_info->p_attr->num_ports);
H A Dosm_vendor_ts.h278 return (p_ca_info->p_attr->num_ports);
/freebsd-11-stable/contrib/ofed/opensm/opensm/
H A Dosm_sa_slvl_record.c124 uint8_t num_ports; local
133 num_ports = osm_node_get_num_physp(p_port->p_node);
135 in_port_end = num_ports - 1;
137 out_port_end = num_ports - 1;
H A Dmain.c432 uint32_t num_ports = MAX_LOCAL_IBPORTS; local
436 for (i = 0; i < num_ports; i++) {
445 &num_ports);
452 /* if num_ports is 0 - return 0 */
453 if (num_ports == 0) {
457 /* If num_ports is 1, then there is only one possible port to use.
459 if (num_ports == 1) {
466 for (i = 0; i < num_ports; i++)
469 if (i == num_ports)
483 for (i = 0; i < num_ports;
[all...]
H A Dosm_ucast_dnup.c138 for (pn = 1; pn < u->sw->num_ports; pn++) {
227 uint8_t num_ports, port_num; local
249 num_ports = p_sw->num_ports;
253 for (port_num = 1; port_num < num_ports; port_num++) {
440 for (pn = 0; pn < p_sw->num_ports; pn++) {
H A Dosm_ucast_cache.c77 uint8_t num_ports; member in struct:cache_switch
96 static cache_switch_t *cache_sw_new(uint16_t lid_ho, unsigned num_ports) argument
99 num_ports * sizeof(cache_port_t));
104 sizeof(*p_cache_sw) + num_ports * sizeof(cache_port_t));
106 p_cache_sw->num_ports = num_ports;
161 p_cache_sw = cache_sw_new(lid_ho, p->p_node->sw->num_ports);
172 if (p->port_num >= p_cache_sw->num_ports) {
208 for (port_num = 1; port_num < p_sw->num_ports; port_num++)
269 if (port_num >= p_cache_sw->num_ports ||
[all...]
H A Dosm_sa_vlarb_record.c139 uint8_t num_ports; local
178 num_ports = osm_node_get_num_physp(p_port->p_node);
179 for (port_num = 0; port_num < num_ports; port_num++) {
H A Dosm_perfmgr_db.c106 if (port >= node->num_ports || (!node->esp0 && port == 0))
120 uint8_t num_ports, char *name)
128 rc->ports = calloc(num_ports, sizeof(db_port_t));
131 rc->num_ports = num_ports;
136 for (i = 0; i < num_ports; i++) {
176 uint8_t num_ports, char *name)
182 db_node_t *pc_node = malloc_node(guid, esp0, num_ports,
617 for (i = 0; i < node->num_ports; i++) {
695 for (i = (node->esp0) ? 0 : 1; i < node->num_ports;
119 malloc_node(uint64_t guid, boolean_t esp0, uint8_t num_ports, char *name) argument
175 perfmgr_db_create_entry(perfmgr_db_t * db, uint64_t guid, boolean_t esp0, uint8_t num_ports, char *name) argument
799 int num_ports = node->num_ports; local
[all...]
H A Dosm_ucast_mgr.c116 for (i = 1; i < p_sw->num_ports; i++) {
406 uint32_t num_ports; local
420 num_ports = osm_node_get_num_physp(p_node);
425 for (port_num = 1; port_num < num_ports; port_num++) {
463 port >= node->sw->num_ports) {
492 for (i = 1; i < sw->num_ports; i++) {
525 search_ordering_ports = malloc(sizeof(*search_ordering_ports)*sw->num_ports);
531 memset(search_ordering_ports, 0, sizeof(*search_ordering_ports)*sw->num_ports);
535 words = (sw->num_ports + bpw - 1)/bpw;
549 if ((p == e) || (port == 0) || (port >= sw->num_ports) ||
[all...]
/freebsd-11-stable/sys/dev/rp/
H A Drp_pci.c150 int num_ports, num_aiops; local
198 num_ports = 0;
201 num_ports += sGetAiopNumChan(ctlp, aiop);
204 retval = rp_attachcommon(ctlp, num_aiops, num_ports);
/freebsd-11-stable/contrib/unbound/daemon/
H A Ddaemon.h89 size_t num_ports; member in struct:daemon
/freebsd-11-stable/sys/contrib/octeon-sdk/
H A Dcvmx-helper.c714 int num_ports = cvmx_helper_ports_on_interface(interface); local
717 if (num_ports == CVMX_HELPER_CFG_INVALID_VALUE)
732 while (num_ports--)
795 int num_ports = cvmx_helper_ports_on_interface(interface); local
796 while (num_ports--)
1400 int num_ports; local
1432 num_ports = cvmx_helper_ports_on_interface(interface);
1433 for (index=0; index<num_ports; index++)
1480 num_ports = cvmx_helper_ports_on_interface(interface);
1481 if (num_ports >
[all...]
H A Dcvmx-helper-sgmii.c370 * @param num_ports Number of ports on the interface
374 static int __cvmx_helper_sgmii_hardware_init(int interface, int num_ports) argument
410 __cvmx_helper_setup_gmx(interface, num_ports);
412 for (index=0; index<num_ports; index++)
485 int num_ports = cvmx_helper_ports_on_interface(interface); local
491 for (index = 0; index < num_ports; index++)
515 __cvmx_helper_sgmii_hardware_init(interface, num_ports);
522 for (index = 0; index < num_ports; index++)
533 for (index=0; index<num_ports; index++)
H A Dcvmx-spi.c132 * @param num_ports Number of SPI ports to configure
136 int cvmx_spi_start_interface(int interface, cvmx_spi_mode_t mode, int timeout, int num_ports) argument
147 INVOKE_CB(cvmx_spi_callbacks.calendar_setup_cb, interface, mode, num_ports);
324 * @param num_ports Number of ports to configure on SPI
327 int cvmx_spi_calendar_setup_cb(int interface, cvmx_spi_mode_t mode, int num_ports) argument
338 srxx_com_ctl.s.prts = num_ports - 1;
346 while (port < num_ports)
359 srxx_spi4_stat.s.len = num_ports;
403 while (port < num_ports)
416 stxx_spi4_stat.s.len = num_ports;
[all...]
H A Dcvmx-helper-util.h133 * @param num_ports Number of ports on the interface
137 extern int __cvmx_helper_setup_gmx(int interface, int num_ports);
H A Dcvmx-ilk.h161 extern int cvmx_ilk_calendar_setup_cb (int interface, int num_ports);
/freebsd-11-stable/contrib/ofed/opensm/include/opensm/
H A Dosm_perfmgr_db.h143 uint8_t num_ports; member in struct:db_node
163 boolean_t esp0, uint8_t num_ports,
/freebsd-11-stable/sys/dev/mlx4/mlx4_core/
H A Dmlx4_main.c201 for (i = 0; i < dev->caps.num_ports - 1; i++) {
209 for (i = 0; i < dev->caps.num_ports; i++) {
223 for (i = 1; i <= dev->caps.num_ports; ++i)
362 if (dev_cap->num_ports > MLX4_MAX_PORTS) {
364 dev_cap->num_ports, MLX4_MAX_PORTS);
376 dev->caps.num_ports = dev_cap->num_ports;
381 for (i = 1; i <= dev->caps.num_ports; ++i) {
474 for (i = 1; i <= dev->caps.num_ports; ++i) {
533 if (mlx4_is_master(dev) && (dev->caps.num_ports
[all...]
/freebsd-11-stable/sys/dev/bhnd/bhndb/
H A Dbhndb_hwdata.c51 .num_ports = nitems(_BHNDB_PORT_ARRAY(__VA_ARGS__))
/freebsd-11-stable/sys/mips/cavium/octe/
H A Dethernet.c320 int num_ports = cvmx_helper_ports_on_interface(interface); local
323 for (port = 0; port < num_ports; port++) {
349 int num_ports = cvmx_helper_ports_on_interface(interface); local
353 port < cvmx_helper_get_ipd_port(interface, num_ports);
/freebsd-11-stable/sys/dev/mthca/
H A Dmthca_mad.c301 for (p = 0; p < dev->limits.num_ports; ++p)
315 for (p = 1; p <= dev->limits.num_ports; ++p) {
327 for (p = 0; p < dev->limits.num_ports; ++p)
340 for (p = 0; p < dev->limits.num_ports; ++p) {
/freebsd-11-stable/contrib/ofed/opensm/libvendor/
H A Dosm_vendor_al.c638 uint32_t num_ports; local
642 num_ports = osm_ca_info_get_num_ports(p_ca_info);
644 for (port_num = 0; port_num < num_ports; port_num++) {
670 uint8_t num_ports; local
695 num_ports = osm_ca_info_get_num_ports(p_ca_info);
696 CL_ASSERT(num_ports);
698 for (index = 0; index < num_ports; index++) {
723 uint8_t num_ports; local
748 num_ports = osm_ca_info_get_num_ports(p_ca_info);
749 CL_ASSERT(num_ports);
[all...]
H A Dosm_vendor_mlx_sa.c230 uint32_t num_ports; local
245 num_ports = 0;
246 status = osm_vendor_get_all_port_attr(p_vend, NULL, &num_ports);
257 num_ports, cl_ntoh64(port_guid));
261 (ib_port_attr_t *) malloc(sizeof(ib_port_attr_t) * num_ports);
264 status = osm_vendor_get_all_port_attr(p_vend, p_attr_array, &num_ports);
275 for (port_num = 0; (port_num < num_ports) && (status == IB_ERROR);

Completed in 177 milliseconds

1234567