| /netbsd-src/sys/dev/scsipi/ |
| H A D | ses.c | 370 struct ses_softc *ssc = device_lookup_private(&ses_cd, SESUNIT(dev)); in sesioctl() local 380 SC_DEBUG(ssc->sc_periph, SCSIPI_DB2, ("sesioctl 0x%lx ", cmd)); in sesioctl() 385 if ((ssc->ses_flags & SES_FLAG_INITIALIZED) == 0) { in sesioctl() 411 error = copyout(&ssc->ses_nobjects, addr, in sesioctl() 412 sizeof (ssc->ses_nobjects)); in sesioctl() 419 for (uobj = addr, i = 0; i != ssc->ses_nobjects; i++, uobj++) { in sesioctl() 421 obj.subencid = ssc->ses_objmap[i].subenclosure; in sesioctl() 422 obj.object_type = ssc->ses_objmap[i].enctype; in sesioctl() 433 error = (*ssc->ses_vec.get_encstat)(ssc, 1); in sesioctl() 436 tmp = ssc->ses_encstat & ~ENCI_SVALID; in sesioctl() [all …]
|
| /netbsd-src/sys/dev/isa/ |
| H A D | mpu_ym.c | 70 struct ym_softc *ssc = device_private(parent); in mpu_ym_match() local 73 if (aa->type != AUDIODEV_TYPE_MPU || ssc->sc_mpu_ioh == 0) in mpu_ym_match() 76 sc.ioh = ssc->sc_mpu_ioh; in mpu_ym_match() 77 sc.iot = ssc->sc_iot; in mpu_ym_match() 84 struct ym_softc *ssc = device_private(parent); in mpu_ym_attach() local 89 sc->ioh = ssc->sc_mpu_ioh; in mpu_ym_attach() 90 sc->iot = ssc->sc_iot; in mpu_ym_attach() 93 sc->powerarg = ssc; in mpu_ym_attach() 95 sc->model = YM_IS_SA3(ssc) ? in mpu_ym_attach() 98 sc->lock = &ssc->sc_ad1848.sc_ad1848.sc_intr_lock; in mpu_ym_attach() [all …]
|
| H A D | opl_ym.c | 72 struct ym_softc *ssc = device_private(parent); in opl_ym_match() local 74 if (aa->type != AUDIODEV_TYPE_OPL || ssc->sc_opl_ioh == 0) in opl_ym_match() 76 return opl_match(ssc->sc_iot, ssc->sc_opl_ioh, 0); in opl_ym_match() 82 struct ym_softc *ssc = device_private(parent); in opl_ym_attach() local 86 sc->ioh = ssc->sc_opl_ioh; in opl_ym_attach() 87 sc->iot = ssc->sc_iot; in opl_ym_attach() 91 sc->powerarg = ssc; in opl_ym_attach() 93 sc->lock = &ssc->sc_ad1848.sc_ad1848.sc_intr_lock; in opl_ym_attach() 95 ssc->sc_ad1848.sc_ad1848.chip_name); in opl_ym_attach() 104 struct ym_softc *ssc = arg; in opl_ym_power_ctl() local [all …]
|
| H A D | opl_wss.c | 66 struct wss_softc *ssc = device_private(parent); in opl_wss_match() local 68 if (aa->type != AUDIODEV_TYPE_OPL || ssc->sc_opl_ioh == 0) in opl_wss_match() 70 return opl_match(ssc->sc_iot, ssc->sc_opl_ioh, 0); in opl_wss_match() 76 struct wss_softc *ssc = device_private(parent); in opl_wss_attach() local 80 sc->ioh = ssc->sc_opl_ioh; in opl_wss_attach() 81 sc->iot = ssc->sc_iot; in opl_wss_attach() 83 sc->lock = &ssc->sc_ad1848.sc_ad1848.sc_intr_lock; in opl_wss_attach()
|
| H A D | opl_sb.c | 66 struct sbdsp_softc *ssc = device_private(parent); in opl_sb_match() local 70 return opl_match(ssc->sc_iot, ssc->sc_ioh, 0); in opl_sb_match() 76 struct sbdsp_softc *ssc = device_private(parent); in opl_sb_attach() local 80 sc->ioh = ssc->sc_ioh; in opl_sb_attach() 81 sc->iot = ssc->sc_iot; in opl_sb_attach() 84 sc->spkrarg = ssc; in opl_sb_attach() 85 sc->lock = &ssc->sc_intr_lock; in opl_sb_attach()
|
| H A D | opl_ess.c | 68 struct ess_softc *ssc = device_private(parent); in opl_ess_match() local 72 return opl_match(ssc->sc_iot, ssc->sc_ioh, 0); in opl_ess_match() 78 struct ess_softc *ssc = device_private(parent); in opl_ess_attach() local 82 sc->ioh = ssc->sc_ioh; in opl_ess_attach() 83 sc->iot = ssc->sc_iot; in opl_ess_attach() 86 sc->spkrarg = ssc; in opl_ess_attach() 87 sc->lock = &ssc->sc_intr_lock; in opl_ess_attach()
|
| H A D | mpu_sb.c | 63 struct sbdsp_softc *ssc = device_private(parent); in mpu_sb_match() local 69 sc.ioh = ssc->sc_mpu_ioh; in mpu_sb_match() 70 sc.iot = ssc->sc_mpu_iot; in mpu_sb_match() 77 struct sbdsp_softc *ssc = device_private(parent); in mpu_sb_attach() local 82 sc->ioh = ssc->sc_mpu_ioh; in mpu_sb_attach() 83 sc->iot = ssc->sc_mpu_iot; in mpu_sb_attach() 86 sc->lock = &ssc->sc_intr_lock; in mpu_sb_attach()
|
| /netbsd-src/sys/dev/pci/ |
| H A D | agp_sis.c | 79 struct agp_sis_softc *ssc; in agp_sis_attach() local 83 ssc = malloc(sizeof *ssc, M_AGP, M_WAITOK); in agp_sis_attach() 85 sc->as_chipc = ssc; in agp_sis_attach() 91 free(ssc, M_AGP); in agp_sis_attach() 95 ssc->initial_aperture = AGP_GET_APERTURE(sc); in agp_sis_attach() 112 ssc->gatt = gatt; in agp_sis_attach() 130 struct agp_sis_softc *ssc = sc->as_chipc; 144 AGP_SET_APERTURE(sc, ssc->initial_aperture); 146 agp_free_gatt(sc, ssc->gatt); 191 struct agp_sis_softc *ssc = sc->as_chipc; in agp_sis_bind_page() local [all …]
|
| H A D | opl_yds.c | 64 struct yds_softc *ssc = device_private(parent); in opl_yds_match() local 68 return opl_match(ssc->sc_opl_iot, ssc->sc_opl_ioh, 0); in opl_yds_match() 74 struct yds_softc *ssc = device_private(parent); in opl_yds_attach() local 78 sc->ioh = ssc->sc_opl_ioh; in opl_yds_attach() 79 sc->iot = ssc->sc_opl_iot; in opl_yds_attach() 81 sc->lock = &ssc->sc_intr_lock; in opl_yds_attach()
|
| H A D | opl_cmpci.c | 62 struct cmpci_softc *ssc = device_private(parent); in opl_cmpci_match() local 66 return opl_match(ssc->sc_iot, ssc->sc_ioh, CMPCI_REG_FM_BASE); in opl_cmpci_match() 72 struct cmpci_softc *ssc = device_private(parent); in opl_cmpci_attach() local 76 sc->ioh = ssc->sc_ioh; in opl_cmpci_attach() 77 sc->iot = ssc->sc_iot; in opl_cmpci_attach() 79 sc->lock = &ssc->sc_intr_lock; in opl_cmpci_attach()
|
| H A D | mpu_fms.c | 61 struct fms_softc *ssc = device_private(parent); in mpu_fms_match() local 67 sc.ioh = ssc->sc_mpu_ioh; in mpu_fms_match() 68 sc.iot = ssc->sc_iot; in mpu_fms_match() 75 struct fms_softc *ssc = device_private(parent); in mpu_fms_attach() local 80 sc->ioh = ssc->sc_mpu_ioh; in mpu_fms_attach() 81 sc->iot = ssc->sc_iot; in mpu_fms_attach() 84 sc->lock = &ssc->sc_intr_lock; in mpu_fms_attach()
|
| H A D | opl_sv.c | 71 struct sv_softc *ssc = device_private(parent); in opl_sv_attach() local 75 sc->ioh = ssc->sc_oplioh; in opl_sv_attach() 76 sc->iot = ssc->sc_opliot; in opl_sv_attach() 78 sc->lock = &ssc->sc_intr_lock; in opl_sv_attach()
|
| H A D | opl_fms.c | 72 struct fms_softc *ssc = device_private(parent); in opl_fms_attach() local 76 sc->ioh = ssc->sc_opl_ioh; in opl_fms_attach() 77 sc->iot = ssc->sc_iot; in opl_fms_attach() 79 sc->lock = &ssc->sc_intr_lock; in opl_fms_attach()
|
| /netbsd-src/sys/arch/hp300/dev/ |
| H A D | sti_sgc.c | 133 struct sti_softc *ssc = &sc->sc_sti; in sti_sgc_attach() local 145 ssc->sc_dev = self; in sti_sgc_attach() 150 ssc->sc_flags |= STI_CONSOLE | STI_ATTACHED; in sti_sgc_attach() 151 ssc->sc_rom = &sticn_rom; in sti_sgc_attach() 152 ssc->sc_rom->rom_softc = ssc; in sti_sgc_attach() 153 ssc->sc_scr = &sticn_scr; in sti_sgc_attach() 154 ssc->sc_scr->scr_rom = ssc->sc_rom; in sti_sgc_attach() 155 memcpy(ssc->bases, sticn_bases, sizeof(ssc->bases)); in sti_sgc_attach() 157 sti_describe(ssc); in sti_sgc_attach() 175 ssc->bases[0] = romh; in sti_sgc_attach() [all …]
|
| /netbsd-src/sys/dev/spi/ |
| H A D | mcp23xxxgpio_spi.c | 123 struct mcpgpio_spi_softc *ssc = MCPGPIO_TO_SPI(sc); in mcpgpio_spi_lock() local 125 mutex_enter(&ssc->sc_mutex); in mcpgpio_spi_lock() 132 struct mcpgpio_spi_softc *ssc = MCPGPIO_TO_SPI(sc); in mcpgpio_spi_unlock() local 134 mutex_exit(&ssc->sc_mutex); in mcpgpio_spi_unlock() 141 struct mcpgpio_spi_softc *ssc = MCPGPIO_TO_SPI(sc); in mcpgpio_spi_read() local 146 buf[0] = OP_READ(ssc->sc_ha[bank]); in mcpgpio_spi_read() 149 return spi_send_recv(ssc->sc_sh, 2, buf, 1, valp); in mcpgpio_spi_read() 156 struct mcpgpio_spi_softc *ssc = MCPGPIO_TO_SPI(sc); in mcpgpio_spi_write() local 161 buf[0] = OP_WRITE(ssc->sc_ha[bank]); in mcpgpio_spi_write() 165 return spi_send(ssc->sc_sh, 3, buf); in mcpgpio_spi_write() [all …]
|
| /netbsd-src/sys/dev/fdt/ |
| H A D | dw_apb_uart.c | 76 struct dw_apb_uart_softc * const ssc = device_private(self); in dw_apb_uart_attach() local 77 struct com_softc * const sc = &ssc->ssc_sc; in dw_apb_uart_attach() 104 ssc->ssc_clk = fdtbus_clock_get_index(phandle, 0); in dw_apb_uart_attach() 105 if (ssc->ssc_clk == NULL) { in dw_apb_uart_attach() 109 if (clk_enable(ssc->ssc_clk) != 0) { in dw_apb_uart_attach() 114 ssc->ssc_pclk = fdtbus_clock_get(phandle, "apb_pclk"); in dw_apb_uart_attach() 115 if (ssc->ssc_pclk != NULL && clk_enable(ssc->ssc_pclk) != 0) { in dw_apb_uart_attach() 120 ssc->ssc_rst = fdtbus_reset_get_index(phandle, 0); in dw_apb_uart_attach() 121 if (ssc->ssc_rst && fdtbus_reset_deassert(ssc->ssc_rst) != 0) { in dw_apb_uart_attach() 126 sc->sc_frequency = clk_get_rate(ssc->ssc_clk); in dw_apb_uart_attach() [all …]
|
| /netbsd-src/sys/arch/alpha/sableio/ |
| H A D | pckbc_sableio.c | 88 struct pckbc_sableio_softc *ssc = device_private(self); in pckbc_sableio_attach() local 89 struct pckbc_softc *sc = &ssc->sc_pckbc; in pckbc_sableio_attach() 95 ssc->sc_pc = sa->sa_pc; in pckbc_sableio_attach() 100 ssc->sc_irq[PCKBC_KBD_SLOT] = sa->sa_sableirq[0]; in pckbc_sableio_attach() 101 ssc->sc_irq[PCKBC_AUX_SLOT] = sa->sa_sableirq[1]; in pckbc_sableio_attach() 136 struct pckbc_sableio_softc *ssc = (void *) sc; in pckbc_sableio_intr_establish() local 141 alpha_pci_intr_handle_init(&ih, ssc->sc_irq[slot], 0); in pckbc_sableio_intr_establish() 143 intrstr = pci_intr_string(ssc->sc_pc, ih, buf, in pckbc_sableio_intr_establish() 145 ssc->sc_ih[slot] = pci_intr_establish(ssc->sc_pc, ih, in pckbc_sableio_intr_establish() 147 if (ssc->sc_ih[slot] == NULL) { in pckbc_sableio_intr_establish()
|
| H A D | lpt_sableio.c | 89 struct lpt_sableio_softc *ssc = device_private(self); in lpt_sableio_attach() local 90 struct lpt_softc *sc = &ssc->sc_lpt; in lpt_sableio_attach() 113 ssc->sc_ih = pci_intr_establish(sa->sa_pc, ih, IPL_TTY, lptintr, sc); in lpt_sableio_attach() 114 if (ssc->sc_ih == NULL) { in lpt_sableio_attach()
|
| H A D | com_sableio.c | 89 struct com_sableio_softc *ssc = device_private(self); in com_sableio_attach() local 90 struct com_softc *sc = &ssc->sc_com; in com_sableio_attach() 113 ssc->sc_ih = pci_intr_establish(sa->sa_pc, ih, IPL_SERIAL, in com_sableio_attach() 115 if (ssc->sc_ih == NULL) { in com_sableio_attach()
|
| /netbsd-src/sys/dev/acpi/ |
| H A D | apei_erst.c | 216 struct apei_erst_softc *ssc = &sc->sc_erst; in apei_erst_attach() local 257 ssc->ssc_interp = apei_interp_create("ERST", in apei_erst_attach() 268 apei_interp_pass1_load(ssc->ssc_interp, i, &entry->WheaHeader); in apei_erst_attach() 271 apei_interp_pass2_verify(ssc->ssc_interp, i, in apei_erst_attach() 274 apei_interp_pass3_alloc(ssc->ssc_interp); in apei_erst_attach() 277 apei_interp_pass4_assemble(ssc->ssc_interp, i, in apei_erst_attach() 280 apei_interp_pass5_verify(ssc->ssc_interp); in apei_erst_attach() 315 struct apei_erst_softc *ssc = &sc->sc_erst; in apei_erst_detach() local 317 if (ssc->ssc_interp) { in apei_erst_detach() 318 apei_interp_destroy(ssc->ssc_interp); in apei_erst_detach() [all …]
|
| /netbsd-src/sys/arch/ia64/stand/ia64/ski/ |
| H A D | skiconsole.c | 46 ssc(0, 0, 0, 0, SSC_CONSOLE_INIT); in ski_cons_init() 53 ssc(c, 0, 0, 0, SSC_PUTCHAR); in ski_cons_putchar() 70 c = ssc(0, 0, 0, 0, SSC_GETCHAR); in ski_cons_getchar() 82 c = ssc(0, 0, 0, 0, SSC_GETCHAR); in ski_cons_poll()
|
| H A D | skifs.c | 62 fd = ssc((u_int64_t) path, 1, 0, 0, SSC_OPEN); in skifs_open() 74 ssc((u_int64_t) f->f_fsdata, 0, 0, 0, SSC_CLOSE); in skifs_close() 86 ssc((u_int64_t) f->f_fsdata, 1, (u_int64_t) &req, f->f_offset, SSC_READ); in skifs_read() 88 ssc((u_int64_t)&stat, 0, 0, 0, SSC_WAIT_COMPLETION); in skifs_read()
|
| /netbsd-src/sys/arch/arm/nvidia/ |
| H A D | tegra_sdhc.c | 252 tegra_sdhc_card_detect(struct sdhc_softc *ssc) in tegra_sdhc_card_detect() argument 254 struct tegra_sdhc_softc *sc = device_private(ssc->sc_dev); in tegra_sdhc_card_detect() 262 tegra_sdhc_write_protect(struct sdhc_softc *ssc) in tegra_sdhc_write_protect() argument 264 struct tegra_sdhc_softc *sc = device_private(ssc->sc_dev); in tegra_sdhc_write_protect() 272 tegra_sdhc_signal_voltage(struct sdhc_softc *ssc, int signal_voltage) in tegra_sdhc_signal_voltage() argument 274 struct tegra_sdhc_softc *sc = device_private(ssc->sc_dev); in tegra_sdhc_signal_voltage()
|
| /netbsd-src/sys/arch/arm/ti/ |
| H A D | ti_com.c | 75 struct ti_com_softc * const ssc = device_private(self); in ti_com_attach() local 76 struct com_softc * const sc = &ssc->ssc_sc; in ti_com_attach() 121 ssc->ssc_ih = fdtbus_intr_establish_xname(phandle, 0, IPL_SERIAL, in ti_com_attach() 123 if (ssc->ssc_ih == NULL) { in ti_com_attach()
|
| /netbsd-src/sys/arch/ia64/ia64/ |
| H A D | ssc.c | 51 ssc(uint64_t in0, uint64_t in1, uint64_t in2, uint64_t in3, int which) in ssc() function 87 ssc(c, 0, 0, 0, SSC_PUTCHAR); in ssccnputc() 96 c = ssc(0, 0, 0, 0, SSC_GETCHAR); in ssccngetc()
|