Home
last modified time | relevance | path

Searched refs:sc_ctrl (Results 1 – 14 of 14) sorted by relevance

/netbsd/src/sys/arch/mips/alchemy/dev/
Daupsc.c144 p.sc_ctrl = ctrl; in aupsc_attach()
209 if (*(sc->sc_ctrl.psc_sel) != AUPSC_SEL_DISABLE) { in aupsc_enable()
215 bus_space_write_4(sc->sc_ctrl.psc_bust, sc->sc_ctrl.psc_bush, in aupsc_enable()
217 bus_space_write_4(sc->sc_ctrl.psc_bust, sc->sc_ctrl.psc_bush, in aupsc_enable()
222 if (bus_space_read_4(sc->sc_ctrl.psc_bust, in aupsc_enable()
223 sc->sc_ctrl.psc_bush, AUPSC_STAT) & AUPSC_STAT_SR) in aupsc_enable()
234 bus_space_write_4(sc->sc_ctrl.psc_bust, sc->sc_ctrl.psc_bush, in aupsc_disable()
236 bus_space_write_4(sc->sc_ctrl.psc_bust, sc->sc_ctrl.psc_bush, in aupsc_disable()
246 bus_space_write_4(sc->sc_ctrl.psc_bust, sc->sc_ctrl.psc_bush, in aupsc_suspend()
Dausmbus_psc.c59 struct aupsc_controller sc_ctrl; member
68 bus_space_read_4(sc->sc_ctrl.psc_bust, sc->sc_ctrl.psc_bush, reg)
70 bus_space_write_4(sc->sc_ctrl.psc_bust, sc->sc_ctrl.psc_bush, reg, \
126 sc->sc_ctrl = aa->aupsc_ctrl; in ausmbus_attach()
148 sc->sc_ctrl.psc_enable(sc, AUPSC_SEL_SMBUS); in ausmbus_acquire_bus()
208 sc->sc_ctrl.psc_disable(sc); in ausmbus_release_bus()
Daupscvar.h56 struct aupsc_controller sc_ctrl; member
/netbsd/src/sys/dev/acpi/
Dhpacel_acpi.c143 uint8_t sc_ctrl[3]; member
262 val = sc->sc_ctrl[0]; in hpacel_reg_init()
264 if ((sc->sc_ctrl[0] & CTRL1_Xen) == 0) in hpacel_reg_init()
267 if ((sc->sc_ctrl[0] & CTRL1_Yen) == 0) in hpacel_reg_init()
270 if ((sc->sc_ctrl[0] & CTRL1_Zen) == 0) in hpacel_reg_init()
273 if (val != sc->sc_ctrl[0]) { in hpacel_reg_init()
281 val = sc->sc_ctrl[1]; in hpacel_reg_init()
283 if ((sc->sc_ctrl[1] & CTRL2_BDU) == 0) in hpacel_reg_init()
286 if ((sc->sc_ctrl[1] & CTRL2_BLE) != 0) in hpacel_reg_init()
289 if ((sc->sc_ctrl[1] & CTRL2_DAS) != 0) in hpacel_reg_init()
[all …]
/netbsd/src/sys/dev/ic/
Drs5c313.c69 sc->sc_ctrl[0] = CTRL_24H; in rs5c313_attach()
70 sc->sc_ctrl[1] = CTRL2_NTEST; in rs5c313_attach()
75 sc->sc_ctrl[0] = 0; in rs5c313_attach()
76 sc->sc_ctrl[1] = CTRL2_24H|CTRL2_NTEST; in rs5c313_attach()
121 rs5c313_write_reg(sc, RS5C313_CTRL, (sc->sc_ctrl[0] | CTRL_ADJ)); in rs5c313_init()
134 rs5c313_write_reg(sc, RS5C313_CTRL, sc->sc_ctrl[0]); in rs5c313_init()
135 rs5c313_write_reg(sc, RS5C313_CTRL2, sc->sc_ctrl[1]); in rs5c313_init()
163 rs5c313_write_reg(sc, RS5C313_CTRL, sc->sc_ctrl[0]); in rs5c313_todr_gettime_ymdhms()
217 rs5c313_write_reg(sc, RS5C313_CTRL, sc->sc_ctrl[0]); in rs5c313_todr_settime_ymdhms()
Drs5c313var.h53 int sc_ctrl[2]; /* ctrl registers */ member
/netbsd/src/sys/dev/i2c/
Dact8846.c134 struct act8846_ctrl *sc_ctrl; member
174 sc->sc_ctrl = kmem_alloc(sizeof(act8846_ctrls), KM_SLEEP); in act8846_attach()
175 memcpy(sc->sc_ctrl, act8846_ctrls, sizeof(act8846_ctrls)); in act8846_attach()
177 sc->sc_ctrl[n].c_dev = self; in act8846_attach()
181 act8846_print(&sc->sc_ctrl[n]); in act8846_attach()
227 c = &sc->sc_ctrl[n]; in act8846_lookup()
Daxp809.c91 struct axp809_ctrl *sc_ctrl; member
134 sc->sc_ctrl = kmem_alloc(sizeof(axp809_ctrls), KM_SLEEP); in axp809_attach()
135 memcpy(sc->sc_ctrl, axp809_ctrls, sizeof(axp809_ctrls)); in axp809_attach()
137 sc->sc_ctrl[n].c_dev = self; in axp809_attach()
142 axp809_print(&sc->sc_ctrl[n]); in axp809_attach()
193 c = &sc->sc_ctrl[n]; in axp809_lookup()
Drkpmic.c223 const struct rkpmic_ctrl *sc_ctrl; member
547 const struct rkpmic_ctrl *c = sc->sc_ctrl; in rkreg_enable()
572 const struct rkpmic_ctrl *c = sc->sc_ctrl; in rkreg_set_voltage()
600 const struct rkpmic_ctrl *c = sc->sc_ctrl; in rkreg_get_voltage()
639 sc->sc_ctrl = raa->reg_ctrl; in rkreg_attach()
Daxppmic.c486 const struct axppmic_ctrl *sc_ctrl; member
1317 const struct axppmic_ctrl *c = sc->sc_ctrl; in axpreg_enable()
1343 const struct axppmic_ctrl *c = sc->sc_ctrl; in axpreg_set_voltage()
1353 const struct axppmic_ctrl *c = sc->sc_ctrl; in axpreg_get_voltage()
1391 sc->sc_ctrl = aaa->reg_ctrl; in axpreg_attach()
/netbsd/src/sys/arch/acorn32/podulebus/
Dcsa.c92 volatile uint8_t *sc_ctrl; member
178 sc->sc_ctrl = (uint8_t *)pa->pa_podule->slow_base + CSA_CTRL_OFFSET; in csa_attach()
209 *sc->sc_ctrl = 0; in csa_attach()
/netbsd/src/sys/arch/arm/ep93xx/
Depcom.c416 if (!ISSET(sc->sc_ctrl, Ctrl_TIE)) { in epcomstart()
417 SET(sc->sc_ctrl, Ctrl_TIE); in epcomstart()
444 CLR(sc->sc_ctrl, (Ctrl_TIE|Ctrl_RTIE|Ctrl_RIE)); in epcom_shutdown()
518 SET(sc->sc_ctrl, (Ctrl_UARTE|Ctrl_RIE|Ctrl_RTIE)); in epcomopen()
811 sc->sc_ctrl); in epcom_set()
994 SET(sc->sc_ctrl, (Ctrl_RIE|Ctrl_RTIE)); in epcom_rxsoft()
1112 CLR(sc->sc_ctrl, (Ctrl_RIE|Ctrl_RTIE)); in epcomintr()
1119 CLR(sc->sc_ctrl, (Ctrl_RIE|Ctrl_RTIE)); in epcomintr()
1135 if (ISSET(sc->sc_ctrl, Ctrl_TIE)) { in epcomintr()
1136 CLR(sc->sc_ctrl, Ctrl_TIE); in epcomintr()
Depcomvar.h82 u_int sc_ctrl; member
/netbsd/src/sys/dev/pci/
Dif_wm.c696 uint32_t sc_ctrl; /* prototype CTRL register */ member
2939 sc->sc_ctrl |= CTRL_ILOS; in wm_attach()
2950 sc->sc_ctrl |= in wm_attach()
2953 sc->sc_ctrl |= in wm_attach()
2957 sc->sc_ctrl |= in wm_attach()
2968 sc->sc_ctrl |= CTRL_ILOS; in wm_attach()
2990 CSR_WRITE(sc, WMREG_CTRL, sc->sc_ctrl); in wm_attach()
4614 sc->sc_ctrl |= CTRL_VME; in wm_set_vlan()
4616 sc->sc_ctrl &= ~CTRL_VME; in wm_set_vlan()
4619 CSR_WRITE(sc, WMREG_CTRL, sc->sc_ctrl); in wm_set_vlan()
[all …]