Home
last modified time | relevance | path

Searched refs:sc_nports (Results 1 – 10 of 10) sorted by relevance

/netbsd-src/sys/arch/mips/cavium/dev/
H A Docteon_gmx.c221 sc->sc_ports = kmem_zalloc(sizeof(*sc->sc_ports) * sc->sc_nports, in octgmx_attach()
224 for (i = 0; i < sc->sc_nports; i++) { in octgmx_attach()
297 sc->sc_nports = 0; in octgmx_init()
312 sc->sc_nports = 3; in octgmx_init()
318 sc->sc_nports = 2; in octgmx_init()
335 sc->sc_nports = 3; in octgmx_init()
341 sc->sc_nports = 2; in octgmx_init()
348 if (sc->sc_nports == 3) in octgmx_init()
349 sc->sc_nports = 2; in octgmx_init()
355 sc->sc_nports = 4; in octgmx_init()
[all …]
H A Docteon_gmxvar.h82 int sc_nports; member
/netbsd-src/sys/net/agr/
H A Dif_agr.c364 if (sc->sc_nports == 0)
366 hash %= sc->sc_nports;
471 apl.apl_nports = sc->sc_nports; in agr_getportlist()
573 if (sc->sc_nports == 0) { in agr_addport()
629 sc->sc_nports++; in agr_addport()
669 if (sc->sc_nports == 0) { in agr_addport()
700 KASSERT(sc->sc_nports > 0); in agr_remport()
730 if (sc->sc_nports == 0) { in agr_remport()
792 sc->sc_nports--; in agrport_cleanup()
920 if (sc->sc_nports == 0) { in agr_pause()
[all …]
H A Dif_agrvar_impl.h119 int sc_nports; member
/netbsd-src/sys/dev/sbus/
H A Dspifvar.h57 int sc_nports; /* number of serial ports */ member
62 int sc_nports; /* number of parallel ports */ member
H A Dspif.c327 ssc->sc_nports = port; in stty_attach()
347 if (port >= sc->sc_nports) in stty_open()
903 for (i = 0; i < stc->sc_nports; i++) { in spif_softintr()
1009 psc->sc_nports = port; in sbpp_attach()
/netbsd-src/sys/dev/usb/
H A Dvhci.c260 size_t sc_nports; member
519 if (index < 1 || index >= sc->sc_nports) { in vhci_roothub_ctrl()
536 if (index < 1 || index >= sc->sc_nports) { in vhci_roothub_ctrl()
555 hubd.bNbrPorts = sc->sc_nports - 1; in vhci_roothub_ctrl()
570 if (index < 1 || index >= sc->sc_nports) { in vhci_roothub_ctrl()
936 if (args->port == 0 || args->port >= sc->sc_nports) in vhci_set_port()
1280 sc->sc_nports = VHCI_NPORTS; in vhci_attach()
1281 for (i = 0; i < sc->sc_nports; i++) { in vhci_attach()
/netbsd-src/sys/net/lagg/
H A Dif_laggproto.h165 size_t sc_nports; member
H A Dif_lagg.c668 nports = sc->sc_nports; in lagg_ioctl()
2253 if (sc->sc_nports > LAGG_MAX_PORTS) in lagg_port_setup()
2350 sc->sc_nports++; in lagg_port_setup()
2444 sc->sc_nports--; in lagg_port_teardown()
/netbsd-src/sys/dev/pci/
H A Dradeonfbvar.h266 int sc_nports; member