Home
last modified time | relevance | path

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

/dragonfly/usr.sbin/ppp/
H A Dncp.c357 for (f = 0; f < range->nports; f++) in ncp_IsUrgentPort()
383 for (p = 0; p < range->nports; p++) in ncp_AddUrgentPort()
391 range->nports++; in ncp_AddUrgentPort()
395 if (p == range->nports) in ncp_AddUrgentPort()
404 for (p = 0; p < range->nports; p++) in ncp_RemoveUrgentPort()
406 if (p + 1 != range->nports) in ncp_RemoveUrgentPort()
409 range->nports--; in ncp_RemoveUrgentPort()
413 if (p == range->nports) in ncp_RemoveUrgentPort()
420 range->nports = 0; in ncp_ClearUrgentPorts()
453 if (ncp->cfg.urgent.tcp.nports == 0) in ncp_Show()
[all …]
H A Dncp.h31 unsigned nports; /* How many ports */ member
/dragonfly/usr.bin/systat/
H A Dnetcmds.c63 int nports, nhosts, protos; variable
201 nports = 0; in selectport()
204 for (p = ports; p < ports+nports; p++) in selectport()
209 if (nports == 0) in selectport()
212 ports = (struct pitem *)realloc(ports, (nports+1)*sizeof (*p)); in selectport()
213 p = &ports[nports++]; in selectport()
225 for (p = ports; p < ports+nports; p++) { in checkport()
239 for (p = ports; p < ports+nports; p++) { in showports()
H A Dextern.h48 extern int nports;
H A Dnetstat.c241 if (nports && !checkport(inp)) in enter()
/dragonfly/sys/bus/u4b/
H A Dusb_hub.c1148 uint8_t nports; in uhub_query_info() local
1154 nports = 0; in uhub_query_info()
1170 nports = 127; in uhub_query_info()
1185 nports = 16; in uhub_query_info()
1217 uint16_t nports; in uhub_attach() local
1353 nports = 1; in uhub_attach()
1380 hub->nports = nports; in uhub_attach()
1633 uint8_t nports; in uhub_find_iface_index() local
1637 nports = hub->nports; in uhub_find_iface_index()
2687 uint8_t nports; in usb_dev_suspend_peer() local
[all …]
H A Dusb_request.h58 uint8_t nports);
61 uint8_t nports);
H A Dusb_hub.h56 uint8_t nports; member
H A Dusb_request.c1482 struct usb_hub_descriptor *hd, uint8_t nports) argument
1485 uint16_t len = (nports + 7 + (8 * 8)) / 8;
1504 struct usb_hub_ss_descriptor *hd, uint8_t nports) argument
1507 uint16_t len = sizeof(*hd) - 32 + 1 + ((nports + 7) / 8);
H A Dusb_generic.c1895 if (port_no > hub->nports) { in ugen_do_port_feature()
/dragonfly/sys/dev/disk/sili/
H A Dsili_attach.c124 u_int32_t nports, reg; in sili_pci_attach() local
253 nports = sc->sc_ad->ad_nports; in sili_pci_attach()
254 KKASSERT(nports <= SILI_MAX_PORTS); in sili_pci_attach()
257 nports, gen); in sili_pci_attach()
266 for (i = 0; error == 0 && i < nports; i++) { in sili_pci_attach()
292 for (i = 0; i < nports; ++i) in sili_pci_attach()
304 for (i = 0; i < nports; i++) { in sili_pci_attach()
H A Dsili_pm.c164 u_int32_t nports; in sili_pm_identify() local
174 if (sili_pm_read(ap, 15, 2, &nports)) in sili_pm_identify()
176 nports &= 0x0000000F; /* only the low 4 bits */ in sili_pm_identify()
192 if (nports > 1) in sili_pm_identify()
193 --nports; in sili_pm_identify()
200 nports); in sili_pm_identify()
203 PORTNAME(ap), nports); in sili_pm_identify()
205 ap->ap_pmcount = nports; in sili_pm_identify()
/dragonfly/sys/dev/disk/ahci/
H A Dahci_pm.c433 u_int32_t nports; in ahci_pm_identify() local
443 if (ahci_pm_read(ap, 15, 2, &nports)) in ahci_pm_identify()
445 nports &= 0x0000000F; /* only the low 4 bits */ in ahci_pm_identify()
468 if (nports > 1) in ahci_pm_identify()
469 --nports; in ahci_pm_identify()
473 PORTNAME(ap), chipid, SATA_PFMT_PM_REV, rev, nports); in ahci_pm_identify()
476 PORTNAME(ap), nports); in ahci_pm_identify()
478 ap->ap_pmcount = nports; in ahci_pm_identify()
/dragonfly/sys/bus/u4b/serial/
H A Du3g.c793 int error, type, nports; in u3g_attach() local
829 nports = 0; /* number of ports */ in u3g_attach()
842 sc->sc_xfer[nports], u3g_config_tmp, U3G_N_TRANSFER, in u3g_attach()
843 &sc->sc_ucom[nports], &sc->sc_lock); in u3g_attach()
853 usbd_xfer_set_stall(sc->sc_xfer[nports][U3G_BULK_WR]); in u3g_attach()
854 usbd_xfer_set_stall(sc->sc_xfer[nports][U3G_BULK_RD]); in u3g_attach()
857 nports++; /* found one port */ in u3g_attach()
859 if (nports == U3G_MAXPORTS) in u3g_attach()
862 if (nports == 0) { in u3g_attach()
866 sc->sc_numports = nports; in u3g_attach()
/dragonfly/sbin/ip6fw/
H A Dip6fw.c957 u_short nports = 0; in add() local
959 if (fill_port(&nports, rule.fw_pts, 0, *av)) in add()
961 IPV6_FW_SETNSRCP(&rule, nports); in add()
980 u_short nports = 0; in add() local
982 if (fill_port(&nports, in add()
985 IPV6_FW_SETNDSTP(&rule, nports); in add()
/dragonfly/sys/net/ip6fw/
H A Dip6_fw.c141 static int port_match6 (u_short *portptr, int nports, u_short port,
158 port_match6(u_short *portptr, int nports, u_short port, int range_flag) in port_match6() argument
160 if (!nports) in port_match6()
166 nports -= 2; in port_match6()
169 while (nports-- > 0) { in port_match6()
/dragonfly/sys/dev/drm/include/drm/
H A Ddrm_dp_mst_helper.h167 u8 nports; member
/dragonfly/sys/bus/u4b/controller/
H A Dxhci.h410 uint8_t nports; member
H A Dxhci.c2598 if (sc->sc_hw.devs[index].nports != 0 && in xhci_configure_device()
2618 is_hub = sc->sc_hw.devs[index].nports != 0 && in xhci_configure_device()
2632 sc->sc_hw.devs[index].nports); in xhci_configure_device()
4233 err = uhub_query_info(udev, &sc->sc_hw.devs[index].nports, in xhci_device_state_change()
4236 sc->sc_hw.devs[index].nports = 0; in xhci_device_state_change()
/dragonfly/contrib/wpa_supplicant/wpa_supplicant/
H A Dconfig.c3164 int *ports, *nports; in wpa_config_set_cred_req_conn_capab() local
3194 nports = os_realloc_array(ports, num_ports + 1, sizeof(int)); in wpa_config_set_cred_req_conn_capab()
3195 if (nports == NULL) { in wpa_config_set_cred_req_conn_capab()
3199 ports = nports; in wpa_config_set_cred_req_conn_capab()
3208 nports = os_realloc_array(ports, num_ports + 1, sizeof(int)); in wpa_config_set_cred_req_conn_capab()
3209 if (nports == NULL) { in wpa_config_set_cred_req_conn_capab()
3213 ports = nports; in wpa_config_set_cred_req_conn_capab()
/dragonfly/sys/dev/drm/
H A Ddrm_dp_mst_topology.c388 repmsg->u.link_addr.nports = raw->msg[idx] & 0xf; in drm_dp_sideband_parse_link_address()
392 for (i = 0; i < repmsg->u.link_addr.nports; i++) { in drm_dp_sideband_parse_link_address()
1617 DRM_DEBUG_KMS("link address reply: %d\n", txmsg->reply.u.link_addr.nports); in drm_dp_send_link_address()
1618 for (i = 0; i < txmsg->reply.u.link_addr.nports; i++) { in drm_dp_send_link_address()
1633 for (i = 0; i < txmsg->reply.u.link_addr.nports; i++) { in drm_dp_send_link_address()