/openbsd/sys/kern/ |
H A D | subr_autoconf.c | 376 KASSERT(cd->cd_devs != NULL); in config_attach() 378 KASSERT(cd->cd_devs[dev->dv_unit] == NULL); in config_attach() 379 cd->cd_devs[dev->dv_unit] = dev; in config_attach() 459 cd->cd_devs[dev->dv_unit] == NULL) in config_make_softc() 493 cd->cd_devs = nsp; in config_make_softc() 495 if (cd->cd_devs[dev->dv_unit]) in config_make_softc() 621 cd->cd_devs[dev->dv_unit] = NULL; in config_detach() 630 if (cd->cd_devs[i] != NULL) in config_detach() 634 cd->cd_devs = NULL; in config_detach() 968 return (mainbus_cd.cd_devs[0]); in device_mainbus() [all …]
|
/openbsd/sys/dev/pci/drm/i915/gt/ |
H A D | agp_intel_gtt.c | 161 struct inteldrm_softc *dev_priv = (void *)inteldrm_cd.cd_devs[0]; in intel_gmch_enable_gtt() 178 struct inteldrm_softc *dev_priv = (void *)inteldrm_cd.cd_devs[0]; in intel_gmch_gtt_get() 189 struct inteldrm_softc *dev_priv = (void *)inteldrm_cd.cd_devs[0]; in intel_gmch_gtt_flush() 226 struct inteldrm_softc *dev_priv = (void *)inteldrm_cd.cd_devs[0]; in intel_gmch_gtt_insert_sg_entries() 244 struct inteldrm_softc *dev_priv = (void *)inteldrm_cd.cd_devs[0]; in intel_gmch_gtt_insert_page() 254 struct inteldrm_softc *dev_priv = (void *)inteldrm_cd.cd_devs[0]; in intel_gmch_gtt_clear_range()
|
/openbsd/sys/arch/i386/isa/ |
H A D | joy.c | 66 sc = joy_cd.cd_devs[unit]; in joyopen() 83 struct joy_softc *sc = joy_cd.cd_devs[unit]; in joyclose() 93 struct joy_softc *sc = joy_cd.cd_devs[unit]; in joyread() 132 struct joy_softc *sc = joy_cd.cd_devs[unit]; in joyioctl()
|
/openbsd/sys/arch/macppc/pci/ |
H A D | macobio.c | 242 struct macobio_softc *sc = macobio_cd.cd_devs[0]; in macobio_enable() 252 struct macobio_softc *sc = macobio_cd.cd_devs[0]; in macobio_disable() 263 struct macobio_softc *sc = macobio_cd.cd_devs[0]; in macobio_read() 273 struct macobio_softc *sc = macobio_cd.cd_devs[0]; in macobio_write() 284 struct macobio_softc *sc = macobio_cd.cd_devs[0]; in macobio_modem_power()
|
/openbsd/sys/arch/sparc64/dev/ |
H A D | vcons.c | 183 sc = vcons_cd.cd_devs[unit]; in vconsopen() 223 sc = vcons_cd.cd_devs[unit]; in vconsclose() 244 sc = vcons_cd.cd_devs[unit]; in vconsread() 261 sc = vcons_cd.cd_devs[unit]; in vconswrite() 279 sc = vcons_cd.cd_devs[unit]; in vconsioctl() 333 sc = vcons_cd.cd_devs[unit]; in vconstty()
|
H A D | vcctty.c | 315 sc = vcctty_cd.cd_devs[unit]; in vccttyopen() 352 sc = vcctty_cd.cd_devs[unit]; in vccttyclose() 371 sc = vcctty_cd.cd_devs[unit]; in vccttyread() 388 sc = vcctty_cd.cd_devs[unit]; in vccttywrite() 406 sc = vcctty_cd.cd_devs[unit]; in vccttyioctl() 438 struct vcctty_softc *sc = vcctty_cd.cd_devs[minor(tp->t_dev)]; in vccttystart() 479 sc = vcctty_cd.cd_devs[unit]; in vccttytty() 498 struct vcctty_softc *sc = vcctty_cd.cd_devs[minor(tp->t_dev)]; in vccttyhwiflow()
|
H A D | pcons.c | 212 sc = pcons_cd.cd_devs[unit]; in pconsopen() 250 struct pconssoftc *sc = pcons_cd.cd_devs[minor(dev)]; in pconsclose() 263 struct pconssoftc *sc = pcons_cd.cd_devs[minor(dev)]; in pconsread() 272 struct pconssoftc *sc = pcons_cd.cd_devs[minor(dev)]; in pconswrite() 281 struct pconssoftc *sc = pcons_cd.cd_devs[minor(dev)]; in pconsioctl() 295 struct pconssoftc *sc = pcons_cd.cd_devs[minor(dev)]; in pconstty() 380 if (pcons_cd.cd_devs) in pcons_cnpollc() 381 sc = pcons_cd.cd_devs[minor(dev)]; in pcons_cnpollc()
|
/openbsd/sys/arch/luna88k/dev/ |
H A D | xp.c | 160 sc = xp_cd.cd_devs[unit]; in xpopen() 182 sc = xp_cd.cd_devs[unit]; in xpclose() 202 sc = xp_cd.cd_devs[unit]; in xpioctl() 246 sc = xp_cd.cd_devs[unit]; in xpmmap()
|
H A D | siotty.c | 309 struct siotty_softc *sc = siotty_cd.cd_devs[minor(tp->t_dev)]; in siostart() 356 struct siotty_softc *sc = siotty_cd.cd_devs[minor(tp->t_dev)]; in sioparam() 465 if ((sc = siotty_cd.cd_devs[minor(dev)]) == NULL) in sioopen() 511 struct siotty_softc *sc = siotty_cd.cd_devs[minor(dev)]; in sioclose() 534 struct siotty_softc *sc = siotty_cd.cd_devs[minor(dev)]; in sioread() 543 struct siotty_softc *sc = siotty_cd.cd_devs[minor(dev)]; in siowrite() 552 struct siotty_softc *sc = siotty_cd.cd_devs[minor(dev)]; in sioioctl() 609 struct siotty_softc *sc = siotty_cd.cd_devs[minor(dev)]; in siotty()
|
/openbsd/sys/arch/loongson/dev/ |
H A D | apm.c | 156 !(sc = apm_cd.cd_devs[APMUNIT(dev)])) in apmopen() 195 !(sc = apm_cd.cd_devs[APMUNIT(dev)])) in apmclose() 221 !(sc = apm_cd.cd_devs[APMUNIT(dev)])) in apmioctl() 315 !(sc = apm_cd.cd_devs[APMUNIT(dev)])) in apmkqfilter() 355 if (apm_cd.cd_ndevs == 0 || (sc = apm_cd.cd_devs[0]) == NULL) in apm_record_event()
|
/openbsd/sys/arch/arm64/dev/ |
H A D | apm.c | 157 !(sc = apm_cd.cd_devs[APMUNIT(dev)])) in apmopen() 196 !(sc = apm_cd.cd_devs[APMUNIT(dev)])) in apmclose() 222 !(sc = apm_cd.cd_devs[APMUNIT(dev)])) in apmioctl() 307 !(sc = apm_cd.cd_devs[APMUNIT(dev)])) in apmkqfilter() 343 struct apm_softc *sc = apm_cd.cd_devs[0]; in apm_record_event()
|
H A D | agtimer.c | 271 struct agtimer_softc *sc = agtimer_cd.cd_devs[0]; in agtimer_set_clockrate() 292 struct agtimer_softc *sc = agtimer_cd.cd_devs[0]; in agtimer_cpu_initclocks() 326 struct agtimer_softc *sc = agtimer_cd.cd_devs[0]; in agtimer_startclock()
|
/openbsd/sys/arch/luna88k/cbus/ |
H A D | cbus.c | 160 sc = cbus_cd.cd_devs[0]; in cbus_isrlink() 203 sc = cbus_cd.cd_devs[0]; in cbus_isrunlink() 249 sc = cbus_cd.cd_devs[0]; in cbus_isrdispatch() 292 sc = cbus_cd.cd_devs[0]; in cbus_intr_registered()
|
/openbsd/sys/arch/hppa/dev/ |
H A D | pdc.c | 199 if (unit >= pdc_cd.cd_ndevs || (sc = pdc_cd.cd_devs[unit]) == NULL) 247 if (unit >= pdc_cd.cd_ndevs || (sc = pdc_cd.cd_devs[unit]) == NULL) 267 if (unit >= pdc_cd.cd_ndevs || (sc = pdc_cd.cd_devs[unit]) == NULL) 284 if (unit >= pdc_cd.cd_ndevs || (sc = pdc_cd.cd_devs[unit]) == NULL) 304 if (unit >= pdc_cd.cd_ndevs || (sc = pdc_cd.cd_devs[unit]) == NULL) 383 if (unit >= pdc_cd.cd_ndevs || (sc = pdc_cd.cd_devs[unit]) == NULL)
|
/openbsd/sys/arch/armv7/omap/ |
H A D | omgpio.c | 452 struct omgpio_softc *sc = omgpio_cd.cd_devs[GPIO_PIN_TO_INST(gpio)]; in omgpio_get_bit() 460 struct omgpio_softc *sc = omgpio_cd.cd_devs[GPIO_PIN_TO_INST(gpio)]; in omgpio_set_bit() 468 struct omgpio_softc *sc = omgpio_cd.cd_devs[GPIO_PIN_TO_INST(gpio)]; in omgpio_clear_bit() 476 struct omgpio_softc *sc = omgpio_cd.cd_devs[GPIO_PIN_TO_INST(gpio)]; in omgpio_set_dir() 556 struct omgpio_softc *sc = omgpio_cd.cd_devs[GPIO_PIN_TO_INST(gpio)]; 564 struct omgpio_softc *sc = omgpio_cd.cd_devs[GPIO_PIN_TO_INST(gpio)]; 572 struct omgpio_softc *sc = omgpio_cd.cd_devs[GPIO_PIN_TO_INST(gpio)]; 581 struct omgpio_softc *sc = omgpio_cd.cd_devs[GPIO_PIN_TO_INST(gpio)]; 662 sc = omgpio_cd.cd_devs[GPIO_PIN_TO_INST(gpio)]; 698 struct omgpio_softc *sc = omgpio_cd.cd_devs[GPIO_PIN_TO_INST(ih->ih_gpio)];
|
H A D | dmtimer.c | 231 struct dmtimer_softc *sc = dmtimer_cd.cd_devs[1]; in dmtimer_cpu_initclocks() 264 struct dmtimer_softc *sc = dmtimer_cd.cd_devs[1]; in dmtimer_wait() 275 struct dmtimer_softc *sc = dmtimer_cd.cd_devs[1]; in dmtimer_reset_tisr() 285 struct dmtimer_softc *sc = dmtimer_cd.cd_devs[1]; in dmtimer_delay()
|
/openbsd/sys/dev/pci/bktr/ |
H A D | bktr_os.c | 345 if ((unit >= bktr_cd.cd_ndevs) || (bktr_cd.cd_devs[unit] == NULL)) in bktr_open() 348 bktr = bktr_cd.cd_devs[unit]; in bktr_open() 377 bktr = bktr_cd.cd_devs[unit]; in bktr_close() 402 bktr = bktr_cd.cd_devs[unit]; in bktr_read() 436 bktr = bktr_cd.cd_devs[unit]; in bktr_ioctl() 465 bktr = bktr_cd.cd_devs[unit]; in bktr_mmap()
|
/openbsd/sys/arch/macppc/dev/ |
H A D | apm.c | 148 !(sc = apm_cd.cd_devs[APMUNIT(dev)])) in apmopen() 187 !(sc = apm_cd.cd_devs[APMUNIT(dev)])) in apmclose() 214 !(sc = apm_cd.cd_devs[APMUNIT(dev)])) in apmioctl() 321 !(sc = apm_cd.cd_devs[APMUNIT(dev)])) in apmkqfilter()
|
/openbsd/sys/dev/ |
H A D | radio.c | 87 (sc = radio_cd.cd_devs[unit]) == NULL || in radioopen() 102 sc = radio_cd.cd_devs[RADIOUNIT(dev)]; in radioclose() 118 (sc = radio_cd.cd_devs[unit]) == NULL || sc->hw_if == NULL) in radioioctl()
|
H A D | video.c | 144 (sc = video_cd.cd_devs[unit]) == NULL || in videoopen() 178 sc = video_cd.cd_devs[VIDEOUNIT(dev)]; in videoclose() 197 (sc = video_cd.cd_devs[unit]) == NULL) in videoread() 260 (sc = video_cd.cd_devs[unit]) == NULL || sc->hw_if == NULL) in videoioctl() 425 (sc = video_cd.cd_devs[unit]) == NULL) in videommap() 512 (sc = video_cd.cd_devs[unit]) == NULL) in videokqfilter()
|
/openbsd/sys/dev/acpi/ |
H A D | acpivout.c | 279 if (acpivout_cd.cd_devs[i] == NULL) in acpivout_get_param() 281 sc = (struct acpivout_softc *)acpivout_cd.cd_devs[i]; in acpivout_get_param() 307 if (acpivout_cd.cd_devs[i] == NULL) in acpivout_set_param() 309 sc = (struct acpivout_softc *)acpivout_cd.cd_devs[i]; in acpivout_set_param()
|
H A D | acpithinkpad.c | 750 struct acpithinkpad_softc *sc = acpithinkpad_cd.cd_devs[0]; in thinkpad_get_kbd_backlight() 767 struct acpithinkpad_softc *sc = acpithinkpad_cd.cd_devs[0]; in thinkpad_set_kbd_backlight() 825 struct acpithinkpad_softc *sc = acpithinkpad_cd.cd_devs[0]; in thinkpad_get_param() 844 struct acpithinkpad_softc *sc = acpithinkpad_cd.cd_devs[0]; in thinkpad_set_param() 907 struct acpithinkpad_softc *sc = acpithinkpad_cd.cd_devs[0]; in thinkpad_battery_inhibit_charge() 927 struct acpithinkpad_softc *sc = acpithinkpad_cd.cd_devs[0]; in thinkpad_battery_force_discharge() 985 struct acpithinkpad_softc *sc = acpithinkpad_cd.cd_devs[0]; in thinkpad_battery_setchargestart() 1009 struct acpithinkpad_softc *sc = acpithinkpad_cd.cd_devs[0]; in thinkpad_battery_setchargestop()
|
H A D | acpicbkbd.c | 120 struct acpicbkbd_softc *sc = acpicbkbd_cd.cd_devs[0]; in acpicbkbd_get_backlight() 134 struct acpicbkbd_softc *sc = acpicbkbd_cd.cd_devs[0]; in acpicbkbd_set_backlight()
|
/openbsd/sys/dev/sbus/ |
H A D | magma.c | 926 struct mtty_softc *ms = mtty_cd.cd_devs[MAGMA_CARD(dev)]; in mttyclose() 963 struct mtty_softc *ms = mtty_cd.cd_devs[MAGMA_CARD(dev)]; in mttyread() 976 struct mtty_softc *ms = mtty_cd.cd_devs[MAGMA_CARD(dev)]; in mttywrite() 989 struct mtty_softc *ms = mtty_cd.cd_devs[MAGMA_CARD(dev)]; in mttytty() 1001 struct mtty_softc *ms = mtty_cd.cd_devs[MAGMA_CARD(dev)]; in mttyioctl() 1077 struct mtty_softc *ms = mtty_cd.cd_devs[MAGMA_CARD(tp->t_dev)]; in mttystop() 1104 struct mtty_softc *ms = mtty_cd.cd_devs[MAGMA_CARD(tp->t_dev)]; in mtty_start() 1217 struct mtty_softc *ms = mtty_cd.cd_devs[MAGMA_CARD(tp->t_dev)]; in mtty_param() 1439 struct mbpp_softc *ms = mbpp_cd.cd_devs[MAGMA_CARD(dev)]; in mbppclose() 1470 struct mbpp_softc *ms = mbpp_cd.cd_devs[MAGMA_CARD(dev)]; in mbppioctl() [all …]
|
/openbsd/sys/arch/sh/dev/ |
H A D | scif.c | 474 struct scif_softc *sc = scif_cd.cd_devs[SCIFUNIT(tp->t_dev)]; in scifstart() 537 struct scif_softc *sc = scif_cd.cd_devs[SCIFUNIT(tp->t_dev)]; in scifparam() 680 sc = scif_cd.cd_devs[unit]; in scifopen() 773 struct scif_softc *sc = scif_cd.cd_devs[SCIFUNIT(dev)]; in scifclose() 789 struct scif_softc *sc = scif_cd.cd_devs[SCIFUNIT(dev)]; in scifread() 798 struct scif_softc *sc = scif_cd.cd_devs[SCIFUNIT(dev)]; in scifwrite() 807 struct scif_softc *sc = scif_cd.cd_devs[SCIFUNIT(dev)]; in sciftty() 816 struct scif_softc *sc = scif_cd.cd_devs[SCIFUNIT(dev)]; in scifioctl() 898 struct scif_softc *sc = scif_cd.cd_devs[SCIFUNIT(tp->t_dev)]; in scifstop()
|