Home
last modified time | relevance | path

Searched refs:sc (Results 1 – 25 of 2149) sorted by relevance

12345678910>>...86

/openbsd/sys/arch/armv7/omap/
H A Domohci.c154 bus_space_barrier(sc->sc.iot, sc->sc.ioh, 0, sc->sc.sc_size, in omohci_attach()
168 ohci_intr, &sc->sc, sc->sc.sc_bus.bdev.dv_xname); in omohci_attach()
170 ohci_intr, &sc->sc, sc->sc.sc_bus.bdev.dv_xname); in omohci_attach()
172 ohci_intr, &sc->sc, sc->sc.sc_bus.bdev.dv_xname); in omohci_attach()
174 ohci_intr, &sc->sc, sc->sc.sc_bus.bdev.dv_xname); in omohci_attach()
176 ohci_intr, &sc->sc, sc->sc.sc_bus.bdev.dv_xname); in omohci_attach()
178 ohci_intr, &sc->sc, sc->sc.sc_bus.bdev.dv_xname); in omohci_attach()
190 bus_space_unmap(sc->sc.iot, sc->sc.ioh, sc->sc.sc_size); in omohci_attach()
221 bus_space_unmap(sc->sc.iot, sc->sc.ioh, sc->sc.sc_size); in omohci_attach()
262 bus_space_unmap(sc->sc.iot, sc->sc.ioh, sc->sc.sc_size); in omohci_detach()
[all …]
H A Dif_cpsw.c362 timeout_set(&sc->sc_tick, cpsw_tick, sc); in cpsw_attach()
369 cpsw_rxthintr, sc, DEVNAME(sc)); in cpsw_attach()
371 cpsw_rxintr, sc, DEVNAME(sc)); in cpsw_attach()
373 cpsw_txintr, sc, DEVNAME(sc)); in cpsw_attach()
375 cpsw_miscintr, sc, DEVNAME(sc)); in cpsw_attach()
431 bus_dmamap_load(sc->sc_bdt, sc->sc_txpad_dm, sc->sc_txpad, in cpsw_attach()
522 if (sc->sc_txnext >= sc->sc_txhead) in cpsw_start()
590 cpsw_set_txdesc(sc, sc->sc_txnext, &bd); in cpsw_start()
604 cpsw_set_txdesc(sc, sc->sc_txnext, &bd); in cpsw_start()
1170 cpsw_get_txdesc(sc, sc->sc_txhead, &bd); in cpsw_txintr()
[all …]
H A Domehci.c159 if (bus_space_map(sc->sc.iot, reg[0], reg[1], 0, &sc->sc.ioh)) { in omehci_attach()
188 sc->sc.sc_offs = EREAD1(&sc->sc, EHCI_CAPLENGTH); in omehci_attach()
199 strlcpy(sc->sc.sc_vendor, "TI OMAP", sizeof(sc->sc.sc_vendor)); in omehci_attach()
221 bus_space_unmap(sc->sc.iot, sc->sc.ioh, sc->sc.sc_size); in omehci_attach()
222 sc->sc.sc_size = 0; in omehci_attach()
243 sc->ehci_rev = bus_space_read_4(sc->sc.iot, sc->uhh_ioh, in omehci_init()
252 bus_space_write_4(sc->sc.iot, sc->tll_ioh, in omehci_init()
271 bus_space_write_4(sc->sc.iot, sc->tll_ioh, in omehci_init()
377 reg = bus_space_read_4(sc->sc.iot, sc->sc.ioh, OMAP_USBHOST_USBCMD); in omehci_init()
380 bus_space_write_4(sc->sc.iot, sc->sc.ioh, OMAP_USBHOST_USBCMD, reg); in omehci_init()
[all …]
/openbsd/sys/dev/ic/
H A Di82596.c219 (sc->ie_bus_write16)(sc, IE_ISCP_SCB(sc->iscp), sc->scb);
220 (sc->ie_bus_write24)(sc, IE_ISCP_BASE(sc->iscp), sc->sc_maddr);
221 (sc->ie_bus_write24)(sc, IE_SCP_ISCP(sc->scp), sc->sc_maddr);
222 (sc->ie_bus_write16)(sc, IE_SCP_BUS_USE(sc->scp), sc->sysbus);
234 (sc->ie_bus_write24)(sc, sc->scp, 0);
277 (sc->ie_bus_write16)(sc, IE_ISCP_SCB(sc->iscp), sc->scb); in i82596_attach()
278 (sc->ie_bus_write24)(sc, IE_ISCP_BASE(sc->iscp), sc->sc_maddr); in i82596_attach()
279 (sc->ie_bus_write24)(sc, IE_SCP_ISCP(sc->scp), sc->sc_maddr +sc->iscp); in i82596_attach()
280 (sc->ie_bus_write16)(sc, IE_SCP_BUS_USE(sc->scp), sc->sysbus); in i82596_attach()
412 (sc->chan_attn)(sc);
[all …]
H A Dqlw.c266 sc->sc_mbox[1], sc->sc_mbox[2], sc->sc_mbox[3], sc->sc_mbox[6]); in qlw_attach()
274 sc->sc_maxrequests = sc->sc_mbox[2]; in qlw_attach()
311 sc->sc_mbox[1] = sc->sc_clock; in qlw_attach()
318 sc->sc_mbox[1] = sc->sc_retry_count[0]; in qlw_attach()
319 sc->sc_mbox[2] = sc->sc_retry_delay[0]; in qlw_attach()
320 sc->sc_mbox[6] = sc->sc_retry_count[1]; in qlw_attach()
321 sc->sc_mbox[7] = sc->sc_retry_delay[1]; in qlw_attach()
372 sc->sc_mbox[1] = sc->sc_maxrequests; in qlw_attach()
381 sc->sc_mbox[1] = sc->sc_maxresponses; in qlw_attach()
1709 sc->sc_requests = qlw_dmamem_alloc(sc, sc->sc_maxrequests * in qlw_alloc_ccbs()
[all …]
H A Dncr53c9x.c346 sc->sc_cfg1, sc->sc_cfg2, sc->sc_cfg3, in ncr53c9x_reset()
507 sc->sc_espintr, sc->sc_espstat, sc->sc_espstep, sc->sc_espstat2)); in ncr53c9x_readregs()
632 NCRDMA_SETUP(sc, &sc->sc_cmdp, &sc->sc_cmdlen, 0, in ncr53c9x_select()
1804 sc->sc_msgout = sc->sc_msgpriq & -sc->sc_msgpriq; in ncr53c9x_msgout()
1908 ncr53c9x_wrfifo(sc, sc->sc_omp, sc->sc_omlen); in ncr53c9x_msgout()
2128 sc->sc_espintr,sc->sc_espstat,sc->sc_espstep)); in ncr53c9x_intr()
2248 sc->sc_msgpriq = sc->sc_msgout = sc->sc_msgoutq = 0; in ncr53c9x_intr()
2576 NCRDMA_SETUP(sc, &sc->sc_cmdp, &sc->sc_cmdlen, in ncr53c9x_intr()
2598 NCRDMA_SETUP(sc, &sc->sc_dp, &sc->sc_dleft, in ncr53c9x_intr()
2607 NCRDMA_SETUP(sc, &sc->sc_dp, &sc->sc_dleft, in ncr53c9x_intr()
[all …]
H A Ddc.c196 CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) | (x))
1150 if (DC_IS_INTEL(sc) || DC_IS_MACRONIX(sc) || DC_IS_PNIC(sc) || in dc_setfilt()
1151 DC_IS_PNICII(sc) || DC_IS_DAVICOM(sc) || DC_IS_CONEXANT(sc)) in dc_setfilt()
1336 if (DC_IS_ASIX(sc) || DC_IS_ADMTEK(sc) || DC_IS_XIRCOM(sc) || in dc_reset()
1500 dc_read_eeprom(sc, (caddr_t)sc->dc_srom, 0, (sc->dc_sromsize / 2), 0); in dc_read_srom()
1639 if (bus_dmamem_map(sc->sc_dmat, sc->sc_listseg, sc->sc_listnseg, in dc_attach()
1651 if (bus_dmamap_load(sc->sc_dmat, sc->sc_listmap, sc->sc_listkva, in dc_attach()
2683 if (DC_IS_ASIX(sc) || DC_IS_DAVICOM(sc)) in dc_init()
2819 dc_setcfg(sc, sc->dc_if_media); in dc_init()
3103 bus_dmamem_unmap(sc->sc_dmat, sc->sc_listkva, sc->sc_listnseg); in dc_detach()
[all …]
H A Dlsi64854.c314 L64854_SCSR(sc, sc->sc_dmactl | L64854_RESET); in lsi64854_setup()
315 L64854_SCSR(sc, sc->sc_dmactl); in lsi64854_setup()
322 sc->sc_dvmaaddr = *sc->sc_dmaaddr; in lsi64854_setup()
324 *sc->sc_dmaaddr, sc->sc_dmasize, in lsi64854_setup()
329 bus_dmamap_sync(sc->sc_dmatag, sc->sc_dmamap, 0, sc->sc_dmasize, in lsi64854_setup()
472 bus_dmamap_sync(sc->sc_dmatag, sc->sc_dmamap, 0, sc->sc_dmasize, in lsi64854_scsi_intr()
488 dma_start(sc, sc->sc_dmaaddr, sc->sc_dmalen, DMACSR(sc) & D_WRITE); in lsi64854_scsi_intr()
563 sc->sc_dvmaaddr = *sc->sc_dmaaddr; in lsi64854_setup_pp()
565 *sc->sc_dmaaddr, sc->sc_dmasize, in lsi64854_setup_pp()
570 bus_dmamap_sync(sc->sc_dmatag, sc->sc_dmamap, 0, sc->sc_dmasize, in lsi64854_setup_pp()
[all …]
H A Dathn.c315 sc->sc_dev.dv_xname, athn_get_mac_name(sc), sc->mac_rev, in athn_attach()
316 sc->ntxchains, sc->nrxchains, sc->eep_rev, in athn_attach()
321 sc->sc_dev.dv_xname, athn_get_mac_name(sc), sc->mac_rev, in athn_attach()
322 athn_get_rf_name(sc), sc->ntxchains, sc->nrxchains, in athn_attach()
411 sc->ops.dma_free(sc); in athn_detach()
481 sc->ops.rx_enable(sc); in athn_rx_start()
559 return (sc->ops.intr(sc)); in athn_intr()
1130 ops->gpio_write(sc, sc->led_pin, !sc->led_state); in athn_set_led()
1213 sc->sc_disable_aspm(sc); in athn_btcoex_enable()
2663 sc->ops.do_calib(sc); in athn_newstate()
[all …]
H A Drt2860.c253 sc->sc_dev.dv_xname, sc->mac_ver, sc->mac_rev, in rt2860_attach()
254 rt2860_get_rf(sc->rf_rev), sc->ntxchains, sc->nrxchains); in rt2860_attach()
280 sc->mgtqid = (sc->mac_ver == 0x2860 && sc->mac_rev == 0x0100) ? in rt2860_attach()
2844 rt3090_rf_write(sc, sc->rf[i].reg, sc->rf[i].val); in rt3090_rf_setup()
3250 sc->leds, sc->led[0], sc->led[1], sc->led[2])); in rt2860_read_eeprom()
3262 sc->rf_rev, sc->ntxchains, sc->nrxchains)); in rt2860_read_eeprom()
3392 sc->tssi_2ghz[2], sc->tssi_2ghz[3], sc->tssi_2ghz[4], in rt2860_read_eeprom()
3393 sc->tssi_2ghz[5], sc->tssi_2ghz[6], sc->tssi_2ghz[7], in rt2860_read_eeprom()
3457 sc->lna[2] = sc->lna[1]; in rt2860_read_eeprom()
3461 sc->lna[3] = sc->lna[1]; in rt2860_read_eeprom()
[all …]
/openbsd/sys/dev/acpi/
H A Dacpibat.c150 strlcpy(sc->sc_sensdev.xname, DEVNAME(sc), in acpibat_monitor()
158 sensor_attach(&sc->sc_sensdev, &sc->sc_sens[0]); in acpibat_monitor()
164 sensor_attach(&sc->sc_sensdev, &sc->sc_sens[1]); in acpibat_monitor()
170 sensor_attach(&sc->sc_sensdev, &sc->sc_sens[2]); in acpibat_monitor()
175 sensor_attach(&sc->sc_sensdev, &sc->sc_sens[3]); in acpibat_monitor()
181 sensor_attach(&sc->sc_sensdev, &sc->sc_sens[4]); in acpibat_monitor()
182 sc->sc_sens[4].value = sc->sc_bst.bst_state; in acpibat_monitor()
187 sensor_attach(&sc->sc_sensdev, &sc->sc_sens[5]); in acpibat_monitor()
287 sc->sc_sens[4].value = sc->sc_bst.bst_state; in acpibat_refresh()
357 memset(&sc->sc_bix, 0, sizeof(sc->sc_bix)); in acpibat_getbix()
[all …]
/openbsd/sys/dev/usb/
H A Dumass.c632 sc->transfer_cb(sc, sc->transfer_priv, in umass_detach()
1256 sc->transfer_cb(sc, sc->transfer_priv, in umass_bbb_state()
1279 sc->transfer_cb(sc, sc->transfer_priv, in umass_bbb_state()
1318 sc->transfer_cb(sc, sc->transfer_priv, in umass_bbb_state()
1486 sc->transfer_cb(sc, sc->transfer_priv, in umass_cbi_state()
1578 sc->transfer_cb(sc, sc->transfer_priv, in umass_cbi_state()
1633 sc->transfer_cb(sc, sc->transfer_priv, in umass_cbi_state()
1660 sc->transfer_cb(sc, sc->transfer_priv, in umass_cbi_state()
1674 sc->transfer_cb(sc, sc->transfer_priv, in umass_cbi_state()
1686 sc->transfer_cb(sc, sc->transfer_priv, in umass_cbi_state()
[all …]
/openbsd/sys/dev/
H A Daudio.c447 sc->conv_enc(sc->silence, sc->bps); in audio_calc_sil()
755 sc->round = sc->ops->set_blksz(sc->arg, sc->mode, in audio_setpar_blksz()
853 sc->play.nblks = sc->ops->set_nblks(sc->arg, sc->mode, in audio_setpar_nblks()
865 max = sc->rec.datalen / (sc->round * sc->rchan * sc->bps); in audio_setpar_nblks()
884 DEVNAME(sc), sc->sw_enc, sc->bits, sc->bps, sc->msb, in audio_setpar()
885 sc->rate, sc->pchan, sc->rchan, sc->round, sc->play.nblks); in audio_setpar()
1030 sc->play.blksz = sc->round * sc->pchan * sc->bps; in audio_setpar()
1034 sc->rec.blksz = sc->round * sc->rchan * sc->bps; in audio_setpar()
1040 DEVNAME(sc), sc->sw_enc, sc->bits, sc->bps, sc->msb, in audio_setpar()
1041 sc->rate, sc->pchan, sc->rchan, sc->round, sc->play.nblks); in audio_setpar()
[all …]
/openbsd/sys/dev/pci/
H A Dif_de.c430 tulip_media_set(sc, sc->tulip_media); in tulip_linkup()
671 tulip_linkup(sc, sc->tulip_probe_media); in tulip_media_poll()
714 tulip_linkup(sc, sc->tulip_probe_media); in tulip_media_poll()
797 tulip_linkup(sc, sc->tulip_probe_media); in tulip_media_poll()
833 tulip_media_set(sc, sc->tulip_media); in tulip_media_select()
881 tulip_media_set(sc, sc->tulip_media); in tulip_21040_10baset_only_media_select()
983 tulip_linkup(sc, sc->tulip_probe_media); in tulip_21041_media_poll()
998 tulip_linkup(sc, sc->tulip_probe_media); in tulip_21041_media_poll()
2800 tulip_linkup(sc, sc->tulip_media); in tulip_ifmedia_add()
3698 for (; sc != NULL; sc = sc->tulip_slaves) { in tulip_intr_shared()
[all …]
H A Duhci_pci.c95 bus_space_barrier(sc->sc.iot, sc->sc.ioh, 0, sc->sc.sc_size, in uhci_pci_activate()
97 bus_space_write_2(sc->sc.iot, sc->sc.ioh, UHCI_INTR, 0); in uhci_pci_activate()
119 &sc->sc.iot, &sc->sc.ioh, NULL, &sc->sc.sc_size, 0)) { in uhci_pci_attach()
127 bus_space_write_2(sc->sc.iot, sc->sc.ioh, UHCI_INTR, 0); in uhci_pci_attach()
170 bus_space_barrier(sc->sc.iot, sc->sc.ioh, 0, sc->sc.sc_size, in uhci_pci_attach()
172 bus_space_write_2(sc->sc.iot, sc->sc.ioh, UHCI_INTR, 0); in uhci_pci_attach()
178 strlcpy(sc->sc.sc_vendor, vendor, sizeof (sc->sc.sc_vendor)); in uhci_pci_attach()
180 snprintf(sc->sc.sc_vendor, sizeof (sc->sc.sc_vendor), in uhci_pci_attach()
193 bus_space_unmap(sc->sc.iot, sc->sc.ioh, sc->sc.sc_size); in uhci_pci_attach()
221 bus_space_unmap(sc->sc.iot, sc->sc.ioh, sc->sc.sc_size); in uhci_pci_attach_deferred()
[all …]
H A Dohci_pci.c101 &sc->sc.iot, &sc->sc.ioh, NULL, &sc->sc.sc_size, 0)) { in ohci_pci_attach()
107 sc->sc.sc_intre = bus_space_read_4(sc->sc.iot, sc->sc.ioh, in ohci_pci_attach()
117 bus_space_barrier(sc->sc.iot, sc->sc.ioh, 0, sc->sc.sc_size, in ohci_pci_attach()
119 bus_space_write_4(sc->sc.iot, sc->sc.ioh, in ohci_pci_attach()
126 bus_space_unmap(sc->sc.iot, sc->sc.ioh, sc->sc.sc_size); in ohci_pci_attach()
138 bus_space_unmap(sc->sc.iot, sc->sc.ioh, sc->sc.sc_size); in ohci_pci_attach()
148 strlcpy(sc->sc.sc_vendor, vendor, sizeof (sc->sc.sc_vendor)); in ohci_pci_attach()
150 snprintf(sc->sc.sc_vendor, sizeof (sc->sc.sc_vendor), in ohci_pci_attach()
156 bus_space_unmap(sc->sc.iot, sc->sc.ioh, sc->sc.sc_size); in ohci_pci_attach()
187 bus_space_unmap(sc->sc.iot, sc->sc.ioh, sc->sc.sc_size); in ohci_pci_attach_deferred()
[all …]
H A Dif_bce.c270 if (bus_dmamap_load(sc->bce_dmatag, sc->bce_rxdata_map, sc->bce_data, in bce_attach()
409 sc->bce_phy = bus_space_read_1(sc->bce_btag, sc->bce_bhandle, in bce_attach()
427 timeout_set(&sc->bce_timeout, bce_tick, sc); in bce_attach()
518 if (sc->bce_txsnext >= sc->bce_txin) in bce_start()
521 txsfree = sc->bce_txin - sc->bce_txsnext - 1; in bce_start()
561 sc->bce_tx_ring[sc->bce_txsnext].addr = in bce_start()
571 bus_dmamap_sync(sc->bce_dmatag, sc->bce_ring_map, in bce_start()
616 sc = xsc; in bce_intr()
776 if (sc->bce_txsnext == sc->bce_txin) in bce_txintr()
945 bus_dmamap_sync(sc->bce_dmatag, sc->bce_ring_map, in bce_add_rxbuf()
[all …]
H A Dif_rge.c189 &sc->rge_bhandle, NULL, &sc->rge_bsize, 0)) { in rge_attach()
191 0, &sc->rge_btag, &sc->rge_bhandle, NULL, in rge_attach()
222 sc, sc->sc_dev.dv_xname); in rge_attach()
302 timeout_set(&sc->sc_timeout, rge_tick, sc); in rge_attach()
303 task_set(&sc->sc_task, rge_txstart, sc); in rge_attach()
354 if ((RGE_READ_4(sc, RGE_ISR) & sc->rge_intrs) == 0) in rge_intr()
404 RGE_WRITE_4(sc, RGE_IMR, sc->rge_intrs); in rge_intr()
660 rge_set_macaddr(sc, sc->sc_arpcom.ac_enaddr); in rge_init()
1658 sc->rge_mcodever = rge_read_phy_ocp(sc, 0xa438); in rge_phy_config()
2372 RGE_WRITE_4(sc, RGE_IMR, sc->rge_intrs); in rge_setup_intr()
[all …]
H A Denvy.c650 sc->host_if.arg = sc; in envy_ac97_init()
1031 bus_space_barrier(sc->mt_iot, sc->mt_ioh, 0, sc->mt_iosz, in envy_mt_read_1()
1503 sc->card->init(sc); in envy_reset()
1718 &sc->ccs_iot, &sc->ccs_ioh, NULL, &sc->ccs_iosz, 0)) { in envyattach()
1724 &sc->mt_iot, &sc->mt_ioh, NULL, &sc->mt_iosz, 0)) { in envyattach()
1751 sc->card->name, sc->card->nich, sc->card->noch); in envyattach()
1775 bus_space_unmap(sc->mt_iot, sc->mt_ioh, sc->mt_iosz); in envydetach()
2010 sc->intrs[sc->nintr].iactive = sc->iactive; in envy_intr()
2011 sc->intrs[sc->nintr].oactive = sc->oactive; in envy_intr()
2043 sc->ointr(sc->oarg); in envy_intr()
[all …]
H A Dif_ixgb.c250 ixgb_dma_free(sc, &sc->rxdma); in ixgb_attach()
252 ixgb_dma_free(sc, &sc->txdma); in ixgb_attach()
897 sc->sc_dv.dv_xname, sc->hw.device_id); in ixgb_identify_hardware()
928 sc->hw.back = &sc->osdep; in ixgb_allocate_pci_resources()
1161 sc->txtag = sc->osdep.ixgb_pa.pa_dmat; in ixgb_setup_transmit_structures()
1180 sc->num_tx_desc_avail = sc->num_tx_desc; in ixgb_setup_transmit_structures()
1369 if (sc->num_tx_desc_avail == sc->num_tx_desc) in ixgb_txeof()
1505 sc->rxtag = sc->osdep.ixgb_pa.pa_dmat; in ixgb_allocate_receive_structures()
1763 sc->lmp = sc->lmp->m_next; in ixgb_rxeof()
1950 sc->stats.roc += IXGB_READ_REG(&sc->hw, ROC); in ixgb_update_stats_counters()
[all …]
/openbsd/sys/dev/hil/
H A Dhil.c155 sc->sc_actdev = sc->sc_cmddev = 0; in hil_attach()
157 sc->sc_cmdbp = sc->sc_cmdbuf; in hil_attach()
158 sc->sc_pollbp = sc->sc_pollbuf; in hil_attach()
339 sc->sc_pollbp = sc->sc_pollbuf; in hil_process_int()
342 sc->sc_cmdbp = sc->sc_cmdbuf; in hil_process_int()
416 sc->sc_pollbp = sc->sc_pollbuf; in hil_process_poll()
420 sc->sc_cmdbp = sc->sc_cmdbuf; in hil_process_poll()
461 hilconfig(sc, sc->sc_maxdev); in hil_thread()
574 sc->sc_cmdbp = sc->sc_cmdbuf; in hilconfig()
634 sc->sc_cmdbp = sc->sc_cmdbuf; in hilempty()
[all …]
/openbsd/sys/dev/fdt/
H A Dohci_fdt.c100 sc->sc.sc_intre = bus_space_read_4(sc->sc.iot, sc->sc.ioh, in ohci_fdt_attach()
104 bus_space_write_4(sc->sc.iot, sc->sc.ioh, OHCI_INTERRUPT_DISABLE, in ohci_fdt_attach()
107 bus_space_barrier(sc->sc.iot, sc->sc.ioh, 0, sc->sc.sc_size, in ohci_fdt_attach()
109 bus_space_write_4(sc->sc.iot, sc->sc.ioh, in ohci_fdt_attach()
122 strlcpy(sc->sc.sc_vendor, "Generic", sizeof(sc->sc.sc_vendor)); in ohci_fdt_attach()
142 bus_space_unmap(sc->sc.iot, sc->sc.ioh, sc->sc.sc_size); in ohci_fdt_attach()
143 sc->sc.sc_size = 0; in ohci_fdt_attach()
168 bus_space_unmap(sc->sc.iot, sc->sc.ioh, sc->sc.sc_size); in ohci_fdt_attach_deferred()
169 sc->sc.sc_size = 0; in ohci_fdt_attach_deferred()
193 bus_space_unmap(sc->sc.iot, sc->sc.ioh, sc->sc.sc_size); in ohci_fdt_detach()
[all …]
H A Dxhci_fdt.c126 xhci_intr, sc, sc->sc.sc_bus.bdev.dv_xname); in xhci_fdt_attach()
154 strlcpy(sc->sc.sc_vendor, "Generic", sizeof(sc->sc.sc_vendor)); in xhci_fdt_attach()
172 bus_space_unmap(sc->sc.iot, sc->sc.ioh, sc->sc.sc_size); in xhci_fdt_attach()
218 if (bus_space_map(sc->sc.iot, sc->sc_otg_base, in xhci_cdns_attach()
235 bus_space_unmap(sc->sc.iot, sc->sc_otg_ioh, sc->sc_otg_size); in xhci_cdns_attach()
310 reg = bus_space_read_4(sc->sc.iot, sc->sc.ioh, USB3_GCTL); in xhci_snps_init()
313 bus_space_write_4(sc->sc.iot, sc->sc.ioh, USB3_GCTL, reg); in xhci_snps_init()
317 reg = bus_space_read_4(sc->sc.iot, sc->sc.ioh, USB3_GUSB2PHYCFG0); in xhci_snps_init()
332 bus_space_write_4(sc->sc.iot, sc->sc.ioh, USB3_GUSB2PHYCFG0, reg); in xhci_snps_init()
335 reg = bus_space_read_4(sc->sc.iot, sc->sc.ioh, USB3_GUCTL1); in xhci_snps_init()
[all …]
H A Dimxccm.c350 sc->sc_cd.cd_cookie = sc; in imxccm_attach()
569 mux = HREAD4(sc, sc->sc_muxs[idx].reg); in imxccm_imx7d_enet()
592 mux = HREAD4(sc, sc->sc_muxs[idx].reg); in imxccm_imx7d_i2c()
615 mux = HREAD4(sc, sc->sc_muxs[idx].reg); in imxccm_imx7d_uart()
636 mux = HREAD4(sc, sc->sc_muxs[idx].reg); in imxccm_imx7d_usdhc()
779 mux = HREAD4(sc, sc->sc_muxs[idx].reg); in imxccm_imx8mm_enet()
802 mux = HREAD4(sc, sc->sc_muxs[idx].reg); in imxccm_imx8mm_ahb()
831 mux = HREAD4(sc, sc->sc_muxs[idx].reg); in imxccm_imx8mm_i2c()
852 mux = HREAD4(sc, sc->sc_muxs[idx].reg); in imxccm_imx8mm_uart()
873 mux = HREAD4(sc, sc->sc_muxs[idx].reg); in imxccm_imx8mm_usdhc()
[all …]
/openbsd/sys/arch/luna88k/cbus/
H A Dnec86hw.c237 sc->sc_orate = p->sample_rate = sc->hw_orate = in nec86hw_set_params()
407 sc->pdma_nchunk, sc->pdma_ptr)); in nec86hw_set_output_block()
437 sc->pdma_nchunk, sc->pdma_ptr)); in nec86hw_set_input_block()
887 cc = sc->pdma_count / sc->pdma_nchunk; in nec86hw_output_chunk()
889 nbyte = (*sc->func_fifo_output)(sc, cc); in nec86hw_output_chunk()
893 sc->pdma_count, sc->pdma_nchunk, cc, nbyte, sc->pdma_ptr)); in nec86hw_output_chunk()
1135 cc = sc->pdma_count / sc->pdma_nchunk; in nec86hw_input_chunk()
1136 (*sc->func_fifo_input)(sc, cc); in nec86hw_input_chunk()
1140 sc->pdma_count, sc->pdma_nchunk, cc, sc->pdma_ptr)); in nec86hw_input_chunk()
1298 (*sc->sc_intr)(sc->sc_arg); in nec86hw_intr()
[all …]

12345678910>>...86