Home
last modified time | relevance | path

Searched refs:nports (Results 1 – 25 of 46) sorted by relevance

12

/freebsd-13-stable/usr.sbin/ppp/
HDncp.c104 ncp->cfg.urgent.tcp.nports = ncp->cfg.urgent.tcp.maxports = 0; in ncp_Init()
106 ncp->cfg.urgent.tcp.nports = ncp->cfg.urgent.tcp.maxports = NDEFTCPPORTS; in ncp_Init()
112 ncp->cfg.urgent.udp.nports = ncp->cfg.urgent.udp.maxports = 0; in ncp_Init()
135 ncp->cfg.urgent.tcp.nports = ncp->cfg.urgent.tcp.maxports = 0; in ncp_Destroy()
140 ncp->cfg.urgent.udp.nports = ncp->cfg.urgent.udp.maxports = 0; in ncp_Destroy()
375 for (f = 0; f < range->nports; f++) in ncp_IsUrgentPort()
388 if (range->nports == range->maxports) { in ncp_AddUrgentPort()
401 for (p = 0; p < range->nports; p++) in ncp_AddUrgentPort()
407 (range->nports - p) * sizeof(u_short)); in ncp_AddUrgentPort()
409 range->nports++; in ncp_AddUrgentPort()
[all …]
HDncp.h30 unsigned nports; /* How many ports */ member
/freebsd-13-stable/sys/mips/cavium/usb/
HDoctusb_octeon.c97 int nports; in octusb_octeon_attach() local
113 nports = cvmx_usb_get_num_ports(); in octusb_octeon_attach()
114 if (nports > OCTUSB_MAX_PORTS) in octusb_octeon_attach()
115 panic("octusb: too many USB ports %d", nports); in octusb_octeon_attach()
116 for (i = 0; i < nports; i++) { in octusb_octeon_attach()
163 int nports; in octusb_octeon_detach() local
175 nports = cvmx_usb_get_num_ports(); in octusb_octeon_detach()
176 if (nports > OCTUSB_MAX_PORTS) in octusb_octeon_detach()
177 panic("octusb: too many USB ports %d", nports); in octusb_octeon_detach()
178 for (i = 0; i < nports; i++) { in octusb_octeon_detach()
/freebsd-13-stable/contrib/ofed/infiniband-diags/src/
HDibroute.c62 char *check_switch(ib_portid_t * portid, unsigned int *nports, uint64_t * guid, in check_switch() argument
82 mad_decode_field(ni, IB_NODE_NPORTS_F, nports); in check_switch()
93 int dump_mlid(char *str, int strlen, unsigned mlid, unsigned nports, in dump_mlid() argument
101 unsigned chunks = ALIGN(nports + 1, 16) / 16; in dump_mlid()
118 for (i = 0; i <= nports; i++) { in dump_mlid()
147 unsigned block, i, j, e, nports, cap, chunks, startblock, lastblock, in dump_multicast_tables() local
152 if ((s = check_switch(portid, &nports, &nodeguid, sw, nd))) in dump_multicast_tables()
190 if (nports > 9) { in dump_multicast_tables()
191 for (i = 0, s = str; i <= nports; i++) { in dump_multicast_tables()
198 for (i = 0, s = str; i <= nports; i++) in dump_multicast_tables()
[all …]
HDdump_fts.c68 int dump_mlid(char *str, int strlen, unsigned mlid, unsigned nports, in dump_mlid() argument
76 unsigned chunks = ALIGN(nports + 1, 16) / 16; in dump_mlid()
93 for (i = 0; i <= nports; i++) { in dump_mlid()
122 unsigned block, i, j, e, nports, cap, chunks, startblock, lastblock, in dump_multicast_tables() local
128 nports = node->numports; in dump_multicast_tables()
166 if (nports > 9) { in dump_multicast_tables()
167 for (i = 0, s = str; i <= nports; i++) { in dump_multicast_tables()
174 for (i = 0, s = str; i <= nports; i++) in dump_multicast_tables()
183 chunks = ALIGN(nports + 1, 16) / 16; in dump_multicast_tables()
216 if (dump_mlid(str, sizeof str, i, nports, mft) == 0) in dump_multicast_tables()
[all …]
/freebsd-13-stable/sys/dev/cxgbe/
HDt4_vf.c321 int nrxq, ntxq, nports; in cfg_itype_and_nqueues() local
329 nports = sc->params.nports; in cfg_itype_and_nqueues()
367 if (iq_avail < nports) { in cfg_itype_and_nqueues()
370 vfres->niqflint, nports); in cfg_itype_and_nqueues()
380 if (iaq->nirq + nports <= navail) { in cfg_itype_and_nqueues()
385 nrxq = nports * t4_nrxq; in cfg_itype_and_nqueues()
390 nrxq = (iq_avail / nports) * nports; in cfg_itype_and_nqueues()
398 if (vfres->nethctrl < nports) { in cfg_itype_and_nqueues()
401 vfres->nethctrl, nports); in cfg_itype_and_nqueues()
405 ntxq = nports * t4_ntxq; in cfg_itype_and_nqueues()
[all …]
/freebsd-13-stable/usr.bin/systat/
HDnetcmds.c68 int nports, nhosts, protos; variable
207 nports = 0; in selectport()
210 for (p = ports; p < ports + nports; p++) in selectport()
215 if (nports == 0) in selectport()
218 ports = (struct pitem *)realloc(ports, (nports+1)*sizeof (*p)); in selectport()
219 p = &ports[nports++]; in selectport()
231 for (p = ports; p < ports+nports; p++) in checkport()
243 for (p = ports; p < ports+nports; p++) { in showports()
HDextern.h55 extern int nports;
/freebsd-13-stable/sys/dev/usb/
HDusb_hub.c344 for (x = 0; x != udev->hub->nports; x++) { in uhub_reset_tt_callback()
401 for (x = 0; x != hub->nports; x++) { in uhub_count_active_host_ports()
1031 for (x = 0; x != hub->nports; x++) { in uhub_explore()
1147 uint8_t nports; in uhub_query_info() local
1153 nports = 0; in uhub_query_info()
1167 nports = hubdesc20.bNbrPorts; in uhub_query_info()
1168 if (nports > 127) in uhub_query_info()
1169 nports = 127; in uhub_query_info()
1182 nports = hubdesc30.bNbrPorts; in uhub_query_info()
1183 if (nports > 16) in uhub_query_info()
[all …]
HDusb_hub_acpi.c94 uint8_t nports; member
375 (devinfo->Address <= (uint64_t)sc->nports)) { in acpi_usb_hub_port_probe_cb()
457 sc->nports = uh->nports; in acpi_uhub_attach_common()
458 sc->port = malloc(sizeof(struct acpi_uhub_port) * uh->nports, in acpi_uhub_attach_common()
534 (hres.portno <= sc->nports) && in acpi_uhub_read_ivar()
HDusb_request.h59 uint8_t nports);
62 uint8_t nports);
HDusb_hub.h57 uint8_t nports; member
/freebsd-13-stable/sys/contrib/octeon-sdk/
HDcvmx-helper.c523 static int cvmx_helper_fcs_op(int interface, int nports, int has_fcs) in cvmx_helper_fcs_op() argument
535 for (index = 0; index < nports; index++) in cvmx_helper_fcs_op()
622 int nports; in cvmx_helper_interface_probe() local
626 nports = -1; in cvmx_helper_interface_probe()
633 nports = 0; in cvmx_helper_interface_probe()
638 nports = __cvmx_helper_xaui_probe(interface); in cvmx_helper_interface_probe()
646 nports = __cvmx_helper_rgmii_probe(interface); in cvmx_helper_interface_probe()
651 nports = __cvmx_helper_spi_probe(interface); in cvmx_helper_interface_probe()
658 nports = __cvmx_helper_sgmii_probe(interface); in cvmx_helper_interface_probe()
663 nports = __cvmx_helper_npi_probe(interface); in cvmx_helper_interface_probe()
[all …]
/freebsd-13-stable/tools/tools/netmap/
HDlb.c188 int nports; member
448 g->nports = DEF_OUT_PIPES; in parse_pipes()
450 g->nports = atoi(end); in parse_pipes()
451 if (g->nports < 1) { in parse_pipes()
456 glob_arg.output_rings += g->nports; in parse_pipes()
470 for (j = 0; j < g->nports; j++) in init_groups()
472 t += g->nports; in init_groups()
478 g->first_id += h->nports; in init_groups()
515 uint32_t output_port = hash % g->nports; in forward_packet()
805 for (k = 0; k < g->nports; ++k) { in main()
[all …]
/freebsd-13-stable/sys/netgraph/atm/ccatm/
HDng_ccatm.c152 return (p->nports); in ng_ccatm_port_array_getlen()
666 arg->nports = 0; in ng_ccatm_rcvmsg()
667 for (arg->nports = 0; arg->nports < n; arg->nports++) in ng_ccatm_rcvmsg()
668 arg->ports[arg->nports] = ports[arg->nports]; in ng_ccatm_rcvmsg()
729 s.nports * sizeof(*ports) + in ng_ccatm_rcvmsg()
747 sizeof(*ports) * s.nports); in ng_ccatm_rcvmsg()
748 offs += sizeof(*ports) * s.nports; in ng_ccatm_rcvmsg()
/freebsd-13-stable/sys/dev/cxgb/common/
HDcxgb_vsc7323.c111 int t3_vsc7323_init(adapter_t *adap, int nports) in t3_vsc7323_init() argument
144 ing_step = 0xc0 / nports; in t3_vsc7323_init()
145 egr_step = 0x40 / nports; in t3_vsc7323_init()
151 for (i = 0; i < nports; i++) { in t3_vsc7323_init()
178 for (i = 0; i < nports; i++) in t3_vsc7323_init()
HDcxgb_ctl_defs.h83 unsigned int nports; /* number of ports on this adapter */ member
/freebsd-13-stable/sys/contrib/ngatm/netnatm/api/
HDcc_data.c138 status->nports = 0; in cc_get_extended_status()
147 status->nports++; in cc_get_extended_status()
156 *pport = CCMALLOC(sizeof(**pport) * status->nports); in cc_get_extended_status()
HDcc_port.c442 u_int nports, naddrs; in cc_get_local_port_info() local
447 nports = 0; in cc_get_local_port_info()
451 nports++; in cc_get_local_port_info()
460 *lenp = sizeof(*list) + nports * sizeof(*pp) + naddrs * sizeof(*aa); in cc_get_local_port_info()
469 list->num_ports = nports; in cc_get_local_port_info()
473 aa = (void *)((u_char *)list + sizeof(*list) + nports * sizeof(*pp)); in cc_get_local_port_info()
/freebsd-13-stable/sys/dev/usb/serial/
HDu3g.c941 int error, type, nports; in u3g_attach() local
981 nports = 0; /* number of ports */ in u3g_attach()
994 sc->sc_xfer[nports], u3g_config_tmp, U3G_N_TRANSFER, in u3g_attach()
995 &sc->sc_ucom[nports], &sc->sc_mtx); in u3g_attach()
1005 sc->sc_iface[nports] = id->bInterfaceNumber; in u3g_attach()
1007 if (bootverbose && sc->sc_xfer[nports][U3G_INTR]) { in u3g_attach()
1009 nports); in u3g_attach()
1014 usbd_xfer_set_stall(sc->sc_xfer[nports][U3G_BULK_WR]); in u3g_attach()
1015 usbd_xfer_set_stall(sc->sc_xfer[nports][U3G_BULK_RD]); in u3g_attach()
1018 nports++; /* found one port */ in u3g_attach()
[all …]
/freebsd-13-stable/sys/netgraph/atm/
HDng_ccatm.h150 uint32_t nports; member
/freebsd-13-stable/share/misc/
HDorganization.dot31 portscommitters [label="Ports Committers\nports-committers@FreeBSD.org"]
36 portssecteam [label="Ports Security Team\nports-secteam@FreeBSD.org\ndelphij, amdmi3, eadler, jgh, …
/freebsd-13-stable/sys/ofed/include/rdma/
HDrdma_vt.h151 int nports; member
485 struct rvt_dev_info *rvt_alloc_device(size_t size, int nports);
/freebsd-13-stable/sys/dev/cxgb/
HDcxgb_main.c366 int nports; in cxgb_controller_probe() local
372 nports = ai->nports0 + ai->nports1; in cxgb_controller_probe()
373 if (nports == 1) in cxgb_controller_probe()
378 snprintf(buf, sizeof(buf), "%s, %d %s", ai->desc, nports, ports); in cxgb_controller_probe()
542 port_qsets = min(SGE_QSETS/sc->params.nports, mp_ncpus); in cxgb_controller_attach()
543 msi_needed = sc->msi_count = sc->params.nports * port_qsets + 1; in cxgb_controller_attach()
628 for (i = 0; i < (sc)->params.nports; i++) { in cxgb_controller_attach()
739 for (i = 0; i < (sc)->params.nports; i++) { in cxgb_free()
753 for (i = 0; i < sc->params.nports; i++) { in cxgb_free()
839 for (i = 0; i < (sc)->params.nports; i++) { in setup_sge_qsets()
[all …]
/freebsd-13-stable/sys/dev/cxgbe/iw_cxgbe/
HDprovider.c307 if (port == 0 || port > sc->params.nports) in c4iw_query_gid()
370 if (port > sc->params.nports) in c4iw_query_port()
466 ibdev->phys_port_cnt = sc->params.nports; in c4iw_register_device()

12