/freebsd/usr.sbin/ppp/ |
H A D | ncp.c | 104 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 …]
|
H A D | ncp.h | 30 unsigned nports; /* How many ports */ member
|
/freebsd/contrib/ofed/infiniband-diags/src/ |
H A D | ibroute.c | 62 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 …]
|
H A D | dump_fts.c | 68 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/sys/dev/cxgbe/ |
H A D | t4_vf.c | 321 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 …]
|
H A D | t4_sched.c | 410 if (p->port >= sc->params.nports) in t4_set_sched_queue() 503 MPASS(port_id >= 0 && port_id < sc->params.nports); in t4_reserve_cl_rl_kbps() 579 MPASS(port_id >= 0 && port_id < sc->params.nports); in t4_release_cl_rl() 630 MPASS(port_id < sc->params.nports); in sysctl_tc_params()
|
H A D | t4_main.c | 1197 int rc = 0, i, j, rqidx, tqidx, nports; in t4_attach() local 1460 nports = sc->params.nports; in t4_attach() 1470 s->nrxq = nports * iaq.nrxq; in t4_attach() 1471 s->ntxq = nports * iaq.ntxq; in t4_attach() 1473 s->nrxq += nports * (num_vis - 1) * iaq.nrxq_vi; in t4_attach() 1474 s->ntxq += nports * (num_vis - 1) * iaq.ntxq_vi; in t4_attach() 1477 s->neq += nports; /* ctrl queues: 1 per port */ in t4_attach() 1481 s->nofldtxq = nports * iaq.nofldtxq; in t4_attach() 1483 s->nofldtxq += nports * (num_vis - 1) * iaq.nofldtxq_vi; in t4_attach() 1492 s->nofldrxq = nports * iaq.nofldrxq; in t4_attach() [all …]
|
/freebsd/usr.bin/systat/ |
H A D | netcmds.c | 65 int nports, nhosts, protos; variable 204 nports = 0; in selectport() 207 for (p = ports; p < ports + nports; p++) in selectport() 212 if (nports == 0) in selectport() 215 ports = (struct pitem *)realloc(ports, (nports+1)*sizeof (*p)); in selectport() 216 p = &ports[nports++]; in selectport() 228 for (p = ports; p < ports+nports; p++) in checkport() 240 for (p = ports; p < ports+nports; p++) { in showports()
|
H A D | extern.h | 53 extern int nports;
|
H A D | netstat.c | 215 if (nports && !checkport(&inpcb->inp_inc)) in fetchnetstat_kvm() 304 if (nports && !checkport(&xip->inp_inc)) in fetchnetstat_sysctl()
|
/freebsd/sys/dev/usb/ |
H A D | usb_hub.c | 344 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 …]
|
H A D | usb_hub_acpi.c | 94 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()
|
H A D | usb_request.h | 59 uint8_t nports); 62 uint8_t nports);
|
H A D | usb_hub.h | 57 uint8_t nports; member
|
/freebsd/tools/tools/netmap/ |
H A D | lb.c | 188 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/sys/dev/cxgb/common/ |
H A D | cxgb_vsc7323.c | 111 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()
|
H A D | cxgb_ctl_defs.h | 83 unsigned int nports; /* number of ports on this adapter */ member
|
H A D | cxgb_t3_hw.c | 1500 if (adapter->params.nports <= 2) { in t3_clear_faults() 1560 if (adapter->params.nports <= 2 && in t3_link_changed() 1632 if (adapter->params.nports <= 2) { in t3_link_changed() 3226 if (adap->params.nports > 2) { in tp_config() 3831 if (port_mask & ~((1 << adap->params.nports) - 1)) in t3_mps_set_active_ports() 4154 if (adapter->params.nports > 2) in t3_init_hw() 4321 mac->multiport = adapter->params.nports > 2; in mac_prep() 4358 u32 val = V_PORTSPEED(is_10G(adapter) || adapter->params.nports > 2 ? in early_hw_init() 4467 adapter->params.nports = ai->nports0 + ai->nports1; in t3_prep_adapter() 4481 if (adapter->params.nports > 2) in t3_prep_adapter() [all …]
|
H A D | cxgb_common.h | 397 unsigned int nports; /* # of ethernet ports */ member 641 for (iter = 0; iter < (adapter)->params.nports; ++iter) 828 int t3_vsc7323_init(adapter_t *adap, int nports);
|
/freebsd/sys/dev/usb/serial/ |
H A D | u3g.c | 959 int error, type, nports; in u3g_attach() local 999 nports = 0; /* number of ports */ in u3g_attach() 1012 sc->sc_xfer[nports], u3g_config_tmp, U3G_N_TRANSFER, in u3g_attach() 1013 &sc->sc_ucom[nports], &sc->sc_mtx); in u3g_attach() 1023 sc->sc_iface[nports] = id->bInterfaceNumber; in u3g_attach() 1025 if (bootverbose && sc->sc_xfer[nports][U3G_INTR]) { in u3g_attach() 1027 nports); in u3g_attach() 1032 usbd_xfer_set_stall(sc->sc_xfer[nports][U3G_BULK_WR]); in u3g_attach() 1033 usbd_xfer_set_stall(sc->sc_xfer[nports][U3G_BULK_RD]); in u3g_attach() 1036 nports++; /* found one port */ in u3g_attach() [all …]
|
/freebsd/share/misc/ |
H A D | organization.dot | 32 portscommitters [label="Ports Committers\nports-committers@FreeBSD.org"] 37 portssecteam [label="Ports Security Team\nports-secteam@FreeBSD.org\ndelphij, amdmi3, eadler, jgh, rea, riggs, sbz, simon, zi"]
|
/freebsd/sys/ofed/include/rdma/ |
H A D | rdma_vt.h | 151 int nports; member 485 struct rvt_dev_info *rvt_alloc_device(size_t size, int nports);
|
/freebsd/sys/dev/cxgb/ |
H A D | cxgb_main.c | 362 int nports; in cxgb_controller_probe() local 368 nports = ai->nports0 + ai->nports1; in cxgb_controller_probe() 369 if (nports == 1) in cxgb_controller_probe() 374 device_set_descf(dev, "%s, %d %s", ai->desc, nports, ports); in cxgb_controller_probe() 536 port_qsets = min(SGE_QSETS/sc->params.nports, mp_ncpus); in cxgb_controller_attach() 537 msi_needed = sc->msi_count = sc->params.nports * port_qsets + 1; in cxgb_controller_attach() 622 for (i = 0; i < (sc)->params.nports; i++) { in cxgb_controller_attach() 731 for (i = 0; i < (sc)->params.nports; i++) { in cxgb_free() 745 for (i = 0; i < sc->params.nports; i++) { in cxgb_free() 831 for (i = 0; i < (sc)->params.nports; i++) { in setup_sge_qsets() [all …]
|
H A D | cxgb_sge.c | 552 nqsets = min(SGE_QSETS / adap->params.nports, mp_ncpus); in t3_sge_prep() 553 nqsets *= adap->params.nports; in t3_sge_prep() 579 if (adap->params.nports > 2) { in t3_sge_prep() 971 for (i = 0; i < sc->params.nports; i++) { in sge_timer_cb() 987 if (sc->params.nports > 2) { in sge_timer_cb() 998 if (((sc->flags & USING_MSIX) == 0 || sc->params.nports > 2) && in sge_timer_cb() 2412 t3_sge_alloc_qset(adapter_t *sc, u_int id, int nports, int irq_vec_idx, in t3_sge_alloc_qset() argument 2499 q->txq[TXQ_ETH].stop_thres = nports * in t3_sge_alloc_qset() 3298 for (i = 0; i < sc->params.nports; i++) in t3_set_coalesce_usecs() 3431 for (i = 0; i < sc->params.nports; i++) { in t3_add_configured_sysctls()
|
/freebsd/sys/dev/cxgbe/iw_cxgbe/ |
H A D | provider.c | 284 if (port == 0 || port > sc->params.nports) in c4iw_query_gid() 347 if (port > sc->params.nports) in c4iw_query_port() 450 ibdev->phys_port_cnt = sc->params.nports; in c4iw_register_device()
|