| /netbsd-src/sys/arch/sgimips/ioc/ |
| H A D | oiocsc.c | 126 struct oiocsc_softc *osc = device_private(self); in oiocsc_attach() local 127 struct wd33c93_softc *sc = &osc->sc_wd33c93; in oiocsc_attach() 133 osc->sc_st = oa->oa_st; in oiocsc_attach() 134 osc->sc_sh = oa->oa_sh; in oiocsc_attach() 135 osc->sc_dmat = oa->oa_dmat; in oiocsc_attach() 149 if (bus_dmamap_create(osc->sc_dmat, in oiocsc_attach() 152 BUS_DMA_WAITOK, &osc->sc_dmamap) != 0) { in oiocsc_attach() 176 evcnt_attach_dynamic(&osc->sc_intrcnt, EVCNT_TYPE_INTR, NULL, in oiocsc_attach() 204 struct oiocsc_softc *osc = (void *)dev; in oiocsc_dmasetup() local 205 struct oioc_dma_softc *dsc = &osc->sc_oiocdma; in oiocsc_dmasetup() [all …]
|
| /netbsd-src/sys/dev/acpi/ |
| H A D | acpi_display.c | 694 struct acpidisp_out_softc *osc = device_private(self); in acpidisp_out_attach() local 702 osc->sc_dev = self; in acpidisp_out_attach() 703 osc->sc_node = ad; in acpidisp_out_attach() 704 osc->sc_log = NULL; in acpidisp_out_attach() 705 osc->sc_mtx = aa->aa_mtx; in acpidisp_out_attach() 706 osc->sc_caps = acpidisp_out_capabilities(ad); in acpidisp_out_attach() 707 osc->sc_brctl = NULL; in acpidisp_out_attach() 709 acpidisp_out_print_capabilities(self, osc->sc_caps); in acpidisp_out_attach() 711 osc->sc_brctl = acpidisp_init_brctl(osc); in acpidisp_out_attach() 750 struct acpidisp_out_softc *osc = device_private(self); acpidisp_out_detach() local 788 struct acpidisp_out_softc *osc = device_private(self); acpidisp_out_suspend() local 801 struct acpidisp_out_softc *osc = device_private(self); acpidisp_out_resume() local 948 struct acpidisp_out_softc *osc = device_private(context); acpidisp_out_notify_handler() local 997 struct acpidisp_out_softc *osc, *last_osc; acpidisp_vga_cycle_output_device_callback() local 1087 struct acpidisp_out_softc *osc = arg; acpidisp_out_increase_brightness_callback() local 1119 struct acpidisp_out_softc *osc = arg; acpidisp_out_decrease_brightness_callback() local 1151 struct acpidisp_out_softc *osc = arg; acpidisp_out_cycle_brightness_callback() local 1180 struct acpidisp_out_softc *osc = arg; acpidisp_out_zero_brightness_callback() local 1243 acpidisp_out_sysctl_setup(struct acpidisp_out_softc * osc) global() argument 1380 struct acpidisp_out_softc *osc; global() local 1406 struct acpidisp_out_softc *osc; global() local 1437 struct acpidisp_out_softc *osc; global() local 1578 struct acpidisp_out_softc *osc; global() local 1658 acpidisp_init_brctl(const struct acpidisp_out_softc * osc) global() argument 1785 acpidisp_get_status(const struct acpidisp_out_softc * osc,uint32_t * valuep) global() argument 1813 acpidisp_get_state(const struct acpidisp_out_softc * osc,uint32_t * valuep) global() argument 1841 acpidisp_set_state(const struct acpidisp_out_softc * osc,uint32_t value) global() argument 1865 acpidisp_get_brightness(const struct acpidisp_out_softc * osc,uint8_t * valuep) global() argument 1903 acpidisp_quirk_get_brightness(const struct acpidisp_out_softc * osc) global() argument 1952 acpidisp_set_brightness(const struct acpidisp_out_softc * osc,uint8_t value) global() argument [all...] |
| /netbsd-src/sys/arch/evbarm/g42xxeb/ |
| H A D | g42xxeb_lcd.c | 264 struct obio_softc *osc = in lcd_ioctl() local 270 reg = bus_space_read_2(osc->sc_iot, osc->sc_obioreg_ioh, in lcd_ioctl() 276 bus_space_write_2(osc->sc_iot, osc->sc_obioreg_ioh, in lcd_ioctl() 278 bus_space_write_1(osc->sc_iot, osc->sc_obioreg_ioh, in lcd_ioctl() 292 struct obio_softc *osc = in lcd_show_screen() local 300 reg = bus_space_read_2(osc->sc_iot, osc->sc_obioreg_ioh, G42XXEB_LCDCTL); in lcd_show_screen() 301 bus_space_write_2(osc->sc_iot, osc->sc_obioreg_ioh, G42XXEB_LCDCTL, in lcd_show_screen() 316 struct obio_softc *osc = in lcdopen() local 322 reg = bus_space_read_2(osc->sc_iot, osc->sc_obioreg_ioh, G42XXEB_LCDCTL); in lcdopen() 323 bus_space_write_2(osc->sc_iot, osc->sc_obioreg_ioh, G42XXEB_LCDCTL, in lcdopen()
|
| H A D | if_ne_obio.c | 230 struct obio_softc *osc = 233 device_private(device_parent(osc->sc_dev)); 238 bus_space_read_2(osc->sc_iot, osc->sc_obioreg_ioh, G4250EBX_INTSTS1), 239 bus_space_read_2(osc->sc_iot, osc->sc_obioreg_ioh, G4250EBX_INTSTS2), 240 bus_space_read_2(osc->sc_iot, osc->sc_obioreg_ioh, G4250EBX_INTMASK), 241 osc->sc_intr_pending, 242 osc->sc_intr_mask );
|
| H A D | g42xxeb_kmkbd.c | 198 struct obio_softc *osc = device_private(parent); in kmkbd_attach() local 220 sc->ih = obio_intr_establish(osc, G42XXEB_INT_KEY, IPL_TTY, in kmkbd_attach() 376 struct obio_softc *osc = device_private(device_parent(sc->dev)); in kmkbd_read_matrix() local 377 bus_space_tag_t iot = osc->sc_iot; in kmkbd_read_matrix() 378 bus_space_handle_t ioh = osc->sc_obioreg_ioh; in kmkbd_read_matrix() 480 struct obio_softc *osc = device_private(device_parent(sc->dev)); in kmkbd_intr() local 484 obio_intr_mask(osc, sc->ih); in kmkbd_intr() 546 struct obio_softc *osc = device_private(device_parent(sc->dev)); in kmkbd_new_state() local 552 obio_intr_mask(osc,sc->ih); in kmkbd_new_state() 557 obio_intr_mask(osc, sc->ih); in kmkbd_new_state() [all …]
|
| H A D | g42xxeb_mci.c | 124 struct obio_softc *osc = device_private(parent); in pxamci_attach() local 138 sc->sc_detect_ih = obio_intr_establish(osc, G42XXEB_INT_MMCSD, in pxamci_attach() 179 sc->sc_obio_ioh = osc->sc_obioreg_ioh; in pxamci_attach() 184 obio_intr_disestablish(osc, G42XXEB_INT_MMCSD, sc->sc_detect_ih); in pxamci_attach()
|
| /netbsd-src/sys/dev/ofisa/ |
| H A D | pckbc_ofisa.c | 89 struct pckbc_ofisa_softc *osc = device_private(self); in pckbc_ofisa_attach() local 90 struct pckbc_softc *sc = &osc->sc_pckbc; in pckbc_ofisa_attach() 101 osc->sc_ic = aa->ic; in pckbc_ofisa_attach() 108 ofisa_intr_get(phandle, &osc->sc_intr[dce->value], 1); in pckbc_ofisa_attach() 149 struct pckbc_ofisa_softc *osc = (void *) sc; in pckbc_ofisa_intr_establish() local 152 rv = isa_intr_establish(osc->sc_ic, osc->sc_intr[slot].irq, osc->sc_intr[slot].share, in pckbc_ofisa_intr_establish() 160 osc->sc_intr[slot].irq, pckbc_slot_names[slot]); in pckbc_ofisa_intr_establish()
|
| H A D | joy_ofisa.c | 77 struct joy_ofisa_softc *osc = device_private(self); in joy_ofisa_attach() local 78 struct joy_softc *sc = &osc->sc_joy; in joy_ofisa_attach() 117 mutex_init(&osc->sc_lock, MUTEX_DEFAULT, IPL_NONE); in joy_ofisa_attach() 118 sc->sc_lock = &osc->sc_lock; in joy_ofisa_attach()
|
| /netbsd-src/sys/arch/evbarm/lubbock/ |
| H A D | lubbock_lcd.c | 239 struct obio_softc *osc = device_private(device_parent(sc->dev)); in lcd_ioctl() local 244 reg = bus_space_read_2( osc->sc_iot, osc->sc_obioreg_ioh, in lcd_ioctl() 250 bus_space_write_2( osc->sc_iot, osc->sc_obioreg_ioh, in lcd_ioctl() 263 struct obio_softc *osc = device_private(device_parent(sc->dev)); in lcd_show_screen() local 268 bus_space_write_4( osc->sc_iot, osc->sc_obioreg_ioh, LUBBOCK_MISCWR, in lcd_show_screen() 270 bus_space_read_4( osc->sc_iot, osc->sc_obioreg_ioh, LUBBOCK_MISCWR ) ); in lcd_show_screen()
|
| /netbsd-src/sys/dev/ic/ |
| H A D | athrate-onoe.c | 327 struct onoe_softc *osc = (struct onoe_softc *) sc->sc_rc; in ath_rate_newstate() local 332 callout_stop(&osc->timer); in ath_rate_newstate() 366 callout_reset(&osc->timer, (interval * hz) / 1000, in ath_rate_newstate() 447 struct onoe_softc *osc = (struct onoe_softc *) sc->sc_rc; in ath_ratectl() local 462 callout_reset(&osc->timer, (interval * hz) / 1000, in ath_ratectl() 489 struct onoe_softc *osc; in ath_rate_attach() local 491 osc = malloc(sizeof(struct onoe_softc), M_DEVBUF, M_WAITOK|M_ZERO); in ath_rate_attach() 492 osc->arc.arc_space = sizeof(struct onoe_node); in ath_rate_attach() 493 callout_init(&osc->timer, 0); in ath_rate_attach() 496 return &osc->arc; in ath_rate_attach() [all …]
|
| H A D | athrate-sample.c | 772 ath_rate_sysctlattach(struct ath_softc *sc, struct sample_softc *osc) in ath_rate_sysctlattach() argument 782 if ((rc = SYSCTL_PFX_INT(osc->ath_, CTLFLAG_READWRITE, smoothing_rate, in ath_rate_sysctlattach() 787 if ((rc = SYSCTL_PFX_INT(osc->ath_, CTLFLAG_READWRITE, sample_rate, in ath_rate_sysctlattach() 799 struct sample_softc *osc; in ath_rate_attach() local 802 osc = malloc(sizeof(struct sample_softc), M_DEVBUF, M_WAITOK|M_ZERO); in ath_rate_attach() 803 osc->arc.arc_space = sizeof(struct sample_node); in ath_rate_attach() 804 osc->ath_smoothing_rate = 95; /* ewma percentage (out of 100) */ in ath_rate_attach() 805 osc->ath_sample_rate = 10; /* send a different bit-rate 1/X packets */ in ath_rate_attach() 806 ath_rate_sysctlattach(sc, osc); in ath_rate_attach() 807 return &osc->arc; in ath_rate_attach() [all …]
|
| /netbsd-src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/broadcom/stingray/ |
| H A D | stingray-clock.dtsi | 35 osc: oscillator { label 44 clocks = <&osc>; 54 clocks = <&osc>; 66 clocks = <&osc>; 78 clocks = <&osc>; 88 clocks = <&osc>; 100 clocks = <&osc>; 110 clocks = <&osc>; 121 clocks = <&osc>;
|
| /netbsd-src/sys/arch/evbarm/adi_brh/ |
| H A D | com_obio.c | 75 struct com_obio_softc *osc = device_private(self); in com_obio_attach() local 76 struct com_softc *sc = &osc->sc_com; in com_obio_attach() 93 osc->sc_ih = becc_intr_establish(oba->oba_irq, IPL_SERIAL, in com_obio_attach() 95 if (osc->sc_ih == NULL) in com_obio_attach()
|
| /netbsd-src/sys/arch/evbarm/iyonix/ |
| H A D | com_obio.c | 72 struct com_obio_softc *osc = device_private(self); in com_obio_attach() local 73 struct com_softc *sc = &osc->sc_com; in com_obio_attach() 90 osc->sc_ih = i80321_intr_establish(oba->oba_irq, IPL_SERIAL, in com_obio_attach() 92 if (osc->sc_ih == NULL) in com_obio_attach()
|
| /netbsd-src/sys/arch/iyonix/iyonix/ |
| H A D | com_obio.c | 72 struct com_obio_softc *osc = device_private(self); in com_obio_attach() local 73 struct com_softc *sc = &osc->sc_com; in com_obio_attach() 90 osc->sc_ih = i80321_intr_establish(oba->oba_irq, IPL_SERIAL, in com_obio_attach() 92 if (osc->sc_ih == NULL) in com_obio_attach()
|
| /netbsd-src/sys/arch/evbarm/iq80321/ |
| H A D | com_obio.c | 73 struct com_obio_softc *osc = device_private(self); in com_obio_attach() local 74 struct com_softc *sc = &osc->sc_com; in com_obio_attach() 91 osc->sc_ih = i80321_intr_establish(oba->oba_irq, IPL_SERIAL, in com_obio_attach() 93 if (osc->sc_ih == NULL) in com_obio_attach()
|
| /netbsd-src/sys/arch/evbarm/iq80310/ |
| H A D | com_obio.c | 72 struct com_obio_softc *osc = device_private(self); in com_obio_attach() local 73 struct com_softc *sc = &osc->sc_com; in com_obio_attach() 89 osc->sc_ih = iq80310_intr_establish(oba->oba_irq, IPL_SERIAL, in com_obio_attach() 91 if (osc->sc_ih == NULL) in com_obio_attach()
|
| /netbsd-src/sys/arch/evbarm/npwr_fc/ |
| H A D | com_obio.c | 73 struct com_obio_softc *osc = device_private(self); in com_obio_attach() local 74 struct com_softc *sc = &osc->sc_com; in com_obio_attach() 91 osc->sc_ih = i80321_intr_establish(oba->oba_irq, IPL_SERIAL, in com_obio_attach() 93 if (osc->sc_ih == NULL) in com_obio_attach()
|
| /netbsd-src/sys/arch/evbarm/hdl_g/ |
| H A D | com_obio.c | 73 struct com_obio_softc *osc = device_private(self); in com_obio_attach() local 74 struct com_softc *sc = &osc->sc_com; in com_obio_attach() 91 osc->sc_ih = i80321_intr_establish(oba->oba_irq, IPL_SERIAL, in com_obio_attach() 93 if (osc->sc_ih == NULL) in com_obio_attach()
|
| /netbsd-src/sys/arch/sparc/dev/ |
| H A D | com_obio.c | 163 struct com_obio_softc *osc = device_private(self); in com_obio_attach() local 164 struct com_softc *sc = &osc->osc_com; in com_obio_attach() 174 osc->osc_tadpole = 1; in com_obio_attach() 202 if (osc->osc_tadpole) { in com_obio_attach() 219 evcnt_attach_dynamic(&osc->osc_intrcnt, EVCNT_TYPE_INTR, NULL, in com_obio_attach()
|
| /netbsd-src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/ |
| H A D | bcm-cygnus-clock.dtsi | 38 osc: oscillator { label 48 clocks = <&osc>; 74 clocks = <&osc>; 101 clocks = <&osc>; 110 clocks = <&osc>; 121 clocks = <&osc>; 129 clocks = <&osc>;
|
| H A D | vexpress-v2p-ca5s.dts | 149 compatible = "arm,vexpress-osc"; 158 compatible = "arm,vexpress-osc"; 167 compatible = "arm,vexpress-osc"; 176 compatible = "arm,vexpress-osc"; 185 compatible = "arm,vexpress-osc"; 194 compatible = "arm,vexpress-osc";
|
| H A D | vexpress-v2p-ca15-tc1.dts | 147 compatible = "arm,vexpress-osc"; 156 compatible = "arm,vexpress-osc"; 165 compatible = "arm,vexpress-osc"; 174 compatible = "arm,vexpress-osc"; 183 compatible = "arm,vexpress-osc"; 192 compatible = "arm,vexpress-osc";
|
| /netbsd-src/sys/arch/mips/cavium/dev/ |
| H A D | octeon_xhci.c | 84 struct octxhci_softc *osc = device_private(self); in octxhci_attach() local 85 struct xhci_softc *sc = &osc->sc_xhci; in octxhci_attach() 97 osc->sc_iot = faa->faa_bst; in octxhci_attach() 103 if (bus_space_map(osc->sc_iot, addr, size, 0, &osc->sc_ioh) != 0) { in octxhci_attach() 107 osc->sc_power_gpio = fdtbus_gpio_acquire(phandle, "power", in octxhci_attach() 109 osc->sc_unit = (addr >> 24) & 0x1; in octxhci_attach() 154 octxhci_uctl_init(osc, clock_freq, clock_sel); in octxhci_attach()
|
| /netbsd-src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/broadcom/northstar2/ |
| H A D | ns2-clock.dtsi | 35 osc: oscillator { label 47 clocks = <&osc>; 60 clocks = <&osc>; 74 clocks = <&osc>; 102 clocks = <&osc>;
|