Home
last modified time | relevance | path

Searched refs:cd_devs (Results 1 – 25 of 106) sorted by relevance

12345

/openbsd/sys/kern/
H A Dsubr_autoconf.c376 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 Dagp_intel_gtt.c161 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 Djoy.c66 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 Dmacobio.c242 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 Dvcons.c183 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 Dvcctty.c315 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 Dpcons.c212 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 Dxp.c160 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 Dsiotty.c309 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 Dapm.c156 !(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 Dapm.c157 !(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 Dagtimer.c271 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 Dcbus.c160 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 Dpdc.c199 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 Domgpio.c452 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 Ddmtimer.c231 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 Dbktr_os.c345 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 Dapm.c148 !(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 Dradio.c87 (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 Dvideo.c144 (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 Dacpivout.c279 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 Dacpithinkpad.c750 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 Dacpicbkbd.c120 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 Dmagma.c926 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 Dscif.c474 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()

12345