Home
last modified time | relevance | path

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

12

/freebsd-12-stable/usr.sbin/ppp/
Dncp.c106 ncp->cfg.urgent.tcp.nports = ncp->cfg.urgent.tcp.maxports = 0; in ncp_Init()
108 ncp->cfg.urgent.tcp.nports = ncp->cfg.urgent.tcp.maxports = NDEFTCPPORTS; in ncp_Init()
114 ncp->cfg.urgent.udp.nports = ncp->cfg.urgent.udp.maxports = 0; in ncp_Init()
137 ncp->cfg.urgent.tcp.nports = ncp->cfg.urgent.tcp.maxports = 0; in ncp_Destroy()
142 ncp->cfg.urgent.udp.nports = ncp->cfg.urgent.udp.maxports = 0; in ncp_Destroy()
377 for (f = 0; f < range->nports; f++) in ncp_IsUrgentPort()
390 if (range->nports == range->maxports) { in ncp_AddUrgentPort()
403 for (p = 0; p < range->nports; p++) in ncp_AddUrgentPort()
409 (range->nports - p) * sizeof(u_short)); in ncp_AddUrgentPort()
411 range->nports++; in ncp_AddUrgentPort()
[all …]
Dncp.h32 unsigned nports; /* How many ports */ member
/freebsd-12-stable/sys/mips/cavium/usb/
Doctusb_octeon.c99 int nports; in octusb_octeon_attach() local
115 nports = cvmx_usb_get_num_ports(); in octusb_octeon_attach()
116 if (nports > OCTUSB_MAX_PORTS) in octusb_octeon_attach()
117 panic("octusb: too many USB ports %d", nports); in octusb_octeon_attach()
118 for (i = 0; i < nports; i++) { in octusb_octeon_attach()
166 int nports; in octusb_octeon_detach() local
178 nports = cvmx_usb_get_num_ports(); in octusb_octeon_detach()
179 if (nports > OCTUSB_MAX_PORTS) in octusb_octeon_detach()
180 panic("octusb: too many USB ports %d", nports); in octusb_octeon_detach()
181 for (i = 0; i < nports; i++) { in octusb_octeon_detach()
/freebsd-12-stable/contrib/ofed/infiniband-diags/src/
Dibroute.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 …]
Ddump_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-12-stable/sys/dev/cxgbe/
Dt4_vf.c322 int nrxq, ntxq, nports; in cfg_itype_and_nqueues() local
330 nports = sc->params.nports; in cfg_itype_and_nqueues()
368 if (iq_avail < nports) { in cfg_itype_and_nqueues()
371 vfres->niqflint, nports); in cfg_itype_and_nqueues()
381 if (iaq->nirq + nports <= navail) { in cfg_itype_and_nqueues()
386 nrxq = nports * t4_nrxq; in cfg_itype_and_nqueues()
391 nrxq = (iq_avail / nports) * nports; in cfg_itype_and_nqueues()
399 if (vfres->nethctrl < nports) { in cfg_itype_and_nqueues()
402 vfres->nethctrl, nports); in cfg_itype_and_nqueues()
406 ntxq = nports * t4_ntxq; in cfg_itype_and_nqueues()
[all …]
Dt4_sched.c384 if (p->port >= sc->params.nports) in t4_set_sched_queue()
490 MPASS(port_id >= 0 && port_id < sc->params.nports); in t4_reserve_cl_rl_kbps()
554 MPASS(port_id >= 0 && port_id < sc->params.nports); in t4_release_cl_rl()
608 MPASS(port_id < sc->params.nports); in sysctl_tc_params()
/freebsd-12-stable/usr.bin/systat/
Dnetcmds.c71 int nports, nhosts, protos; variable
210 nports = 0; in selectport()
213 for (p = ports; p < ports + nports; p++) in selectport()
218 if (nports == 0) in selectport()
221 ports = (struct pitem *)realloc(ports, (nports+1)*sizeof (*p)); in selectport()
222 p = &ports[nports++]; in selectport()
234 for (p = ports; p < ports+nports; p++) in checkport()
246 for (p = ports; p < ports+nports; p++) { in showports()
/freebsd-12-stable/sys/dev/usb/
Dusb_hub.c380 for (x = 0; x != udev->hub->nports; x++) { in uhub_reset_tt_callback()
437 for (x = 0; x != hub->nports; x++) { in uhub_count_active_host_ports()
1061 for (x = 0; x != hub->nports; x++) { in uhub_explore()
1175 uint8_t nports; in uhub_query_info() local
1181 nports = 0; in uhub_query_info()
1195 nports = hubdesc20.bNbrPorts; in uhub_query_info()
1196 if (nports > 127) in uhub_query_info()
1197 nports = 127; in uhub_query_info()
1210 nports = hubdesc30.bNbrPorts; in uhub_query_info()
1211 if (nports > 16) in uhub_query_info()
[all …]
Dusb_request.h60 uint8_t nports);
63 uint8_t nports);
Dusb_hub.h58 uint8_t nports; member
/freebsd-12-stable/sys/contrib/octeon-sdk/
Dcvmx-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-12-stable/sys/arm/samsung/exynos/
Dexynos5_pad.c124 int nports; member
508 sc->nports = 4; in pad_attach()
515 sc->nports = 5; in pad_attach()
528 for (i = 0; i < sc->nports; i++) { in pad_attach()
537 for (i = 0; i < sc->nports; i++) { in pad_attach()
538 if ((bus_setup_intr(dev, sc->res[sc->nports + i], in pad_attach()
574 for (i = 0; i < sc->nports; i++) { in pad_attach()
576 bus_teardown_intr(dev, sc->res[sc->nports + i], in pad_attach()
/freebsd-12-stable/tools/tools/netmap/
Dlb.c189 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()
806 for (k = 0; k < g->nports; ++k) { in main()
[all …]
/freebsd-12-stable/sys/netgraph/atm/ccatm/
Dng_ccatm.c156 return (p->nports); in ng_ccatm_port_array_getlen()
672 arg->nports = 0; in ng_ccatm_rcvmsg()
673 for (arg->nports = 0; arg->nports < n; arg->nports++) in ng_ccatm_rcvmsg()
674 arg->ports[arg->nports] = ports[arg->nports]; in ng_ccatm_rcvmsg()
735 s.nports * sizeof(*ports) + in ng_ccatm_rcvmsg()
753 sizeof(*ports) * s.nports); in ng_ccatm_rcvmsg()
754 offs += sizeof(*ports) * s.nports; in ng_ccatm_rcvmsg()
/freebsd-12-stable/sys/dev/usb/serial/
Du3g.c922 int error, type, nports; in u3g_attach() local
962 nports = 0; /* number of ports */ in u3g_attach()
975 sc->sc_xfer[nports], u3g_config_tmp, U3G_N_TRANSFER, in u3g_attach()
976 &sc->sc_ucom[nports], &sc->sc_mtx); in u3g_attach()
986 sc->sc_iface[nports] = id->bInterfaceNumber; in u3g_attach()
988 if (bootverbose && sc->sc_xfer[nports][U3G_INTR]) { in u3g_attach()
990 nports); in u3g_attach()
995 usbd_xfer_set_stall(sc->sc_xfer[nports][U3G_BULK_WR]); in u3g_attach()
996 usbd_xfer_set_stall(sc->sc_xfer[nports][U3G_BULK_RD]); in u3g_attach()
999 nports++; /* found one port */ in u3g_attach()
[all …]
/freebsd-12-stable/sys/dev/cxgb/common/
Dcxgb_vsc7323.c113 int t3_vsc7323_init(adapter_t *adap, int nports) in t3_vsc7323_init() argument
146 ing_step = 0xc0 / nports; in t3_vsc7323_init()
147 egr_step = 0x40 / nports; in t3_vsc7323_init()
153 for (i = 0; i < nports; i++) { in t3_vsc7323_init()
180 for (i = 0; i < nports; i++) in t3_vsc7323_init()
Dcxgb_ctl_defs.h85 unsigned int nports; /* number of ports on this adapter */ member
/freebsd-12-stable/sys/contrib/ngatm/netnatm/api/
Dcc_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()
Dcc_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-12-stable/sys/netgraph/atm/
Dng_ccatm.h152 uint32_t nports; member
/freebsd-12-stable/sys/ofed/include/rdma/
Drdma_vt.h153 int nports; member
487 struct rvt_dev_info *rvt_alloc_device(size_t size, int nports);
/freebsd-12-stable/sys/dev/cxgb/
Dcxgb_main.c367 int nports; in cxgb_controller_probe() local
373 nports = ai->nports0 + ai->nports1; in cxgb_controller_probe()
374 if (nports == 1) in cxgb_controller_probe()
379 snprintf(buf, sizeof(buf), "%s, %d %s", ai->desc, nports, ports); in cxgb_controller_probe()
543 port_qsets = min(SGE_QSETS/sc->params.nports, mp_ncpus); in cxgb_controller_attach()
544 msi_needed = sc->msi_count = sc->params.nports * port_qsets + 1; in cxgb_controller_attach()
629 for (i = 0; i < (sc)->params.nports; i++) { in cxgb_controller_attach()
740 for (i = 0; i < (sc)->params.nports; i++) { in cxgb_free()
754 for (i = 0; i < sc->params.nports; i++) { in cxgb_free()
840 for (i = 0; i < (sc)->params.nports; i++) { in setup_sge_qsets()
[all …]
/freebsd-12-stable/share/misc/
Dorganization.dot32 portscommitters [label="Ports Committers\nports-committers@FreeBSD.org"]
37 portssecteam [label="Ports Security Team\nports-secteam@FreeBSD.org\ndelphij, amdmi3, eadler, feld,…
/freebsd-12-stable/sys/dev/cxgbe/iw_cxgbe/
Dprovider.c309 if (port == 0 || port > sc->params.nports) in c4iw_query_gid()
373 if (port > sc->params.nports) in c4iw_query_port()
469 ibdev->phys_port_cnt = sc->params.nports; in c4iw_register_device()

12