Home
last modified time | relevance | path

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

/openbsd/sys/dev/usb/
H A Duhub.c127 int p, port, nports, powerdelay; in uhub_attach() local
163 nports = hd.ss.bNbrPorts; in uhub_attach()
165 if (!err && nports > 7) in uhub_attach()
169 nports = hd.hs.bNbrPorts; in uhub_attach()
172 if (!err && nports > 7) in uhub_attach()
194 sc->sc_dev.dv_xname, nports, nports != 1 ? "s" : "", in uhub_attach()
206 if (nports == 0) { in uhub_attach()
223 hub->nports = nports; in uhub_attach()
246 sc->sc_statuslen = (nports + 1 + 7) / 8; in uhub_attach()
295 for (p = 0; p < nports; p++) { in uhub_attach()
[all …]
H A Dusbdi_util.c87 uint8_t nports) in usbd_get_hub_descriptor() argument
90 uint16_t len = USB_HUB_DESCRIPTOR_SIZE + (nports + 1) / 8; in usbd_get_hub_descriptor()
102 uint8_t nports) in usbd_get_hub_ss_descriptor() argument
105 uint16_t len = USB_HUB_SS_DESCRIPTOR_SIZE + (nports + 1) / 8; in usbd_get_hub_ss_descriptor()
H A Dusbdivar.h101 int nports; member
H A Dusb_subr.c1077 for (p = 0; p < hub->hub->nports; p++) { in usbd_new_device()
1317 i < nitems(di->udi_ports) && i < dev->hub->nports; i++) { in usbd_fill_deviceinfo()
1322 di->udi_nports = dev->hub->nports; in usbd_fill_deviceinfo()
H A Dxhci.c1560 int nports = pipe->device->hub->nports; in xhci_context_setup() local
1563 sdev->slot_ctx->info_hi |= htole32(XHCI_SCTX_NPORTS(nports)); in xhci_context_setup()
/openbsd/usr.sbin/usbdevs/
H A Dusbdevs.c139 int port, nports; in dump_device() local
141 nports = MINIMUM(di.udi_nports, nitems(di.udi_ports)); in dump_device()
142 for (port = 0; port < nports; port++) { in dump_device()
/openbsd/sys/arch/arm64/dev/
H A Daplmca.c325 int nports = 0; in aplmca_alloc_cluster() local
337 if (dai[0] == sc->sc_phandle && nports < nitems(ports)) in aplmca_alloc_cluster()
338 ports[nports++] = dai[1]; in aplmca_alloc_cluster()
344 if (nports == 0) in aplmca_alloc_cluster()
346 for (i = 0; i < nports; i++) { in aplmca_alloc_cluster()
363 for (i = 1; i < nports; i++) in aplmca_alloc_cluster()
/openbsd/sys/dev/fdt/
H A Drkdrm.c371 int i, portslen, nports; in rkdrm_attachhook() local
395 nports = 0; in rkdrm_attachhook()
401 nports++; in rkdrm_attachhook()
405 if (nports == 0) { in rkdrm_attachhook()
/openbsd/sys/dev/ic/
H A Dsili.c1854 u_int32_t nports; in sili_pmp_identify() local
1860 sili_pmp_read(sp, 15, 2, &nports) || in sili_pmp_identify()
1868 nports &= 0x0F; in sili_pmp_identify()
1872 nports--; in sili_pmp_identify()
1877 SATA_PFMT_PM_REV, nports, features, SATA_PFMT_PM_FEA, enabled, in sili_pmp_identify()
1880 *ret_nports = nports; in sili_pmp_identify()
H A Dahci.c3085 u_int32_t nports; in ahci_pmp_identify() local
3094 ahci_pmp_read(ap, 15, 2, &nports) || in ahci_pmp_identify()
3104 nports &= 0x0F; in ahci_pmp_identify()
3108 nports--; in ahci_pmp_identify()
3113 SATA_PFMT_PM_REV, nports, features, SATA_PFMT_PM_FEA, enabled, in ahci_pmp_identify()
3116 *ret_nports = nports; in ahci_pmp_identify()
/openbsd/sys/dev/pci/drm/include/drm/display/
H A Ddrm_dp_mst_helper.h252 u8 nports; member
/openbsd/sys/dev/pci/drm/display/
H A Ddrm_dp_mst_topology.c808 repmsg->u.link_addr.nports = raw->msg[idx] & 0xf; in drm_dp_sideband_parse_link_address()
812 for (i = 0; i < repmsg->u.link_addr.nports; i++) { in drm_dp_sideband_parse_link_address()
2901 for (i = 0; i < reply->nports; i++) { in drm_dp_dump_link_address()
2950 drm_dbg_kms(mgr->dev, "link address reply: %d\n", reply->nports); in drm_dp_send_link_address()
2962 for (i = 0; i < reply->nports; i++) { in drm_dp_send_link_address()