Home
last modified time | relevance | path

Searched refs:sc_control (Results 1 – 20 of 20) sorted by relevance

/netbsd-src/sys/arch/evbmips/loongson/dev/
H A Dstvii.c97 uint8_t sc_control; member
170 sc->sc_control = reg; in stvii_attach()
260 if (sc->sc_control & STC_CHARGE_ENABLE) in stvii_worker()
302 nctrl = sc->sc_control & ~(STC_TRICKLE | STC_CHARGE_ENABLE); in stvii_worker()
317 if (nctrl != sc->sc_control) { in stvii_worker()
318 sc->sc_control = nctrl; in stvii_worker()
319 stvii_writereg(sc, ST7_CONTROL, sc->sc_control); in stvii_worker()
396 edata->value_cur = sc->sc_control & STC_CHARGE_ENABLE; in stvii_refresh()
/netbsd-src/sys/arch/mips/alchemy/dev/
H A Dif_aumac.c152 uint32_t sc_control; /* MAC_CONTROL contents */ member
793 sc->sc_control |= CONTROL_DO | CONTROL_TE | CONTROL_RE; in aumac_init()
795 sc->sc_control |= CONTROL_EM; in aumac_init()
899 sc->sc_control &= ~(CONTROL_PM | CONTROL_PR); in aumac_set_filter()
903 sc->sc_control & ~CONTROL_RE); in aumac_set_filter()
906 sc->sc_control |= CONTROL_PR; in aumac_set_filter()
917 sc->sc_control |= CONTROL_HP; in aumac_set_filter()
964 sc->sc_control); in aumac_set_filter()
968 sc->sc_control |= CONTROL_PM; in aumac_set_filter()
970 sc->sc_control); in aumac_set_filter()
[all …]
/netbsd-src/sys/dev/ic/
H A Dahavar.h77 struct aha_control *sc_control; /* control structures */ member
79 #define wmbx (&sc->sc_control->ac_mbx)
108 (((u_long)(c)) - ((u_long)&sc->sc_control->ac_ccbs[0])))
H A Dadw.c110 sizeof(struct adw_control), (void **) & sc->sc_control, in adw_alloc_controls()
128 sc->sc_control, sizeof(struct adw_control), NULL, in adw_alloc_controls()
148 sc->sc_control->carriers = malloc(sizeof(ADW_CARRIER) * ADW_MAX_CARRIER, in adw_alloc_carriers()
150 if(!sc->sc_control->carriers) { in adw_alloc_carriers()
165 (void **)&sc->sc_control->carriers, in adw_alloc_carriers()
184 sc->sc_control->carriers, sizeof(ADW_CARRIER) * ADW_MAX_CARRIER, in adw_alloc_carriers()
419 memset(sc->sc_control, 0, sizeof(struct adw_control)); in adw_attach()
424 ncontrols = adw_create_ccbs(sc, sc->sc_control->ccbs, ADW_MAX_CCB); in adw_attach()
H A Dlpt.c215 sc->sc_control = control; in lptopen()
302 u_char control = sc->sc_control; in lptpushbytes()
410 u_char control = sc->sc_control; in lptintr()
H A Dadv.h81 (((u_long)(c)) - ((u_long)&sc->sc_control->ccbs[0])))
H A Dadv.c114 (void **) & sc->sc_control, in adv_alloc_control_data()
131 sc->sc_control, sizeof(struct adv_control), NULL, in adv_alloc_control_data()
155 bus_dmamem_unmap(sc->sc_dmat, (void *) sc->sc_control, in adv_free_control_data()
475 i = adv_create_ccbs(sc, sc->sc_control->ccbs, ADV_MAX_CCB); in adv_attach()
H A Dadw.h99 (((u_long)(c)) - ((u_long)&sc->sc_control->ccbs[0])))
H A Dlptvar.h81 u_char sc_control; member
H A Dadwmcode.h86 (((u_int8_t *)(sc)->sc_control->carriers) + \
H A Daha.c952 sizeof(struct aha_control), (void **)&sc->sc_control, in aha_init()
971 sc->sc_control, sizeof(struct aha_control), NULL, in aha_init()
981 i = aha_create_ccbs(sc, sc->sc_control->ac_ccbs, initial_ccbs); in aha_init()
H A Dadwlib.h832 struct adw_control *sc_control; /* control structures */ member
H A Dadvlib.h841 struct adv_control *sc_control; /* control structures */ member
H A Dadwlib.c840 sc->sc_control->carriers);
/netbsd-src/sys/arch/sgimips/hpc/
H A Dsqvar.h125 struct sq_control* sc_control; member
126 #define sc_rxdesc sc_control->rx_desc
127 #define sc_txdesc sc_control->tx_desc
H A Dif_sq.c210 sizeof(struct sq_control), (void **)&sc->sc_control, in sq_attach()
225 sc->sc_control, sizeof(struct sq_control), NULL, in sq_attach()
232 memset(sc->sc_control, 0, sizeof(struct sq_control)); in sq_attach()
359 (void *)sc->sc_control, sizeof(struct sq_control)); in sq_attach()
/netbsd-src/sys/arch/i386/pnpbios/
H A Dpnpbios.c95 int sc_control; member
300 sc->sc_control = *(uint8_t *)(p + 0x06); in pnpbios_attach()
309 codepbase, datapbase, pnpbios_entry, sc->sc_control, in pnpbios_attach()
315 evtype = (sc->sc_control & PNP_IC_CONTORL_EVENT_MASK); in pnpbios_attach()
1403 if ((sc->sc_control & PNP_IC_CONTORL_EVENT_MASK) in pnpbios_event_thread()
/netbsd-src/sys/dev/usb/
H A Dohcivar.h133 uint32_t sc_control; /* Preserved during suspend/standby */
135 uint32_t sc_control; /* Preserved during suspend/standby */ global() member
H A Dohci.c1089 sc->sc_control = sc->sc_intre = 0; in ohci_allocx()
1190 if (sc->sc_control) in ohci_suspend()
1191 ctl = sc->sc_control; in ohci_suspend()
1200 sc->sc_control = sc->sc_intre = 0;
1212 if (sc->sc_control == 0) { in ohci_dumpregs()
1217 sc->sc_control = ctl; in ohci_dumpregs()
/netbsd-src/sys/arch/acorn32/podulebus/
H A Dif_ie.c130 int sc_control; member
215 WriteByte ( sc->sc_control + (IE_CONTROL<<2), IE_CONT_ATTN ); in ieattn()
225 WriteByte ( sc->sc_control + (IE_PAGE<<2), IE_COFF2PAGE(off) ); in setpage()
332 sc->sc_control = sc->sc_podule->fast_base; in ieattach()